mirror of https://github.com/halo-dev/halo
parent
28a4a13e0e
commit
677caca403
|
@ -49,7 +49,7 @@ async function loadUserPermissions() {
|
||||||
const { value } = binding;
|
const { value } = binding;
|
||||||
const { any, enable } = binding.modifiers;
|
const { any, enable } = binding.modifiers;
|
||||||
|
|
||||||
if (hasPermission(uiPermissions, value, any)) {
|
if (hasPermission(uiPermissions, value, any ?? false)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
|
@ -80,7 +80,6 @@ const { handleExportThemeConfiguration, openSelectImportFileDialog } =
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<template>
|
<template>
|
||||||
<Transition mode="out-in" name="fade">
|
|
||||||
<div class="overflow-hidden rounded-b-base">
|
<div class="overflow-hidden rounded-b-base">
|
||||||
<div class="bg-white px-4 py-4 sm:px-6">
|
<div class="bg-white px-4 py-4 sm:px-6">
|
||||||
<div class="group flex items-center justify-between">
|
<div class="group flex items-center justify-between">
|
||||||
|
@ -147,10 +146,7 @@ const { handleExportThemeConfiguration, openSelectImportFileDialog } =
|
||||||
</div>
|
</div>
|
||||||
<div class="border-t border-gray-200">
|
<div class="border-t border-gray-200">
|
||||||
<VDescription>
|
<VDescription>
|
||||||
<VDescriptionItem
|
<VDescriptionItem label="ID" :content="selectedTheme?.metadata.name" />
|
||||||
label="ID"
|
|
||||||
:content="selectedTheme?.metadata.name"
|
|
||||||
/>
|
|
||||||
<VDescriptionItem
|
<VDescriptionItem
|
||||||
:label="$t('core.theme.detail.fields.description')"
|
:label="$t('core.theme.detail.fields.description')"
|
||||||
:content="
|
:content="
|
||||||
|
@ -220,8 +216,7 @@ const { handleExportThemeConfiguration, openSelectImportFileDialog } =
|
||||||
<VDescriptionItem :label="$t('core.theme.detail.fields.license')">
|
<VDescriptionItem :label="$t('core.theme.detail.fields.license')">
|
||||||
<ul
|
<ul
|
||||||
v-if="
|
v-if="
|
||||||
selectedTheme?.spec.license &&
|
selectedTheme?.spec.license && selectedTheme?.spec.license.length
|
||||||
selectedTheme?.spec.license.length
|
|
||||||
"
|
"
|
||||||
class="list-inside"
|
class="list-inside"
|
||||||
:class="{ 'list-disc': selectedTheme?.spec.license.length > 1 }"
|
:class="{ 'list-disc': selectedTheme?.spec.license.length > 1 }"
|
||||||
|
@ -249,5 +244,4 @@ const { handleExportThemeConfiguration, openSelectImportFileDialog } =
|
||||||
</VDescription>
|
</VDescription>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -71,7 +71,6 @@ const handleSaveConfigMap = async (data: object) => {
|
||||||
await suspense();
|
await suspense();
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<Transition mode="out-in" name="fade">
|
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
<FormKit
|
<FormKit
|
||||||
v-if="group && formSchema && currentConfigMapGroupData"
|
v-if="group && formSchema && currentConfigMapGroupData"
|
||||||
|
@ -101,5 +100,4 @@ await suspense();
|
||||||
</VButton>
|
</VButton>
|
||||||
</StickyBlock>
|
</StickyBlock>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -97,7 +97,6 @@ const lastCondition = computed(() => {
|
||||||
:plugin="plugin"
|
:plugin="plugin"
|
||||||
@close="conditionsModalVisible = false"
|
@close="conditionsModalVisible = false"
|
||||||
/>
|
/>
|
||||||
<Transition mode="out-in" name="fade">
|
|
||||||
<div class="overflow-hidden rounded-b-base">
|
<div class="overflow-hidden rounded-b-base">
|
||||||
<div class="flex items-center justify-between bg-white px-4 py-4 sm:px-6">
|
<div class="flex items-center justify-between bg-white px-4 py-4 sm:px-6">
|
||||||
<div>
|
<div>
|
||||||
|
@ -289,5 +288,4 @@ const lastCondition = computed(() => {
|
||||||
</VDescription>
|
</VDescription>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -68,7 +68,6 @@ const handleSaveConfigMap = async (data: object) => {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<Transition mode="out-in" name="fade">
|
|
||||||
<div class="rounded-b-base bg-white p-4">
|
<div class="rounded-b-base bg-white p-4">
|
||||||
<div>
|
<div>
|
||||||
<FormKit
|
<FormKit
|
||||||
|
@ -101,5 +100,4 @@ const handleSaveConfigMap = async (data: object) => {
|
||||||
</VButton>
|
</VButton>
|
||||||
</StickyBlock>
|
</StickyBlock>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -68,7 +68,6 @@ const handleSaveConfigMap = async () => {
|
||||||
};
|
};
|
||||||
</script>
|
</script>
|
||||||
<template>
|
<template>
|
||||||
<Transition mode="out-in" name="fade">
|
|
||||||
<div class="p-4">
|
<div class="p-4">
|
||||||
<FormKit
|
<FormKit
|
||||||
v-if="group && formSchema && configMapFormData?.[group]"
|
v-if="group && formSchema && configMapFormData?.[group]"
|
||||||
|
@ -100,5 +99,4 @@ const handleSaveConfigMap = async () => {
|
||||||
</VButton>
|
</VButton>
|
||||||
</StickyBlock>
|
</StickyBlock>
|
||||||
</div>
|
</div>
|
||||||
</Transition>
|
|
||||||
</template>
|
</template>
|
||||||
|
|
|
@ -92,24 +92,24 @@
|
||||||
"overlayscrollbars": "^2.5.0",
|
"overlayscrollbars": "^2.5.0",
|
||||||
"overlayscrollbars-vue": "^0.5.7",
|
"overlayscrollbars-vue": "^0.5.7",
|
||||||
"path-browserify": "^1.0.1",
|
"path-browserify": "^1.0.1",
|
||||||
"pinia": "^2.1.6",
|
"pinia": "^3.0.3",
|
||||||
"pretty-bytes": "^6.0.0",
|
"pretty-bytes": "^6.0.0",
|
||||||
"qrcode": "^1.5.3",
|
"qrcode": "^1.5.3",
|
||||||
"qs": "^6.11.1",
|
"qs": "^6.11.1",
|
||||||
"short-unique-id": "^5.0.2",
|
"short-unique-id": "^5.0.2",
|
||||||
"transliteration": "^2.3.5",
|
"transliteration": "^2.3.5",
|
||||||
"ua-parser-js": "^1.0.38",
|
"ua-parser-js": "^1.0.38",
|
||||||
"vue": "^3.5.13",
|
"vue": "^3.5.16",
|
||||||
"vue-demi": "^0.14.10",
|
"vue-demi": "^0.14.10",
|
||||||
"vue-draggable-plus": "^0.4.1",
|
"vue-draggable-plus": "^0.4.1",
|
||||||
"vue-grid-layout": "3.0.0-beta1",
|
"vue-grid-layout": "3.0.0-beta1",
|
||||||
"vue-i18n": "^9.14.2",
|
"vue-i18n": "^11.1.5",
|
||||||
"vue-router": "^4.3.2"
|
"vue-router": "^4.5.1"
|
||||||
},
|
},
|
||||||
"devDependencies": {
|
"devDependencies": {
|
||||||
"@iconify/json": "^2.2.235",
|
"@iconify/json": "^2.2.235",
|
||||||
"@intlify/unplugin-vue-i18n": "^4.0.0",
|
"@intlify/unplugin-vue-i18n": "^6.0.8",
|
||||||
"@number-flow/vue": "^0.4.7",
|
"@number-flow/vue": "^0.4.8",
|
||||||
"@rushstack/eslint-patch": "^1.3.2",
|
"@rushstack/eslint-patch": "^1.3.2",
|
||||||
"@tailwindcss/aspect-ratio": "^0.4.2",
|
"@tailwindcss/aspect-ratio": "^0.4.2",
|
||||||
"@tailwindcss/container-queries": "^0.1.0",
|
"@tailwindcss/container-queries": "^0.1.0",
|
||||||
|
@ -123,10 +123,10 @@
|
||||||
"@types/randomstring": "^1.1.8",
|
"@types/randomstring": "^1.1.8",
|
||||||
"@types/ua-parser-js": "^0.7.39",
|
"@types/ua-parser-js": "^0.7.39",
|
||||||
"@vitejs/plugin-legacy": "^6.0.0",
|
"@vitejs/plugin-legacy": "^6.0.0",
|
||||||
"@vitejs/plugin-vue": "^5.2.1",
|
"@vitejs/plugin-vue": "^5.2.4",
|
||||||
"@vitejs/plugin-vue-jsx": "^4.1.1",
|
"@vitejs/plugin-vue-jsx": "^4.2.0",
|
||||||
"@vitest/ui": "^0.34.1",
|
"@vitest/ui": "^0.34.1",
|
||||||
"@vue/compiler-sfc": "^3.5.13",
|
"@vue/compiler-sfc": "^3.5.16",
|
||||||
"@vue/eslint-config-prettier": "^7.1.0",
|
"@vue/eslint-config-prettier": "^7.1.0",
|
||||||
"@vue/eslint-config-typescript": "^11.0.3",
|
"@vue/eslint-config-typescript": "^11.0.3",
|
||||||
"@vue/test-utils": "^2.4.6",
|
"@vue/test-utils": "^2.4.6",
|
||||||
|
@ -134,7 +134,7 @@
|
||||||
"autoprefixer": "^10.4.14",
|
"autoprefixer": "^10.4.14",
|
||||||
"c8": "^7.12.0",
|
"c8": "^7.12.0",
|
||||||
"eslint": "^8.43.0",
|
"eslint": "^8.43.0",
|
||||||
"eslint-plugin-vue": "^9.17.0",
|
"eslint-plugin-vue": "^9.33.0",
|
||||||
"husky": "^8.0.3",
|
"husky": "^8.0.3",
|
||||||
"js-yaml": "^4.1.0",
|
"js-yaml": "^4.1.0",
|
||||||
"jsdom": "^20.0.3",
|
"jsdom": "^20.0.3",
|
||||||
|
@ -153,7 +153,7 @@
|
||||||
"tailwindcss-safe-area": "^0.2.2",
|
"tailwindcss-safe-area": "^0.2.2",
|
||||||
"tailwindcss-themer": "^2.0.3",
|
"tailwindcss-themer": "^2.0.3",
|
||||||
"terser": "^5.37.0",
|
"terser": "^5.37.0",
|
||||||
"typescript": "~5.6.2",
|
"typescript": "~5.8.0",
|
||||||
"unplugin-icons": "^0.19.2",
|
"unplugin-icons": "^0.19.2",
|
||||||
"vite": "^6.0.3",
|
"vite": "^6.0.3",
|
||||||
"vite-plugin-externals": "^0.6.2",
|
"vite-plugin-externals": "^0.6.2",
|
||||||
|
@ -161,7 +161,7 @@
|
||||||
"vite-plugin-pwa": "^0.20.0",
|
"vite-plugin-pwa": "^0.20.0",
|
||||||
"vite-plugin-static-copy": "^1.0.6",
|
"vite-plugin-static-copy": "^1.0.6",
|
||||||
"vitest": "^0.34.1",
|
"vitest": "^0.34.1",
|
||||||
"vue-tsc": "^2.1.6"
|
"vue-tsc": "^2.2.10"
|
||||||
},
|
},
|
||||||
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
|
"packageManager": "pnpm@9.15.0+sha512.76e2379760a4328ec4415815bcd6628dee727af3779aaa4c914e3944156c4299921a89f976381ee107d41f12cfa4b66681ca9c718f0668fa0831ed4c6d8ba56c"
|
||||||
}
|
}
|
||||||
|
|
|
@ -61,8 +61,8 @@
|
||||||
"vite-plugin-dts": "^4.2.2"
|
"vite-plugin-dts": "^4.2.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.5.13",
|
"vue": "^3.5.16",
|
||||||
"vue-router": "^4.3.2"
|
"vue-router": "^4.5.1"
|
||||||
},
|
},
|
||||||
"exports": {
|
"exports": {
|
||||||
".": {
|
".": {
|
||||||
|
|
|
@ -90,6 +90,6 @@
|
||||||
"vite-plugin-dts": "^4.2.2"
|
"vite-plugin-dts": "^4.2.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.5.13"
|
"vue": "^3.5.16"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -14,7 +14,7 @@ const props = defineProps<{
|
||||||
filterSort?: (options: Option[], query: string) => number;
|
filterSort?: (options: Option[], query: string) => number;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
const value = defineModel({
|
const value = defineModel<string>({
|
||||||
default: "",
|
default: "",
|
||||||
});
|
});
|
||||||
|
|
||||||
|
|
|
@ -41,8 +41,8 @@
|
||||||
"vite-plugin-dts": "^4.2.2"
|
"vite-plugin-dts": "^4.2.2"
|
||||||
},
|
},
|
||||||
"peerDependencies": {
|
"peerDependencies": {
|
||||||
"vue": "^3.5.13",
|
"vue": "^3.5.16",
|
||||||
"vue-router": "^4.3.2"
|
"vue-router": "^4.5.1"
|
||||||
},
|
},
|
||||||
"dependencies": {
|
"dependencies": {
|
||||||
"@halo-dev/api-client": "workspace:*"
|
"@halo-dev/api-client": "workspace:*"
|
||||||
|
|
|
@ -27,7 +27,7 @@ import type { AttachmentSelectProvider } from "../states/attachment-selector";
|
||||||
import type { FunctionalPage } from "../states/pages";
|
import type { FunctionalPage } from "../states/pages";
|
||||||
|
|
||||||
export interface RouteRecordAppend {
|
export interface RouteRecordAppend {
|
||||||
parentName: RouteRecordName;
|
parentName: NonNullable<RouteRecordName>;
|
||||||
route: RouteRecordRaw;
|
route: RouteRecordRaw;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
1924
ui/pnpm-lock.yaml
1924
ui/pnpm-lock.yaml
File diff suppressed because it is too large
Load Diff
|
@ -42,7 +42,7 @@ async function loadUserPermissions() {
|
||||||
const { value } = binding;
|
const { value } = binding;
|
||||||
const { any, enable } = binding.modifiers;
|
const { any, enable } = binding.modifiers;
|
||||||
|
|
||||||
if (hasPermission(uiPermissions, value, any)) {
|
if (hasPermission(uiPermissions, value, any ?? false)) {
|
||||||
return;
|
return;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue