Compare commits
6 Commits
Author | SHA1 | Date | |
---|---|---|---|
7c46970dfe | |||
eda629e58d | |||
51b20c860f | |||
7e0087a7db | |||
8ff45e210c | |||
f60bf907b1 |
284
package-lock.json
generated
284
package-lock.json
generated
@ -9,15 +9,15 @@
|
|||||||
"version": "0.0.0",
|
"version": "0.0.0",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdui/icons": "^1.0.2",
|
"@mdui/icons": "^1.0.2",
|
||||||
"@vueuse/core": "^13.2.0",
|
"@vueuse/core": "^13.3.0",
|
||||||
"@vueuse/integrations": "^13.2.0",
|
"@vueuse/integrations": "^13.3.0",
|
||||||
"axios": "^1.9.0",
|
"axios": "^1.9.0",
|
||||||
"compress-json": "^3.1.1",
|
"compress-json": "^3.1.1",
|
||||||
"cookie-parser": "^1.4.7",
|
"cookie-parser": "^1.4.7",
|
||||||
"express": "^5.1.0",
|
"express": "^5.1.0",
|
||||||
"mdui": "^2.1.3",
|
"mdui": "^2.1.4",
|
||||||
"pinia": "^3.0.2",
|
"pinia": "^3.0.2",
|
||||||
"vue": "^3.5.13",
|
"vue": "^3.5.15",
|
||||||
"vue-router": "^4.5.1"
|
"vue-router": "^4.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -26,7 +26,7 @@
|
|||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"markdown-it-anchor": "^9.2.0",
|
"markdown-it-anchor": "^9.2.0",
|
||||||
"markdown-it-attrs": "^4.3.1",
|
"markdown-it-attrs": "^4.3.1",
|
||||||
"sass": "^1.88.0",
|
"sass": "^1.89.0",
|
||||||
"vite": "^6.3.5",
|
"vite": "^6.3.5",
|
||||||
"vite-plugin-md": "^0.21.5",
|
"vite-plugin-md": "^0.21.5",
|
||||||
"vite-plugin-vue-devtools": "^7.7.6"
|
"vite-plugin-vue-devtools": "^7.7.6"
|
||||||
@ -290,17 +290,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-string-parser": {
|
"node_modules/@babel/helper-string-parser": {
|
||||||
"version": "7.25.9",
|
"version": "7.27.1",
|
||||||
"resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.25.9.tgz",
|
"resolved": "https://registry.npmmirror.com/@babel/helper-string-parser/-/helper-string-parser-7.27.1.tgz",
|
||||||
"integrity": "sha512-4A/SCr/2KLd5jrtOMFzaKjVtAei3+2r/NChoBNoZ3EyP/+GlhoaEGoWOZUmFmoITP7zOJyHIMm+DYRd8o3PvHA==",
|
"integrity": "sha512-qMlSxKbpRlAridDExk92nSobyDdpPijUq2DW6oDnUqd0iOGxmQjyqhMIihI9+zv4LPyZdRje2cavWPbCbWm3eA==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/helper-validator-identifier": {
|
"node_modules/@babel/helper-validator-identifier": {
|
||||||
"version": "7.25.9",
|
"version": "7.27.1",
|
||||||
"resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.25.9.tgz",
|
"resolved": "https://registry.npmmirror.com/@babel/helper-validator-identifier/-/helper-validator-identifier-7.27.1.tgz",
|
||||||
"integrity": "sha512-Ed61U6XJc3CVRfkERJWDz4dJwKe7iLmmJsbOGu9wSloNSFttHV0I8g6UAgb7qnK5ly5bGLPd4oXZlxCdANBOWQ==",
|
"integrity": "sha512-D2hP9eA+Sqx1kBZgzxZh0y1trbuU+JoDkiEwqhQ36nodYqJwyEIhPSdMNd7lOm/4io72luTPWH20Yda0xOuUow==",
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
}
|
}
|
||||||
@ -328,11 +328,11 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@babel/parser": {
|
"node_modules/@babel/parser": {
|
||||||
"version": "7.26.9",
|
"version": "7.27.3",
|
||||||
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.26.9.tgz",
|
"resolved": "https://registry.npmmirror.com/@babel/parser/-/parser-7.27.3.tgz",
|
||||||
"integrity": "sha512-81NWa1njQblgZbQHxWHpxxCzNsa3ZwvFqpUg7P+NNUU6f3UU2jBEg4OlF/J6rl8+PQGh1q6/zWScd001YwcA5A==",
|
"integrity": "sha512-xyYxRj6+tLNDTWi0KCBcZ9V7yg3/lwL9DWh9Uwh/RIVlIfFidggcgxKX3GCXwCiswwcGRawBKbEg2LG/Y8eJhw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/types": "^7.26.9"
|
"@babel/types": "^7.27.3"
|
||||||
},
|
},
|
||||||
"bin": {
|
"bin": {
|
||||||
"parser": "bin/babel-parser.js"
|
"parser": "bin/babel-parser.js"
|
||||||
@ -505,12 +505,12 @@
|
|||||||
"dev": true
|
"dev": true
|
||||||
},
|
},
|
||||||
"node_modules/@babel/types": {
|
"node_modules/@babel/types": {
|
||||||
"version": "7.26.9",
|
"version": "7.27.3",
|
||||||
"resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.26.9.tgz",
|
"resolved": "https://registry.npmmirror.com/@babel/types/-/types-7.27.3.tgz",
|
||||||
"integrity": "sha512-Y3IR1cRnOxOCDvMmNiym7XpXQ93iGDDPHx+Zj+NM+rg0fBaShfQLkg+hKPaZCEvg5N/LeCo4+Rj/i3FuJsIQaw==",
|
"integrity": "sha512-Y1GkI4ktrtvmawoSq+4FCVHNryea6uR+qUQy0AGxLSsjCX0nVmkYQMBLHDkXZuo5hGx7eYdnIaslsdBFm7zbUw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/helper-string-parser": "^7.25.9",
|
"@babel/helper-string-parser": "^7.27.1",
|
||||||
"@babel/helper-validator-identifier": "^7.25.9"
|
"@babel/helper-validator-identifier": "^7.27.1"
|
||||||
},
|
},
|
||||||
"engines": {
|
"engines": {
|
||||||
"node": ">=6.9.0"
|
"node": ">=6.9.0"
|
||||||
@ -1009,9 +1009,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@lit/reactive-element": {
|
"node_modules/@lit/reactive-element": {
|
||||||
"version": "2.0.4",
|
"version": "2.1.0",
|
||||||
"resolved": "https://registry.npmmirror.com/@lit/reactive-element/-/reactive-element-2.0.4.tgz",
|
"resolved": "https://registry.npmmirror.com/@lit/reactive-element/-/reactive-element-2.1.0.tgz",
|
||||||
"integrity": "sha512-GFn91inaUa2oHLak8awSIigYz0cU0Payr1rcFsrkf5OJ5eSPxElyZfKh0f2p9FsTiZWXQdWGJeXZICEfXXYSXQ==",
|
"integrity": "sha512-L2qyoZSQClcBmq0qajBVbhYEcG6iK0XfLn66ifLe/RfC0/ihpc+pl0Wdn8bJ8o+hj38cG0fGXRgSS20MuXn7qA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lit-labs/ssr-dom-shim": "^1.2.0"
|
"@lit-labs/ssr-dom-shim": "^1.2.0"
|
||||||
}
|
}
|
||||||
@ -1032,24 +1032,24 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mdui/jq": {
|
"node_modules/@mdui/jq": {
|
||||||
"version": "3.0.2",
|
"version": "3.0.3",
|
||||||
"resolved": "https://registry.npmmirror.com/@mdui/jq/-/jq-3.0.2.tgz",
|
"resolved": "https://registry.npmmirror.com/@mdui/jq/-/jq-3.0.3.tgz",
|
||||||
"integrity": "sha512-Er6cvAgW4RrjWrMBJDnajIiPD99EPYmAWyIgQURhUtO2V1NQQ80oLDo9ILllMoj1idsi1G4EQEqOEdinlH85DQ==",
|
"integrity": "sha512-nI8QK9UPHhiIbECrC1aMdLXNxP6WgUtC9XwRPs/e56FtwduePyxPyloXmgU8VYw85i6TtYdgClHS9tW8JweNZA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"ssr-window": "^4.0.2",
|
"ssr-window": "^5.0.0",
|
||||||
"tslib": "^2.6.3"
|
"tslib": "^2.8.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@mdui/shared": {
|
"node_modules/@mdui/shared": {
|
||||||
"version": "1.0.7",
|
"version": "1.0.8",
|
||||||
"resolved": "https://registry.npmmirror.com/@mdui/shared/-/shared-1.0.7.tgz",
|
"resolved": "https://registry.npmmirror.com/@mdui/shared/-/shared-1.0.8.tgz",
|
||||||
"integrity": "sha512-rs12tndL8Y4cy8eiGnkWvKMTHOTbwtHpfpFrPvnUm6ajLnAAaHjX7CJkOMjs5sh7cd+ez2Zm77MEgovKAWeeRQ==",
|
"integrity": "sha512-YY863fjHBuk8KtiO4uLDm1YyIVdGrWv4xUxfv8jP32WqIQBkSTbV7HN8jnKXXIej0NFP7pU89yGr4GJYzVszPg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lit/reactive-element": "^2.0.4",
|
"@lit/reactive-element": "^2.1.0",
|
||||||
"@mdui/jq": "^3.0.2",
|
"@mdui/jq": "^3.0.3",
|
||||||
"lit": "^3.1.4",
|
"lit": "^3.3.0",
|
||||||
"ssr-window": "^4.0.2",
|
"ssr-window": "^5.0.0",
|
||||||
"tslib": "^2.6.3"
|
"tslib": "^2.8.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@nodelib/fs.scandir": {
|
"node_modules/@nodelib/fs.scandir": {
|
||||||
@ -1818,49 +1818,49 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/compiler-core": {
|
"node_modules/@vue/compiler-core": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/compiler-core/-/compiler-core-3.5.15.tgz",
|
||||||
"integrity": "sha512-oOdAkwqUfW1WqpwSYJce06wvt6HljgY3fGeM9NcVA1HaYOij3mZG9Rkysn0OHuyUAGMbEbARIpsG+LPVlBJ5/Q==",
|
"integrity": "sha512-nGRc6YJg/kxNqbv/7Tg4juirPnjHvuVdhcmDvQWVZXlLHjouq7VsKmV1hIxM/8yKM0VUfwT/Uzc0lO510ltZqw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/parser": "^7.25.3",
|
"@babel/parser": "^7.27.2",
|
||||||
"@vue/shared": "3.5.13",
|
"@vue/shared": "3.5.15",
|
||||||
"entities": "^4.5.0",
|
"entities": "^4.5.0",
|
||||||
"estree-walker": "^2.0.2",
|
"estree-walker": "^2.0.2",
|
||||||
"source-map-js": "^1.2.0"
|
"source-map-js": "^1.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/compiler-dom": {
|
"node_modules/@vue/compiler-dom": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/compiler-dom/-/compiler-dom-3.5.15.tgz",
|
||||||
"integrity": "sha512-ZOJ46sMOKUjO3e94wPdCzQ6P1Lx/vhp2RSvfaab88Ajexs0AHeV0uasYhi99WPaogmBlRHNRuly8xV75cNTMDA==",
|
"integrity": "sha512-ZelQd9n+O/UCBdL00rlwCrsArSak+YLZpBVuNDio1hN3+wrCshYZEDUO3khSLAzPbF1oQS2duEoMDUHScUlYjA==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compiler-core": "3.5.13",
|
"@vue/compiler-core": "3.5.15",
|
||||||
"@vue/shared": "3.5.13"
|
"@vue/shared": "3.5.15"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/compiler-sfc": {
|
"node_modules/@vue/compiler-sfc": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/compiler-sfc/-/compiler-sfc-3.5.15.tgz",
|
||||||
"integrity": "sha512-6VdaljMpD82w6c2749Zhf5T9u5uLBWKnVue6XWxprDobftnletJ8+oel7sexFfM3qIxNmVE7LSFGTpv6obNyaQ==",
|
"integrity": "sha512-3zndKbxMsOU6afQWer75Zot/aydjtxNj0T2KLg033rAFaQUn2PGuE32ZRe4iMhflbTcAxL0yEYsRWFxtPro8RQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@babel/parser": "^7.25.3",
|
"@babel/parser": "^7.27.2",
|
||||||
"@vue/compiler-core": "3.5.13",
|
"@vue/compiler-core": "3.5.15",
|
||||||
"@vue/compiler-dom": "3.5.13",
|
"@vue/compiler-dom": "3.5.15",
|
||||||
"@vue/compiler-ssr": "3.5.13",
|
"@vue/compiler-ssr": "3.5.15",
|
||||||
"@vue/shared": "3.5.13",
|
"@vue/shared": "3.5.15",
|
||||||
"estree-walker": "^2.0.2",
|
"estree-walker": "^2.0.2",
|
||||||
"magic-string": "^0.30.11",
|
"magic-string": "^0.30.17",
|
||||||
"postcss": "^8.4.48",
|
"postcss": "^8.5.3",
|
||||||
"source-map-js": "^1.2.0"
|
"source-map-js": "^1.2.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/compiler-ssr": {
|
"node_modules/@vue/compiler-ssr": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/compiler-ssr/-/compiler-ssr-3.5.15.tgz",
|
||||||
"integrity": "sha512-wMH6vrYHxQl/IybKJagqbquvxpWCuVYpoUJfCqFZwa/JY1GdATAQ+TgVtgrwwMZ0D07QhA99rs/EAAWfvG6KpA==",
|
"integrity": "sha512-gShn8zRREZbrXqTtmLSCffgZXDWv8nHc/GhsW+mbwBfNZL5pI96e7IWcIq8XGQe1TLtVbu7EV9gFIVSmfyarPg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compiler-dom": "3.5.13",
|
"@vue/compiler-dom": "3.5.15",
|
||||||
"@vue/shared": "3.5.13"
|
"@vue/shared": "3.5.15"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/devtools-api": {
|
"node_modules/@vue/devtools-api": {
|
||||||
@ -1926,58 +1926,58 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/reactivity": {
|
"node_modules/@vue/reactivity": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/reactivity/-/reactivity-3.5.15.tgz",
|
||||||
"integrity": "sha512-NaCwtw8o48B9I6L1zl2p41OHo/2Z4wqYGGIK1Khu5T7yxrn+ATOixn/Udn2m+6kZKB/J7cuT9DbWWhRxqixACg==",
|
"integrity": "sha512-GaA5VUm30YWobCwpvcs9nvFKf27EdSLKDo2jA0IXzGS344oNpFNbEQ9z+Pp5ESDaxyS8FcH0vFN/XSe95BZtHQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/shared": "3.5.13"
|
"@vue/shared": "3.5.15"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/runtime-core": {
|
"node_modules/@vue/runtime-core": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/runtime-core/-/runtime-core-3.5.15.tgz",
|
||||||
"integrity": "sha512-Fj4YRQ3Az0WTZw1sFe+QDb0aXCerigEpw418pw1HBUKFtnQHWzwojaukAs2X/c9DQz4MQ4bsXTGlcpGxU/RCIw==",
|
"integrity": "sha512-CZAlIOQ93nj0OPpWWOx4+QDLCMzBNY85IQR4Voe6vIID149yF8g9WQaWnw042f/6JfvLttK7dnyWlC1EVCRK8Q==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/reactivity": "3.5.13",
|
"@vue/reactivity": "3.5.15",
|
||||||
"@vue/shared": "3.5.13"
|
"@vue/shared": "3.5.15"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/runtime-dom": {
|
"node_modules/@vue/runtime-dom": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/runtime-dom/-/runtime-dom-3.5.15.tgz",
|
||||||
"integrity": "sha512-dLaj94s93NYLqjLiyFzVs9X6dWhTdAlEAciC3Moq7gzAc13VJUdCnjjRurNM6uTLFATRHexHCTu/Xp3eW6yoog==",
|
"integrity": "sha512-wFplHKzKO/v998up2iCW3RN9TNUeDMhdBcNYZgs5LOokHntrB48dyuZHspcahKZczKKh3v6i164gapMPxBTKNw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/reactivity": "3.5.13",
|
"@vue/reactivity": "3.5.15",
|
||||||
"@vue/runtime-core": "3.5.13",
|
"@vue/runtime-core": "3.5.15",
|
||||||
"@vue/shared": "3.5.13",
|
"@vue/shared": "3.5.15",
|
||||||
"csstype": "^3.1.3"
|
"csstype": "^3.1.3"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/server-renderer": {
|
"node_modules/@vue/server-renderer": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/server-renderer/-/server-renderer-3.5.15.tgz",
|
||||||
"integrity": "sha512-wAi4IRJV/2SAW3htkTlB+dHeRmpTiVIK1OGLWV1yeStVSebSQQOwGwIq0D3ZIoBj2C2qpgz5+vX9iEBkTdk5YA==",
|
"integrity": "sha512-Gehc693kVTYkLt6QSYEjGvqvdK2zZ/gf/D5zkgmvBdeB30dNnVZS8yY7+IlBmHRd1rR/zwaqeu06Ij04ZxBscg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compiler-ssr": "3.5.13",
|
"@vue/compiler-ssr": "3.5.15",
|
||||||
"@vue/shared": "3.5.13"
|
"@vue/shared": "3.5.15"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "3.5.13"
|
"vue": "3.5.15"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vue/shared": {
|
"node_modules/@vue/shared": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/@vue/shared/-/shared-3.5.15.tgz",
|
||||||
"integrity": "sha512-/hnE/qP5ZoGpol0a5mDi45bOd7t3tjYJBjsgCsivow7D48cJeV5l05RD82lPqi7gRiphZM37rnhW1l6ZoCNNnQ=="
|
"integrity": "sha512-bKvgFJJL1ZX9KxMCTQY6xD9Dhe3nusd1OhyOb1cJYGqvAr0Vg8FIjHPMOEVbJ9GDT9HG+Bjdn4oS8ohKP8EvoA=="
|
||||||
},
|
},
|
||||||
"node_modules/@vueuse/core": {
|
"node_modules/@vueuse/core": {
|
||||||
"version": "13.2.0",
|
"version": "13.3.0",
|
||||||
"resolved": "https://registry.npmmirror.com/@vueuse/core/-/core-13.2.0.tgz",
|
"resolved": "https://registry.npmmirror.com/@vueuse/core/-/core-13.3.0.tgz",
|
||||||
"integrity": "sha512-n5TZoIAxbWAQ3PqdVPDzLgIRQOujFfMlatdI+f7ditSmoEeNpPBvp7h2zamzikCmrhFIePAwdEQB6ENccHr7Rg==",
|
"integrity": "sha512-uYRz5oEfebHCoRhK4moXFM3NSCd5vu2XMLOq/Riz5FdqZMy2RvBtazdtL3gEcmDyqkztDe9ZP/zymObMIbiYSg==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/web-bluetooth": "^0.0.21",
|
"@types/web-bluetooth": "^0.0.21",
|
||||||
"@vueuse/metadata": "13.2.0",
|
"@vueuse/metadata": "13.3.0",
|
||||||
"@vueuse/shared": "13.2.0"
|
"@vueuse/shared": "13.3.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/antfu"
|
"url": "https://github.com/sponsors/antfu"
|
||||||
@ -1987,12 +1987,12 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vueuse/integrations": {
|
"node_modules/@vueuse/integrations": {
|
||||||
"version": "13.2.0",
|
"version": "13.3.0",
|
||||||
"resolved": "https://registry.npmmirror.com/@vueuse/integrations/-/integrations-13.2.0.tgz",
|
"resolved": "https://registry.npmmirror.com/@vueuse/integrations/-/integrations-13.3.0.tgz",
|
||||||
"integrity": "sha512-tnwdzUYadAiewvMtBcjH/ZPgRCoQBvuVzbFA/VSysPDaIuG41Jp/Z1Sn/rYoFMOLJfcOEcVh+tN3mkrVIyumig==",
|
"integrity": "sha512-h5mGRYPbiTZTFP/AKELLPGnUDBly7z7Qd1pgEQlT3ItQ0NlZM0vB+8SOQycpSBOBlgg72Zgw+mi2r+4O/G8RuQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vueuse/core": "13.2.0",
|
"@vueuse/core": "13.3.0",
|
||||||
"@vueuse/shared": "13.2.0"
|
"@vueuse/shared": "13.3.0"
|
||||||
},
|
},
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/antfu"
|
"url": "https://github.com/sponsors/antfu"
|
||||||
@ -2052,17 +2052,17 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vueuse/metadata": {
|
"node_modules/@vueuse/metadata": {
|
||||||
"version": "13.2.0",
|
"version": "13.3.0",
|
||||||
"resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-13.2.0.tgz",
|
"resolved": "https://registry.npmmirror.com/@vueuse/metadata/-/metadata-13.3.0.tgz",
|
||||||
"integrity": "sha512-kPpzuQCU0+D8DZCzK0iPpIcXI+6ufWSgwnjJ6//GNpEn+SHViaCtR+XurzORChSgvpHO9YC8gGM97Y1kB+UabA==",
|
"integrity": "sha512-42IzJIOYCKIb0Yjv1JfaKpx8JlCiTmtCWrPxt7Ja6Wzoq0h79+YVXmBV03N966KEmDEESTbp5R/qO3AB5BDnGw==",
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/antfu"
|
"url": "https://github.com/sponsors/antfu"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/@vueuse/shared": {
|
"node_modules/@vueuse/shared": {
|
||||||
"version": "13.2.0",
|
"version": "13.3.0",
|
||||||
"resolved": "https://registry.npmmirror.com/@vueuse/shared/-/shared-13.2.0.tgz",
|
"resolved": "https://registry.npmmirror.com/@vueuse/shared/-/shared-13.3.0.tgz",
|
||||||
"integrity": "sha512-vx9ZPDF5HcU9up3Jgt3G62dMUfZEdk6tLyBAHYAG4F4n73vpaA7J5hdncDI/lS9Vm7GA/FPlbOmh9TrDZROTpg==",
|
"integrity": "sha512-L1QKsF0Eg9tiZSFXTgodYnu0Rsa2P0En2LuLrIs/jgrkyiDuJSsPZK+tx+wU0mMsYHUYEjNsuE41uqqkuR8VhA==",
|
||||||
"funding": {
|
"funding": {
|
||||||
"url": "https://github.com/sponsors/antfu"
|
"url": "https://github.com/sponsors/antfu"
|
||||||
},
|
},
|
||||||
@ -4166,29 +4166,29 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lit": {
|
"node_modules/lit": {
|
||||||
"version": "3.2.1",
|
"version": "3.3.0",
|
||||||
"resolved": "https://registry.npmmirror.com/lit/-/lit-3.2.1.tgz",
|
"resolved": "https://registry.npmmirror.com/lit/-/lit-3.3.0.tgz",
|
||||||
"integrity": "sha512-1BBa1E/z0O9ye5fZprPtdqnc0BFzxIxTTOO/tQFmyC/hj1O3jL4TfmLBw0WEwjAokdLwpclkvGgDJwTIh0/22w==",
|
"integrity": "sha512-DGVsqsOIHBww2DqnuZzW7QsuCdahp50ojuDaBPC7jUDRpYoH0z7kHBBYZewRzer75FwtrkmkKk7iOAwSaWdBmw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lit/reactive-element": "^2.0.4",
|
"@lit/reactive-element": "^2.1.0",
|
||||||
"lit-element": "^4.1.0",
|
"lit-element": "^4.2.0",
|
||||||
"lit-html": "^3.2.0"
|
"lit-html": "^3.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lit-element": {
|
"node_modules/lit-element": {
|
||||||
"version": "4.1.1",
|
"version": "4.2.0",
|
||||||
"resolved": "https://registry.npmmirror.com/lit-element/-/lit-element-4.1.1.tgz",
|
"resolved": "https://registry.npmmirror.com/lit-element/-/lit-element-4.2.0.tgz",
|
||||||
"integrity": "sha512-HO9Tkkh34QkTeUmEdNYhMT8hzLid7YlMlATSi1q4q17HE5d9mrrEHJ/o8O2D0cMi182zK1F3v7x0PWFjrhXFew==",
|
"integrity": "sha512-MGrXJVAI5x+Bfth/pU9Kst1iWID6GHDLEzFEnyULB/sFiRLgkd8NPK/PeeXxktA3T6EIIaq8U3KcbTU5XFcP2Q==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@lit-labs/ssr-dom-shim": "^1.2.0",
|
"@lit-labs/ssr-dom-shim": "^1.2.0",
|
||||||
"@lit/reactive-element": "^2.0.4",
|
"@lit/reactive-element": "^2.1.0",
|
||||||
"lit-html": "^3.2.0"
|
"lit-html": "^3.3.0"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/lit-html": {
|
"node_modules/lit-html": {
|
||||||
"version": "3.2.1",
|
"version": "3.3.0",
|
||||||
"resolved": "https://registry.npmmirror.com/lit-html/-/lit-html-3.2.1.tgz",
|
"resolved": "https://registry.npmmirror.com/lit-html/-/lit-html-3.3.0.tgz",
|
||||||
"integrity": "sha512-qI/3lziaPMSKsrwlxH/xMgikhQ0EGOX2ICU73Bi/YHFvz2j/yMCIrw4+puF2IpQ4+upd3EWbvnHM9+PnJn48YA==",
|
"integrity": "sha512-RHoswrFAxY2d8Cf2mm4OZ1DgzCoBKUKSPvA1fhtSELxUERq2aQQ2h05pO9j81gS1o7RIRJ+CePLogfyahwmynw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@types/trusted-types": "^2.0.2"
|
"@types/trusted-types": "^2.0.2"
|
||||||
}
|
}
|
||||||
@ -4290,21 +4290,21 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mdui": {
|
"node_modules/mdui": {
|
||||||
"version": "2.1.3",
|
"version": "2.1.4",
|
||||||
"resolved": "https://registry.npmmirror.com/mdui/-/mdui-2.1.3.tgz",
|
"resolved": "https://registry.npmmirror.com/mdui/-/mdui-2.1.4.tgz",
|
||||||
"integrity": "sha512-rBaFJYPloaWcHSem9PCD3AT3nyjO072M9HCOGifGxmhVE0QYABtzdiActf9BvgbTMOrIPdlCyPKF+JVW/b6G4Q==",
|
"integrity": "sha512-QtK5xia5HXtVO7yH30QjwvvNruw5JdrJL1MEc1k6S/ZfsbHOj6BxxdYjrdv2HiN5ikkGqt5CIbZdFyq6shaZyw==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@floating-ui/utils": "^0.2.4",
|
"@floating-ui/utils": "^0.2.9",
|
||||||
"@lit/localize": "^0.12.1",
|
"@lit/localize": "^0.12.2",
|
||||||
"@lit/reactive-element": "^2.0.4",
|
"@lit/reactive-element": "^2.1.0",
|
||||||
"@material/material-color-utilities": "^0.3.0",
|
"@material/material-color-utilities": "^0.3.0",
|
||||||
"@mdui/jq": "^3.0.2",
|
"@mdui/jq": "^3.0.3",
|
||||||
"@mdui/shared": "^1.0.7",
|
"@mdui/shared": "^1.0.8",
|
||||||
"classcat": "^5.0.5",
|
"classcat": "^5.0.5",
|
||||||
"is-promise": "^4.0.0",
|
"is-promise": "^4.0.0",
|
||||||
"lit": "^3.1.4",
|
"lit": "^3.3.0",
|
||||||
"ssr-window": "^4.0.2",
|
"ssr-window": "^5.0.0",
|
||||||
"tslib": "^2.6.3"
|
"tslib": "^2.8.1"
|
||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/mdurl": {
|
"node_modules/mdurl": {
|
||||||
@ -4958,9 +4958,9 @@
|
|||||||
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
"integrity": "sha512-YZo3K82SD7Riyi0E1EQPojLz7kpepnSQI9IyPbHHg1XXXevb5dJI7tpyN2ADxGcQbHG7vcyRHk0cbwqcQriUtg=="
|
||||||
},
|
},
|
||||||
"node_modules/sass": {
|
"node_modules/sass": {
|
||||||
"version": "1.88.0",
|
"version": "1.89.0",
|
||||||
"resolved": "https://registry.npmmirror.com/sass/-/sass-1.88.0.tgz",
|
"resolved": "https://registry.npmmirror.com/sass/-/sass-1.89.0.tgz",
|
||||||
"integrity": "sha512-sF6TWQqjFvr4JILXzG4ucGOLELkESHL+I5QJhh7CNaE+Yge0SI+ehCatsXhJ7ymU1hAFcIS3/PBpjdIbXoyVbg==",
|
"integrity": "sha512-ld+kQU8YTdGNjOLfRWBzewJpU5cwEv/h5yyqlSeJcj6Yh8U4TDA9UA5FPicqDz/xgRPWRSYIQNiFks21TbA9KQ==",
|
||||||
"dev": true,
|
"dev": true,
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"chokidar": "^4.0.0",
|
"chokidar": "^4.0.0",
|
||||||
@ -5221,9 +5221,9 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/ssr-window": {
|
"node_modules/ssr-window": {
|
||||||
"version": "4.0.2",
|
"version": "5.0.0",
|
||||||
"resolved": "https://registry.npmmirror.com/ssr-window/-/ssr-window-4.0.2.tgz",
|
"resolved": "https://registry.npmmirror.com/ssr-window/-/ssr-window-5.0.0.tgz",
|
||||||
"integrity": "sha512-ISv/Ch+ig7SOtw7G2+qkwfVASzazUnvlDTwypdLoPoySv+6MqlOV10VwPSE6EWkGjhW50lUmghPmpYZXMu/+AQ=="
|
"integrity": "sha512-3Iqawoo0DkAaUEScd80SYq3I5clEFDVy//DdzjHXACj/hqcKzsnMzRZ1yHRj+r5dW3UeXNs30ofnhP6YSWg5iA=="
|
||||||
},
|
},
|
||||||
"node_modules/statuses": {
|
"node_modules/statuses": {
|
||||||
"version": "2.0.1",
|
"version": "2.0.1",
|
||||||
@ -6235,15 +6235,15 @@
|
|||||||
}
|
}
|
||||||
},
|
},
|
||||||
"node_modules/vue": {
|
"node_modules/vue": {
|
||||||
"version": "3.5.13",
|
"version": "3.5.15",
|
||||||
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.13.tgz",
|
"resolved": "https://registry.npmmirror.com/vue/-/vue-3.5.15.tgz",
|
||||||
"integrity": "sha512-wmeiSMxkZCSc+PM2w2VRsOYAZC8GdipNFRTsLSfodVqI9mbejKeXEGr8SckuLnrQPGe3oJN5c3K0vpoU9q/wCQ==",
|
"integrity": "sha512-aD9zK4rB43JAMK/5BmS4LdPiEp8Fdh8P1Ve/XNuMF5YRf78fCyPE6FUbQwcaWQ5oZ1R2CD9NKE0FFOVpMR7gEQ==",
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@vue/compiler-dom": "3.5.13",
|
"@vue/compiler-dom": "3.5.15",
|
||||||
"@vue/compiler-sfc": "3.5.13",
|
"@vue/compiler-sfc": "3.5.15",
|
||||||
"@vue/runtime-dom": "3.5.13",
|
"@vue/runtime-dom": "3.5.15",
|
||||||
"@vue/server-renderer": "3.5.13",
|
"@vue/server-renderer": "3.5.15",
|
||||||
"@vue/shared": "3.5.13"
|
"@vue/shared": "3.5.15"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"typescript": "*"
|
"typescript": "*"
|
||||||
|
10
package.json
10
package.json
@ -12,15 +12,15 @@
|
|||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@mdui/icons": "^1.0.2",
|
"@mdui/icons": "^1.0.2",
|
||||||
"@vueuse/core": "^13.2.0",
|
"@vueuse/core": "^13.3.0",
|
||||||
"@vueuse/integrations": "^13.2.0",
|
"@vueuse/integrations": "^13.3.0",
|
||||||
"axios": "^1.9.0",
|
"axios": "^1.9.0",
|
||||||
"compress-json": "^3.1.1",
|
"compress-json": "^3.1.1",
|
||||||
"cookie-parser": "^1.4.7",
|
"cookie-parser": "^1.4.7",
|
||||||
"express": "^5.1.0",
|
"express": "^5.1.0",
|
||||||
"mdui": "^2.1.3",
|
"mdui": "^2.1.4",
|
||||||
"pinia": "^3.0.2",
|
"pinia": "^3.0.2",
|
||||||
"vue": "^3.5.13",
|
"vue": "^3.5.15",
|
||||||
"vue-router": "^4.5.1"
|
"vue-router": "^4.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
@ -29,7 +29,7 @@
|
|||||||
"cross-env": "^7.0.3",
|
"cross-env": "^7.0.3",
|
||||||
"markdown-it-anchor": "^9.2.0",
|
"markdown-it-anchor": "^9.2.0",
|
||||||
"markdown-it-attrs": "^4.3.1",
|
"markdown-it-attrs": "^4.3.1",
|
||||||
"sass": "^1.88.0",
|
"sass": "^1.89.0",
|
||||||
"vite": "^6.3.5",
|
"vite": "^6.3.5",
|
||||||
"vite-plugin-md": "^0.21.5",
|
"vite-plugin-md": "^0.21.5",
|
||||||
"vite-plugin-vue-devtools": "^7.7.6"
|
"vite-plugin-vue-devtools": "^7.7.6"
|
||||||
|
@ -7,25 +7,30 @@ export const useSimpleSearchState = defineStore('simpleSearch', () => {
|
|||||||
const api = useApiStore()
|
const api = useApiStore()
|
||||||
const keyword = ref('')
|
const keyword = ref('')
|
||||||
const result = ref([])
|
const result = ref([])
|
||||||
const count = ref([])
|
const count = ref(0)
|
||||||
const pageCount = ref(0)
|
const pageCount = ref(0)
|
||||||
const currentPage = ref(0)
|
const currentPage = ref(0)
|
||||||
const state = ref(null)
|
const state = ref(null)
|
||||||
async function load() {
|
async function load() {
|
||||||
if (currentPage.value == pageCount.value) state.value = 'finish'
|
if (pageCount.value && currentPage.value >= pageCount.value){ state.value = 'finish'; return }
|
||||||
|
state.value = 'loading'
|
||||||
let res = await api.workSimpleSearch(keyword.value, currentPage.value)
|
let res = await api.workSimpleSearch(keyword.value, currentPage.value)
|
||||||
res = res.data
|
res = res.data
|
||||||
if (res.code == 0) {
|
if (res.code == 0) {
|
||||||
currentPage.value = res.page
|
currentPage.value++
|
||||||
pageCount.value = res.pageCount
|
if( pageCount.value ) {
|
||||||
|
if (currentPage.value > pageCount.value) currentPage.value = pageCount.value
|
||||||
|
} else {
|
||||||
|
pageCount.value = res.pageCount
|
||||||
|
}
|
||||||
count.value = res.count
|
count.value = res.count
|
||||||
state.value = import.meta.env.SSR ? 'ssrready' : 'ready'
|
state.value = import.meta.env.SSR ? 'ssrready' : 'ready'
|
||||||
result.value.push(...res.works)
|
result.value.push(...res.works)
|
||||||
} else if (res.code == 1) {
|
} else if (res.code == 1) {
|
||||||
if (currentPage.value) {
|
if ( count.value ) {
|
||||||
state.value = 'finish'
|
state.value = 'finish'
|
||||||
} else {
|
} else {
|
||||||
currentPage.value = 1
|
currentPage.value = 0
|
||||||
state.value = 'notfound'
|
state.value = 'notfound'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
@ -35,7 +40,8 @@ export const useSimpleSearchState = defineStore('simpleSearch', () => {
|
|||||||
keyword.value = key
|
keyword.value = key
|
||||||
result.value = []
|
result.value = []
|
||||||
state.value = 'loading'
|
state.value = 'loading'
|
||||||
currentPage.value = 0
|
currentPage.value = 1
|
||||||
|
pageCount.value = 0
|
||||||
await load()
|
await load()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -21,10 +21,14 @@ export const useWorkReadState = defineStore('workRead', () => {
|
|||||||
const category = ref([])
|
const category = ref([])
|
||||||
const fandom = ref([])
|
const fandom = ref([])
|
||||||
const lang = ref(null)
|
const lang = ref(null)
|
||||||
|
const chapters = ref([])
|
||||||
|
const chapterIndex = ref(null)
|
||||||
|
const chapterStat = ref(null)
|
||||||
function setData(data) {
|
function setData(data) {
|
||||||
|
cid.value = data.chapterId
|
||||||
id.value = data.workId
|
id.value = data.workId
|
||||||
title.value = data.title
|
title.value = data.title
|
||||||
summary.value = [escapeAndFormatText(data.summary)]
|
summary.value = data.summary ? escapeAndFormatText(data.summary) : null
|
||||||
pseud.value = data.pseud
|
pseud.value = data.pseud
|
||||||
text.value = data.text
|
text.value = data.text
|
||||||
publishedTime.value = data.stats.publishedTime
|
publishedTime.value = data.stats.publishedTime
|
||||||
@ -34,11 +38,27 @@ export const useWorkReadState = defineStore('workRead', () => {
|
|||||||
category.value = data.category
|
category.value = data.category
|
||||||
fandom.value = data.fandom
|
fandom.value = data.fandom
|
||||||
lang.value = data.lang
|
lang.value = data.lang
|
||||||
|
chapters.value = data.chapters || []
|
||||||
|
chapterIndex.value = data.chapterIndex ?? null
|
||||||
|
chapterStat.value = data.stats.chapter
|
||||||
}
|
}
|
||||||
async function loadWork(target, targetc) {
|
async function loadWork(target, targetc) {
|
||||||
if (target == id.value && targetc == cid.value || state.value == 'loading') return
|
const itarget = parseInt(target)
|
||||||
|
if (isNaN(itarget)) {
|
||||||
|
console.log('a')
|
||||||
|
state.value = 'errformat'
|
||||||
|
return
|
||||||
|
}
|
||||||
|
const itargetc = parseInt(targetc)
|
||||||
|
if (
|
||||||
|
itarget === id.value &&
|
||||||
|
(itargetc === cid.value || (isNaN(itargetc) && cid.value === null)) &&
|
||||||
|
state.value !== 'loading'
|
||||||
|
) return
|
||||||
|
id.value = itarget
|
||||||
|
cid.value = isNaN(itargetc) ? null : itargetc
|
||||||
state.value = 'loading'
|
state.value = 'loading'
|
||||||
const result = await api.getWork(target, targetc)
|
const result = await api.getWork(id.value, cid.value)
|
||||||
if (result.status == 200) {
|
if (result.status == 200) {
|
||||||
setData(result.data)
|
setData(result.data)
|
||||||
state.value = 'ready'
|
state.value = 'ready'
|
||||||
@ -61,6 +81,9 @@ export const useWorkReadState = defineStore('workRead', () => {
|
|||||||
category,
|
category,
|
||||||
fandom,
|
fandom,
|
||||||
lang,
|
lang,
|
||||||
|
chapters,
|
||||||
|
chapterIndex,
|
||||||
|
chapterStat,
|
||||||
setData,
|
setData,
|
||||||
loadWork
|
loadWork
|
||||||
}
|
}
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
<script setup>
|
<script setup>
|
||||||
import { ref, onMounted, onServerPrefetch } from 'vue'
|
import { ref, watch, onMounted, nextTick, onServerPrefetch, onBeforeUnmount } from 'vue'
|
||||||
import { useRoute } from 'vue-router'
|
import { useRoute, useRouter } from 'vue-router'
|
||||||
|
|
||||||
import 'mdui/components/text-field.js'
|
import 'mdui/components/text-field.js'
|
||||||
import 'mdui/components/card.js'
|
import 'mdui/components/card.js'
|
||||||
@ -9,25 +9,53 @@ import { escapeAndFormatText } from '../utils.js'
|
|||||||
import { useSimpleSearchState } from '../stores/search.js'
|
import { useSimpleSearchState } from '../stores/search.js'
|
||||||
|
|
||||||
const route = useRoute()
|
const route = useRoute()
|
||||||
|
const router = useRouter()
|
||||||
const inputField = ref('')
|
|
||||||
|
|
||||||
const simpleSearchState = useSimpleSearchState()
|
const simpleSearchState = useSimpleSearchState()
|
||||||
|
|
||||||
|
const inputField = ref('')
|
||||||
|
const label = ref(null)
|
||||||
|
const stateLabel = {
|
||||||
|
'loading': '加载中',
|
||||||
|
'finish': '加载完成',
|
||||||
|
'ready': '就绪',
|
||||||
|
'ssrready': '就绪',
|
||||||
|
'notfound': '未找到',
|
||||||
|
'ssrnotfound': '未找到',
|
||||||
|
}
|
||||||
|
|
||||||
|
let isObserver = null
|
||||||
|
|
||||||
onServerPrefetch(async () => {
|
onServerPrefetch(async () => {
|
||||||
if (route.query.keyword) {
|
if (route.query.keyword) {
|
||||||
await simpleSearchState.start(route.query.keyword)
|
await simpleSearchState.start(route.query.keyword)
|
||||||
}
|
}
|
||||||
console.log(simpleSearchState.result[0])
|
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(() => {
|
onMounted(async () => {
|
||||||
|
watch(() => simpleSearchState.keyword, () => document.title = simpleSearchState.keyword)
|
||||||
inputField.value = route.query.keyword || ''
|
inputField.value = route.query.keyword || ''
|
||||||
if (inputField.value && simpleSearchState != 'ssrready') simpleSearchState.start(inputField.value)
|
if (inputField.value && simpleSearchState != 'ssrready') simpleSearchState.start(inputField.value)
|
||||||
|
isObserver = new IntersectionObserver((entries) => {
|
||||||
|
entries.forEach((entry) => {
|
||||||
|
if (entry.isIntersecting) {
|
||||||
|
if (simpleSearchState.state == 'ready' || simpleSearchState.state == 'ssrready') setTimeout(simpleSearchState.load,400)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}, { threshold: 1 })
|
||||||
|
await nextTick()
|
||||||
|
isObserver.observe(label.value)
|
||||||
|
})
|
||||||
|
|
||||||
|
onBeforeUnmount(() => {
|
||||||
|
isObserver.disconnect();
|
||||||
})
|
})
|
||||||
|
|
||||||
function onSubmit(data) {
|
function onSubmit(data) {
|
||||||
if (simpleSearchState) simpleSearchState.start(data.src)
|
if (simpleSearchState) {
|
||||||
|
simpleSearchState.start(data.src)
|
||||||
|
router.replace(`/search/simple?keyword=${encodeURIComponent(data.src)}`)
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
</script>
|
</script>
|
||||||
@ -45,7 +73,9 @@ function onSubmit(data) {
|
|||||||
<input type="text" id="src" name="src" />
|
<input type="text" id="src" name="src" />
|
||||||
<input type="submit" />
|
<input type="submit" />
|
||||||
</template></ClientOnly></Form><Hr />
|
</template></ClientOnly></Form><Hr />
|
||||||
<p>State: {{ simpleSearchState.state }}</p><Hr/>
|
<template v-if="simpleSearchState.state == 'ready' || simpleSearchState.state == 'finish' || simpleSearchState.state == 'ssrready'">
|
||||||
|
<p>找到 {{ simpleSearchState.count }}</p><Hr/>
|
||||||
|
</template>
|
||||||
<template v-if="simpleSearchState.result" v-for="work in simpleSearchState.result" :key="work.workId">
|
<template v-if="simpleSearchState.result" v-for="work in simpleSearchState.result" :key="work.workId">
|
||||||
<ClientOnly><mdui-card style="margin: 8px 0px;"><article>
|
<ClientOnly><mdui-card style="margin: 8px 0px;"><article>
|
||||||
<router-link :to="`/work/${work.workId}`"><h3>{{ work.title }}</h3></router-link>
|
<router-link :to="`/work/${work.workId}`"><h3>{{ work.title }}</h3></router-link>
|
||||||
@ -59,4 +89,9 @@ function onSubmit(data) {
|
|||||||
<Hr />
|
<Hr />
|
||||||
</template></ClientOnly>
|
</template></ClientOnly>
|
||||||
</template>
|
</template>
|
||||||
|
<p style="display: flex;" ref='label'>
|
||||||
|
{{ stateLabel[simpleSearchState.state] }} ({{ simpleSearchState.count }})
|
||||||
|
<span style="flex: 1;"/>
|
||||||
|
{{ simpleSearchState.currentPage }} / {{ simpleSearchState.pageCount }}
|
||||||
|
</p>
|
||||||
</template>
|
</template>
|
||||||
|
@ -19,8 +19,6 @@ import 'mdui/components/button.js'
|
|||||||
import 'mdui/components/dropdown.js'
|
import 'mdui/components/dropdown.js'
|
||||||
import 'mdui/components/menu.js'
|
import 'mdui/components/menu.js'
|
||||||
import 'mdui/components/menu-item.js'
|
import 'mdui/components/menu-item.js'
|
||||||
import 'mdui/components/collapse.js'
|
|
||||||
import 'mdui/components/collapse-item.js'
|
|
||||||
import 'mdui/components/card.js'
|
import 'mdui/components/card.js'
|
||||||
|
|
||||||
import '@mdui/icons/bookmark.js'
|
import '@mdui/icons/bookmark.js'
|
||||||
@ -41,6 +39,7 @@ let lastCloseTimer = null
|
|||||||
let isObserver = null
|
let isObserver = null
|
||||||
let paragraphs = []
|
let paragraphs = []
|
||||||
let currentParagraph = null
|
let currentParagraph = null
|
||||||
|
const chapterDialog = ref(null)
|
||||||
|
|
||||||
const categoryName = {
|
const categoryName = {
|
||||||
mm: "男/男",
|
mm: "男/男",
|
||||||
@ -48,21 +47,25 @@ const categoryName = {
|
|||||||
fm: '女/男'
|
fm: '女/男'
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
||||||
onServerPrefetch(async () => {
|
onServerPrefetch(async () => {
|
||||||
await workReadState.loadWork(route.params.id, route.params.cid)
|
await workReadState.loadWork(route.params.id, route.params.cid)
|
||||||
})
|
})
|
||||||
|
|
||||||
onMounted(async () => {
|
onMounted(async () => {
|
||||||
|
watch(() => workReadState.state, (value) => { if (value == 'ready') routeState.customTitle = workReadState.title })
|
||||||
if (workReadState.state != 'ssrnotfound') await workReadState.loadWork(route.params.id, route.params.cid)
|
if (workReadState.state != 'ssrnotfound') await workReadState.loadWork(route.params.id, route.params.cid)
|
||||||
if (workReadState.state == 'ready') {
|
if (workReadState.state == 'ready') {
|
||||||
routeState.customTitle = workReadState.title
|
routeState.customTitle = workReadState.title
|
||||||
|
if (workReadState.cid !== null && parseInt(route.params.cid) != workReadState.cid) {
|
||||||
|
router.replace(`/work/${workReadState.id}/${workReadState.cid}`)
|
||||||
|
return;
|
||||||
|
}
|
||||||
const paraCount = workReadState.text.length - 1
|
const paraCount = workReadState.text.length - 1
|
||||||
isObserver = new IntersectionObserver((entries) => {
|
isObserver = new IntersectionObserver((entries) => {
|
||||||
entries.forEach((entry) => {
|
entries.forEach((entry) => {
|
||||||
if (entry.isIntersecting) {
|
if (entry.isIntersecting) {
|
||||||
currentParagraph = entry.target
|
currentParagraph = entry.target
|
||||||
readIndex = entry.target.dataset.index;
|
readIndex = entry.target.dataset.index
|
||||||
readPercent.value = parseInt(readIndex / paraCount * 100)
|
readPercent.value = parseInt(readIndex / paraCount * 100)
|
||||||
if (lastPercent == 0) {
|
if (lastPercent == 0) {
|
||||||
lastPercent = readPercent.value
|
lastPercent = readPercent.value
|
||||||
@ -89,8 +92,13 @@ onMounted(async () => {
|
|||||||
})
|
})
|
||||||
|
|
||||||
onBeforeUnmount(() => {
|
onBeforeUnmount(() => {
|
||||||
isObserver.disconnect();
|
if(isObserver) isObserver.disconnect();
|
||||||
})
|
})
|
||||||
|
|
||||||
|
async function switchWorkWithIndex(target) {
|
||||||
|
workReadState.loadWork(workReadState.id,workReadState.chapters[target].chapterId);
|
||||||
|
router.replace(`/work/${workReadState.id}/${workReadState.cid}`)
|
||||||
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
@ -108,14 +116,20 @@ onBeforeUnmount(() => {
|
|||||||
</template>
|
</template>
|
||||||
<a @click="$router.back()">返回</a>
|
<a @click="$router.back()">返回</a>
|
||||||
</template>
|
</template>
|
||||||
|
<template v-if="workReadState.state == 'errformat'">
|
||||||
|
<h2>路径格式错误</h2>
|
||||||
|
ID: {{ $route.params.id }}<br/>
|
||||||
|
<template v-if="$route.params.id">
|
||||||
|
CID: {{ $route.params.id }}
|
||||||
|
</template><br/>
|
||||||
|
<a @click="$router.back()">返回</a>
|
||||||
|
</template>
|
||||||
<template v-if="workReadState.state == 'ready'">
|
<template v-if="workReadState.state == 'ready'">
|
||||||
<article>
|
<article>
|
||||||
<h1 style="margin: auto">{{ workReadState.title }}</h1>
|
<h1 style="margin: auto">{{ workReadState.title }}</h1>
|
||||||
<h4>{{ workReadState.pesud }}</h4>
|
<h4>{{ workReadState.pesud }}</h4>
|
||||||
<mdui-card style="margin: 8px; padding: 0px;"><mdui-collapse acc>
|
<mdui-card style="margin: 8px; padding: 16px;">
|
||||||
<mdui-collapse-item value="info"><mdui-list-item class="infoblockhead" slot="header">
|
<strong>作品信息</strong><dl>
|
||||||
作品信息
|
|
||||||
</mdui-list-item><div class="infoblock"><dl>
|
|
||||||
<template v-if="workReadState.category"><dt>分类</dt><ul>
|
<template v-if="workReadState.category"><dt>分类</dt><ul>
|
||||||
<li v-for="item in workReadState.category" :key="item">
|
<li v-for="item in workReadState.category" :key="item">
|
||||||
{{ categoryName[item] }}</li>
|
{{ categoryName[item] }}</li>
|
||||||
@ -127,10 +141,8 @@ onBeforeUnmount(() => {
|
|||||||
<dt>语言</dt><dd>
|
<dt>语言</dt><dd>
|
||||||
{{ workReadState.lang }}
|
{{ workReadState.lang }}
|
||||||
</dd>
|
</dd>
|
||||||
</dl></div></mdui-collapse-item>
|
</dl><Hr/>
|
||||||
<mdui-collapse-item value="stats"><mdui-list-item class="infoblockhead" slot="header">
|
<strong>作品状态</strong><dl>
|
||||||
作品状态
|
|
||||||
</mdui-list-item><div class="infoblock"><dl>
|
|
||||||
<dt>发布时间</dt><dd>
|
<dt>发布时间</dt><dd>
|
||||||
{{ workReadState.publishedTime.year }} -
|
{{ workReadState.publishedTime.year }} -
|
||||||
{{ workReadState.publishedTime.month }} -
|
{{ workReadState.publishedTime.month }} -
|
||||||
@ -142,20 +154,56 @@ onBeforeUnmount(() => {
|
|||||||
<dt>点击</dt><dd>
|
<dt>点击</dt><dd>
|
||||||
{{ workReadState.hitCount }}
|
{{ workReadState.hitCount }}
|
||||||
</dd>
|
</dd>
|
||||||
</dl></div></mdui-collapse-item>
|
<template v-if="workReadState.chapterStat"><dt>
|
||||||
</mdui-collapse></mdui-card>
|
章节
|
||||||
<blockquote>
|
</dt><dd>
|
||||||
<p v-for="para in workReadState.summary" :key="para" v-html='para'></p>
|
{{ workReadState.chapterStat.left }} /
|
||||||
</blockquote>
|
{{ workReadState.chapterStat.right == -1 ? '?' : workReadState.chapterStat.right }}
|
||||||
<Hr />
|
</dd></template>
|
||||||
|
</dl>
|
||||||
|
</mdui-card>
|
||||||
|
<template v-if="workReadState.cid">
|
||||||
|
<h4>第 {{ workReadState.chapterIndex + 1 }} / {{ workReadState.chapters.length }} 章: {{ workReadState.chapters[workReadState.chapterIndex].title }}</h4>
|
||||||
|
<div style="display: flex;">
|
||||||
|
<mdui-button variant="filled" v-if="workReadState.chapterIndex != 0" @click="switchWorkWithIndex(workReadState.chapterIndex - 1)">上一章</mdui-button>
|
||||||
|
<mdui-button variant='elevated' @click="chapterDialog.open = true" style="margin: 0px 16px;">章节列表</mdui-button>
|
||||||
|
<mdui-button variant="filled" v-if="workReadState.chapterIndex != workReadState.chapters.length - 1" @click="switchWorkWithIndex(workReadState.chapterIndex + 1)">下一章</mdui-button>
|
||||||
|
</div><br/>
|
||||||
|
</template>
|
||||||
|
<blockquote v-if="workReadState.summary">
|
||||||
|
<p v-html='workReadState.summary'></p>
|
||||||
|
</blockquote><Hr />
|
||||||
<article ref='content'>
|
<article ref='content'>
|
||||||
<p v-for="(para, index) in workReadState.text" :key="para" :data-index="index">{{ para }}</p>
|
<p v-for="(para, index) in workReadState.text" :key="para" :data-index="index">{{ para }}</p>
|
||||||
</article>
|
</article>
|
||||||
</article>
|
</article><Hr/>
|
||||||
|
<p style="display: flex;" v-if="workReadState.cid">
|
||||||
|
<mdui-button variant="filled" v-if="workReadState.chapterIndex != 0" @click="switchWorkWithIndex(workReadState.chapterIndex - 1)">上一章</mdui-button>
|
||||||
|
<span style="flex: 1;"/>
|
||||||
|
{{ workReadState.chapterIndex + 1 }} / {{ workReadState.chapters.length }}
|
||||||
|
<span style="flex: 1;"/>
|
||||||
|
<mdui-button variant="filled" v-if="workReadState.chapterIndex != workReadState.chapters.length - 1" @click="switchWorkWithIndex(workReadState.chapterIndex + 1)">下一章</mdui-button>
|
||||||
|
</p>
|
||||||
|
<div style="height: 64px" />
|
||||||
<mdui-fab class="mdui-fab" :extended="fabExtended">
|
<mdui-fab class="mdui-fab" :extended="fabExtended">
|
||||||
<mdui-icon-bookmark slot="icon"></mdui-icon-bookmark>
|
<mdui-icon-bookmark slot="icon"></mdui-icon-bookmark>
|
||||||
{{ readPercent }}%
|
{{ readPercent }}%
|
||||||
</mdui-fab>
|
</mdui-fab>
|
||||||
|
<mdui-dialog ref='chapterDialog' close-on-overlay-click>
|
||||||
|
<span slot="headline">章节列表</span>
|
||||||
|
<span slot="description">
|
||||||
|
共 {{ workReadState.chapters.length }} 个
|
||||||
|
<br/>
|
||||||
|
点击跳转
|
||||||
|
</span>
|
||||||
|
<mdui-list><mdui-list-item
|
||||||
|
v-for="(chapter,index) in workReadState.chapters"
|
||||||
|
:key="chapter.chapterId" @click="switchWorkWithIndex(index)"
|
||||||
|
:class="{ 'active-item' : index === workReadState.chapterIndex }"
|
||||||
|
>
|
||||||
|
{{index + 1}}. {{ chapter.title }}
|
||||||
|
</mdui-list-item></mdui-list>
|
||||||
|
</mdui-dialog>
|
||||||
</template>
|
</template>
|
||||||
<template #ssr>
|
<template #ssr>
|
||||||
<template v-if="workReadState.state == 'notfound' || workReadState.state == 'ssrnotfound'">
|
<template v-if="workReadState.state == 'notfound' || workReadState.state == 'ssrnotfound'">
|
||||||
@ -171,11 +219,11 @@ onBeforeUnmount(() => {
|
|||||||
<h2>{{ workReadState.title }}</h2>
|
<h2>{{ workReadState.title }}</h2>
|
||||||
<h4>{{ workReadState.pesud }}</h4>
|
<h4>{{ workReadState.pesud }}</h4>
|
||||||
<dl>
|
<dl>
|
||||||
<template v-if="workReadState.category"><dt>作品圈</dt><ul>
|
<template v-if="workReadState.category"><dt>分类</dt><ul>
|
||||||
<li v-for="item in workReadState.category" :key="item">
|
<li v-for="item in workReadState.category" :key="item">
|
||||||
{{ categoryName[item] }}</li>
|
{{ categoryName[item] }}</li>
|
||||||
</ul></template>
|
</ul></template>
|
||||||
<template v-if="workReadState.fandom"><dt>原著</dt><ul>
|
<template v-if="workReadState.fandom"><dt>作品圈</dt><ul>
|
||||||
<li v-for="item in workReadState.fandom" :key="item">
|
<li v-for="item in workReadState.fandom" :key="item">
|
||||||
{{ item }}</li>
|
{{ item }}</li>
|
||||||
</ul></template>
|
</ul></template>
|
||||||
@ -193,18 +241,25 @@ onBeforeUnmount(() => {
|
|||||||
<dt>点击</dt><dd>
|
<dt>点击</dt><dd>
|
||||||
{{ workReadState.hitCount }}
|
{{ workReadState.hitCount }}
|
||||||
</dd>
|
</dd>
|
||||||
</dl>
|
<template v-if="workReadState.chapterStat"><dt>
|
||||||
<Hr />
|
章节
|
||||||
<blockquote>
|
</dt><dd>
|
||||||
<p v-for="para in workReadState.summary" :key="para" v-html='para'></p>
|
{{ workReadState.chapterStat.left }} /
|
||||||
</blockquote>
|
{{ workReadState.chapterStat.right == -1 ? '?' : workReadState.chapterStat.right }}
|
||||||
<Hr/>
|
</dd></template>
|
||||||
<article><p v-for="para in workReadState.text.slice(0, 10)" :key="para">{{ para }}</p></article>
|
</dl><Hr />
|
||||||
|
<template v-if="workReadState.summary"><blockquote>
|
||||||
|
<p v-html='workReadState.summary'></p>
|
||||||
|
</blockquote><Hr /></template>
|
||||||
|
<article><p v-for="para in workReadState.text.slice(0, 20)" :key="para">{{ para }}</p></article>
|
||||||
</template>
|
</template>
|
||||||
</template></ClientOnly>
|
</template></ClientOnly>
|
||||||
</template>
|
</template>
|
||||||
|
|
||||||
<style scoped>
|
<style scoped>
|
||||||
|
.active-item {
|
||||||
|
background-color: rgb(var(--mdui-color-secondary-container-light));
|
||||||
|
}
|
||||||
.mdui-fab {
|
.mdui-fab {
|
||||||
position: fixed;
|
position: fixed;
|
||||||
bottom: 16px; /* 调整垂直位置 */
|
bottom: 16px; /* 调整垂直位置 */
|
||||||
@ -212,12 +267,4 @@ onBeforeUnmount(() => {
|
|||||||
z-index: 1000; /* 确保悬浮按钮在其他内容上方 */
|
z-index: 1000; /* 确保悬浮按钮在其他内容上方 */
|
||||||
animation: slideInFromRight var(--mdui-motion-duration-medium2) var(--mdui-motion-easing-standard); /* 动画时长和缓动效果 */
|
animation: slideInFromRight var(--mdui-motion-duration-medium2) var(--mdui-motion-easing-standard); /* 动画时长和缓动效果 */
|
||||||
}
|
}
|
||||||
|
|
||||||
.infoblock {
|
|
||||||
margin: 8px 16px;
|
|
||||||
}
|
|
||||||
|
|
||||||
.infoblockhead {
|
|
||||||
background-color: rgb(var(--mdui-color-primary-container));
|
|
||||||
}
|
|
||||||
</style>
|
</style>
|
||||||
|
Reference in New Issue
Block a user