improve viewer exports
This commit is contained in:
@@ -1,4 +1,4 @@
|
|||||||
export const useImageViewer = defineStore('image-viewer', {
|
export default defineStore('image-viewer', {
|
||||||
state: () => ({
|
state: () => ({
|
||||||
src: null as string | null,
|
src: null as string | null,
|
||||||
}),
|
}),
|
||||||
|
|||||||
@@ -1,4 +1,4 @@
|
|||||||
import { useImageViewer } from './image';
|
import useImageViewer from './image';
|
||||||
import { useTextEditor } from './text';
|
import useTextEditor from './text';
|
||||||
|
|
||||||
export { useImageViewer, useTextEditor };
|
export { useImageViewer, useTextEditor };
|
||||||
|
|||||||
@@ -1,7 +1,7 @@
|
|||||||
import { uploadToWarren } from '~/lib/api/warrens';
|
import { uploadToWarren } from '~/lib/api/warrens';
|
||||||
import type { DirectoryEntry } from '~/shared/types';
|
import type { DirectoryEntry } from '~/shared/types';
|
||||||
|
|
||||||
export const useTextEditor = defineStore('text-editor', {
|
export default defineStore('text-editor', {
|
||||||
state: () => ({
|
state: () => ({
|
||||||
data: null as {
|
data: null as {
|
||||||
warrenId: string;
|
warrenId: string;
|
||||||
|
|||||||
Reference in New Issue
Block a user