File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 6363 "scripts" : {
6464 "build-template-win" : " vite build --config vite.public-template.config.js" ,
6565 "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" ,
6767 "build-template-watch" : " NODE_OPTIONS=\" --max-old-space-size=8192\" vite build --config vite.public-template.config.js --watch" ,
6868 "start-dev" : " vite" ,
6969 "dev" : " vite" ,
7070 "preview" : " vite preview" ,
7171 "start" : " serve -s build" ,
7272 "version" : " curl -s https://api.github.com/repos/opensignlabs/opensign/releases/latest | grep '\" tag_name\" :' | awk -F '\" ' '{print $4}' > ./public/version.txt" ,
7373 "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" ,
7575 "test" : " vitest run" ,
7676 "test:watch" : " vitest" ,
7777 "release" : " standard-version" ,
143143 "engines" : {
144144 "node" : " 18 || 20 || 22"
145145 }
146- }
146+ }
Original file line number Diff line number Diff line change @@ -276,6 +276,20 @@ function Header(props) {
276276 className = "bg-white shadow-md rounded-md px-3 py-2"
277277 sideOffset = { 5 }
278278 >
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+ ) }
279293 < DropdownMenu . Item
280294 className = "DropdownMenuItem"
281295 onClick = { ( ) =>
You can’t perform that action at this time.
0 commit comments