Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
D
dify
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
ai-tech
dify
Commits
a5e07878
Commit
a5e07878
authored
Jun 25, 2023
by
StyleZhang
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fix: icon file name
parent
eea011bd
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
3 additions
and
4 deletions
+3
-4
script.js
web/app/components/base/icons/script.js
+1
-2
RefreshCw05.tsx
...ponents/base/icons/src/vender/line/arrows/RefreshCw05.tsx
+1
-1
FilePlus02.tsx
...omponents/base/icons/src/vender/line/files/FilePlus02.tsx
+1
-1
No files found.
web/app/components/base/icons/script.js
View file @
a5e07878
...
...
@@ -2,7 +2,6 @@ const path = require('node:path')
const
{
open
,
readdir
,
access
,
mkdir
,
writeFile
,
appendFile
,
rm
}
=
require
(
'node:fs/promises'
)
const
{
parseXml
}
=
require
(
'@rgrove/parse-xml'
)
const
camelCase
=
require
(
'lodash/camelCase'
)
const
capitalize
=
require
(
'lodash/capitalize'
)
const
template
=
require
(
'lodash/template'
)
const
generateDir
=
async
(
currentPath
)
=>
{
...
...
@@ -69,7 +68,7 @@ export default Icon
`
.
trim
())
await
writeFile
(
path
.
resolve
(
currentPath
,
`
${
fileName
}
.json`
),
JSON
.
stringify
(
svgData
,
''
,
'
\
t'
))
await
writeFile
(
path
.
resolve
(
currentPath
,
`
${
fileName
}
.tsx`
),
`
${
componentRender
({
svgName
:
capitalize
(
fileName
)
})}
\n`
)
await
writeFile
(
path
.
resolve
(
currentPath
,
`
${
fileName
}
.tsx`
),
`
${
componentRender
({
svgName
:
fileName
})}
\n`
)
const
indexingRender
=
template
(
`
export { default as <%= svgName %> } from './<%= svgName %>'
...
...
web/app/components/base/icons/src/vender/line/arrows/RefreshCw05.tsx
View file @
a5e07878
...
...
@@ -2,7 +2,7 @@
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./Refresh
c
w05.json'
import
data
from
'./Refresh
C
w05.json'
import
IconBase
from
'@/app/components/base/icons/IconBase'
import
type
{
IconBaseProps
,
IconData
}
from
'@/app/components/base/icons/IconBase'
...
...
web/app/components/base/icons/src/vender/line/files/FilePlus02.tsx
View file @
a5e07878
...
...
@@ -2,7 +2,7 @@
// DON NOT EDIT IT MANUALLY
import
*
as
React
from
'react'
import
data
from
'./File
p
lus02.json'
import
data
from
'./File
P
lus02.json'
import
IconBase
from
'@/app/components/base/icons/IconBase'
import
type
{
IconBaseProps
,
IconData
}
from
'@/app/components/base/icons/IconBase'
...
...
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