Compare commits
3 Commits
91f5f17028
...
3edd6b2a69
| Author | SHA1 | Date | |
|---|---|---|---|
| 3edd6b2a69 | |||
| 5562296ad7 | |||
| 7489b8f1ab |
7
.env.example
Normal file
7
.env.example
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
## 本地环境
|
||||||
|
|
||||||
|
# VITE_API_URL = "http://localhost:8000"
|
||||||
|
### 开发环境
|
||||||
|
VITE_API_URL = "https://kevisual.xiongxiao.me"
|
||||||
|
### 生产环境
|
||||||
|
# VITE_API_URL = "https://kevisual.cn"
|
||||||
@@ -15,11 +15,11 @@
|
|||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@base-ui/react": "^1.2.0",
|
"@base-ui/react": "^1.2.0",
|
||||||
"@kevisual/router": "0.0.84",
|
"@kevisual/router": "0.0.84",
|
||||||
"@tanstack/react-router": "^1.162.9",
|
"@tanstack/react-router": "^1.163.2",
|
||||||
"@tanstack/react-table": "^8.21.3",
|
"@tanstack/react-table": "^8.21.3",
|
||||||
"@uiw/react-codemirror": "^4.25.5",
|
"@uiw/react-codemirror": "^4.25.5",
|
||||||
"@uiw/react-md-editor": "^4.0.11",
|
"@uiw/react-md-editor": "^4.0.11",
|
||||||
"antd": "^6.3.0",
|
"antd": "^6.3.1",
|
||||||
"class-variance-authority": "^0.7.1",
|
"class-variance-authority": "^0.7.1",
|
||||||
"clsx": "^2.1.1",
|
"clsx": "^2.1.1",
|
||||||
"cmdk": "^1.1.1",
|
"cmdk": "^1.1.1",
|
||||||
@@ -44,11 +44,12 @@
|
|||||||
"@kevisual/api": "^0.0.60",
|
"@kevisual/api": "^0.0.60",
|
||||||
"@kevisual/context": "^0.0.8",
|
"@kevisual/context": "^0.0.8",
|
||||||
"@kevisual/js-filter": "^0.0.5",
|
"@kevisual/js-filter": "^0.0.5",
|
||||||
|
"@kevisual/kv-login": "^0.1.15",
|
||||||
"@kevisual/query": "^0.0.52",
|
"@kevisual/query": "^0.0.52",
|
||||||
"@kevisual/types": "^0.0.12",
|
"@kevisual/types": "^0.0.12",
|
||||||
"@tailwindcss/vite": "^4.2.1",
|
"@tailwindcss/vite": "^4.2.1",
|
||||||
"@tanstack/react-router-devtools": "^1.162.9",
|
"@tanstack/react-router-devtools": "^1.163.2",
|
||||||
"@tanstack/router-plugin": "^1.162.9",
|
"@tanstack/router-plugin": "^1.163.2",
|
||||||
"@types/node": "^25.3.0",
|
"@types/node": "^25.3.0",
|
||||||
"@types/react": "^19.2.14",
|
"@types/react": "^19.2.14",
|
||||||
"@types/react-dom": "^19.2.3",
|
"@types/react-dom": "^19.2.3",
|
||||||
|
|||||||
132
pnpm-lock.yaml
generated
132
pnpm-lock.yaml
generated
@@ -15,8 +15,8 @@ importers:
|
|||||||
specifier: 0.0.84
|
specifier: 0.0.84
|
||||||
version: 0.0.84
|
version: 0.0.84
|
||||||
'@tanstack/react-router':
|
'@tanstack/react-router':
|
||||||
specifier: ^1.162.9
|
specifier: ^1.163.2
|
||||||
version: 1.162.9(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
version: 1.163.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@tanstack/react-table':
|
'@tanstack/react-table':
|
||||||
specifier: ^8.21.3
|
specifier: ^8.21.3
|
||||||
version: 8.21.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
version: 8.21.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
@@ -27,8 +27,8 @@ importers:
|
|||||||
specifier: ^4.0.11
|
specifier: ^4.0.11
|
||||||
version: 4.0.11(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
version: 4.0.11(@types/react@19.2.14)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
antd:
|
antd:
|
||||||
specifier: ^6.3.0
|
specifier: ^6.3.1
|
||||||
version: 6.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
version: 6.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
class-variance-authority:
|
class-variance-authority:
|
||||||
specifier: ^0.7.1
|
specifier: ^0.7.1
|
||||||
version: 0.7.1
|
version: 0.7.1
|
||||||
@@ -96,6 +96,9 @@ importers:
|
|||||||
'@kevisual/js-filter':
|
'@kevisual/js-filter':
|
||||||
specifier: ^0.0.5
|
specifier: ^0.0.5
|
||||||
version: 0.0.5
|
version: 0.0.5
|
||||||
|
'@kevisual/kv-login':
|
||||||
|
specifier: ^0.1.15
|
||||||
|
version: 0.1.15
|
||||||
'@kevisual/query':
|
'@kevisual/query':
|
||||||
specifier: ^0.0.52
|
specifier: ^0.0.52
|
||||||
version: 0.0.52
|
version: 0.0.52
|
||||||
@@ -106,11 +109,11 @@ importers:
|
|||||||
specifier: ^4.2.1
|
specifier: ^4.2.1
|
||||||
version: 4.2.1(vite@8.0.0-beta.15(@types/node@25.3.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))
|
version: 4.2.1(vite@8.0.0-beta.15(@types/node@25.3.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))
|
||||||
'@tanstack/react-router-devtools':
|
'@tanstack/react-router-devtools':
|
||||||
specifier: ^1.162.9
|
specifier: ^1.163.2
|
||||||
version: 1.162.9(@tanstack/react-router@1.162.9(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/router-core@1.162.9)(csstype@3.2.3)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
version: 1.163.2(@tanstack/react-router@1.163.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/router-core@1.163.2)(csstype@3.2.3)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@tanstack/router-plugin':
|
'@tanstack/router-plugin':
|
||||||
specifier: ^1.162.9
|
specifier: ^1.163.2
|
||||||
version: 1.162.9(@tanstack/react-router@1.162.9(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@8.0.0-beta.15(@types/node@25.3.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))
|
version: 1.163.2(@tanstack/react-router@1.163.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@8.0.0-beta.15(@types/node@25.3.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))
|
||||||
'@types/node':
|
'@types/node':
|
||||||
specifier: ^25.3.0
|
specifier: ^25.3.0
|
||||||
version: 25.3.0
|
version: 25.3.0
|
||||||
@@ -534,6 +537,9 @@ packages:
|
|||||||
'@kevisual/js-filter@0.0.5':
|
'@kevisual/js-filter@0.0.5':
|
||||||
resolution: {integrity: sha512-+S+Sf3K/aP6XtZI2s7TgKOr35UuvUvtpJ9YDW30a+mY0/N8gRuzyKhieBzQN7Ykayzz70uoMavBXut2rUlLgzw==}
|
resolution: {integrity: sha512-+S+Sf3K/aP6XtZI2s7TgKOr35UuvUvtpJ9YDW30a+mY0/N8gRuzyKhieBzQN7Ykayzz70uoMavBXut2rUlLgzw==}
|
||||||
|
|
||||||
|
'@kevisual/kv-login@0.1.15':
|
||||||
|
resolution: {integrity: sha512-PqFvhi11/zAIqdEePsINzhIX9QYf25nmvsIoT5kD8NB5663ZDsSPdgBiT/Jn3U+jx50a43ndNFwOTNuZkdp0Iw==}
|
||||||
|
|
||||||
'@kevisual/load@0.0.6':
|
'@kevisual/load@0.0.6':
|
||||||
resolution: {integrity: sha512-+3YTFehRcZ1haGel5DKYMUwmi5i6f2psyaPZlfkKU/cOXgkpwoG9/BEqPCnPjicKqqnksEpixVRkyHJ+5bjLVA==}
|
resolution: {integrity: sha512-+3YTFehRcZ1haGel5DKYMUwmi5i6f2psyaPZlfkKU/cOXgkpwoG9/BEqPCnPjicKqqnksEpixVRkyHJ+5bjLVA==}
|
||||||
|
|
||||||
@@ -862,8 +868,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-jS4E7T9Li2GuYwI6PyiVXmxTiM6b07rlD9Ge8uGZSCz3WlzcG5ZK7g5bbuKNeZ9pgUuPK/5guV781ujdVpm4HQ==}
|
resolution: {integrity: sha512-jS4E7T9Li2GuYwI6PyiVXmxTiM6b07rlD9Ge8uGZSCz3WlzcG5ZK7g5bbuKNeZ9pgUuPK/5guV781ujdVpm4HQ==}
|
||||||
engines: {node: '>=8.x'}
|
engines: {node: '>=8.x'}
|
||||||
|
|
||||||
'@rc-component/motion@1.1.6':
|
'@rc-component/motion@1.3.1':
|
||||||
resolution: {integrity: sha512-aEQobs/YA0kqRvHIPjQvOytdtdRVyhf/uXAal4chBjxDu6odHckExJzjn2D+Ju1aKK6hx3pAs6BXdV9+86xkgQ==}
|
resolution: {integrity: sha512-Wo1mkd0tCcHtvYvpPOmlYJz546z16qlsiwaygmW7NPJpOZOF9GBjhGzdzZSsC2lEJ1IUkWLF4gMHlRA1aSA+Yw==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
react: '>=16.9.0'
|
react: '>=16.9.0'
|
||||||
react-dom: '>=16.9.0'
|
react-dom: '>=16.9.0'
|
||||||
@@ -953,8 +959,8 @@ packages:
|
|||||||
react: '>=16.0.0'
|
react: '>=16.0.0'
|
||||||
react-dom: '>=16.0.0'
|
react-dom: '>=16.0.0'
|
||||||
|
|
||||||
'@rc-component/select@1.6.10':
|
'@rc-component/select@1.6.12':
|
||||||
resolution: {integrity: sha512-y4+2LnyGZrAorIBwflk78PmFVUWcSc9pcljiH72oHj7K1YY/BFUmj224pD7P4o7J+tbIFES45Z7LIpjVmvYlNA==}
|
resolution: {integrity: sha512-jYXAglYdOb54BrpWAcjjhdBP16NyCv/HbEaWFMbEHZQAJVmGHPAtmBqbFuPPuvInAVsIwLbCj4Agag9udOamiQ==}
|
||||||
engines: {node: '>=8.x'}
|
engines: {node: '>=8.x'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
react: '*'
|
react: '*'
|
||||||
@@ -1237,20 +1243,20 @@ packages:
|
|||||||
resolution: {integrity: sha512-Kp/WSt411ZWYvgXy6uiv5RmhHrz9cAml05AQPrtdAp7eUqvIDbMGPnML25OKbzR3RJ1q4wgENxDTvlGPa9+Mww==}
|
resolution: {integrity: sha512-Kp/WSt411ZWYvgXy6uiv5RmhHrz9cAml05AQPrtdAp7eUqvIDbMGPnML25OKbzR3RJ1q4wgENxDTvlGPa9+Mww==}
|
||||||
engines: {node: '>=20.19'}
|
engines: {node: '>=20.19'}
|
||||||
|
|
||||||
'@tanstack/react-router-devtools@1.162.9':
|
'@tanstack/react-router-devtools@1.163.2':
|
||||||
resolution: {integrity: sha512-8xDqykw8MYWj4JoNfiJR/ZnocRBlfFeDSOQWVoWlnZKlciLCJ9dVfXuXQJlDlWr3JdmsWyyRvruZBnYr1YlUcg==}
|
resolution: {integrity: sha512-gk/tC+vx8eoNNIM27vfb/bZTXQjpopw7tZA4WkRQWLh9A8PG3V6QjMQysbPcRRO5m7KtdCbTk51ZG4ERi0J1kA==}
|
||||||
engines: {node: '>=20.19'}
|
engines: {node: '>=20.19'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@tanstack/react-router': ^1.162.9
|
'@tanstack/react-router': ^1.163.2
|
||||||
'@tanstack/router-core': ^1.162.9
|
'@tanstack/router-core': ^1.163.2
|
||||||
react: '>=18.0.0 || >=19.0.0'
|
react: '>=18.0.0 || >=19.0.0'
|
||||||
react-dom: '>=18.0.0 || >=19.0.0'
|
react-dom: '>=18.0.0 || >=19.0.0'
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
'@tanstack/router-core':
|
'@tanstack/router-core':
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@tanstack/react-router@1.162.9':
|
'@tanstack/react-router@1.163.2':
|
||||||
resolution: {integrity: sha512-APbwKAF+YgSNpHAaA+FdgrmfI/7+qa9hApuVO9+P0IVksJayNIWFQ/6AFG90WQiTYWk64RI1R9cFV2K9Z+j2pQ==}
|
resolution: {integrity: sha512-1LosUlpL2mRMWxUZXmkEg5+Br5P5j9TrLngqRgHVbZoFkjnbcj1x9fQN2OVLrBv9Npw97NRsHeJljnAH/c7oSw==}
|
||||||
engines: {node: '>=20.19'}
|
engines: {node: '>=20.19'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
react: '>=18.0.0 || >=19.0.0'
|
react: '>=18.0.0 || >=19.0.0'
|
||||||
@@ -1269,30 +1275,30 @@ packages:
|
|||||||
react: '>=16.8'
|
react: '>=16.8'
|
||||||
react-dom: '>=16.8'
|
react-dom: '>=16.8'
|
||||||
|
|
||||||
'@tanstack/router-core@1.162.9':
|
'@tanstack/router-core@1.163.2':
|
||||||
resolution: {integrity: sha512-eG7C0oVtZbFOkfvsaF8UyGuNjEc1BfIfD5EzQNwG4vqLKOAyY5SMFBCNjabAi2sglRhL0ZOwKon1SExusU5fxA==}
|
resolution: {integrity: sha512-mD0Pav6kcpS317XSJN+wCZaxLLngDhlwgzPNca56dWCp8YKPEvhhj/Zdl+LdRlJQ2VJ5BOy7FbOV1hErc9Nj5Q==}
|
||||||
engines: {node: '>=20.19'}
|
engines: {node: '>=20.19'}
|
||||||
|
|
||||||
'@tanstack/router-devtools-core@1.162.9':
|
'@tanstack/router-devtools-core@1.163.2':
|
||||||
resolution: {integrity: sha512-fX54Aub/mS9KVrWy/CSe5+vu/pSez45RojzBZYK4KLMA8HsTxQ4/jjBfHwGg6FaqXKL52b72f4BAB+Cx559rIA==}
|
resolution: {integrity: sha512-IrbSK30AtMOgCLXTbvhnVsU6BGjhwB8EjfZIQLtUPDvFsP0RH3/2ZiWRA3a0EsQhxkl+fxIVByVP7wgyRzkZPQ==}
|
||||||
engines: {node: '>=20.19'}
|
engines: {node: '>=20.19'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@tanstack/router-core': ^1.162.9
|
'@tanstack/router-core': ^1.163.2
|
||||||
csstype: ^3.0.10
|
csstype: ^3.0.10
|
||||||
peerDependenciesMeta:
|
peerDependenciesMeta:
|
||||||
csstype:
|
csstype:
|
||||||
optional: true
|
optional: true
|
||||||
|
|
||||||
'@tanstack/router-generator@1.162.9':
|
'@tanstack/router-generator@1.163.2':
|
||||||
resolution: {integrity: sha512-yVYFL/b0hRNRDTJn7+k/BEgRICIV064G2aAkvioRx2apYaMaDvWPAYSSFkNM/4etA+J16ATMhK30513glQmVug==}
|
resolution: {integrity: sha512-6LjU3+8iKEgt8iOaYCmCnQCs0jsOhc7z8fa1yAYlj3s82uYWv3g5CB9mwv8wZXblXBQWOl+hW4PI6WNjP/CK9w==}
|
||||||
engines: {node: '>=20.19'}
|
engines: {node: '>=20.19'}
|
||||||
|
|
||||||
'@tanstack/router-plugin@1.162.9':
|
'@tanstack/router-plugin@1.163.2':
|
||||||
resolution: {integrity: sha512-RnvDntkf4d8YxuG0zxqb9BqLnDhbCjpyzOAG/Jw9AV3d0kih0UcTbAZCzfoDAiGMuztOsAWMyiVXcoy5LnPKag==}
|
resolution: {integrity: sha512-SrVILMz/c15RYWxIMG+bf/glLbP/O9DUxOg0E7bo9pooBxGPvgWSlEzHNjhVekLhK5l7fiuQZzKsfksVeIEqDA==}
|
||||||
engines: {node: '>=20.19'}
|
engines: {node: '>=20.19'}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
'@rsbuild/core': '>=1.0.2'
|
'@rsbuild/core': '>=1.0.2'
|
||||||
'@tanstack/react-router': ^1.162.9
|
'@tanstack/react-router': ^1.163.2
|
||||||
vite: '>=5.0.0 || >=6.0.0 || >=7.0.0'
|
vite: '>=5.0.0 || >=6.0.0 || >=7.0.0'
|
||||||
vite-plugin-solid: ^2.11.10
|
vite-plugin-solid: ^2.11.10
|
||||||
webpack: '>=5.92.0'
|
webpack: '>=5.92.0'
|
||||||
@@ -1434,8 +1440,8 @@ packages:
|
|||||||
resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==}
|
resolution: {integrity: sha512-HqZ5rWlFjGiV0tDm3UxxgNRqsOTniqoKZu0pIAfh7TZQMGuZK+hH0drySty0si0QXj1ieop4+SkSfPZBPPkHig==}
|
||||||
engines: {node: '>=14'}
|
engines: {node: '>=14'}
|
||||||
|
|
||||||
antd@6.3.0:
|
antd@6.3.1:
|
||||||
resolution: {integrity: sha512-bbHJcASrRHp02wTpr940KtUHlTT6tvmaD4OAjqgOJXNmTQ/+qBDdBVWY/yeDV41p/WbWjTLlaqRGVbL3UEVpNw==}
|
resolution: {integrity: sha512-8pRjvxitZFyrYAtgwml93Km7fCXjw9IeqlmzpIsusRsmO3eWFVrOMum6+0TsGCtR/WrXVnPwfsgrFg3ChzGCeA==}
|
||||||
peerDependencies:
|
peerDependencies:
|
||||||
react: '>=18.0.0'
|
react: '>=18.0.0'
|
||||||
react-dom: '>=18.0.0'
|
react-dom: '>=18.0.0'
|
||||||
@@ -2921,6 +2927,8 @@ snapshots:
|
|||||||
|
|
||||||
'@kevisual/js-filter@0.0.5': {}
|
'@kevisual/js-filter@0.0.5': {}
|
||||||
|
|
||||||
|
'@kevisual/kv-login@0.1.15': {}
|
||||||
|
|
||||||
'@kevisual/load@0.0.6':
|
'@kevisual/load@0.0.6':
|
||||||
dependencies:
|
dependencies:
|
||||||
eventemitter3: 5.0.4
|
eventemitter3: 5.0.4
|
||||||
@@ -3129,7 +3137,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/cascader@1.14.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/cascader@1.14.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/select': 1.6.10(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/select': 1.6.12(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/tree': 1.2.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/tree': 1.2.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -3146,7 +3154,7 @@ snapshots:
|
|||||||
'@rc-component/collapse@1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/collapse@1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.28.6
|
'@babel/runtime': 7.28.6
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
react: 19.2.4
|
react: 19.2.4
|
||||||
@@ -3168,7 +3176,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/dialog@1.8.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/dialog@1.8.4(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/portal': 2.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/portal': 2.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -3177,7 +3185,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/drawer@1.4.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/drawer@1.4.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/portal': 2.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/portal': 2.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -3202,7 +3210,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/image@1.6.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/image@1.6.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/portal': 2.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/portal': 2.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -3237,7 +3245,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/menu@1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/menu@1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/overflow': 1.0.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/overflow': 1.0.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/trigger': 3.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/trigger': 3.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
@@ -3249,7 +3257,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.28.6
|
'@babel/runtime': 7.28.6
|
||||||
|
|
||||||
'@rc-component/motion@1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/motion@1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -3264,7 +3272,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/notification@1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/notification@1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
react: 19.2.4
|
react: 19.2.4
|
||||||
@@ -3334,13 +3342,13 @@ snapshots:
|
|||||||
'@rc-component/segmented@1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/segmented@1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/runtime': 7.28.6
|
'@babel/runtime': 7.28.6
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
react: 19.2.4
|
react: 19.2.4
|
||||||
react-dom: 19.2.4(react@19.2.4)
|
react-dom: 19.2.4(react@19.2.4)
|
||||||
|
|
||||||
'@rc-component/select@1.6.10(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/select@1.6.12(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/overflow': 1.0.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/overflow': 1.0.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/trigger': 3.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/trigger': 3.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
@@ -3385,7 +3393,7 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/dropdown': 1.0.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/dropdown': 1.0.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/menu': 1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/menu': 1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/resize-observer': 1.1.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/resize-observer': 1.1.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -3420,7 +3428,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/tree-select@1.8.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/tree-select@1.8.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/select': 1.6.10(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/select': 1.6.12(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/tree': 1.2.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/tree': 1.2.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -3429,7 +3437,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/tree@1.2.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/tree@1.2.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/virtual-list': 1.0.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/virtual-list': 1.0.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
@@ -3438,7 +3446,7 @@ snapshots:
|
|||||||
|
|
||||||
'@rc-component/trigger@3.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@rc-component/trigger@3.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/portal': 2.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/portal': 2.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/resize-observer': 1.1.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/resize-observer': 1.1.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/util': 1.9.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
@@ -3584,22 +3592,22 @@ snapshots:
|
|||||||
|
|
||||||
'@tanstack/history@1.161.4': {}
|
'@tanstack/history@1.161.4': {}
|
||||||
|
|
||||||
'@tanstack/react-router-devtools@1.162.9(@tanstack/react-router@1.162.9(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/router-core@1.162.9)(csstype@3.2.3)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@tanstack/react-router-devtools@1.163.2(@tanstack/react-router@1.163.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(@tanstack/router-core@1.163.2)(csstype@3.2.3)(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@tanstack/react-router': 1.162.9(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@tanstack/react-router': 1.163.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@tanstack/router-devtools-core': 1.162.9(@tanstack/router-core@1.162.9)(csstype@3.2.3)
|
'@tanstack/router-devtools-core': 1.163.2(@tanstack/router-core@1.163.2)(csstype@3.2.3)
|
||||||
react: 19.2.4
|
react: 19.2.4
|
||||||
react-dom: 19.2.4(react@19.2.4)
|
react-dom: 19.2.4(react@19.2.4)
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@tanstack/router-core': 1.162.9
|
'@tanstack/router-core': 1.163.2
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- csstype
|
- csstype
|
||||||
|
|
||||||
'@tanstack/react-router@1.162.9(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
'@tanstack/react-router@1.163.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@tanstack/history': 1.161.4
|
'@tanstack/history': 1.161.4
|
||||||
'@tanstack/react-store': 0.9.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@tanstack/react-store': 0.9.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@tanstack/router-core': 1.162.9
|
'@tanstack/router-core': 1.163.2
|
||||||
isbot: 5.1.35
|
isbot: 5.1.35
|
||||||
react: 19.2.4
|
react: 19.2.4
|
||||||
react-dom: 19.2.4(react@19.2.4)
|
react-dom: 19.2.4(react@19.2.4)
|
||||||
@@ -3619,7 +3627,7 @@ snapshots:
|
|||||||
react: 19.2.4
|
react: 19.2.4
|
||||||
react-dom: 19.2.4(react@19.2.4)
|
react-dom: 19.2.4(react@19.2.4)
|
||||||
|
|
||||||
'@tanstack/router-core@1.162.9':
|
'@tanstack/router-core@1.163.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@tanstack/history': 1.161.4
|
'@tanstack/history': 1.161.4
|
||||||
'@tanstack/store': 0.9.1
|
'@tanstack/store': 0.9.1
|
||||||
@@ -3629,18 +3637,18 @@ snapshots:
|
|||||||
tiny-invariant: 1.3.3
|
tiny-invariant: 1.3.3
|
||||||
tiny-warning: 1.0.3
|
tiny-warning: 1.0.3
|
||||||
|
|
||||||
'@tanstack/router-devtools-core@1.162.9(@tanstack/router-core@1.162.9)(csstype@3.2.3)':
|
'@tanstack/router-devtools-core@1.163.2(@tanstack/router-core@1.163.2)(csstype@3.2.3)':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@tanstack/router-core': 1.162.9
|
'@tanstack/router-core': 1.163.2
|
||||||
clsx: 2.1.1
|
clsx: 2.1.1
|
||||||
goober: 2.1.18(csstype@3.2.3)
|
goober: 2.1.18(csstype@3.2.3)
|
||||||
tiny-invariant: 1.3.3
|
tiny-invariant: 1.3.3
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
csstype: 3.2.3
|
csstype: 3.2.3
|
||||||
|
|
||||||
'@tanstack/router-generator@1.162.9':
|
'@tanstack/router-generator@1.163.2':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@tanstack/router-core': 1.162.9
|
'@tanstack/router-core': 1.163.2
|
||||||
'@tanstack/router-utils': 1.161.4
|
'@tanstack/router-utils': 1.161.4
|
||||||
'@tanstack/virtual-file-routes': 1.161.4
|
'@tanstack/virtual-file-routes': 1.161.4
|
||||||
prettier: 3.8.1
|
prettier: 3.8.1
|
||||||
@@ -3651,7 +3659,7 @@ snapshots:
|
|||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
|
|
||||||
'@tanstack/router-plugin@1.162.9(@tanstack/react-router@1.162.9(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@8.0.0-beta.15(@types/node@25.3.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))':
|
'@tanstack/router-plugin@1.163.2(@tanstack/react-router@1.163.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4))(vite@8.0.0-beta.15(@types/node@25.3.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0))':
|
||||||
dependencies:
|
dependencies:
|
||||||
'@babel/core': 7.29.0
|
'@babel/core': 7.29.0
|
||||||
'@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0)
|
'@babel/plugin-syntax-jsx': 7.28.6(@babel/core@7.29.0)
|
||||||
@@ -3659,15 +3667,15 @@ snapshots:
|
|||||||
'@babel/template': 7.28.6
|
'@babel/template': 7.28.6
|
||||||
'@babel/traverse': 7.29.0
|
'@babel/traverse': 7.29.0
|
||||||
'@babel/types': 7.29.0
|
'@babel/types': 7.29.0
|
||||||
'@tanstack/router-core': 1.162.9
|
'@tanstack/router-core': 1.163.2
|
||||||
'@tanstack/router-generator': 1.162.9
|
'@tanstack/router-generator': 1.163.2
|
||||||
'@tanstack/router-utils': 1.161.4
|
'@tanstack/router-utils': 1.161.4
|
||||||
'@tanstack/virtual-file-routes': 1.161.4
|
'@tanstack/virtual-file-routes': 1.161.4
|
||||||
chokidar: 3.6.0
|
chokidar: 3.6.0
|
||||||
unplugin: 2.3.11
|
unplugin: 2.3.11
|
||||||
zod: 3.25.76
|
zod: 3.25.76
|
||||||
optionalDependencies:
|
optionalDependencies:
|
||||||
'@tanstack/react-router': 1.162.9(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@tanstack/react-router': 1.163.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
vite: 8.0.0-beta.15(@types/node@25.3.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)
|
vite: 8.0.0-beta.15(@types/node@25.3.0)(esbuild@0.27.3)(jiti@2.6.1)(tsx@4.21.0)
|
||||||
transitivePeerDependencies:
|
transitivePeerDependencies:
|
||||||
- supports-color
|
- supports-color
|
||||||
@@ -3840,7 +3848,7 @@ snapshots:
|
|||||||
|
|
||||||
ansis@4.2.0: {}
|
ansis@4.2.0: {}
|
||||||
|
|
||||||
antd@6.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4):
|
antd@6.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4):
|
||||||
dependencies:
|
dependencies:
|
||||||
'@ant-design/colors': 8.0.1
|
'@ant-design/colors': 8.0.1
|
||||||
'@ant-design/cssinjs': 2.1.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@ant-design/cssinjs': 2.1.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
@@ -3862,7 +3870,7 @@ snapshots:
|
|||||||
'@rc-component/input-number': 1.6.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/input-number': 1.6.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/mentions': 1.6.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/mentions': 1.6.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/menu': 1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/menu': 1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/motion': 1.1.6(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/motion': 1.3.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/mutate-observer': 2.0.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/mutate-observer': 2.0.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/notification': 1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/notification': 1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/pagination': 1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/pagination': 1.2.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
@@ -3872,7 +3880,7 @@ snapshots:
|
|||||||
'@rc-component/rate': 1.0.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/rate': 1.0.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/resize-observer': 1.1.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/resize-observer': 1.1.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/segmented': 1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/segmented': 1.3.0(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/select': 1.6.10(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/select': 1.6.12(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/slider': 1.0.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/slider': 1.0.1(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/steps': 1.2.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/steps': 1.2.2(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
'@rc-component/switch': 1.0.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
'@rc-component/switch': 1.0.3(react-dom@19.2.4(react@19.2.4))(react@19.2.4)
|
||||||
|
|||||||
@@ -1,3 +0,0 @@
|
|||||||
import { QueryRouterServer } from '@kevisual/router/browser'
|
|
||||||
import { use } from '@kevisual/context'
|
|
||||||
export const app = use('app', new QueryRouterServer())
|
|
||||||
8
src/agents/app.ts
Normal file
8
src/agents/app.ts
Normal file
@@ -0,0 +1,8 @@
|
|||||||
|
import { QueryRouterServer } from '@kevisual/router/browser'
|
||||||
|
import { use } from '@kevisual/context'
|
||||||
|
export const app = use('app', new QueryRouterServer())
|
||||||
|
|
||||||
|
import { useLayoutStore } from '@/pages/auth/store'
|
||||||
|
|
||||||
|
const layoutStore = useLayoutStore.getState()
|
||||||
|
layoutStore.setShowBaseHeader(false)
|
||||||
@@ -1,5 +1,7 @@
|
|||||||
import { app } from './app.ts';
|
import { app } from './app.ts';
|
||||||
|
|
||||||
import './routes/left-panel.ts';
|
import './routes/left-panel.ts';
|
||||||
|
import { Load } from '@kevisual/context/load'
|
||||||
|
Load.npm({ pkg: 'eruda' });
|
||||||
|
|
||||||
export { app };
|
export { app };
|
||||||
@@ -1,14 +0,0 @@
|
|||||||
import { AppProvider } from '../../../studio/index.tsx';
|
|
||||||
|
|
||||||
interface PageProps {
|
|
||||||
params: Promise<{
|
|
||||||
root: string
|
|
||||||
appId: string
|
|
||||||
}>
|
|
||||||
}
|
|
||||||
|
|
||||||
export default async function Page({ params }: PageProps) {
|
|
||||||
const { root, appId } = await params;
|
|
||||||
console.log('root', root, 'appId', appId);
|
|
||||||
return <AppProvider />;
|
|
||||||
}
|
|
||||||
@@ -1,3 +1,5 @@
|
|||||||
|
"use client"
|
||||||
|
|
||||||
import * as React from "react"
|
import * as React from "react"
|
||||||
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"
|
import { Dialog as DialogPrimitive } from "@base-ui/react/dialog"
|
||||||
|
|
||||||
|
|||||||
@@ -3,7 +3,7 @@ import { RouterProvider, createRouter } from '@tanstack/react-router'
|
|||||||
import { routeTree } from './routeTree.gen'
|
import { routeTree } from './routeTree.gen'
|
||||||
import './index.css'
|
import './index.css'
|
||||||
import { getDynamicBasename } from './modules/basename'
|
import { getDynamicBasename } from './modules/basename'
|
||||||
|
import './agents/index.ts';
|
||||||
// Set up a Router instance
|
// Set up a Router instance
|
||||||
const router = createRouter({
|
const router = createRouter({
|
||||||
routeTree,
|
routeTree,
|
||||||
|
|||||||
58
src/pages/auth/index.tsx
Normal file
58
src/pages/auth/index.tsx
Normal file
@@ -0,0 +1,58 @@
|
|||||||
|
import { useEffect } from "react"
|
||||||
|
import { useLayoutStore } from "./store"
|
||||||
|
import { useShallow } from "zustand/shallow"
|
||||||
|
import { LogIn, LockKeyhole } from "lucide-react"
|
||||||
|
export { BaseHeader } from './modules/BaseHeader'
|
||||||
|
import { useMemo } from 'react';
|
||||||
|
import { useLocation, useNavigate } from '@tanstack/react-router';
|
||||||
|
|
||||||
|
|
||||||
|
type Props = {
|
||||||
|
children?: React.ReactNode,
|
||||||
|
mustLogin?: boolean,
|
||||||
|
}
|
||||||
|
export const AuthProvider = ({ children, mustLogin }: Props) => {
|
||||||
|
const store = useLayoutStore(useShallow(state => ({
|
||||||
|
init: state.init,
|
||||||
|
me: state.me,
|
||||||
|
openLinkList: state.openLinkList,
|
||||||
|
})));
|
||||||
|
useEffect(() => {
|
||||||
|
store.init()
|
||||||
|
}, [])
|
||||||
|
const location = useLocation()
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const isOpen = useMemo(() => {
|
||||||
|
return store.openLinkList.some(item => location.pathname.startsWith(item))
|
||||||
|
}, [location.pathname])
|
||||||
|
const loginUrl = '/root/login/?redirect=' + encodeURIComponent(window.location.href);
|
||||||
|
if (mustLogin && !store.me && !isOpen) {
|
||||||
|
return (
|
||||||
|
<div className="w-full h-full min-h-screen flex items-center justify-center bg-background">
|
||||||
|
<div className="flex flex-col items-center gap-6 p-10 rounded-2xl border border-border bg-card shadow-lg max-w-sm w-full mx-4">
|
||||||
|
<div className="flex items-center justify-center w-16 h-16 rounded-full bg-muted">
|
||||||
|
<LockKeyhole className="w-8 h-8 text-muted-foreground" />
|
||||||
|
</div>
|
||||||
|
<div className="flex flex-col items-center gap-2 text-center">
|
||||||
|
<h2 className="text-xl font-semibold text-foreground">需要登录</h2>
|
||||||
|
<p className="text-sm text-muted-foreground">请先登录以继续访问此页面</p>
|
||||||
|
</div>
|
||||||
|
<div
|
||||||
|
className="inline-flex items-center justify-center gap-2 w-full px-6 py-2.5 rounded-lg bg-foreground text-background text-sm font-medium transition-opacity hover:opacity-80 active:opacity-70"
|
||||||
|
onClick={() => {
|
||||||
|
// window.open(loginUrl, '_blank');
|
||||||
|
navigate({ to: '/login' });
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
<LogIn className="w-4 h-4" />
|
||||||
|
立即登录
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
return <>
|
||||||
|
{children}
|
||||||
|
</>
|
||||||
|
}
|
||||||
93
src/pages/auth/modules/BaseHeader.tsx
Normal file
93
src/pages/auth/modules/BaseHeader.tsx
Normal file
@@ -0,0 +1,93 @@
|
|||||||
|
import { Home, User, LogIn, LogOut } from 'lucide-react';
|
||||||
|
import { Link, useNavigate } from '@tanstack/react-router'
|
||||||
|
import { useLayoutStore } from '../store';
|
||||||
|
import { useShallow } from 'zustand/shallow';
|
||||||
|
import { useMemo } from 'react';
|
||||||
|
|
||||||
|
export const BaseHeader = (props: { main?: React.ComponentType | null }) => {
|
||||||
|
const store = useLayoutStore(useShallow(state => ({
|
||||||
|
me: state.me,
|
||||||
|
clearMe: state.clearMe,
|
||||||
|
links: state.links,
|
||||||
|
showBaseHeader: state.showBaseHeader,
|
||||||
|
})));
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const meInfo = useMemo(() => {
|
||||||
|
if (!store.me) {
|
||||||
|
return (
|
||||||
|
<button
|
||||||
|
onClick={() => navigate({ to: '/login' })}
|
||||||
|
className="flex items-center gap-2 px-3 py-1.5 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors cursor-pointer"
|
||||||
|
>
|
||||||
|
<LogIn className="w-4 h-4" />
|
||||||
|
<span>去登录</span>
|
||||||
|
</button>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<div className="flex items-center gap-3">
|
||||||
|
{store.me.avatar && (
|
||||||
|
<img
|
||||||
|
src={store.me.avatar}
|
||||||
|
alt="Avatar"
|
||||||
|
className="w-8 h-8 rounded-full object-cover"
|
||||||
|
/>
|
||||||
|
)}
|
||||||
|
{!store.me.avatar && (
|
||||||
|
<div className="w-8 h-8 rounded-full bg-gray-200 flex items-center justify-center">
|
||||||
|
<User className="w-4 h-4 text-gray-500" />
|
||||||
|
</div>
|
||||||
|
)}
|
||||||
|
<span className="font-medium text-gray-700">{store.me?.username}</span>
|
||||||
|
<button
|
||||||
|
onClick={() => store.clearMe?.()}
|
||||||
|
className="flex items-center gap-1 px-2 py-1 text-sm text-gray-500 hover:text-red-600 hover:bg-red-50 rounded-lg transition-colors cursor-pointer"
|
||||||
|
title="退出登录"
|
||||||
|
>
|
||||||
|
<LogOut className="w-4 h-4" />
|
||||||
|
</button>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}, [store.me, store.clearMe])
|
||||||
|
if (!store.showBaseHeader) {
|
||||||
|
return null;
|
||||||
|
}
|
||||||
|
return (
|
||||||
|
<>
|
||||||
|
<div className="flex gap-2 text-lg w-full h-12 items-center justify-between bg-gray-200">
|
||||||
|
<div className='px-2 flex items-center gap-1'>
|
||||||
|
{
|
||||||
|
store.links.map(link => (
|
||||||
|
<div key={link.key || link.title}
|
||||||
|
className="cursor-pointer flex items-center justify-center gap-1 p-2 text-sm text-gray-600 hover:text-gray-900 hover:bg-gray-100 rounded-lg transition-colors"
|
||||||
|
onClick={() => {
|
||||||
|
if (!link.href) return;
|
||||||
|
if (link.href.startsWith('http') || link.isRoot) {
|
||||||
|
window.open(link.href, '_blank');
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
navigate({
|
||||||
|
to: link.href
|
||||||
|
})
|
||||||
|
}}
|
||||||
|
>
|
||||||
|
{link.key === 'home' && <Home className="w-4 h-4" />}
|
||||||
|
{link.icon && <>{link.icon}</>}
|
||||||
|
{!link.icon && link.title}
|
||||||
|
</div>
|
||||||
|
|
||||||
|
))
|
||||||
|
}
|
||||||
|
</div>
|
||||||
|
<div className='mr-4'>
|
||||||
|
{meInfo}
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
<hr />
|
||||||
|
</>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export const LayoutMain = () => {
|
||||||
|
return <BaseHeader />
|
||||||
|
}
|
||||||
81
src/pages/auth/page.tsx
Normal file
81
src/pages/auth/page.tsx
Normal file
@@ -0,0 +1,81 @@
|
|||||||
|
import { useContextKey } from '@kevisual/context';
|
||||||
|
import '@kevisual/kv-login';
|
||||||
|
import { checkPluginLogin } from '@kevisual/kv-login'
|
||||||
|
import { useEffect } from 'react';
|
||||||
|
import { useLayoutStore } from './store';
|
||||||
|
import { useShallow } from 'zustand/shallow';
|
||||||
|
import { useNavigate } from '@tanstack/react-router';
|
||||||
|
|
||||||
|
export const LoginComponent = ({ onLoginSuccess }: { onLoginSuccess: () => void }) => {
|
||||||
|
useEffect(() => {
|
||||||
|
// 监听登录成功事件
|
||||||
|
const handleLoginSuccess = () => {
|
||||||
|
console.log('监听到登录成功事件,关闭弹窗');
|
||||||
|
onLoginSuccess();
|
||||||
|
};
|
||||||
|
const loginEmitter = useContextKey('login-emitter')
|
||||||
|
console.log('KvLogin Types:', loginEmitter);
|
||||||
|
|
||||||
|
loginEmitter.on('login-success', handleLoginSuccess);
|
||||||
|
|
||||||
|
// 清理监听器
|
||||||
|
return () => {
|
||||||
|
loginEmitter.off('login-success', handleLoginSuccess);
|
||||||
|
};
|
||||||
|
}, [onLoginSuccess]);
|
||||||
|
|
||||||
|
// @ts-ignore
|
||||||
|
return (<kv-login></kv-login>)
|
||||||
|
}
|
||||||
|
export const App = () => {
|
||||||
|
const store = useLayoutStore(useShallow((state) => ({
|
||||||
|
init: state.init,
|
||||||
|
loginPageConfig: state.loginPageConfig,
|
||||||
|
})));
|
||||||
|
useEffect(() => {
|
||||||
|
checkPluginLogin();
|
||||||
|
}, []);
|
||||||
|
const navigate = useNavigate();
|
||||||
|
const handleLoginSuccess = async () => {
|
||||||
|
await store.init()
|
||||||
|
navigate({ to: '/' })
|
||||||
|
};
|
||||||
|
const { title, subtitle, footer } = store.loginPageConfig;
|
||||||
|
return (
|
||||||
|
<div className='w-full h-full relative overflow-hidden bg-gradient-to-br from-slate-900 via-purple-900 to-slate-900'>
|
||||||
|
{/* 背景装饰 - 圆形光晕 */}
|
||||||
|
<div className='absolute top-1/4 -left-32 w-96 h-96 bg-purple-500/30 rounded-full blur-3xl'></div>
|
||||||
|
<div className='absolute bottom-1/4 -right-32 w-96 h-96 bg-blue-500/30 rounded-full blur-3xl'></div>
|
||||||
|
<div className='absolute top-1/2 left-1/2 -translate-x-1/2 -translate-y-1/2 w-[600px] h-[600px] bg-indigo-500/20 rounded-full blur-3xl'></div>
|
||||||
|
|
||||||
|
{/* 背景装饰 - 网格图案 */}
|
||||||
|
<div className='absolute inset-0 opacity-[0.03] bg-[linear-gradient(rgba(255,255,255,0.1)_1px,transparent_1px),linear-gradient(90deg,rgba(255,255,255,0.1)_1px,transparent_1px)] bg-[size:50px_50px]'></div>
|
||||||
|
|
||||||
|
{/* 顶部装饰文字 */}
|
||||||
|
<div className='absolute top-10 left-0 right-0 text-center'>
|
||||||
|
<h1 className='text-4xl font-bold text-white/90 tracking-wider'>{title}</h1>
|
||||||
|
<p className='mt-2 text-white/50 text-sm tracking-widest'>{subtitle}</p>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 登录卡片容器 */}
|
||||||
|
<div className='w-full h-full flex items-center justify-center p-8'>
|
||||||
|
<div className='relative'>
|
||||||
|
{/* 卡片外圈光效 */}
|
||||||
|
<div className='absolute -inset-1 bg-gradient-to-r from-purple-500 via-blue-500 to-indigo-500 rounded-2xl blur opacity-30'></div>
|
||||||
|
|
||||||
|
{/* 登录组件容器 */}
|
||||||
|
<div className='relative bg-slate-900/80 backdrop-blur-xl rounded-2xl border border-white/10 shadow-2xl overflow-hidden'>
|
||||||
|
<LoginComponent onLoginSuccess={handleLoginSuccess} />
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
{/* 底部装饰 */}
|
||||||
|
<div className='absolute bottom-6 left-0 right-0 text-center'>
|
||||||
|
<p className='text-white/30 text-xs'>{footer}</p>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
)
|
||||||
|
}
|
||||||
|
|
||||||
|
export default App;
|
||||||
110
src/pages/auth/store.ts
Normal file
110
src/pages/auth/store.ts
Normal file
@@ -0,0 +1,110 @@
|
|||||||
|
|
||||||
|
import { queryLogin } from '@/modules/query';
|
||||||
|
import { create } from 'zustand';
|
||||||
|
import { toast } from 'sonner';
|
||||||
|
type UserInfo = {
|
||||||
|
id?: string;
|
||||||
|
username?: string;
|
||||||
|
nickname?: string | null;
|
||||||
|
needChangePassword?: boolean;
|
||||||
|
description?: string | null;
|
||||||
|
type?: 'user' | 'org';
|
||||||
|
orgs?: string[];
|
||||||
|
avatar?: string;
|
||||||
|
};
|
||||||
|
export type LayoutStore = {
|
||||||
|
open: boolean;
|
||||||
|
setOpen: (open: boolean) => void;
|
||||||
|
openUser: boolean;
|
||||||
|
setOpenUser: (openUser: boolean) => void;
|
||||||
|
me?: UserInfo;
|
||||||
|
setMe: (me: UserInfo) => void;
|
||||||
|
clearMe: () => void;
|
||||||
|
getMe: () => Promise<void>;
|
||||||
|
switchOrg: (username?: string) => Promise<void>;
|
||||||
|
isAdmin: boolean;
|
||||||
|
setIsAdmin: (isAdmin: boolean) => void
|
||||||
|
init: () => Promise<void>;
|
||||||
|
openLinkList: string[];
|
||||||
|
setOpenLinkList: (openLinkList: string[]) => void;
|
||||||
|
loginPageConfig: {
|
||||||
|
title: string;
|
||||||
|
subtitle: string;
|
||||||
|
footer: string;
|
||||||
|
};
|
||||||
|
setLoginPageConfig: (config: Partial<LayoutStore['loginPageConfig']>) => void;
|
||||||
|
links: HeaderLink[];
|
||||||
|
setLinks: (links: HeaderLink[]) => void;
|
||||||
|
showBaseHeader: boolean;
|
||||||
|
setShowBaseHeader: (showBaseHeader: boolean) => void;
|
||||||
|
};
|
||||||
|
type HeaderLink = {
|
||||||
|
title?: string;
|
||||||
|
href: string;
|
||||||
|
description?: string;
|
||||||
|
icon?: React.ReactNode;
|
||||||
|
key?: string;
|
||||||
|
isRoot?: boolean;
|
||||||
|
};
|
||||||
|
|
||||||
|
export const useLayoutStore = create<LayoutStore>((set, get) => ({
|
||||||
|
open: false,
|
||||||
|
setOpen: (open) => set({ open }),
|
||||||
|
openUser: false,
|
||||||
|
setOpenUser: (openUser) => set({ openUser }),
|
||||||
|
me: undefined,
|
||||||
|
setMe: (me) => set({ me }),
|
||||||
|
clearMe: () => {
|
||||||
|
set({ me: undefined, isAdmin: false });
|
||||||
|
window.location.href = '/root/login/?redirect=' + encodeURIComponent(window.location.href);
|
||||||
|
},
|
||||||
|
getMe: async () => {
|
||||||
|
const res = await queryLogin.getMe();
|
||||||
|
if (res.code === 200) {
|
||||||
|
set({ me: res.data });
|
||||||
|
set({ isAdmin: res.data.orgs?.includes?.('admin') || false });
|
||||||
|
}
|
||||||
|
},
|
||||||
|
switchOrg: async (username?: string) => {
|
||||||
|
const res = await queryLogin.switchUser(username || '');
|
||||||
|
if (res.code === 200) {
|
||||||
|
toast.success('切换成功');
|
||||||
|
setTimeout(() => {
|
||||||
|
window.location.reload();
|
||||||
|
}, 1000);
|
||||||
|
} else {
|
||||||
|
toast.error(res.message || '请求失败');
|
||||||
|
}
|
||||||
|
},
|
||||||
|
isAdmin: false,
|
||||||
|
setIsAdmin: (isAdmin) => set({ isAdmin }),
|
||||||
|
init: async () => {
|
||||||
|
const token = await queryLogin.getToken();
|
||||||
|
if (token) {
|
||||||
|
set({ me: {} })
|
||||||
|
const me = await queryLogin.getMe();
|
||||||
|
// const user = await queryLogin.checkLocalUser() as UserInfo;
|
||||||
|
const user = me.code === 200 ? me.data : undefined;
|
||||||
|
if (user) {
|
||||||
|
set({ me: user });
|
||||||
|
set({ isAdmin: user.orgs?.includes?.('admin') || false });
|
||||||
|
} else {
|
||||||
|
set({ me: undefined, isAdmin: false });
|
||||||
|
}
|
||||||
|
}
|
||||||
|
},
|
||||||
|
openLinkList: ['/login'],
|
||||||
|
setOpenLinkList: (openLinkList) => set({ openLinkList }),
|
||||||
|
loginPageConfig: {
|
||||||
|
title: '可视化管理平台',
|
||||||
|
subtitle: '让工具和智能化触手可及',
|
||||||
|
footer: '欢迎使用可视化管理平台 · 连接您的工具',
|
||||||
|
},
|
||||||
|
setLoginPageConfig: (config) => set((state) => ({
|
||||||
|
loginPageConfig: { ...state.loginPageConfig, ...config },
|
||||||
|
})),
|
||||||
|
links: [{ title: '', href: '/', key: 'home' }],
|
||||||
|
setLinks: (links) => set({ links }),
|
||||||
|
showBaseHeader: true,
|
||||||
|
setShowBaseHeader: (showBaseHeader) => set({ showBaseHeader }),
|
||||||
|
}));
|
||||||
@@ -1,4 +1,4 @@
|
|||||||
import { app } from '@/agent/index.ts'
|
import { app } from '@/agents'
|
||||||
import { useStudioStore } from '../studio/store';
|
import { useStudioStore } from '../studio/store';
|
||||||
import { useShallow } from 'zustand/shallow';
|
import { useShallow } from 'zustand/shallow';
|
||||||
import { useState } from 'react';
|
import { useState } from 'react';
|
||||||
@@ -1,7 +1,7 @@
|
|||||||
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog';
|
import { Dialog, DialogContent, DialogHeader, DialogTitle } from '@/components/ui/dialog';
|
||||||
import { DetailsTab, useQueryViewStore } from '../store';
|
import { DetailsTab, useQueryViewStore } from '../store';
|
||||||
import { useShallow } from 'zustand/shallow';
|
import { useShallow } from 'zustand/shallow';
|
||||||
import { useStudioStore, filterRouteInfo, getPayload } from '@/app/studio/store';
|
import { useStudioStore, filterRouteInfo, getPayload } from '@/pages/studio/store';
|
||||||
import { QueryView } from '..';
|
import { QueryView } from '..';
|
||||||
import { useCallback, useMemo, useState } from 'react';
|
import { useCallback, useMemo, useState } from 'react';
|
||||||
import { pickRouterViewData, RouterViewData, RouterViewItem } from '@kevisual/api/proxy';
|
import { pickRouterViewData, RouterViewData, RouterViewItem } from '@kevisual/api/proxy';
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { QueryProxy, RouterViewItem } from '@kevisual/api/proxy'
|
import { QueryProxy, RouterViewItem } from '@kevisual/api/proxy'
|
||||||
import { app } from '@/agent/index.ts'
|
import { app } from '@/agents'
|
||||||
import { use, useEffect, useState, useRef, useId, useMemo } from 'react'
|
import { use, useEffect, useState, useRef, useId, useMemo } from 'react'
|
||||||
import { flexRender, useReactTable, getCoreRowModel, ColumnDef } from '@tanstack/react-table'
|
import { flexRender, useReactTable, getCoreRowModel, ColumnDef } from '@tanstack/react-table'
|
||||||
import { RefreshCw, Info, MoreVertical, Edit, Trash2, Download, Save, ExternalLink, Code, Delete, Maximize, Minimize } from 'lucide-react'
|
import { RefreshCw, Info, MoreVertical, Edit, Trash2, Download, Save, ExternalLink, Code, Delete, Maximize, Minimize } from 'lucide-react'
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { filterRouteInfo, useStudioStore } from './store.ts';
|
import { filterRouteInfo, useStudioStore } from './store.ts';
|
||||||
import { use, useEffect, useState } from 'react';
|
import { use, useEffect, useState } from 'react';
|
||||||
import { MonitorPlay, Play, PanelLeft, PanelLeftClose, PanelRight, PanelRightClose, Filter, FilterX, Search, X, MoreHorizontal, Info, Code, RotateCcw } from 'lucide-react';
|
import { MonitorPlay, Play, PanelLeft, PanelLeftClose, PanelRight, PanelRightClose, PanelTop, PanelTopClose, Filter, FilterX, Search, X, MoreHorizontal, Info, Code, RotateCcw, Book } from 'lucide-react';
|
||||||
import { Panel, Group } from 'react-resizable-panels'
|
import { Panel, Group } from 'react-resizable-panels'
|
||||||
import { ViewList } from '../view/list.tsx';
|
import { ViewList } from '../view/list.tsx';
|
||||||
import { useShallow } from 'zustand/shallow';
|
import { useShallow } from 'zustand/shallow';
|
||||||
@@ -12,6 +12,7 @@ import { ExportDialog } from './components/ExportDialog';
|
|||||||
import { useQueryViewStore } from '../query-view/store/index.ts';
|
import { useQueryViewStore } from '../query-view/store/index.ts';
|
||||||
import { toast } from 'sonner';
|
import { toast } from 'sonner';
|
||||||
import { DetailsDialog } from '../query-view/components/DetailsDialog.tsx';
|
import { DetailsDialog } from '../query-view/components/DetailsDialog.tsx';
|
||||||
|
import { useLayoutStore } from '../auth/store.ts';
|
||||||
export const AppProvider = () => {
|
export const AppProvider = () => {
|
||||||
const { showLeftPanel, showRightPanel } = useStudioStore(useShallow((state) => ({
|
const { showLeftPanel, showRightPanel } = useStudioStore(useShallow((state) => ({
|
||||||
showLeftPanel: state.showLeftPanel,
|
showLeftPanel: state.showLeftPanel,
|
||||||
@@ -49,12 +50,26 @@ export const WrapperHeader = (props: { children: React.ReactNode }) => {
|
|||||||
showRightPanel: state.showRightPanel,
|
showRightPanel: state.showRightPanel,
|
||||||
setShowRightPanel: state.setShowRightPanel,
|
setShowRightPanel: state.setShowRightPanel,
|
||||||
})));
|
})));
|
||||||
|
const layoutStore = useLayoutStore(useShallow((state) => ({
|
||||||
|
showBaseHeader: state.showBaseHeader,
|
||||||
|
setShowBaseHeader: state.setShowBaseHeader,
|
||||||
|
})));
|
||||||
return <div className='h-full'>
|
return <div className='h-full'>
|
||||||
<div className="w-full h-12 flex items-center justify-between px-4 border-b border-gray-200 bg-white">
|
<div className="w-full h-12 flex items-center justify-between px-4 border-b border-gray-200 bg-white">
|
||||||
<div className="cursor-pointer text-gray-600 hover:text-gray-900 transition-colors" title="Kevisual Router Studio" onClick={() => {
|
<div className='flex gap-2'>
|
||||||
store.setShowLeftPanel(!store.showLeftPanel);
|
|
||||||
}}>
|
<div className="cursor-pointer text-gray-600 hover:text-gray-900 transition-colors" title="Kevisual Router Studio" onClick={() => {
|
||||||
{showLeftPanel ? <PanelLeftClose size={16} /> : <PanelLeft size={16} />}
|
store.setShowLeftPanel(!store.showLeftPanel);
|
||||||
|
}}>
|
||||||
|
{showLeftPanel ? <PanelLeftClose size={16} /> : <PanelLeft size={16} />}
|
||||||
|
</div>
|
||||||
|
<div className='cursor-pointer text-gray-600 hover:text-gray-900 transition-colors" title={layoutStore.showBaseHeader ? "隐藏BaseHeader" : "显示BaseHeader"}' onClick={
|
||||||
|
() => {
|
||||||
|
layoutStore.setShowBaseHeader(!layoutStore.showBaseHeader)
|
||||||
|
}
|
||||||
|
}>
|
||||||
|
{layoutStore.showBaseHeader ? <PanelTopClose size={16} /> : <PanelTop size={16} />}
|
||||||
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div className="flex items-center gap-2">
|
<div className="flex items-center gap-2">
|
||||||
<button
|
<button
|
||||||
@@ -6,7 +6,7 @@ import { toast } from 'sonner';
|
|||||||
import { use } from '@kevisual/context'
|
import { use } from '@kevisual/context'
|
||||||
// import { MyCache } from '@kevisual/cache'
|
// import { MyCache } from '@kevisual/cache'
|
||||||
import { persist } from 'zustand/middleware';
|
import { persist } from 'zustand/middleware';
|
||||||
import { app } from '@/agent/index.ts'
|
import { app } from '@/agents'
|
||||||
import { cloneDeep } from 'es-toolkit'
|
import { cloneDeep } from 'es-toolkit'
|
||||||
import { nanoid } from 'nanoid';
|
import { nanoid } from 'nanoid';
|
||||||
import { Result } from '@kevisual/query';
|
import { Result } from '@kevisual/query';
|
||||||
@@ -70,6 +70,8 @@ interface StudioState {
|
|||||||
setShowExportDialog: (show: boolean) => void;
|
setShowExportDialog: (show: boolean) => void;
|
||||||
exportRoutes?: RouteItem[];
|
exportRoutes?: RouteItem[];
|
||||||
setExportRoutes: (routes?: RouteItem[]) => void;
|
setExportRoutes: (routes?: RouteItem[]) => void;
|
||||||
|
showApiDocs: boolean;
|
||||||
|
setShowApiDocs: (show: boolean) => void;
|
||||||
}
|
}
|
||||||
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
|
const sleep = (ms: number) => new Promise(resolve => setTimeout(resolve, ms));
|
||||||
export const filterRouteInfo = (viewData: RouterViewItem) => {
|
export const filterRouteInfo = (viewData: RouterViewItem) => {
|
||||||
@@ -332,7 +334,9 @@ export const useStudioStore = create<StudioState>()(
|
|||||||
showExportDialog: false,
|
showExportDialog: false,
|
||||||
setShowExportDialog: (show: boolean) => set({ showExportDialog: show }),
|
setShowExportDialog: (show: boolean) => set({ showExportDialog: show }),
|
||||||
exportRoutes: undefined,
|
exportRoutes: undefined,
|
||||||
setExportRoutes: (routes?: RouteItem[]) => set({ exportRoutes: routes })
|
setExportRoutes: (routes?: RouteItem[]) => set({ exportRoutes: routes }),
|
||||||
|
showApiDocs: false,
|
||||||
|
setShowApiDocs: (show: boolean) => set({ showApiDocs: show }),
|
||||||
}),
|
}),
|
||||||
{
|
{
|
||||||
name: 'studio-storage',
|
name: 'studio-storage',
|
||||||
34
src/pages/view/components/DocsModal.tsx
Normal file
34
src/pages/view/components/DocsModal.tsx
Normal file
@@ -0,0 +1,34 @@
|
|||||||
|
import { useStudioStore } from "@/pages/studio/store";
|
||||||
|
import { useShallow } from "zustand/shallow";
|
||||||
|
import {
|
||||||
|
Dialog,
|
||||||
|
DialogContent,
|
||||||
|
DialogHeader,
|
||||||
|
DialogTitle,
|
||||||
|
DialogFooter,
|
||||||
|
} from "@/components/ui/dialog";
|
||||||
|
import { Button } from "@/components/ui/button";
|
||||||
|
|
||||||
|
export const DocsModal = () => {
|
||||||
|
const store = useStudioStore(useShallow((state) => ({
|
||||||
|
showApiDocs: state.showApiDocs,
|
||||||
|
setShowApiDocs: state.setShowApiDocs,
|
||||||
|
})));
|
||||||
|
|
||||||
|
return (
|
||||||
|
<Dialog open={store.showApiDocs} onOpenChange={store.setShowApiDocs}>
|
||||||
|
<DialogContent className="max-w-3xl! max-h-[80vh] overflow-hidden">
|
||||||
|
<DialogHeader>
|
||||||
|
<DialogTitle className="text-xl">API 文档</DialogTitle>
|
||||||
|
</DialogHeader>
|
||||||
|
<div className="flex-1 overflow-auto">
|
||||||
|
<p>这里是 API 文档的内容...</p>
|
||||||
|
</div>
|
||||||
|
<DialogFooter>
|
||||||
|
<Button onClick={() => store.setShowApiDocs(false)}>关闭</Button>
|
||||||
|
</DialogFooter>
|
||||||
|
</DialogContent>
|
||||||
|
|
||||||
|
</Dialog>
|
||||||
|
);
|
||||||
|
};
|
||||||
@@ -4,8 +4,8 @@ import { Label } from "@/components/ui/label"
|
|||||||
import { Input } from "@/components/ui/input"
|
import { Input } from "@/components/ui/input"
|
||||||
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"
|
import { Dialog, DialogContent, DialogFooter, DialogHeader, DialogTitle } from "@/components/ui/dialog"
|
||||||
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
import { Tabs, TabsContent, TabsList, TabsTrigger } from "@/components/ui/tabs"
|
||||||
import { DataItemForm } from "@/app/view/components/DataItemForm"
|
import { DataItemForm } from "@/pages/view/components/DataItemForm"
|
||||||
import { ViewFormItem } from "@/app/view/components/ViewFormItem"
|
import { ViewFormItem } from "@/pages/view/components/ViewFormItem"
|
||||||
import { nanoid } from "nanoid"
|
import { nanoid } from "nanoid"
|
||||||
|
|
||||||
interface ViewEditorProps {
|
interface ViewEditorProps {
|
||||||
@@ -1,6 +1,6 @@
|
|||||||
import { useEffect, useState } from "react";
|
import { useEffect, useState } from "react";
|
||||||
import { useStudioStore } from '../studio/store.ts';
|
import { useStudioStore } from '../studio/store.ts';
|
||||||
import { Search, RotateCw, Plus, MoreHorizontal, Layout, Edit2, Trash2, MousePointer2 } from "lucide-react";
|
import { Search, RotateCw, Plus, MoreHorizontal, Layout, Edit2, Trash2, MousePointer2, Book } from "lucide-react";
|
||||||
import { Input } from "@/components/ui/input";
|
import { Input } from "@/components/ui/input";
|
||||||
import { Button } from "@/components/ui/button";
|
import { Button } from "@/components/ui/button";
|
||||||
import {
|
import {
|
||||||
@@ -11,10 +11,10 @@ import {
|
|||||||
} from "@/components/ui/dropdown-menu";
|
} from "@/components/ui/dropdown-menu";
|
||||||
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
|
import { Tooltip, TooltipContent, TooltipProvider, TooltipTrigger } from "@/components/ui/tooltip";
|
||||||
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
import { Popover, PopoverContent, PopoverTrigger } from "@/components/ui/popover";
|
||||||
import { ViewEditor } from "@/app/view/components/ViewEditor.tsx";
|
import { ViewEditor } from "@/pages/view/components/ViewEditor.tsx";
|
||||||
import { toast } from "sonner";
|
import { toast } from "sonner";
|
||||||
import { useShallow } from "zustand/shallow";
|
import { useShallow } from "zustand/shallow";
|
||||||
|
import { DocsModal } from './components/DocsModal.tsx'
|
||||||
const ViewItem = ({ view, onEdit, onDelete, onDeleteViewItem }: { view: any; onEdit: (view: any) => void; onDelete: (id: string) => void; onDeleteViewItem: (id: string, viewId: string) => void }) => {
|
const ViewItem = ({ view, onEdit, onDelete, onDeleteViewItem }: { view: any; onEdit: (view: any) => void; onDelete: (id: string) => void; onDeleteViewItem: (id: string, viewId: string) => void }) => {
|
||||||
const [expanded, setExpanded] = useState(false);
|
const [expanded, setExpanded] = useState(false);
|
||||||
const studioStore = useStudioStore(useShallow((state) => ({
|
const studioStore = useStudioStore(useShallow((state) => ({
|
||||||
@@ -158,22 +158,29 @@ const ViewItem = ({ view, onEdit, onDelete, onDeleteViewItem }: { view: any; onE
|
|||||||
</div>
|
</div>
|
||||||
}
|
}
|
||||||
export const ViewList = () => {
|
export const ViewList = () => {
|
||||||
const { routeViewList, updateRouteView, deleteRouteView, deleteRouteViewItem, getViewList } = useStudioStore();
|
const store = useStudioStore(useShallow((state) => ({
|
||||||
|
routeViewList: state.routeViewList,
|
||||||
|
updateRouteView: state.updateRouteView,
|
||||||
|
deleteRouteView: state.deleteRouteView,
|
||||||
|
deleteRouteViewItem: state.deleteRouteViewItem,
|
||||||
|
getViewList: state.getViewList,
|
||||||
|
setShowApiDocs: state.setShowApiDocs,
|
||||||
|
})));
|
||||||
const [searchTerm, setSearchTerm] = useState("");
|
const [searchTerm, setSearchTerm] = useState("");
|
||||||
const [editorOpen, setEditorOpen] = useState(false);
|
const [editorOpen, setEditorOpen] = useState(false);
|
||||||
const [editingView, setEditingView] = useState<any>(null);
|
const [editingView, setEditingView] = useState<any>(null);
|
||||||
|
|
||||||
const filteredViews = routeViewList.filter(view =>
|
const filteredViews = store.routeViewList.filter(view =>
|
||||||
(view.title || '未命名视图').toLowerCase().includes(searchTerm.toLowerCase()) ||
|
(view.title || '未命名视图').toLowerCase().includes(searchTerm.toLowerCase()) ||
|
||||||
(view.description || '').toLowerCase().includes(searchTerm.toLowerCase())
|
(view.description || '').toLowerCase().includes(searchTerm.toLowerCase())
|
||||||
);
|
);
|
||||||
useEffect(() => {
|
useEffect(() => {
|
||||||
getViewList();
|
store.getViewList();
|
||||||
}, [])
|
}, [])
|
||||||
|
|
||||||
const handleRefresh = async () => {
|
const handleRefresh = async () => {
|
||||||
const toastId = toast.loading('正在刷新视图列表...');
|
const toastId = toast.loading('正在刷新视图列表...');
|
||||||
await getViewList();
|
await store.getViewList();
|
||||||
// toast.update(toastId, { render: '视图列表已刷新', type: 'success', id: false, autoClose: 1000 });
|
// toast.update(toastId, { render: '视图列表已刷新', type: 'success', id: false, autoClose: 1000 });
|
||||||
toast.success('视图列表已刷新', { duration: 1000 });
|
toast.success('视图列表已刷新', { duration: 1000 });
|
||||||
toast.dismiss(toastId);
|
toast.dismiss(toastId);
|
||||||
@@ -190,17 +197,20 @@ export const ViewList = () => {
|
|||||||
|
|
||||||
const handleDelete = (id: string) => {
|
const handleDelete = (id: string) => {
|
||||||
if (confirm('确定要删除这个视图吗?')) {
|
if (confirm('确定要删除这个视图吗?')) {
|
||||||
deleteRouteView(id);
|
store.deleteRouteView(id);
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
|
||||||
const handleSaveView = (viewData: any) => {
|
const handleSaveView = (viewData: any) => {
|
||||||
updateRouteView(viewData);
|
store.updateRouteView(viewData);
|
||||||
};
|
};
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<div className="w-full h-full max-w-4xl p-4 border border-gray-200 rounded-md shadow-sm">
|
<div className="w-full h-full max-w-4xl p-4 border border-gray-200 rounded-md shadow-sm">
|
||||||
<div className="flex items-center space-x-2 mb-4">
|
<div className="flex items-center space-x-2 mb-4">
|
||||||
|
<Button onClick={() => store.setShowApiDocs(true)} title='文档' variant="outline" size="icon" className="h-8 w-8 cursor-pointer border-gray-300">
|
||||||
|
<Book size={16} />
|
||||||
|
</Button>
|
||||||
<div className="relative flex-1">
|
<div className="relative flex-1">
|
||||||
<Input
|
<Input
|
||||||
placeholder="搜索视图..."
|
placeholder="搜索视图..."
|
||||||
@@ -230,7 +240,7 @@ export const ViewList = () => {
|
|||||||
view={view}
|
view={view}
|
||||||
onEdit={handleEdit}
|
onEdit={handleEdit}
|
||||||
onDelete={handleDelete}
|
onDelete={handleDelete}
|
||||||
onDeleteViewItem={deleteRouteViewItem}
|
onDeleteViewItem={store.deleteRouteViewItem}
|
||||||
/>
|
/>
|
||||||
))
|
))
|
||||||
)}
|
)}
|
||||||
@@ -242,6 +252,7 @@ export const ViewList = () => {
|
|||||||
data={editingView}
|
data={editingView}
|
||||||
onSave={handleSaveView}
|
onSave={handleSaveView}
|
||||||
/>
|
/>
|
||||||
|
<DocsModal />
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
}
|
}
|
||||||
@@ -10,6 +10,7 @@
|
|||||||
|
|
||||||
import { Route as rootRouteImport } from './routes/__root'
|
import { Route as rootRouteImport } from './routes/__root'
|
||||||
import { Route as ViewRouteImport } from './routes/view'
|
import { Route as ViewRouteImport } from './routes/view'
|
||||||
|
import { Route as LoginRouteImport } from './routes/login'
|
||||||
import { Route as ConsoleRouteImport } from './routes/console'
|
import { Route as ConsoleRouteImport } from './routes/console'
|
||||||
import { Route as IdRouteImport } from './routes/$id'
|
import { Route as IdRouteImport } from './routes/$id'
|
||||||
import { Route as IndexRouteImport } from './routes/index'
|
import { Route as IndexRouteImport } from './routes/index'
|
||||||
@@ -19,6 +20,11 @@ const ViewRoute = ViewRouteImport.update({
|
|||||||
path: '/view',
|
path: '/view',
|
||||||
getParentRoute: () => rootRouteImport,
|
getParentRoute: () => rootRouteImport,
|
||||||
} as any)
|
} as any)
|
||||||
|
const LoginRoute = LoginRouteImport.update({
|
||||||
|
id: '/login',
|
||||||
|
path: '/login',
|
||||||
|
getParentRoute: () => rootRouteImport,
|
||||||
|
} as any)
|
||||||
const ConsoleRoute = ConsoleRouteImport.update({
|
const ConsoleRoute = ConsoleRouteImport.update({
|
||||||
id: '/console',
|
id: '/console',
|
||||||
path: '/console',
|
path: '/console',
|
||||||
@@ -39,12 +45,14 @@ export interface FileRoutesByFullPath {
|
|||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
'/$id': typeof IdRoute
|
'/$id': typeof IdRoute
|
||||||
'/console': typeof ConsoleRoute
|
'/console': typeof ConsoleRoute
|
||||||
|
'/login': typeof LoginRoute
|
||||||
'/view': typeof ViewRoute
|
'/view': typeof ViewRoute
|
||||||
}
|
}
|
||||||
export interface FileRoutesByTo {
|
export interface FileRoutesByTo {
|
||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
'/$id': typeof IdRoute
|
'/$id': typeof IdRoute
|
||||||
'/console': typeof ConsoleRoute
|
'/console': typeof ConsoleRoute
|
||||||
|
'/login': typeof LoginRoute
|
||||||
'/view': typeof ViewRoute
|
'/view': typeof ViewRoute
|
||||||
}
|
}
|
||||||
export interface FileRoutesById {
|
export interface FileRoutesById {
|
||||||
@@ -52,20 +60,22 @@ export interface FileRoutesById {
|
|||||||
'/': typeof IndexRoute
|
'/': typeof IndexRoute
|
||||||
'/$id': typeof IdRoute
|
'/$id': typeof IdRoute
|
||||||
'/console': typeof ConsoleRoute
|
'/console': typeof ConsoleRoute
|
||||||
|
'/login': typeof LoginRoute
|
||||||
'/view': typeof ViewRoute
|
'/view': typeof ViewRoute
|
||||||
}
|
}
|
||||||
export interface FileRouteTypes {
|
export interface FileRouteTypes {
|
||||||
fileRoutesByFullPath: FileRoutesByFullPath
|
fileRoutesByFullPath: FileRoutesByFullPath
|
||||||
fullPaths: '/' | '/$id' | '/console' | '/view'
|
fullPaths: '/' | '/$id' | '/console' | '/login' | '/view'
|
||||||
fileRoutesByTo: FileRoutesByTo
|
fileRoutesByTo: FileRoutesByTo
|
||||||
to: '/' | '/$id' | '/console' | '/view'
|
to: '/' | '/$id' | '/console' | '/login' | '/view'
|
||||||
id: '__root__' | '/' | '/$id' | '/console' | '/view'
|
id: '__root__' | '/' | '/$id' | '/console' | '/login' | '/view'
|
||||||
fileRoutesById: FileRoutesById
|
fileRoutesById: FileRoutesById
|
||||||
}
|
}
|
||||||
export interface RootRouteChildren {
|
export interface RootRouteChildren {
|
||||||
IndexRoute: typeof IndexRoute
|
IndexRoute: typeof IndexRoute
|
||||||
IdRoute: typeof IdRoute
|
IdRoute: typeof IdRoute
|
||||||
ConsoleRoute: typeof ConsoleRoute
|
ConsoleRoute: typeof ConsoleRoute
|
||||||
|
LoginRoute: typeof LoginRoute
|
||||||
ViewRoute: typeof ViewRoute
|
ViewRoute: typeof ViewRoute
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -78,6 +88,13 @@ declare module '@tanstack/react-router' {
|
|||||||
preLoaderRoute: typeof ViewRouteImport
|
preLoaderRoute: typeof ViewRouteImport
|
||||||
parentRoute: typeof rootRouteImport
|
parentRoute: typeof rootRouteImport
|
||||||
}
|
}
|
||||||
|
'/login': {
|
||||||
|
id: '/login'
|
||||||
|
path: '/login'
|
||||||
|
fullPath: '/login'
|
||||||
|
preLoaderRoute: typeof LoginRouteImport
|
||||||
|
parentRoute: typeof rootRouteImport
|
||||||
|
}
|
||||||
'/console': {
|
'/console': {
|
||||||
id: '/console'
|
id: '/console'
|
||||||
path: '/console'
|
path: '/console'
|
||||||
@@ -106,6 +123,7 @@ const rootRouteChildren: RootRouteChildren = {
|
|||||||
IndexRoute: IndexRoute,
|
IndexRoute: IndexRoute,
|
||||||
IdRoute: IdRoute,
|
IdRoute: IdRoute,
|
||||||
ConsoleRoute: ConsoleRoute,
|
ConsoleRoute: ConsoleRoute,
|
||||||
|
LoginRoute: LoginRoute,
|
||||||
ViewRoute: ViewRoute,
|
ViewRoute: ViewRoute,
|
||||||
}
|
}
|
||||||
export const routeTree = rootRouteImport
|
export const routeTree = rootRouteImport
|
||||||
|
|||||||
@@ -1,5 +1,5 @@
|
|||||||
import { createFileRoute } from '@tanstack/react-router'
|
import { createFileRoute } from '@tanstack/react-router'
|
||||||
import App from '@/app/page'
|
import App from '@/pages/page'
|
||||||
|
|
||||||
export const Route = createFileRoute('/$id')({
|
export const Route = createFileRoute('/$id')({
|
||||||
component: RouteComponent,
|
component: RouteComponent,
|
||||||
|
|||||||
@@ -1,38 +1,36 @@
|
|||||||
import { Link, Outlet, createRootRoute, useLocation } from '@tanstack/react-router'
|
import { LayoutMain } from '@/pages/auth/modules/BaseHeader';
|
||||||
|
import { Outlet, createRootRoute } from '@tanstack/react-router'
|
||||||
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
|
import { TanStackRouterDevtools } from '@tanstack/react-router-devtools'
|
||||||
import { Toaster } from '@/components/ui/sonner'
|
import { Toaster } from '@/components/ui/sonner'
|
||||||
import { Load } from '@kevisual/context/load'
|
import { AuthProvider } from '@/pages/auth'
|
||||||
import * as query from '@/modules/query';
|
import { TooltipProvider } from '@/components/ui/tooltip'
|
||||||
|
import { useLayoutStore } from '@/pages/auth/store';
|
||||||
|
import { useShallow } from 'zustand/shallow';
|
||||||
|
import clsx from 'clsx';
|
||||||
export const Route = createRootRoute({
|
export const Route = createRootRoute({
|
||||||
component: RootComponent,
|
component: RootComponent,
|
||||||
})
|
})
|
||||||
Load.npm({ pkg: 'eruda' });
|
|
||||||
|
|
||||||
function RootComponent() {
|
function RootComponent() {
|
||||||
// 这里预加载一下 query 模块,避免在代码分割自动threeshaking;
|
const store = useLayoutStore(useShallow(state => ({
|
||||||
query;
|
showBaseHeader: state.showBaseHeader,
|
||||||
|
})));
|
||||||
return (
|
return (
|
||||||
<div className='h-full overflow-hidden'>
|
<div className='h-full overflow-hidden'>
|
||||||
|
<LayoutMain />
|
||||||
<div className="p-2 flex gap-2 text-lg">
|
<AuthProvider mustLogin={true}>
|
||||||
<Link
|
<TooltipProvider>
|
||||||
to="/"
|
<main className={clsx('overflow-auto scrollbar', {
|
||||||
activeProps={{
|
'h-[calc(100%-3rem)]': store.showBaseHeader,
|
||||||
className: 'font-bold',
|
'h-full': !store.showBaseHeader,
|
||||||
}}
|
})}>
|
||||||
activeOptions={{ exact: true }}
|
<Outlet />
|
||||||
>
|
</main>
|
||||||
首页
|
</TooltipProvider>
|
||||||
</Link>
|
</AuthProvider>
|
||||||
</div>
|
<TanStackRouterDevtools position="bottom-right" />
|
||||||
<hr />
|
|
||||||
<main className='h-[calc(100%-4rem)] overflow-auto scrollbar'>
|
|
||||||
<Outlet />
|
|
||||||
</main>
|
|
||||||
<TanStackRouterDevtools position="bottom-left" />
|
|
||||||
<Toaster />
|
<Toaster />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
)
|
)
|
||||||
}
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { createFileRoute } from '@tanstack/react-router'
|
import { createFileRoute } from '@tanstack/react-router'
|
||||||
import App from '@/app/page'
|
import App from '@/pages/page'
|
||||||
export const Route = createFileRoute('/')({
|
export const Route = createFileRoute('/')({
|
||||||
component: RouteComponent,
|
component: RouteComponent,
|
||||||
})
|
})
|
||||||
|
|||||||
9
src/routes/login.tsx
Normal file
9
src/routes/login.tsx
Normal file
@@ -0,0 +1,9 @@
|
|||||||
|
import { createFileRoute } from '@tanstack/react-router'
|
||||||
|
import App from '@/pages/auth/page'
|
||||||
|
export const Route = createFileRoute('/login')({
|
||||||
|
component: RouteComponent,
|
||||||
|
})
|
||||||
|
|
||||||
|
function RouteComponent() {
|
||||||
|
return <App />
|
||||||
|
}
|
||||||
@@ -1,5 +1,5 @@
|
|||||||
import { createFileRoute } from '@tanstack/react-router'
|
import { createFileRoute } from '@tanstack/react-router'
|
||||||
import App from '../app/query-view/page'
|
import App from '@/pages/query-view/page'
|
||||||
export const Route = createFileRoute('/view')({
|
export const Route = createFileRoute('/view')({
|
||||||
component: RouteComponent,
|
component: RouteComponent,
|
||||||
})
|
})
|
||||||
|
|||||||
19
web/.cnb.yml
19
web/.cnb.yml
@@ -1,19 +0,0 @@
|
|||||||
# .cnb.yml
|
|
||||||
include:
|
|
||||||
- https://cnb.cool/kevisual/cnb/-/blob/main/.cnb/template.yml
|
|
||||||
|
|
||||||
.common_env: &common_env
|
|
||||||
env:
|
|
||||||
USERNAME: root
|
|
||||||
imports:
|
|
||||||
- https://cnb.cool/kevisual/env/-/blob/main/.env.development
|
|
||||||
|
|
||||||
$:
|
|
||||||
vscode:
|
|
||||||
- docker:
|
|
||||||
image: docker.cnb.cool/kevisual/dev-env:latest
|
|
||||||
services:
|
|
||||||
- vscode
|
|
||||||
- docker
|
|
||||||
imports: !reference [.common_env, imports]
|
|
||||||
stages: !reference [.dev_template, stages]
|
|
||||||
@@ -1,2 +0,0 @@
|
|||||||
NODE_ENV=
|
|
||||||
VITE_API_URL=http://localhost:51515
|
|
||||||
18
web/.gitignore
vendored
18
web/.gitignore
vendored
@@ -1,18 +0,0 @@
|
|||||||
# Logs
|
|
||||||
logs
|
|
||||||
*.log
|
|
||||||
|
|
||||||
node_modules
|
|
||||||
dist
|
|
||||||
pack-dist
|
|
||||||
|
|
||||||
.DS_Store
|
|
||||||
|
|
||||||
.turbo
|
|
||||||
|
|
||||||
.pnpm-store
|
|
||||||
|
|
||||||
.tanstack
|
|
||||||
.env*
|
|
||||||
|
|
||||||
!.env.example
|
|
||||||
Reference in New Issue
Block a user