Skip to content

Commit

Permalink
Merge pull request #11 from secretflow/feat/add-sf-components
Browse files Browse the repository at this point in the history
feat: 新增SF组件适配
  • Loading branch information
bigdadel authored Jan 29, 2024
2 parents 6706dd3 + 59f2368 commit 5a57487
Show file tree
Hide file tree
Showing 135 changed files with 11,835 additions and 4,057 deletions.
2 changes: 1 addition & 1 deletion apps/docs/tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,5 @@
"@@/*": [".dumi/tmp/*"]
}
},
"include": [".dumi/**/*", ".dumirc.ts"]
"include": [".dumirc.ts"]
}
13 changes: 13 additions & 0 deletions apps/platform/config/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,19 @@ export default defineConfig({
'babel-plugin-parameter-decorator',
],
mfsu: false,
codeSplitting: {
jsStrategy: 'granularChunks',
},
// oneApi: {
// apps: [
// {
// name: 'secretpad', // 后端应用名
// tag: 'feat/cx_merge', // 分支 tag
// source: 'ZAPPINFO', // 应用来源,默认 ZAPPINFO,其他来源可在官网的应用信息中查看
// },
// ],
// typescript: true, // 每个接口的类型定义,自动生成,默认 false
// },
esbuildMinifyIIFE: true,
...proxyOptions,
});
8 changes: 6 additions & 2 deletions apps/platform/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -12,11 +12,14 @@
"lint:typing": "tsc --noEmit",
"test": "jest --coverage",
"preview": "umi preview",
"openapi": "node config/openapi.config.js"
"openapi": "node config/openapi.config.js",
"oneapi": "bigfish api generate service"
},
"dependencies": {
"@ant-design/icons": "^5.0.1",
"@antv/g2": "^4.2.9",
"@antv/s2": "^1.52.0",
"@antv/s2-react": "^1.44.2",
"@antv/x6": "^2.11.1",
"@antv/x6-plugin-keyboard": "2.2.1",
"@antv/x6-plugin-selection": "^2.1.7",
Expand Down Expand Up @@ -50,5 +53,6 @@
"peerDependencies": {
"antd": "^5.0.0",
"react": "^18.0.0"
}
},
"repository": "https://code.alipay.com/Secret-Flow/platform-web.git"
}
7 changes: 7 additions & 0 deletions apps/platform/src/assets/redo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions apps/platform/src/assets/undo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
74 changes: 74 additions & 0 deletions apps/platform/src/components/monaco-editor/index.less
Original file line number Diff line number Diff line change
@@ -0,0 +1,74 @@
.toolbar {
display: flex;
height: 36px;
align-items: center;
justify-content: space-between;
background: rgb(0 0 0 / 2%);
}

.toolButton {
color: rgb(0 0 0 / 65%);

&:hover {
color: rgb(0 0 0 / 65%) !important;
}
}

.editor {
background-color: #fff;

.title {
display: flex;
height: 56px;
align-items: center;
justify-content: space-between;
margin: 0 24px;

.titleInput {
color: #1d2129;
font-size: 20px;
font-weight: 500;
}
}

.content {
display: flex;

.fullscreenWorkspace {
width: calc(100vw - 275px);
}

.normalWorkspace {
width: 100%;
}

.rightConfig {
width: 280px;
border-top: 1px solid rgb(0 0 0 / 6%);
border-left: 1px solid rgb(0 0 0 / 6%);
background: #fff;

.titleText {
padding: 16px 12px;
color: rgb(0 0 0 / 88%);
font-size: 14px;
font-weight: 500;
line-height: 20px;
}
}
}

.code {
height: 320px;
}

.fullscreenCode {
height: calc(100vh - 140px);
}
}

.footer {
padding: 12px 8px 8px;
background: #fff;
box-shadow: inset 0 1px 0 0 rgb(0 0 0 / 6%);
}
Loading

0 comments on commit 5a57487

Please sign in to comment.