From b2ef5bff521b7a374253630536cd911d5e31d12b Mon Sep 17 00:00:00 2001 From: Hiveer Date: Thu, 3 Oct 2024 16:49:35 +0800 Subject: [PATCH 1/6] Fix logout bug (#696) --- frontend/src/packs/useFetchApi.js | 10 ++++++++++ 1 file changed, 10 insertions(+) diff --git a/frontend/src/packs/useFetchApi.js b/frontend/src/packs/useFetchApi.js index 47d045c93..6c8f70c17 100644 --- a/frontend/src/packs/useFetchApi.js +++ b/frontend/src/packs/useFetchApi.js @@ -21,6 +21,9 @@ const popupReloginDialog = () => { .catch(() => { window.location.href = "/logout" }) + .finally(() => { + clearCookies() + }) } const useFetchApi = createFetch({ @@ -58,4 +61,11 @@ const useFetchApi = createFetch({ } }) +const clearCookies = () => { + cookies.keys().forEach((cookie) => { + cookies.remove(cookie) + }) + window.location.href = '/' +} + export default useFetchApi From 5082e874fdd6eb6ffb034fda0ccf3b4b57754151 Mon Sep 17 00:00:00 2001 From: "Eric.Yu" <167662609+ericyd80@users.noreply.github.com> Date: Tue, 8 Oct 2024 09:08:32 +0800 Subject: [PATCH 2/6] Update README.md (#698) change type error from "CSGHhub" to "CSGHub" --- deploy/all_in_one/README.md | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/deploy/all_in_one/README.md b/deploy/all_in_one/README.md index 3e81fadb1..7dc947ac0 100644 --- a/deploy/all_in_one/README.md +++ b/deploy/all_in_one/README.md @@ -17,7 +17,7 @@ * registry **注意:** -1. CSGHhub v0.4.0支持了应用空间(即space)功能,v0.7.0支持了模型微调、推理等功能。而应用空间,模型微调以及推理等都需要Kubernetes以及其相关Knative组件的配置,基于compose部署不包括Kubernetes平台以及相关依赖Knative组件部署(这部分安装配置详见[Knative安装配置](https://opencsg.com/docs/csghub/101/helm/installation)),如果没有做对接Kubernetes平台,这里部署的CSGHub实例将`不包含应用空间,模型微调和推理`功能。 +1. CSGHub v0.4.0支持了应用空间(即space)功能,v0.7.0支持了模型微调、推理等功能。而应用空间,模型微调以及推理等都需要Kubernetes以及其相关Knative组件的配置,基于compose部署不包括Kubernetes平台以及相关依赖Knative组件部署(这部分安装配置详见[Knative安装配置](https://opencsg.com/docs/csghub/101/helm/installation)),如果没有做对接Kubernetes平台,这里部署的CSGHub实例将`不包含应用空间,模型微调和推理`功能。 1. 可以使用CSGHub的[helm chart](https://github.com/OpenCSGs/CSGHub-helm)来安装完整版CSGHub实例,具体安装步骤可参见[CSGHub Helm Chart安装文档](https://opencsg.com/docs/csghub/101/helm/summary) From 9119016867c4b13e000c053d4ed382b02deff86d Mon Sep 17 00:00:00 2001 From: "Zhendi.Wang" Date: Wed, 9 Oct 2024 16:21:58 +0800 Subject: [PATCH 3/6] update frontend packages (#700) --- frontend/package.json | 4 +- frontend/yarn.lock | 249 +++++++++++++++++++++++------------------- 2 files changed, 136 insertions(+), 117 deletions(-) diff --git a/frontend/package.json b/frontend/package.json index 0f097b4aa..6d1c2606c 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -40,7 +40,7 @@ "@vitejs/plugin-vue": "^5.1.2", "autoprefixer": "^10.4.20", "postcss": "^8.4.41", - "tailwindcss": "^3.4.10", - "vite": "^5.4.0" + "tailwindcss": "^3.4.13", + "vite": "^5.4.6" } } diff --git a/frontend/yarn.lock b/frontend/yarn.lock index 0754634eb..b824f5f76 100644 --- a/frontend/yarn.lock +++ b/frontend/yarn.lock @@ -380,90 +380,90 @@ resolved "https://registry.npmjs.org/@sxzz/popperjs-es/-/popperjs-es-2.11.7.tgz#a7f69e3665d3da9b115f9e71671dae1b97e13671" integrity sha512-Ccy0NlLkzr0Ex2FKvh2X+OyERHXJ88XJ1MXtsI9y9fGexlaXaVTPzBCRBwIxFkORuOb+uBqeu+RqnpgYTEZRUQ== -"@rollup/rollup-android-arm-eabi@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.20.0.tgz#c3f5660f67030c493a981ac1d34ee9dfe1d8ec0f" - integrity sha512-TSpWzflCc4VGAUJZlPpgAJE1+V60MePDQnBd7PPkpuEmOy8i87aL6tinFGKBFKuEDikYpig72QzdT3QPYIi+oA== - -"@rollup/rollup-android-arm64@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.20.0.tgz#64161f0b67050023a3859e723570af54a82cff5c" - integrity sha512-u00Ro/nok7oGzVuh/FMYfNoGqxU5CPWz1mxV85S2w9LxHR8OoMQBuSk+3BKVIDYgkpeOET5yXkx90OYFc+ytpQ== - -"@rollup/rollup-darwin-arm64@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.20.0.tgz#25f3d57b1da433097cfebc89341b355901615763" - integrity sha512-uFVfvzvsdGtlSLuL0ZlvPJvl6ZmrH4CBwLGEFPe7hUmf7htGAN+aXo43R/V6LATyxlKVC/m6UsLb7jbG+LG39Q== - -"@rollup/rollup-darwin-x64@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.20.0.tgz#d8ddaffb636cc2f59222c50316e27771e48966df" - integrity sha512-xbrMDdlev53vNXexEa6l0LffojxhqDTBeL+VUxuuIXys4x6xyvbKq5XqTXBCEUA8ty8iEJblHvFaWRJTk/icAQ== - -"@rollup/rollup-linux-arm-gnueabihf@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.20.0.tgz#41bd4fcffa20fb84f3dbac6c5071638f46151885" - integrity sha512-jMYvxZwGmoHFBTbr12Xc6wOdc2xA5tF5F2q6t7Rcfab68TT0n+r7dgawD4qhPEvasDsVpQi+MgDzj2faOLsZjA== - -"@rollup/rollup-linux-arm-musleabihf@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.20.0.tgz#842077c5113a747eb5686f19f2f18c33ecc0acc8" - integrity sha512-1asSTl4HKuIHIB1GcdFHNNZhxAYEdqML/MW4QmPS4G0ivbEcBr1JKlFLKsIRqjSwOBkdItn3/ZDlyvZ/N6KPlw== - -"@rollup/rollup-linux-arm64-gnu@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.20.0.tgz#65d1d5b6778848f55b7823958044bf3e8737e5b7" - integrity sha512-COBb8Bkx56KldOYJfMf6wKeYJrtJ9vEgBRAOkfw6Ens0tnmzPqvlpjZiLgkhg6cA3DGzCmLmmd319pmHvKWWlQ== - -"@rollup/rollup-linux-arm64-musl@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.20.0.tgz#50eef7d6e24d0fe3332200bb666cad2be8afcf86" - integrity sha512-+it+mBSyMslVQa8wSPvBx53fYuZK/oLTu5RJoXogjk6x7Q7sz1GNRsXWjn6SwyJm8E/oMjNVwPhmNdIjwP135Q== - -"@rollup/rollup-linux-powerpc64le-gnu@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.20.0.tgz#8837e858f53c84607f05ad0602943e96d104c6b4" - integrity sha512-yAMvqhPfGKsAxHN8I4+jE0CpLWD8cv4z7CK7BMmhjDuz606Q2tFKkWRY8bHR9JQXYcoLfopo5TTqzxgPUjUMfw== - -"@rollup/rollup-linux-riscv64-gnu@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.20.0.tgz#c894ade2300caa447757ddf45787cca246e816a4" - integrity sha512-qmuxFpfmi/2SUkAw95TtNq/w/I7Gpjurx609OOOV7U4vhvUhBcftcmXwl3rqAek+ADBwSjIC4IVNLiszoj3dPA== - -"@rollup/rollup-linux-s390x-gnu@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.20.0.tgz#5841e5390d4c82dd5cdf7b2c95a830e3c2f47dd3" - integrity sha512-I0BtGXddHSHjV1mqTNkgUZLnS3WtsqebAXv11D5BZE/gfw5KoyXSAXVqyJximQXNvNzUo4GKlCK/dIwXlz+jlg== - -"@rollup/rollup-linux-x64-gnu@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.20.0.tgz#cc1f26398bf777807a99226dc13f47eb0f6c720d" - integrity sha512-y+eoL2I3iphUg9tN9GB6ku1FA8kOfmF4oUEWhztDJ4KXJy1agk/9+pejOuZkNFhRwHAOxMsBPLbXPd6mJiCwew== - -"@rollup/rollup-linux-x64-musl@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.20.0.tgz#1507465d9056e0502a590d4c1a00b4d7b1fda370" - integrity sha512-hM3nhW40kBNYUkZb/r9k2FKK+/MnKglX7UYd4ZUy5DJs8/sMsIbqWK2piZtVGE3kcXVNj3B2IrUYROJMMCikNg== - -"@rollup/rollup-win32-arm64-msvc@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.20.0.tgz#86a221f01a2c248104dd0defb4da119f2a73642e" - integrity sha512-psegMvP+Ik/Bg7QRJbv8w8PAytPA7Uo8fpFjXyCRHWm6Nt42L+JtoqH8eDQ5hRP7/XW2UiIriy1Z46jf0Oa1kA== - -"@rollup/rollup-win32-ia32-msvc@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.20.0.tgz#8bc8f77e02760aa664694b4286d6fbea7f1331c5" - integrity sha512-GabekH3w4lgAJpVxkk7hUzUf2hICSQO0a/BLFA11/RMxQT92MabKAqyubzDZmMOC/hcJNlc+rrypzNzYl4Dx7A== - -"@rollup/rollup-win32-x64-msvc@4.20.0": - version "4.20.0" - resolved "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.20.0.tgz#601fffee719a1e8447f908aca97864eec23b2784" - integrity sha512-aJ1EJSuTdGnM6qbVC4B5DSmozPTqIag9fSzXRNNo+humQLG89XpPgdt16Ia56ORD7s+H8Pmyx44uczDQ0yDzpg== - -"@types/estree@1.0.5": - version "1.0.5" - resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.5.tgz#a6ce3e556e00fd9895dd872dd172ad0d4bd687f4" - integrity sha512-/kYRxGDLWzHOB7q+wtSUQlFrtcdUccpfy+X+9iMBpHK8QLLhx2wIPYuS5DYtR9Wa/YlZAbIovy7qVdB1Aq6Lyw== +"@rollup/rollup-android-arm-eabi@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-android-arm-eabi/-/rollup-android-arm-eabi-4.24.0.tgz#1661ff5ea9beb362795304cb916049aba7ac9c54" + integrity sha512-Q6HJd7Y6xdB48x8ZNVDOqsbh2uByBhgK8PiQgPhwkIw/HC/YX5Ghq2mQY5sRMZWHb3VsFkWooUVOZHKr7DmDIA== + +"@rollup/rollup-android-arm64@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-android-arm64/-/rollup-android-arm64-4.24.0.tgz#2ffaa91f1b55a0082b8a722525741aadcbd3971e" + integrity sha512-ijLnS1qFId8xhKjT81uBHuuJp2lU4x2yxa4ctFPtG+MqEE6+C5f/+X/bStmxapgmwLwiL3ih122xv8kVARNAZA== + +"@rollup/rollup-darwin-arm64@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-darwin-arm64/-/rollup-darwin-arm64-4.24.0.tgz#627007221b24b8cc3063703eee0b9177edf49c1f" + integrity sha512-bIv+X9xeSs1XCk6DVvkO+S/z8/2AMt/2lMqdQbMrmVpgFvXlmde9mLcbQpztXm1tajC3raFDqegsH18HQPMYtA== + +"@rollup/rollup-darwin-x64@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-darwin-x64/-/rollup-darwin-x64-4.24.0.tgz#0605506142b9e796c370d59c5984ae95b9758724" + integrity sha512-X6/nOwoFN7RT2svEQWUsW/5C/fYMBe4fnLK9DQk4SX4mgVBiTA9h64kjUYPvGQ0F/9xwJ5U5UfTbl6BEjaQdBQ== + +"@rollup/rollup-linux-arm-gnueabihf@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm-gnueabihf/-/rollup-linux-arm-gnueabihf-4.24.0.tgz#62dfd196d4b10c0c2db833897164d2d319ee0cbb" + integrity sha512-0KXvIJQMOImLCVCz9uvvdPgfyWo93aHHp8ui3FrtOP57svqrF/roSSR5pjqL2hcMp0ljeGlU4q9o/rQaAQ3AYA== + +"@rollup/rollup-linux-arm-musleabihf@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm-musleabihf/-/rollup-linux-arm-musleabihf-4.24.0.tgz#53ce72aeb982f1f34b58b380baafaf6a240fddb3" + integrity sha512-it2BW6kKFVh8xk/BnHfakEeoLPv8STIISekpoF+nBgWM4d55CZKc7T4Dx1pEbTnYm/xEKMgy1MNtYuoA8RFIWw== + +"@rollup/rollup-linux-arm64-gnu@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm64-gnu/-/rollup-linux-arm64-gnu-4.24.0.tgz#1632990f62a75c74f43e4b14ab3597d7ed416496" + integrity sha512-i0xTLXjqap2eRfulFVlSnM5dEbTVque/3Pi4g2y7cxrs7+a9De42z4XxKLYJ7+OhE3IgxvfQM7vQc43bwTgPwA== + +"@rollup/rollup-linux-arm64-musl@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-arm64-musl/-/rollup-linux-arm64-musl-4.24.0.tgz#8c03a996efb41e257b414b2e0560b7a21f2d9065" + integrity sha512-9E6MKUJhDuDh604Qco5yP/3qn3y7SLXYuiC0Rpr89aMScS2UAmK1wHP2b7KAa1nSjWJc/f/Lc0Wl1L47qjiyQw== + +"@rollup/rollup-linux-powerpc64le-gnu@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-powerpc64le-gnu/-/rollup-linux-powerpc64le-gnu-4.24.0.tgz#5b98729628d5bcc8f7f37b58b04d6845f85c7b5d" + integrity sha512-2XFFPJ2XMEiF5Zi2EBf4h73oR1V/lycirxZxHZNc93SqDN/IWhYYSYj8I9381ikUFXZrz2v7r2tOVk2NBwxrWw== + +"@rollup/rollup-linux-riscv64-gnu@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-riscv64-gnu/-/rollup-linux-riscv64-gnu-4.24.0.tgz#48e42e41f4cabf3573cfefcb448599c512e22983" + integrity sha512-M3Dg4hlwuntUCdzU7KjYqbbd+BLq3JMAOhCKdBE3TcMGMZbKkDdJ5ivNdehOssMCIokNHFOsv7DO4rlEOfyKpg== + +"@rollup/rollup-linux-s390x-gnu@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-s390x-gnu/-/rollup-linux-s390x-gnu-4.24.0.tgz#e0b4f9a966872cb7d3e21b9e412a4b7efd7f0b58" + integrity sha512-mjBaoo4ocxJppTorZVKWFpy1bfFj9FeCMJqzlMQGjpNPY9JwQi7OuS1axzNIk0nMX6jSgy6ZURDZ2w0QW6D56g== + +"@rollup/rollup-linux-x64-gnu@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-gnu/-/rollup-linux-x64-gnu-4.24.0.tgz#78144741993100f47bd3da72fce215e077ae036b" + integrity sha512-ZXFk7M72R0YYFN5q13niV0B7G8/5dcQ9JDp8keJSfr3GoZeXEoMHP/HlvqROA3OMbMdfr19IjCeNAnPUG93b6A== + +"@rollup/rollup-linux-x64-musl@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-linux-x64-musl/-/rollup-linux-x64-musl-4.24.0.tgz#d9fe32971883cd1bd858336bd33a1c3ca6146127" + integrity sha512-w1i+L7kAXZNdYl+vFvzSZy8Y1arS7vMgIy8wusXJzRrPyof5LAb02KGr1PD2EkRcl73kHulIID0M501lN+vobQ== + +"@rollup/rollup-win32-arm64-msvc@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-win32-arm64-msvc/-/rollup-win32-arm64-msvc-4.24.0.tgz#71fa3ea369316db703a909c790743972e98afae5" + integrity sha512-VXBrnPWgBpVDCVY6XF3LEW0pOU51KbaHhccHw6AS6vBWIC60eqsH19DAeeObl+g8nKAz04QFdl/Cefta0xQtUQ== + +"@rollup/rollup-win32-ia32-msvc@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-win32-ia32-msvc/-/rollup-win32-ia32-msvc-4.24.0.tgz#653f5989a60658e17d7576a3996deb3902e342e2" + integrity sha512-xrNcGDU0OxVcPTH/8n/ShH4UevZxKIO6HJFK0e15XItZP2UcaiLFd5kiX7hJnqCbSztUF8Qot+JWBC/QXRPYWQ== + +"@rollup/rollup-win32-x64-msvc@4.24.0": + version "4.24.0" + resolved "https://registry.npmjs.org/@rollup/rollup-win32-x64-msvc/-/rollup-win32-x64-msvc-4.24.0.tgz#0574d7e87b44ee8511d08cc7f914bcb802b70818" + integrity sha512-fbMkAF7fufku0N2dE5TBXcNlg0pt0cJue4xBRE2Qc5Vqikxr4VCgKj/ht6SMdFcOacVA9rqF70APJ8RN/4vMJw== + +"@types/estree@1.0.6": + version "1.0.6" + resolved "https://registry.npmjs.org/@types/estree/-/estree-1.0.6.tgz#628effeeae2064a1b4e79f78e81d87b7e5fc7b50" + integrity sha512-AYnb1nQyY49te+VRAVgmzfcgjYS91mY5P0TKUDCLEM+gNnA+3T6rWITXRLYCpahpqSQbN5cE+gHpnPyXjHWxcw== "@types/lodash-es@^4.17.6": version "4.17.12" @@ -1463,6 +1463,11 @@ picocolors@^1.0.0, picocolors@^1.0.1: resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.0.1.tgz#a8ad579b571952f0e5d25892de5445bcfe25aaa1" integrity sha512-anP1Z8qwhkbmu7MFP5iTt+wQKXgwzf7zTyGlcdzabySa9vd0Xt392U0rVmz9poOaBj0uHJKyyo9/upk0HrEQew== +picocolors@^1.1.0: + version "1.1.0" + resolved "https://registry.npmjs.org/picocolors/-/picocolors-1.1.0.tgz#5358b76a78cde483ba5cef6a9dc9671440b27d59" + integrity sha512-TQ92mBOW0l3LeMeyLV6mzy/kWr8lkd/hp3mTg7wYK7zJhuBStmGMBG0BdeDZS/dZx1IukaX6Bk11zcln25o1Aw== + picomatch@^2.0.4, picomatch@^2.2.1, picomatch@^2.3.1: version "2.3.1" resolved "https://registry.npmjs.org/picomatch/-/picomatch-2.3.1.tgz#3ba3833733646d9d3e4995946c1365a67fb07a42" @@ -1544,6 +1549,15 @@ postcss@^8.4.23, postcss@^8.4.40, postcss@^8.4.41: picocolors "^1.0.1" source-map-js "^1.2.0" +postcss@^8.4.43: + version "8.4.47" + resolved "https://registry.npmjs.org/postcss/-/postcss-8.4.47.tgz#5bf6c9a010f3e724c503bf03ef7947dcb0fea365" + integrity sha512-56rxCq7G/XfB4EkXq9Egn5GCqugWvDFjafDOThIdMBsI15iqPqR5r15TfSr1YPYeEI19YeaXMCbY6u88Y76GLQ== + dependencies: + nanoid "^3.3.7" + picocolors "^1.1.0" + source-map-js "^1.2.1" + prr@~1.0.1: version "1.0.1" resolved "https://registry.npmjs.org/prr/-/prr-1.0.1.tgz#d3fc114ba06995a45ec6893f484ceb1d78f5f476" @@ -1587,29 +1601,29 @@ reusify@^1.0.4: resolved "https://registry.npmjs.org/reusify/-/reusify-1.0.4.tgz#90da382b1e126efc02146e90845a88db12925d76" integrity sha512-U9nH88a3fc/ekCF1l0/UP1IosiuIjyTh7hBvXVMHYgVcfGvt897Xguj2UOLDeI5BG2m7/uwyaLVT6fbtCwTyzw== -rollup@^4.13.0: - version "4.20.0" - resolved "https://registry.npmjs.org/rollup/-/rollup-4.20.0.tgz#f9d602161d29e178f0bf1d9f35f0a26f83939492" - integrity sha512-6rbWBChcnSGzIlXeIdNIZTopKYad8ZG8ajhl78lGRLsI2rX8IkaotQhVas2Ma+GPxJav19wrSzvRvuiv0YKzWw== +rollup@^4.20.0: + version "4.24.0" + resolved "https://registry.npmjs.org/rollup/-/rollup-4.24.0.tgz#c14a3576f20622ea6a5c9cad7caca5e6e9555d05" + integrity sha512-DOmrlGSXNk1DM0ljiQA+i+o0rSLhtii1je5wgk60j49d1jHT5YYttBv1iWOnYSTG+fZZESUOSNiAl89SIet+Cg== dependencies: - "@types/estree" "1.0.5" + "@types/estree" "1.0.6" optionalDependencies: - "@rollup/rollup-android-arm-eabi" "4.20.0" - "@rollup/rollup-android-arm64" "4.20.0" - "@rollup/rollup-darwin-arm64" "4.20.0" - "@rollup/rollup-darwin-x64" "4.20.0" - "@rollup/rollup-linux-arm-gnueabihf" "4.20.0" - "@rollup/rollup-linux-arm-musleabihf" "4.20.0" - "@rollup/rollup-linux-arm64-gnu" "4.20.0" - "@rollup/rollup-linux-arm64-musl" "4.20.0" - "@rollup/rollup-linux-powerpc64le-gnu" "4.20.0" - "@rollup/rollup-linux-riscv64-gnu" "4.20.0" - "@rollup/rollup-linux-s390x-gnu" "4.20.0" - "@rollup/rollup-linux-x64-gnu" "4.20.0" - "@rollup/rollup-linux-x64-musl" "4.20.0" - "@rollup/rollup-win32-arm64-msvc" "4.20.0" - "@rollup/rollup-win32-ia32-msvc" "4.20.0" - "@rollup/rollup-win32-x64-msvc" "4.20.0" + "@rollup/rollup-android-arm-eabi" "4.24.0" + "@rollup/rollup-android-arm64" "4.24.0" + "@rollup/rollup-darwin-arm64" "4.24.0" + "@rollup/rollup-darwin-x64" "4.24.0" + "@rollup/rollup-linux-arm-gnueabihf" "4.24.0" + "@rollup/rollup-linux-arm-musleabihf" "4.24.0" + "@rollup/rollup-linux-arm64-gnu" "4.24.0" + "@rollup/rollup-linux-arm64-musl" "4.24.0" + "@rollup/rollup-linux-powerpc64le-gnu" "4.24.0" + "@rollup/rollup-linux-riscv64-gnu" "4.24.0" + "@rollup/rollup-linux-s390x-gnu" "4.24.0" + "@rollup/rollup-linux-x64-gnu" "4.24.0" + "@rollup/rollup-linux-x64-musl" "4.24.0" + "@rollup/rollup-win32-arm64-msvc" "4.24.0" + "@rollup/rollup-win32-ia32-msvc" "4.24.0" + "@rollup/rollup-win32-x64-msvc" "4.24.0" fsevents "~2.3.2" run-parallel@^1.1.9: @@ -1656,6 +1670,11 @@ source-map-js@^1.0.2, source-map-js@^1.2.0: resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.0.tgz#16b809c162517b5b8c3e7dcd315a2a5c2612b2af" integrity sha512-itJW8lvSA0TXEphiRoawsCksnlf8SyvmFzIhltqAHluXd88pkCd+cXJVHTDwdCr0IzwptSm035IHQktUu1QUMg== +source-map-js@^1.2.1: + version "1.2.1" + resolved "https://registry.npmjs.org/source-map-js/-/source-map-js-1.2.1.tgz#1ce5650fddd87abc099eda37dcff024c2667ae46" + integrity sha512-UXWMKhLOwVKb728IUtQPXxfYU+usdybtUrK/8uGE8CQMvrhOpwvzDBwj0QhSL7MQc7vIsISBG8VQ8+IDQxpfQA== + source-map-support@~0.5.20: version "0.5.21" resolved "https://mirrors.huaweicloud.com/repository/npm/source-map-support/-/source-map-support-0.5.21.tgz#04fe7c7f9e1ed2d662233c28cb2b35b9f63f6e4f" @@ -1726,10 +1745,10 @@ supports-preserve-symlinks-flag@^1.0.0: resolved "https://registry.npmjs.org/supports-preserve-symlinks-flag/-/supports-preserve-symlinks-flag-1.0.0.tgz#6eda4bd344a3c94aea376d4cc31bc77311039e09" integrity sha512-ot0WnXS9fgdkgIcePe6RHNk1WA8+muPa6cSjeR3V8K27q9BB1rTE3R1p7Hv0z1ZyAc8s6Vvv8DIyWf681MAt0w== -tailwindcss@^3.4.10: - version "3.4.10" - resolved "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.10.tgz#70442d9aeb78758d1f911af29af8255ecdb8ffef" - integrity sha512-KWZkVPm7yJRhdu4SRSl9d4AK2wM3a50UsvgHZO7xY77NQr2V+fIrEuoDGQcbvswWvFGbS2f6e+jC/6WJm1Dl0w== +tailwindcss@^3.4.13: + version "3.4.13" + resolved "https://registry.npmjs.org/tailwindcss/-/tailwindcss-3.4.13.tgz#3d11e5510660f99df4f1bfb2d78434666cb8f831" + integrity sha512-KqjHOJKogOUt5Bs752ykCeiwvi0fKVkr5oqsFNt/8px/tA8scFPIlkygsf6jXrfCqGHz7VflA6+yytWuM+XhFw== dependencies: "@alloc/quick-lru" "^5.2.0" arg "^5.0.2" @@ -1840,14 +1859,14 @@ uuid@^10.0.0: resolved "https://registry.npmjs.org/uuid/-/uuid-10.0.0.tgz#5a95aa454e6e002725c79055fd42aaba30ca6294" integrity sha512-8XkAphELsDnEGrDxUOHB3RGvXz6TeuYSGEZBOjtTtPm2lwhGBjLgOzLHB63IUWfBpNucQjND6d3AOudO+H3RWQ== -vite@^5.4.0: - version "5.4.0" - resolved "https://registry.npmjs.org/vite/-/vite-5.4.0.tgz#11dca8a961369ba8b5cae42d068c7ad684d5370f" - integrity sha512-5xokfMX0PIiwCMCMb9ZJcMyh5wbBun0zUzKib+L65vAZ8GY9ePZMXxFrHbr/Kyll2+LSCY7xtERPpxkBDKngwg== +vite@^5.4.6: + version "5.4.8" + resolved "https://registry.npmjs.org/vite/-/vite-5.4.8.tgz#af548ce1c211b2785478d3ba3e8da51e39a287e8" + integrity sha512-FqrItQ4DT1NC4zCUqMB4c4AZORMKIa0m8/URVCZ77OZ/QSNeJ54bU1vrFADbDsuwfIPcgknRkmqakQcgnL4GiQ== dependencies: esbuild "^0.21.3" - postcss "^8.4.40" - rollup "^4.13.0" + postcss "^8.4.43" + rollup "^4.20.0" optionalDependencies: fsevents "~2.3.3" From 3543dbcf73a6bfcf66f7ccc274ea666bdf6db481 Mon Sep 17 00:00:00 2001 From: "Zhendi.Wang" Date: Wed, 9 Oct 2024 16:22:27 +0800 Subject: [PATCH 4/6] update setup doc (#697) --- docs/setup.md | 2 +- docs/setup_en.md | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/setup.md b/docs/setup.md index 5f4d8ec35..8eb857c63 100644 --- a/docs/setup.md +++ b/docs/setup.md @@ -117,7 +117,7 @@ go mod tidy Air 是一个允许 Go 应用程序实时重载的工具。使用以下命令安装: ```shell -go install github.com/cosmtrek/air@latest +go install github.com/air-verse/air@latest ``` ### 获取前端依赖项 diff --git a/docs/setup_en.md b/docs/setup_en.md index a009145b4..f72a91953 100644 --- a/docs/setup_en.md +++ b/docs/setup_en.md @@ -121,7 +121,7 @@ go mod tidy Air is a tool that allows live reloading of Go applications. Install it using the following command: ```shell -go install github.com/cosmtrek/air@latest +go install github.com/air-verse/air@latest ``` ### Getting Frontend Dependencies From e5529cd547fb00c7a580e5119a09940b582b33af Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E7=94=B3=E6=B0=B8=E8=8C=83?= Date: Wed, 9 Oct 2024 17:00:04 +0800 Subject: [PATCH 5/6] Csghub replace color design token (#702) * add color extent to tailwind config, and replace gray/brancd/error color with design tokens * update success & error & warning color * replace rest color into color tokens * remove empty line --- .../stylesheets/element-plus/_variables.css | 2 +- frontend/src/components/OnPremiseFooter.vue | 4 +- .../application_spaces/AppPayMode.vue | 2 +- .../ApplicationSpaceDetail.vue | 6 +- .../ApplicationSpaceItem.vue | 10 +-- .../ApplicationSpaceSettings.vue | 62 +++++++-------- .../application_spaces/BuildAndErrorPage.vue | 6 +- .../application_spaces/BuildStatus.vue | 4 +- .../application_spaces/ErrorStatus.vue | 4 +- .../GradioInitializeGuide.vue | 20 ++--- .../NewApplicationSpace.vue | 16 ++-- .../application_spaces/SpaceRelationsCard.vue | 8 +- .../application_spaces/StoppedPage.vue | 8 +- .../StreamlitInitializeGuide.vue | 20 ++--- .../application_spaces/SuccessStatus.vue | 4 +- .../application_spaces/WarningStatus.vue | 4 +- .../components/codes/CodeRelationsCard.vue | 6 +- .../src/components/codes/CodeSettings.vue | 42 +++++----- frontend/src/components/codes/NewCode.vue | 8 +- .../collections/AddToCollections.vue | 10 +-- .../collections/CollectionCards.vue | 6 +- .../collections/CollectionIndex.vue | 12 +-- .../collections/CollectionsAddRepo.vue | 12 +-- .../collections/CollectionsDetail.vue | 6 +- .../collections/CollectionsRepoList.vue | 16 ++-- .../collections/CollectionsSettings.vue | 42 +++++----- .../components/collections/NewCollection.vue | 18 ++--- .../src/components/comment/CommentItem.vue | 10 +-- .../src/components/comment/CreateComment.vue | 8 +- .../community/CommunityMDTextarea.vue | 6 +- .../community/CommunityTimeLine.vue | 4 +- .../components/community/DiscussionCard.vue | 10 +-- .../components/community/DiscussionCards.vue | 4 +- .../community/DiscussionDetails.vue | 12 +-- .../components/community/EmptyCommunity.vue | 8 +- .../community/NewCommunityDiscussion.vue | 2 +- .../datasets/DatasetRelationsCard.vue | 6 +- .../components/datasets/DatasetSettings.vue | 54 ++++++------- .../src/components/datasets/NewDataset.vue | 8 +- .../src/components/datasets/ParquetViewer.vue | 10 +-- .../components/endpoints/EndpointDetail.vue | 2 +- .../src/components/endpoints/EndpointItem.vue | 10 +-- .../src/components/endpoints/EndpointPage.vue | 36 ++++----- .../endpoints/EndpointPlayground.vue | 28 +++---- .../components/endpoints/EndpointSettings.vue | 48 ++++++------ .../src/components/endpoints/NewEndpoint.vue | 10 +-- .../endpoints/playground/ApiExample.vue | 26 +++---- .../endpoints/playground/TestEndpoint.vue | 20 ++--- frontend/src/components/error/LoginFailed.vue | 4 +- .../src/components/error/Unauthorized.vue | 2 +- .../components/finetune/FinetuneDetail.vue | 12 +-- .../components/finetune/FinetuneSettings.vue | 48 ++++++------ .../src/components/finetune/NewFinetune.vue | 14 ++-- .../src/components/form/sub/FormLabel.vue | 2 +- .../components/models/ModelRelationsCard.vue | 6 +- .../src/components/models/ModelSettings.vue | 54 ++++++------- frontend/src/components/models/NewModel.vue | 8 +- .../models/widgets/QuestionAnswer.vue | 14 ++-- frontend/src/components/navbar/TheNavbar.vue | 2 +- .../src/components/new_admin/AdminNavbar.vue | 6 +- .../system_configs/AdminSystemConfig.vue | 2 +- .../components/organizations/InviteMember.vue | 10 +-- .../src/components/organizations/Menu.vue | 12 +-- .../organizations/NewOrganization.vue | 10 +-- .../organizations/OrgMemberRoleEditDialog.vue | 6 +- .../organizations/OrganizationDetail.vue | 32 ++++---- .../organizations/OrganizationEdit.vue | 4 +- .../organizations/OrganizationMembers.vue | 24 +++--- .../src/components/popup/UpdateUsername.vue | 2 +- .../resource_console/ResourceConsoleIndex.vue | 6 +- .../src/components/shared/BillingDetail.vue | 16 ++-- frontend/src/components/shared/Blob.vue | 28 +++---- frontend/src/components/shared/EditFile.vue | 8 +- frontend/src/components/shared/FileList.vue | 30 ++++---- .../src/components/shared/FinetuneItem.vue | 6 +- frontend/src/components/shared/HeaderTags.vue | 24 +++--- frontend/src/components/shared/MoreTags.vue | 2 +- frontend/src/components/shared/NewFile.vue | 8 +- .../src/components/shared/ProfileRepoList.vue | 10 +-- frontend/src/components/shared/RepoCards.vue | 4 +- frontend/src/components/shared/RepoClone.vue | 34 ++++---- frontend/src/components/shared/RepoCommit.vue | 8 +- .../src/components/shared/RepoCommits.vue | 10 +-- frontend/src/components/shared/RepoDetail.vue | 2 +- frontend/src/components/shared/RepoHeader.vue | 32 ++++---- frontend/src/components/shared/RepoItem.vue | 8 +- .../src/components/shared/RepoSummary.vue | 8 +- frontend/src/components/shared/UploadFile.vue | 6 +- frontend/src/components/shared/ViewMore.vue | 2 +- .../form/PublicAndPrivateRadioGroup.vue | 4 +- .../shared/viewers/MarkdownViewer.vue | 2 +- frontend/src/components/tags/TagItem.vue | 4 +- frontend/src/components/tags/TagSidebar.vue | 24 +++--- .../user_settings/AccessTokenSettings.vue | 10 +-- .../src/components/user_settings/Menu.vue | 20 ++--- .../src/components/user_settings/Profile.vue | 18 ++--- .../components/user_settings/ProfileEdit.vue | 6 +- .../components/user_settings/SshKeyCard.vue | 6 +- .../user_settings/SshKeySettings.vue | 10 +-- .../user_settings/StarshipAccessTokenCard.vue | 6 +- .../StarshipAccessTokenSettings.vue | 6 +- .../user_settings/SyncAccessTokenSettings.vue | 10 +-- frontend/src/views/layouts/navbar.html | 2 +- frontend/tailwind.config.js | 77 ++++++++++++++++++- 104 files changed, 744 insertions(+), 667 deletions(-) diff --git a/frontend/src/assets/stylesheets/element-plus/_variables.css b/frontend/src/assets/stylesheets/element-plus/_variables.css index f1f4456b7..179d4643e 100644 --- a/frontend/src/assets/stylesheets/element-plus/_variables.css +++ b/frontend/src/assets/stylesheets/element-plus/_variables.css @@ -1,5 +1,5 @@ :root { - --Base-White: #FFF; + --Base-White: #FFFFFF; --Gray-25: #FCFCFD; --Gray-50: #F9FAFB; diff --git a/frontend/src/components/OnPremiseFooter.vue b/frontend/src/components/OnPremiseFooter.vue index ea8105914..072b702fe 100644 --- a/frontend/src/components/OnPremiseFooter.vue +++ b/frontend/src/components/OnPremiseFooter.vue @@ -1,7 +1,7 @@ diff --git a/frontend/src/components/application_spaces/ApplicationSpaceDetail.vue b/frontend/src/components/application_spaces/ApplicationSpaceDetail.vue index f4733b227..1cb039011 100644 --- a/frontend/src/components/application_spaces/ApplicationSpaceDetail.vue +++ b/frontend/src/components/application_spaces/ApplicationSpaceDetail.vue @@ -1,5 +1,5 @@