From db4098eb7be4e8305168952b3c3a8a7b1b1b3f1a Mon Sep 17 00:00:00 2001 From: Innei Date: Thu, 15 Feb 2024 22:36:42 +0800 Subject: [PATCH] refactor!: note model alignment core Signed-off-by: Innei --- src/components/avatar/index.vue | 4 +- src/components/config-form/mock.json | 6 +- src/components/drawer/text-base-drawer.tsx | 5 +- src/components/editor/codemirror/extension.ts | 3 +- .../editor/codemirror/syntax-highlight.ts | 3 +- .../editor/codemirror/use-auto-fonts.ts | 3 +- .../editor/codemirror/use-auto-theme.ts | 2 +- .../editor/codemirror/use-codemirror.ts | 2 +- .../editor/universal/editor.module.css | 2 +- .../editor/universal/reset-icon-button.tsx | 2 +- src/components/function-editor/index.tsx | 6 +- .../function-editor/libs/node/README.md | 37 +- .../function-editor/libs/node/assert.d.ts | 278 +- .../libs/node/async_hooks.d.ts | 444 +- .../libs/node/child_process.d.ts | 1326 +-- .../function-editor/libs/node/cluster.d.ts | 720 +- .../function-editor/libs/node/constants.d.ts | 18 +- .../function-editor/libs/node/crypto.d.ts | 2604 +++--- .../function-editor/libs/node/dgram.d.ts | 319 +- .../function-editor/libs/node/dns.d.ts | 1004 ++- .../function-editor/libs/node/domain.d.ts | 36 +- .../function-editor/libs/node/globals.d.ts | 1145 +-- .../libs/node/globals.global.d.ts | 2 +- .../function-editor/libs/node/inspector.d.ts | 7198 ++++++++++------- .../function-editor/libs/node/net.d.ts | 680 +- .../function-editor/libs/node/os.d.ts | 454 +- .../function-editor/libs/node/package.json | 458 +- .../function-editor/libs/node/path.d.ts | 296 +- .../function-editor/libs/node/perf_hooks.d.ts | 556 +- .../function-editor/libs/node/punycode.d.ts | 104 +- .../libs/node/querystring.d.ts | 62 +- .../function-editor/libs/node/readline.d.ts | 351 +- .../function-editor/libs/node/stream.d.ts | 863 +- .../libs/node/string_decoder.d.ts | 10 +- .../function-editor/libs/node/timers.d.ts | 39 +- .../libs/node/trace_events.d.ts | 98 +- .../function-editor/libs/node/url.d.ts | 225 +- .../function-editor/libs/node/util.d.ts | 567 +- .../function-editor/libs/node/wasi.d.ts | 150 +- .../function-editor/libs/node/zlib.d.ts | 761 +- src/components/input/underline.module.css | 2 +- src/components/k-bar/index.tsx | 14 +- .../location/get-location-button.tsx | 4 +- src/components/location/search-button.tsx | 6 +- src/components/output-modal/xterm.tsx | 2 +- src/components/preview/index.tsx | 2 +- src/components/shorthand/index.tsx | 2 +- src/components/sidebar/hooks.ts | 2 +- src/components/sidebar/index.module.css | 24 +- .../special-button/fetch-github-repo.tsx | 4 +- .../special-button/parse-content.tsx | 4 +- src/components/spin/index.tsx | 2 +- src/components/table/edit-column.tsx | 6 +- src/components/table/index.tsx | 8 +- src/components/upload/index.tsx | 2 +- src/external/api/hitokoto.ts | 5 +- src/external/api/npm.ts | 2 +- src/hooks/use-async-monaco.ts | 4 +- src/hooks/use-memo-fetch-data-list.ts | 3 +- src/hooks/use-table.ts | 4 +- src/index.css | 4 +- src/layouts/content/index.module.css | 19 +- src/layouts/router-view.tsx | 8 +- src/layouts/setup-view.vue | 4 +- src/models/note.ts | 4 +- src/models/subscribe.ts | 15 +- src/stores/category.ts | 2 +- src/utils/endpoint.ts | 2 +- src/utils/image.ts | 4 +- src/views/dashboard/statistic.tsx | 4 +- src/views/debug/events/index.tsx | 2 +- src/views/debug/serverless/index.tsx | 2 +- .../assets/template/code-editor.tsx | 4 +- .../snippets/components/code-editor.tsx | 2 +- .../components/import-snippets-button.tsx | 10 +- .../components/update-deps-button.tsx | 2 +- src/views/manage-friends/index.tsx | 2 +- src/views/manage-friends/url-components.tsx | 6 +- .../manage-notes/hooks/use-memo-note-list.ts | 1 - src/views/manage-notes/list.tsx | 16 +- src/views/manage-notes/topic.tsx | 4 +- src/views/manage-notes/write.tsx | 28 +- src/views/manage-pages/list.tsx | 6 +- src/views/manage-posts/category.tsx | 8 +- .../manage-posts/hooks/use-memo-post-list.ts | 2 +- src/views/manage-project/edit.tsx | 6 +- src/views/manage-project/list.tsx | 4 +- src/views/manage-says/edit.tsx | 8 +- src/views/manage-says/list.tsx | 4 +- src/views/setting/tabs/system.tsx | 2 +- src/views/setting/tabs/user.module.css | 6 +- src/views/setup/index.module.css | 10 +- src/views/shorthand/index.tsx | 4 +- 93 files changed, 12177 insertions(+), 8973 deletions(-) diff --git a/src/components/avatar/index.vue b/src/components/avatar/index.vue index 6b0cd6b69..4f3923db6 100644 --- a/src/components/avatar/index.vue +++ b/src/components/avatar/index.vue @@ -53,10 +53,10 @@ export default defineComponent({