Skip to content
Toggle navigation
P
Projects
G
Groups
S
Snippets
Help
赵月辉
/
fastgpt-migrated
This project
Loading...
Sign in
Toggle navigation
Go to a project
Project
Repository
Issues
0
Merge Requests
0
Pipelines
Wiki
Snippets
Members
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Unverified
Commit
ace84f01
authored
Aug 25, 2024
by
Archer
Committed by
GitHub
Aug 25, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
4.8.10 test (#2499)
* 48190 init * path
parent
bb7adc96
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
37 additions
and
2 deletions
+37
-2
projects/app/src/pages/api/admin/initv4810.ts
+35
-0
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/components/FlowController.tsx
+1
-1
projects/app/src/web/core/app/constants.ts
+1
-1
No files found.
projects/app/src/pages/api/admin/initv4810.ts
0 → 100644
View file @
ace84f01
import
type
{
NextApiRequest
,
NextApiResponse
}
from
'next'
;
import
{
jsonRes
}
from
'@fastgpt/service/common/response'
;
import
{
connectToDatabase
}
from
'@/service/mongo'
;
import
{
authCert
}
from
'@fastgpt/service/support/permission/auth/common'
;
import
{
MongoDataset
}
from
'@fastgpt/service/core/dataset/schema'
;
import
{
DatasetDefaultPermissionVal
}
from
'@fastgpt/global/support/permission/dataset/constant'
;
import
{
MongoAppVersion
}
from
'@fastgpt/service/core/app/version/schema'
;
/* pg 中的数据搬到 mongo dataset.datas 中,并做映射 */
export
default
async
function
handler
(
req
:
NextApiRequest
,
res
:
NextApiResponse
)
{
try
{
await
connectToDatabase
();
await
authCert
({
req
,
authRoot
:
true
});
await
MongoAppVersion
.
updateMany
(
{},
{
$set
:
{
isPublish
:
true
}
}
);
jsonRes
(
res
,
{
message
:
'success'
});
}
catch
(
error
)
{
console
.
log
(
error
);
jsonRes
(
res
,
{
code
:
500
,
error
});
}
}
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/components/FlowController.tsx
View file @
ace84f01
...
@@ -7,7 +7,7 @@ import MyIcon from '@fastgpt/web/components/common/Icon';
...
@@ -7,7 +7,7 @@ import MyIcon from '@fastgpt/web/components/common/Icon';
import
{
Box
}
from
'@chakra-ui/react'
;
import
{
Box
}
from
'@chakra-ui/react'
;
import
{
useTranslation
}
from
'react-i18next'
;
import
{
useTranslation
}
from
'react-i18next'
;
import
styles
from
'./index.module.scss'
;
import
styles
from
'./index.module.scss'
;
import
{
maxZoom
,
minZoom
}
from
'..'
;
import
{
maxZoom
,
minZoom
}
from
'..
/index
'
;
const
FlowController
=
React
.
memo
(
function
FlowController
()
{
const
FlowController
=
React
.
memo
(
function
FlowController
()
{
const
{
fitView
,
zoomIn
,
zoomOut
}
=
useReactFlow
();
const
{
fitView
,
zoomIn
,
zoomOut
}
=
useReactFlow
();
...
...
projects/app/src/web/core/app/constants.ts
View file @
ace84f01
...
@@ -6,7 +6,7 @@ import { NullPermission } from '@fastgpt/global/support/permission/constant';
...
@@ -6,7 +6,7 @@ import { NullPermission } from '@fastgpt/global/support/permission/constant';
import
{
i18nT
}
from
'@fastgpt/web/i18n/utils'
;
import
{
i18nT
}
from
'@fastgpt/web/i18n/utils'
;
export
const
defaultApp
:
AppDetailType
=
{
export
const
defaultApp
:
AppDetailType
=
{
_id
:
''
,
_id
:
''
,
name
:
i18nT
(
'common:core.app.loading'
)
,
name
:
'AI'
,
type
:
AppTypeEnum
.
simple
,
type
:
AppTypeEnum
.
simple
,
avatar
:
'/icon/logo.svg'
,
avatar
:
'/icon/logo.svg'
,
intro
:
''
,
intro
:
''
,
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment