mirror of https://github.com/halo-dev/halo-admin
parent
e632ddac9a
commit
b6321d1bb8
|
@ -356,7 +356,8 @@ onMounted(() => {
|
||||||
</span>
|
</span>
|
||||||
</div>
|
</div>
|
||||||
</UserDropdownSelector>
|
</UserDropdownSelector>
|
||||||
<FloatingDropdown>
|
<!-- TODO: add filter by ref support -->
|
||||||
|
<FloatingDropdown v-if="false">
|
||||||
<div
|
<div
|
||||||
class="flex cursor-pointer select-none items-center text-sm text-gray-700 hover:text-black"
|
class="flex cursor-pointer select-none items-center text-sm text-gray-700 hover:text-black"
|
||||||
>
|
>
|
||||||
|
|
|
@ -169,11 +169,15 @@ const onVisibleChange = (visible: boolean) => {
|
||||||
</a>
|
</a>
|
||||||
</dd>
|
</dd>
|
||||||
</div>
|
</div>
|
||||||
<div class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6">
|
<!-- TODO: add attachment ref support -->
|
||||||
|
<div
|
||||||
|
v-if="false"
|
||||||
|
class="bg-white px-4 py-5 sm:grid sm:grid-cols-3 sm:gap-4 sm:px-6"
|
||||||
|
>
|
||||||
<dt class="text-sm font-medium text-gray-900">引用位置</dt>
|
<dt class="text-sm font-medium text-gray-900">引用位置</dt>
|
||||||
<dd class="mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0">
|
<dd class="mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0">
|
||||||
// TODO
|
// TODO
|
||||||
<ul v-if="false" class="mt-2 space-y-2">
|
<ul class="mt-2 space-y-2">
|
||||||
<li>
|
<li>
|
||||||
<div
|
<div
|
||||||
class="inline-flex w-96 cursor-pointer flex-row gap-x-3 rounded border p-3 hover:border-primary"
|
class="inline-flex w-96 cursor-pointer flex-row gap-x-3 rounded border p-3 hover:border-primary"
|
||||||
|
|
|
@ -182,7 +182,13 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<VSpace>
|
<VSpace>
|
||||||
<VButton size="sm" type="default" @click="previewModal = true">
|
<!-- TODO: add preview single page support -->
|
||||||
|
<VButton
|
||||||
|
v-if="false"
|
||||||
|
size="sm"
|
||||||
|
type="default"
|
||||||
|
@click="previewModal = true"
|
||||||
|
>
|
||||||
预览
|
预览
|
||||||
</VButton>
|
</VButton>
|
||||||
<VButton :loading="saving" size="sm" type="default" @click="handleSave">
|
<VButton :loading="saving" size="sm" type="default" @click="handleSave">
|
||||||
|
|
|
@ -281,7 +281,13 @@ onMounted(async () => {
|
||||||
</template>
|
</template>
|
||||||
<template #actions>
|
<template #actions>
|
||||||
<VSpace>
|
<VSpace>
|
||||||
<VButton size="sm" type="default" @click="previewModal = true">
|
<!-- TODO: add preview post support -->
|
||||||
|
<VButton
|
||||||
|
v-if="false"
|
||||||
|
size="sm"
|
||||||
|
type="default"
|
||||||
|
@click="previewModal = true"
|
||||||
|
>
|
||||||
预览
|
预览
|
||||||
</VButton>
|
</VButton>
|
||||||
<VButton :loading="saving" size="sm" type="default" @click="handleSave">
|
<VButton :loading="saving" size="sm" type="default" @click="handleSave">
|
||||||
|
|
|
@ -3,9 +3,10 @@ import {
|
||||||
IconArrowRight,
|
IconArrowRight,
|
||||||
IconBookRead,
|
IconBookRead,
|
||||||
IconFolder,
|
IconFolder,
|
||||||
IconPalette,
|
IconPages,
|
||||||
IconPlug,
|
IconPlug,
|
||||||
IconUserSettings,
|
IconUserSettings,
|
||||||
|
IconPalette,
|
||||||
VCard,
|
VCard,
|
||||||
} from "@halo-dev/components";
|
} from "@halo-dev/components";
|
||||||
import { markRaw, type Component } from "vue";
|
import { markRaw, type Component } from "vue";
|
||||||
|
@ -26,6 +27,13 @@ const actions: Action[] = [
|
||||||
name: "PostEditor",
|
name: "PostEditor",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
{
|
||||||
|
icon: markRaw(IconPages),
|
||||||
|
title: "创建页面",
|
||||||
|
route: {
|
||||||
|
name: "SinglePageEditor",
|
||||||
|
},
|
||||||
|
},
|
||||||
{
|
{
|
||||||
icon: markRaw(IconFolder),
|
icon: markRaw(IconFolder),
|
||||||
title: "附件上传",
|
title: "附件上传",
|
||||||
|
@ -38,9 +46,9 @@ const actions: Action[] = [
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
icon: markRaw(IconPalette),
|
icon: markRaw(IconPalette),
|
||||||
title: "外观编辑",
|
title: "主题管理",
|
||||||
route: {
|
route: {
|
||||||
name: "ThemeVisual",
|
name: "ThemeDetail",
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
|
@ -70,13 +78,11 @@ const router = useRouter();
|
||||||
class="h-full"
|
class="h-full"
|
||||||
title="快捷访问"
|
title="快捷访问"
|
||||||
>
|
>
|
||||||
<div
|
<div class="overflow-hidden sm:grid sm:grid-cols-3 sm:gap-px">
|
||||||
class="divide-y divide-x divide-gray-100 overflow-hidden sm:grid sm:grid-cols-3 sm:gap-px sm:divide-y-0"
|
|
||||||
>
|
|
||||||
<div
|
<div
|
||||||
v-for="(action, index) in actions"
|
v-for="(action, index) in actions"
|
||||||
:key="index"
|
:key="index"
|
||||||
class="group relative cursor-pointer bg-white p-6 hover:bg-gray-50"
|
class="group relative cursor-pointer bg-white p-6 transition-all hover:bg-gray-50"
|
||||||
@click="router.push(action.route)"
|
@click="router.push(action.route)"
|
||||||
>
|
>
|
||||||
<div>
|
<div>
|
||||||
|
|
Loading…
Reference in New Issue