Commit ee749646 by Archer Committed by GitHub

4.8.7 test (#2058)

* fix: query extension id;App page change type invalid

* prettier
parent b5c98a4f
...@@ -19,7 +19,7 @@ import { LLMModelTypeEnum } from '../../../ai/constants'; ...@@ -19,7 +19,7 @@ import { LLMModelTypeEnum } from '../../../ai/constants';
import { getHandleConfig } from '../utils'; import { getHandleConfig } from '../utils';
export const AiQueryExtension: FlowNodeTemplateType = { export const AiQueryExtension: FlowNodeTemplateType = {
id: FlowNodeTypeEnum.chatNode, id: FlowNodeTypeEnum.queryExtension,
templateType: FlowNodeTemplateTypeEnum.other, templateType: FlowNodeTemplateTypeEnum.other,
flowNodeType: FlowNodeTypeEnum.queryExtension, flowNodeType: FlowNodeTypeEnum.queryExtension,
sourceHandle: getHandleConfig(true, true, true, true), sourceHandle: getHandleConfig(true, true, true, true),
......
...@@ -17,6 +17,6 @@ ...@@ -17,6 +17,6 @@
}, },
"devDependencies": { "devDependencies": {
"@types/js-yaml": "^4.0.9", "@types/js-yaml": "^4.0.9",
"@types/node": "^20.14.2" "@types/node": "20.14.0"
} }
} }
...@@ -7,6 +7,6 @@ ...@@ -7,6 +7,6 @@
"devDependencies": { "devDependencies": {
"@fastgpt/global": "workspace:*", "@fastgpt/global": "workspace:*",
"@fastgpt/service": "workspace:*", "@fastgpt/service": "workspace:*",
"@types/node": "^20.14.2" "@types/node": "20.14.0"
} }
} }
...@@ -25,4 +25,6 @@ declare global { ...@@ -25,4 +25,6 @@ declare global {
worker: Worker; worker: Worker;
callbackMap: Record<string, (e: number) => void>; callbackMap: Record<string, (e: number) => void>;
}[]; }[];
var systemInited: boolean;
} }
{ {
"name": "app", "name": "app",
"version": "4.8.6", "version": "4.8.7",
"private": false, "private": false,
"scripts": { "scripts": {
"dev": "next dev", "dev": "next dev",
...@@ -71,7 +71,7 @@ ...@@ -71,7 +71,7 @@
"@types/js-yaml": "^4.0.9", "@types/js-yaml": "^4.0.9",
"@types/jsonwebtoken": "^9.0.3", "@types/jsonwebtoken": "^9.0.3",
"@types/lodash": "^4.14.191", "@types/lodash": "^4.14.191",
"@types/node": "^20.14.2", "@types/node": "20.14.0",
"@types/react": "18.3.1", "@types/react": "18.3.1",
"@types/react-dom": "18.3.0", "@types/react-dom": "18.3.0",
"@types/react-syntax-highlighter": "^15.5.6", "@types/react-syntax-highlighter": "^15.5.6",
......
...@@ -12,7 +12,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse) ...@@ -12,7 +12,10 @@ export default async function handler(req: NextApiRequest, res: NextApiResponse)
const { binary, metadata } = await readMongoImg({ id }); const { binary, metadata } = await readMongoImg({ id });
res.setHeader('Content-Type', metadata?.mime ?? guessBase64ImageType(binary.toString('base64'))); res.setHeader(
'Content-Type',
metadata?.mime ?? guessBase64ImageType(binary.toString('base64'))
);
res.send(binary); res.send(binary);
} catch (error) { } catch (error) {
jsonRes(res, { jsonRes(res, {
......
...@@ -79,21 +79,13 @@ const AppListContextProvider = ({ children }: { children: ReactNode }) => { ...@@ -79,21 +79,13 @@ const AppListContextProvider = ({ children }: { children: ReactNode }) => {
return [AppTypeEnum.folder, type]; return [AppTypeEnum.folder, type];
})(); })();
return getMyApps({ parentId, type: formatType, searchKey }); return getMyApps({ parentId, type: formatType, searchKey });
}, },
{ {
refreshOnWindowFocus: true, manual: false,
refreshDeps: [parentId, type] refreshDeps: [searchKey, parentId, type],
} throttleWait: 500,
); refreshOnWindowFocus: true
useThrottleEffect(
() => {
loadMyApps();
},
[searchKey],
{
wait: 500
} }
); );
......
...@@ -22,6 +22,10 @@ export function connectToDatabase() { ...@@ -22,6 +22,10 @@ export function connectToDatabase() {
initGlobal(); initGlobal();
}, },
afterHook: async () => { afterHook: async () => {
if (global.systemInitd) return;
global.systemInitd = true;
systemStartCb(); systemStartCb();
//init system config;init vector database;init root user //init system config;init vector database;init root user
......
...@@ -35,7 +35,7 @@ ...@@ -35,7 +35,7 @@
"@nestjs/schematics": "^10.0.0", "@nestjs/schematics": "^10.0.0",
"@nestjs/testing": "^10.0.0", "@nestjs/testing": "^10.0.0",
"@types/jest": "^29.5.2", "@types/jest": "^29.5.2",
"@types/node": "^20.14.2", "@types/node": "20.14.0",
"@types/supertest": "^6.0.0", "@types/supertest": "^6.0.0",
"@typescript-eslint/eslint-plugin": "^6.0.0", "@typescript-eslint/eslint-plugin": "^6.0.0",
"@typescript-eslint/parser": "^6.0.0", "@typescript-eslint/parser": "^6.0.0",
......
{ {
"compilerOptions": { "compilerOptions": {
"target": "es2015", "target": "es2022",
"lib": ["dom", "dom.iterable", "esnext"], "lib": ["dom", "dom.iterable", "esnext"],
"allowJs": true, "allowJs": true,
"skipLibCheck": true, "skipLibCheck": true,
"strict": true, "strict": true,
"forceConsistentCasingInFileNames": true, "forceConsistentCasingInFileNames": true,
"noEmit": true, "noEmit": true,
"esModuleInterop": true, "esModuleInterop": true,
"module": "esnext", "module": "esnext",
"moduleResolution": "node", "moduleResolution": "node",
"resolveJsonModule": true, "resolveJsonModule": true,
"isolatedModules": true, "isolatedModules": true,
"jsx": "preserve", "jsx": "preserve",
"incremental": true, "incremental": true,
"baseUrl": "." "baseUrl": "."
}, },
"exclude": ["**/node_modules"] "exclude": ["**/node_modules"]
} }
\ No newline at end of file
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or sign in to comment