rename&fix
This commit is contained in:
1 parent
1d4feb471c
commit
e840e4eb5a
7 files changed
+36
-8
No files matched your search
@@ -5,6 +5,7 @@
|
|||||||
"type": "module",
|
"type": "module",
|
||||||
"scripts": {
|
"scripts": {
|
||||||
"dev": "vite",
|
"dev": "vite",
|
||||||
|
"dev:host": "vite --host 0.0.0.0",
|
||||||
"build": "vue-tsc -b && vite build",
|
"build": "vue-tsc -b && vite build",
|
||||||
"preview": "vite preview"
|
"preview": "vite preview"
|
||||||
},
|
},
|
||||||
@@ -19,6 +20,7 @@
|
|||||||
"@vitejs/plugin-vue": "^5.1.2",
|
"@vitejs/plugin-vue": "^5.1.2",
|
||||||
"typescript": "^5.5.3",
|
"typescript": "^5.5.3",
|
||||||
"vite": "^5.4.0",
|
"vite": "^5.4.0",
|
||||||
|
"vite-plugin-singlefile": "^2.0.2",
|
||||||
"vue-tsc": "^2.0.29"
|
"vue-tsc": "^2.0.29"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Generated
+25
@@ -33,6 +33,9 @@ importers:
|
|||||||
vite:
|
vite:
|
||||||
specifier: ^5.4.0
|
specifier: ^5.4.0
|
||||||
version: 5.4.0(@types/node@22.1.0)(sass@1.77.8)
|
version: 5.4.0(@types/node@22.1.0)(sass@1.77.8)
|
||||||
|
vite-plugin-singlefile:
|
||||||
|
specifier: ^2.0.2
|
||||||
|
version: 2.0.2(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(sass@1.77.8))
|
||||||
vue-tsc:
|
vue-tsc:
|
||||||
specifier: ^2.0.29
|
specifier: ^2.0.29
|
||||||
version: 2.0.29(typescript@5.5.4)
|
version: 2.0.29(typescript@5.5.4)
|
||||||
@@ -493,6 +496,10 @@ packages:
|
|||||||
magic-string@0.30.11:
|
magic-string@0.30.11:
|
||||||
resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==}
|
resolution: {integrity: sha512-+Wri9p0QHMy+545hKww7YAu5NyzF8iomPL/RQazugQ9+Ez4Ic3mERMd8ZTX5rfK944j+560ZJi8iAwgak1Ac7A==}
|
||||||
|
|
||||||
|
micromatch@4.0.7:
|
||||||
|
resolution: {integrity: sha512-LPP/3KorzCwBxfeUuZmaR6bG2kdeHSbe0P2tY3FLRU4vYrjYz5hI4QZwV0njUx3jeuKe67YukQ1LSPZBKDqO/Q==}
|
||||||
|
engines: {node: '>=8.6'}
|
||||||
|
|
||||||
minimatch@9.0.5:
|
minimatch@9.0.5:
|
||||||
resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
|
resolution: {integrity: sha512-G6T0ZX48xgozx7587koeX9Ys2NYy6Gmv//P89sEte9V9whIapMNF4idKxnW2QtCcLiTWlb/wfCabAtAFWhhBow==}
|
||||||
engines: {node: '>=16 || 14 >=14.17'}
|
engines: {node: '>=16 || 14 >=14.17'}
|
||||||
@@ -581,6 +588,13 @@ packages:
|
|||||||
peerDependencies:
|
peerDependencies:
|
||||||
vue: ^3.0.11
|
vue: ^3.0.11
|
||||||
|
|
||||||
|
vite-plugin-singlefile@2.0.2:
|
||||||
|
resolution: {integrity: sha512-Z2ou6HcvED5CF0hM+vcFSaFa+klyS8RyyLxW0PbMRLnMbvzTI6ueWyxdYNFhpuXZgz/aj6+E/dHFTdEcw6gb9w==}
|
||||||
|
engines: {node: '>18.0.0'}
|
||||||
|
peerDependencies:
|
||||||
|
rollup: ^4.18.0
|
||||||
|
vite: ^5.3.1
|
||||||
|
|
||||||
vite@5.4.0:
|
vite@5.4.0:
|
||||||
resolution: {integrity: sha512-5xokfMX0PIiwCMCMb9ZJcMyh5wbBun0zUzKib+L65vAZ8GY9ePZMXxFrHbr/Kyll2+LSCY7xtERPpxkBDKngwg==}
|
resolution: {integrity: sha512-5xokfMX0PIiwCMCMb9ZJcMyh5wbBun0zUzKib+L65vAZ8GY9ePZMXxFrHbr/Kyll2+LSCY7xtERPpxkBDKngwg==}
|
||||||
engines: {node: ^18.0.0 || >=20.0.0}
|
engines: {node: ^18.0.0 || >=20.0.0}
|
||||||
@@ -1016,6 +1030,11 @@ snapshots:
|
|||||||
dependencies:
|
dependencies:
|
||||||
'@jridgewell/sourcemap-codec': 1.5.0
|
'@jridgewell/sourcemap-codec': 1.5.0
|
||||||
|
|
||||||
|
micromatch@4.0.7:
|
||||||
|
dependencies:
|
||||||
|
braces: 3.0.3
|
||||||
|
picomatch: 2.3.1
|
||||||
|
|
||||||
minimatch@9.0.5:
|
minimatch@9.0.5:
|
||||||
dependencies:
|
dependencies:
|
||||||
brace-expansion: 2.0.1
|
brace-expansion: 2.0.1
|
||||||
@@ -1118,6 +1137,12 @@ snapshots:
|
|||||||
evtd: 0.2.4
|
evtd: 0.2.4
|
||||||
vue: 3.4.37(typescript@5.5.4)
|
vue: 3.4.37(typescript@5.5.4)
|
||||||
|
|
||||||
|
vite-plugin-singlefile@2.0.2(rollup@4.20.0)(vite@5.4.0(@types/node@22.1.0)(sass@1.77.8)):
|
||||||
|
dependencies:
|
||||||
|
micromatch: 4.0.7
|
||||||
|
rollup: 4.20.0
|
||||||
|
vite: 5.4.0(@types/node@22.1.0)(sass@1.77.8)
|
||||||
|
|
||||||
vite@5.4.0(@types/node@22.1.0)(sass@1.77.8):
|
vite@5.4.0(@types/node@22.1.0)(sass@1.77.8):
|
||||||
dependencies:
|
dependencies:
|
||||||
esbuild: 0.21.5
|
esbuild: 0.21.5
|
||||||
|
|||||||
+2
-2
@@ -3,8 +3,8 @@ import { onMounted, reactive } from 'vue';
|
|||||||
import { NIcon, NScrollbar } from 'naive-ui';
|
import { NIcon, NScrollbar } from 'naive-ui';
|
||||||
import { EyeOffOutline, EyeOutline, CloseOutline, CopyOutline, EllipsisVertical } from '@vicons/ionicons5'
|
import { EyeOffOutline, EyeOutline, CloseOutline, CopyOutline, EllipsisVertical } from '@vicons/ionicons5'
|
||||||
import miaoDirectory from './views/miaoDirectory.vue';
|
import miaoDirectory from './views/miaoDirectory.vue';
|
||||||
import VirtualPage from './class/virtualPage';
|
import VirtualPage from './class/VirtualPage';
|
||||||
import VirtualDirectory from './class/virtualDirectory';
|
import VirtualDirectory from './class/VirtualDirectory';
|
||||||
|
|
||||||
const views = reactive<VirtualPage[]>([])
|
const views = reactive<VirtualPage[]>([])
|
||||||
|
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import VirtualDirectory from "./virtualDirectory";
|
import VirtualDirectory from "./VirtualDirectory";
|
||||||
import generateId from "@/hooks/generateId";
|
import generateId from "@/hooks/generateId";
|
||||||
|
|
||||||
const getRandomWebSafeColor = (() => {
|
const getRandomWebSafeColor = (() => {
|
||||||
|
|||||||
@@ -22,7 +22,7 @@
|
|||||||
|
|
||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
|
|
||||||
import VirtualDirectory, { VirtualFile } from '@/class/virtualDirectory';
|
import VirtualDirectory, { VirtualFile } from '@/class/VirtualDirectory';
|
||||||
import { DocumentText, FileTray, Help, Image, LogoChrome, LogoCss3, LogoJavascript, LogoVue, PlayCircle, EllipsisVertical, Disc } from '@vicons/ionicons5';
|
import { DocumentText, FileTray, Help, Image, LogoChrome, LogoCss3, LogoJavascript, LogoVue, PlayCircle, EllipsisVertical, Disc } from '@vicons/ionicons5';
|
||||||
import { computed, ref } from 'vue';
|
import { computed, ref } from 'vue';
|
||||||
import dateFormatter from '@/hooks/dateFormatter';
|
import dateFormatter from '@/hooks/dateFormatter';
|
||||||
|
|||||||
@@ -51,7 +51,7 @@
|
|||||||
<script setup lang="ts">
|
<script setup lang="ts">
|
||||||
import { NBreadcrumbItem, NBreadcrumb, NIcon, NScrollbar } from 'naive-ui'
|
import { NBreadcrumbItem, NBreadcrumb, NIcon, NScrollbar } from 'naive-ui'
|
||||||
import type { file, directory } from '@/types/type.ts'
|
import type { file, directory } from '@/types/type.ts'
|
||||||
import VirtualDirectory from '@/class/virtualDirectory';
|
import VirtualDirectory from '@/class/VirtualDirectory';
|
||||||
import { onMounted, ref } from 'vue';
|
import { onMounted, ref } from 'vue';
|
||||||
import Config from '@/config'
|
import Config from '@/config'
|
||||||
import dropHandler, { dropHandlerHooks } from '@/hooks/dropHandler';
|
import dropHandler, { dropHandlerHooks } from '@/hooks/dropHandler';
|
||||||
@@ -112,11 +112,11 @@ const openUrl = (href: string, config?: {
|
|||||||
}) => {
|
}) => {
|
||||||
let {target, download} = config ?? {}
|
let {target, download} = config ?? {}
|
||||||
|
|
||||||
console.log({target, download})
|
console.log({target, download, href})
|
||||||
const a = document.createElement('a');
|
const a = document.createElement('a');
|
||||||
a.setAttribute('href', href);
|
a.setAttribute('href', href);
|
||||||
a.setAttribute('target', target ?? '_blank')
|
a.setAttribute('target', target ?? '_blank')
|
||||||
a.setAttribute('download', download ?? '');
|
download && a.setAttribute('download', download);
|
||||||
a.click();
|
a.click();
|
||||||
// var a = document.createElement("a");
|
// var a = document.createElement("a");
|
||||||
// a.setAttribute('href', href)
|
// a.setAttribute('href', href)
|
||||||
|
|||||||
+2
-1
@@ -1,10 +1,11 @@
|
|||||||
import { defineConfig } from "vite";
|
import { defineConfig } from "vite";
|
||||||
import vue from "@vitejs/plugin-vue";
|
import vue from "@vitejs/plugin-vue";
|
||||||
import { resolve } from "path";
|
import { resolve } from "path";
|
||||||
|
import { viteSingleFile } from "vite-plugin-singlefile"
|
||||||
|
|
||||||
// https://vitejs.dev/config/
|
// https://vitejs.dev/config/
|
||||||
export default defineConfig({
|
export default defineConfig({
|
||||||
plugins: [vue()],
|
plugins: [vue(), viteSingleFile()],
|
||||||
resolve: {
|
resolve: {
|
||||||
alias: {
|
alias: {
|
||||||
"@": resolve(__dirname, "src")
|
"@": resolve(__dirname, "src")
|
||||||
|
|||||||
Reference in new issue
Block a user