mirror of
https://github.com/labring/FastGPT.git
synced 2025-07-21 19:54:11 +00:00
External dataset (#1485)
* fix: revert version * feat: external collection * import context * external ui * doc * fix: ts * clear invalid data * feat: rename sub name * fix: node if else edge remove * fix: init * api size * fix: if else node refresh
This commit is contained in:
13
.vscode/nextapi.code-snippets
vendored
13
.vscode/nextapi.code-snippets
vendored
@@ -40,18 +40,11 @@
|
||||
"",
|
||||
"type ContextType = {$1};",
|
||||
"",
|
||||
"type ContextValueType = {};",
|
||||
"",
|
||||
"export const Context = createContext<ContextType>({});",
|
||||
"",
|
||||
"export const ContextProvider = ({",
|
||||
" children,",
|
||||
" value",
|
||||
"}: {",
|
||||
" children: ReactNode;",
|
||||
" value: ContextValueType;",
|
||||
"}) => {",
|
||||
" return <Context.Provider value={value}>{children}</Context.Provider>;",
|
||||
"export const ContextProvider = ({ children }: { children: ReactNode }) => {",
|
||||
" const contextValue: ContextType = {};",
|
||||
" return <Context.Provider value={contextValue}>{children}</Context.Provider>;",
|
||||
"};",
|
||||
],
|
||||
"description": "FastGPT usecontext template"
|
||||
|
Reference in New Issue
Block a user