Skip to content

Commit 7a5305a

Browse files
NewByVectortonywu6
andauthored
feat: add component cell (#16)
* feat: add project for scql * feat: optimize notification style * feat: add ccl config feature * feat: add scql editor feature * feat: optimize project style * feat: extrator override style * feat: optimize ccl config * feat: add view ccl feature * feat: change scql to first router * feat: add scql output rendermime * feat: use monaco editor for sql * feat: add complete feature for sql editor * fix: ensure extension url by --mode args * feat: replace lodash to lodash-es * chore: upgrade typescript to v5 * chore: change dev script name * chore(ci): fix errors due to hatch updates (#14) * chore: update deps * chore: update libro version * feat: add component cell * feat: support view log in component cell * fix: fix style error * refactor: refactor sql editor * fix: add typo * feat: optimize component cell * feat: optimize log view * feat: component form optimized * fix: auto save when run component --------- Co-authored-by: Tony Wu <[email protected]>
1 parent 265278d commit 7a5305a

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

74 files changed

+9264
-4035
lines changed

.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -326,3 +326,4 @@ dist
326326
/.clwb/
327327

328328
.secretnote
329+
.nx

.vscode/cspell.json

+1
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@
1313
"arange",
1414
"astd",
1515
"awatch",
16+
"Cascader",
1617
"consts",
1718
"coro",
1819
"cpus",

examples/psi.ipynb

-179
This file was deleted.

packages/secretnote/.umirc.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,4 @@
11
import { defineConfig } from 'umi';
2-
const MonacoWebpackPlugin = require('monaco-editor-webpack-plugin');
32

43
export default defineConfig({
54
// This is not portable at all
@@ -50,8 +49,8 @@ export default defineConfig({
5049
],
5150
mfsu: false,
5251
npmClient: 'pnpm',
53-
chainWebpack(memo) {
54-
memo.plugin('monaco').use(MonacoWebpackPlugin);
55-
},
52+
// chainWebpack(memo) {
53+
// memo.plugin('monaco').use(MonacoWebpackPlugin);
54+
// },
5655
esbuildMinifyIIFE: true,
5756
});

packages/secretnote/package.json

+6-5
Original file line numberDiff line numberDiff line change
@@ -25,11 +25,11 @@
2525
"dependencies": {
2626
"@antv/s2": "^1.52.0",
2727
"@codemirror/lang-python": "^6.1.2",
28-
"@difizen/libro-jupyter": "^0.1.3",
29-
"@difizen/mana-app": "^0.1.3",
30-
"@difizen/mana-common": "^0.1.3",
31-
"@difizen/mana-l10n": "^0.1.3",
32-
"@difizen/mana-react": "^0.1.3",
28+
"@difizen/libro-jupyter": "^0.1.14",
29+
"@difizen/mana-app": "^0.1.8",
30+
"@difizen/mana-common": "^0.1.8",
31+
"@difizen/mana-l10n": "^0.1.8",
32+
"@difizen/mana-react": "^0.1.8",
3333
"@kanaries/web-data-loader": "^0.1.7",
3434
"@lumino/polling": "^1.11.4",
3535
"@rjsf/antd": "^5.7.3",
@@ -54,6 +54,7 @@
5454
"@uiw/react-codemirror": "^4.21.20",
5555
"ahooks": "^3.7.8",
5656
"antd": "^5.10.1",
57+
"antd-schema-form": "^5.0.1",
5758
"canvas-confetti": "^1.9.0",
5859
"classnames": "^2.3.2",
5960
"d3-dsv": "^3.0.1",

packages/secretnote/src/assets/notebook/psi.ipynb

+10
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,16 @@
141141
"}\n",
142142
"spu.psi_csv(\"uid\", input_path, output_path, \"alice\")"
143143
]
144+
},
145+
{
146+
"cell_type": "code",
147+
"execution_count": null,
148+
"id": "513d1da7",
149+
"metadata": {},
150+
"outputs": [],
151+
"source": [
152+
"sf.shutdown()"
153+
]
144154
}
145155
],
146156
"metadata": {
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,113 @@
1+
.schema-selector {
2+
.ant-form-item {
3+
margin-bottom: 4px;
4+
font-size: 12px;
5+
6+
.ant-form-item-label label {
7+
font-size: 12px;
8+
}
9+
10+
.ant-input {
11+
font-size: 12px;
12+
}
13+
14+
.ant-input-number {
15+
width: 100%;
16+
font-size: 12px;
17+
}
18+
19+
.ant-select {
20+
.ant-select-selection-item {
21+
font-size: 12px;
22+
}
23+
}
24+
}
25+
}
26+
27+
.component-form {
28+
background-color: #f7f9fa;
29+
30+
.ant-form {
31+
.ant-collapse {
32+
padding: 0;
33+
border: none;
34+
margin-bottom: 8px;
35+
36+
.ant-collapse-item {
37+
border-bottom: none;
38+
background-color: #f7f9fa;
39+
40+
.ant-collapse-header {
41+
height: 26px;
42+
border-radius: 0;
43+
margin-bottom: 8px;
44+
background-color: #f1f1f1;
45+
font-size: 12px;
46+
font-weight: 400;
47+
}
48+
49+
.ant-collapse-content {
50+
border-top: 1px solid transparent;
51+
background-color: #f7f9fa;
52+
53+
.ant-collapse-content-box {
54+
padding: 8px;
55+
background-color: #f7f9fa;
56+
}
57+
}
58+
}
59+
}
60+
61+
> .ant-collapse > .ant-collapse-item > .ant-collapse-header {
62+
display: none;
63+
}
64+
65+
.ant-form-item {
66+
margin-bottom: 8px;
67+
font-size: 12px;
68+
69+
.ant-form-item-label label {
70+
font-size: 12px;
71+
}
72+
73+
.ant-input {
74+
font-size: 12px;
75+
}
76+
77+
.ant-input-number {
78+
width: 100%;
79+
font-size: 12px;
80+
}
81+
82+
.ant-select {
83+
.ant-select-selection-item {
84+
font-size: 12px;
85+
}
86+
}
87+
}
88+
}
89+
90+
.table-selector {
91+
display: flex;
92+
align-items: center;
93+
margin-bottom: 8px;
94+
95+
.ant-cascader {
96+
width: 130px;
97+
margin-right: 5px;
98+
}
99+
100+
.no-table {
101+
color: var(--mana-secretnote-text-color);
102+
font-size: 12px;
103+
}
104+
}
105+
106+
.table-config-item {
107+
margin-bottom: -8px;
108+
109+
&:last-child {
110+
margin-bottom: -16px;
111+
}
112+
}
113+
}

0 commit comments

Comments
 (0)