Skip to content

Commit cd9f004

Browse files
committed
init commit
1 parent c885174 commit cd9f004

File tree

162 files changed

+31461
-0
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

162 files changed

+31461
-0
lines changed

.eslintrc.json

Lines changed: 20 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,20 @@
1+
{
2+
"root": true,
3+
"env": {
4+
"node": true
5+
},
6+
"extends": [
7+
"plugin:vue/vue3-essential",
8+
"eslint:recommended",
9+
"@vue/typescript/recommended",
10+
"@vue/prettier",
11+
"@vue/prettier/@typescript-eslint"
12+
],
13+
"parserOptions": {
14+
"ecmaVersion": 2020
15+
},
16+
"rules": {
17+
"vue/no-unused-components": "off",
18+
"no-debugger": "off"
19+
}
20+
}

.github/docsearch.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
# name: docsearch
2+
3+
# on:
4+
# push:
5+
# branches:
6+
# - main
7+
# jobs:
8+
# algolia:
9+
# runs-on: ubuntu-latest
10+
# steps:
11+
# - uses: actions/checkout@v2
12+
13+
# - name: Get the content of docsearch.json as config
14+
# id: algolia_config
15+
# run: echo "::set-output name=config::$(cat docsearch.json | jq -r tostring)"
16+
17+
# - name: Run algolia/docsearch-scraper image
18+
# env:
19+
# ALGOLIA_APP_ID: ${{ secrets.APPLICATION_ID }}
20+
# ALGOLIA_API_KEY: ${{ secrets.API_KEY }}
21+
# CONFIG: ${{ steps.algolia_config.outputs.config }}
22+
# run: |
23+
# docker run \
24+
# --env APPLICATION_ID=${ALGOLIA_APP_ID} \
25+
# --env API_KEY=${ALGOLIA_API_KEY} \
26+
# --env "CONFIG=${CONFIG}" \
27+
# algolia/docsearch-scraper

.github/workflows/deploy2io.yml

Lines changed: 30 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,30 @@
1+
name: sync to github.io
2+
3+
on:
4+
push:
5+
branches:
6+
- main # default branch
7+
paths:
8+
- ".github/workflows/**"
9+
- "**"
10+
11+
jobs:
12+
copy:
13+
runs-on: ubuntu-latest
14+
steps:
15+
- uses: actions/checkout@v3 # 检出仓库
16+
- uses: actions/setup-node@v3 # 设置node版本
17+
with:
18+
node-version: 16
19+
- run: npm install
20+
- run: npm run build
21+
22+
- name: Sync
23+
uses: JamesIves/github-pages-deploy-action@v4
24+
with:
25+
branch: main # action 应该部署到的分支。
26+
folder: dist # 操作应该部署的文件夹。
27+
clean: false
28+
repository-name: hellof2e/vue-quarkdesign.github.io
29+
token: ${{ secrets.GIT_ACTION }}
30+
target-folder: /

.gitignore

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
.DS_Store
2+
node_modules
3+
yarn.lock
4+
/cache
5+
/.nyc_output
6+
/coverage
7+
8+
# local env files
9+
.env.local
10+
.env.*.local
11+
12+
/lib
13+
/es
14+
/umd
15+
/tsc
16+
/dist

.husky/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
_

.prettierrc.js

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
"use strict";
2+
3+
module.exports = {};

.vscode/settings.json

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
{
2+
"editor.codeActionsOnSave": {
3+
"source.fixAll": true
4+
},
5+
"files.associations": {
6+
"*.vue": "html"
7+
},
8+
"eslint.options": {
9+
"configFile": "./.eslintrc.json"
10+
},
11+
"eslint.validate": ["javascript", "vue", "html", "typescript"],
12+
"workbench.startupEditor": "none",
13+
"stylelint.validate": ["css", "scss"],
14+
"scss.validate": false,
15+
"css.validate": false
16+
}

README.md

Lines changed: 23 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,23 @@
1+
# Quark Design Documentation
2+
3+
Quark Design documentation for Vue.
4+
5+
To run the project locally, first install the dependencies:
6+
7+
```bash
8+
npm install
9+
```
10+
11+
Next, run the development server:
12+
13+
```
14+
npm run dev
15+
```
16+
17+
## Build
18+
19+
When the code is merged into the `main` branch, the static resources are automatically built.
20+
21+
## License
22+
23+
This project is not licensed under an open-source license and is the intellectual property of Quark Labs. The source is available only as an educational resource and to accept fixes for minor mistakes.

commitlint.config.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
module.exports = {
2+
extends: ["@commitlint/config-conventional"],
3+
rules: {
4+
"body-leading-blank": [1, "always"],
5+
"footer-leading-blank": [1, "always"],
6+
"header-max-length": [2, "always", 72],
7+
"scope-case": [2, "always", "lower-case"],
8+
"subject-case": [
9+
2,
10+
"never",
11+
["sentence-case", "start-case", "pascal-case", "upper-case"],
12+
],
13+
"subject-empty": [2, "never"],
14+
"subject-full-stop": [2, "never", "."],
15+
"type-case": [2, "always", "lower-case"],
16+
"type-empty": [2, "never"],
17+
"type-enum": [
18+
2,
19+
"always",
20+
[
21+
"upd",
22+
"chore",
23+
"docs",
24+
"feat",
25+
"fix",
26+
"test",
27+
"refactor",
28+
"revert",
29+
"style",
30+
"release",
31+
],
32+
],
33+
},
34+
};

index.html

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
<!DOCTYPE html>
2+
<html lang="en">
3+
<head>
4+
<meta charset="utf-8" />
5+
<meta content="telephone=no" name="format-detection" />
6+
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0" name="viewport"/>
7+
<link rel="shortcut icon" href="./src/assets/images/favicon.ico" type="image/x-icon"/>
8+
<title>Quark Design - 下一代浏览器原生组件库,它可以同时在任意框架或无框架中使用。</title>
9+
<meta name="keywords" content="quarkd、quark design、web components、webcomponents、组件库、跨技术栈、跨技术栈组件库、customelement、custom element、移动端组件库">
10+
<meta name="description" content="基于 Quark Design 设计体系的跨技术栈移动端组件库。">
11+
</head>
12+
<body>
13+
<div id="doc"></div>
14+
<script type="module" src="./src/docs_vue/main.ts"></script>
15+
</body>
16+
</html>

jest.config.js

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
module.exports = {
2+
moduleFileExtensions: ["vue", "js", "ts"],
3+
preset: "ts-jest",
4+
testEnvironment: "jsdom",
5+
transform: {
6+
"^.+\\.vue$": "vue-jest", // vue 文件用 vue-jest 转换
7+
"^.+\\.ts$": "ts-jest", // ts 文件用 ts-jest 转换
8+
},
9+
// 匹配 __tests__ 目录下的 .js/.ts 文件 或其他目录下的 xx.test.js/ts xx.spec.js/ts
10+
testRegex: "(/__tests__/.*|(\\.|/)(test|spec))\\.(ts)$",
11+
//testRegex: '__tests__.action.spec.ts',
12+
// 支持源代码中相同的 `@` -> `src` 别名
13+
moduleNameMapper: {
14+
"^@/(.*)$": "<rootDir>/src/$1",
15+
},
16+
};

0 commit comments

Comments
 (0)