Skip to content

Commit

Permalink
feat(console): dataset upload (#2507)
Browse files Browse the repository at this point in the history
  • Loading branch information
waynelwz authored Jul 18, 2023
1 parent 435f699 commit 892da55
Show file tree
Hide file tree
Showing 37 changed files with 3,538 additions and 172 deletions.
7 changes: 6 additions & 1 deletion console/jest.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,12 @@ export default {
coverageDirectory: 'coverage',

// An array of regexp pattern strings used to skip coverage collection
coveragePathIgnorePatterns: ['/node_modules/', '<rootDir>/src/_generated_', '<rootDir>/src/stories'],
coveragePathIgnorePatterns: [
'/node_modules/',
'<rootDir>/src/_generated_',
'<rootDir>/src/stories',
'<rootDir>/packages/starwhale-ui/src/Upload/react-dropzone',
],

// Indicates which provider should be used to instrument code for coverage
// coverageProvider: "babel",
Expand Down
3 changes: 2 additions & 1 deletion console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -82,6 +82,7 @@
"react-dnd": "^16.0.1",
"react-dnd-html5-backend": "^16.0.1",
"react-dom": "^17.0.2",
"react-dropzone": "^14.2.3",
"react-grid-layout": "^1.3.4",
"react-hooks-global-state": "^1.0.1",
"react-i18next": "^11.11.4",
Expand Down Expand Up @@ -270,4 +271,4 @@
"framer-motion": "4.1.17",
"react-virtualized": "git+https://[email protected]/remorses/react-virtualized-fixed-import.git#9.22.3"
}
}
}
78 changes: 71 additions & 7 deletions console/packages/starwhale-ui/src/IconFont/fonts/iconfont.css
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
@font-face {
font-family: "iconfont"; /* Project id 3410006 */
src: url('iconfont.woff2?t=1688627096806') format('woff2'),
url('iconfont.woff?t=1688627096806') format('woff'),
url('iconfont.ttf?t=1688627096806') format('truetype');
src: url('iconfont.woff2?t=1689660767619') format('woff2'),
url('iconfont.woff?t=1689660767619') format('woff'),
url('iconfont.ttf?t=1689660767619') format('truetype');
}

.iconfont {
Expand All @@ -13,10 +13,78 @@
-moz-osx-font-smoothing: grayscale;
}

.icon-a-BuildImage:before {
content: "\e674";
}

.icon-Cancel:before {
content: "\e675";
}

.icon-Restore:before {
content: "\e676";
}

.icon-a-Pushlocal:before {
content: "\e677";
}

.icon-a-SecuritySettings:before {
content: "\e678";
}

.icon-a-onlineevaluation:before {
content: "\e679";
}

.icon-fold21:before {
content: "\e67a";
}

.icon-Rerun:before {
content: "\e67b";
}

.icon-unfold21:before {
content: "\e67c";
}

.icon-a-ViewTasks:before {
content: "\e67d";
}

.icon-a-ImageBuilt:before {
content: "\e67e";
}

.icon-link:before {
content: "\e680";
}

.icon-a-runmodel:before {
content: "\e681";
}

.icon-weixin:before {
content: "\e665";
}

.icon-a-Versionhistory:before {
content: "\e673";
}

.icon-file3:before {
content: "\e672";
}

.icon-a-copylink:before {
content: "\e66f";
}

.icon-a-Viewlog:before {
content: "\e671";
}

.icon-copy:before {
content: "\e670";
}
Expand Down Expand Up @@ -57,10 +125,6 @@
content: "\e666";
}

.icon-WeChat:before {
content: "\e665";
}

.icon-account:before {
content: "\e660";
}
Expand Down

Large diffs are not rendered by default.

128 changes: 120 additions & 8 deletions console/packages/starwhale-ui/src/IconFont/fonts/iconfont.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,131 @@
"description": "",
"glyphs": [
{
"icon_id": "36317040",
"icon_id": "36454579",
"name": "Build Image",
"font_class": "a-BuildImage",
"unicode": "e674",
"unicode_decimal": 58996
},
{
"icon_id": "36454580",
"name": "Cancel",
"font_class": "Cancel",
"unicode": "e675",
"unicode_decimal": 58997
},
{
"icon_id": "36454581",
"name": "Restore",
"font_class": "Restore",
"unicode": "e676",
"unicode_decimal": 58998
},
{
"icon_id": "36454582",
"name": "Push local",
"font_class": "a-Pushlocal",
"unicode": "e677",
"unicode_decimal": 58999
},
{
"icon_id": "36454583",
"name": "Security Settings",
"font_class": "a-SecuritySettings",
"unicode": "e678",
"unicode_decimal": 59000
},
{
"icon_id": "36454584",
"name": "online evaluation",
"font_class": "a-onlineevaluation",
"unicode": "e679",
"unicode_decimal": 59001
},
{
"icon_id": "36454585",
"name": "fold2",
"font_class": "fold21",
"unicode": "e67a",
"unicode_decimal": 59002
},
{
"icon_id": "36454586",
"name": "Rerun",
"font_class": "Rerun",
"unicode": "e67b",
"unicode_decimal": 59003
},
{
"icon_id": "36454587",
"name": "unfold2",
"font_class": "unfold21",
"unicode": "e67c",
"unicode_decimal": 59004
},
{
"icon_id": "36454588",
"name": "View Tasks",
"font_class": "a-ViewTasks",
"unicode": "e67d",
"unicode_decimal": 59005
},
{
"icon_id": "36454589",
"name": "Image Built",
"font_class": "a-ImageBuilt",
"unicode": "e67e",
"unicode_decimal": 59006
},
{
"icon_id": "36454591",
"name": "link",
"font_class": "link",
"unicode": "e680",
"unicode_decimal": 59008
},
{
"icon_id": "36454592",
"name": "run model",
"font_class": "a-runmodel",
"unicode": "e681",
"unicode_decimal": 59009
},
{
"icon_id": "36453407",
"name": "微信",
"font_class": "weixin",
"unicode": "e665",
"unicode_decimal": 58981
},
{
"icon_id": "36432264",
"name": "Version history",
"font_class": "a-Versionhistory",
"unicode": "e673",
"unicode_decimal": 58995
},
{
"icon_id": "36423030",
"name": "file3",
"font_class": "file3",
"unicode": "e672",
"unicode_decimal": 58994
},
{
"icon_id": "36414623",
"name": "copy link",
"font_class": "a-copylink",
"unicode": "e66f",
"unicode_decimal": 58991
},
{
"icon_id": "36414624",
"name": "View log",
"font_class": "a-Viewlog",
"unicode": "e671",
"unicode_decimal": 58993
},
{
"icon_id": "36317041",
"name": "copy",
Expand Down Expand Up @@ -82,13 +201,6 @@
"unicode": "e666",
"unicode_decimal": 58982
},
{
"icon_id": "35260847",
"name": "WeChat",
"font_class": "WeChat",
"unicode": "e665",
"unicode_decimal": 58981
},
{
"icon_id": "35120427",
"name": "account",
Expand Down
4 changes: 2 additions & 2 deletions console/packages/starwhale-ui/src/IconFont/fonts/iconfont.ttf
Git LFS file not shown
Git LFS file not shown
Git LFS file not shown
5 changes: 5 additions & 0 deletions console/packages/starwhale-ui/src/IconFont/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -89,6 +89,7 @@ export type IconTypesT =
| 'a-passwordresets'
| 'file'
| 'file2'
| 'file3'
| 'check'
| 'invalidFile'
| 'group'
Expand All @@ -115,6 +116,10 @@ export type IconTypesT =
| 'global2'
| 'copy'
| 'a-copylink'
| 'upload'
| 'a-Versionhistory'
| 'fold21'
| 'unfold21'

interface IIconFontProps {
style?: React.CSSProperties
Expand Down
Loading

0 comments on commit 892da55

Please sign in to comment.