Skip to content

Commit

Permalink
fix: fix ui stuff
Browse files Browse the repository at this point in the history
  • Loading branch information
tonywu6 committed Dec 25, 2023
1 parent 7840f3b commit e9167a6
Show file tree
Hide file tree
Showing 5 changed files with 3,297 additions and 2,331 deletions.
26 changes: 13 additions & 13 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,20 +21,20 @@
},
"nx": {},
"devDependencies": {
"@bufbuild/buf": "^1.27.1",
"@changesets/cli": "^2.26.2",
"@bufbuild/buf": "^1.28.1",
"@changesets/cli": "^2.27.1",
"@commitlint/cli": "^17.8.1",
"@commitlint/config-conventional": "^17.8.1",
"@secretflow/repo-utils": "workspace:^",
"@types/node": "^18.16.19",
"@types/node": "^18.19.3",
"@typescript-eslint/eslint-plugin": "^5.62.0",
"@typescript-eslint/parser": "^5.62.0",
"@vitest/coverage-v8": "^0.32.4",
"dotenv-cli": "^7.3.0",
"eslint": "^8.52.0",
"eslint": "^8.56.0",
"eslint-config-prettier": "^8.10.0",
"eslint-plugin-import": "^2.28.1",
"eslint-plugin-mdx": "^2.2.0",
"eslint-plugin-import": "^2.29.1",
"eslint-plugin-mdx": "^2.2.1",
"eslint-plugin-promise": "^6.1.1",
"eslint-plugin-react": "^7.33.2",
"eslint-plugin-react-hooks": "^4.6.0",
Expand All @@ -44,23 +44,23 @@
"lint-staged": "^13.3.0",
"nx": "^16.10.0",
"openapi-typescript-codegen": "^0.25.0",
"postcss": "^8.4.31",
"postcss": "^8.4.32",
"postcss-less": "^6.0.0",
"prettier": "^3.0.3",
"pyright": "^1.1.332",
"prettier": "^3.1.1",
"pyright": "^1.1.342",
"remark-directive": "^2.0.1",
"remark-frontmatter": "^4.0.1",
"remark-gfm": "^3.0.1",
"remark-math": "^5.1.1",
"stylelint": "^15.11.0",
"stylelint-config-css-modules": "^4.3.0",
"stylelint-config-css-modules": "^4.4.0",
"stylelint-config-idiomatic-order": "^9.0.0",
"stylelint-config-prettier": "^9.0.5",
"stylelint-config-standard": "^30.0.1",
"stylelint-order": "^6.0.3",
"ts-node": "^10.9.1",
"stylelint-order": "^6.0.4",
"ts-node": "^10.9.2",
"tsup": "^6.7.0",
"typescript": "^5.2.2",
"typescript": "^5.3.3",
"vitest": "^0.32.4"
},
"engines": {
Expand Down
3 changes: 2 additions & 1 deletion packages/secretnote/.umirc.ts
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ export default defineConfig({
{ path: '/lipsum', component: '@/pages/lipsum' },
{ path: '/*', component: '@/pages/404' },
],
// devtool: 'source-map',
devtool: 'source-map',
jsMinifier: 'none',
writeToDisk: true,
proxy: {
Expand All @@ -58,4 +58,5 @@ export default defineConfig({
],
mfsu: false,
npmClient: 'pnpm',
hash: true,
});
76 changes: 39 additions & 37 deletions packages/secretnote/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,38 +23,40 @@
"dev": "umi dev"
},
"dependencies": {
"@antv/s2": "^1.52.0",
"@codemirror/lang-python": "^6.1.2",
"@difizen/libro-jupyter": "0.0.2-alpha.0",
"@difizen/mana-app": "0.0.2-alpha.1",
"@difizen/mana-common": "0.0.2-alpha.1",
"@difizen/mana-l10n": "0.0.2-alpha.1",
"@difizen/mana-react": "0.0.2-alpha.1",
"@antv/s2": "^1.54.2",
"@codemirror/lang-python": "^6.1.3",
"@difizen/libro-code-editor": "^0.1.5",
"@difizen/libro-jupyter": "^0.1.5",
"@difizen/libro-lsp": "^0.1.5",
"@difizen/mana-app": "^0.1.3",
"@difizen/mana-common": "^0.1.3",
"@difizen/mana-l10n": "^0.1.3",
"@difizen/mana-react": "^0.1.3",
"@kanaries/web-data-loader": "^0.1.7",
"@lumino/polling": "^1.11.4",
"@rjsf/antd": "^5.7.3",
"@rjsf/core": "^5.13.2",
"@rjsf/utils": "^5.13.2",
"@rjsf/validator-ajv8": "^5.8.2",
"@tiptap/core": "^2.1.11",
"@tiptap/extension-color": "^2.1.11",
"@tiptap/extension-highlight": "^2.1.11",
"@tiptap/extension-horizontal-rule": "^2.1.11",
"@tiptap/extension-link": "^2.1.11",
"@tiptap/extension-placeholder": "^2.1.11",
"@tiptap/extension-task-item": "^2.1.11",
"@tiptap/extension-task-list": "^2.1.11",
"@tiptap/extension-text-style": "^2.1.11",
"@tiptap/extension-underline": "^2.1.11",
"@tiptap/pm": "^2.1.11",
"@tiptap/react": "^2.1.11",
"@tiptap/starter-kit": "^2.1.11",
"@tiptap/suggestion": "^2.1.11",
"@uiw/codemirror-theme-github": "^4.21.3",
"@uiw/react-codemirror": "^4.21.20",
"@rjsf/antd": "^5.15.1",
"@rjsf/core": "^5.15.1",
"@rjsf/utils": "^5.15.1",
"@rjsf/validator-ajv8": "^5.15.1",
"@tiptap/core": "^2.1.13",
"@tiptap/extension-color": "^2.1.13",
"@tiptap/extension-highlight": "^2.1.13",
"@tiptap/extension-horizontal-rule": "^2.1.13",
"@tiptap/extension-link": "^2.1.13",
"@tiptap/extension-placeholder": "^2.1.13",
"@tiptap/extension-task-item": "^2.1.13",
"@tiptap/extension-task-list": "^2.1.13",
"@tiptap/extension-text-style": "^2.1.13",
"@tiptap/extension-underline": "^2.1.13",
"@tiptap/pm": "^2.1.13",
"@tiptap/react": "^2.1.13",
"@tiptap/starter-kit": "^2.1.13",
"@tiptap/suggestion": "^2.1.13",
"@uiw/codemirror-theme-github": "^4.21.21",
"@uiw/react-codemirror": "^4.21.21",
"ahooks": "^3.7.8",
"antd": "^5.10.1",
"canvas-confetti": "^1.9.0",
"antd": "^5.12.5",
"canvas-confetti": "^1.9.2",
"classnames": "^2.3.2",
"d3-dsv": "^3.0.1",
"endent": "^2.1.0",
Expand All @@ -63,21 +65,21 @@
"lucide-react": "^0.284.0",
"smoothie": "^1.36.1",
"tippy.js": "^6.3.7",
"tiptap-markdown": "^0.8.2",
"umi": "^4.0.86",
"tiptap-markdown": "^0.8.8",
"umi": "^4.0.90",
"xterm": "^5.3.0",
"xterm-addon-canvas": "^0.5.0",
"xterm-addon-fit": "^0.8.0",
"xterm-addon-search": "^0.13.0",
"xterm-addon-web-links": "^0.9.0"
},
"devDependencies": {
"@types/canvas-confetti": "^1.6.1",
"@types/d3-dsv": "^3.0.4",
"@types/lodash.debounce": "^4.0.7",
"@types/lodash.throttle": "^4.1.7",
"@types/react": "^18.2.28",
"@types/react-dom": "^18.2.13",
"@types/canvas-confetti": "^1.6.4",
"@types/d3-dsv": "^3.0.7",
"@types/lodash.debounce": "^4.0.9",
"@types/lodash.throttle": "^4.1.9",
"@types/react": "^18.2.45",
"@types/react-dom": "^18.2.18",
"babel-plugin-parameter-decorator": "^1.0.16",
"babel-plugin-transform-typescript-metadata": "^0.3.2"
},
Expand Down
13 changes: 12 additions & 1 deletion packages/secretnote/src/modules/editor/cell/code-cell-view.tsx
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
import { CodeEditorManager } from '@difizen/libro-code-editor';
import type {
ExecutionMeta,
KernelMessage,
Expand All @@ -9,6 +10,7 @@ import {
JupyterCodeCellView,
KernelError,
} from '@difizen/libro-jupyter';
import { DocumentConnectionManager } from '@difizen/libro-lsp';
import {
getOrigin,
inject,
Expand Down Expand Up @@ -75,8 +77,17 @@ export class SecretNoteCodeCellView extends JupyterCodeCellView {
@inject(ViewManager) viewManager: ViewManager,
@inject(SecretNoteServerManager) serverManager: SecretNoteServerManager,
@inject(SecretNoteKernelManager) kernelManager: SecretNoteKernelManager,
@inject(DocumentConnectionManager)
documentConnectionManager: DocumentConnectionManager,
@inject(CodeEditorManager) codeEditorManager: CodeEditorManager,
) {
super(options, cellService, viewManager);
super(
options,
cellService,
viewManager,
documentConnectionManager,
codeEditorManager,
);
this.serverManager = serverManager;
this.kernelManager = kernelManager;
this.executionParty =
Expand Down
Loading

0 comments on commit e9167a6

Please sign in to comment.