diff --git a/.eslintrc-auto-import.json b/.eslintrc-auto-import.json new file mode 100644 index 0000000..8f5fc2b --- /dev/null +++ b/.eslintrc-auto-import.json @@ -0,0 +1,79 @@ +{ + "globals": { + "Component": true, + "ComponentPublicInstance": true, + "ComputedRef": true, + "DirectiveBinding": true, + "EffectScope": true, + "ExtractDefaultPropTypes": true, + "ExtractPropTypes": true, + "ExtractPublicPropTypes": true, + "InjectionKey": true, + "MaybeRef": true, + "MaybeRefOrGetter": true, + "PropType": true, + "Ref": true, + "ShallowRef": true, + "Slot": true, + "Slots": true, + "VNode": true, + "WritableComputedRef": true, + "computed": true, + "createApp": true, + "customRef": true, + "defineAsyncComponent": true, + "defineComponent": true, + "effectScope": true, + "getCurrentInstance": true, + "getCurrentScope": true, + "getCurrentWatcher": true, + "h": true, + "inject": true, + "isProxy": true, + "isReactive": true, + "isReadonly": true, + "isRef": true, + "isShallow": true, + "markRaw": true, + "nextTick": true, + "onActivated": true, + "onBeforeMount": true, + "onBeforeUnmount": true, + "onBeforeUpdate": true, + "onDeactivated": true, + "onErrorCaptured": true, + "onMounted": true, + "onRenderTracked": true, + "onRenderTriggered": true, + "onScopeDispose": true, + "onServerPrefetch": true, + "onUnmounted": true, + "onUpdated": true, + "onWatcherCleanup": true, + "provide": true, + "reactive": true, + "readonly": true, + "ref": true, + "resolveComponent": true, + "shallowReactive": true, + "shallowReadonly": true, + "shallowRef": true, + "toRaw": true, + "toRef": true, + "toRefs": true, + "toValue": true, + "triggerRef": true, + "unref": true, + "useAttrs": true, + "useCssModule": true, + "useCssVars": true, + "useId": true, + "useModel": true, + "useSlots": true, + "useTemplateRef": true, + "watch": true, + "watchEffect": true, + "watchPostEffect": true, + "watchSyncEffect": true + } +} diff --git a/.gitignore b/.gitignore index 68bb799..49f7cc9 100644 --- a/.gitignore +++ b/.gitignore @@ -1,13 +1,10 @@ -/.eslintrc-auto-import.json -/components.d.ts -/auto-imports.d.ts /AGENTS.md -/.npmrc -/docs/.npmrc +/.workbuddy # 文档站 /docs/.vitepress/cache /docs/.vitepress/dist +/docs/.npmrc # Logs logs diff --git a/.npmrc b/.npmrc new file mode 100644 index 0000000..b0c174f --- /dev/null +++ b/.npmrc @@ -0,0 +1,7 @@ +registry=https://nexus.imyeyu.com/repository/npm-group/ + +//nexus.imyeyu.com/repository/npm-group/:_auth=YWRtaW46RDhneWNwTVBFd0loZWJnVDZySWFxY2hlRFQzTXBmVEQ= +//nexus.imyeyu.com/repository/npm-group/:always-auth=true + +//nexus.imyeyu.com/repository/npm-timi/:_auth=YWRtaW46RDhneWNwTVBFd0loZWJnVDZySWFxY2hlRFQzTXBmVEQ= +//nexus.imyeyu.com/repository/npm-timi/:always-auth=true diff --git a/auto-imports.d.ts b/auto-imports.d.ts new file mode 100644 index 0000000..ac15611 --- /dev/null +++ b/auto-imports.d.ts @@ -0,0 +1,73 @@ +/* eslint-disable */ +/* prettier-ignore */ +// @ts-nocheck +// noinspection JSUnusedGlobalSymbols +// Generated by unplugin-auto-import +// biome-ignore lint: disable +export {} +declare global { + const EffectScope: typeof import('vue').EffectScope + const computed: typeof import('vue').computed + const createApp: typeof import('vue').createApp + const customRef: typeof import('vue').customRef + const defineAsyncComponent: typeof import('vue').defineAsyncComponent + const defineComponent: typeof import('vue').defineComponent + const effectScope: typeof import('vue').effectScope + const getCurrentInstance: typeof import('vue').getCurrentInstance + const getCurrentScope: typeof import('vue').getCurrentScope + const getCurrentWatcher: typeof import('vue').getCurrentWatcher + const h: typeof import('vue').h + const inject: typeof import('vue').inject + const isProxy: typeof import('vue').isProxy + const isReactive: typeof import('vue').isReactive + const isReadonly: typeof import('vue').isReadonly + const isRef: typeof import('vue').isRef + const isShallow: typeof import('vue').isShallow + const markRaw: typeof import('vue').markRaw + const nextTick: typeof import('vue').nextTick + const onActivated: typeof import('vue').onActivated + const onBeforeMount: typeof import('vue').onBeforeMount + const onBeforeUnmount: typeof import('vue').onBeforeUnmount + const onBeforeUpdate: typeof import('vue').onBeforeUpdate + const onDeactivated: typeof import('vue').onDeactivated + const onErrorCaptured: typeof import('vue').onErrorCaptured + const onMounted: typeof import('vue').onMounted + const onRenderTracked: typeof import('vue').onRenderTracked + const onRenderTriggered: typeof import('vue').onRenderTriggered + const onScopeDispose: typeof import('vue').onScopeDispose + const onServerPrefetch: typeof import('vue').onServerPrefetch + const onUnmounted: typeof import('vue').onUnmounted + const onUpdated: typeof import('vue').onUpdated + const onWatcherCleanup: typeof import('vue').onWatcherCleanup + const provide: typeof import('vue').provide + const reactive: typeof import('vue').reactive + const readonly: typeof import('vue').readonly + const ref: typeof import('vue').ref + const resolveComponent: typeof import('vue').resolveComponent + const shallowReactive: typeof import('vue').shallowReactive + const shallowReadonly: typeof import('vue').shallowReadonly + const shallowRef: typeof import('vue').shallowRef + const toRaw: typeof import('vue').toRaw + const toRef: typeof import('vue').toRef + const toRefs: typeof import('vue').toRefs + const toValue: typeof import('vue').toValue + const triggerRef: typeof import('vue').triggerRef + const unref: typeof import('vue').unref + const useAttrs: typeof import('vue').useAttrs + const useCssModule: typeof import('vue').useCssModule + const useCssVars: typeof import('vue').useCssVars + const useId: typeof import('vue').useId + const useModel: typeof import('vue').useModel + const useSlots: typeof import('vue').useSlots + const useTemplateRef: typeof import('vue').useTemplateRef + const watch: typeof import('vue').watch + const watchEffect: typeof import('vue').watchEffect + const watchPostEffect: typeof import('vue').watchPostEffect + const watchSyncEffect: typeof import('vue').watchSyncEffect +} +// for type re-export +declare global { + // @ts-ignore + export type { Component, Slot, Slots, ComponentPublicInstance, ComputedRef, DirectiveBinding, ExtractDefaultPropTypes, ExtractPropTypes, ExtractPublicPropTypes, InjectionKey, PropType, Ref, ShallowRef, MaybeRef, MaybeRefOrGetter, VNode, WritableComputedRef } from 'vue' + import('vue') +} diff --git a/components.d.ts b/components.d.ts new file mode 100644 index 0000000..a7db590 --- /dev/null +++ b/components.d.ts @@ -0,0 +1,55 @@ +/* eslint-disable */ +// @ts-nocheck +// biome-ignore lint: disable +// oxlint-disable +// ------ +// Generated by unplugin-vue-components +// Read more: https://github.com/vuejs/core/pull/3399 + +export {} + +/* prettier-ignore */ +declare module 'vue' { + export interface GlobalComponents { + AdminLayout: typeof import('./src/components/admin-layout/index.vue')['default'] + ArticleEditor: typeof import('./src/components/article-editor/index.vue')['default'] + ArticleView: typeof import('./src/components/article-view/index.vue')['default'] + AuthorizeForm: typeof import('./src/components/authorize-form/index.vue')['default'] + CodeEditor: typeof import('./src/components/code-editor/index.vue')['default'] + EditorSearch: typeof import('./src/components/editor-search/index.vue')['default'] + Login: typeof import('./src/components/authorize-form/login.vue')['default'] + NotifyEditor: typeof import('./src/components/notify-editor/index.vue')['default'] + NotifyView: typeof import('./src/components/notify-view/index.vue')['default'] + Popup: typeof import('./src/components/user-profile/popup/index.vue')['default'] + Register: typeof import('./src/components/authorize-form/register.vue')['default'] + RootLayout: typeof import('./src/components/root-layout/index.vue')['default'] + TButton: typeof import('tdesign-vue-next')['Button'] + TCheckbox: typeof import('tdesign-vue-next')['Checkbox'] + TDrawer: typeof import('tdesign-vue-next')['Drawer'] + TDropdown: typeof import('tdesign-vue-next')['Dropdown'] + TEmpty: typeof import('tdesign-vue-next')['Empty'] + TForm: typeof import('tdesign-vue-next')['Form'] + TFormItem: typeof import('tdesign-vue-next')['FormItem'] + TIcon: typeof import('tdesign-vue-next')['Icon'] + TInput: typeof import('tdesign-vue-next')['Input'] + TiptapCodeBlockButton: typeof import('./src/components/tiptap-editor/TiptapCodeBlockButton.vue')['default'] + TiptapEditor: typeof import('./src/components/tiptap-editor/index.vue')['default'] + TiptapIframeButton: typeof import('./src/components/tiptap-editor/TiptapIframeButton.vue')['default'] + TiptapLinkButton: typeof import('./src/components/tiptap-editor/TiptapLinkButton.vue')['default'] + TiptapMediaButton: typeof import('./src/components/tiptap-editor/TiptapMediaButton.vue')['default'] + TiptapPaddingButton: typeof import('./src/components/tiptap-editor/TiptapPaddingButton.vue')['default'] + TiptapTableButton: typeof import('./src/components/tiptap-editor/TiptapTableButton.vue')['default'] + TiptapToolbar: typeof import('./src/components/tiptap-editor/TiptapToolbar.vue')['default'] + TiptapView: typeof import('./src/components/tiptap-view/index.vue')['default'] + TMenu: typeof import('tdesign-vue-next')['Menu'] + TMenuGroup: typeof import('tdesign-vue-next')['MenuGroup'] + TMenuItem: typeof import('tdesign-vue-next')['MenuItem'] + TPopconfirm: typeof import('tdesign-vue-next')['Popconfirm'] + TSlider: typeof import('tdesign-vue-next')['Slider'] + TTabPanel: typeof import('tdesign-vue-next')['TabPanel'] + TTabs: typeof import('tdesign-vue-next')['Tabs'] + TTextarea: typeof import('tdesign-vue-next')['Textarea'] + UserLevel: typeof import('./src/components/user-level/index.vue')['default'] + UserProfile: typeof import('./src/components/user-profile/index.vue')['default'] + } +}