bot commited on
Commit
03eb947
·
1 Parent(s): dfd51fa

美化页面

Browse files
dist/assets/index-BXfCTQIT.css ADDED
@@ -0,0 +1 @@
 
 
1
+ h4[data-v-38683057]{margin:0}p[data-v-b86336cf]{margin:0;font-size:large}
dist/assets/index-CMj0q3Bb.js ADDED
The diff for this file is too large to render. See raw diff
 
dist/assets/index-CgPry5Ya.js DELETED
The diff for this file is too large to render. See raw diff
 
dist/assets/index-Vqu8JWjZ.css DELETED
@@ -1 +0,0 @@
1
- :root{font-family:system-ui,Avenir,Helvetica,Arial,sans-serif;line-height:1.5;font-weight:400;color-scheme:light dark;color:#ffffffde;background-color:#242424;font-synthesis:none;text-rendering:optimizeLegibility;-webkit-font-smoothing:antialiased;-moz-osx-font-smoothing:grayscale}a{font-weight:500;color:#646cff;text-decoration:inherit}a:hover{color:#535bf2}body{margin:0;display:flex;place-items:center;min-width:320px;min-height:100vh}h1{font-size:3.2em;line-height:1.1}button{border-radius:8px;border:1px solid transparent;padding:.6em 1.2em;font-size:1em;font-weight:500;font-family:inherit;background-color:#1a1a1a;cursor:pointer;transition:border-color .25s}button:hover{border-color:#646cff}button:focus,button:focus-visible{outline:4px auto -webkit-focus-ring-color}.card{padding:2em}#app{max-width:1280px;margin:0 auto;padding:2rem;text-align:center}@media (prefers-color-scheme: light){:root{color:#213547;background-color:#fff}a:hover{color:#747bff}button{background-color:#f9f9f9}}.logo[data-v-bc48f64b]{height:6em;padding:1.5em;will-change:filter;transition:filter .3s}.logo[data-v-bc48f64b]:hover{filter:drop-shadow(0 0 2em #646cffaa)}.logo.vue[data-v-bc48f64b]:hover{filter:drop-shadow(0 0 2em #42b883aa)}h4[data-v-fe6af522]{margin:0}p[data-v-b86336cf]{margin:0;font-size:large}
 
 
dist/index.html CHANGED
@@ -6,8 +6,8 @@
6
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
  <title>Alist Tool</title>
9
- <script type="module" crossorigin src="/assets/index-CgPry5Ya.js"></script>
10
- <link rel="stylesheet" crossorigin href="/assets/index-Vqu8JWjZ.css">
11
  </head>
12
 
13
  <body>
 
6
  <link rel="icon" type="image/svg+xml" href="/vite.svg" />
7
  <meta name="viewport" content="width=device-width, initial-scale=1.0" />
8
  <title>Alist Tool</title>
9
+ <script type="module" crossorigin src="/assets/index-CMj0q3Bb.js"></script>
10
+ <link rel="stylesheet" crossorigin href="/assets/index-BXfCTQIT.css">
11
  </head>
12
 
13
  <body>
package.json CHANGED
@@ -15,6 +15,8 @@
15
  },
16
  "devDependencies": {
17
  "@vitejs/plugin-vue": "^5.2.3",
 
 
18
  "vite": "^6.3.5"
19
  }
20
  }
 
15
  },
16
  "devDependencies": {
17
  "@vitejs/plugin-vue": "^5.2.3",
18
+ "unplugin-auto-import": "^19.3.0",
19
+ "unplugin-vue-components": "^28.7.0",
20
  "vite": "^6.3.5"
21
  }
22
  }
pnpm-lock.yaml CHANGED
@@ -21,6 +21,12 @@ importers:
21
  '@vitejs/plugin-vue':
22
  specifier: ^5.2.3
23
  version: 5.2.4(vite@6.3.5)(vue@3.5.16)
 
 
 
 
 
 
24
  vite:
25
  specifier: ^6.3.5
26
  version: 6.3.5
@@ -364,9 +370,36 @@ packages:
364
  '@vue/shared@3.5.16':
365
  resolution: {integrity: sha512-c/0fWy3Jw6Z8L9FmTyYfkpM5zklnqqa9+a6dz3DvONRKW2NEbh46BP0FHuLFSWi2TnQEtp91Z6zOWNrU6QiyPg==}
366
 
 
 
 
 
 
 
 
 
 
367
  async-validator@4.2.5:
368
  resolution: {integrity: sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==}
369
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
370
  css-render@0.15.14:
371
  resolution: {integrity: sha512-9nF4PdUle+5ta4W5SyZdLCCmFd37uVimSjg1evcTqKJCyvCEEj12WKzOSBNak6r4im4J4iYXKH1OWpUV5LBYFg==}
372
 
@@ -384,6 +417,15 @@ packages:
384
  date-fns@3.6.0:
385
  resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==}
386
 
 
 
 
 
 
 
 
 
 
387
  entities@4.5.0:
388
  resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
389
  engines: {node: '>=0.12'}
@@ -393,12 +435,22 @@ packages:
393
  engines: {node: '>=18'}
394
  hasBin: true
395
 
 
 
 
 
396
  estree-walker@2.0.2:
397
  resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
398
 
 
 
 
399
  evtd@0.2.4:
400
  resolution: {integrity: sha512-qaeGN5bx63s/AXgQo8gj6fBkxge+OoLddLniox5qtLAEY5HSnuSlISXVPxnSae1dWblvTh4/HoMIB+mbMsvZzw==}
401
 
 
 
 
402
  fdir@6.4.6:
403
  resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}
404
  peerDependencies:
@@ -407,15 +459,46 @@ packages:
407
  picomatch:
408
  optional: true
409
 
 
 
 
 
410
  fsevents@2.3.3:
411
  resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
412
  engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
413
  os: [darwin]
414
 
 
 
 
 
415
  highlight.js@11.11.1:
416
  resolution: {integrity: sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==}
417
  engines: {node: '>=12.0.0'}
418
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
419
  lodash-es@4.17.21:
420
  resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==}
421
 
@@ -425,6 +508,12 @@ packages:
425
  magic-string@0.30.17:
426
  resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
427
 
 
 
 
 
 
 
428
  naive-ui@2.41.1:
429
  resolution: {integrity: sha512-TRv+GSCHnlbpiTJoz1xS1/l6Vn9/refjzJ6vFfXLuvBkSLB7ow6ERuLf2AQOqUrFSdM542EBJjoK1iM1S6X2lA==}
430
  peerDependencies:
@@ -435,22 +524,49 @@ packages:
435
  engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
436
  hasBin: true
437
 
 
 
 
 
 
 
 
438
  picocolors@1.1.1:
439
  resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
440
 
 
 
 
 
441
  picomatch@4.0.2:
442
  resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
443
  engines: {node: '>=12'}
444
 
 
 
 
 
 
 
445
  postcss@8.5.4:
446
  resolution: {integrity: sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==}
447
  engines: {node: ^10 || ^12 || >=14}
448
 
 
 
 
 
 
 
 
449
  rollup@4.43.0:
450
  resolution: {integrity: sha512-wdN2Kd3Twh8MAEOEJZsuxuLKCsBEo4PVNLK6tQWAn10VhsVewQLzcucMgLolRlhFybGxfclbPeEYBaP6RvUFGg==}
451
  engines: {node: '>=18.0.0', npm: '>=8.0.0'}
452
  hasBin: true
453
 
 
 
 
454
  seemly@0.3.10:
455
  resolution: {integrity: sha512-2+SMxtG1PcsL0uyhkumlOU6Qo9TAQ/WyH7tthnPIOQB05/12jz9naq6GZ6iZ6ApVsO3rr2gsnTf3++OV63kE1Q==}
456
 
@@ -458,13 +574,60 @@ packages:
458
  resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
459
  engines: {node: '>=0.10.0'}
460
 
 
 
 
461
  tinyglobby@0.2.14:
462
  resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}
463
  engines: {node: '>=12.0.0'}
464
 
 
 
 
 
465
  treemate@0.3.11:
466
  resolution: {integrity: sha512-M8RGFoKtZ8dF+iwJfAJTOH/SM4KluKOKRJpjCMhI8bG3qB74zrFoArKZ62ll0Fr3mqkMJiQOmWYkdYgDeITYQg==}
467
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
468
  vdirs@0.1.8:
469
  resolution: {integrity: sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==}
470
  peerDependencies:
@@ -533,6 +696,9 @@ packages:
533
  peerDependencies:
534
  vue: ^3.0.11
535
 
 
 
 
536
  snapshots:
537
 
538
  '@babel/helper-string-parser@7.27.1': {}
@@ -768,8 +934,37 @@ snapshots:
768
 
769
  '@vue/shared@3.5.16': {}
770
 
 
 
 
 
 
 
 
771
  async-validator@4.2.5: {}
772
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
773
  css-render@0.15.14:
774
  dependencies:
775
  '@emotion/hash': 0.8.0
@@ -785,6 +980,10 @@ snapshots:
785
 
786
  date-fns@3.6.0: {}
787
 
 
 
 
 
788
  entities@4.5.0: {}
789
 
790
  esbuild@0.25.5:
@@ -815,19 +1014,55 @@ snapshots:
815
  '@esbuild/win32-ia32': 0.25.5
816
  '@esbuild/win32-x64': 0.25.5
817
 
 
 
818
  estree-walker@2.0.2: {}
819
 
 
 
 
 
820
  evtd@0.2.4: {}
821
 
 
 
822
  fdir@6.4.6(picomatch@4.0.2):
823
  optionalDependencies:
824
  picomatch: 4.0.2
825
 
 
 
 
 
826
  fsevents@2.3.3:
827
  optional: true
828
 
 
 
 
 
829
  highlight.js@11.11.1: {}
830
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
831
  lodash-es@4.17.21: {}
832
 
833
  lodash@4.17.21: {}
@@ -836,6 +1071,15 @@ snapshots:
836
  dependencies:
837
  '@jridgewell/sourcemap-codec': 1.5.0
838
 
 
 
 
 
 
 
 
 
 
839
  naive-ui@2.41.1(vue@3.5.16):
840
  dependencies:
841
  '@css-render/plugin-bem': 0.15.14(css-render@0.15.14)
@@ -861,16 +1105,40 @@ snapshots:
861
 
862
  nanoid@3.3.11: {}
863
 
 
 
 
 
864
  picocolors@1.1.1: {}
865
 
 
 
866
  picomatch@4.0.2: {}
867
 
 
 
 
 
 
 
 
 
 
 
 
 
868
  postcss@8.5.4:
869
  dependencies:
870
  nanoid: 3.3.11
871
  picocolors: 1.1.1
872
  source-map-js: 1.2.1
873
 
 
 
 
 
 
 
874
  rollup@4.43.0:
875
  dependencies:
876
  '@types/estree': 1.0.7
@@ -897,17 +1165,82 @@ snapshots:
897
  '@rollup/rollup-win32-x64-msvc': 4.43.0
898
  fsevents: 2.3.3
899
 
 
 
900
  seemly@0.3.10: {}
901
 
902
  source-map-js@1.2.1: {}
903
 
 
 
 
 
904
  tinyglobby@0.2.14:
905
  dependencies:
906
  fdir: 6.4.6(picomatch@4.0.2)
907
  picomatch: 4.0.2
908
 
 
 
 
 
909
  treemate@0.3.11: {}
910
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
911
  vdirs@0.1.8(vue@3.5.16):
912
  dependencies:
913
  evtd: 0.2.4
@@ -952,3 +1285,5 @@ snapshots:
952
  vdirs: 0.1.8(vue@3.5.16)
953
  vooks: 0.2.12(vue@3.5.16)
954
  vue: 3.5.16
 
 
 
21
  '@vitejs/plugin-vue':
22
  specifier: ^5.2.3
23
  version: 5.2.4(vite@6.3.5)(vue@3.5.16)
24
+ unplugin-auto-import:
25
+ specifier: ^19.3.0
26
+ version: 19.3.0
27
+ unplugin-vue-components:
28
+ specifier: ^28.7.0
29
+ version: 28.7.0(@babel/parser@7.27.5)(vue@3.5.16)
30
  vite:
31
  specifier: ^6.3.5
32
  version: 6.3.5
 
370
  '@vue/shared@3.5.16':
371
  resolution: {integrity: sha512-c/0fWy3Jw6Z8L9FmTyYfkpM5zklnqqa9+a6dz3DvONRKW2NEbh46BP0FHuLFSWi2TnQEtp91Z6zOWNrU6QiyPg==}
372
 
373
+ acorn@8.15.0:
374
+ resolution: {integrity: sha512-NZyJarBfL7nWwIq+FDL6Zp/yHEhePMNnnJ0y3qfieCrmNvYct8uvtiV41UvlSe6apAfk0fY1FbWx+NwfmpvtTg==}
375
+ engines: {node: '>=0.4.0'}
376
+ hasBin: true
377
+
378
+ anymatch@3.1.3:
379
+ resolution: {integrity: sha512-KMReFUr0B4t+D+OBkjR3KYqvocp2XaSzO55UcB6mgQMd3KbcE+mWTyvVV7D/zsdEbNnV6acZUutkiHQXvTr1Rw==}
380
+ engines: {node: '>= 8'}
381
+
382
  async-validator@4.2.5:
383
  resolution: {integrity: sha512-7HhHjtERjqlNbZtqNqy2rckN/SpOOlmDliet+lP7k+eKZEjPk3DgyeU9lIXLdeLz0uBbbVp+9Qdow9wJWgwwfg==}
384
 
385
+ binary-extensions@2.3.0:
386
+ resolution: {integrity: sha512-Ceh+7ox5qe7LJuLHoY0feh3pHuUDHAcRUeyL2VYghZwfpkNIy/+8Ocg0a3UuSoYzavmylwuLWQOf3hl0jjMMIw==}
387
+ engines: {node: '>=8'}
388
+
389
+ braces@3.0.3:
390
+ resolution: {integrity: sha512-yQbXgO/OSZVD2IsiLlro+7Hf6Q18EJrKSEsdoMzKePKXct3gvD8oLcOQdIzGupr5Fj+EDe8gO/lxc1BzfMpxvA==}
391
+ engines: {node: '>=8'}
392
+
393
+ chokidar@3.6.0:
394
+ resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
395
+ engines: {node: '>= 8.10.0'}
396
+
397
+ confbox@0.1.8:
398
+ resolution: {integrity: sha512-RMtmw0iFkeR4YV+fUOSucriAQNb9g8zFR52MWCtl+cCZOFRNL6zeB395vPzFhEjjn4fMxXudmELnl/KF/WrK6w==}
399
+
400
+ confbox@0.2.2:
401
+ resolution: {integrity: sha512-1NB+BKqhtNipMsov4xI/NnhCKp9XG9NamYp5PVm9klAT0fsrNPjaFICsCFhNhwZJKNh7zB/3q8qXz0E9oaMNtQ==}
402
+
403
  css-render@0.15.14:
404
  resolution: {integrity: sha512-9nF4PdUle+5ta4W5SyZdLCCmFd37uVimSjg1evcTqKJCyvCEEj12WKzOSBNak6r4im4J4iYXKH1OWpUV5LBYFg==}
405
 
 
417
  date-fns@3.6.0:
418
  resolution: {integrity: sha512-fRHTG8g/Gif+kSh50gaGEdToemgfj74aRX3swtiouboip5JDLAyDE9F11nHMIcvOaXeOC6D7SpNhi7uFyB7Uww==}
419
 
420
+ debug@4.4.1:
421
+ resolution: {integrity: sha512-KcKCqiftBJcZr++7ykoDIEwSa3XWowTfNPo92BYxjXiyYEVrUQh2aLyhxBCwww+heortUFxEJYcRzosstTEBYQ==}
422
+ engines: {node: '>=6.0'}
423
+ peerDependencies:
424
+ supports-color: '*'
425
+ peerDependenciesMeta:
426
+ supports-color:
427
+ optional: true
428
+
429
  entities@4.5.0:
430
  resolution: {integrity: sha512-V0hjH4dGPh9Ao5p0MoRY6BVqtwCjhz6vI5LT8AJ55H+4g9/4vbHx1I54fS0XuclLhDHArPQCiMjDxjaL8fPxhw==}
431
  engines: {node: '>=0.12'}
 
435
  engines: {node: '>=18'}
436
  hasBin: true
437
 
438
+ escape-string-regexp@5.0.0:
439
+ resolution: {integrity: sha512-/veY75JbMK4j1yjvuUxuVsiS/hr/4iHs9FTT6cgTexxdE0Ly/glccBAkloH/DofkjRbZU3bnoj38mOmhkZ0lHw==}
440
+ engines: {node: '>=12'}
441
+
442
  estree-walker@2.0.2:
443
  resolution: {integrity: sha512-Rfkk/Mp/DL7JVje3u18FxFujQlTNR2q6QfMSMB7AvCBx91NGj/ba3kCfza0f6dVDbw7YlRf/nDrn7pQrCCyQ/w==}
444
 
445
+ estree-walker@3.0.3:
446
+ resolution: {integrity: sha512-7RUKfXgSMMkzt6ZuXmqapOurLGPPfgj6l9uRZ7lRGolvk0y2yocc35LdcxKC5PQZdn2DMqioAQ2NoWcrTKmm6g==}
447
+
448
  evtd@0.2.4:
449
  resolution: {integrity: sha512-qaeGN5bx63s/AXgQo8gj6fBkxge+OoLddLniox5qtLAEY5HSnuSlISXVPxnSae1dWblvTh4/HoMIB+mbMsvZzw==}
450
 
451
+ exsolve@1.0.5:
452
+ resolution: {integrity: sha512-pz5dvkYYKQ1AHVrgOzBKWeP4u4FRb3a6DNK2ucr0OoNwYIU4QWsJ+NM36LLzORT+z845MzKHHhpXiUF5nvQoJg==}
453
+
454
  fdir@6.4.6:
455
  resolution: {integrity: sha512-hiFoqpyZcfNm1yc4u8oWCf9A2c4D3QjCrks3zmoVKVxpQRzmPNar1hUJcBG2RQHvEVGDN+Jm81ZheVLAQMK6+w==}
456
  peerDependencies:
 
459
  picomatch:
460
  optional: true
461
 
462
+ fill-range@7.1.1:
463
+ resolution: {integrity: sha512-YsGpe3WHLK8ZYi4tWDg2Jy3ebRz2rXowDxnld4bkQB00cc/1Zw9AWnC0i9ztDJitivtQvaI9KaLyKrc+hBW0yg==}
464
+ engines: {node: '>=8'}
465
+
466
  fsevents@2.3.3:
467
  resolution: {integrity: sha512-5xoDfX+fL7faATnagmWPpbFtwh/R77WmMMqqHGS65C3vvB0YHrgF+B1YmZ3441tMj5n63k0212XNoJwzlhffQw==}
468
  engines: {node: ^8.16.0 || ^10.6.0 || >=11.0.0}
469
  os: [darwin]
470
 
471
+ glob-parent@5.1.2:
472
+ resolution: {integrity: sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==}
473
+ engines: {node: '>= 6'}
474
+
475
  highlight.js@11.11.1:
476
  resolution: {integrity: sha512-Xwwo44whKBVCYoliBQwaPvtd/2tYFkRQtXDWj1nackaV2JPXx3L0+Jvd8/qCJ2p+ML0/XVkJ2q+Mr+UVdpJK5w==}
477
  engines: {node: '>=12.0.0'}
478
 
479
+ is-binary-path@2.1.0:
480
+ resolution: {integrity: sha512-ZMERYes6pDydyuGidse7OsHxtbI7WVeUEozgR/g7rd0xUimYNlvZRE/K2MgZTjWy725IfelLeVcEM97mmtRGXw==}
481
+ engines: {node: '>=8'}
482
+
483
+ is-extglob@2.1.1:
484
+ resolution: {integrity: sha512-SbKbANkN603Vi4jEZv49LeVJMn4yGwsbzZworEoyEiutsN3nJYdbO36zfhGJ6QEDpOZIFkDtnq5JRxmvl3jsoQ==}
485
+ engines: {node: '>=0.10.0'}
486
+
487
+ is-glob@4.0.3:
488
+ resolution: {integrity: sha512-xelSayHH36ZgE7ZWhli7pW34hNbNl8Ojv5KVmkJD4hBdD3th8Tfk9vYasLM+mXWOZhFkgZfxhLSnrwRr4elSSg==}
489
+ engines: {node: '>=0.10.0'}
490
+
491
+ is-number@7.0.0:
492
+ resolution: {integrity: sha512-41Cifkg6e8TylSpdtTpeLVMqvSBEVzTttHvERD741+pnZ8ANv0004MRL43QKPDlK9cGvNp6NZWZUBlbGXYxxng==}
493
+ engines: {node: '>=0.12.0'}
494
+
495
+ js-tokens@9.0.1:
496
+ resolution: {integrity: sha512-mxa9E9ITFOt0ban3j6L5MpjwegGz6lBQmM1IJkWeBZGcMxto50+eWdjC/52xDbS2vy0k7vIMK0Fe2wfL9OQSpQ==}
497
+
498
+ local-pkg@1.1.1:
499
+ resolution: {integrity: sha512-WunYko2W1NcdfAFpuLUoucsgULmgDBRkdxHxWQ7mK0cQqwPiy8E1enjuRBrhLtZkB5iScJ1XIPdhVEFK8aOLSg==}
500
+ engines: {node: '>=14'}
501
+
502
  lodash-es@4.17.21:
503
  resolution: {integrity: sha512-mKnC+QJ9pWVzv+C4/U3rRsHapFfHvQFoFB92e52xeyGMcX6/OlIl78je1u8vePzYZSkkogMPJ2yjxxsb89cxyw==}
504
 
 
508
  magic-string@0.30.17:
509
  resolution: {integrity: sha512-sNPKHvyjVf7gyjwS4xGTaW/mCnF8wnjtifKBEhxfZ7E/S8tQ0rssrwGNn6q8JH/ohItJfSQp9mBtQYuTlH5QnA==}
510
 
511
+ mlly@1.7.4:
512
+ resolution: {integrity: sha512-qmdSIPC4bDJXgZTCR7XosJiNKySV7O215tsPtDN9iEO/7q/76b/ijtgRu/+epFXSJhijtTCCGp3DWS549P3xKw==}
513
+
514
+ ms@2.1.3:
515
+ resolution: {integrity: sha512-6FlzubTLZG3J2a/NVCAleEhjzq5oxgHyaCU9yYXvcLsvoVaHJq/s5xXI6/XXP6tz7R9xAOtHnSO/tXtF3WRTlA==}
516
+
517
  naive-ui@2.41.1:
518
  resolution: {integrity: sha512-TRv+GSCHnlbpiTJoz1xS1/l6Vn9/refjzJ6vFfXLuvBkSLB7ow6ERuLf2AQOqUrFSdM542EBJjoK1iM1S6X2lA==}
519
  peerDependencies:
 
524
  engines: {node: ^10 || ^12 || ^13.7 || ^14 || >=15.0.1}
525
  hasBin: true
526
 
527
+ normalize-path@3.0.0:
528
+ resolution: {integrity: sha512-6eZs5Ls3WtCisHWp9S2GUy8dqkpGi4BVSz3GaqiE6ezub0512ESztXUwUB6C6IKbQkY2Pnb/mD4WYojCRwcwLA==}
529
+ engines: {node: '>=0.10.0'}
530
+
531
+ pathe@2.0.3:
532
+ resolution: {integrity: sha512-WUjGcAqP1gQacoQe+OBJsFA7Ld4DyXuUIjZ5cc75cLHvJ7dtNsTugphxIADwspS+AraAUePCKrSVtPLFj/F88w==}
533
+
534
  picocolors@1.1.1:
535
  resolution: {integrity: sha512-xceH2snhtb5M9liqDsmEw56le376mTZkEX/jEb/RxNFyegNul7eNslCXP9FDj/Lcu0X8KEyMceP2ntpaHrDEVA==}
536
 
537
+ picomatch@2.3.1:
538
+ resolution: {integrity: sha512-JU3teHTNjmE2VCGFzuY8EXzCDVwEqB2a8fsIvwaStHhAWJEeVd1o1QD80CU6+ZdEXXSLbSsuLwJjkCBWqRQUVA==}
539
+ engines: {node: '>=8.6'}
540
+
541
  picomatch@4.0.2:
542
  resolution: {integrity: sha512-M7BAV6Rlcy5u+m6oPhAPFgJTzAioX/6B0DxyvDlo9l8+T3nLKbrczg2WLUyzd45L8RqfUMyGPzekbMvX2Ldkwg==}
543
  engines: {node: '>=12'}
544
 
545
+ pkg-types@1.3.1:
546
+ resolution: {integrity: sha512-/Jm5M4RvtBFVkKWRu2BLUTNP8/M2a+UwuAX+ae4770q1qVGtfjG+WTCupoZixokjmHiry8uI+dlY8KXYV5HVVQ==}
547
+
548
+ pkg-types@2.1.0:
549
+ resolution: {integrity: sha512-wmJwA+8ihJixSoHKxZJRBQG1oY8Yr9pGLzRmSsNms0iNWyHHAlZCa7mmKiFR10YPZuz/2k169JiS/inOjBCZ2A==}
550
+
551
  postcss@8.5.4:
552
  resolution: {integrity: sha512-QSa9EBe+uwlGTFmHsPKokv3B/oEMQZxfqW0QqNCyhpa6mB1afzulwn8hihglqAb2pOw+BJgNlmXQ8la2VeHB7w==}
553
  engines: {node: ^10 || ^12 || >=14}
554
 
555
+ quansync@0.2.10:
556
+ resolution: {integrity: sha512-t41VRkMYbkHyCYmOvx/6URnN80H7k4X0lLdBMGsz+maAwrJQYB1djpV6vHrQIBE0WBSGqhtEHrK9U3DWWH8v7A==}
557
+
558
+ readdirp@3.6.0:
559
+ resolution: {integrity: sha512-hOS089on8RduqdbhvQ5Z37A0ESjsqz6qnRcffsMU3495FuTdqSm+7bhJ29JvIOsBDEEnan5DPu9t3To9VRlMzA==}
560
+ engines: {node: '>=8.10.0'}
561
+
562
  rollup@4.43.0:
563
  resolution: {integrity: sha512-wdN2Kd3Twh8MAEOEJZsuxuLKCsBEo4PVNLK6tQWAn10VhsVewQLzcucMgLolRlhFybGxfclbPeEYBaP6RvUFGg==}
564
  engines: {node: '>=18.0.0', npm: '>=8.0.0'}
565
  hasBin: true
566
 
567
+ scule@1.3.0:
568
+ resolution: {integrity: sha512-6FtHJEvt+pVMIB9IBY+IcCJ6Z5f1iQnytgyfKMhDKgmzYG+TeH/wx1y3l27rshSbLiSanrR9ffZDrEsmjlQF2g==}
569
+
570
  seemly@0.3.10:
571
  resolution: {integrity: sha512-2+SMxtG1PcsL0uyhkumlOU6Qo9TAQ/WyH7tthnPIOQB05/12jz9naq6GZ6iZ6ApVsO3rr2gsnTf3++OV63kE1Q==}
572
 
 
574
  resolution: {integrity: sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA==}
575
  engines: {node: '>=0.10.0'}
576
 
577
+ strip-literal@3.0.0:
578
+ resolution: {integrity: sha512-TcccoMhJOM3OebGhSBEmp3UZ2SfDMZUEBdRA/9ynfLi8yYajyWX3JiXArcJt4Umh4vISpspkQIY8ZZoCqjbviA==}
579
+
580
  tinyglobby@0.2.14:
581
  resolution: {integrity: sha512-tX5e7OM1HnYr2+a2C/4V0htOcSQcoSTH9KgJnVvNm5zm/cyEWKJ7j7YutsH9CxMdtOkkLFy2AHrMci9IM8IPZQ==}
582
  engines: {node: '>=12.0.0'}
583
 
584
+ to-regex-range@5.0.1:
585
+ resolution: {integrity: sha512-65P7iz6X5yEr1cwcgvQxbbIw7Uk3gOy5dIdtZ4rDveLqhrdJP+Li/Hx6tyK0NEb+2GCyneCMJiGqrADCSNk8sQ==}
586
+ engines: {node: '>=8.0'}
587
+
588
  treemate@0.3.11:
589
  resolution: {integrity: sha512-M8RGFoKtZ8dF+iwJfAJTOH/SM4KluKOKRJpjCMhI8bG3qB74zrFoArKZ62ll0Fr3mqkMJiQOmWYkdYgDeITYQg==}
590
 
591
+ ufo@1.6.1:
592
+ resolution: {integrity: sha512-9a4/uxlTWJ4+a5i0ooc1rU7C7YOw3wT+UGqdeNNHWnOF9qcMBgLRS+4IYUqbczewFx4mLEig6gawh7X6mFlEkA==}
593
+
594
+ unimport@4.2.0:
595
+ resolution: {integrity: sha512-mYVtA0nmzrysnYnyb3ALMbByJ+Maosee2+WyE0puXl+Xm2bUwPorPaaeZt0ETfuroPOtG8jj1g/qeFZ6buFnag==}
596
+ engines: {node: '>=18.12.0'}
597
+
598
+ unplugin-auto-import@19.3.0:
599
+ resolution: {integrity: sha512-iIi0u4Gq2uGkAOGqlPJOAMI8vocvjh1clGTfSK4SOrJKrt+tirrixo/FjgBwXQNNdS7ofcr7OxzmOb/RjWxeEQ==}
600
+ engines: {node: '>=14'}
601
+ peerDependencies:
602
+ '@nuxt/kit': ^3.2.2
603
+ '@vueuse/core': '*'
604
+ peerDependenciesMeta:
605
+ '@nuxt/kit':
606
+ optional: true
607
+ '@vueuse/core':
608
+ optional: true
609
+
610
+ unplugin-utils@0.2.4:
611
+ resolution: {integrity: sha512-8U/MtpkPkkk3Atewj1+RcKIjb5WBimZ/WSLhhR3w6SsIj8XJuKTacSP8g+2JhfSGw0Cb125Y+2zA/IzJZDVbhA==}
612
+ engines: {node: '>=18.12.0'}
613
+
614
+ unplugin-vue-components@28.7.0:
615
+ resolution: {integrity: sha512-3SuWAHlTjOiZckqRBGXRdN/k6IMmKyt2Ch5/+DKwYaT321H0ItdZDvW4r8/YkEKQpN9TN3F/SZ0W342gQROC3Q==}
616
+ engines: {node: '>=14'}
617
+ peerDependencies:
618
+ '@babel/parser': ^7.15.8
619
+ '@nuxt/kit': ^3.2.2
620
+ vue: 2 || 3
621
+ peerDependenciesMeta:
622
+ '@babel/parser':
623
+ optional: true
624
+ '@nuxt/kit':
625
+ optional: true
626
+
627
+ unplugin@2.3.5:
628
+ resolution: {integrity: sha512-RyWSb5AHmGtjjNQ6gIlA67sHOsWpsbWpwDokLwTcejVdOjEkJZh7QKu14J00gDDVSh8kGH4KYC/TNBceXFZhtw==}
629
+ engines: {node: '>=18.12.0'}
630
+
631
  vdirs@0.1.8:
632
  resolution: {integrity: sha512-H9V1zGRLQZg9b+GdMk8MXDN2Lva0zx72MPahDKc30v+DtwKjfyOSXWRIX4t2mhDubM1H09gPhWeth/BJWPHGUw==}
633
  peerDependencies:
 
696
  peerDependencies:
697
  vue: ^3.0.11
698
 
699
+ webpack-virtual-modules@0.6.2:
700
+ resolution: {integrity: sha512-66/V2i5hQanC51vBQKPH4aI8NMAcBW59FVBs+rC7eGHupMyfn34q7rZIE+ETlJ+XTevqfUhVVBgSUNSW2flEUQ==}
701
+
702
  snapshots:
703
 
704
  '@babel/helper-string-parser@7.27.1': {}
 
934
 
935
  '@vue/shared@3.5.16': {}
936
 
937
+ acorn@8.15.0: {}
938
+
939
+ anymatch@3.1.3:
940
+ dependencies:
941
+ normalize-path: 3.0.0
942
+ picomatch: 2.3.1
943
+
944
  async-validator@4.2.5: {}
945
 
946
+ binary-extensions@2.3.0: {}
947
+
948
+ braces@3.0.3:
949
+ dependencies:
950
+ fill-range: 7.1.1
951
+
952
+ chokidar@3.6.0:
953
+ dependencies:
954
+ anymatch: 3.1.3
955
+ braces: 3.0.3
956
+ glob-parent: 5.1.2
957
+ is-binary-path: 2.1.0
958
+ is-glob: 4.0.3
959
+ normalize-path: 3.0.0
960
+ readdirp: 3.6.0
961
+ optionalDependencies:
962
+ fsevents: 2.3.3
963
+
964
+ confbox@0.1.8: {}
965
+
966
+ confbox@0.2.2: {}
967
+
968
  css-render@0.15.14:
969
  dependencies:
970
  '@emotion/hash': 0.8.0
 
980
 
981
  date-fns@3.6.0: {}
982
 
983
+ debug@4.4.1:
984
+ dependencies:
985
+ ms: 2.1.3
986
+
987
  entities@4.5.0: {}
988
 
989
  esbuild@0.25.5:
 
1014
  '@esbuild/win32-ia32': 0.25.5
1015
  '@esbuild/win32-x64': 0.25.5
1016
 
1017
+ escape-string-regexp@5.0.0: {}
1018
+
1019
  estree-walker@2.0.2: {}
1020
 
1021
+ estree-walker@3.0.3:
1022
+ dependencies:
1023
+ '@types/estree': 1.0.7
1024
+
1025
  evtd@0.2.4: {}
1026
 
1027
+ exsolve@1.0.5: {}
1028
+
1029
  fdir@6.4.6(picomatch@4.0.2):
1030
  optionalDependencies:
1031
  picomatch: 4.0.2
1032
 
1033
+ fill-range@7.1.1:
1034
+ dependencies:
1035
+ to-regex-range: 5.0.1
1036
+
1037
  fsevents@2.3.3:
1038
  optional: true
1039
 
1040
+ glob-parent@5.1.2:
1041
+ dependencies:
1042
+ is-glob: 4.0.3
1043
+
1044
  highlight.js@11.11.1: {}
1045
 
1046
+ is-binary-path@2.1.0:
1047
+ dependencies:
1048
+ binary-extensions: 2.3.0
1049
+
1050
+ is-extglob@2.1.1: {}
1051
+
1052
+ is-glob@4.0.3:
1053
+ dependencies:
1054
+ is-extglob: 2.1.1
1055
+
1056
+ is-number@7.0.0: {}
1057
+
1058
+ js-tokens@9.0.1: {}
1059
+
1060
+ local-pkg@1.1.1:
1061
+ dependencies:
1062
+ mlly: 1.7.4
1063
+ pkg-types: 2.1.0
1064
+ quansync: 0.2.10
1065
+
1066
  lodash-es@4.17.21: {}
1067
 
1068
  lodash@4.17.21: {}
 
1071
  dependencies:
1072
  '@jridgewell/sourcemap-codec': 1.5.0
1073
 
1074
+ mlly@1.7.4:
1075
+ dependencies:
1076
+ acorn: 8.15.0
1077
+ pathe: 2.0.3
1078
+ pkg-types: 1.3.1
1079
+ ufo: 1.6.1
1080
+
1081
+ ms@2.1.3: {}
1082
+
1083
  naive-ui@2.41.1(vue@3.5.16):
1084
  dependencies:
1085
  '@css-render/plugin-bem': 0.15.14(css-render@0.15.14)
 
1105
 
1106
  nanoid@3.3.11: {}
1107
 
1108
+ normalize-path@3.0.0: {}
1109
+
1110
+ pathe@2.0.3: {}
1111
+
1112
  picocolors@1.1.1: {}
1113
 
1114
+ picomatch@2.3.1: {}
1115
+
1116
  picomatch@4.0.2: {}
1117
 
1118
+ pkg-types@1.3.1:
1119
+ dependencies:
1120
+ confbox: 0.1.8
1121
+ mlly: 1.7.4
1122
+ pathe: 2.0.3
1123
+
1124
+ pkg-types@2.1.0:
1125
+ dependencies:
1126
+ confbox: 0.2.2
1127
+ exsolve: 1.0.5
1128
+ pathe: 2.0.3
1129
+
1130
  postcss@8.5.4:
1131
  dependencies:
1132
  nanoid: 3.3.11
1133
  picocolors: 1.1.1
1134
  source-map-js: 1.2.1
1135
 
1136
+ quansync@0.2.10: {}
1137
+
1138
+ readdirp@3.6.0:
1139
+ dependencies:
1140
+ picomatch: 2.3.1
1141
+
1142
  rollup@4.43.0:
1143
  dependencies:
1144
  '@types/estree': 1.0.7
 
1165
  '@rollup/rollup-win32-x64-msvc': 4.43.0
1166
  fsevents: 2.3.3
1167
 
1168
+ scule@1.3.0: {}
1169
+
1170
  seemly@0.3.10: {}
1171
 
1172
  source-map-js@1.2.1: {}
1173
 
1174
+ strip-literal@3.0.0:
1175
+ dependencies:
1176
+ js-tokens: 9.0.1
1177
+
1178
  tinyglobby@0.2.14:
1179
  dependencies:
1180
  fdir: 6.4.6(picomatch@4.0.2)
1181
  picomatch: 4.0.2
1182
 
1183
+ to-regex-range@5.0.1:
1184
+ dependencies:
1185
+ is-number: 7.0.0
1186
+
1187
  treemate@0.3.11: {}
1188
 
1189
+ ufo@1.6.1: {}
1190
+
1191
+ unimport@4.2.0:
1192
+ dependencies:
1193
+ acorn: 8.15.0
1194
+ escape-string-regexp: 5.0.0
1195
+ estree-walker: 3.0.3
1196
+ local-pkg: 1.1.1
1197
+ magic-string: 0.30.17
1198
+ mlly: 1.7.4
1199
+ pathe: 2.0.3
1200
+ picomatch: 4.0.2
1201
+ pkg-types: 2.1.0
1202
+ scule: 1.3.0
1203
+ strip-literal: 3.0.0
1204
+ tinyglobby: 0.2.14
1205
+ unplugin: 2.3.5
1206
+ unplugin-utils: 0.2.4
1207
+
1208
+ unplugin-auto-import@19.3.0:
1209
+ dependencies:
1210
+ local-pkg: 1.1.1
1211
+ magic-string: 0.30.17
1212
+ picomatch: 4.0.2
1213
+ unimport: 4.2.0
1214
+ unplugin: 2.3.5
1215
+ unplugin-utils: 0.2.4
1216
+
1217
+ unplugin-utils@0.2.4:
1218
+ dependencies:
1219
+ pathe: 2.0.3
1220
+ picomatch: 4.0.2
1221
+
1222
+ unplugin-vue-components@28.7.0(@babel/parser@7.27.5)(vue@3.5.16):
1223
+ dependencies:
1224
+ chokidar: 3.6.0
1225
+ debug: 4.4.1
1226
+ local-pkg: 1.1.1
1227
+ magic-string: 0.30.17
1228
+ mlly: 1.7.4
1229
+ tinyglobby: 0.2.14
1230
+ unplugin: 2.3.5
1231
+ unplugin-utils: 0.2.4
1232
+ vue: 3.5.16
1233
+ optionalDependencies:
1234
+ '@babel/parser': 7.27.5
1235
+ transitivePeerDependencies:
1236
+ - supports-color
1237
+
1238
+ unplugin@2.3.5:
1239
+ dependencies:
1240
+ acorn: 8.15.0
1241
+ picomatch: 4.0.2
1242
+ webpack-virtual-modules: 0.6.2
1243
+
1244
  vdirs@0.1.8(vue@3.5.16):
1245
  dependencies:
1246
  evtd: 0.2.4
 
1285
  vdirs: 0.1.8(vue@3.5.16)
1286
  vooks: 0.2.12(vue@3.5.16)
1287
  vue: 3.5.16
1288
+
1289
+ webpack-virtual-modules@0.6.2: {}
src/App.vue CHANGED
@@ -1,22 +1,35 @@
 
 
 
 
 
 
 
 
 
 
1
  <script setup>
 
 
2
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
3
  </script>
4
 
5
- <template>
6
- <router-view />
7
- </template>
8
 
9
  <style scoped>
10
- .logo {
11
- height: 6em;
12
- padding: 1.5em;
13
- will-change: filter;
14
- transition: filter 300ms;
15
- }
16
- .logo:hover {
17
- filter: drop-shadow(0 0 2em #646cffaa);
18
- }
19
- .logo.vue:hover {
20
- filter: drop-shadow(0 0 2em #42b883aa);
21
- }
22
  </style>
 
1
+ <template>
2
+ <n-card title="Token工具">
3
+ <n-tabs type="segment" :value="tabValue" @update:value="handleTabChange">
4
+ <n-tab-pane name="Home" tab="Onedrive" />
5
+ </n-tabs>
6
+ <router-view />
7
+ </n-card>
8
+ </template>
9
+
10
+
11
  <script setup>
12
+ import { computed } from 'vue'
13
+ import { useRoute, useRouter } from 'vue-router'
14
 
15
+ const router = useRouter()
16
+ const route = useRoute()
17
+ const tabValue = computed(() => {
18
+ const path = route.path
19
+ if (path.startsWith('/onedrive/callback')) {
20
+ return 'CallBack'
21
+ } else {
22
+ return 'Home' // 默认 fallback
23
+ }
24
+ })
25
+
26
+ function handleTabChange(val) {
27
+ router.push({ name: val })
28
+ }
29
  </script>
30
 
31
+
 
 
32
 
33
  <style scoped>
34
+
 
 
 
 
 
 
 
 
 
 
 
35
  </style>
src/components/onedrive/Request.vue CHANGED
@@ -1,5 +1,4 @@
1
  <script lang="ts" setup>
2
- import { NInput, NSelect, NButton, NSpace } from 'naive-ui'
3
  import { reactive, watch } from 'vue';
4
 
5
  const zones = {
@@ -34,6 +33,22 @@ const zones = {
34
  "Azure US GOV",
35
  ],
36
  };
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
37
  const data = reactive({
38
  zone: "global",
39
  client_id: "",
@@ -77,25 +92,30 @@ const getToken = () => {
77
  </script>
78
 
79
  <template>
80
- <NSpace vertical size="large">
81
- <h4>zone</h4>
82
- <NSelect v-model:value="data.zone" size="large" :options="Object.keys(zones).map(zone => {
83
- return {
84
- label: zones[zone][3],
85
- value: zone
86
- }
87
- })" />
88
- <h4>client_id</h4>
89
- <NInput size="large" v-model:value="data.client_id" />
90
- <h4>client_secret</h4>
91
- <NInput size="large" v-model:value="data.client_secret" />
92
- <h4>redirect_uri</h4>
93
- <NInput size="large" v-model:value="data.redirect_uri" />
 
 
 
 
94
  <NSpace justify="center">
95
- <NButton size="large" secondary @click="createClient">Create client</NButton>
96
- <NButton size="large" type="primary" @click="getToken">Get Refresh Token</NButton>
97
  </NSpace>
98
- </NSpace>
 
99
  </template>
100
 
101
  <style scoped>
 
1
  <script lang="ts" setup>
 
2
  import { reactive, watch } from 'vue';
3
 
4
  const zones = {
 
33
  "Azure US GOV",
34
  ],
35
  };
36
+
37
+ const rules = {
38
+ zone: {
39
+ required: true,
40
+ },
41
+ client_id: {
42
+ required: true,
43
+ },
44
+ client_secret: {
45
+ required: true,
46
+ },
47
+ redirect_uri: {
48
+ required: true,
49
+ }
50
+ }
51
+
52
  const data = reactive({
53
  zone: "global",
54
  client_id: "",
 
92
  </script>
93
 
94
  <template>
95
+ <n-form label-placement="left" :rules="rules">
96
+ <n-form-item label="Zone" path="zone">
97
+ <NSelect v-model:value="data.zone" :options="Object.keys(zones).map(zone => {
98
+ return {
99
+ label: zones[zone][3],
100
+ value: zone
101
+ }
102
+ })" />
103
+ </n-form-item>
104
+ <n-form-item label="Client_id" path="client_id" ref="loginRef" label-placement="left">
105
+ <n-input v-model:value="data.client_id" />
106
+ </n-form-item>
107
+ <n-form-item label="Client_secret" path="client_secret" >
108
+ <n-input v-model:value="data.client_secret" />
109
+ </n-form-item>
110
+ <n-form-item label="Redirect_uri" path="redirect_uri">
111
+ <n-input v-model:value="data.redirect_uri" />
112
+ </n-form-item>
113
  <NSpace justify="center">
114
+ <n-button secondary @click="createClient">创建客户端</n-button>
115
+ <n-button type="primary" @click="getToken">获取Token</n-button>
116
  </NSpace>
117
+ </n-form>
118
+
119
  </template>
120
 
121
  <style scoped>
src/main.js CHANGED
@@ -1,5 +1,4 @@
1
  import { createApp } from 'vue'
2
- import './style.css'
3
  import App from './App.vue'
4
  import router from './router'
5
 
 
1
  import { createApp } from 'vue'
 
2
  import App from './App.vue'
3
  import router from './router'
4
 
vite.config.js CHANGED
@@ -1,7 +1,13 @@
1
  import { defineConfig } from 'vite'
2
  import vue from '@vitejs/plugin-vue'
 
 
3
 
4
- // https://vite.dev/config/
5
  export default defineConfig({
6
- plugins: [vue()],
7
- })
 
 
 
 
 
 
1
  import { defineConfig } from 'vite'
2
  import vue from '@vitejs/plugin-vue'
3
+ import Components from 'unplugin-vue-components/vite'
4
+ import { NaiveUiResolver } from 'unplugin-vue-components/resolvers'
5
 
 
6
  export default defineConfig({
7
+ plugins: [
8
+ vue(),
9
+ Components({
10
+ resolvers: [NaiveUiResolver()] // 自动导入 Naive UI 组件
11
+ })
12
+ ]
13
+ })