From 13bd0c37d87461efe7ea3a85108e3bde26b3b03c Mon Sep 17 00:00:00 2001 From: gary Date: Mon, 12 Aug 2024 20:07:36 +0800 Subject: [PATCH 1/3] fix(frontend): add opendatalab links * chore(release): 1.3.4-alpha.8 [skip ci] ## @labelu/video-annotator-react [1.3.4-alpha.8](https://github.com/opendatalab/labelU-Kit/compare/@labelu/video-annotator-react@1.3.4-alpha.7...@labelu/video-annotator-react@1.3.4-alpha.8) (2024-04-23) ### Dependencies * **@labelu/audio-annotator-react:** upgraded to 1.5.1-alpha.1 * chore(release): 1.5.1-alpha.1 [skip ci] ## [1.5.1-alpha.1](https://github.com/opendatalab/labelU-Kit/compare/@labelu/audio-annotator-react@1.5.0...@labelu/audio-annotator-react@1.5.1-alpha.1) (2024-04-23) ### Bug Fixes * **audio-annotator-react:** fix types ([d2941dd](https://github.com/opendatalab/labelU-Kit/commit/d2941dd483505b5387da2b577cd71246ba57f84f)) * **audio-annotator-react:** reset player on media loaded ([eda05d7](https://github.com/opendatalab/labelU-Kit/commit/eda05d7749ee44d9f20512ec6107d46b5e14b17a)) * **components-react:** dont set nagative duration ([71e8d83](https://github.com/opendatalab/labelU-Kit/commit/71e8d8341bc9a3b3ccf3351ddc964c01e5acba26)) * **components-react:** fix negative duration ([d2a2293](https://github.com/opendatalab/labelU-Kit/commit/d2a2293c787b8709156671261d9b42e73a7fb4da)) * **components-react:** fix negative duration ([db4743b](https://github.com/opendatalab/labelU-Kit/commit/db4743bfe9827fbd713fbd77689e2feda2cdb19d)) * **components-react:** reset current time ([cb5fedf](https://github.com/opendatalab/labelU-Kit/commit/cb5fedfbf3691e3f9420c29603448c0e0428ad05)) * **frontend:** add inner id and updated_at sorter ([516bfc2](https://github.com/opendatalab/labelU-Kit/commit/516bfc244397749fb3d19bcb5054d87c6ba38df8)) * **frontend:** refetch next 40 samples ([1035e1b](https://github.com/opendatalab/labelU-Kit/commit/1035e1bf3d25a79b691420d4a080052a03fade0e)) * **frontend:** save data after skipping ([743cfb7](https://github.com/opendatalab/labelU-Kit/commit/743cfb7f6a4cc6eb646f07caa6a31884b3d21340)) * **frontend:** set default page size to 10 ([769ff79](https://github.com/opendatalab/labelU-Kit/commit/769ff79f1ca2971c8f319847484f2585d7c9edac)) * **frontend:** update backend build time in version info ([fc0b099](https://github.com/opendatalab/labelU-Kit/commit/fc0b099b7f9b791f596cb5c4bb6ea69557e82856)) * **frontend:** version error ([d53a373](https://github.com/opendatalab/labelU-Kit/commit/d53a373ab502d7f8140bcef79b6f1a9415926dd3)) * **frontend:** version error ([ed0d7f4](https://github.com/opendatalab/labelU-Kit/commit/ed0d7f4dd95ba7cb2a051eceb9cf7c8ebf5fe780)) * **frontend:** video card padding ([295128c](https://github.com/opendatalab/labelU-Kit/commit/295128cc5fb1a78b5b126a52442274e8cc7bc849)) ### Features * **frontend:** add app version info on task page ([0738d00](https://github.com/opendatalab/labelU-Kit/commit/0738d00aaca026e59a100445c34fd1709fabc6e7)) * chore(workspace): revert conflict * chore(workspace): revert conflict * fix(frontend): update deps * fix(video-annotator-react): update deps * chore(release): 1.3.4-alpha.9 [skip ci] ## @labelu/video-annotator-react [1.3.4-alpha.9](https://github.com/opendatalab/labelU-Kit/compare/@labelu/video-annotator-react@1.3.4-alpha.8...@labelu/video-annotator-react@1.3.4-alpha.9) (2024-04-23) ### Bug Fixes * **video-annotator-react:** update deps ([4162176](https://github.com/opendatalab/labelU-Kit/commit/41621761a47ba919b286c92358c012ec5f9ae85b)) * feat(frontend): add opendatalab links * fix(video-annotator-react): update deps * chore(release): 1.3.4-alpha.10 [skip ci] ## @labelu/video-annotator-react [1.3.4-alpha.10](https://github.com/opendatalab/labelU-Kit/compare/@labelu/video-annotator-react@1.3.4-alpha.9...@labelu/video-annotator-react@1.3.4-alpha.10) (2024-08-12) ### Bug Fixes * **video-annotator-react:** update deps ([81266ce](https://github.com/opendatalab/labelU-Kit/commit/81266ce8c5d1f401f56f54d1a120e8633e091388)) * fix(video-annotator-react): update deps * fix(video-annotator-react): update deps * fix(audio-annotator-react): update deps * fix(audio-react): update deps * fix(components-react): update deps * fix(image-annotator-react): update deps * fix(video-annotator-react): update deps * fix(video-react): update deps * fix(frontend): update deps * chore(release): 1.4.3-alpha.1 [skip ci] ## @labelu/components-react [1.4.3-alpha.1](https://github.com/opendatalab/labelU-Kit/compare/@labelu/components-react@1.4.2...@labelu/components-react@1.4.3-alpha.1) (2024-08-12) ### Bug Fixes * **components-react:** update deps ([62cf98e](https://github.com/opendatalab/labelU-Kit/commit/62cf98ef3a4fea6c745531d3cb4aa0de49adff58)) * chore(release): 1.5.3-alpha.1 [skip ci] ## [1.5.3-alpha.1](https://github.com/opendatalab/labelU-Kit/compare/@labelu/audio-annotator-react@1.5.2...@labelu/audio-annotator-react@1.5.3-alpha.1) (2024-08-12) ### Bug Fixes * **audio-annotator-react:** update deps ([113a0e0](https://github.com/opendatalab/labelU-Kit/commit/113a0e02d3932fa4a3364c28c7bf87201d530e37)) * **audio-react:** update deps ([11bb776](https://github.com/opendatalab/labelU-Kit/commit/11bb7766d9bf42690e15ea1f1f8613e3ad688ccc)) * **components-react:** update deps ([62cf98e](https://github.com/opendatalab/labelU-Kit/commit/62cf98ef3a4fea6c745531d3cb4aa0de49adff58)) * **frontend:** correct deps ([ce7a558](https://github.com/opendatalab/labelU-Kit/commit/ce7a558f2a5c8ddf27962db99bac1e8d00f770e7)) * **frontend:** update deps ([74473a6](https://github.com/opendatalab/labelU-Kit/commit/74473a615ca532661a6a2ce3770842d0e0a010bc)) * **frontend:** update deps ([7cd067a](https://github.com/opendatalab/labelU-Kit/commit/7cd067a0040bf680c904f7269648b77b947317db)) * **frontend:** update deps ([b1506a9](https://github.com/opendatalab/labelU-Kit/commit/b1506a915379d03f69d8c410462e296cb7774ce9)) * **image-annotator-react:** update deps ([595888f](https://github.com/opendatalab/labelU-Kit/commit/595888f61289d0bf2fd00280878fda3845c345f3)) * **video-annotator-react:** update deps ([3f8f627](https://github.com/opendatalab/labelU-Kit/commit/3f8f627eb0be6fd5430159ec2dc6e9b162b42fec)) * **video-annotator-react:** update deps ([ec5d97b](https://github.com/opendatalab/labelU-Kit/commit/ec5d97b640fad8da1dccc3487891446fa13ed4e7)) * **video-annotator-react:** update deps ([51e33f7](https://github.com/opendatalab/labelU-Kit/commit/51e33f720c59124034c199faca0942964a45905e)) * **video-annotator-react:** update deps ([81266ce](https://github.com/opendatalab/labelU-Kit/commit/81266ce8c5d1f401f56f54d1a120e8633e091388)) * **video-annotator-react:** update deps ([4162176](https://github.com/opendatalab/labelU-Kit/commit/41621761a47ba919b286c92358c012ec5f9ae85b)) * **video-react:** update deps ([028192f](https://github.com/opendatalab/labelU-Kit/commit/028192fda432ca110e092aee99b0e86ed37be5fd)) * **workspace:** update @semantic-release/github ([94def54](https://github.com/opendatalab/labelU-Kit/commit/94def540f0edfe88eab08f9a1bf7ee3e708596ea)) ### Features * **frontend:** add opendatalab links ([1fe2604](https://github.com/opendatalab/labelU-Kit/commit/1fe260424a40d273808ddfb70c91f36ae9c8701f)) * chore(release): 1.3.4-alpha.1 [skip ci] ## [1.3.4-alpha.1](https://github.com/opendatalab/labelU-Kit/compare/@labelu/audio-react@1.3.3...@labelu/audio-react@1.3.4-alpha.1) (2024-08-12) ### Bug Fixes * **audio-annotator-react:** update deps ([113a0e0](https://github.com/opendatalab/labelU-Kit/commit/113a0e02d3932fa4a3364c28c7bf87201d530e37)) * **audio-react:** update deps ([11bb776](https://github.com/opendatalab/labelU-Kit/commit/11bb7766d9bf42690e15ea1f1f8613e3ad688ccc)) * **components-react:** update deps ([62cf98e](https://github.com/opendatalab/labelU-Kit/commit/62cf98ef3a4fea6c745531d3cb4aa0de49adff58)) * **frontend:** correct deps ([ce7a558](https://github.com/opendatalab/labelU-Kit/commit/ce7a558f2a5c8ddf27962db99bac1e8d00f770e7)) * **frontend:** update deps ([74473a6](https://github.com/opendatalab/labelU-Kit/commit/74473a615ca532661a6a2ce3770842d0e0a010bc)) * **frontend:** update deps ([7cd067a](https://github.com/opendatalab/labelU-Kit/commit/7cd067a0040bf680c904f7269648b77b947317db)) * **frontend:** update deps ([b1506a9](https://github.com/opendatalab/labelU-Kit/commit/b1506a915379d03f69d8c410462e296cb7774ce9)) * **image-annotator-react:** update deps ([595888f](https://github.com/opendatalab/labelU-Kit/commit/595888f61289d0bf2fd00280878fda3845c345f3)) * **video-annotator-react:** update deps ([3f8f627](https://github.com/opendatalab/labelU-Kit/commit/3f8f627eb0be6fd5430159ec2dc6e9b162b42fec)) * **video-annotator-react:** update deps ([ec5d97b](https://github.com/opendatalab/labelU-Kit/commit/ec5d97b640fad8da1dccc3487891446fa13ed4e7)) * **video-annotator-react:** update deps ([51e33f7](https://github.com/opendatalab/labelU-Kit/commit/51e33f720c59124034c199faca0942964a45905e)) * **video-annotator-react:** update deps ([81266ce](https://github.com/opendatalab/labelU-Kit/commit/81266ce8c5d1f401f56f54d1a120e8633e091388)) * **video-annotator-react:** update deps ([4162176](https://github.com/opendatalab/labelU-Kit/commit/41621761a47ba919b286c92358c012ec5f9ae85b)) * **video-react:** update deps ([028192f](https://github.com/opendatalab/labelU-Kit/commit/028192fda432ca110e092aee99b0e86ed37be5fd)) * **workspace:** update @semantic-release/github ([94def54](https://github.com/opendatalab/labelU-Kit/commit/94def540f0edfe88eab08f9a1bf7ee3e708596ea)) ### Features * **frontend:** add opendatalab links ([1fe2604](https://github.com/opendatalab/labelU-Kit/commit/1fe260424a40d273808ddfb70c91f36ae9c8701f)) * chore(release): 2.1.2-alpha.1 [skip ci] ## [2.1.2-alpha.1](https://github.com/opendatalab/labelU-Kit/compare/@labelu/image-annotator-react@2.1.1...@labelu/image-annotator-react@2.1.2-alpha.1) (2024-08-12) ### Bug Fixes * **audio-annotator-react:** update deps ([113a0e0](https://github.com/opendatalab/labelU-Kit/commit/113a0e02d3932fa4a3364c28c7bf87201d530e37)) * **audio-react:** update deps ([11bb776](https://github.com/opendatalab/labelU-Kit/commit/11bb7766d9bf42690e15ea1f1f8613e3ad688ccc)) * **components-react:** update deps ([62cf98e](https://github.com/opendatalab/labelU-Kit/commit/62cf98ef3a4fea6c745531d3cb4aa0de49adff58)) * **frontend:** correct deps ([ce7a558](https://github.com/opendatalab/labelU-Kit/commit/ce7a558f2a5c8ddf27962db99bac1e8d00f770e7)) * **frontend:** update deps ([74473a6](https://github.com/opendatalab/labelU-Kit/commit/74473a615ca532661a6a2ce3770842d0e0a010bc)) * **frontend:** update deps ([7cd067a](https://github.com/opendatalab/labelU-Kit/commit/7cd067a0040bf680c904f7269648b77b947317db)) * **frontend:** update deps ([b1506a9](https://github.com/opendatalab/labelU-Kit/commit/b1506a915379d03f69d8c410462e296cb7774ce9)) * **image-annotator-react:** update deps ([595888f](https://github.com/opendatalab/labelU-Kit/commit/595888f61289d0bf2fd00280878fda3845c345f3)) * **video-annotator-react:** update deps ([3f8f627](https://github.com/opendatalab/labelU-Kit/commit/3f8f627eb0be6fd5430159ec2dc6e9b162b42fec)) * **video-annotator-react:** update deps ([ec5d97b](https://github.com/opendatalab/labelU-Kit/commit/ec5d97b640fad8da1dccc3487891446fa13ed4e7)) * **video-annotator-react:** update deps ([51e33f7](https://github.com/opendatalab/labelU-Kit/commit/51e33f720c59124034c199faca0942964a45905e)) * **video-annotator-react:** update deps ([81266ce](https://github.com/opendatalab/labelU-Kit/commit/81266ce8c5d1f401f56f54d1a120e8633e091388)) * **video-annotator-react:** update deps ([4162176](https://github.com/opendatalab/labelU-Kit/commit/41621761a47ba919b286c92358c012ec5f9ae85b)) * **video-react:** update deps ([028192f](https://github.com/opendatalab/labelU-Kit/commit/028192fda432ca110e092aee99b0e86ed37be5fd)) * **workspace:** update @semantic-release/github ([94def54](https://github.com/opendatalab/labelU-Kit/commit/94def540f0edfe88eab08f9a1bf7ee3e708596ea)) ### Features * **frontend:** add opendatalab links ([1fe2604](https://github.com/opendatalab/labelU-Kit/commit/1fe260424a40d273808ddfb70c91f36ae9c8701f)) * chore(release): 1.3.5-alpha.1 [skip ci] ## [1.3.5-alpha.1](https://github.com/opendatalab/labelU-Kit/compare/@labelu/video-annotator-react@1.3.4...@labelu/video-annotator-react@1.3.5-alpha.1) (2024-08-12) ### Bug Fixes * **audio-annotator-react:** update deps ([113a0e0](https://github.com/opendatalab/labelU-Kit/commit/113a0e02d3932fa4a3364c28c7bf87201d530e37)) * **audio-react:** update deps ([11bb776](https://github.com/opendatalab/labelU-Kit/commit/11bb7766d9bf42690e15ea1f1f8613e3ad688ccc)) * **components-react:** update deps ([62cf98e](https://github.com/opendatalab/labelU-Kit/commit/62cf98ef3a4fea6c745531d3cb4aa0de49adff58)) * **frontend:** correct deps ([ce7a558](https://github.com/opendatalab/labelU-Kit/commit/ce7a558f2a5c8ddf27962db99bac1e8d00f770e7)) * **frontend:** update deps ([74473a6](https://github.com/opendatalab/labelU-Kit/commit/74473a615ca532661a6a2ce3770842d0e0a010bc)) * **frontend:** update deps ([7cd067a](https://github.com/opendatalab/labelU-Kit/commit/7cd067a0040bf680c904f7269648b77b947317db)) * **frontend:** update deps ([b1506a9](https://github.com/opendatalab/labelU-Kit/commit/b1506a915379d03f69d8c410462e296cb7774ce9)) * **image-annotator-react:** update deps ([595888f](https://github.com/opendatalab/labelU-Kit/commit/595888f61289d0bf2fd00280878fda3845c345f3)) * **video-annotator-react:** update deps ([3f8f627](https://github.com/opendatalab/labelU-Kit/commit/3f8f627eb0be6fd5430159ec2dc6e9b162b42fec)) * **video-annotator-react:** update deps ([ec5d97b](https://github.com/opendatalab/labelU-Kit/commit/ec5d97b640fad8da1dccc3487891446fa13ed4e7)) * **video-annotator-react:** update deps ([51e33f7](https://github.com/opendatalab/labelU-Kit/commit/51e33f720c59124034c199faca0942964a45905e)) * **video-annotator-react:** update deps ([81266ce](https://github.com/opendatalab/labelU-Kit/commit/81266ce8c5d1f401f56f54d1a120e8633e091388)) * **video-annotator-react:** update deps ([4162176](https://github.com/opendatalab/labelU-Kit/commit/41621761a47ba919b286c92358c012ec5f9ae85b)) * **video-react:** update deps ([028192f](https://github.com/opendatalab/labelU-Kit/commit/028192fda432ca110e092aee99b0e86ed37be5fd)) * **workspace:** update @semantic-release/github ([94def54](https://github.com/opendatalab/labelU-Kit/commit/94def540f0edfe88eab08f9a1bf7ee3e708596ea)) ### Features * **frontend:** add opendatalab links ([1fe2604](https://github.com/opendatalab/labelU-Kit/commit/1fe260424a40d273808ddfb70c91f36ae9c8701f)) * chore(release): 1.3.4-alpha.1 [skip ci] ## [1.3.4-alpha.1](https://github.com/opendatalab/labelU-Kit/compare/@labelu/video-react@1.3.3...@labelu/video-react@1.3.4-alpha.1) (2024-08-12) ### Bug Fixes * **audio-annotator-react:** update deps ([113a0e0](https://github.com/opendatalab/labelU-Kit/commit/113a0e02d3932fa4a3364c28c7bf87201d530e37)) * **audio-react:** update deps ([11bb776](https://github.com/opendatalab/labelU-Kit/commit/11bb7766d9bf42690e15ea1f1f8613e3ad688ccc)) * **components-react:** update deps ([62cf98e](https://github.com/opendatalab/labelU-Kit/commit/62cf98ef3a4fea6c745531d3cb4aa0de49adff58)) * **frontend:** correct deps ([ce7a558](https://github.com/opendatalab/labelU-Kit/commit/ce7a558f2a5c8ddf27962db99bac1e8d00f770e7)) * **frontend:** update deps ([74473a6](https://github.com/opendatalab/labelU-Kit/commit/74473a615ca532661a6a2ce3770842d0e0a010bc)) * **frontend:** update deps ([7cd067a](https://github.com/opendatalab/labelU-Kit/commit/7cd067a0040bf680c904f7269648b77b947317db)) * **frontend:** update deps ([b1506a9](https://github.com/opendatalab/labelU-Kit/commit/b1506a915379d03f69d8c410462e296cb7774ce9)) * **image-annotator-react:** update deps ([595888f](https://github.com/opendatalab/labelU-Kit/commit/595888f61289d0bf2fd00280878fda3845c345f3)) * **video-annotator-react:** update deps ([3f8f627](https://github.com/opendatalab/labelU-Kit/commit/3f8f627eb0be6fd5430159ec2dc6e9b162b42fec)) * **video-annotator-react:** update deps ([ec5d97b](https://github.com/opendatalab/labelU-Kit/commit/ec5d97b640fad8da1dccc3487891446fa13ed4e7)) * **video-annotator-react:** update deps ([51e33f7](https://github.com/opendatalab/labelU-Kit/commit/51e33f720c59124034c199faca0942964a45905e)) * **video-annotator-react:** update deps ([81266ce](https://github.com/opendatalab/labelU-Kit/commit/81266ce8c5d1f401f56f54d1a120e8633e091388)) * **video-annotator-react:** update deps ([4162176](https://github.com/opendatalab/labelU-Kit/commit/41621761a47ba919b286c92358c012ec5f9ae85b)) * **video-react:** update deps ([028192f](https://github.com/opendatalab/labelU-Kit/commit/028192fda432ca110e092aee99b0e86ed37be5fd)) * **workspace:** update @semantic-release/github ([94def54](https://github.com/opendatalab/labelU-Kit/commit/94def540f0edfe88eab08f9a1bf7ee3e708596ea)) ### Features * **frontend:** add opendatalab links ([1fe2604](https://github.com/opendatalab/labelU-Kit/commit/1fe260424a40d273808ddfb70c91f36ae9c8701f)) * chore(release): 5.3.0-alpha.1 [skip ci] # [5.3.0-alpha.1](https://github.com/opendatalab/labelU-Kit/compare/v5.2.1...v5.3.0-alpha.1) (2024-08-12) ### Bug Fixes * **audio-annotator-react:** update deps ([113a0e0](https://github.com/opendatalab/labelU-Kit/commit/113a0e02d3932fa4a3364c28c7bf87201d530e37)) * **audio-react:** update deps ([11bb776](https://github.com/opendatalab/labelU-Kit/commit/11bb7766d9bf42690e15ea1f1f8613e3ad688ccc)) * **components-react:** update deps ([62cf98e](https://github.com/opendatalab/labelU-Kit/commit/62cf98ef3a4fea6c745531d3cb4aa0de49adff58)) * **frontend:** update deps ([74473a6](https://github.com/opendatalab/labelU-Kit/commit/74473a615ca532661a6a2ce3770842d0e0a010bc)) * **frontend:** update deps ([7cd067a](https://github.com/opendatalab/labelU-Kit/commit/7cd067a0040bf680c904f7269648b77b947317db)) * **frontend:** update deps ([b1506a9](https://github.com/opendatalab/labelU-Kit/commit/b1506a915379d03f69d8c410462e296cb7774ce9)) * **image-annotator-react:** update deps ([595888f](https://github.com/opendatalab/labelU-Kit/commit/595888f61289d0bf2fd00280878fda3845c345f3)) * **video-annotator-react:** update deps ([3f8f627](https://github.com/opendatalab/labelU-Kit/commit/3f8f627eb0be6fd5430159ec2dc6e9b162b42fec)) * **video-annotator-react:** update deps ([ec5d97b](https://github.com/opendatalab/labelU-Kit/commit/ec5d97b640fad8da1dccc3487891446fa13ed4e7)) * **video-annotator-react:** update deps ([51e33f7](https://github.com/opendatalab/labelU-Kit/commit/51e33f720c59124034c199faca0942964a45905e)) * **video-annotator-react:** update deps ([81266ce](https://github.com/opendatalab/labelU-Kit/commit/81266ce8c5d1f401f56f54d1a120e8633e091388)) * **video-annotator-react:** update deps ([4162176](https://github.com/opendatalab/labelU-Kit/commit/41621761a47ba919b286c92358c012ec5f9ae85b)) * **video-react:** update deps ([028192f](https://github.com/opendatalab/labelU-Kit/commit/028192fda432ca110e092aee99b0e86ed37be5fd)) ### Features * **frontend:** add opendatalab links ([1fe2604](https://github.com/opendatalab/labelU-Kit/commit/1fe260424a40d273808ddfb70c91f36ae9c8701f)) * chore: update frontend package.json version to 5.3.0-alpha.1 [skip ci] --------- Co-authored-by: semantic-release-bot --- apps/frontend/package.json | 12 +- apps/frontend/src/assets/svg/labelllm.svg | 11 ++ apps/frontend/src/assets/svg/mineru.svg | 36 ++++++ apps/frontend/src/assets/svg/opendatalab.svg | 12 ++ apps/frontend/src/assets/svg/toolbox.svg | 3 + .../src/components/AppPanel/index.module.css | 111 ++++++++++++++++++ .../src/components/AppPanel/index.tsx | 88 ++++++++++++++ .../src/components/Navigate/index.tsx | 19 ++- apps/frontend/vite.config.ts | 2 +- package.json | 4 +- packages/audio-annotator-react/package.json | 6 +- packages/audio-react/package.json | 4 +- packages/components-react/package.json | 2 +- packages/image-annotator-react/package.json | 4 +- packages/video-annotator-react/package.json | 8 +- packages/video-react/package.json | 4 +- 16 files changed, 299 insertions(+), 27 deletions(-) create mode 100644 apps/frontend/src/assets/svg/labelllm.svg create mode 100644 apps/frontend/src/assets/svg/mineru.svg create mode 100644 apps/frontend/src/assets/svg/opendatalab.svg create mode 100644 apps/frontend/src/assets/svg/toolbox.svg create mode 100644 apps/frontend/src/components/AppPanel/index.module.css create mode 100644 apps/frontend/src/components/AppPanel/index.tsx diff --git a/apps/frontend/package.json b/apps/frontend/package.json index 15027bc86..8ef1d7293 100644 --- a/apps/frontend/package.json +++ b/apps/frontend/package.json @@ -1,17 +1,17 @@ { "name": "@labelu/frontend", - "version": "5.2.1", + "version": "5.3.0-alpha.1", "private": true, "dependencies": { "@ant-design/icons": "^4.6.2", - "@labelu/audio-annotator-react": "1.5.2", - "@labelu/components-react": "1.4.2", + "@labelu/audio-annotator-react": "1.5.3-alpha.1", + "@labelu/components-react": "1.4.3-alpha.1", "@labelu/image": "1.1.0", "@labelu/formatter": "1.0.2", - "@labelu/image-annotator-react": "2.1.1", + "@labelu/image-annotator-react": "2.1.2-alpha.1", "@labelu/interface": "1.3.1", - "@labelu/video-annotator-react": "1.3.4", - "@labelu/video-react": "1.3.3", + "@labelu/video-annotator-react": "1.3.5-alpha.1", + "@labelu/video-react": "1.3.4-alpha.1", "@tanstack/react-query": "^5.0.0", "antd": "5.10.1", "axios": "^1.3.4", diff --git a/apps/frontend/src/assets/svg/labelllm.svg b/apps/frontend/src/assets/svg/labelllm.svg new file mode 100644 index 000000000..2f1622e35 --- /dev/null +++ b/apps/frontend/src/assets/svg/labelllm.svg @@ -0,0 +1,11 @@ + + + + + + + + + + + diff --git a/apps/frontend/src/assets/svg/mineru.svg b/apps/frontend/src/assets/svg/mineru.svg new file mode 100644 index 000000000..053679aba --- /dev/null +++ b/apps/frontend/src/assets/svg/mineru.svg @@ -0,0 +1,36 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + diff --git a/apps/frontend/src/assets/svg/opendatalab.svg b/apps/frontend/src/assets/svg/opendatalab.svg new file mode 100644 index 000000000..6843772ee --- /dev/null +++ b/apps/frontend/src/assets/svg/opendatalab.svg @@ -0,0 +1,12 @@ + + + + + + + + + + + + diff --git a/apps/frontend/src/assets/svg/toolbox.svg b/apps/frontend/src/assets/svg/toolbox.svg new file mode 100644 index 000000000..0abc905eb --- /dev/null +++ b/apps/frontend/src/assets/svg/toolbox.svg @@ -0,0 +1,3 @@ + + + diff --git a/apps/frontend/src/components/AppPanel/index.module.css b/apps/frontend/src/components/AppPanel/index.module.css new file mode 100644 index 000000000..2fafcec27 --- /dev/null +++ b/apps/frontend/src/components/AppPanel/index.module.css @@ -0,0 +1,111 @@ +.panel { + display: flex; + flex-wrap: wrap; + width: 40rem; + min-height: 10rem; +} + +.title { + font-size: 20px; + font-weight: 600; + margin: 0.5rem 0 0.5rem 1rem; +} + +.appWrapper { + flex-basis: 50%; + border-radius: 0.25rem; + transition: all 0.2s ease-in-out; + overflow: hidden; + + &:hover { + background-color: rgba(244, 245, 249, 1); + + .links { + opacity: 1; + } + + .appContainer { + animation: wrapperSlideIn 0.2s ease-in-out forwards; + } + } + + &:not(:hover) { + .links { + opacity: 0; + } + + .appContainer { + animation: wrapperSlideOut 0.2s ease-in-out forwards; + } + } +} + +.appContainer { + display: flex; + padding: 0 1rem 1rem; + flex-direction: column; + align-items: start; + justify-content: center; +} + +.avatar { + flex-shrink: 0; +} + +.header { + display: flex; + align-items: center; + gap: 0.5rem; + cursor: pointer; +} + +.description { + color: var(--color-text-tertiary); + font-size: 0.75rem; +} + +.links { + display: flex; + gap: 1rem; + padding: 0.5rem 0; + align-items: center; + opacity: 0; + transition: all 0.2s ease-in-out; +} + +.link { + display: flex; + justify-items: center; + gap: 0.25rem; + color: var(--color-text); + + &:hover { + color: var(--color-primary); + + .arrow { + transform: translateX(0.25rem); + } + } +} + +.arrow { + transition: transform 0.2s ease-in-out; +} + +@keyframes wrapperSlideIn { + from { + transform: translateY(28px); + } + to { + transform: translateY(12px); + } +} + +@keyframes wrapperSlideOut { + from { + transform: translateY(12px); + } + to { + transform: translateY(28px); + } +} diff --git a/apps/frontend/src/components/AppPanel/index.tsx b/apps/frontend/src/components/AppPanel/index.tsx new file mode 100644 index 000000000..7ebf38c0e --- /dev/null +++ b/apps/frontend/src/components/AppPanel/index.tsx @@ -0,0 +1,88 @@ +import { ArrowRightOutlined } from '@ant-design/icons'; +import { Avatar } from 'antd'; +import _ from 'lodash'; + +import { ReactComponent as LabelLLM } from '@/assets/svg/labelllm.svg'; +import { ReactComponent as MinerU } from '@/assets/svg/mineru.svg'; +import { ReactComponent as OpenDataLab } from '@/assets/svg/opendatalab.svg'; + +import styles from './index.module.css'; + +interface AppLink { + name: string; + title: string; + links: { + name: string; + link: string; + }[]; + icon: JSX.Element; + description: string; +} + +const apps = [ + { + name: 'OpenDataLab', + links: [{ name: '立即前往', link: 'https://opendatalab.com' }], + icon: , + description: '一个引领 AI 大模型时代的开放数据平台,提供了海量的、多模态的优质数据集,助力 AI 开发落地', + }, + { + name: 'LabelLLM', + links: [ + { + name: 'Github', + link: 'https://github.com/opendatalab/LabelLLM?tab=readme-ov-file#labelllm-the-open-source-data-annotation-platform', + }, + ], + icon: , + description: '专业致力于 LLM 对话标注,通过灵活的工具配置与多种数据模态的广泛兼容,为大模型打造高质量数据', + }, + { + name: 'MinerU', + links: [ + { name: 'Github', link: 'https://github.com/opendatalab/MinerU' }, + { name: '在线体验', link: 'https://opendatalab.com/OpenSourceTools/Extractor/PDF' }, + ], + icon: , + description: '一站式开源高质量数据提取工具,支持多格式(PDF/网页/电子书),智能萃取,生成高质量语料', + }, +]; + +export default function AppPanel() { + const handleGoApp = (app: AppLink) => { + window.open(app.links[0].link, '_blank'); + }; + + return ( +
+
欢迎使用 OpenDataLab 开源工具 🎉
+
+ {_.map(apps, (app) => { + return ( +
+
+
handleGoApp(app)}> + +
+ {app.name} +
{app.description}
+
+
+
+ {_.map(app.links, (link) => { + return ( + + {link.name} + + + ); + })} +
+
+
+ ); + })} +
+
+ ); +} diff --git a/apps/frontend/src/components/Navigate/index.tsx b/apps/frontend/src/components/Navigate/index.tsx index f1b27ee92..c72c96c65 100644 --- a/apps/frontend/src/components/Navigate/index.tsx +++ b/apps/frontend/src/components/Navigate/index.tsx @@ -1,15 +1,17 @@ -import { Button, Divider, Dropdown, Tag } from 'antd'; -import { Link, useMatch, useNavigate } from 'react-router-dom'; import Icon, { BellOutlined, PoweroffOutlined } from '@ant-design/icons'; import { FlexLayout } from '@labelu/components-react'; +import { Button, Divider, Dropdown, Popover, Tag } from 'antd'; +import { Link, useMatch, useNavigate } from 'react-router-dom'; -import { ReactComponent as ProfileIcon } from '@/assets/svg/personal.svg'; import { ReactComponent as LocalDeploy } from '@/assets/svg/local-deploy.svg'; +import { ReactComponent as ProfileIcon } from '@/assets/svg/personal.svg'; +import { ReactComponent as ToolboxSvg } from '@/assets/svg/toolbox.svg'; import { goLogin } from '@/utils/sso'; -import TaskTip from './TaskTip'; +import AppPanel from '../AppPanel'; import Breadcrumb from '../Breadcrumb'; import { LabeluLogo, NavigationWrapper } from './style'; +import TaskTip from './TaskTip'; const Homepage = () => { const username = localStorage.getItem('username'); @@ -50,6 +52,15 @@ const Homepage = () => { + }> + + {window.IS_ONLINE && (