Browse Source

feat: setting

main
少轻狂 2 years ago
parent
commit
f1c80e67e6
No known key found for this signature in database GPG Key ID: 80E176093D33A9AB
18 changed files with 402 additions and 30 deletions
  1. +74
    -0
      .VSCodeCounter/2022-12-08_20-54-12/details.md
  2. +15
    -0
      .VSCodeCounter/2022-12-08_20-54-12/diff-details.md
  3. +2
    -0
      .VSCodeCounter/2022-12-08_20-54-12/diff.csv
  4. +19
    -0
      .VSCodeCounter/2022-12-08_20-54-12/diff.md
  5. +22
    -0
      .VSCodeCounter/2022-12-08_20-54-12/diff.txt
  6. +61
    -0
      .VSCodeCounter/2022-12-08_20-54-12/results.csv
  7. +1
    -0
      .VSCodeCounter/2022-12-08_20-54-12/results.json
  8. +53
    -0
      .VSCodeCounter/2022-12-08_20-54-12/results.md
  9. +115
    -0
      .VSCodeCounter/2022-12-08_20-54-12/results.txt
  10. +1
    -1
      app/api/api.py
  11. +4
    -8
      app/api/config.json
  12. +10
    -0
      locales/en.yml
  13. +10
    -0
      locales/zh-CN.yml
  14. BIN
      public/Snipaste_2022-12-01_22-59-42.png
  15. +1
    -1
      src/components/Setting.vue
  16. +1
    -1
      src/pages/Personalization/train.vue
  17. +4
    -10
      src/pages/about.md
  18. +9
    -9
      src/pages/index.vue

+ 74
- 0
.VSCodeCounter/2022-12-08_20-54-12/details.md View File

@@ -0,0 +1,74 @@
# Details

Date : 2022-12-08 20:54:12

Directory f:\\AliYunPan\\web\\EMC

Total : 59 files, 10447 codes, 190 comments, 1431 blanks, all 12068 lines

[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |
| [.github/FUNDING.yml](/.github/FUNDING.yml) | YAML | 1 | 0 | 1 | 2 |
| [.github/workflows/ci.yml](/.github/workflows/ci.yml) | YAML | 35 | 0 | 10 | 45 |
| [README.md](/README.md) | Markdown | 152 | 1 | 88 | 241 |
| [app/api/api.py](/app/api/api.py) | Python | 86 | 17 | 19 | 122 |
| [app/api/config.json](/app/api/config.json) | JSON | 111 | 0 | 0 | 111 |
| [app/api/model/model.py](/app/api/model/model.py) | Python | 179 | 9 | 31 | 219 |
| [app/assets/requirements.txt](/app/assets/requirements.txt) | pip requirements | 3 | 0 | 0 | 3 |
| [app/config/config.py](/app/config/config.py) | Python | 6 | 0 | 5 | 11 |
| [app/main.py](/app/main.py) | Python | 38 | 1 | 8 | 47 |
| [app/spec/getSpec.py](/app/spec/getSpec.py) | Python | 101 | 15 | 26 | 142 |
| [app/utils/utils.py](/app/utils/utils.py) | Python | 22 | 9 | 0 | 31 |
| [index.html](/index.html) | HTML | 22 | 0 | 1 | 23 |
| [locales/README.md](/locales/README.md) | Markdown | 4 | 0 | 4 | 8 |
| [locales/en.yml](/locales/en.yml) | YAML | 21 | 0 | 1 | 22 |
| [locales/zh-CN.yml](/locales/zh-CN.yml) | YAML | 21 | 0 | 1 | 22 |
| [package.json](/package.json) | JSON | 95 | 0 | 1 | 96 |
| [pnpm-lock.yaml](/pnpm-lock.yaml) | YAML | 7,409 | 0 | 1,067 | 8,476 |
| [postcss.config.cjs](/postcss.config.cjs) | JavaScript | 6 | 0 | 1 | 7 |
| [public/favicon-dark.svg](/public/favicon-dark.svg) | XML | 3 | 0 | 1 | 4 |
| [public/favicon.svg](/public/favicon.svg) | XML | 3 | 0 | 1 | 4 |
| [public/safari-pinned-tab.svg](/public/safari-pinned-tab.svg) | XML | 41 | 0 | 1 | 42 |
| [src/App.vue](/src/App.vue) | vue | 25 | 0 | 2 | 27 |
| [src/auto-imports.d.ts](/src/auto-imports.d.ts) | TypeScript | 556 | 2 | 1 | 559 |
| [src/components.d.ts](/src/components.d.ts) | TypeScript | 15 | 3 | 3 | 21 |
| [src/components/Counter.vue](/src/components/Counter.vue) | vue | 17 | 0 | 3 | 20 |
| [src/components/Footer.vue](/src/components/Footer.vue) | vue | 24 | 0 | 6 | 30 |
| [src/components/Input.vue](/src/components/Input.vue) | vue | 19 | 0 | 2 | 21 |
| [src/components/README.md](/src/components/README.md) | Markdown | 5 | 0 | 6 | 11 |
| [src/components/Setting.vue](/src/components/Setting.vue) | vue | 213 | 5 | 10 | 228 |
| [src/components/daisy/DSelect.vue](/src/components/daisy/DSelect.vue) | vue | 31 | 0 | 4 | 35 |
| [src/components/daisy/DToggle.vue](/src/components/daisy/DToggle.vue) | vue | 31 | 0 | 6 | 37 |
| [src/composables/dark.ts](/src/composables/dark.ts) | TypeScript | 2 | 2 | 1 | 5 |
| [src/layouts/404.vue](/src/layouts/404.vue) | vue | 20 | 0 | 2 | 22 |
| [src/layouts/README.md](/src/layouts/README.md) | Markdown | 10 | 0 | 5 | 15 |
| [src/layouts/default.vue](/src/layouts/default.vue) | vue | 6 | 3 | 1 | 10 |
| [src/layouts/home.vue](/src/layouts/home.vue) | vue | 6 | 3 | 1 | 10 |
| [src/main.ts](/src/main.ts) | TypeScript | 14 | 7 | 2 | 23 |
| [src/modules/README.md](/src/modules/README.md) | Markdown | 8 | 0 | 4 | 12 |
| [src/modules/i18n.ts](/src/modules/i18n.ts) | TypeScript | 5 | 20 | 1 | 26 |
| [src/modules/nprogress.ts](/src/modules/nprogress.ts) | TypeScript | 13 | 0 | 2 | 15 |
| [src/modules/pinia.ts](/src/modules/pinia.ts) | TypeScript | 10 | 5 | 3 | 18 |
| [src/modules/pwa.ts](/src/modules/pwa.ts) | TypeScript | 9 | 1 | 3 | 13 |
| [src/pages/AdvancedSettings.vue](/src/pages/AdvancedSettings.vue) | vue | 69 | 0 | 7 | 76 |
| [src/pages/Personalization/annotations.vue](/src/pages/Personalization/annotations.vue) | vue | 190 | 21 | 7 | 218 |
| [src/pages/Personalization/index.vue](/src/pages/Personalization/index.vue) | vue | 214 | 3 | 9 | 226 |
| [src/pages/Personalization/train.vue](/src/pages/Personalization/train.vue) | vue | 143 | 6 | 6 | 155 |
| [src/pages/README.md](/src/pages/README.md) | Markdown | 13 | 0 | 8 | 21 |
| [src/pages/[...all].vue](/src/pages/%5B...all%5D.vue) | vue | 12 | 0 | 3 | 15 |
| [src/pages/about.md](/src/pages/about.md) | Markdown | 16 | 1 | 5 | 22 |
| [src/pages/index.vue](/src/pages/index.vue) | vue | 120 | 0 | 13 | 133 |
| [src/shims.d.ts](/src/shims.d.ts) | TypeScript | 12 | 2 | 3 | 17 |
| [src/store/user.ts](/src/store/user.ts) | TypeScript | 19 | 9 | 7 | 35 |
| [src/styles/main.css](/src/styles/main.css) | PostCSS | 28 | 0 | 6 | 34 |
| [src/styles/markdown.css](/src/styles/markdown.css) | PostCSS | 23 | 0 | 6 | 29 |
| [src/types.ts](/src/types.ts) | TypeScript | 2 | 0 | 2 | 4 |
| [tailwind.config.cjs](/tailwind.config.cjs) | JavaScript | 15 | 1 | 1 | 17 |
| [tsconfig.json](/tsconfig.json) | JSON with Comments | 27 | 11 | 0 | 38 |
| [unocss.config.ts](/unocss.config.ts) | TypeScript | 37 | 0 | 2 | 39 |
| [vite.config.ts](/vite.config.ts) | TypeScript | 109 | 33 | 11 | 153 |

[Summary](results.md) / Details / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

+ 15
- 0
.VSCodeCounter/2022-12-08_20-54-12/diff-details.md View File

@@ -0,0 +1,15 @@
# Diff Details

Date : 2022-12-08 20:54:12

Directory f:\\AliYunPan\\web\\EMC

Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines

[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details

## Files
| filename | language | code | comment | blank | total |
| :--- | :--- | ---: | ---: | ---: | ---: |

[Summary](results.md) / [Details](details.md) / [Diff Summary](diff.md) / Diff Details

+ 2
- 0
.VSCodeCounter/2022-12-08_20-54-12/diff.csv View File

@@ -0,0 +1,2 @@
"filename", "language", "", "comment", "blank", "total"
"Total", "-", , 0, 0, 0

+ 19
- 0
.VSCodeCounter/2022-12-08_20-54-12/diff.md View File

@@ -0,0 +1,19 @@
# Diff Summary

Date : 2022-12-08 20:54:12

Directory f:\\AliYunPan\\web\\EMC

Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines

[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)

## Languages
| language | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |

## Directories
| path | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |

[Summary](results.md) / [Details](details.md) / Diff Summary / [Diff Details](diff-details.md)

+ 22
- 0
.VSCodeCounter/2022-12-08_20-54-12/diff.txt View File

@@ -0,0 +1,22 @@
Date : 2022-12-08 20:54:12
Directory : f:\AliYunPan\web\EMC
Total : 0 files, 0 codes, 0 comments, 0 blanks, all 0 lines

Languages
+----------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+----------+------------+------------+------------+------------+------------+
+----------+------------+------------+------------+------------+------------+

Directories
+------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+------+------------+------------+------------+------------+------------+
+------+------------+------------+------------+------------+------------+

Files
+----------+----------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+----------+----------+------------+------------+------------+------------+
| Total | | 0 | 0 | 0 | 0 |
+----------+----------+------------+------------+------------+------------+

+ 61
- 0
.VSCodeCounter/2022-12-08_20-54-12/results.csv View File

@@ -0,0 +1,61 @@
"filename", "language", "TypeScript", "JSON with Comments", "JavaScript", "PostCSS", "vue", "Markdown", "YAML", "XML", "JSON", "HTML", "Python", "pip requirements", "comment", "blank", "total"
"f:\AliYunPan\web\EMC\.github\FUNDING.yml", "YAML", 0, 0, 0, 0, 0, 0, 1, 0, 0, 0, 0, 0, 0, 1, 2
"f:\AliYunPan\web\EMC\.github\workflows\ci.yml", "YAML", 0, 0, 0, 0, 0, 0, 35, 0, 0, 0, 0, 0, 0, 10, 45
"f:\AliYunPan\web\EMC\README.md", "Markdown", 0, 0, 0, 0, 0, 152, 0, 0, 0, 0, 0, 0, 1, 88, 241
"f:\AliYunPan\web\EMC\app\api\api.py", "Python", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 86, 0, 17, 19, 122
"f:\AliYunPan\web\EMC\app\api\config.json", "JSON", 0, 0, 0, 0, 0, 0, 0, 0, 111, 0, 0, 0, 0, 0, 111
"f:\AliYunPan\web\EMC\app\api\model\model.py", "Python", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 179, 0, 9, 31, 219
"f:\AliYunPan\web\EMC\app\assets\requirements.txt", "pip requirements", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 3
"f:\AliYunPan\web\EMC\app\config\config.py", "Python", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 0, 0, 5, 11
"f:\AliYunPan\web\EMC\app\main.py", "Python", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 38, 0, 1, 8, 47
"f:\AliYunPan\web\EMC\app\spec\getSpec.py", "Python", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 101, 0, 15, 26, 142
"f:\AliYunPan\web\EMC\app\utils\utils.py", "Python", 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 9, 0, 31
"f:\AliYunPan\web\EMC\index.html", "HTML", 0, 0, 0, 0, 0, 0, 0, 0, 0, 22, 0, 0, 0, 1, 23
"f:\AliYunPan\web\EMC\locales\README.md", "Markdown", 0, 0, 0, 0, 0, 4, 0, 0, 0, 0, 0, 0, 0, 4, 8
"f:\AliYunPan\web\EMC\locales\en.yml", "YAML", 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 22
"f:\AliYunPan\web\EMC\locales\zh-CN.yml", "YAML", 0, 0, 0, 0, 0, 0, 21, 0, 0, 0, 0, 0, 0, 1, 22
"f:\AliYunPan\web\EMC\package.json", "JSON", 0, 0, 0, 0, 0, 0, 0, 0, 95, 0, 0, 0, 0, 1, 96
"f:\AliYunPan\web\EMC\pnpm-lock.yaml", "YAML", 0, 0, 0, 0, 0, 0, 7409, 0, 0, 0, 0, 0, 0, 1067, 8476
"f:\AliYunPan\web\EMC\postcss.config.cjs", "JavaScript", 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 7
"f:\AliYunPan\web\EMC\public\favicon-dark.svg", "XML", 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 1, 4
"f:\AliYunPan\web\EMC\public\favicon.svg", "XML", 0, 0, 0, 0, 0, 0, 0, 3, 0, 0, 0, 0, 0, 1, 4
"f:\AliYunPan\web\EMC\public\safari-pinned-tab.svg", "XML", 0, 0, 0, 0, 0, 0, 0, 41, 0, 0, 0, 0, 0, 1, 42
"f:\AliYunPan\web\EMC\src\App.vue", "vue", 0, 0, 0, 0, 25, 0, 0, 0, 0, 0, 0, 0, 0, 2, 27
"f:\AliYunPan\web\EMC\src\auto-imports.d.ts", "TypeScript", 556, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 559
"f:\AliYunPan\web\EMC\src\components.d.ts", "TypeScript", 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 3, 3, 21
"f:\AliYunPan\web\EMC\src\components\Counter.vue", "vue", 0, 0, 0, 0, 17, 0, 0, 0, 0, 0, 0, 0, 0, 3, 20
"f:\AliYunPan\web\EMC\src\components\Footer.vue", "vue", 0, 0, 0, 0, 24, 0, 0, 0, 0, 0, 0, 0, 0, 6, 30
"f:\AliYunPan\web\EMC\src\components\Input.vue", "vue", 0, 0, 0, 0, 19, 0, 0, 0, 0, 0, 0, 0, 0, 2, 21
"f:\AliYunPan\web\EMC\src\components\README.md", "Markdown", 0, 0, 0, 0, 0, 5, 0, 0, 0, 0, 0, 0, 0, 6, 11
"f:\AliYunPan\web\EMC\src\components\Setting.vue", "vue", 0, 0, 0, 0, 213, 0, 0, 0, 0, 0, 0, 0, 5, 10, 228
"f:\AliYunPan\web\EMC\src\components\daisy\DSelect.vue", "vue", 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 4, 35
"f:\AliYunPan\web\EMC\src\components\daisy\DToggle.vue", "vue", 0, 0, 0, 0, 31, 0, 0, 0, 0, 0, 0, 0, 0, 6, 37
"f:\AliYunPan\web\EMC\src\composables\dark.ts", "TypeScript", 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 1, 5
"f:\AliYunPan\web\EMC\src\layouts\404.vue", "vue", 0, 0, 0, 0, 20, 0, 0, 0, 0, 0, 0, 0, 0, 2, 22
"f:\AliYunPan\web\EMC\src\layouts\README.md", "Markdown", 0, 0, 0, 0, 0, 10, 0, 0, 0, 0, 0, 0, 0, 5, 15
"f:\AliYunPan\web\EMC\src\layouts\default.vue", "vue", 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 3, 1, 10
"f:\AliYunPan\web\EMC\src\layouts\home.vue", "vue", 0, 0, 0, 0, 6, 0, 0, 0, 0, 0, 0, 0, 3, 1, 10
"f:\AliYunPan\web\EMC\src\main.ts", "TypeScript", 14, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 7, 2, 23
"f:\AliYunPan\web\EMC\src\modules\README.md", "Markdown", 0, 0, 0, 0, 0, 8, 0, 0, 0, 0, 0, 0, 0, 4, 12
"f:\AliYunPan\web\EMC\src\modules\i18n.ts", "TypeScript", 5, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 20, 1, 26
"f:\AliYunPan\web\EMC\src\modules\nprogress.ts", "TypeScript", 13, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 15
"f:\AliYunPan\web\EMC\src\modules\pinia.ts", "TypeScript", 10, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 5, 3, 18
"f:\AliYunPan\web\EMC\src\modules\pwa.ts", "TypeScript", 9, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 3, 13
"f:\AliYunPan\web\EMC\src\pages\AdvancedSettings.vue", "vue", 0, 0, 0, 0, 69, 0, 0, 0, 0, 0, 0, 0, 0, 7, 76
"f:\AliYunPan\web\EMC\src\pages\Personalization\annotations.vue", "vue", 0, 0, 0, 0, 190, 0, 0, 0, 0, 0, 0, 0, 21, 7, 218
"f:\AliYunPan\web\EMC\src\pages\Personalization\index.vue", "vue", 0, 0, 0, 0, 214, 0, 0, 0, 0, 0, 0, 0, 3, 9, 226
"f:\AliYunPan\web\EMC\src\pages\Personalization\train.vue", "vue", 0, 0, 0, 0, 143, 0, 0, 0, 0, 0, 0, 0, 6, 6, 155
"f:\AliYunPan\web\EMC\src\pages\README.md", "Markdown", 0, 0, 0, 0, 0, 13, 0, 0, 0, 0, 0, 0, 0, 8, 21
"f:\AliYunPan\web\EMC\src\pages\[...all].vue", "vue", 0, 0, 0, 0, 12, 0, 0, 0, 0, 0, 0, 0, 0, 3, 15
"f:\AliYunPan\web\EMC\src\pages\about.md", "Markdown", 0, 0, 0, 0, 0, 16, 0, 0, 0, 0, 0, 0, 1, 5, 22
"f:\AliYunPan\web\EMC\src\pages\index.vue", "vue", 0, 0, 0, 0, 120, 0, 0, 0, 0, 0, 0, 0, 0, 13, 133
"f:\AliYunPan\web\EMC\src\shims.d.ts", "TypeScript", 12, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 3, 17
"f:\AliYunPan\web\EMC\src\store\user.ts", "TypeScript", 19, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 9, 7, 35
"f:\AliYunPan\web\EMC\src\styles\main.css", "PostCSS", 0, 0, 0, 28, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 34
"f:\AliYunPan\web\EMC\src\styles\markdown.css", "PostCSS", 0, 0, 0, 23, 0, 0, 0, 0, 0, 0, 0, 0, 0, 6, 29
"f:\AliYunPan\web\EMC\src\types.ts", "TypeScript", 2, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 4
"f:\AliYunPan\web\EMC\tailwind.config.cjs", "JavaScript", 0, 0, 15, 0, 0, 0, 0, 0, 0, 0, 0, 0, 1, 1, 17
"f:\AliYunPan\web\EMC\tsconfig.json", "JSON with Comments", 0, 27, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 11, 0, 38
"f:\AliYunPan\web\EMC\unocss.config.ts", "TypeScript", 37, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 2, 39
"f:\AliYunPan\web\EMC\vite.config.ts", "TypeScript", 109, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 0, 33, 11, 153
"Total", "-", 803, 27, 21, 51, 1140, 208, 7487, 47, 206, 22, 432, 3, 190, 1431, 12068

+ 1
- 0
.VSCodeCounter/2022-12-08_20-54-12/results.json
File diff suppressed because it is too large
View File


+ 53
- 0
.VSCodeCounter/2022-12-08_20-54-12/results.md View File

@@ -0,0 +1,53 @@
# Summary

Date : 2022-12-08 20:54:12

Directory f:\\AliYunPan\\web\\EMC

Total : 59 files, 10447 codes, 190 comments, 1431 blanks, all 12068 lines

Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

## Languages
| language | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| YAML | 5 | 7,487 | 0 | 1,080 | 8,567 |
| vue | 16 | 1,140 | 41 | 82 | 1,263 |
| TypeScript | 13 | 803 | 84 | 41 | 928 |
| Python | 6 | 432 | 51 | 89 | 572 |
| Markdown | 7 | 208 | 2 | 120 | 330 |
| JSON | 2 | 206 | 0 | 1 | 207 |
| PostCSS | 2 | 51 | 0 | 12 | 63 |
| XML | 3 | 47 | 0 | 3 | 50 |
| JSON with Comments | 1 | 27 | 11 | 0 | 38 |
| HTML | 1 | 22 | 0 | 1 | 23 |
| JavaScript | 2 | 21 | 1 | 2 | 24 |
| pip requirements | 1 | 3 | 0 | 0 | 3 |

## Directories
| path | files | code | comment | blank | total |
| :--- | ---: | ---: | ---: | ---: | ---: |
| . | 59 | 10,447 | 190 | 1,431 | 12,068 |
| .github | 2 | 36 | 0 | 11 | 47 |
| .github\\workflows | 1 | 35 | 0 | 10 | 45 |
| app | 8 | 546 | 51 | 89 | 686 |
| app\\api | 3 | 376 | 26 | 50 | 452 |
| app\\api\\model | 1 | 179 | 9 | 31 | 219 |
| app\\assets | 1 | 3 | 0 | 0 | 3 |
| app\\config | 1 | 6 | 0 | 5 | 11 |
| app\\spec | 1 | 101 | 15 | 26 | 142 |
| app\\utils | 1 | 22 | 9 | 0 | 31 |
| locales | 3 | 46 | 0 | 6 | 52 |
| public | 3 | 47 | 0 | 3 | 50 |
| src | 34 | 1,900 | 93 | 150 | 2,143 |
| src\\components | 7 | 340 | 5 | 37 | 382 |
| src\\components\\daisy | 2 | 62 | 0 | 10 | 72 |
| src\\composables | 1 | 2 | 2 | 1 | 5 |
| src\\layouts | 4 | 42 | 6 | 9 | 57 |
| src\\modules | 5 | 45 | 26 | 13 | 84 |
| src\\pages | 8 | 777 | 31 | 58 | 866 |
| src\\pages\\Personalization | 3 | 547 | 30 | 22 | 599 |
| src\\store | 1 | 19 | 9 | 7 | 35 |
| src\\styles | 2 | 51 | 0 | 12 | 63 |

Summary / [Details](details.md) / [Diff Summary](diff.md) / [Diff Details](diff-details.md)

+ 115
- 0
.VSCodeCounter/2022-12-08_20-54-12/results.txt View File

@@ -0,0 +1,115 @@
Date : 2022-12-08 20:54:12
Directory : f:\AliYunPan\web\EMC
Total : 59 files, 10447 codes, 190 comments, 1431 blanks, all 12068 lines

Languages
+--------------------+------------+------------+------------+------------+------------+
| language | files | code | comment | blank | total |
+--------------------+------------+------------+------------+------------+------------+
| YAML | 5 | 7,487 | 0 | 1,080 | 8,567 |
| vue | 16 | 1,140 | 41 | 82 | 1,263 |
| TypeScript | 13 | 803 | 84 | 41 | 928 |
| Python | 6 | 432 | 51 | 89 | 572 |
| Markdown | 7 | 208 | 2 | 120 | 330 |
| JSON | 2 | 206 | 0 | 1 | 207 |
| PostCSS | 2 | 51 | 0 | 12 | 63 |
| XML | 3 | 47 | 0 | 3 | 50 |
| JSON with Comments | 1 | 27 | 11 | 0 | 38 |
| HTML | 1 | 22 | 0 | 1 | 23 |
| JavaScript | 2 | 21 | 1 | 2 | 24 |
| pip requirements | 1 | 3 | 0 | 0 | 3 |
+--------------------+------------+------------+------------+------------+------------+

Directories
+----------------------------------------------------------------+------------+------------+------------+------------+------------+
| path | files | code | comment | blank | total |
+----------------------------------------------------------------+------------+------------+------------+------------+------------+
| . | 59 | 10,447 | 190 | 1,431 | 12,068 |
| .github | 2 | 36 | 0 | 11 | 47 |
| .github\workflows | 1 | 35 | 0 | 10 | 45 |
| app | 8 | 546 | 51 | 89 | 686 |
| app\api | 3 | 376 | 26 | 50 | 452 |
| app\api\model | 1 | 179 | 9 | 31 | 219 |
| app\assets | 1 | 3 | 0 | 0 | 3 |
| app\config | 1 | 6 | 0 | 5 | 11 |
| app\spec | 1 | 101 | 15 | 26 | 142 |
| app\utils | 1 | 22 | 9 | 0 | 31 |
| locales | 3 | 46 | 0 | 6 | 52 |
| public | 3 | 47 | 0 | 3 | 50 |
| src | 34 | 1,900 | 93 | 150 | 2,143 |
| src\components | 7 | 340 | 5 | 37 | 382 |
| src\components\daisy | 2 | 62 | 0 | 10 | 72 |
| src\composables | 1 | 2 | 2 | 1 | 5 |
| src\layouts | 4 | 42 | 6 | 9 | 57 |
| src\modules | 5 | 45 | 26 | 13 | 84 |
| src\pages | 8 | 777 | 31 | 58 | 866 |
| src\pages\Personalization | 3 | 547 | 30 | 22 | 599 |
| src\store | 1 | 19 | 9 | 7 | 35 |
| src\styles | 2 | 51 | 0 | 12 | 63 |
+----------------------------------------------------------------+------------+------------+------------+------------+------------+

Files
+----------------------------------------------------------------+--------------------+------------+------------+------------+------------+
| filename | language | code | comment | blank | total |
+----------------------------------------------------------------+--------------------+------------+------------+------------+------------+
| f:\AliYunPan\web\EMC\.github\FUNDING.yml | YAML | 1 | 0 | 1 | 2 |
| f:\AliYunPan\web\EMC\.github\workflows\ci.yml | YAML | 35 | 0 | 10 | 45 |
| f:\AliYunPan\web\EMC\README.md | Markdown | 152 | 1 | 88 | 241 |
| f:\AliYunPan\web\EMC\app\api\api.py | Python | 86 | 17 | 19 | 122 |
| f:\AliYunPan\web\EMC\app\api\config.json | JSON | 111 | 0 | 0 | 111 |
| f:\AliYunPan\web\EMC\app\api\model\model.py | Python | 179 | 9 | 31 | 219 |
| f:\AliYunPan\web\EMC\app\assets\requirements.txt | pip requirements | 3 | 0 | 0 | 3 |
| f:\AliYunPan\web\EMC\app\config\config.py | Python | 6 | 0 | 5 | 11 |
| f:\AliYunPan\web\EMC\app\main.py | Python | 38 | 1 | 8 | 47 |
| f:\AliYunPan\web\EMC\app\spec\getSpec.py | Python | 101 | 15 | 26 | 142 |
| f:\AliYunPan\web\EMC\app\utils\utils.py | Python | 22 | 9 | 0 | 31 |
| f:\AliYunPan\web\EMC\index.html | HTML | 22 | 0 | 1 | 23 |
| f:\AliYunPan\web\EMC\locales\README.md | Markdown | 4 | 0 | 4 | 8 |
| f:\AliYunPan\web\EMC\locales\en.yml | YAML | 21 | 0 | 1 | 22 |
| f:\AliYunPan\web\EMC\locales\zh-CN.yml | YAML | 21 | 0 | 1 | 22 |
| f:\AliYunPan\web\EMC\package.json | JSON | 95 | 0 | 1 | 96 |
| f:\AliYunPan\web\EMC\pnpm-lock.yaml | YAML | 7,409 | 0 | 1,067 | 8,476 |
| f:\AliYunPan\web\EMC\postcss.config.cjs | JavaScript | 6 | 0 | 1 | 7 |
| f:\AliYunPan\web\EMC\public\favicon-dark.svg | XML | 3 | 0 | 1 | 4 |
| f:\AliYunPan\web\EMC\public\favicon.svg | XML | 3 | 0 | 1 | 4 |
| f:\AliYunPan\web\EMC\public\safari-pinned-tab.svg | XML | 41 | 0 | 1 | 42 |
| f:\AliYunPan\web\EMC\src\App.vue | vue | 25 | 0 | 2 | 27 |
| f:\AliYunPan\web\EMC\src\auto-imports.d.ts | TypeScript | 556 | 2 | 1 | 559 |
| f:\AliYunPan\web\EMC\src\components.d.ts | TypeScript | 15 | 3 | 3 | 21 |
| f:\AliYunPan\web\EMC\src\components\Counter.vue | vue | 17 | 0 | 3 | 20 |
| f:\AliYunPan\web\EMC\src\components\Footer.vue | vue | 24 | 0 | 6 | 30 |
| f:\AliYunPan\web\EMC\src\components\Input.vue | vue | 19 | 0 | 2 | 21 |
| f:\AliYunPan\web\EMC\src\components\README.md | Markdown | 5 | 0 | 6 | 11 |
| f:\AliYunPan\web\EMC\src\components\Setting.vue | vue | 213 | 5 | 10 | 228 |
| f:\AliYunPan\web\EMC\src\components\daisy\DSelect.vue | vue | 31 | 0 | 4 | 35 |
| f:\AliYunPan\web\EMC\src\components\daisy\DToggle.vue | vue | 31 | 0 | 6 | 37 |
| f:\AliYunPan\web\EMC\src\composables\dark.ts | TypeScript | 2 | 2 | 1 | 5 |
| f:\AliYunPan\web\EMC\src\layouts\404.vue | vue | 20 | 0 | 2 | 22 |
| f:\AliYunPan\web\EMC\src\layouts\README.md | Markdown | 10 | 0 | 5 | 15 |
| f:\AliYunPan\web\EMC\src\layouts\default.vue | vue | 6 | 3 | 1 | 10 |
| f:\AliYunPan\web\EMC\src\layouts\home.vue | vue | 6 | 3 | 1 | 10 |
| f:\AliYunPan\web\EMC\src\main.ts | TypeScript | 14 | 7 | 2 | 23 |
| f:\AliYunPan\web\EMC\src\modules\README.md | Markdown | 8 | 0 | 4 | 12 |
| f:\AliYunPan\web\EMC\src\modules\i18n.ts | TypeScript | 5 | 20 | 1 | 26 |
| f:\AliYunPan\web\EMC\src\modules\nprogress.ts | TypeScript | 13 | 0 | 2 | 15 |
| f:\AliYunPan\web\EMC\src\modules\pinia.ts | TypeScript | 10 | 5 | 3 | 18 |
| f:\AliYunPan\web\EMC\src\modules\pwa.ts | TypeScript | 9 | 1 | 3 | 13 |
| f:\AliYunPan\web\EMC\src\pages\AdvancedSettings.vue | vue | 69 | 0 | 7 | 76 |
| f:\AliYunPan\web\EMC\src\pages\Personalization\annotations.vue | vue | 190 | 21 | 7 | 218 |
| f:\AliYunPan\web\EMC\src\pages\Personalization\index.vue | vue | 214 | 3 | 9 | 226 |
| f:\AliYunPan\web\EMC\src\pages\Personalization\train.vue | vue | 143 | 6 | 6 | 155 |
| f:\AliYunPan\web\EMC\src\pages\README.md | Markdown | 13 | 0 | 8 | 21 |
| f:\AliYunPan\web\EMC\src\pages\[...all].vue | vue | 12 | 0 | 3 | 15 |
| f:\AliYunPan\web\EMC\src\pages\about.md | Markdown | 16 | 1 | 5 | 22 |
| f:\AliYunPan\web\EMC\src\pages\index.vue | vue | 120 | 0 | 13 | 133 |
| f:\AliYunPan\web\EMC\src\shims.d.ts | TypeScript | 12 | 2 | 3 | 17 |
| f:\AliYunPan\web\EMC\src\store\user.ts | TypeScript | 19 | 9 | 7 | 35 |
| f:\AliYunPan\web\EMC\src\styles\main.css | PostCSS | 28 | 0 | 6 | 34 |
| f:\AliYunPan\web\EMC\src\styles\markdown.css | PostCSS | 23 | 0 | 6 | 29 |
| f:\AliYunPan\web\EMC\src\types.ts | TypeScript | 2 | 0 | 2 | 4 |
| f:\AliYunPan\web\EMC\tailwind.config.cjs | JavaScript | 15 | 1 | 1 | 17 |
| f:\AliYunPan\web\EMC\tsconfig.json | JSON with Comments | 27 | 11 | 0 | 38 |
| f:\AliYunPan\web\EMC\unocss.config.ts | TypeScript | 37 | 0 | 2 | 39 |
| f:\AliYunPan\web\EMC\vite.config.ts | TypeScript | 109 | 33 | 11 | 153 |
| Total | | 10,447 | 190 | 1,431 | 12,068 |
+----------------------------------------------------------------+--------------------+------------+------------+------------+------------+

+ 1
- 1
app/api/api.py View File

@@ -95,7 +95,7 @@ class API:
# cv2.namedWindow('Video Cam', cv2.WINDOW_NORMAL)
if(self.args['toggle'] and self.args['tip']):
send_notifycation("功能已开启")
send_notifycation("功能触发:鼠标悬停","EMC[嘴控]")




+ 4
- 8
app/api/config.json View File

@@ -2,8 +2,8 @@
"classfile": "coco_label.txt",
"img_fold": "./imgs",
"result_fold": "results",
"toggle": true,
"tip": true,
"toggle": false,
"tip": false,
"control": [
{
"name": "嘴控",
@@ -32,11 +32,11 @@
},
{
"name": "闭上持续2S",
"status": true
"status": false
},
{
"name": "张开持续2S",
"status": false
"status": true
}
],
"description": "控制设置"
@@ -67,10 +67,6 @@
"description": "目前仅有官方提供模型,可通过个性化设置进行修改",
"link": "/Personalization"
},
{
"name": "置信度",
"status": "0.5"
},
{
"name": "confThreshold",
"status": "0.5"


+ 10
- 0
locales/en.yml View File

@@ -19,3 +19,13 @@ intro:
hi: Hi, {name}!
whats-your-name: What's your name?
not-found: Not found
Index:
OnlineShow: OnlineShow
OnlineImg: OnlineImg
Img: Img
des: Eye/Mouth Control
mouth_open: Mouth Open
eye_open: Eye Open
status: Status
on: On
tip: Tip

+ 10
- 0
locales/zh-CN.yml View File

@@ -19,3 +19,13 @@ Personalization:
Collect: 采集
Annotations: 标注
Train: 训练
Index:
OnlineShow: 实时显示
OnlineImg: 实时图像
Img: 当前图像
des: 眼控/嘴控小工具
mouth_open: 嘴张
eye_open: 眼开
status: 实时情况
on: 启用
tip: 触发提醒

BIN
public/Snipaste_2022-12-01_22-59-42.png View File

Before After
Width: 963  |  Height: 768  |  Size: 671 kB Width: 640  |  Height: 480  |  Size: 73 kB

+ 1
- 1
src/components/Setting.vue View File

@@ -46,7 +46,7 @@ const { t } = useI18n()
<div class="setting-item-title self-center flex justify-center items-center " :data-tip="item.description" :class="!!item.description ? 'tooltip tooltip-primary tooltip-right' : ''">
{{ t(item.name) }}<div v-if="!!item.description" i-carbon-information class="ml-1 " />
</div>
<div class="tooltip tooltip-primary tooltip-left">
<div class="tooltip tooltip-primary tooltip-left" :data-tip="item.status">
<input v-model="item.status" type="range" min="0" max="1" class="range range-xs" step="0.05">
</div>
</div>


+ 1
- 1
src/pages/Personalization/train.vue View File

@@ -32,7 +32,7 @@ const { t } = useI18n()

<div class="flex justify-center flex-col items-center">
<div text-3xl class="label-title">
图像标注(云端)
模型训练(云端)
</div>
<div mt-4>
<div flex items-center>


+ 4
- 10
src/pages/about.md View File

@@ -5,17 +5,11 @@ title: About
<div class="text-center">
<!-- You can use Vue components inside markdown -->
<div i-carbon-dicom-overlay class="text-4xl -mb-6 m-auto" />
<h3>About</h3>
<h3>关于</h3>
</div>

[Vitesse](https://github.com/antfu/vitesse) is an opinionated [Vite](https://github.com/vitejs/vite) starter template made by [@antfu](https://github.com/antfu) for mocking apps swiftly. With **file-based routing**, **components auto importing**, **markdown support**, I18n, PWA and uses **TailwindCss** for styling and icons.
目前肢体障碍残障人数基数大,但缺乏较为通用和实用性较强的无障碍软硬件设备。

本软件从软件方面为肢体残障人士提供更为方便的键鼠输入服务,可搭配其他具有无障碍支持的可穿戴硬件设备使用。

```js
// syntax highlighting example
function vitesse() {
const foo = 'bar'
console.log(foo)
}
```

Check out the [GitHub repo](https://github.com/antfu/vitesse) for more details.

+ 9
- 9
src/pages/index.vue View File

@@ -76,15 +76,15 @@ onBeforeMount(async () => {
EMC
</div>
<div class="text-gray-400">
眼控/嘴控小工具
{{ t('Index.des') }}
</div>
<div class="bg-gray-100 p-3 rounded-md mt-4">
<div>实时情况:</div>
<d-toggle text="眼开" class="pt-2" :disabled="true" :checked="eyeOpen" />
<d-toggle text="嘴张" class="pt-2" :disabled="true" :checked="mouthOpen" />
<div class="bg-gray-100 p-3 rounded-md mt-4 dark:bg-gray-800 dark:text-slate-50">
<div>{{ t('Index.status') }}:</div>
<d-toggle :text="t('Index.eye_open')" class="pt-2" :disabled="true" :checked="eyeOpen" />
<d-toggle :text="t('Index.mouth_open')" class="pt-2" :disabled="true" :checked="mouthOpen" />
</div>
<d-toggle v-model:checked="settings.toggleSetting" text="启用" class="pt-4" />
<d-toggle v-model:checked="settings.tipSetting" text="触发提醒" class="pt-4" />
<d-toggle v-model:checked="settings.toggleSetting" :text="t('Index.on')" class="pt-4" />
<d-toggle v-model:checked="settings.tipSetting" :text="t('Index.tip')" class="pt-4" />
<d-select v-model:options="settings.controlSetting" class="select select-bordered select-primary mt-5" />
</div>
<div class="item-center flex flex-col pr-9 mt-5">
@@ -106,7 +106,7 @@ onBeforeMount(async () => {
<div class="indicator max-w-lg ">
<div class="indicator-item indicator-bottom">
<button v-if="!isShowImgOnTime" class="btn btn-primary" @click="setImgShow">
实时显示
{{ t('Index.OnlineShow') }}
</button>
</div>
<div class="card border">
@@ -115,7 +115,7 @@ onBeforeMount(async () => {
</div>

<figcaption class="mt-2 text-sm text-center text-gray-500 dark:text-gray-400">
{{ isShowImgOnTime ? '实时图像' : '当前图像' }}
{{ isShowImgOnTime ? t('Index.OnlineImg') : t('Index.Img') }}
</figcaption>
</figure>
</div>


Loading…
Cancel
Save