Skip to content

Commit

Permalink
refactor!: note model alignment core
Browse files Browse the repository at this point in the history
Signed-off-by: Innei <[email protected]>
  • Loading branch information
Innei committed Feb 15, 2024
1 parent e0cd931 commit db4098e
Show file tree
Hide file tree
Showing 93 changed files with 12,177 additions and 8,973 deletions.
4 changes: 2 additions & 2 deletions src/components/avatar/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -53,10 +53,10 @@ export default defineComponent({

<style lang="postcss">
.avatar {
@apply bg-gray$-default inline-block rounded-full relative overflow-hidden select-none;
@apply bg-gray$-default relative inline-block select-none overflow-hidden rounded-full;
}
.avatar img {
@apply rounded-full h-full max-w-full;
@apply h-full max-w-full rounded-full;
animation: scale 0.5s ease-out;
}
Expand Down
6 changes: 2 additions & 4 deletions src/components/config-form/mock.json
Original file line number Diff line number Diff line change
Expand Up @@ -49,9 +49,7 @@
"textOptions"
],
"title": "设置",
"ps": [
"* 敏感字段不显示,后端默认不返回敏感字段,显示为空"
],
"ps": ["* 敏感字段不显示,后端默认不返回敏感字段,显示为空"],
"definitions": {
"SeoDto": {
"properties": {
Expand Down Expand Up @@ -335,4 +333,4 @@
"title": "文本设定"
}
}
}
}
5 changes: 3 additions & 2 deletions src/components/drawer/text-base-drawer.tsx
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
import { isURL } from 'class-validator'
import { JSONHighlight } from 'components/json-highlight'
import { isObject, isUndefined } from 'lodash-es'
import type { SelectOption } from 'naive-ui'
import {
NButton,
NCollapse,
Expand All @@ -22,8 +21,10 @@ import {
NTooltip,
} from 'naive-ui'
import { JSONParseReturnOriginal } from 'utils/json'
import type { PropType } from 'vue'
import type { Image } from '@mx-space/api-client'
import type { SelectOption } from 'naive-ui'
import type { PropType } from 'vue'

import { ImageDetailSection } from './components/image-detail-section'
import { JSONEditor } from './components/json-editor'

Expand Down
3 changes: 2 additions & 1 deletion src/components/editor/codemirror/extension.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
import type { Extension } from '@codemirror/state'

import { markdown, markdownLanguage } from '@codemirror/lang-markdown'
import { languages } from '@codemirror/language-data'
import type { Extension } from '@codemirror/state'
import { Compartment } from '@codemirror/state'

const extensionMap = {
Expand Down
3 changes: 2 additions & 1 deletion src/components/editor/codemirror/syntax-highlight.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language'
import type { Extension } from '@codemirror/state'

import { HighlightStyle, syntaxHighlighting } from '@codemirror/language'
import { EditorView } from '@codemirror/view'
import { tags } from '@lezer/highlight'

Expand Down
3 changes: 2 additions & 1 deletion src/components/editor/codemirror/use-auto-fonts.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
import { HighlightStyle, syntaxHighlighting } from '@codemirror/language'
import type { EditorView } from '@codemirror/view'

import { HighlightStyle, syntaxHighlighting } from '@codemirror/language'
import { tags } from '@lezer/highlight'

import { useEditorConfig } from '../universal/use-editor-setting'
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/codemirror/use-auto-theme.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
import { useStoreRef } from 'hooks/use-store-ref'
import { UIStore } from 'stores/ui'
import type { EditorView } from '@codemirror/view/dist'
import type { Ref } from 'vue'

import { oneDark } from '@codemirror/theme-one-dark'
import type { EditorView } from '@codemirror/view/dist'
import { githubLight } from '@ddietr/codemirror-themes/theme/github-light'

import { codemirrorReconfigureExtensionMap } from './extension'
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/codemirror/use-codemirror.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
import type { Ref } from 'vue'
import { onMounted, ref } from 'vue'
import type { Ref } from 'vue'

import {
defaultKeymap,
Expand Down
2 changes: 1 addition & 1 deletion src/components/editor/universal/editor.module.css
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
.editor.loading {
@apply w-full flex items-center justify-center;
@apply flex w-full items-center justify-center;
}
2 changes: 1 addition & 1 deletion src/components/editor/universal/reset-icon-button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ export const ResetIconButton = defineComponent({
<NButton text class="ml-2" onClick={() => props.resetFn()}>
<Icon
size="20"
class="opacity-40 hover:opacity-100 transition-opacity duration-500"
class="opacity-40 transition-opacity duration-500 hover:opacity-100"
>
<RefreshCircle />
</Icon>
Expand Down
6 changes: 2 additions & 4 deletions src/components/function-editor/index.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -68,8 +68,6 @@ export const FunctionCodeEditor = defineComponent({
RESTManager.api.fn.types.get<any>().then((data) => {
const libSource = data



monaco.languages.typescript.typescriptDefaults.addExtraLib(
libSource,
libUri,
Expand All @@ -90,7 +88,7 @@ export const FunctionCodeEditor = defineComponent({
libUri: string
}
const { libSource, libUri } = namespace

const uri = monaco.Uri.parse(libUri)
if (monaco.editor.getModel(uri)) {
return
Expand Down Expand Up @@ -143,7 +141,7 @@ export const FunctionCodeEditor = defineComponent({

return () => {
return (
<div class="h-full relative w-full">
<div class="relative h-full w-full">
<div class="relative h-full w-full" ref={editorElRef}></div>
{h($editor.Snip)}
</div>
Expand Down
37 changes: 21 additions & 16 deletions src/components/function-editor/libs/node/README.md
Original file line number Diff line number Diff line change
@@ -1,16 +1,21 @@
# Installation
> `npm install --save @types/node`
# Summary
This package contains type definitions for Node.js (http://nodejs.org/).

# Details
Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.

### Additional Details
* Last updated: Wed, 12 May 2021 19:31:27 GMT
* Dependencies: none
* Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`

# Credits
These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).
# Installation

> `npm install --save @types/node`
# Summary

This package contains type definitions for Node.js (http://nodejs.org/).

# Details

Files were exported from https://github.com/DefinitelyTyped/DefinitelyTyped/tree/master/types/node/v14.

### Additional Details

- Last updated: Wed, 12 May 2021 19:31:27 GMT
- Dependencies: none
- Global values: `Buffer`, `__dirname`, `__filename`, `clearImmediate`, `clearInterval`, `clearTimeout`, `console`, `exports`, `global`, `module`, `process`, `queueMicrotask`, `require`, `setImmediate`, `setInterval`, `setTimeout`

# Credits

These definitions were written by [Microsoft TypeScript](https://github.com/Microsoft), [DefinitelyTyped](https://github.com/DefinitelyTyped), [Alberto Schiabel](https://github.com/jkomyno), [Alvis HT Tang](https://github.com/alvis), [Andrew Makarov](https://github.com/r3nya), [Benjamin Toueg](https://github.com/btoueg), [Chigozirim C.](https://github.com/smac89), [David Junger](https://github.com/touffy), [Deividas Bakanas](https://github.com/DeividasBakanas), [Eugene Y. Q. Shen](https://github.com/eyqs), [Hannes Magnusson](https://github.com/Hannes-Magnusson-CK), [Hoàng Văn Khải](https://github.com/KSXGitHub), [Huw](https://github.com/hoo29), [Kelvin Jin](https://github.com/kjin), [Klaus Meinhardt](https://github.com/ajafff), [Lishude](https://github.com/islishude), [Mariusz Wiktorczyk](https://github.com/mwiktorczyk), [Mohsen Azimi](https://github.com/mohsen1), [Nicolas Even](https://github.com/n-e), [Nikita Galkin](https://github.com/galkin), [Parambir Singh](https://github.com/parambirs), [Sebastian Silbermann](https://github.com/eps1lon), [Simon Schick](https://github.com/SimonSchick), [Thomas den Hollander](https://github.com/ThomasdenH), [Wilco Bakker](https://github.com/WilcoBakker), [wwwy3y3](https://github.com/wwwy3y3), [Samuel Ainsworth](https://github.com/samuela), [Kyle Uehlein](https://github.com/kuehlein), [Thanik Bhongbhibhat](https://github.com/bhongy), [Marcin Kopacz](https://github.com/chyzwar), [Trivikram Kamat](https://github.com/trivikr), [Minh Son Nguyen](https://github.com/nguymin4), [Junxiao Shi](https://github.com/yoursunny), [Ilia Baryshnikov](https://github.com/qwelias), [ExE Boss](https://github.com/ExE-Boss), [Surasak Chaisurin](https://github.com/Ryan-Willpower), [Piotr Błażejewicz](https://github.com/peterblazejewicz), [Anna Henningsen](https://github.com/addaleax), [Jason Kwok](https://github.com/JasonHK), [Victor Perin](https://github.com/victorperin), and [Yongsheng Zhang](https://github.com/ZYSzys).
Loading

0 comments on commit db4098e

Please sign in to comment.