From ac86ab23add0c8f96cd36539696b1d55a6dccb33 Mon Sep 17 00:00:00 2001
From: tone <3341154833@qq.com>
Date: Sun, 1 Sep 2024 15:28:34 +0800
Subject: [PATCH] =?UTF-8?q?=E5=89=8D=E7=AB=AF=E6=B7=BB=E5=8A=A0=E5=AE=9E?=
=?UTF-8?q?=E7=94=A8=E5=B7=A5=E5=85=B7?=
MIME-Version: 1.0
Content-Type: text/plain; charset=UTF-8
Content-Transfer-Encoding: 8bit
---
tonecn/package.json | 3 +
tonecn/pnpm-lock.yaml | 108 ++++++++++++++++++++++++
tonecn/src/components/Console/Utils.vue | 44 ++++++++++
tonecn/src/views/Console/Dashboard.vue | 64 ++++++++++++--
4 files changed, 210 insertions(+), 9 deletions(-)
create mode 100644 tonecn/src/components/Console/Utils.vue
diff --git a/tonecn/package.json b/tonecn/package.json
index 9efc0ff..efc18c4 100644
--- a/tonecn/package.json
+++ b/tonecn/package.json
@@ -16,15 +16,18 @@
"highlight.js": "^11.10.0",
"marked": "^14.1.0",
"marked-highlight": "^2.1.4",
+ "md5": "^2.3.0",
"vue": "^3.4.21",
"vue-router": "^4.3.0"
},
"devDependencies": {
"@tsconfig/node20": "^20.1.4",
+ "@types/md5": "^2.3.5",
"@types/node": "^20.12.5",
"@vitejs/plugin-vue": "^5.0.4",
"@vue/tsconfig": "^0.5.1",
"element-plus": "^2.7.3",
+ "npm": "^10.8.3",
"npm-run-all2": "^6.1.2",
"typescript": "~5.4.0",
"unplugin-auto-import": "^0.17.6",
diff --git a/tonecn/pnpm-lock.yaml b/tonecn/pnpm-lock.yaml
index 5cee5bb..ac03c6b 100644
--- a/tonecn/pnpm-lock.yaml
+++ b/tonecn/pnpm-lock.yaml
@@ -20,6 +20,9 @@ dependencies:
marked-highlight:
specifier: ^2.1.4
version: 2.1.4(marked@14.1.0)
+ md5:
+ specifier: ^2.3.0
+ version: 2.3.0
vue:
specifier: ^3.4.21
version: 3.4.27(typescript@5.4.5)
@@ -31,6 +34,9 @@ devDependencies:
'@tsconfig/node20':
specifier: ^20.1.4
version: 20.1.4
+ '@types/md5':
+ specifier: ^2.3.5
+ version: 2.3.5
'@types/node':
specifier: ^20.12.5
version: 20.12.12
@@ -43,6 +49,9 @@ devDependencies:
element-plus:
specifier: ^2.7.3
version: 2.7.3(vue@3.4.27)
+ npm:
+ specifier: ^10.8.3
+ version: 10.8.3
npm-run-all2:
specifier: ^6.1.2
version: 6.2.0
@@ -524,6 +533,10 @@ packages:
resolution: {integrity: sha512-wYCP26ZLxaT3R39kiN2+HcJ4kTd3U1waI/cY7ivWYqFP6pW3ZNpvi6Wd6PHZx7T/t8z0vlkXMg3QYLa7DZ/IJQ==}
dev: true
+ /@types/md5@2.3.5:
+ resolution: {integrity: sha512-/i42wjYNgE6wf0j2bcTX6kuowmdL/6PE4IVitMpm2eYKBUuYCprdcWVK+xEF0gcV6ufMCRhtxmReGfc6hIK7Jw==}
+ dev: true
+
/@types/node@20.12.12:
resolution: {integrity: sha512-eWLDGF/FOSPtAvEqeRAQ4C8LSA7M1I7i0ky1I8U7kD1J5ITyW3AsRhQrKVoWf5pFKZ2kILsEGJhsI9r93PYnOw==}
dependencies:
@@ -738,6 +751,10 @@ packages:
fill-range: 7.0.1
dev: true
+ /charenc@0.0.2:
+ resolution: {integrity: sha512-yrLQ/yVUFXkzg7EDQsPieE/53+0RlaWTs+wBrvW36cyilJ2SaDWfl4Yj7MtLTXleV9uEKefbAGUPv2/iWSooRA==}
+ dev: false
+
/chokidar@3.6.0:
resolution: {integrity: sha512-7VT13fmjotKpGipCW9JEQAusEPE+Ei8nl6/g4FBAmIm0GOOLMua9NDDo/DWp0ZAxCr3cPq5ZpBqmPAQgDda2Pw==}
engines: {node: '>= 8.10.0'}
@@ -777,6 +794,10 @@ packages:
which: 2.0.2
dev: true
+ /crypt@0.0.2:
+ resolution: {integrity: sha512-mCxBlsHFYh9C+HVpiEacem8FEBnMXgU9gy4zmNC+SXAZNB/1idgp/aulFJ4FgCi7GPEVbfyng092GqL2k2rmow==}
+ dev: false
+
/csstype@3.1.3:
resolution: {integrity: sha512-M1uQkMl8rQK/szD0LNhtqxIPLpimGm8sOBwU7lLnCpSbTyY3yeU1Vc7l4KT5zT4s/yOxHH5O7tIuuLOCnLADRw==}
@@ -969,6 +990,10 @@ packages:
binary-extensions: 2.3.0
dev: true
+ /is-buffer@1.1.6:
+ resolution: {integrity: sha512-NcdALwpXkTm5Zvvbk7owOUSvVvBKDgKP5/ewfXEznmQFfs4ZRmanOeKBTjRVjka3QFoN6XJ+9F3USqfHqTaU5w==}
+ dev: false
+
/is-core-module@2.13.1:
resolution: {integrity: sha512-hHrIjvZsftOsvKSn2TRYl63zvxsgE0K+0mYMoH6gD4omR5IWB2KynivBQczo3+wF1cCkjzvptnI9Q0sPU66ilw==}
dependencies:
@@ -1048,6 +1073,14 @@ packages:
hasBin: true
dev: false
+ /md5@2.3.0:
+ resolution: {integrity: sha512-T1GITYmFaKuO91vxyoQMFETst+O71VUPEU3ze5GNzDm0OWdP8v1ziTaAEPUr/3kLsY3Sftgz242A1SetQiDL7g==}
+ dependencies:
+ charenc: 0.0.2
+ crypt: 0.0.2
+ is-buffer: 1.1.6
+ dev: false
+
/memoize-one@6.0.0:
resolution: {integrity: sha512-rkpe71W0N0c0Xz6QD0eJETuWAJGnJ9afsl1srmwPrI+yBCkge5EycXXbYRyvL29zZVUWQCY7InPRCv3GDXuZNw==}
dev: true
@@ -1139,6 +1172,81 @@ packages:
shell-quote: 1.8.1
dev: true
+ /npm@10.8.3:
+ resolution: {integrity: sha512-0IQlyAYvVtQ7uOhDFYZCGK8kkut2nh8cpAdA9E6FvRSJaTgtZRZgNjlC5ZCct//L73ygrpY93CxXpRJDtNqPVg==}
+ engines: {node: ^18.17.0 || >=20.5.0}
+ hasBin: true
+ dev: true
+ bundledDependencies:
+ - '@isaacs/string-locale-compare'
+ - '@npmcli/arborist'
+ - '@npmcli/config'
+ - '@npmcli/fs'
+ - '@npmcli/map-workspaces'
+ - '@npmcli/package-json'
+ - '@npmcli/promise-spawn'
+ - '@npmcli/redact'
+ - '@npmcli/run-script'
+ - '@sigstore/tuf'
+ - abbrev
+ - archy
+ - cacache
+ - chalk
+ - ci-info
+ - cli-columns
+ - fastest-levenshtein
+ - fs-minipass
+ - glob
+ - graceful-fs
+ - hosted-git-info
+ - ini
+ - init-package-json
+ - is-cidr
+ - json-parse-even-better-errors
+ - libnpmaccess
+ - libnpmdiff
+ - libnpmexec
+ - libnpmfund
+ - libnpmhook
+ - libnpmorg
+ - libnpmpack
+ - libnpmpublish
+ - libnpmsearch
+ - libnpmteam
+ - libnpmversion
+ - make-fetch-happen
+ - minimatch
+ - minipass
+ - minipass-pipeline
+ - ms
+ - node-gyp
+ - nopt
+ - normalize-package-data
+ - npm-audit-report
+ - npm-install-checks
+ - npm-package-arg
+ - npm-pick-manifest
+ - npm-profile
+ - npm-registry-fetch
+ - npm-user-validate
+ - p-map
+ - pacote
+ - parse-conflict-json
+ - proc-log
+ - qrcode-terminal
+ - read
+ - semver
+ - spdx-expression-parse
+ - ssri
+ - supports-color
+ - tar
+ - text-table
+ - tiny-relative-date
+ - treeverse
+ - validate-npm-package-name
+ - which
+ - write-file-atomic
+
/path-browserify@1.0.1:
resolution: {integrity: sha512-b7uo2UCUOYZcnF/3ID0lulOJi/bafxa1xPe7ZPsammBSpjSWQkjNxlt635YGS2MiR9GjvuXCtz2emr3jbsz98g==}
dev: true
diff --git a/tonecn/src/components/Console/Utils.vue b/tonecn/src/components/Console/Utils.vue
new file mode 100644
index 0000000..5e0d1bb
--- /dev/null
+++ b/tonecn/src/components/Console/Utils.vue
@@ -0,0 +1,44 @@
+
+
+
+
+ 随机数生成
+
+
+
+
+
+
+ 生成
+ { copyText(randomNum + ''); ElMessage.success('复制成功') }">复制
+
+
+
+ 32位UUID生成
+
+
+
+
+
+
+ 生成
+ { copyText(uuid + ''); ElMessage.success('复制成功') }">复制
+
+
+
+
\ No newline at end of file
diff --git a/tonecn/src/views/Console/Dashboard.vue b/tonecn/src/views/Console/Dashboard.vue
index 0f3aee5..0dde96c 100644
--- a/tonecn/src/views/Console/Dashboard.vue
+++ b/tonecn/src/views/Console/Dashboard.vue
@@ -1,22 +1,67 @@
-