generated from template/astro-template
	temp
This commit is contained in:
		@@ -1,6 +1,6 @@
 | 
				
			|||||||
{
 | 
					{
 | 
				
			||||||
  "name": "@kevisual/ai-pages",
 | 
					  "name": "@kevisual/ai-pages",
 | 
				
			||||||
  "version": "0.0.2",
 | 
					  "version": "0.0.3",
 | 
				
			||||||
  "description": "",
 | 
					  "description": "",
 | 
				
			||||||
  "main": "index.js",
 | 
					  "main": "index.js",
 | 
				
			||||||
  "basename": "/root/ai-pages",
 | 
					  "basename": "/root/ai-pages",
 | 
				
			||||||
@@ -8,7 +8,7 @@
 | 
				
			|||||||
    "dev": "astro dev",
 | 
					    "dev": "astro dev",
 | 
				
			||||||
    "build": "astro build",
 | 
					    "build": "astro build",
 | 
				
			||||||
    "preview": "astro preview",
 | 
					    "preview": "astro preview",
 | 
				
			||||||
    "pub": "ev deploy ./dist -k ai-pages -v 0.0.2 -u",
 | 
					    "pub": "ev deploy ./dist -k ai-pages -v 0.0.3 -u",
 | 
				
			||||||
    "git:submodule": "git submodule update --init --recursive",
 | 
					    "git:submodule": "git submodule update --init --recursive",
 | 
				
			||||||
    "sn": "pnpm dlx shadcn@latest add "
 | 
					    "sn": "pnpm dlx shadcn@latest add "
 | 
				
			||||||
  },
 | 
					  },
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -24,7 +24,7 @@ export const AIEditor = () => {
 | 
				
			|||||||
  return (
 | 
					  return (
 | 
				
			||||||
    <div className='flex h-full w-full flex-col items-center '>
 | 
					    <div className='flex h-full w-full flex-col items-center '>
 | 
				
			||||||
      <div className='text-xl font-bold text-left w-full bg-secondary p-1 ml-2 flex gap-2 items-center'>
 | 
					      <div className='text-xl font-bold text-left w-full bg-secondary p-1 ml-2 flex gap-2 items-center'>
 | 
				
			||||||
        AI Editor
 | 
					        AI Editor [Dev]
 | 
				
			||||||
        <Toolbar />
 | 
					        <Toolbar />
 | 
				
			||||||
      </div>
 | 
					      </div>
 | 
				
			||||||
      <div style={{ height: 'calc(100vh - 50px)' }} className='flex w-full '>
 | 
					      <div style={{ height: 'calc(100vh - 50px)' }} className='flex w-full '>
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -58,6 +58,7 @@ class Status {
 | 
				
			|||||||
const status = new Status();
 | 
					const status = new Status();
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const init = async (resource: string = '', prefix: string = '') => {
 | 
					export const init = async (resource: string = '', prefix: string = '') => {
 | 
				
			||||||
 | 
					  console.log('init menu', resource, prefix);
 | 
				
			||||||
  const { setMenu, setCurrentPath, setLoading } = useMenuStore.getState();
 | 
					  const { setMenu, setCurrentPath, setLoading } = useMenuStore.getState();
 | 
				
			||||||
  let me = await queryLogin.checkLocalUser();
 | 
					  let me = await queryLogin.checkLocalUser();
 | 
				
			||||||
  const isInitialized = status.isInitialized;
 | 
					  const isInitialized = status.isInitialized;
 | 
				
			||||||
@@ -74,6 +75,7 @@ export const init = async (resource: string = '', prefix: string = '') => {
 | 
				
			|||||||
  if (prefix) {
 | 
					  if (prefix) {
 | 
				
			||||||
    queryResources.setPrefix(prefix);
 | 
					    queryResources.setPrefix(prefix);
 | 
				
			||||||
  }
 | 
					  }
 | 
				
			||||||
 | 
					  console.log('queryResources', queryResources.prefix);
 | 
				
			||||||
  const res = await queryResources.getList(resource, data);
 | 
					  const res = await queryResources.getList(resource, data);
 | 
				
			||||||
  // @ts-ignore
 | 
					  // @ts-ignore
 | 
				
			||||||
  if (res?.status === 404) {
 | 
					  if (res?.status === 404) {
 | 
				
			||||||
 
 | 
				
			|||||||
@@ -9,7 +9,7 @@ import { useShallow } from 'zustand/shallow';
 | 
				
			|||||||
import { toast } from 'react-toastify';
 | 
					import { toast } from 'react-toastify';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
// @ts-ignore
 | 
					// @ts-ignore
 | 
				
			||||||
window.EXCALIDRAW_ASSET_PATH = 'https://esm.sh/@excalidraw/excalidraw@0.18.0/dist/prod/';
 | 
					window.EXCALIDRAW_ASSET_PATH = 'https://esm.xiongxiao.me/@excalidraw/excalidraw@0.18.0/dist/prod/';
 | 
				
			||||||
 | 
					
 | 
				
			||||||
export const App = () => {
 | 
					export const App = () => {
 | 
				
			||||||
  return (
 | 
					  return (
 | 
				
			||||||
 
 | 
				
			|||||||
		Reference in New Issue
	
	Block a user