chore: rename views to modules

Signed-off-by: Ryan Wang <i@ryanc.cc>
pull/582/head
Ryan Wang 2022-06-16 22:05:03 +08:00
parent 93d154b484
commit 7df63685cf
39 changed files with 32 additions and 32 deletions

View File

@ -3,7 +3,7 @@ import { BasicLayout } from "@/layouts";
import { IconUpload, VButton, VTabbar } from "@halo-dev/components";
import { onMounted, provide, ref } from "vue";
import { useRoute, useRouter } from "vue-router";
import { users } from "@/views/system/users/users-mock";
import { users } from "@/modules/system/users/users-mock";
const tabs = [
{

View File

@ -17,7 +17,7 @@ import {
VTag,
} from "@halo-dev/components";
import { ref } from "vue";
import { users } from "@/views/system/users/users-mock";
import { users } from "@/modules/system/users/users-mock";
import vueFilePond from "vue-filepond";
import "filepond/dist/filepond.min.css";
import FilePondPluginImagePreview from "filepond-plugin-image-preview";

View File

@ -22,7 +22,7 @@ import { posts } from "./posts-mock";
import { computed, ref } from "vue";
import { useRouter } from "vue-router";
import type { Post } from "@halo-dev/admin-api";
import { users } from "@/views/system/users/users-mock";
import { users } from "@/modules/system/users/users-mock";
const postsRef = ref(
// eslint-disable-next-line

View File

@ -13,7 +13,7 @@ import {
VTag,
} from "@halo-dev/components";
import { ref } from "vue";
import { users } from "@/views/system/users/users-mock";
import { users } from "@/modules/system/users/users-mock";
import halo from "@/assets/logo-mock/halo.png";
const sheetsRef = ref([

View File

@ -1,6 +1,6 @@
<script lang="ts" setup>
import { VCard } from "@halo-dev/components";
import { users } from "@/views/system/users/users-mock";
import { users } from "@/modules/system/users/users-mock";
</script>
<template>
<VCard

View File

@ -1,6 +1,6 @@
<script lang="ts" setup>
import { VCard, VSpace } from "@halo-dev/components";
import { posts } from "@/views/contents/posts/posts-mock";
import { posts } from "@/modules/contents/posts/posts-mock";
</script>
<template>
<VCard

View File

@ -18,7 +18,7 @@ import {
} from "@halo-dev/components";
import { ref } from "vue";
import { RouterLink } from "vue-router";
import { themes } from "@/views/interface/themes/themes-mock";
import { themes } from "@/modules/interface/themes/themes-mock";
const currentTheme = ref(themes[0]);
const changeTheme = ref(false);

View File

@ -10,9 +10,9 @@ import {
VTag,
} from "@halo-dev/components";
import { useRoute, useRouter } from "vue-router";
import { roles } from "@/views/system/roles/roles-mock";
import { roles } from "@/modules/system/roles/roles-mock";
import { ref } from "vue";
import { users } from "@/views/system/users/users-mock";
import { users } from "@/modules/system/users/users-mock";
const route = useRoute();

View File

@ -6,31 +6,31 @@ import {
UserProfileLayout,
} from "@/layouts";
import Dashboard from "../views/dashboard/Dashboard.vue";
import Dashboard from "../modules/dashboard/Dashboard.vue";
import PostList from "../views/contents/posts/PostList.vue";
import PostEditor from "../views/contents/posts/PostEditor.vue";
import SheetList from "../views/contents/sheets/SheetList.vue";
import CategoryList from "../views/contents/posts/categories/CategoryList.vue";
import TagList from "../views/contents/posts/tags/TagList.vue";
import CommentList from "../views/contents/comments/CommentList.vue";
import AttachmentList from "../views/contents/attachments/AttachmentList.vue";
import PostList from "../modules/contents/posts/PostList.vue";
import PostEditor from "../modules/contents/posts/PostEditor.vue";
import SheetList from "../modules/contents/sheets/SheetList.vue";
import CategoryList from "../modules/contents/posts/categories/CategoryList.vue";
import TagList from "../modules/contents/posts/tags/TagList.vue";
import CommentList from "../modules/contents/comments/CommentList.vue";
import AttachmentList from "../modules/contents/attachments/AttachmentList.vue";
import ThemeDetail from "../views/interface/themes/ThemeDetail.vue";
import MenuList from "../views/interface/menus/MenuList.vue";
import Visual from "../views/interface/themes/Visual.vue";
import ThemeDetail from "../modules/interface/themes/ThemeDetail.vue";
import MenuList from "../modules/interface/menus/MenuList.vue";
import Visual from "../modules/interface/themes/Visual.vue";
import PluginList from "../views/system/plugins/PluginList.vue";
import PluginDetail from "../views/system/plugins/PluginDetail.vue";
import UserList from "../views/system/users/UserList.vue";
import RoleList from "../views/system/roles/RoleList.vue";
import RoleDetail from "../views/system/roles/RoleDetail.vue";
import UserDetail from "../views/system/users/UserDetail.vue";
import ProfileModification from "../views/system/users/ProfileModification.vue";
import PasswordChange from "../views/system/users/PasswordChange.vue";
import PersonalAccessTokens from "../views/system/users/PersonalAccessTokens.vue";
import GeneralSettings from "../views/system/settings/GeneralSettings.vue";
import NotificationSettings from "../views/system/settings/NotificationSettings.vue";
import PluginList from "../modules/system/plugins/PluginList.vue";
import PluginDetail from "../modules/system/plugins/PluginDetail.vue";
import UserList from "../modules/system/users/UserList.vue";
import RoleList from "../modules/system/roles/RoleList.vue";
import RoleDetail from "../modules/system/roles/RoleDetail.vue";
import UserDetail from "../modules/system/users/UserDetail.vue";
import ProfileModification from "../modules/system/users/ProfileModification.vue";
import PasswordChange from "../modules/system/users/PasswordChange.vue";
import PersonalAccessTokens from "../modules/system/users/PersonalAccessTokens.vue";
import GeneralSettings from "../modules/system/settings/GeneralSettings.vue";
import NotificationSettings from "../modules/system/settings/NotificationSettings.vue";
export const routes: Array<RouteRecordRaw> = [
{

View File

@ -3,7 +3,7 @@ import { Dropdown, Menu, Tooltip, VClosePopper, VTooltip } from "floating-vue";
import "floating-vue/dist/style.css";
// @ts-ignore
import VueGridLayout from "vue-grid-layout";
import Widgets from "@/views/dashboard/widgets";
import Widgets from "@/modules/dashboard/widgets";
export function setupComponents(app: App) {
app.use(VueGridLayout);