-
-
-
-
-
- {{ name }}
-
-
- {{ time }}
-
-
-
-
-
+
+
+
+
+
+
+
+
+
+ {{ name }}
+
+
+
+ {{ time }}
+
-
-
+
+
+
+
+
+
diff --git a/src/plugins/miaoDirectory/components/miaoDirectoryItemsContainer.vue b/src/plugins/miaoDirectory/components/miaoDirectoryItemsContainer.vue
index 4b27bf8..fd0ce95 100644
--- a/src/plugins/miaoDirectory/components/miaoDirectoryItemsContainer.vue
+++ b/src/plugins/miaoDirectory/components/miaoDirectoryItemsContainer.vue
@@ -1,46 +1,54 @@
-
-
-
- handleItemUsePlugin(dir)(p)"
- @click="handleItemClick(dir)"
- @drag-start="(e) => handleItemDragStart(dir)(e)"
- @rename="handleItemRename(dir)"
- @on-selected="handleItemSelect(dir)" />
-
-
- handleItemDragStart(file)(e)"
- @rename="handleItemRename(file)"
- @plugin="(p) => handleItemUsePlugin(file)(p)"
- @on-selected="handleItemSelect(file)" />
-
-
-
+
+
+
+ handleItemUsePlugin(dir)(p)"
+ @click="handleItemClick(dir)"
+ @drag-start="(e) => handleItemDragStart(dir)(e)"
+ @rename="handleItemRename(dir)"
+ @on-selected="handleItemSelect(dir)"
+ />
+
+
+ handleItemDragStart(file)(e)"
+ @rename="handleItemRename(file)"
+ @plugin="(p) => handleItemUsePlugin(file)(p)"
+ @on-selected="handleItemSelect(file)"
+ />
+
+
+
diff --git a/src/plugins/miaoDirectory/components/miaoDirectoryTop.vue b/src/plugins/miaoDirectory/components/miaoDirectoryTop.vue
index 5aefc83..6ffc777 100644
--- a/src/plugins/miaoDirectory/components/miaoDirectoryTop.vue
+++ b/src/plugins/miaoDirectory/components/miaoDirectoryTop.vue
@@ -1,152 +1,176 @@
-
-
-
-
-
-
-
-
-
-
-
- {{ dir.name }}
-
-
-
-
-
+
\ No newline at end of file
+
diff --git a/src/plugins/miaoDirectory/export.ts b/src/plugins/miaoDirectory/export.ts
index 5563d08..aa56667 100644
--- a/src/plugins/miaoDirectory/export.ts
+++ b/src/plugins/miaoDirectory/export.ts
@@ -3,21 +3,20 @@ import FileTray from '@vicons/ionicons5/es/FileTray'
// import MiaoDirectory from '@/plugins/miaoDirectory/miaoDirectory.vue'
const pluginConfig: registerComponentOption = {
- key: 'miaoDirectory',
- name: '文件夹',
- icon: FileTray,
- getComponent: async () =>
- (await import('@/plugins/miaoDirectory/miaoDirectory.vue')).default,
- filter: (vDirs, vFiles) => {
- if (vFiles.length) {
- return false
- }
- return vDirs.length === 1
- }
+ key: 'miaoDirectory',
+ name: '文件夹',
+ icon: FileTray,
+ getComponent: async () =>
+ (await import('@/plugins/miaoDirectory/miaoDirectory.vue')).default,
+ filter: (vDirs, vFiles) => {
+ if (vFiles.length) {
+ return false
+ }
+ return vDirs.length === 1
+ }
}
export default pluginConfig
-
import { PluginExportType } from '@/types/type'
-export const type = PluginExportType.component
\ No newline at end of file
+export const type = PluginExportType.component
diff --git a/src/plugins/miaoDirectory/export_onInit.ts b/src/plugins/miaoDirectory/export_onInit.ts
index 3f7cc73..61be2e1 100644
--- a/src/plugins/miaoDirectory/export_onInit.ts
+++ b/src/plugins/miaoDirectory/export_onInit.ts
@@ -1,37 +1,40 @@
-import { Plugin, PluginGroup } from "@/class/PluginCenter";
-import { PluginExportType } from "@/types/type";
-import { watch } from "vue";
+import { Plugin, PluginGroup } from '@/class/PluginCenter'
+import { PluginExportType } from '@/types/type'
+import { watch } from 'vue'
const pluginConfig: Plugin = {
- name: "初始化完成之后打开miaoDirectory",
- filter: () => {
- return false;
- },
- disable: false,
- group: [PluginGroup.immediately],
- func: (_, __, hooks) => {
- const { getPluginCenter, getRootVDirectory, getViews } = hooks
- const views = getViews();
- const pc = getPluginCenter();
- const root = getRootVDirectory();
- setTimeout(() => {
- if (views.length === 0) {
- pc.usePlugin('miaoDirectory', [root])
- }
- watch(() => views.length, () => {
- if(views.length === 0) {
- pc.usePlugin('miaoDirectory', [root])
- }
- })
-
- pc.deregister('miaoDirectory_onInit')
- })
- },
- priority: -1
-};
+ name: '初始化完成之后打开miaoDirectory',
+ filter: () => {
+ return false
+ },
+ disable: false,
+ group: [PluginGroup.immediately],
+ func: (_, __, hooks) => {
+ const { getPluginCenter, getRootVDirectory, getViews } = hooks
+ const views = getViews()
+ const pc = getPluginCenter()
+ const root = getRootVDirectory()
+ setTimeout(() => {
+ if (views.length === 0) {
+ pc.usePlugin('miaoDirectory', [root])
+ }
+ watch(
+ () => views.length,
+ () => {
+ if (views.length === 0) {
+ pc.usePlugin('miaoDirectory', [root])
+ }
+ }
+ )
-export default pluginConfig;
+ pc.deregister('miaoDirectory_onInit')
+ })
+ },
+ priority: -1
+}
-export const type = PluginExportType.default;
+export default pluginConfig
-export const key = "miaoDirectory_onInit";
+export const type = PluginExportType.default
+
+export const key = 'miaoDirectory_onInit'
diff --git a/src/plugins/miaoDirectory/miaoDirectory.vue b/src/plugins/miaoDirectory/miaoDirectory.vue
index 20ebab3..5c346f1 100644
--- a/src/plugins/miaoDirectory/miaoDirectory.vue
+++ b/src/plugins/miaoDirectory/miaoDirectory.vue
@@ -1,50 +1,57 @@
-
-
-
-
-
+
+
+
+
+
-
-
+
+
-
-
+
+
-
-
-
-
-
+
+
+
+
+
@@ -672,12 +675,12 @@ $top-height: 30px;
$bottom-bar-height: 60px;
.miao-directory-item-container {
- position: relative;
- height: 100%;
- width: inherit;
- display: flex;
- flex-direction: column;
- overflow: hidden;
- min-width: 170px;
+ position: relative;
+ height: 100%;
+ width: inherit;
+ display: flex;
+ flex-direction: column;
+ overflow: hidden;
+ min-width: 170px;
}
diff --git a/src/plugins/miaoIframe/export.ts b/src/plugins/miaoIframe/export.ts
index 894358c..fa73b29 100644
--- a/src/plugins/miaoIframe/export.ts
+++ b/src/plugins/miaoIframe/export.ts
@@ -2,25 +2,24 @@ import { registerComponentOption } from '@/class/PluginCenter'
import LogoChrome from '@vicons/ionicons5/es/LogoChrome'
const pluginConfig: registerComponentOption = {
- key: 'miaoIframe',
- name: '框架',
- icon: LogoChrome,
- getComponent: async () =>
- (await import('@/plugins/miaoIframe/miaoIframe.vue')).default,
- filter: (vDirs, vFiles) => {
- if (vDirs.length !== 0) {
- return false
- }
- if (vFiles.length !== 1) {
- return false
- }
- return vFiles[0].name.endsWith('html')
- },
- priority: 2
+ key: 'miaoIframe',
+ name: '框架',
+ icon: LogoChrome,
+ getComponent: async () =>
+ (await import('@/plugins/miaoIframe/miaoIframe.vue')).default,
+ filter: (vDirs, vFiles) => {
+ if (vDirs.length !== 0) {
+ return false
+ }
+ if (vFiles.length !== 1) {
+ return false
+ }
+ return vFiles[0].name.endsWith('html')
+ },
+ priority: 2
}
export default pluginConfig
-
import { PluginExportType } from '@/types/type'
-export const type = PluginExportType.component
\ No newline at end of file
+export const type = PluginExportType.component
diff --git a/src/plugins/miaoIframe/miaoIframe.vue b/src/plugins/miaoIframe/miaoIframe.vue
index d4eef28..4ac1750 100644
--- a/src/plugins/miaoIframe/miaoIframe.vue
+++ b/src/plugins/miaoIframe/miaoIframe.vue
@@ -1,52 +1,54 @@
-
-
-
+
+
+
diff --git a/src/plugins/miaoImages/export.ts b/src/plugins/miaoImages/export.ts
index ad1ae1c..568d872 100644
--- a/src/plugins/miaoImages/export.ts
+++ b/src/plugins/miaoImages/export.ts
@@ -3,47 +3,46 @@ import VirtualDirectory, { VirtualFile } from '@/class/VirtualDirectory'
import { Image } from '@vicons/ionicons5'
const pluginConfig: registerComponentOption = {
- key: 'miaoImages',
- name: '图片浏览',
- icon: Image,
- getComponent: async () =>
- (await import('@/plugins/miaoImages/miaoImages.vue')).default,
- filter: (vDirs: VirtualDirectory[], vFiles: VirtualFile[]) => {
- if (vDirs.length === 0 && vFiles.length === 0) {
- return false
- }
- if (vDirs.length) {
- return true
- }
- for (let vf of vFiles)
- for (let end of [
- 'xbm',
- 'tif',
- 'pjp',
- 'svgz',
- 'jpg',
- 'jpeg',
- 'ico',
- 'tiff',
- 'gif',
- 'svg',
- 'jfif',
- 'webp',
- 'png',
- '.bmp',
- 'pjpeg',
- 'avif'
- ]) {
- if (vf.name.endsWith(end)) {
- return true
- }
+ key: 'miaoImages',
+ name: '图片浏览',
+ icon: Image,
+ getComponent: async () =>
+ (await import('@/plugins/miaoImages/miaoImages.vue')).default,
+ filter: (vDirs: VirtualDirectory[], vFiles: VirtualFile[]) => {
+ if (vDirs.length === 0 && vFiles.length === 0) {
+ return false
+ }
+ if (vDirs.length) {
+ return true
+ }
+ for (let vf of vFiles)
+ for (let end of [
+ 'xbm',
+ 'tif',
+ 'pjp',
+ 'svgz',
+ 'jpg',
+ 'jpeg',
+ 'ico',
+ 'tiff',
+ 'gif',
+ 'svg',
+ 'jfif',
+ 'webp',
+ 'png',
+ '.bmp',
+ 'pjpeg',
+ 'avif'
+ ]) {
+ if (vf.name.endsWith(end)) {
+ return true
}
- return false
- }
+ }
+ return false
+ }
}
export default pluginConfig
-
import { PluginExportType } from '@/types/type'
-export const type = PluginExportType.component
\ No newline at end of file
+export const type = PluginExportType.component
diff --git a/src/plugins/miaoImages/miaoImages.vue b/src/plugins/miaoImages/miaoImages.vue
index df4fd31..c0620bf 100644
--- a/src/plugins/miaoImages/miaoImages.vue
+++ b/src/plugins/miaoImages/miaoImages.vue
@@ -1,62 +1,76 @@
-
-
-
-
-
-
-
-
- {{ imageGroup.day }}
-
-
-
-
-
![]()
-
-
-
-
-
-
e.stopPropagation()"
- draggable="false"
- :style="{transform: `scale(${imgViewScale})`}" />
-
-
-
-
-
+
+