diff --git a/official/astro.config.mjs b/official/astro.config.mjs index ff3abff..e50c0d5 100644 --- a/official/astro.config.mjs +++ b/official/astro.config.mjs @@ -8,15 +8,11 @@ import tailwindcss from '@tailwindcss/vite'; const isDev = process.env.NODE_ENV === 'development'; const plugins = [tailwindcss()]; -let target = process.env.VITE_API_URL || 'https://localhost:51015'; +let target = process.env.VITE_API_URL || 'https://localhost:51515'; const apiProxy = { target: target, changeOrigin: true, ws: true, rewriteWsOrigin: true, secure: false, cookieDomainRewrite: 'localhost' }; let proxy = { - '/root/center/': { - target: `${target}/root/center/`, - }, - '/user/login/': { - target: `${target}/user/login/`, - }, + '/root/center/': apiProxy, + '/user/login/': apiProxy, '/api': apiProxy, '/client': apiProxy, }; diff --git a/official/src/apps/index/App.tsx b/official/src/apps/index/App.tsx index cdbb0e0..71f9e1c 100644 --- a/official/src/apps/index/App.tsx +++ b/official/src/apps/index/App.tsx @@ -41,7 +41,7 @@ export const Main = () => {
{/* 主标题区域 */}
-

可视化助手

+

可视化助手(研究中)

人在网络上生活的方面的所有内容,都能更好地被管理和使用。学习、工作、娱乐、社交等各个方面的内容,都能被整合在自己的可视化的空间中。这空间具备自执行的能力,能主动帮助人完成各项任务,操作系统,浏览器,应用程序。

diff --git a/official/src/apps/index/components/TextEditor.tsx b/official/src/apps/index/components/TextEditor.tsx index 2fc683c..2a553a5 100644 --- a/official/src/apps/index/components/TextEditor.tsx +++ b/official/src/apps/index/components/TextEditor.tsx @@ -1,7 +1,7 @@ import { createEditor } from '@kevisual/codemirror'; import { Chain } from '@kevisual/codemirror/utils'; import { useEffect, useRef } from 'react'; -import { CacheWorkspace } from '@kevisual/cache'; +import { MyCache } from '@kevisual/cache'; export const chain = new Chain(); type TextEditorProps = { @@ -27,7 +27,7 @@ export const TextEditor = ({ content, chain, onChange }: TextEditorProps) => { }, [content]); const initEditor = async () => { if (!editorElRef.current) return; - const cache = new CacheWorkspace(); + const cache = new MyCache(); const editor = createEditor(editorElRef.current, { type: 'html', onChange: (value) => { diff --git a/official/src/apps/skill-beautiful/app.ts b/official/src/apps/skill-beautiful/app.ts index 7b16c06..44ebcd9 100644 --- a/official/src/apps/skill-beautiful/app.ts +++ b/official/src/apps/skill-beautiful/app.ts @@ -207,7 +207,8 @@ export const render = () => { scene.fog = new THREE.Fog(0x0a0a1a, 10, 50); const camera = new THREE.PerspectiveCamera(75, window.innerWidth / window.innerHeight, 0.1, 1000); - camera.position.set(0, 8, 12); + // camera.position.set(0, 8, 12); + camera.position.set(0, 16, 24); camera.lookAt(0, 2, 0); const renderer = new THREE.WebGLRenderer({ antialias: true }); @@ -499,7 +500,8 @@ export const render = () => { // 创建 CSS3DObject const css3dObject = new CSS3DObject(div); css3dObject.position.set(0, 3.5, 0); // 居中显示 - css3dObject.rotation.y = 0; // 面向正前方 + // 让面板面向相机(使用 lookAt) + css3dObject.lookAt(camera.position); css3dObject.scale.set(0.01, 0.01, 0.01); // 缩放以适应场景 scene.add(css3dObject); diff --git a/package.json b/package.json index c999b58..4a5a3a9 100644 --- a/package.json +++ b/package.json @@ -16,8 +16,8 @@ "type": "module", "dependencies": { "@ant-design/v5-patch-for-react-19": "^1.0.3", - "@kevisual/query": "^0.0.33", - "antd": "^6.1.2", + "@kevisual/query": "^0.0.35", + "antd": "^6.1.3", "clsx": "^2.1.1", "lucide-react": "^0.562.0", "react": "^19.2.3", @@ -25,7 +25,7 @@ "rollup-plugin-visualizer": "^6.0.5" }, "devDependencies": { - "@kevisual/cache": "^0.0.4", + "@kevisual/cache": "^0.0.5", "@kevisual/codemirror": "^0.0.12", "@tailwindcss/vite": "^4.1.18", "@types/react": "^19.2.7", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index dc3bf18..92a7d16 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -10,13 +10,13 @@ importers: dependencies: '@ant-design/v5-patch-for-react-19': specifier: ^1.0.3 - version: 1.0.3(antd@6.1.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + version: 1.0.3(antd@6.1.3(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@kevisual/query': - specifier: ^0.0.33 - version: 0.0.33 + specifier: ^0.0.35 + version: 0.0.35 antd: - specifier: ^6.1.2 - version: 6.1.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + specifier: ^6.1.3 + version: 6.1.3(react-dom@19.2.3(react@19.2.3))(react@19.2.3) clsx: specifier: ^2.1.1 version: 2.1.1 @@ -34,8 +34,8 @@ importers: version: 6.0.5(rollup@4.44.0) devDependencies: '@kevisual/cache': - specifier: ^0.0.4 - version: 0.0.4 + specifier: ^0.0.5 + version: 0.0.5 '@kevisual/codemirror': specifier: ^0.0.12 version: 0.0.12 @@ -913,8 +913,8 @@ packages: '@kevisual/cache@0.0.3': resolution: {integrity: sha512-BWEck69KYL96/ywjYVkML974RHjDJTj2ITQND1zFPR+hlBV1H1p55QZgSYRJCObg3EAV1S9Zic/fR2T4pfe8yg==} - '@kevisual/cache@0.0.4': - resolution: {integrity: sha512-NlyriJ9fC27TgQhWYbEH9hG84R2k0lIofOxo/+nVHN6a6LJSLnVbpDIysRcnH8MI52n/XHfWwLSjeDDL3D1/cQ==} + '@kevisual/cache@0.0.5': + resolution: {integrity: sha512-fgtUYGUUq/DY0KFV4CkWszNqvQUaA8XvMTUjoR9ZXRpau5IIDolD/Wen2TFsZ7G3Rfy+lef5dnaiZVDkZwdVKg==} '@kevisual/codemirror@0.0.12': resolution: {integrity: sha512-W0m9WbP0p6Z/w/xlQGb5ek7QEqg66CEIr1AJRsCkh+24NcWKEV5x0WhusXtJFC0oxGlGmPIz9rKUttc9In6ZeA==} @@ -922,8 +922,8 @@ packages: '@kevisual/query@0.0.29': resolution: {integrity: sha512-rQZk0J073UuC1QGzuyq+pb4Y0hu8/Qx/xYHs9NbsmslM+RuMnd1zpXmvhXNj7Kn1MdYTH90ng2MlFLBkkQFaIg==} - '@kevisual/query@0.0.33': - resolution: {integrity: sha512-3w74bcLpwV3z483eg8n0DgkftfjWC6iLONXBvfyjW6IZf6jMOuouFaM4Rk+uEsTgElU6XGMKseNTp6dlQdWYkg==} + '@kevisual/query@0.0.35': + resolution: {integrity: sha512-80dyy2LMCmEC72g+X4QWUKlZErhawQPgnGSBNR4yhrBcFgHIJQ14LR1Z+bS5S1I7db+1PDNpaxBTjIaoYoXunw==} '@lezer/common@1.2.3': resolution: {integrity: sha512-w7ojc8ejBqr2REPsWxJjrMFsA/ysDCFICn8zEOR9mrqzOu2amhITYuLD8ag6XZf0CFXDrhKqw7+tW8cX66NaDA==} @@ -962,8 +962,8 @@ packages: resolution: {integrity: sha512-qgGdcVIF604M9EqjNF0hbUTz42bz/RDtxWdWuU5EQe3hi7M8ob54B6B35rOsvX5eSvIHIzT9iH1R3n+hk3CGfg==} engines: {node: '>=14.x'} - '@rc-component/cascader@1.9.0': - resolution: {integrity: sha512-2jbthe1QZrMBgtCvNKkJFjZYC3uKl4N/aYm5SsMvO3T+F+qRT1CGsSM9bXnh1rLj7jDk/GK0natShWF/jinhWQ==} + '@rc-component/cascader@1.10.0': + resolution: {integrity: sha512-D1XOKvbhdo9kX+cG1p8qJOnSq+sMK3L84iVYjGQIx950kJt0ixN+Xac75ykyK/AC8V3GUanjNK14Qkv149RrEw==} peerDependencies: react: '>=18.0.0' react-dom: '>=18.0.0' @@ -1175,8 +1175,8 @@ packages: react: '>=16.0.0' react-dom: '>=16.0.0' - '@rc-component/select@1.3.6': - resolution: {integrity: sha512-CzbJ9TwmWcF5asvTMZ9BMiTE9CkkrigeOGRPpzCNmeZP7KBwwmYrmOIiKh9tMG7d6DyGAEAQ75LBxzPx+pGTHA==} + '@rc-component/select@1.4.0': + resolution: {integrity: sha512-DDCsUkx3lHAO42fyPiBADzZgbqOp3gepjBCusuy6DDN51Vx73cwX0aqsid1asxpIwHPMYGgYg+wXbLi4YctzLQ==} engines: {node: '>=8.x'} peerDependencies: react: '*' @@ -1242,8 +1242,8 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' - '@rc-component/tree-select@1.4.0': - resolution: {integrity: sha512-I3UAlO2hNqy9CSKc8EBaESgnmKk2QaRzuZ2XHZGFCgsSMkGl06mdF97sVfROM02YIb64ocgLKefsjE0Ch4ocwQ==} + '@rc-component/tree-select@1.5.0': + resolution: {integrity: sha512-1nBAMreFJXkCIeZlWG0l+6i0jLWzlmmRv/TrtZjLkoq8WmpzSuDhP32YroC7rAhGFR34thpHkvCedPzBXIL/XQ==} peerDependencies: react: '*' react-dom: '*' @@ -1653,8 +1653,8 @@ packages: react: '>=16.9.0' react-dom: '>=16.9.0' - antd@6.1.2: - resolution: {integrity: sha512-pqYaZECL/7TBiNxxz+LieLiPCem6DaEzudqN44EZ3SvJjixLP7K41n6clo0zxe/2HiOUe9KxTMxGN+icOkL6Tw==} + antd@6.1.3: + resolution: {integrity: sha512-kvaLtOm0UwCIdtR424/Mo6pyJxN34/6003e1io3GIKWQOdlddplFylv767iGxXLMrxfNoQmxuNJcF1miFbxCZQ==} peerDependencies: react: '>=18.0.0' react-dom: '>=18.0.0' @@ -3481,7 +3481,7 @@ snapshots: '@emotion/unitless': 0.7.5 '@rc-component/util': 1.6.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) clsx: 2.1.1 - csstype: 3.1.3 + csstype: 3.2.3 react: 19.2.3 react-dom: 19.2.3(react@19.2.3) stylis: 4.3.6 @@ -3537,9 +3537,9 @@ snapshots: react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - '@ant-design/v5-patch-for-react-19@1.0.3(antd@6.1.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': + '@ant-design/v5-patch-for-react-19@1.0.3(antd@6.1.3(react-dom@19.2.3(react@19.2.3))(react@19.2.3))(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': dependencies: - antd: 6.1.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + antd: 6.1.3(react-dom@19.2.3(react@19.2.3))(react@19.2.3) react: 19.2.3 react-dom: 19.2.3(react@19.2.3) @@ -4222,7 +4222,7 @@ snapshots: dependencies: idb-keyval: 6.2.2 - '@kevisual/cache@0.0.4': + '@kevisual/cache@0.0.5': dependencies: idb-keyval: 6.2.2 lru-cache: 11.2.4 @@ -4250,7 +4250,9 @@ snapshots: - ws - zod - '@kevisual/query@0.0.33': {} + '@kevisual/query@0.0.35': + dependencies: + tslib: 2.8.1 '@lezer/common@1.2.3': {} @@ -4329,9 +4331,9 @@ snapshots: dependencies: '@babel/runtime': 7.28.4 - '@rc-component/cascader@1.9.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': + '@rc-component/cascader@1.10.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': dependencies: - '@rc-component/select': 1.3.6(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@rc-component/select': 1.4.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/tree': 1.1.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/util': 1.6.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) clsx: 2.1.1 @@ -4582,7 +4584,7 @@ snapshots: react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - '@rc-component/select@1.3.6(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': + '@rc-component/select@1.4.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': dependencies: '@rc-component/overflow': 1.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/trigger': 3.7.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -4670,9 +4672,9 @@ snapshots: react: 19.2.3 react-dom: 19.2.3(react@19.2.3) - '@rc-component/tree-select@1.4.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': + '@rc-component/tree-select@1.5.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3)': dependencies: - '@rc-component/select': 1.3.6(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@rc-component/select': 1.4.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/tree': 1.1.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/util': 1.6.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) clsx: 2.1.1 @@ -5118,7 +5120,7 @@ snapshots: - luxon - moment - antd@6.1.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3): + antd@6.1.3(react-dom@19.2.3(react@19.2.3))(react@19.2.3): dependencies: '@ant-design/colors': 8.0.0 '@ant-design/cssinjs': 2.0.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -5127,7 +5129,7 @@ snapshots: '@ant-design/icons': 6.1.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@ant-design/react-slick': 2.0.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@babel/runtime': 7.28.4 - '@rc-component/cascader': 1.9.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@rc-component/cascader': 1.10.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/checkbox': 1.0.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/collapse': 1.1.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/color-picker': 3.0.3(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -5150,7 +5152,7 @@ snapshots: '@rc-component/rate': 1.0.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/resize-observer': 1.0.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/segmented': 1.3.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) - '@rc-component/select': 1.3.6(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@rc-component/select': 1.4.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/slider': 1.0.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/steps': 1.2.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/switch': 1.0.3(react-dom@19.2.3(react@19.2.3))(react@19.2.3) @@ -5160,7 +5162,7 @@ snapshots: '@rc-component/tooltip': 1.4.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/tour': 2.2.1(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/tree': 1.1.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) - '@rc-component/tree-select': 1.4.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) + '@rc-component/tree-select': 1.5.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/trigger': 3.7.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/upload': 1.1.0(react-dom@19.2.3(react@19.2.3))(react@19.2.3) '@rc-component/util': 1.6.2(react-dom@19.2.3(react@19.2.3))(react@19.2.3)