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
445a3892
authored
Oct 22, 2024
by
papapatrick
Committed by
GitHub
Oct 22, 2024
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add google search plugin (#2947)
parent
7ec2253f
Expand all
Show whitespace changes
Inline
Side-by-side
Showing
5 changed files
with
6 additions
and
2 deletions
+6
-2
packages/plugins/register.ts
+2
-1
packages/plugins/src/google/template.json
+0
-0
packages/web/components/common/Icon/constants.ts
+1
-0
packages/web/components/common/Icon/icons/core/workflow/template/google.svg
+2
-0
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/hooks/useDebug.tsx
+1
-1
No files found.
packages/plugins/register.ts
View file @
445a3892
...
@@ -13,7 +13,8 @@ const staticPluginList = [
...
@@ -13,7 +13,8 @@ const staticPluginList = [
'Doc2X/URLImg2text'
,
'Doc2X/URLImg2text'
,
`Doc2X/FilePDF2text`
,
`Doc2X/FilePDF2text`
,
`Doc2X/FileImg2text`
,
`Doc2X/FileImg2text`
,
'feishu'
'feishu'
,
'google'
];
];
// Run in worker thread (Have npm packages)
// Run in worker thread (Have npm packages)
const
packagePluginList
=
[
const
packagePluginList
=
[
...
...
packages/plugins/src/google/template.json
0 → 100644
View file @
445a3892
This diff is collapsed.
Click to expand it.
packages/web/components/common/Icon/constants.ts
View file @
445a3892
...
@@ -231,6 +231,7 @@ export const iconPaths = {
...
@@ -231,6 +231,7 @@ export const iconPaths = {
'core/workflow/template/wiki'
:
()
=>
import
(
'./icons/core/workflow/template/wiki.svg'
),
'core/workflow/template/wiki'
:
()
=>
import
(
'./icons/core/workflow/template/wiki.svg'
),
'core/workflow/template/datasource'
:
()
=>
'core/workflow/template/datasource'
:
()
=>
import
(
'./icons/core/workflow/template/datasource.svg'
),
import
(
'./icons/core/workflow/template/datasource.svg'
),
'core/workflow/template/google'
:
()
=>
import
(
'./icons/core/workflow/template/google.svg'
),
'core/workflow/template/fetchUrl'
:
()
=>
import
(
'./icons/core/workflow/template/fetchUrl.svg'
),
'core/workflow/template/fetchUrl'
:
()
=>
import
(
'./icons/core/workflow/template/fetchUrl.svg'
),
'core/workflow/template/formInput'
:
()
=>
import
(
'./icons/core/workflow/template/formInput.svg'
),
'core/workflow/template/formInput'
:
()
=>
import
(
'./icons/core/workflow/template/formInput.svg'
),
'core/workflow/template/getTime'
:
()
=>
import
(
'./icons/core/workflow/template/getTime.svg'
),
'core/workflow/template/getTime'
:
()
=>
import
(
'./icons/core/workflow/template/getTime.svg'
),
...
...
packages/web/components/common/Icon/icons/core/workflow/template/google.svg
0 → 100644
View file @
445a3892
<svg
t=
"1729136070356"
class=
"icon"
viewBox=
"0 0 1024 1024"
version=
"1.1"
xmlns=
"http://www.w3.org/2000/svg"
p-id=
"4261"
width=
"200"
height=
"200"
><path
d=
"M214.101333 512c0-32.512 5.546667-63.701333 15.36-92.928L57.173333 290.218667A491.861333 491.861333 0 0 0 4.693333 512c0 79.701333 18.858667 154.88 52.394667 221.610667l172.202667-129.066667A290.56 290.56 0 0 1 214.101333 512"
fill=
"#FBBC05"
p-id=
"4262"
></path><path
d=
"M516.693333 216.192c72.106667 0 137.258667 25.002667 188.458667 65.962667L854.101333 136.533333C763.349333 59.178667 646.997333 11.392 516.693333 11.392c-202.325333 0-376.234667 113.28-459.52 278.826667l172.373334 128.853333c39.68-118.016 152.832-202.88 287.146666-202.88"
fill=
"#EA4335"
p-id=
"4263"
></path><path
d=
"M516.693333 807.808c-134.357333 0-247.509333-84.864-287.232-202.88l-172.288 128.853333c83.242667 165.546667 257.152 278.826667 459.52 278.826667 124.842667 0 244.053333-43.392 333.568-124.757333l-163.584-123.818667c-46.122667 28.458667-104.234667 43.776-170.026666 43.776"
fill=
"#34A853"
p-id=
"4264"
></path><path
d=
"M1005.397333 512c0-29.568-4.693333-61.44-11.648-91.008H516.650667V614.4h274.602666c-13.696 65.962667-51.072 116.650667-104.533333 149.632l163.541333 123.818667c93.994667-85.418667 155.136-212.650667 155.136-375.850667"
fill=
"#4285F4"
p-id=
"4265"
></path></svg>
\ No newline at end of file
projects/app/src/pages/app/detail/components/WorkflowComponents/Flow/hooks/useDebug.tsx
View file @
445a3892
...
@@ -57,7 +57,7 @@ export const useDebug = () => {
...
@@ -57,7 +57,7 @@ export const useDebug = () => {
const
appDetail
=
useContextSelector
(
AppContext
,
(
v
)
=>
v
.
appDetail
);
const
appDetail
=
useContextSelector
(
AppContext
,
(
v
)
=>
v
.
appDetail
);
const
filteredVar
=
useMemo
(()
=>
{
const
filteredVar
=
useMemo
(()
=>
{
const
variables
=
appDetail
.
chatConfig
.
variables
;
const
variables
=
appDetail
.
chatConfig
?
.
variables
;
return
variables
?.
filter
((
item
)
=>
item
.
type
!==
VariableInputEnum
.
custom
)
||
[];
return
variables
?.
filter
((
item
)
=>
item
.
type
!==
VariableInputEnum
.
custom
)
||
[];
},
[
appDetail
.
chatConfig
.
variables
]);
},
[
appDetail
.
chatConfig
.
variables
]);
...
...
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