Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
F
frontend
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Boards
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
vicotor
frontend
Commits
9fcd429d
Commit
9fcd429d
authored
Dec 21, 2023
by
tom
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
add sprite build step to Docker file; remove unused Icon component; fix svgo config
parent
14a7e95c
Changes
3
Show whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
10 additions
and
30 deletions
+10
-30
Dockerfile
Dockerfile
+1
-0
svgo.config.js
svgo.config.js
+9
-12
Icon.tsx
ui/shared/chakra/Icon.tsx
+0
-18
No files found.
Dockerfile
View file @
9fcd429d
...
...
@@ -58,6 +58,7 @@ RUN ./collect_envs.sh ./docs/ENVS.md
# Build app for production
RUN
yarn build
RUN
yarn svg:build-sprite
### FEATURE REPORTER
...
...
svgo.config.js
View file @
9fcd429d
module
.
exports
=
{
plugins
:
[
// TODO @tom2drum pick up plugins from default preset
// {
// name: 'preset-default',
// params: {
// overrides: {
// removeViewBox: false,
// cleanupIds: false,
// removeUselessDefs: false,
// collapseGroups: false,
// },
// },
// },
{
name
:
'
preset-default
'
,
params
:
{
overrides
:
{
removeViewBox
:
false
,
removeHiddenElems
:
false
,
},
},
},
'
removeDimensions
'
,
],
js2svg
:
{
...
...
ui/shared/chakra/Icon.tsx
deleted
100644 → 0
View file @
14a7e95c
import
{
Skeleton
,
Icon
as
ChakraIcon
}
from
'
@chakra-ui/react
'
;
import
type
{
IconProps
,
As
}
from
'
@chakra-ui/react
'
;
import
React
from
'
react
'
;
interface
Props
extends
IconProps
{
isLoading
?:
boolean
;
as
:
As
;
}
const
Icon
=
({
isLoading
,
...
props
}:
Props
,
ref
:
React
.
LegacyRef
<
SVGSVGElement
>
)
=>
{
return
(
<
Skeleton
isLoaded=
{
!
isLoading
}
boxSize=
{
props
.
boxSize
}
w=
{
props
.
w
}
h=
{
props
.
h
}
borderRadius=
{
props
.
borderRadius
}
>
<
ChakraIcon
{
...
props
}
ref=
{
ref
}
/>
</
Skeleton
>
);
};
export
default
React
.
memo
(
React
.
forwardRef
(
Icon
));
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