5 Commits

Author SHA1 Message Date
peterlu14 d67d5cba54 - change text style
- change tumor size
- fixed empty data error
- fixed shapes & annotation refresh problem
- fixed only one marker color problem
- change x-axis dtick
2023-08-31 15:25:40 +08:00
peterlu14 bafa2b1b87 -update chart style & text & color 2023-08-30 09:56:53 +08:00
peterlu14 08109f4e2d -update subject page with new UI and function 2023-08-24 16:09:16 +08:00
peterlu14 40e1f82af0 -fix avatar resouce
-add tumor size display
2023-06-14 17:09:41 +08:00
peterlu14 0305407949 - update subject page 2023-06-05 14:07:27 +08:00
54 changed files with 8358 additions and 10 deletions
+3 -2
View File
@@ -1,11 +1,12 @@
<!DOCTYPE html>
<html lang="en" class="bg-red-500">
<html lang="en">
<head>
<meta charset="UTF-8" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link href="https://fonts.googleapis.com/css?family=Source+Sans+Pro:400,700" rel="stylesheet" />
<link href="https://fonts.googleapis.com/css?family=Source+Code+Pro:400" rel="stylesheet" />
<link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" />
<!-- <link href="https://fonts.googleapis.com/icon?family=Material+Icons" rel="stylesheet" /> -->
<!-- <script src="https://cdn.plot.ly/plotly-2.20.0.min.js" charset="utf-8"></script> -->
<link rel="icon" href="/favicon.ico" />
<title>Vuestic Admin</title>
+703
View File
@@ -48,6 +48,87 @@
"@types/geojson": "^7946.0.8"
}
},
"@ampproject/remapping": {
"version": "2.2.1",
"resolved": "https://registry.npmjs.org/@ampproject/remapping/-/remapping-2.2.1.tgz",
"integrity": "sha512-lFMjJTrFL3j7L9yBxwYfCq2k6qqwHyzuUl/XBnif78PWTJYyL/dfowQHWE3sp6U6ZzqWiiIZnpTMO96zhkjwtg==",
"dev": true,
"requires": {
"@jridgewell/gen-mapping": "^0.3.0",
"@jridgewell/trace-mapping": "^0.3.9"
}
},
"@antfu/install-pkg": {
"version": "0.1.1",
"resolved": "https://registry.npmjs.org/@antfu/install-pkg/-/install-pkg-0.1.1.tgz",
"integrity": "sha512-LyB/8+bSfa0DFGC06zpCEfs89/XoWZwws5ygEa5D+Xsm3OfI+aXQ86VgVG7Acyef+rSZ5HE7J8rrxzrQeM3PjQ==",
"dev": true,
"requires": {
"execa": "^5.1.1",
"find-up": "^5.0.0"
},
"dependencies": {
"execa": {
"version": "5.1.1",
"resolved": "https://registry.npmjs.org/execa/-/execa-5.1.1.tgz",
"integrity": "sha512-8uSpZZocAZRBAPIEINJj3Lo9HyGitllczc27Eh5YYojjMFMn8yHMDMaUHE2Jqfq05D/wucwI4JGURyXt1vchyg==",
"dev": true,
"requires": {
"cross-spawn": "^7.0.3",
"get-stream": "^6.0.0",
"human-signals": "^2.1.0",
"is-stream": "^2.0.0",
"merge-stream": "^2.0.0",
"npm-run-path": "^4.0.1",
"onetime": "^5.1.2",
"signal-exit": "^3.0.3",
"strip-final-newline": "^2.0.0"
}
},
"human-signals": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/human-signals/-/human-signals-2.1.0.tgz",
"integrity": "sha512-B4FFZ6q/T2jhhksgkbEW3HBvWIfDW85snkQgawt07S7J5QXTk6BkNV+0yAeZrM5QpMAdYlocGoljn0sJ/WQkFw==",
"dev": true
},
"is-stream": {
"version": "2.0.1",
"resolved": "https://registry.npmjs.org/is-stream/-/is-stream-2.0.1.tgz",
"integrity": "sha512-hFoiJiTl63nn+kstHGBtewWSKnQLpyb155KHheA1l39uvtO9nWIop1p3udqPcUd/xbF1VLMO4n7OI6p7RbngDg==",
"dev": true
},
"mimic-fn": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/mimic-fn/-/mimic-fn-2.1.0.tgz",
"integrity": "sha512-OqbOk5oEQeAZ8WXWydlu9HJjz9WVdEIvamMCcXmuqUYjTknH/sqsWvhQ3vgwKFRR1HpjvNBKQ37nbJgYzGqGcg==",
"dev": true
},
"npm-run-path": {
"version": "4.0.1",
"resolved": "https://registry.npmjs.org/npm-run-path/-/npm-run-path-4.0.1.tgz",
"integrity": "sha512-S48WzZW777zhNIrn7gxOlISNAqi9ZC/uQFnRdbeIHhZhCA6UqpkOT8T1G7BvfdgP4Er8gF4sUbaS0i7QvIfCWw==",
"dev": true,
"requires": {
"path-key": "^3.0.0"
}
},
"onetime": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/onetime/-/onetime-5.1.2.tgz",
"integrity": "sha512-kbpaSSGJTWdAY5KPVeMOKXSrPtr8C8C7wodJbcsd51jRnmD+GZu8Y0VoU6Dm5Z4vWr0Ig/1NKuWRKf7j5aaYSg==",
"dev": true,
"requires": {
"mimic-fn": "^2.1.0"
}
},
"strip-final-newline": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/strip-final-newline/-/strip-final-newline-2.0.0.tgz",
"integrity": "sha512-BrpvfNAE3dcvq7ll3xVumzjKjZQ5tI1sEUIKr3Uoks0XUl45St3FlatVqef9prk4jRDzhW6WZg+3bk93y6pLjA==",
"dev": true
}
}
},
"@antfu/utils": {
"version": "0.7.2",
"resolved": "https://registry.npmjs.org/@antfu/utils/-/utils-0.7.2.tgz",
@@ -473,6 +554,26 @@
}
}
},
"@iconify/types": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/@iconify/types/-/types-2.0.0.tgz",
"integrity": "sha512-+wluvCrRhXrhyOmRDJ3q8mux9JkKy5SJ/v8ol2tu4FVjyYvtEzkc/3pK15ET6RKg4b4w4BmTk1+gsCUhf21Ykg==",
"dev": true
},
"@iconify/utils": {
"version": "2.1.5",
"resolved": "https://registry.npmjs.org/@iconify/utils/-/utils-2.1.5.tgz",
"integrity": "sha512-6MvDI+I6QMvXn5rK9KQGdpEE4mmLTcuQdLZEiX5N+uZB+vc4Yw9K1OtnOgkl8mp4d9X0UrILREyZgF1NUwUt+Q==",
"dev": true,
"requires": {
"@antfu/install-pkg": "^0.1.1",
"@antfu/utils": "^0.7.2",
"@iconify/types": "^2.0.0",
"debug": "^4.3.4",
"kolorist": "^1.7.0",
"local-pkg": "^0.4.3"
}
},
"@intlify/bundle-utils": {
"version": "3.4.0",
"resolved": "https://registry.npmjs.org/@intlify/bundle-utils/-/bundle-utils-3.4.0.tgz",
@@ -568,12 +669,45 @@
"@intlify/shared": "9.2.2"
}
},
"@jridgewell/gen-mapping": {
"version": "0.3.3",
"resolved": "https://registry.npmjs.org/@jridgewell/gen-mapping/-/gen-mapping-0.3.3.tgz",
"integrity": "sha512-HLhSWOLRi875zjjMG/r+Nv0oCW8umGb0BgEhyX3dDX3egwZtB8PqLnjz3yedt8R5StBrzcg4aBpnh8UA9D1BoQ==",
"dev": true,
"requires": {
"@jridgewell/set-array": "^1.0.1",
"@jridgewell/sourcemap-codec": "^1.4.10",
"@jridgewell/trace-mapping": "^0.3.9"
}
},
"@jridgewell/resolve-uri": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/@jridgewell/resolve-uri/-/resolve-uri-3.1.0.tgz",
"integrity": "sha512-F2msla3tad+Mfht5cJq7LSXcdudKTWCVYUgw6pLFOOHSTtZlj6SWNYAp+AhuqLmWdBO2X5hPrLcu8cVP8fy28w==",
"dev": true
},
"@jridgewell/set-array": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/@jridgewell/set-array/-/set-array-1.1.2.tgz",
"integrity": "sha512-xnkseuNADM0gt2bs+BvhO0p78Mk762YnZdsuzFV018NoG1Sj1SCQvpSqa7XUaTam5vAGasABV9qXASMKnFMwMw==",
"dev": true
},
"@jridgewell/sourcemap-codec": {
"version": "1.4.14",
"resolved": "https://registry.npmjs.org/@jridgewell/sourcemap-codec/-/sourcemap-codec-1.4.14.tgz",
"integrity": "sha512-XPSJHWmi394fuUuzDnGz1wiKqWfo1yXecHQMRf2l6hztTO+nPru658AyDngaBe7isIxEkRsPR3FZh+s7iVa4Uw==",
"dev": true
},
"@jridgewell/trace-mapping": {
"version": "0.3.18",
"resolved": "https://registry.npmjs.org/@jridgewell/trace-mapping/-/trace-mapping-0.3.18.tgz",
"integrity": "sha512-w+niJYzMHdd7USdiH2U6869nqhD2nbfZXND5Yp93qIbEmnDNk7PD48o+YchRVpzMU7M6jVCbenTR7PA1FLQ9pA==",
"dev": true,
"requires": {
"@jridgewell/resolve-uri": "3.1.0",
"@jridgewell/sourcemap-codec": "1.4.14"
}
},
"@kurkle/color": {
"version": "0.3.2",
"resolved": "https://registry.npmjs.org/@kurkle/color/-/color-0.3.2.tgz",
@@ -775,6 +909,12 @@
"config-chain": "^1.1.11"
}
},
"@polka/url": {
"version": "1.0.0-next.21",
"resolved": "https://registry.npmjs.org/@polka/url/-/url-1.0.0-next.21.tgz",
"integrity": "sha512-a5Sab1C4/icpTZVzZc5Ghpz88yQtGOyNqYXcZgOssB2uuAr+wF/MvN6bgtW32q7HHrvBki+BsZ0OuNv6EV3K9g==",
"dev": true
},
"@rollup/pluginutils": {
"version": "4.2.1",
"resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-4.2.1.tgz",
@@ -1074,6 +1214,12 @@
"@types/d3-selection": "*"
}
},
"@types/estree": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/@types/estree/-/estree-1.0.1.tgz",
"integrity": "sha512-LG4opVs2ANWZ1TJoKc937iMmNstM/d0ae1vNbnBvBhqCSezgVUOzcLCqbI5elV8Vy6WKwKjaqR+zO9VKirBBCA==",
"dev": true
},
"@types/geojson": {
"version": "7946.0.10",
"resolved": "https://registry.npmjs.org/@types/geojson/-/geojson-7946.0.10.tgz",
@@ -1276,6 +1422,387 @@
}
}
},
"@unocss/astro": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/astro/-/astro-0.51.13.tgz",
"integrity": "sha512-Dul0ZJNwseGBxngBMfghfTsf0quf4HcQcqJuIDzA1T+ueavpwf4QScwbDuS0BqFO4ZiIVSItA7f6eLe31PHUmw==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13",
"@unocss/reset": "0.51.13",
"@unocss/vite": "0.51.13"
}
},
"@unocss/cli": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/cli/-/cli-0.51.13.tgz",
"integrity": "sha512-g5CmSVyMFIgw/uStVlABldw+EYsrCyGjHd9jQMMTSZbV9IWuM0Tf+ILAZ+B4iXs62ctnrxPYH3Mha6IIuuZXZg==",
"dev": true,
"requires": {
"@ampproject/remapping": "^2.2.1",
"@rollup/pluginutils": "^5.0.2",
"@unocss/config": "0.51.13",
"@unocss/core": "0.51.13",
"@unocss/preset-uno": "0.51.13",
"cac": "^6.7.14",
"chokidar": "^3.5.3",
"colorette": "^2.0.20",
"consola": "^3.1.0",
"fast-glob": "^3.2.12",
"magic-string": "^0.30.0",
"pathe": "^1.1.0",
"perfect-debounce": "^1.0.0"
},
"dependencies": {
"@rollup/pluginutils": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.2.tgz",
"integrity": "sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==",
"dev": true,
"requires": {
"@types/estree": "^1.0.0",
"estree-walker": "^2.0.2",
"picomatch": "^2.3.1"
}
},
"colorette": {
"version": "2.0.20",
"resolved": "https://registry.npmjs.org/colorette/-/colorette-2.0.20.tgz",
"integrity": "sha512-IfEDxwoWIjkeXL1eXcDiow4UbKjhLdq6/EuSVR9GMN7KVH3r9gQ83e73hsz1Nd1T3ijd5xv1wcWRYO+D6kCI2w==",
"dev": true
},
"fast-glob": {
"version": "3.2.12",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz",
"integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==",
"dev": true,
"requires": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
"glob-parent": "^5.1.2",
"merge2": "^1.3.0",
"micromatch": "^4.0.4"
}
},
"glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"requires": {
"is-glob": "^4.0.1"
}
},
"magic-string": {
"version": "0.30.0",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.0.tgz",
"integrity": "sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ==",
"dev": true,
"requires": {
"@jridgewell/sourcemap-codec": "^1.4.13"
}
}
}
},
"@unocss/config": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/config/-/config-0.51.13.tgz",
"integrity": "sha512-EnSLt7Z1C01U3kORh+Iql+zLFm/PQTD1Np6oEW6U0/GTmD3HEilVFQFFxdM5F0X2bBZtZMkkAGGyhRWQj09hDQ==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13",
"unconfig": "^0.3.7"
}
},
"@unocss/core": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/core/-/core-0.51.13.tgz",
"integrity": "sha512-SclWkqY2c+p5+PiqrbQkhJNEExPdeo71/aGFye10tpBkgPJWd5xC7dhg5F8M4VPNBtuNCrvBWyqNnunMyuz/WQ==",
"dev": true
},
"@unocss/extractor-arbitrary-variants": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/extractor-arbitrary-variants/-/extractor-arbitrary-variants-0.51.13.tgz",
"integrity": "sha512-lF7p0ea/MeNf4IsjzNhRNYP8u+f1h5JjhTzcvFpQo/vpBvuM5ZCyqp4mkXxYnLNLFfTLsc+MxXaU34IXxpw1QA==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13"
}
},
"@unocss/inspector": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/inspector/-/inspector-0.51.13.tgz",
"integrity": "sha512-y6wCvLDmfFHfr5MHqcQLZkwRio4+VEH6j607bgUdKTRlZGVCD7/GBV8lperxsxpkspaE1eykOeDmW7Ms99SEuQ==",
"dev": true,
"requires": {
"gzip-size": "^6.0.0",
"sirv": "^2.0.3"
}
},
"@unocss/postcss": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/postcss/-/postcss-0.51.13.tgz",
"integrity": "sha512-V1QJ7md9jYtBwRc6NGep1Atc+QhaR3115B1wCo8CNM+v+ZOQzpxNsAshvOfyPzfzTj+KLtp4u4zqqaTbYGX2cw==",
"dev": true,
"requires": {
"@unocss/config": "0.51.13",
"@unocss/core": "0.51.13",
"css-tree": "^2.3.1",
"fast-glob": "^3.2.12",
"magic-string": "^0.30.0",
"postcss": "^8.4.23"
},
"dependencies": {
"fast-glob": {
"version": "3.2.12",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz",
"integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==",
"dev": true,
"requires": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
"glob-parent": "^5.1.2",
"merge2": "^1.3.0",
"micromatch": "^4.0.4"
}
},
"glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"requires": {
"is-glob": "^4.0.1"
}
},
"magic-string": {
"version": "0.30.0",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.0.tgz",
"integrity": "sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ==",
"dev": true,
"requires": {
"@jridgewell/sourcemap-codec": "^1.4.13"
}
},
"nanoid": {
"version": "3.3.6",
"resolved": "https://registry.npmjs.org/nanoid/-/nanoid-3.3.6.tgz",
"integrity": "sha512-BGcqMMJuToF7i1rt+2PWSNVnWIkGCU78jBG3RxO/bZlnZPK2Cmi2QaffxGO/2RvWi9sL+FAiRiXMgsyxQ1DIDA==",
"dev": true
},
"postcss": {
"version": "8.4.24",
"resolved": "https://registry.npmjs.org/postcss/-/postcss-8.4.24.tgz",
"integrity": "sha512-M0RzbcI0sO/XJNucsGjvWU9ERWxb/ytp1w6dKtxTKgixdtQDq4rmx/g8W1hnaheq9jgwL/oyEdH5Bc4WwJKMqg==",
"dev": true,
"requires": {
"nanoid": "^3.3.6",
"picocolors": "^1.0.0",
"source-map-js": "^1.0.2"
}
}
}
},
"@unocss/preset-attributify": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/preset-attributify/-/preset-attributify-0.51.13.tgz",
"integrity": "sha512-a501ylamV90E+tVf7Dgc8Plwex5LQ5oFSYwsxk06QhcxPWdLmDey3SQjL68AsP9qnLGfIez51sV4y/6H8wFqlw==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13"
}
},
"@unocss/preset-icons": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/preset-icons/-/preset-icons-0.51.13.tgz",
"integrity": "sha512-iL9s1NUVeWe3WSh5LHn7vy+veCAag9AFA50IfNlHuAARhuI8JtrMQA8dOXrWrzM0zWBMB+BVIkVaMVrF257n+Q==",
"dev": true,
"requires": {
"@iconify/utils": "^2.1.5",
"@unocss/core": "0.51.13",
"ofetch": "^1.0.1"
}
},
"@unocss/preset-mini": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/preset-mini/-/preset-mini-0.51.13.tgz",
"integrity": "sha512-Wa6eMq8IiJEb7F8rL+cDX4XFm4ViAULaAvn8rjk7ANGdOmeqYGyGc0IZkOjQgl3PiFJFnitsBluHhg7nMIk7QQ==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13",
"@unocss/extractor-arbitrary-variants": "0.51.13"
}
},
"@unocss/preset-tagify": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/preset-tagify/-/preset-tagify-0.51.13.tgz",
"integrity": "sha512-9pWPTff/1OKFmOQiGolVKFPzXwJ+r77UhXTB5E793uOQFHPMWCdkjyTPiN12FlB9izjTLIFH3GCGy/koRX9S4w==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13"
}
},
"@unocss/preset-typography": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/preset-typography/-/preset-typography-0.51.13.tgz",
"integrity": "sha512-9uXrPztLsc8ZMnmoIdNAC3/gD183wyFECDzXtJqjOrJhzGr1kcv1sByyQO+kRPI67eWErSsDjpJwK2arfDOihQ==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13",
"@unocss/preset-mini": "0.51.13"
}
},
"@unocss/preset-uno": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/preset-uno/-/preset-uno-0.51.13.tgz",
"integrity": "sha512-S9po93y87YphySfW21+Z5uzSL/GAGN5MqZURQxaGk9WGxYugAnu2PnvhhyqLCVmP05J34tMSDMkIZZqjnGaJzg==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13",
"@unocss/preset-mini": "0.51.13",
"@unocss/preset-wind": "0.51.13"
}
},
"@unocss/preset-web-fonts": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/preset-web-fonts/-/preset-web-fonts-0.51.13.tgz",
"integrity": "sha512-jl6AhPcnLYN4oKYQZbU/40714IIuNb7TOFh2kgMkDH70r+fzLEdH+cB4l5m0yTsMhEQ6oDsppxm9aXcsVDRESA==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13",
"ofetch": "^1.0.1"
}
},
"@unocss/preset-wind": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/preset-wind/-/preset-wind-0.51.13.tgz",
"integrity": "sha512-deRXLOWmKmqCJuohWCE5NUzs7XDJLn4pzgYQSUlEAVUfS6rzL49aJmSHA+p/f+HhJs5jipNdvkcrHYEBMNV1XQ==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13",
"@unocss/preset-mini": "0.51.13"
}
},
"@unocss/reset": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/reset/-/reset-0.51.13.tgz",
"integrity": "sha512-xwYJW6vNbHIpBtlFcW93fZxILZpWatcCc9nclSgsl0YlFUz9w4/aoV9KqwU62Y4VUteJxCZCCXa3pSiPO8h5KA==",
"dev": true
},
"@unocss/scope": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/scope/-/scope-0.51.13.tgz",
"integrity": "sha512-ATwgDx1qZflR2/EPsAs/XMR9/HdcUNyAZ6VdenwQQdlmAFlIWZQ6smswKyuiJWKtcJynfbdGOWcO3vcocrnSrQ==",
"dev": true
},
"@unocss/transformer-attributify-jsx": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/transformer-attributify-jsx/-/transformer-attributify-jsx-0.51.13.tgz",
"integrity": "sha512-vLAtT0K3Rfa3Xiu3LhU4tNCptuO3QlbgSsVO93K3onujfO7qZAaXjK5nj7jiLPyTKtQyl/3WOgNStfReMleF0w==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13"
}
},
"@unocss/transformer-attributify-jsx-babel": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/transformer-attributify-jsx-babel/-/transformer-attributify-jsx-babel-0.51.13.tgz",
"integrity": "sha512-HMEeTi3FIuI5gMJnRICbWdDmraL4NfpjSTjSmAo6EsraBuNO2m+/5JZL5Fc1B3olKes2G84FDSlzfofHyinWzw==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13"
}
},
"@unocss/transformer-compile-class": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/transformer-compile-class/-/transformer-compile-class-0.51.13.tgz",
"integrity": "sha512-7G5ReCIkrZOAikwM9LN74nR4uxffJMSDAbLFDyhdh4qaumJFaxDLDQ4lxpQVZVeXQIF12QSxsnJuI9Fu1nuqmg==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13"
}
},
"@unocss/transformer-directives": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/transformer-directives/-/transformer-directives-0.51.13.tgz",
"integrity": "sha512-1tl8UcVpqYaKkj1zan/QmUAslEcHe9WdN0/QX3Ao663A5r91EwWhnhwKFfvujrZp1XlFnXgKLmKS8OwTRQfCQg==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13",
"css-tree": "^2.3.1"
}
},
"@unocss/transformer-variant-group": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/transformer-variant-group/-/transformer-variant-group-0.51.13.tgz",
"integrity": "sha512-QT3dfnYeht9SpqPFHJrEfZjL+XeMyi0Wwc4ll4ttIQNCl1Ihiwxl4ScRs1oVXlhCAc3hCXNu9V/FWO0cYHRt/Q==",
"dev": true,
"requires": {
"@unocss/core": "0.51.13"
}
},
"@unocss/vite": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/@unocss/vite/-/vite-0.51.13.tgz",
"integrity": "sha512-WwyaPnu1XfRiFy4uxXwBuWaL7J1Rcaetsw5lJQUIUdSBTblsd6W7sW+MYTsLfAlA9FUxWDK4ESdI51Xgq4glxw==",
"dev": true,
"requires": {
"@ampproject/remapping": "^2.2.1",
"@rollup/pluginutils": "^5.0.2",
"@unocss/config": "0.51.13",
"@unocss/core": "0.51.13",
"@unocss/inspector": "0.51.13",
"@unocss/scope": "0.51.13",
"@unocss/transformer-directives": "0.51.13",
"chokidar": "^3.5.3",
"fast-glob": "^3.2.12",
"magic-string": "^0.30.0"
},
"dependencies": {
"@rollup/pluginutils": {
"version": "5.0.2",
"resolved": "https://registry.npmjs.org/@rollup/pluginutils/-/pluginutils-5.0.2.tgz",
"integrity": "sha512-pTd9rIsP92h+B6wWwFbW8RkZv4hiR/xKsqre4SIuAOaOEQRxi0lqLke9k2/7WegC85GgUs9pjmOjCUi3In4vwA==",
"dev": true,
"requires": {
"@types/estree": "^1.0.0",
"estree-walker": "^2.0.2",
"picomatch": "^2.3.1"
}
},
"fast-glob": {
"version": "3.2.12",
"resolved": "https://registry.npmjs.org/fast-glob/-/fast-glob-3.2.12.tgz",
"integrity": "sha512-DVj4CQIYYow0BlaelwK1pHl5n5cRSJfM60UA0zK891sVInoPri2Ekj7+e1CT3/3qxXenpI+nBBmQAcJPJgaj4w==",
"dev": true,
"requires": {
"@nodelib/fs.stat": "^2.0.2",
"@nodelib/fs.walk": "^1.2.3",
"glob-parent": "^5.1.2",
"merge2": "^1.3.0",
"micromatch": "^4.0.4"
}
},
"glob-parent": {
"version": "5.1.2",
"resolved": "https://registry.npmjs.org/glob-parent/-/glob-parent-5.1.2.tgz",
"integrity": "sha512-AOIgSQCepiJYwP3ARnGx+5VnTu2HBYdzbGP45eLw1vr3zB3vZLeyed1sC9hnbcOc9/SrMyM5RPQrkGz4aS9Zow==",
"dev": true,
"requires": {
"is-glob": "^4.0.1"
}
},
"magic-string": {
"version": "0.30.0",
"resolved": "https://registry.npmjs.org/magic-string/-/magic-string-0.30.0.tgz",
"integrity": "sha512-LA+31JYDJLs82r2ScLrlz1GjSgu66ZV518eyWT+S8VhyQn/JL0u9MeBOvQMGYiPk1DBiSN9DDMOcXvigJZaViQ==",
"dev": true,
"requires": {
"@jridgewell/sourcemap-codec": "^1.4.13"
}
}
}
},
"@vitejs/plugin-vue": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/@vitejs/plugin-vue/-/plugin-vue-4.0.0.tgz",
@@ -2028,6 +2555,12 @@
"semver": "^7.0.0"
}
},
"cac": {
"version": "6.7.14",
"resolved": "https://registry.npmjs.org/cac/-/cac-6.7.14.tgz",
"integrity": "sha512-b6Ilus+c3RrdDk+JhLKUAQfzzgLEPy6wcXqS7f/xe1EETvsDP6GORG7SFuOs6cID5YkqchW/LXZbX5bc8j7ZcQ==",
"dev": true
},
"cacache": {
"version": "17.0.4",
"resolved": "https://registry.npmjs.org/cacache/-/cacache-17.0.4.tgz",
@@ -2370,6 +2903,12 @@
"xdg-basedir": "^5.0.1"
}
},
"consola": {
"version": "3.1.0",
"resolved": "https://registry.npmjs.org/consola/-/consola-3.1.0.tgz",
"integrity": "sha512-rrrJE6rP0qzl/Srg+C9x/AE5Kxfux7reVm1Wh0wCjuXvih6DqZgqDZe8auTD28fzJ9TF0mHlSDrPpWlujQRo1Q==",
"dev": true
},
"console-control-strings": {
"version": "1.1.0",
"resolved": "https://registry.npmjs.org/console-control-strings/-/console-control-strings-1.1.0.tgz",
@@ -2425,6 +2964,16 @@
}
}
},
"css-tree": {
"version": "2.3.1",
"resolved": "https://registry.npmjs.org/css-tree/-/css-tree-2.3.1.tgz",
"integrity": "sha512-6Fv1DV/TYw//QF5IzQdqsNDjx/wc8TrMBZsqjL9eW01tWb7R7k/mq+/VXfJCl7SoD5emsJop9cOByJZfs8hYIw==",
"dev": true,
"requires": {
"mdn-data": "2.0.30",
"source-map-js": "^1.0.1"
}
},
"csscolorparser": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/csscolorparser/-/csscolorparser-1.0.3.tgz",
@@ -2833,6 +3382,12 @@
"object-keys": "^1.1.1"
}
},
"defu": {
"version": "6.1.2",
"resolved": "https://registry.npmjs.org/defu/-/defu-6.1.2.tgz",
"integrity": "sha512-+uO4+qr7msjNNWKYPHqN/3+Dx3NFkmIzayk2L1MyZQlvgZb/J1A0fo410dpKrN2SnqFjt8n4JL8fDJE0wIgjFQ==",
"dev": true
},
"delaunator": {
"version": "5.0.0",
"resolved": "https://registry.npmjs.org/delaunator/-/delaunator-5.0.0.tgz",
@@ -2856,6 +3411,12 @@
"resolved": "https://registry.npmjs.org/depd/-/depd-2.0.0.tgz",
"integrity": "sha512-g7nH6P6dyDioJogAAGprGpCtVImJhpPk/roCzdb3fIh61/s/nPsfR6onyMwkCAR/OlC3yBC0lESvUoQEAssIrw=="
},
"destr": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/destr/-/destr-1.2.2.tgz",
"integrity": "sha512-lrbCJwD9saUQrqUfXvl6qoM+QN3W7tLV5pAOs+OqOmopCCz/JkE05MHedJR1xfk4IAnZuJXPVuN5+7jNA2ZCiA==",
"dev": true
},
"dfa": {
"version": "1.2.0",
"resolved": "https://registry.npmjs.org/dfa/-/dfa-1.2.0.tgz",
@@ -2886,6 +3447,12 @@
"is-obj": "^2.0.0"
}
},
"duplexer": {
"version": "0.1.2",
"resolved": "https://registry.npmjs.org/duplexer/-/duplexer-0.1.2.tgz",
"integrity": "sha512-jtD6YG370ZCIi/9GTaJKQxWTZD045+4R4hTk/x1UyoqadyJ9x9CgSi1RlVDQF8U2sxLLSnFkCaMihqljHIWgMg==",
"dev": true
},
"duplexer2": {
"version": "0.1.4",
"resolved": "https://registry.npmjs.org/duplexer2/-/duplexer2-0.1.4.tgz",
@@ -3798,6 +4365,15 @@
"integrity": "sha512-bzh50DW9kTPM00T8y4o8vQg89Di9oLJVLW/KaOGIXJWP/iqCN6WKYkbNOF04vFLJhwcpYUh9ydh/+5vpOqV4YQ==",
"dev": true
},
"gzip-size": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/gzip-size/-/gzip-size-6.0.0.tgz",
"integrity": "sha512-ax7ZYomf6jqPTQ4+XCpUGyXKHk5WweS+e05MBO4/y3WJ5RkmPXNKvX+bx1behVILVwr6JSQvZAku021CHPXG3Q==",
"dev": true,
"requires": {
"duplexer": "^0.1.2"
}
},
"has": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/has/-/has-1.0.3.tgz",
@@ -4443,6 +5019,12 @@
}
}
},
"local-pkg": {
"version": "0.4.3",
"resolved": "https://registry.npmjs.org/local-pkg/-/local-pkg-0.4.3.tgz",
"integrity": "sha512-SFppqq5p42fe2qcZQqqEOiVRXl+WCP1MdT6k7BDEW1j++sp5fIY+/fdRQitvKgB5BrBcmrs5m/L0v2FrU5MY1g==",
"dev": true
},
"locate-path": {
"version": "6.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-6.0.0.tgz",
@@ -4690,6 +5272,17 @@
"resolved": "https://registry.npmjs.org/markerjs2/-/markerjs2-2.29.0.tgz",
"integrity": "sha512-9l7HWm9vnpbiyeR8OVYA8/+i0pNATmDbMb+xcoxM6SxiQdPIt7qK5KJNtlT1FBO35TFWhQowUQ3oOmT2uici5w=="
},
"material-icons": {
"version": "1.13.7",
"resolved": "https://registry.npmjs.org/material-icons/-/material-icons-1.13.7.tgz",
"integrity": "sha512-3gSvHUjInMhOGEjXjuz8Ux3NOl7Afgc2UtZNTb+xe9UmEv27ve2zH5a/R58R8VpyF+KMnwXwb6Liym1/1kXnVg=="
},
"mdn-data": {
"version": "2.0.30",
"resolved": "https://registry.npmjs.org/mdn-data/-/mdn-data-2.0.30.tgz",
"integrity": "sha512-GaqWWShW4kv/G9IEucWScBx9G1/vsFZZJUO+tD26M8J8z3Kw5RDQjaoZe03YAClgeS/SWPOcb4nkFBTEi5DUEA==",
"dev": true
},
"medium-editor": {
"version": "5.23.3",
"resolved": "https://registry.npmjs.org/medium-editor/-/medium-editor-5.23.3.tgz",
@@ -4969,6 +5562,12 @@
"process-nextick-args": "^2.0.1"
}
},
"mrmime": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/mrmime/-/mrmime-1.0.1.tgz",
"integrity": "sha512-hzzEagAgDyoU1Q6yg5uI+AorQgdvMCur3FcKf7NhMKWsaYg+RnbTyHRa/9IlLF9rf455MOCtcqqrQQ83pPP7Uw==",
"dev": true
},
"ms": {
"version": "2.1.2",
"resolved": "https://registry.npmjs.org/ms/-/ms-2.1.2.tgz",
@@ -5012,6 +5611,12 @@
"resolved": "https://registry.npmjs.org/next-tick/-/next-tick-1.1.0.tgz",
"integrity": "sha512-CXdUiJembsNjuToQvxayPZF9Vqht7hewsvy2sOWafLvi2awflj9mOC6bHIg50orX8IJvWKY9wYQ/zB2kogPslQ=="
},
"node-fetch-native": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/node-fetch-native/-/node-fetch-native-1.1.1.tgz",
"integrity": "sha512-9VvspTSUp2Sxbl+9vbZTlFGq9lHwE8GDVVekxx6YsNd1YH59sb3Ba8v3Y3cD8PkLNcileGGcA21PFjVl0jzDaw==",
"dev": true
},
"node-gyp": {
"version": "9.3.1",
"resolved": "https://registry.npmjs.org/node-gyp/-/node-gyp-9.3.1.tgz",
@@ -5373,6 +5978,17 @@
"resolved": "https://registry.npmjs.org/object-keys/-/object-keys-1.1.1.tgz",
"integrity": "sha512-NuAESUOUMrlIXOfHKzD6bpPu3tYt3xvjNdRIQ+FeT0lNb4K8WR70CaDxhuNguS2XG+GjkyMwOzsN5ZktImfhLA=="
},
"ofetch": {
"version": "1.0.1",
"resolved": "https://registry.npmjs.org/ofetch/-/ofetch-1.0.1.tgz",
"integrity": "sha512-icBz2JYfEpt+wZz1FRoGcrMigjNKjzvufE26m9+yUiacRQRHwnNlGRPiDnW4op7WX/MR6aniwS8xw8jyVelF2g==",
"dev": true,
"requires": {
"destr": "^1.2.2",
"node-fetch-native": "^1.0.2",
"ufo": "^1.1.0"
}
},
"once": {
"version": "1.4.0",
"resolved": "https://registry.npmjs.org/once/-/once-1.4.0.tgz",
@@ -5529,6 +6145,12 @@
"resolved": "https://registry.npmjs.org/path-type/-/path-type-4.0.0.tgz",
"integrity": "sha512-gDKb8aZMDeD/tZWs9P6+q0J9Mwkdl6xMV8TjnGP3qJVJ06bdMgkbBlLU8IdfOsIsFz2BW1rNVT3XuNEl8zPAvw=="
},
"pathe": {
"version": "1.1.1",
"resolved": "https://registry.npmjs.org/pathe/-/pathe-1.1.1.tgz",
"integrity": "sha512-d+RQGp0MAYTIaDBIMmOfMwz3E+LOZnxx1HZd5R18mmCZY0QBlK0LDZfPc8FW8Ed2DlvsuE6PRjroDY+wg4+j/Q==",
"dev": true
},
"pbf": {
"version": "3.2.1",
"resolved": "https://registry.npmjs.org/pbf/-/pbf-3.2.1.tgz",
@@ -5549,6 +6171,12 @@
"xmldoc": "^1.1.2"
}
},
"perfect-debounce": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/perfect-debounce/-/perfect-debounce-1.0.0.tgz",
"integrity": "sha512-xCy9V055GLEqoFaHoC1SoLIaLmWctgCUaBaWxDZ7/Zx4CTyX7cJQLJOok/orfjZAh9kEYpjJa4d0KcJmCbctZA==",
"dev": true
},
"picocolors": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/picocolors/-/picocolors-1.0.0.tgz",
@@ -5574,6 +6202,11 @@
"vue-demi": "*"
}
},
"plotly.js-dist-min": {
"version": "2.23.2",
"resolved": "https://registry.npmjs.org/plotly.js-dist-min/-/plotly.js-dist-min-2.23.2.tgz",
"integrity": "sha512-h/Hd/EwRJJs0vDbUKfdEVorNbfczYyrEPyQWI+ghODVfAsjiGqp4IUeBJKwwlOOE7pMCkjwYNmvTEoqSSCol8Q=="
},
"png-js": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/png-js/-/png-js-1.0.0.tgz",
@@ -6180,6 +6813,17 @@
}
}
},
"sirv": {
"version": "2.0.3",
"resolved": "https://registry.npmjs.org/sirv/-/sirv-2.0.3.tgz",
"integrity": "sha512-O9jm9BsID1P+0HOi81VpXPoDxYP374pkOLzACAoyUQ/3OUVndNpsz6wMnY2z+yOxzbllCKZrM+9QrWsv4THnyA==",
"dev": true,
"requires": {
"@polka/url": "^1.0.0-next.20",
"mrmime": "^1.0.0",
"totalist": "^3.0.0"
}
},
"sisteransi": {
"version": "1.0.5",
"resolved": "https://registry.npmjs.org/sisteransi/-/sisteransi-1.0.5.tgz",
@@ -6532,6 +7176,12 @@
"is-number": "^7.0.0"
}
},
"totalist": {
"version": "3.0.1",
"resolved": "https://registry.npmjs.org/totalist/-/totalist-3.0.1.tgz",
"integrity": "sha512-sf4i37nQ2LBx4m3wB74y+ubopq6W/dIzXg0FDGjsYnZHVa1Da8FH853wlL2gtUhg+xJXjfk3kUZS3BRoQeoQBQ==",
"dev": true
},
"tslib": {
"version": "1.14.1",
"resolved": "https://registry.npmjs.org/tslib/-/tslib-1.14.1.tgz",
@@ -6635,6 +7285,31 @@
"integrity": "sha512-1FXk9E2Hm+QzZQ7z+McJiHL4NW1F2EzMu9Nq9i3zAaGqibafqYwCVU6WyWAuyQRRzOlxou8xZSyXLEN8oKj24g==",
"dev": true
},
"ufo": {
"version": "1.1.2",
"resolved": "https://registry.npmjs.org/ufo/-/ufo-1.1.2.tgz",
"integrity": "sha512-TrY6DsjTQQgyS3E3dBaOXf0TpPD8u9FVrVYmKVegJuFw51n/YB9XPt+U6ydzFG5ZIN7+DIjPbNmXoBj9esYhgQ==",
"dev": true
},
"unconfig": {
"version": "0.3.9",
"resolved": "https://registry.npmjs.org/unconfig/-/unconfig-0.3.9.tgz",
"integrity": "sha512-8yhetFd48M641mxrkWA+C/lZU4N0rCOdlo3dFsyFPnBHBjMJfjT/3eAZBRT2RxCRqeBMAKBVgikejdS6yeBjMw==",
"dev": true,
"requires": {
"@antfu/utils": "^0.7.2",
"defu": "^6.1.2",
"jiti": "^1.18.2"
},
"dependencies": {
"jiti": {
"version": "1.18.2",
"resolved": "https://registry.npmjs.org/jiti/-/jiti-1.18.2.tgz",
"integrity": "sha512-QAdOptna2NYiSSpv0O/BwoHBSmz4YhpzJHyi+fnMRTXFjp7B8i/YG5Z8IfusxB1ufjcD2Sre1F3R+nX3fvy7gg==",
"dev": true
}
}
},
"unicode-properties": {
"version": "1.4.1",
"resolved": "https://registry.npmjs.org/unicode-properties/-/unicode-properties-1.4.1.tgz",
@@ -6677,6 +7352,34 @@
"crypto-random-string": "^4.0.0"
}
},
"unocss": {
"version": "0.51.13",
"resolved": "https://registry.npmjs.org/unocss/-/unocss-0.51.13.tgz",
"integrity": "sha512-EAhuQ97D7E+EsTdlCL+xoWEsvz46Se9ZAtHhJ+1W+DzMky9qrDLRyR8Caf2TPbz8dw/z0qYhoPr6/aJARG4r0g==",
"dev": true,
"requires": {
"@unocss/astro": "0.51.13",
"@unocss/cli": "0.51.13",
"@unocss/core": "0.51.13",
"@unocss/extractor-arbitrary-variants": "0.51.13",
"@unocss/postcss": "0.51.13",
"@unocss/preset-attributify": "0.51.13",
"@unocss/preset-icons": "0.51.13",
"@unocss/preset-mini": "0.51.13",
"@unocss/preset-tagify": "0.51.13",
"@unocss/preset-typography": "0.51.13",
"@unocss/preset-uno": "0.51.13",
"@unocss/preset-web-fonts": "0.51.13",
"@unocss/preset-wind": "0.51.13",
"@unocss/reset": "0.51.13",
"@unocss/transformer-attributify-jsx": "0.51.13",
"@unocss/transformer-attributify-jsx-babel": "0.51.13",
"@unocss/transformer-compile-class": "0.51.13",
"@unocss/transformer-directives": "0.51.13",
"@unocss/transformer-variant-group": "0.51.13",
"@unocss/vite": "0.51.13"
}
},
"untildify": {
"version": "4.0.0",
"resolved": "https://registry.npmjs.org/untildify/-/untildify-4.0.0.tgz",
+3
View File
@@ -31,9 +31,11 @@
"leaflet": "^1.9.3",
"leaflet-map": "^0.2.1",
"maplibre-gl": "^2.4.0",
"material-icons": "^1.13.7",
"medium-editor": "^5.23.3",
"npm-check-updates": "^16.7.10",
"pinia": "^2.0.33",
"plotly.js-dist-min": "^2.23.2",
"register-service-worker": "^1.7.2",
"sass": "^1.58.3",
"v-contextmenu": "^3.0.0",
@@ -66,6 +68,7 @@
"postcss": "^8.4.21",
"prettier": "^2.8.4",
"typescript": "^4.9.5",
"unocss": "^0.51.12",
"vite": "^4.1.4",
"vite-plugin-windicss": "^1.8.10",
"vue-echarts": "^6.5.4",
+6205
View File
File diff suppressed because it is too large Load Diff
+1
View File
@@ -14,5 +14,6 @@
body {
margin: 0;
background: white;
}
</style>
+12
View File
@@ -0,0 +1,12 @@
<svg width="512" height="512" viewBox="0 0 512 512" fill="none" xmlns="http://www.w3.org/2000/svg">
<g clip-path="url(#clip0_1765_7055)">
<path d="M0 0H512V512H0V0Z" fill="#222D3A"/>
<path d="M330.085 110.955C311.299 90.672 285.059 79.5024 256.097 79.5024C226.981 79.5024 200.655 90.6044 181.955 110.762C163.053 131.141 153.843 158.838 156.005 188.746C160.292 247.751 205.192 295.75 256.097 295.75C307.003 295.75 351.826 247.76 356.18 188.765C358.371 159.128 349.103 131.489 330.085 110.955Z" fill="#B3BAC0"/>
<path d="M53.9275 511.997H458.333C459 503 458.206 483.499 456.333 473.141C448.185 427.941 422.757 389.972 382.789 363.327C347.282 339.675 302.305 326.642 256.13 326.642C209.956 326.642 164.978 339.666 129.471 363.327C89.5038 389.982 64.0754 427.951 55.9275 473.15C54.0546 483.509 53.5001 504.5 53.9275 511.997Z" fill="#B3BAC0"/>
</g>
<defs>
<clipPath id="clip0_1765_7055">
<rect width="512" height="512" fill="white"/>
</clipPath>
</defs>
</svg>

After

Width:  |  Height:  |  Size: 956 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.0 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_56_271" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
<rect width="24" height="24" fill="#D9D9D9"/>
</mask>
<g mask="url(#mask0_56_271)">
<path d="M7 21C6.45 21 5.97917 20.8042 5.5875 20.4125C5.19583 20.0208 5 19.55 5 19V6H4V4H9V3H15V4H20V6H19V19C19 19.55 18.8042 20.0208 18.4125 20.4125C18.0208 20.8042 17.55 21 17 21H7ZM17 6H7V19H17V6ZM9 17H11V8H9V17ZM13 17H15V8H13V17Z" fill="white"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 553 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 7.7 KiB

+8
View File
@@ -0,0 +1,8 @@
<svg width="24" height="24" viewBox="0 0 24 24" fill="none" xmlns="http://www.w3.org/2000/svg">
<mask id="mask0_52_158" style="mask-type:alpha" maskUnits="userSpaceOnUse" x="0" y="0" width="24" height="24">
<rect width="24" height="24" fill="#D9D9D9"/>
</mask>
<g mask="url(#mask0_52_158)">
<path d="M19.5 11V13.5H18.5V11V10.5H18H15.5V9.5H18H18.5V9V6.5H19.5V9V9.5H20H22.5V10.5H20H19.5V11ZM2.5 18V18.5H3H15H15.5V18V17.2C15.5 16.9288 15.4309 16.6712 15.2891 16.4393C15.1536 16.2175 14.9702 16.0392 14.7428 15.9129L14.7333 15.9076L14.7236 15.9028C13.7925 15.4372 12.8493 15.0863 11.8942 14.8519C10.939 14.6174 9.97395 14.5 9 14.5C8.02605 14.5 7.06104 14.6174 6.10581 14.8519C5.15072 15.0863 4.20748 15.4372 3.27639 15.9028L3.26668 15.9076L3.25718 15.9129C3.0298 16.0392 2.84639 16.2175 2.71086 16.4393C2.56911 16.6712 2.5 16.9288 2.5 17.2V18ZM9 11.5C8.03366 11.5 7.21887 11.1618 6.52855 10.4714C5.83824 9.78113 5.5 8.96634 5.5 8C5.5 7.03366 5.83824 6.21887 6.52855 5.52855C7.21887 4.83824 8.03366 4.5 9 4.5C9.96634 4.5 10.7811 4.83824 11.4714 5.52855C12.1618 6.21887 12.5 7.03366 12.5 8C12.5 8.96634 12.1618 9.78113 11.4714 10.4714C10.7811 11.1618 9.96634 11.5 9 11.5ZM1.5 19.5V17.2C1.5 16.7241 1.62109 16.2941 1.86359 15.8991C2.10825 15.5007 2.42772 15.2027 2.82681 14.9956C3.82714 14.4957 4.84065 14.1222 5.86769 13.8735C6.89573 13.6245 7.93956 13.5 9 13.5C10.0604 13.5 11.1043 13.6245 12.1323 13.8735C13.1594 14.1222 14.1729 14.4957 15.1732 14.9956C15.5723 15.2027 15.8918 15.5007 16.1364 15.8991C16.3789 16.2941 16.5 16.7241 16.5 17.2V19.5H1.5ZM9 10.5C9.68366 10.5 10.2814 10.2507 10.7661 9.76605C11.2507 9.28137 11.5 8.68366 11.5 8C11.5 7.31634 11.2507 6.71863 10.7661 6.23395C10.2814 5.74926 9.68366 5.5 9 5.5C8.31634 5.5 7.71863 5.74926 7.23395 6.23395C6.74926 6.71863 6.5 7.31634 6.5 8C6.5 8.68366 6.74926 9.28137 7.23395 9.76605C7.71863 10.2507 8.31634 10.5 9 10.5Z" fill="#424242" stroke="#424242"/>
</g>
</svg>

After

Width:  |  Height:  |  Size: 1.9 KiB

+4
View File
@@ -1,11 +1,15 @@
import meta from './meta'
import collection from './collection'
import project from './project'
import subject from './subject'
import subject_data from './subject_data'
const api = {
collection,
meta,
project,
subject,
subject_data,
}
export default api
+49
View File
@@ -0,0 +1,49 @@
import { getAxios } from '@/data/axios'
import { AxiosResponse } from 'axios'
const axios = getAxios()
async function create(attrs) {
try {
return await axios.post('/api/subject/create', attrs)
} catch (e) {
console.error(e)
return false
}
}
async function update(id, attrs) {
try {
return await axios.post(`/api/subject/update/${id}`, attrs)
} catch (e) {
console.error(e)
return false
}
}
async function clearDel() {
try {
return await axios.get('/api/subject/clear_deleted')
} catch (e) {
console.error(e)
return false
}
}
async function get(id) {
try {
return await axios.get('/api/subject/get')
} catch (e) {
console.error(e)
return false
}
}
const subject = {
create,
update,
clearDel,
get,
}
export default subject
+53
View File
@@ -0,0 +1,53 @@
import { getAxios } from '@/data/axios'
import { AxiosResponse } from 'axios'
const axios = getAxios()
async function create(attrs) {
try {
return await axios.post('/api/subject_data/create', attrs)
} catch (e) {
console.error(e)
return false
}
}
async function update(id, attrs) {
try {
return await axios.post(`/api/subject_data/update/${id}`, attrs)
} catch (e) {
console.error(e)
return false
}
}
async function clearDel() {
try {
return await axios.get('/api/subject_data/clear_deleted')
} catch (e) {
console.error(e)
return false
}
}
async function get(id) {
try {
let query = ''
if (id.subject_id) {
query += `subject_id=${id.subject_id}`
}
return await axios.get('/api/subject_data/get?' + query)
} catch (e) {
console.error(e)
return false
}
}
const subject = {
create,
update,
clearDel,
get,
}
export default subject
+3 -1
View File
@@ -7,7 +7,9 @@ import stores from './stores'
import router from './router'
import vuesticGlobalConfig from './services/vuestic-ui/global-config'
import App from './App.vue'
import 'virtual:windi.css'
import 'virtual:uno.css'
import 'material-icons/iconfont/material-icons.css'
// import Plotly from 'plotly.js-dist-min'
// import ECharts modules
import ECharts from 'vue-echarts'
@@ -45,15 +45,15 @@
// mqtt init
const { startMqtt, publish } = useMqtt()
const controllerID = 'b8:27:eb:14:55:ef'
const controllerID = 'b8:27:eb:95:5f:14'
// define subscribe and callback
startMqtt(`${controllerID}/data_analysis/#`, (topic: string, message: ArrayBuffer) => {
console.timeEnd('analysising')
console.time('painting')
// console.timeEnd('analysising')
// console.time('painting')
// [metaID, xData, yData, horizontalLine, twoPointLine]
const msg = JSON.parse(message.toString())
console.log('msg', msg)
// console.log('msg', msg)
// reformat data
// for (const info of msg) {
+677
View File
@@ -0,0 +1,677 @@
<template>
<!-- Navbar -->
<div class="h-screen mx-auto bg-white">
<div class="h-[10%]">
<div class="h-[3rem] flex bg-gradient-to-b from-a to-b">
<div class="relative top-[25%] left-[5%] z-20">
<img
class="w-[4rem] h-[4rem] rounded-1/2 border-solid border-[#AED0DF] border-3 shadow-lg"
src="@/assets/icon/avatar.svg"
/>
</div>
<div class="self-center text-right">
<va-icon class="material-icons mr-3" size="2.5rem" color="#ffffff" @click="show">menu</va-icon>
</div>
</div>
</div>
<!-- Content-->
<div class="h-[90%] pt-5 mx-[7.5%] landscape:mx-[2.5%] landscape:flex">
<!-- Text Description-->
<div class="h-[12.5%] mt-3 landscape:hidden">
<span class="text-xs font-normal text-[#5D5D5D] leading-normal">{{ todayDate }}</span>
<div class="flex">
<div>
<span class="font-barlowb text-xl font-semibold text-color-brown">Good Morning, {{ name }}</span>
</div>
<div class="text-end place-self-end">
<select v-model="baseLineX">
<option v-for="(x, index) in xData" :key="index">{{ x }}</option>
</select>
</div>
</div>
<span class="text-xs font-normal text-[#5D5D5D]">{{ description }}</span>
</div>
<!-- Image Result-->
<div
v-if="Number(tumorSize) > 100 && Number(tumorSize) < 300"
class="w-[100%] h-[20%] landscape:hidden font-roboto text-center"
>
<img class="w-[100px] h-[100px]" src="@/assets/icon/good.jpg" />
<div class="mt-2">
<p>Tumor Regression</p>
</div>
</div>
<div v-if="Number(tumorSize) >= 300" class="w-[100%] h-[20%] landscape:hidden font-roboto text-center">
<img class="w-[100px] h-[100px]" src="@/assets/icon/bad.jpg" />
<div class="mt-2">
<p>Tumor Growth</p>
</div>
</div>
<!-- Plot-->
<div ref="plotlyChart" class="w-[100%] landscape:w-[80%] h-[30%] landscape:h-[85%] mt-2 z-10"></div>
<div class="text-end place-self-start hidden landscape:flex">
<select v-model="baseLineX">
<option v-for="(x, index) in xData" :key="index">{{ x }}</option>
</select>
</div>
<!-- Data Result-->
<div class="w-[100%] landscape:w-[30%] h-[30%] landscape:h-[70%] landscape:pl-3 mt-3">
<!-- Image Result-->
<div class="w-[100%] h-[60%] hidden mb-3 landscape:flex flex-col text-center align-center justify-center">
<div v-if="Number(tumorSize) > 100 && Number(tumorSize) < 300">
<img class="w-[75px] h-[75px]" src="@/assets/icon/good.jpg" />
<div class="mt-2">
<p>Tumor Regression</p>
</div>
</div>
<div v-if="Number(tumorSize) >= 300">
<img class="w-[75px] h-[75px]" src="@/assets/icon/bad.jpg" />
<div class="mt-2">
<p>Tumor Growth</p>
</div>
</div>
</div>
<!-- Data-->
<div class="w-[100%] h-[75%] landscape:h-[55%] px-[10%] bg-[#F2F2F2] rounded-2xl flex flex-col items-center">
<div class="h-[5%]"></div>
<div class="h-[10%] mt-3">
<span v-if="style === 0" class="font-barlow text-sm text-color-brown">Compare to {{ baseLineX }}</span>
<span v-if="style === 1" class="font-roboto text-[1rem] text-color-brown">{{ targetDay }}</span>
</div>
<div class="h-[10%] mt-3">
<span class="font-roboto text-[1rem] text-color-brown">{{ target }}</span>
</div>
<div v-if="style === 1" class="h-[75%] w-[100%]">
<div
class="h-[100%] w-[100%] mt-3 ml-3 font-barlowb font-semibold lg:text-[4rem] text-[2rem] text-center items-center flex"
>
<span>{{ tumorSize }}<span class="lg:text-[2rem] text-[1rem]"> mm³</span></span>
</div>
</div>
<!-- Data 1 -->
<div v-if="style === 0" class="h-[75%] w-[100%] text-center">
<div class="h-[100%] flex justify-center items-center">
<div class="absolute w-[100%]">
<span class="mx-auto font-barlowb font-semibold text-[5rem]"
>{{ String(targetValue).replace('-', '')
}}<span class="font-barlowb font-semibold text-[3rem]">% </span></span
>
</div>
<div style="text-align: -webkit-center">
<div
:class="
targetValue === ''
? 'w-[160px] h-[160px] rounded-1/2'
: targetValue < 0
? 'w-[160px] h-[160px] rounded-1/2 red-gradient'
: 'w-[160px] h-[160px] rounded-1/2 green-gradient'
"
></div>
</div>
</div>
</div>
</div>
</div>
</div>
<slideout v-model="showSlider" :arrow-button="false" :size="'65%'" dock="right" resizable>
<template #header>
<div class="w-full flex justify-end items-end">
<div class="text-end">
<img src="@/assets/icon/person_add.svg" @click="showModalClick" />
</div>
</div>
</template>
<div
v-for="(subject, index) in subjectList"
:key="subject.id"
@click="selectSubject(index)"
@mousedown="mouseDown"
@mouseup="mouseUp"
@mousemove="mouseMove"
@touchstart="touchDown($event, subject, index)"
@touchend="touchUp"
@touchmove="touchMove($event, subject, index)"
>
<div
:class="
index === subjectSelected
? 'h-[3rem] w-full my-4 pl-3 flex subject-selected'
: index === deletedIndex
? 'h-[3rem] w-full my-4 pl-3 flex deleted'
: 'h-[3rem] w-full my-4 pl-3 flex'
"
>
<div class="text-center place-self-center">
<img class="h-[2rem] w-[2rem] rounded-1/2" src="https://ionicframework.com/docs/img/demos/avatar.svg" />
</div>
<div class="flex-grow-[4] place-self-center">
<span class="font-barlow"> {{ subject.name }}</span>
</div>
<div v-if="deletedIndex === index" class="flex items-center fade-in fade-out">
<img class="h-[24px]" src="@/assets/icon/delete.svg" @touchstart.prevent="deleteSubject(subject, index)" />
</div>
</div>
</div>
</slideout>
<va-modal v-model="showModal" :mobile-fullscreen="false" @ok="createSubject">
<div class="flex items-center">
<div>
<va-input v-model="modalName" label="Name"></va-input>
<va-input v-model="modalDescription" class="mt-4" label="Description"></va-input>
</div>
</div>
</va-modal>
</div>
</template>
<script setup lang="ts">
import { ref, reactive, onMounted, computed, watch } from 'vue'
import api from '@/data/server-api'
import Plotly from 'plotly.js-dist-min'
import { AxiosResponse } from 'axios'
const touchCount = ref(0)
const style = ref(1)
const switchPresent = function (val: number, click = false) {
touchCount.value += 1
setTimeout(() => {
touchCount.value = 0
}, 1000)
if (touchCount.value == 2 || click) {
style.value = val
touchCount.value = 0
}
}
/* ---------- MODAL ---------- */
const showModal = ref(false)
const showModalClick = function () {
showSlider.value = false
showModal.value = true
}
const modalName = ref('')
const modalDescription = ref('')
/* ---------- slider ---------- */
const showSlider = ref(false)
const show = function () {
showSlider.value = true
}
const mouseDown = function () {
console.log('mouseDown')
}
const mouseUp = function () {
console.log('mouseUp')
}
const mouseMove = function () {
console.log('mouseMove')
}
const touchPress = ref(false)
const startX = ref(0)
const deletedIndex = ref(-1)
const touchDown = function (e: { changedTouches: { clientX: number }[] }, _subject: any, _index: any) {
deletedIndex.value = -1
touchPress.value = true
startX.value = e.changedTouches[0].clientX
}
const touchUp = function () {
console.log('touchUp')
}
const touchMove = function (e: { changedTouches: { clientX: number }[] }, _subject: any, index: number) {
if (e.changedTouches[0].clientX - startX.value > -50) {
deletedIndex.value = index
}
if (e.changedTouches[0].clientX - startX.value > 50) {
deletedIndex.value = -1
}
}
const test = function () {
console.log('test')
}
/* ---------- basic info ---------- */
// date
const date = new Date()
const day = date.getDate()
const month = date.toLocaleString('en-US', { month: 'short' })
const year = date.getFullYear()
const currentDate = `${month} ${day} ${year}`
const todayDate = ref(currentDate)
// name
const name = computed(() => {
if (subjectList.value[subjectSelected.value]) {
return subjectList.value[subjectSelected.value].name
}
return ''
})
// description
const description = computed(() => {
if (subjectList.value[subjectSelected.value]) {
return subjectList.value[subjectSelected.value].description
}
return ''
})
/* ---------- chart ---------- */
const plotlyChart = ref(null)
// const xData = reactive(['Day 1', 'Day 2', 'Day 3', 'Day 4', 'Day 5', 'Day 6', 'Day 7'])
// const yData = reactive([1, 2, 16, 8, 3, 10, 14])
const xData = reactive([])
const yData = reactive([])
const dateData = reactive([])
const percentData = reactive([])
const textData = reactive([])
let checkTumorSize = reactive([])
const baseLineIndex = ref(0)
const baseLineX = ref(null)
const clickIndex = ref(-1)
const clickX = ref(null)
const colorList = ['#289D7A', '#87E8C5', '#FFBDA8', '#EE1B2D']
// layout
const layout = {
autosize: true,
margin: {
l: 25,
r: 25,
b: 40,
t: 25,
},
xaxis: {
title: {
text: 'Day',
font: {
color: '#5D5D5D',
family: 'barlow-bold',
},
},
showgrid: false,
showline: true,
tickfont: {
color: '#5D5D5D',
family: 'barlow-bold',
size: 16,
},
fixedrange: true,
zeroline: false,
dtick: 2,
linewidth: 1.2,
},
yaxis: {
showgrid: false,
showline: true,
showticklabels: false,
zeroline: false,
fixedrange: true,
range: [-25, 1500],
linewidth: 1.2,
},
dragmode: 'pan',
// shapes: [
// {
// type: 'line',
// xref: 'paper',
// x0: 0,
// x1: 1,
// y0: yData[baseLineIndex.value],
// y1: yData[baseLineIndex.value],
// line: {
// color: '#BEBEBE',
// },
// },
// ],
}
// config
const config = { responsive: true, displayModeBar: false }
const getData = async function () {
const _subject = subjectList.value[subjectSelected.value]
let subjectData: boolean | never[] | AxiosResponse<any, any> = []
if (_subject) {
subjectData = await api.subject_data.get({ subject_id: _subject.id })
return subjectData.data
}
return subjectData
}
const resetData = function () {
xData.length = 0
yData.length = 0
dateData.length = 0
percentData.length = 0
textData.length = 0
baseLineIndex.value = 0
baseLineX.value = null
clickIndex.value = 0
clickX.value = null
}
// create data
const createData = async function () {
let firstFlag = false
// template data
const result = await getData()
result.sort((a: { created_at: string | number | Date }, b: { created_at: string | number | Date }) => {
return new Date(a.created_at) - new Date(b.created_at)
})
let startDate = null
let day = 0
let value = null
for (const subjectData of result) {
const dataDate = new Date(subjectData.created_at.split('T')[0])
// check startDate
if (startDate === null) {
startDate = dataDate
const formattedDate = dataDate.toLocaleDateString({
format: 'yyyy/MM/dd',
})
dateData.push(formattedDate)
}
// check change day
const diffTime = Math.round(dataDate.getTime() - startDate.getTime()) / (1000 * 60 * 60 * 24)
if (diffTime === day) {
value = Math.max(subjectData.data, value)
} else {
yData.push(value)
xData.push(day + 1)
const formattedDate = dataDate.toLocaleDateString({
format: 'yyyy/MM/dd',
})
dateData.push(formattedDate)
day = diffTime
value = subjectData.data
}
}
if (value !== null) {
yData.push(value)
xData.push(day + 1)
}
const data = yData.map((ele) => {
const relativeImpedance = ele / yData[0]
if (relativeImpedance >= 0.9611649) {
return Math.max(0, Math.round((relativeImpedance - 0.99269) / -0.000315251))
} else {
return Math.round((relativeImpedance - 0.96567) / -0.0000762321)
}
})
textData.push(...data)
checkTumorSize = data.map((ele) => {
if (firstFlag === false) {
if (ele >= 100) {
firstFlag = true
return true
}
return false
}
return false
})
}
const reDrawLine = function () {
Plotly.relayout(plotlyChart.value, {
annotations: [],
shapes: [],
})
console.log('baseLineX.value', baseLineX.value)
baseLineIndex.value = xData.findIndex((ele) => Number(ele) === Number(baseLineX.value))
console.log('baseLineIndex.value', baseLineIndex.value)
Plotly.restyle(plotlyChart.value, createNewMarker(yData, baseLineIndex.value))
const update = {
'xaxis.range': [0, xData.length + 1],
}
Plotly.relayout(plotlyChart.value, update)
const tickPoint = checkTumorSize.findIndex((ele) => ele === true)
if (xData.length - 1 >= tickPoint) {
Plotly.relayout(plotlyChart.value, {
shapes: [
{
line: {
color: '#BEBEBE',
dash: 'dash',
},
type: 'line',
yref: 'paper',
x0: xData[tickPoint],
x1: xData[tickPoint],
y0: 0,
y1: 0.95,
},
],
annotations: [
{
x: xData[tickPoint],
y: 1.1, // Adjust this value to control the distance of the text above the line
yref: 'paper',
text: 'Treatment Initiation',
showarrow: false,
font: {
size: 14,
color: '5D5D5D',
family: 'barlow-bold',
},
},
],
})
}
console.log('y', yData[baseLineIndex.value])
}
console.log('colorList', colorList)
const createNewMarker = function (verticalData: any[], baseLineIndex: number) {
const max = Math.max(...verticalData)
const min = Math.min(...verticalData)
const value = verticalData[baseLineIndex]
const newData = verticalData.map((ele: number) => {
if (ele === value) return 0
return -(100 * (ele - value)) / value
})
percentData.length = 0
percentData.push(...newData)
let base = 1 - (value - min) / (max - min)
console.log('base', base)
if (base === 1) base = 0.99
let diff = (textData[textData.length - 1] - Math.min(textData[0])) / 5
if (diff > 100) {
diff = Math.round(diff / 100) * 100
} else {
diff = Math.round(diff / 10) * 10
}
let color
if (xData.length === 1) color = [colorList[2], '0', '1500']
else color = [...textData, '1500']
const marker = {
marker: {
size: 9,
color: color,
colorscale: [
['0.0', colorList[0]],
[base, colorList[1]],
[base, colorList[2]],
['1.0', colorList[3]],
],
colorbar: {
// title: {
// side: 'left',
// text: '(%)',
// },
dtick: 250,
tickformat: '(',
outlinewidth: 0,
thickness: 10,
ticklabelposition: 'outside',
tickfont: {
color: '#5D5D5D',
family: 'barlow-bold',
size: 12,
},
x: -0.15,
xpad: 10,
},
},
}
return marker
}
const targetDay = computed(() => {
if (clickIndex.value !== -1) {
if (dateData[clickIndex.value]) {
return `Day ${clickX.value}`
}
}
return ''
})
const target = computed(() => {
if (clickIndex.value !== -1) {
if (dateData[clickIndex.value]) {
return `${dateData[clickIndex.value]}`
// return `${clickX.value}\xa0\xa0\xa0\xa0${dateData[clickIndex.value]}`
}
}
return ''
})
const targetValue = computed(() => {
if (clickIndex.value !== -1) {
const result = percentData[clickIndex.value]
if (result === undefined) return ''
if (result % 1 === 0) {
return result
} else {
return result.toFixed(2)
}
}
return ''
})
const tumorSize = computed(() => {
if (textData[clickIndex.value] !== undefined && !isNaN(textData[clickIndex.value])) {
return textData[clickIndex.value]
}
return ''
})
/* ---------- subject ---------- */
const subjectList = ref([
// {
// id: 0,
// name: 'mouse A',
// },
// {
// id: 1,
// name: 'mouse B',
// },
// {
// id: 2,
// name: 'mouse C',
// },
])
const subjectSelected = ref(-1)
const selectSubject = async function (idx: number) {
console.log('selectSubject', idx)
subjectSelected.value = idx
await initData()
}
const createSubject = async function () {
const newSubject = await api.subject.create({
name: modalName.value,
description: modalDescription.value,
})
subjectList.value.push(newSubject.data)
}
const deleteSubject = async function (_subject: any, _index: any) {
// await api.subject.update(subject.id, { deleted: true })
// await api.subject.clearDel()
// subjectList.value.splice(index, 1)
}
const initData = async function () {
resetData()
await createData()
console.log('createData', xData, yData, dateData)
const data = [
{
x: xData,
y: percentData,
text: textData,
line: {
color: 'rgb(241, 164, 161)',
},
hovertemplate: '<extra></extra>(%{x}, %{y}, %{text})',
},
]
clickIndex.value = xData.length - 1
clickX.value = xData[clickIndex.value]
baseLineIndex.value = 0
baseLineX.value = xData[baseLineIndex.value]
// layout.xaxis.range = [-0.3, 4]
Plotly.newPlot(plotlyChart.value, data, layout, config)
plotlyChart.value.on('plotly_click', function (data: { points: string | any[] }) {
if (data.points.length > 0) {
console.log('data.points', data.points)
const _clickIndex = xData.findIndex((ele) => ele === data.points[0].x)
clickIndex.value = _clickIndex
clickX.value = xData[clickIndex.value]
console.log('clickX.value', clickX.value, xData[clickIndex.value])
}
})
reDrawLine()
}
watch(baseLineX, (_newVal, _oldVal) => {
reDrawLine()
})
onMounted(async () => {
// get subject List
const subject = await api.subject.get()
subjectList.value.push(...subject.data)
// init select index 0 subject
await selectSubject(0)
})
</script>
<style>
/* @import url('https://fonts.googleapis.com/css2?family=Barlow:ital,wght@0,400;1,300&display=swap'); */
.green-gradient {
background: radial-gradient(
50% 50% at 50% 50%,
#43dca3 0%,
rgba(67, 220, 165, 0.47) 78.12%,
rgba(163, 254, 220, 0.44) 100%
);
}
.red-gradient {
background: radial-gradient(50% 50% at 50% 50%, #f8314d 0%, rgb(255, 228, 220) 100%);
}
.text-color-brown {
color: #424242;
}
.subject-selected {
background: #bfe2e6;
border-radius: 24px 0px 0px 24px;
}
.deleted {
background: #ec8c8a;
border-radius: 0px;
}
</style>
+13 -1
View File
@@ -9,7 +9,7 @@ import RouteViewComponent from '../layouts/RouterBypass.vue'
const routes: Array<RouteRecordRaw> = [
{
path: '/:catchAll(.*)',
redirect: { name: 'data-analysis' },
redirect: { name: 'subject' },
},
{
name: 'admin',
@@ -23,6 +23,18 @@ const routes: Array<RouteRecordRaw> = [
},
],
},
{
name: 'analysis',
path: '/analysis',
component: null,
children: [
{
name: 'subject',
path: 'subject',
component: () => import('../pages/analysis/Subject.vue'),
},
],
},
{
path: '/auth',
component: AuthLayout,
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+93
View File
@@ -0,0 +1,93 @@
Copyright 2017 The Barlow Project Authors (https://github.com/jpt/barlow)
This Font Software is licensed under the SIL Open Font License, Version 1.1.
This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL
-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------
PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font creation
efforts of academic and linguistic communities, and to provide a free and
open framework in which fonts may be shared and improved in partnership
with others.
The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply
to any document created using the fonts or their derivatives.
DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.
"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).
"Original Version" refers to the collection of Font Software components as
distributed by the Copyright Holder(s).
"Modified Version" refers to any derivative made by adding to, deleting,
or substituting -- in part or in whole -- any of the components of the
Original Version, by changing formats or by porting the Font Software to a
new environment.
"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.
PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed, modify,
redistribute, and sell modified and unmodified copies of the Font
Software, subject to the following conditions:
1) Neither the Font Software nor any of its individual components,
in Original or Modified Versions, may be sold by itself.
2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.
3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the corresponding
Copyright Holder. This restriction only applies to the primary font name as
presented to the users.
4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.
5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created
using the Font Software.
TERMINATION
This license becomes null and void if any of the above conditions are
not met.
DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
+146
View File
@@ -0,0 +1,146 @@
@font-face {
font-family: 'barlow';
font-style: normal;
font-weight: normal;
src: url('/src/scss/icon-fonts/Barlow/Barlow-Regular.ttf');
}
@font-face {
font-family: 'barlow-bold';
font-style: normal;
font-weight: 600;
src: url('/src/scss/icon-fonts/Barlow/Barlow-Bold.ttf');
}
// [class*='brandico-']::before {
// font-family: 'brandico', sans-serif;
// font-style: normal;
// }
// .brandico-facebook::before {
// content: '\f300';
// }
// .brandico-facebook-rect::before {
// content: '\f301';
// }
// .brandico-twitter::before {
// content: '\f302';
// }
// .brandico-twitter-bird::before {
// content: '\f303';
// }
// .brandico-vimeo::before {
// content: '\f30f';
// }
// .brandico-vimeo-rect::before {
// content: '\f30e';
// }
// .brandico-tumblr::before {
// content: '\f311';
// }
// .brandico-tumblr-rect::before {
// content: '\f310';
// }
// .brandico-googleplus-rect::before {
// content: '\f309';
// }
// .brandico-github-text::before {
// content: '\f307';
// }
// .brandico-github::before {
// content: '\f308';
// }
// .brandico-skype::before {
// content: '\f30b';
// }
// .brandico-icq::before {
// content: '\f304';
// }
// .brandico-yandex::before {
// content: '\f305';
// }
// .brandico-yandex-rect::before {
// content: '\f306';
// }
// .brandico-vkontakte-rect::before {
// content: '\f30a';
// }
// .brandico-odnoklassniki::before {
// content: '\f30c';
// }
// .brandico-odnoklassniki-rect::before {
// content: '\f30d';
// }
// .brandico-friendfeed::before {
// content: '\f312';
// }
// .brandico-friendfeed-rect::before {
// content: '\f313';
// }
// .brandico-blogger::before {
// content: '\f314';
// }
// .brandico-blogger-rect::before {
// content: '\f315';
// }
// .brandico-deviantart::before {
// content: '\f316';
// }
// .brandico-jabber::before {
// content: '\f317';
// }
// .brandico-lastfm::before {
// content: '\f318';
// }
// .brandico-lastfm-rect::before {
// content: '\f319';
// }
// .brandico-linkedin::before {
// content: '\f31a';
// }
// .brandico-linkedin-rect::before {
// content: '\f31b';
// }
// .brandico-picasa::before {
// content: '\f31c';
// }
// .brandico-wordpress::before {
// content: '\f31d';
// }
// .brandico-instagram::before {
// content: '\f31e';
// }
// .brandico-instagram-filled::before {
// content: '\f31f';
// }
+2
View File
@@ -11,3 +11,5 @@
@import 'glyphicons/glyphicons';
@import 'font-awesome/font-awesome';
@import 'ionicons/ionicons';
@import 'barlow/barlow';
@import 'roboto/roboto';
+202
View File
@@ -0,0 +1,202 @@
Apache License
Version 2.0, January 2004
http://www.apache.org/licenses/
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
1. Definitions.
"License" shall mean the terms and conditions for use, reproduction,
and distribution as defined by Sections 1 through 9 of this document.
"Licensor" shall mean the copyright owner or entity authorized by
the copyright owner that is granting the License.
"Legal Entity" shall mean the union of the acting entity and all
other entities that control, are controlled by, or are under common
control with that entity. For the purposes of this definition,
"control" means (i) the power, direct or indirect, to cause the
direction or management of such entity, whether by contract or
otherwise, or (ii) ownership of fifty percent (50%) or more of the
outstanding shares, or (iii) beneficial ownership of such entity.
"You" (or "Your") shall mean an individual or Legal Entity
exercising permissions granted by this License.
"Source" form shall mean the preferred form for making modifications,
including but not limited to software source code, documentation
source, and configuration files.
"Object" form shall mean any form resulting from mechanical
transformation or translation of a Source form, including but
not limited to compiled object code, generated documentation,
and conversions to other media types.
"Work" shall mean the work of authorship, whether in Source or
Object form, made available under the License, as indicated by a
copyright notice that is included in or attached to the work
(an example is provided in the Appendix below).
"Derivative Works" shall mean any work, whether in Source or Object
form, that is based on (or derived from) the Work and for which the
editorial revisions, annotations, elaborations, or other modifications
represent, as a whole, an original work of authorship. For the purposes
of this License, Derivative Works shall not include works that remain
separable from, or merely link (or bind by name) to the interfaces of,
the Work and Derivative Works thereof.
"Contribution" shall mean any work of authorship, including
the original version of the Work and any modifications or additions
to that Work or Derivative Works thereof, that is intentionally
submitted to Licensor for inclusion in the Work by the copyright owner
or by an individual or Legal Entity authorized to submit on behalf of
the copyright owner. For the purposes of this definition, "submitted"
means any form of electronic, verbal, or written communication sent
to the Licensor or its representatives, including but not limited to
communication on electronic mailing lists, source code control systems,
and issue tracking systems that are managed by, or on behalf of, the
Licensor for the purpose of discussing and improving the Work, but
excluding communication that is conspicuously marked or otherwise
designated in writing by the copyright owner as "Not a Contribution."
"Contributor" shall mean Licensor and any individual or Legal Entity
on behalf of whom a Contribution has been received by Licensor and
subsequently incorporated within the Work.
2. Grant of Copyright License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
copyright license to reproduce, prepare Derivative Works of,
publicly display, publicly perform, sublicense, and distribute the
Work and such Derivative Works in Source or Object form.
3. Grant of Patent License. Subject to the terms and conditions of
this License, each Contributor hereby grants to You a perpetual,
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
(except as stated in this section) patent license to make, have made,
use, offer to sell, sell, import, and otherwise transfer the Work,
where such license applies only to those patent claims licensable
by such Contributor that are necessarily infringed by their
Contribution(s) alone or by combination of their Contribution(s)
with the Work to which such Contribution(s) was submitted. If You
institute patent litigation against any entity (including a
cross-claim or counterclaim in a lawsuit) alleging that the Work
or a Contribution incorporated within the Work constitutes direct
or contributory patent infringement, then any patent licenses
granted to You under this License for that Work shall terminate
as of the date such litigation is filed.
4. Redistribution. You may reproduce and distribute copies of the
Work or Derivative Works thereof in any medium, with or without
modifications, and in Source or Object form, provided that You
meet the following conditions:
(a) You must give any other recipients of the Work or
Derivative Works a copy of this License; and
(b) You must cause any modified files to carry prominent notices
stating that You changed the files; and
(c) You must retain, in the Source form of any Derivative Works
that You distribute, all copyright, patent, trademark, and
attribution notices from the Source form of the Work,
excluding those notices that do not pertain to any part of
the Derivative Works; and
(d) If the Work includes a "NOTICE" text file as part of its
distribution, then any Derivative Works that You distribute must
include a readable copy of the attribution notices contained
within such NOTICE file, excluding those notices that do not
pertain to any part of the Derivative Works, in at least one
of the following places: within a NOTICE text file distributed
as part of the Derivative Works; within the Source form or
documentation, if provided along with the Derivative Works; or,
within a display generated by the Derivative Works, if and
wherever such third-party notices normally appear. The contents
of the NOTICE file are for informational purposes only and
do not modify the License. You may add Your own attribution
notices within Derivative Works that You distribute, alongside
or as an addendum to the NOTICE text from the Work, provided
that such additional attribution notices cannot be construed
as modifying the License.
You may add Your own copyright statement to Your modifications and
may provide additional or different license terms and conditions
for use, reproduction, or distribution of Your modifications, or
for any such Derivative Works as a whole, provided Your use,
reproduction, and distribution of the Work otherwise complies with
the conditions stated in this License.
5. Submission of Contributions. Unless You explicitly state otherwise,
any Contribution intentionally submitted for inclusion in the Work
by You to the Licensor shall be under the terms and conditions of
this License, without any additional terms or conditions.
Notwithstanding the above, nothing herein shall supersede or modify
the terms of any separate license agreement you may have executed
with Licensor regarding such Contributions.
6. Trademarks. This License does not grant permission to use the trade
names, trademarks, service marks, or product names of the Licensor,
except as required for reasonable and customary use in describing the
origin of the Work and reproducing the content of the NOTICE file.
7. Disclaimer of Warranty. Unless required by applicable law or
agreed to in writing, Licensor provides the Work (and each
Contributor provides its Contributions) on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
implied, including, without limitation, any warranties or conditions
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
PARTICULAR PURPOSE. You are solely responsible for determining the
appropriateness of using or redistributing the Work and assume any
risks associated with Your exercise of permissions under this License.
8. Limitation of Liability. In no event and under no legal theory,
whether in tort (including negligence), contract, or otherwise,
unless required by applicable law (such as deliberate and grossly
negligent acts) or agreed to in writing, shall any Contributor be
liable to You for damages, including any direct, indirect, special,
incidental, or consequential damages of any character arising as a
result of this License or out of the use or inability to use the
Work (including but not limited to damages for loss of goodwill,
work stoppage, computer failure or malfunction, or any and all
other commercial damages or losses), even if such Contributor
has been advised of the possibility of such damages.
9. Accepting Warranty or Additional Liability. While redistributing
the Work or Derivative Works thereof, You may choose to offer,
and charge a fee for, acceptance of support, warranty, indemnity,
or other liability obligations and/or rights consistent with this
License. However, in accepting such obligations, You may act only
on Your own behalf and on Your sole responsibility, not on behalf
of any other Contributor, and only if You agree to indemnify,
defend, and hold each Contributor harmless for any liability
incurred by, or claims asserted against, such Contributor by reason
of your accepting any such warranty or additional liability.
END OF TERMS AND CONDITIONS
APPENDIX: How to apply the Apache License to your work.
To apply the Apache License to your work, attach the following
boilerplate notice, with the fields enclosed by brackets "[]"
replaced with your own identifying information. (Don't include
the brackets!) The text should be enclosed in the appropriate
comment syntax for the file format. We also recommend that a
file or class name and description of purpose be included on the
same "printed page" as the copyright notice for easier
identification within third-party archives.
Copyright [yyyy] [name of copyright owner]
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
+146
View File
@@ -0,0 +1,146 @@
@font-face {
font-family: 'roboto';
font-style: normal;
font-weight: normal;
src: url('/src/scss/icon-fonts/roboto/Roboto-Regular.ttf');
}
@font-face {
font-family: 'roboto-bold';
font-style: normal;
font-weight: 600;
src: url('/src/scss/icon-fonts/roboto/Roboto-Bold.ttf');
}
// [class*='brandico-']::before {
// font-family: 'brandico', sans-serif;
// font-style: normal;
// }
// .brandico-facebook::before {
// content: '\f300';
// }
// .brandico-facebook-rect::before {
// content: '\f301';
// }
// .brandico-twitter::before {
// content: '\f302';
// }
// .brandico-twitter-bird::before {
// content: '\f303';
// }
// .brandico-vimeo::before {
// content: '\f30f';
// }
// .brandico-vimeo-rect::before {
// content: '\f30e';
// }
// .brandico-tumblr::before {
// content: '\f311';
// }
// .brandico-tumblr-rect::before {
// content: '\f310';
// }
// .brandico-googleplus-rect::before {
// content: '\f309';
// }
// .brandico-github-text::before {
// content: '\f307';
// }
// .brandico-github::before {
// content: '\f308';
// }
// .brandico-skype::before {
// content: '\f30b';
// }
// .brandico-icq::before {
// content: '\f304';
// }
// .brandico-yandex::before {
// content: '\f305';
// }
// .brandico-yandex-rect::before {
// content: '\f306';
// }
// .brandico-vkontakte-rect::before {
// content: '\f30a';
// }
// .brandico-odnoklassniki::before {
// content: '\f30c';
// }
// .brandico-odnoklassniki-rect::before {
// content: '\f30d';
// }
// .brandico-friendfeed::before {
// content: '\f312';
// }
// .brandico-friendfeed-rect::before {
// content: '\f313';
// }
// .brandico-blogger::before {
// content: '\f314';
// }
// .brandico-blogger-rect::before {
// content: '\f315';
// }
// .brandico-deviantart::before {
// content: '\f316';
// }
// .brandico-jabber::before {
// content: '\f317';
// }
// .brandico-lastfm::before {
// content: '\f318';
// }
// .brandico-lastfm-rect::before {
// content: '\f319';
// }
// .brandico-linkedin::before {
// content: '\f31a';
// }
// .brandico-linkedin-rect::before {
// content: '\f31b';
// }
// .brandico-picasa::before {
// content: '\f31c';
// }
// .brandico-wordpress::before {
// content: '\f31d';
// }
// .brandico-instagram::before {
// content: '\f31e';
// }
// .brandico-instagram-filled::before {
// content: '\f31f';
// }
+19
View File
@@ -0,0 +1,19 @@
// uno.config.ts
import { defineConfig } from 'unocss'
export default defineConfig({
// ...UnoCSS options
theme: {
colors: {
customColor: '#1E1E1E', // Replace with your desired color value
a: '#86BCD4',
b: '#BFDFF1',
},
fontFamily: {
barlow: ['barlow'],
barlowb: ['barlow-bold'],
roboto: ['roboto'],
robotob: ['roboto-bold'],
},
},
})
+4 -2
View File
@@ -1,10 +1,11 @@
import { defineConfig } from 'vite'
import vue from '@vitejs/plugin-vue'
import WindiCSS from 'vite-plugin-windicss'
// import WindiCSS from 'vite-plugin-windicss'
import { resolve, dirname } from 'node:path'
import { fileURLToPath } from 'url'
import VueI18nPlugin from '@intlify/vite-plugin-vue-i18n'
import path from 'path'
import UnoCSS from 'unocss/vite'
// https://vitejs.dev/config/
export default defineConfig({
@@ -13,7 +14,7 @@ export default defineConfig({
VueI18nPlugin({
include: resolve(dirname(fileURLToPath(import.meta.url)), './src/i18n/locales/**'),
}),
WindiCSS(),
UnoCSS(),
],
resolve: {
alias: [
@@ -28,6 +29,7 @@ export default defineConfig({
],
},
server: {
host: '0.0.0.0',
port: 8082,
},
})