You've already forked obsidian-visualiser
Change shared files naming. Rework tree structure and item management rendering.
This commit is contained in:
@@ -31,10 +31,10 @@
|
||||
</script>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { format } from '#shared/general.util';
|
||||
import { iconByType } from '#shared/content.util';
|
||||
import { format } from '~~/shared/general';
|
||||
import { iconByType } from '~~/shared/content';
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
|
||||
interface File
|
||||
{
|
||||
|
||||
@@ -15,7 +15,7 @@ const schemaList: Record<string, z.ZodObject<any> | null> = {
|
||||
<script setup lang="ts">
|
||||
import { z } from 'zod/v4';
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
|
||||
definePageMeta({
|
||||
rights: ['admin'],
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { unifySlug } from '#shared/general.util';
|
||||
import { CampaignSheet } from '#shared/campaign.util';
|
||||
import { unifySlug } from '~~/shared/general';
|
||||
import { CampaignSheet } from '~~/shared/campaign';
|
||||
|
||||
definePageMeta({
|
||||
requiresAuth: true,
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
|
||||
definePageMeta({
|
||||
requiresAuth: true,
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { CharacterBuilder } from '#shared/character.util';
|
||||
import { unifySlug } from '#shared/general.util';
|
||||
import { CharacterBuilder } from '~~/shared/character';
|
||||
import { unifySlug } from '~~/shared/general';
|
||||
|
||||
definePageMeta({
|
||||
requiresAuth: true,
|
||||
|
||||
@@ -1,8 +1,8 @@
|
||||
<script setup lang="ts">
|
||||
import characterConfig from '#shared/character-config.json';
|
||||
import { unifySlug } from '#shared/general.util';
|
||||
import { unifySlug } from '~~/shared/general';
|
||||
import type { CharacterConfig } from '~/types/character';
|
||||
import { CharacterSheet } from '#shared/character.util';
|
||||
import { CharacterSheet } from '~~/shared/character';
|
||||
|
||||
/*
|
||||
text-light-red dark:text-dark-red border-light-red dark:border-dark-red bg-light-red dark:bg-dark-red
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import characterConfig from '#shared/character-config.json';
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
import type { CharacterConfig } from '~/types/character';
|
||||
|
||||
definePageMeta({
|
||||
|
||||
@@ -1,5 +1,5 @@
|
||||
<script setup lang="ts">
|
||||
import { HomebrewBuilder } from '#shared/feature.util';
|
||||
import { HomebrewBuilder } from '#shared/feature';
|
||||
|
||||
|
||||
definePageMeta({
|
||||
|
||||
@@ -7,8 +7,8 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Content } from '#shared/content.util';
|
||||
import { unifySlug } from '#shared/general.util';
|
||||
import { Content } from '~~/shared/content';
|
||||
import { unifySlug } from '~~/shared/general';
|
||||
|
||||
const element = useTemplateRef('element'), overview = ref();
|
||||
const route = useRouter().currentRoute;
|
||||
|
||||
@@ -47,11 +47,11 @@
|
||||
</template>
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Content, Editor } from '#shared/content.util';
|
||||
import { button, loading } from '#shared/components.util';
|
||||
import { dom, icon } from '#shared/dom.util';
|
||||
import { modal, tooltip } from '#shared/floating.util';
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Content, Editor } from '~~/shared/content';
|
||||
import { button, loading } from '~~/shared/components';
|
||||
import { dom, icon } from '~~/shared/dom';
|
||||
import { modal, tooltip } from '~~/shared/floating';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
import { Icon } from '@iconify/vue';
|
||||
|
||||
definePageMeta({
|
||||
|
||||
@@ -25,7 +25,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
|
||||
definePageMeta({
|
||||
layout: 'login',
|
||||
|
||||
@@ -26,7 +26,7 @@
|
||||
|
||||
<script setup lang="ts">
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
|
||||
definePageMeta({
|
||||
layout: 'login',
|
||||
|
||||
@@ -21,7 +21,7 @@
|
||||
import type { ZodError } from 'zod/v4';
|
||||
import { schema, type Login } from '~/schemas/login';
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
|
||||
definePageMeta({
|
||||
layout: 'login',
|
||||
|
||||
@@ -1,6 +1,6 @@
|
||||
<script setup lang="ts">
|
||||
import { hasPermissions } from "#shared/auth.util";
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { hasPermissions } from "#shared/auth";
|
||||
import { Toaster } from '~~/shared/components';
|
||||
|
||||
definePageMeta({
|
||||
requiresAuth: true,
|
||||
|
||||
@@ -31,7 +31,7 @@
|
||||
import { ZodError } from 'zod/v4';
|
||||
import { schema, type Registration } from '~/schemas/registration';
|
||||
import { Icon } from '@iconify/vue';
|
||||
import { Toaster } from '#shared/components.util';
|
||||
import { Toaster } from '~~/shared/components';
|
||||
|
||||
definePageMeta({
|
||||
layout: 'login',
|
||||
|
||||
Reference in New Issue
Block a user