mirror of https://github.com/halo-dev/halo-admin
				
				
				
			
							parent
							
								
									e632ddac9a
								
							
						
					
					
						commit
						b6321d1bb8
					
				| 
						 | 
				
			
			@ -356,7 +356,8 @@ onMounted(() => {
 | 
			
		|||
                        </span>
 | 
			
		||||
                      </div>
 | 
			
		||||
                    </UserDropdownSelector>
 | 
			
		||||
                    <FloatingDropdown>
 | 
			
		||||
                    <!-- TODO: add filter by ref support -->
 | 
			
		||||
                    <FloatingDropdown v-if="false">
 | 
			
		||||
                      <div
 | 
			
		||||
                        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>
 | 
			
		||||
          </dd>
 | 
			
		||||
        </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>
 | 
			
		||||
          <dd class="mt-1 text-sm text-gray-900 sm:col-span-2 sm:mt-0">
 | 
			
		||||
            // TODO
 | 
			
		||||
            <ul v-if="false" class="mt-2 space-y-2">
 | 
			
		||||
            <ul class="mt-2 space-y-2">
 | 
			
		||||
              <li>
 | 
			
		||||
                <div
 | 
			
		||||
                  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 #actions>
 | 
			
		||||
      <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 :loading="saving" size="sm" type="default" @click="handleSave">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -281,7 +281,13 @@ onMounted(async () => {
 | 
			
		|||
    </template>
 | 
			
		||||
    <template #actions>
 | 
			
		||||
      <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 :loading="saving" size="sm" type="default" @click="handleSave">
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
| 
						 | 
				
			
			@ -3,9 +3,10 @@ import {
 | 
			
		|||
  IconArrowRight,
 | 
			
		||||
  IconBookRead,
 | 
			
		||||
  IconFolder,
 | 
			
		||||
  IconPalette,
 | 
			
		||||
  IconPages,
 | 
			
		||||
  IconPlug,
 | 
			
		||||
  IconUserSettings,
 | 
			
		||||
  IconPalette,
 | 
			
		||||
  VCard,
 | 
			
		||||
} from "@halo-dev/components";
 | 
			
		||||
import { markRaw, type Component } from "vue";
 | 
			
		||||
| 
						 | 
				
			
			@ -26,6 +27,13 @@ const actions: Action[] = [
 | 
			
		|||
      name: "PostEditor",
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    icon: markRaw(IconPages),
 | 
			
		||||
    title: "创建页面",
 | 
			
		||||
    route: {
 | 
			
		||||
      name: "SinglePageEditor",
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
    icon: markRaw(IconFolder),
 | 
			
		||||
    title: "附件上传",
 | 
			
		||||
| 
						 | 
				
			
			@ -38,9 +46,9 @@ const actions: Action[] = [
 | 
			
		|||
  },
 | 
			
		||||
  {
 | 
			
		||||
    icon: markRaw(IconPalette),
 | 
			
		||||
    title: "外观编辑",
 | 
			
		||||
    title: "主题管理",
 | 
			
		||||
    route: {
 | 
			
		||||
      name: "ThemeVisual",
 | 
			
		||||
      name: "ThemeDetail",
 | 
			
		||||
    },
 | 
			
		||||
  },
 | 
			
		||||
  {
 | 
			
		||||
| 
						 | 
				
			
			@ -70,13 +78,11 @@ const router = useRouter();
 | 
			
		|||
    class="h-full"
 | 
			
		||||
    title="快捷访问"
 | 
			
		||||
  >
 | 
			
		||||
    <div
 | 
			
		||||
      class="divide-y divide-x divide-gray-100 overflow-hidden sm:grid sm:grid-cols-3 sm:gap-px sm:divide-y-0"
 | 
			
		||||
    >
 | 
			
		||||
    <div class="overflow-hidden sm:grid sm:grid-cols-3 sm:gap-px">
 | 
			
		||||
      <div
 | 
			
		||||
        v-for="(action, index) in actions"
 | 
			
		||||
        :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)"
 | 
			
		||||
      >
 | 
			
		||||
        <div>
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
		Reference in New Issue