diff --git a/package.json b/package.json index 2c0bb3f1..9e2a5654 100644 --- a/package.json +++ b/package.json @@ -49,6 +49,7 @@ "stub": "unbuild --stub", "lint": "eslint .", "changelog": "conventional-changelog -p angular -i CHANGELOG.md -s", + "lint:fix": "eslint --fix .", "prepublishOnly": "npm run build", "release": "bumpp && nr changelog && npm publish", "dep:up": "taze -I major" diff --git a/src/client/components.d.ts b/src/client/components.d.ts index 5ca18ad9..4493db50 100644 --- a/src/client/components.d.ts +++ b/src/client/components.d.ts @@ -13,8 +13,10 @@ declare module 'vue' { AssetListItem: typeof import('./components/AssetListItem.vue')['default'] AssetPreview: typeof import('./components/AssetPreview.vue')['default'] ComponentTreeNode: typeof import('./components/ComponentTreeNode.vue')['default'] + DocAdd: typeof import('./components/DocAdd.vue')['default'] DocDetails: typeof import('./components/DocDetails.vue')['default'] DockingPanel: typeof import('./components/DockingPanel.vue')['default'] + DocSetting: typeof import('./components/DocSetting.vue')['default'] DrawerRight: typeof import('./components/DrawerRight.vue')['default'] FilepathItem: typeof import('./components/FilepathItem.vue')['default'] GraphSettings: typeof import('./components/GraphSettings.vue')['default'] diff --git a/src/client/components/AssetPreview.vue b/src/client/components/AssetPreview.vue index e076b0af..1e992eb5 100644 --- a/src/client/components/AssetPreview.vue +++ b/src/client/components/AssetPreview.vue @@ -19,7 +19,7 @@ defineProps<{ />
-
+      
     
diff --git a/src/client/components/DocAdd.vue b/src/client/components/DocAdd.vue new file mode 100644 index 00000000..11c5b726 --- /dev/null +++ b/src/client/components/DocAdd.vue @@ -0,0 +1,83 @@ + + + + + diff --git a/src/client/components/DocDetails.vue b/src/client/components/DocDetails.vue index e400da77..1ffcc55c 100644 --- a/src/client/components/DocDetails.vue +++ b/src/client/components/DocDetails.vue @@ -1,7 +1,8 @@ diff --git a/src/client/components/DocSetting.vue b/src/client/components/DocSetting.vue new file mode 100644 index 00000000..f335d95c --- /dev/null +++ b/src/client/components/DocSetting.vue @@ -0,0 +1,29 @@ + + + diff --git a/src/client/components/DockingPanel.vue b/src/client/components/DockingPanel.vue index 2ecfe6f1..bb75f8a1 100644 --- a/src/client/components/DockingPanel.vue +++ b/src/client/components/DockingPanel.vue @@ -8,7 +8,7 @@ import { isInPopup } from '../logic/state' -
+
{{ isDark.value ? "Dark" : "Light" }} diff --git a/src/client/components/RoutePathItem.vue b/src/client/components/RoutePathItem.vue index 73163acb..53262e8a 100644 --- a/src/client/components/RoutePathItem.vue +++ b/src/client/components/RoutePathItem.vue @@ -48,7 +48,7 @@ function navigate() {
Fill params and navigate:
-
+
- + {{ item?.owner?.name ?? '-' }} - + {{ item.humanDownloadsLast30Days }} diff --git a/src/client/pages/settings.vue b/src/client/pages/settings.vue index 8be58c91..4f85a56e 100644 --- a/src/client/pages/settings.vue +++ b/src/client/pages/settings.vue @@ -104,7 +104,7 @@ const showTabGroup = ref(false)
-
{{ isDark.value ? 'Dark' : 'Light' }} +
{{ isDark.value ? 'Dark' : 'Light' }}
@@ -119,6 +119,12 @@ const showTabGroup = ref(false)
+
+

+ Documentions +

+ +

Close DevTools when clicking outside diff --git a/src/client/uno.config.ts b/src/client/uno.config.ts index faf51ff6..9e58ca50 100644 --- a/src/client/uno.config.ts +++ b/src/client/uno.config.ts @@ -35,6 +35,9 @@ export default defineConfig({ // Vue tag 'vue-tag-symbol': 'text-gray-400 dark:text-gray-600', 'vue-tag-symbol-active': 'text-white/60', + + // Vue Doc + 'vue-doc-required': 'after:content-["*"] after:color-primary after:ml-4px', }, [/^theme-card-(\w+)$/, $ => `p2 flex gap2 border border-base bg-base items-center rounded min-w-40 min-h-25 justify-center transition-all saturate-0 op50 shadow hover:(op100 bg-${$[1]}/10 text-${$[1]}6 saturate-100)`], ], diff --git a/src/types.ts b/src/types.ts index 3f9a94c7..df9d3b63 100644 --- a/src/types.ts +++ b/src/types.ts @@ -101,12 +101,12 @@ export type BuiltinTab = WithOptional export interface DocumentInfo { id: string name: string - description: string website: string - github: string - icon: string - tips: string - openInBlank: boolean + description?: string + github?: string + icon?: string + tips?: string + openInBlank?: boolean } export interface PackageInfo {