File tree Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Expand file tree Collapse file tree 2 files changed +17
-3
lines changed Original file line number Diff line number Diff line change 63
63
"scripts" : {
64
64
"build-template-win" : " vite build --config vite.public-template.config.js" ,
65
65
"build-template" : " NODE_OPTIONS=\" --max-old-space-size=8192\" vite build --config vite.public-template.config.js" ,
66
- "build" : " npm run version && react-scripts build" ,
66
+ "build" : " npm run version && npm run build-template && NODE_OPTIONS= \" --max-old-space-size=8192 \" vite build" ,
67
67
"build-template-watch" : " NODE_OPTIONS=\" --max-old-space-size=8192\" vite build --config vite.public-template.config.js --watch" ,
68
68
"start-dev" : " vite" ,
69
69
"dev" : " vite" ,
70
70
"preview" : " vite preview" ,
71
71
"start" : " serve -s build" ,
72
72
"version" : " curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\" tag_name\" :' | awk -F '\" ' '{print $4}' > ./public/version.txt" ,
73
73
"version-win" : " powershell -Command \" Invoke-RestMethod -Uri 'https://api.github.com/repos/opensignlabs/opensign/releases/latest' | Select-Object -ExpandProperty tag_name | Out-File -FilePath ./public/version.txt\" " ,
74
- "build-win" : " npm run version-win && react-scripts build" ,
74
+ "build-win" : " npm run version-win && npm run build-template-win && vite build" ,
75
75
"test" : " vitest run" ,
76
76
"test:watch" : " vitest" ,
77
77
"release" : " standard-version" ,
143
143
"engines" : {
144
144
"node" : " 18 || 20 || 22"
145
145
}
146
- }
146
+ }
Original file line number Diff line number Diff line change @@ -276,6 +276,20 @@ function Header(props) {
276
276
className = "bg-white shadow-md rounded-md px-3 py-2"
277
277
sideOffset = { 5 }
278
278
>
279
+ { props ?. setIsEditTemplate && (
280
+ < DropdownMenu . Item
281
+ className = "DropdownMenuItem"
282
+ onClick = { ( ) => props ?. setIsEditTemplate ( true ) }
283
+ >
284
+ < div className = "flex flex-row" >
285
+ < i
286
+ className = "fa-light fa-gear mr-[3px]"
287
+ aria-hidden = "true"
288
+ > </ i >
289
+ < span className = "font-[500]" > { t ( "Edit" ) } </ span >
290
+ </ div >
291
+ </ DropdownMenu . Item >
292
+ ) }
279
293
< DropdownMenu . Item
280
294
className = "DropdownMenuItem"
281
295
onClick = { ( ) =>
You can’t perform that action at this time.
0 commit comments