@yinuo-ngm/server 1.0.15 → 1.0.17
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/app.js +3 -15
- package/lib/common/editor.js +2 -2
- package/lib/env.d.ts +1 -0
- package/lib/env.js +1 -0
- package/lib/plugins/error-handler.plugin.d.ts +2 -2
- package/lib/plugins/error-handler.plugin.js +97 -88
- package/lib/plugins/ws/topics/nginx.ws.js +2 -1
- package/lib/plugins/ws/topics/svn.ws.d.ts +2 -1
- package/lib/plugins/ws/topics/svn.ws.js +3 -2
- package/lib/plugins/ws/topics/syslog.ws.d.ts +1 -1
- package/lib/plugins/ws/topics/task.ws.d.ts +2 -1
- package/lib/plugins/ws/topics/task.ws.js +2 -1
- package/lib/plugins/ws/ws.context.d.ts +1 -1
- package/lib/plugins/ws/ws.plugin.js +4 -3
- package/lib/plugins/ws/ws.router.d.ts +2 -2
- package/lib/plugins/ws/ws.router.js +8 -7
- package/lib/routes/api-client/collection.routes.js +8 -6
- package/lib/routes/api-client/env.routes.js +4 -3
- package/lib/routes/api-client/history.routes.js +3 -2
- package/lib/routes/api-client/hub-token.routes.js +32 -10
- package/lib/routes/api-client/request.routes.js +7 -6
- package/lib/routes/api-client/send.routes.js +3 -2
- package/lib/routes/config.routes.js +5 -5
- package/lib/routes/hub.routes.js +10 -10
- package/lib/routes/index.js +2 -0
- package/lib/routes/nginx/nginx-lifecycle.routes.js +4 -0
- package/lib/routes/nginx/nginx-route.context.js +23 -7
- package/lib/routes/nginx/nginx-server.routes.js +158 -6
- package/lib/routes/node-version.routes.d.ts +2 -0
- package/lib/routes/node-version.routes.js +56 -0
- package/lib/routes/project.routes.js +14 -9
- package/lib/routes/rss.routes.js +3 -3
- package/lib/routes/sprite-browse.routes.js +21 -6
- package/lib/routes/sprite.routes.js +18 -12
- package/lib/routes/static-files.routes.js +21 -5
- package/lib/routes/svn.routes.js +5 -3
- package/lib/routes/system.routes.js +20 -1
- package/lib/routes/task.routes.js +10 -3
- package/package.json +13 -6
- package/www/3rdpartylicenses.txt +66 -118
- package/www/browser/chunk-2L7NUOMX.js +2 -0
- package/www/browser/chunk-2NZJ7CN2.js +20 -0
- package/www/browser/chunk-3CM4SKDO.js +15 -0
- package/www/browser/chunk-3I7BQCXS.js +1 -0
- package/www/browser/chunk-3M56F2S2.js +1 -0
- package/www/browser/chunk-3OHBKMAA.js +1 -0
- package/www/browser/chunk-3XNNQFWR.js +1 -0
- package/www/browser/chunk-4BRW6LCZ.js +4 -0
- package/www/browser/chunk-4LBSLURA.js +1 -0
- package/www/browser/chunk-4X42HB6N.js +2 -0
- package/www/browser/chunk-5DYX4DUX.js +11 -0
- package/www/browser/chunk-6SYVDN5L.js +1 -0
- package/www/browser/chunk-6YYNHZ2A.js +1 -0
- package/www/browser/chunk-75W3GVSO.js +1 -0
- package/www/browser/chunk-7U44RF5F.js +63 -0
- package/www/browser/chunk-AELTP6YN.js +1 -0
- package/www/browser/chunk-AMXRL4GR.js +1 -0
- package/www/browser/chunk-AV2ZODEH.js +1 -0
- package/www/browser/chunk-AZ6SIMYH.js +1 -0
- package/www/browser/chunk-B3C35ET3.js +2 -0
- package/www/browser/chunk-BTQIUVTQ.js +1 -0
- package/www/browser/chunk-CN5J4WNO.js +1 -0
- package/www/browser/chunk-D2ODDESN.js +1 -0
- package/www/browser/chunk-DE6E23ET.js +1 -0
- package/www/browser/chunk-DIJPUYIA.js +1 -0
- package/www/browser/chunk-DLGJD6YU.js +4 -0
- package/www/browser/chunk-EEDA5U4V.js +1 -0
- package/www/browser/chunk-FK6Z4HLL.js +1 -0
- package/www/browser/chunk-FL6GDGHW.js +1 -0
- package/www/browser/chunk-FXCG34QS.js +1 -0
- package/www/browser/chunk-H2USFIYR.js +1 -0
- package/www/browser/chunk-H5HGMOE6.js +1 -0
- package/www/browser/chunk-HB3HECPD.js +1 -0
- package/www/browser/chunk-HDNG236Q.js +1 -0
- package/www/browser/chunk-HFZLJHYR.js +1 -0
- package/www/browser/chunk-HJTXXSMC.js +1 -0
- package/www/browser/chunk-HUMCWAKJ.js +3 -0
- package/www/browser/chunk-IKB3EQCP.js +2 -0
- package/www/browser/chunk-K7PESFPY.js +1 -0
- package/www/browser/chunk-KRYMOHYF.js +2 -0
- package/www/browser/chunk-M4QRBV3K.js +1 -0
- package/www/browser/chunk-N2PELLMM.js +30 -0
- package/www/browser/chunk-ONXBYGIG.js +1 -0
- package/www/browser/chunk-OSBDR36P.js +1 -0
- package/www/browser/chunk-OZCK4XVV.js +1 -0
- package/www/browser/chunk-QJP5F735.js +1 -0
- package/www/browser/chunk-RGOYDY7H.js +1 -0
- package/www/browser/chunk-UJKK4A7Y.js +1 -0
- package/www/browser/chunk-WD2EKZQC.js +1 -0
- package/www/browser/chunk-WUA5JFDD.js +1 -0
- package/www/browser/chunk-XLFHB7RS.js +3 -0
- package/www/browser/chunk-YNW4HEJO.js +37 -0
- package/www/browser/chunk-ZTDLWBW5.js +1 -0
- package/www/browser/dark.css +1 -30433
- package/www/browser/default.css +1 -30149
- package/www/browser/index.html +3 -3
- package/www/browser/main-N64WJCHX.js +34 -0
- package/www/browser/scripts-U25HCVEI.js +6 -0
- package/www/browser/styles-ROAHD7MY.css +1 -0
- package/www/browser/add-widget-drawer.component.css.map +0 -7
- package/www/browser/advanced-editor.component.css.map +0 -7
- package/www/browser/api-client.component.css.map +0 -7
- package/www/browser/api-history-drawer.component.css.map +0 -7
- package/www/browser/app.css.map +0 -7
- package/www/browser/attachment-viewer.component.css.map +0 -7
- package/www/browser/auth-editor.component.css.map +0 -7
- package/www/browser/body-editor.component.css.map +0 -7
- package/www/browser/chunk-2YSUXBGC.js +0 -627
- package/www/browser/chunk-2YSUXBGC.js.map +0 -1
- package/www/browser/chunk-3G2GEOPV.js +0 -456
- package/www/browser/chunk-3G2GEOPV.js.map +0 -1
- package/www/browser/chunk-3L72DF3R.js +0 -1683
- package/www/browser/chunk-3L72DF3R.js.map +0 -1
- package/www/browser/chunk-3MCIETCQ.js +0 -8279
- package/www/browser/chunk-3MCIETCQ.js.map +0 -1
- package/www/browser/chunk-665WC4RU.js +0 -5383
- package/www/browser/chunk-665WC4RU.js.map +0 -1
- package/www/browser/chunk-6QMSEZPT.js +0 -10044
- package/www/browser/chunk-6QMSEZPT.js.map +0 -1
- package/www/browser/chunk-6TBQERYX.js +0 -280
- package/www/browser/chunk-6TBQERYX.js.map +0 -1
- package/www/browser/chunk-6UW4MRJZ.js +0 -43
- package/www/browser/chunk-6UW4MRJZ.js.map +0 -7
- package/www/browser/chunk-6XUMIL3W.js +0 -5495
- package/www/browser/chunk-6XUMIL3W.js.map +0 -1
- package/www/browser/chunk-724YOJI3.js +0 -903
- package/www/browser/chunk-724YOJI3.js.map +0 -1
- package/www/browser/chunk-766T7YES.js +0 -437
- package/www/browser/chunk-766T7YES.js.map +0 -1
- package/www/browser/chunk-7FC7DN65.js +0 -728
- package/www/browser/chunk-7FC7DN65.js.map +0 -1
- package/www/browser/chunk-APGQRYWX.js +0 -156
- package/www/browser/chunk-APGQRYWX.js.map +0 -7
- package/www/browser/chunk-AQHSGTHS.js +0 -1960
- package/www/browser/chunk-AQHSGTHS.js.map +0 -1
- package/www/browser/chunk-CTOEAJQK.js +0 -40
- package/www/browser/chunk-CTOEAJQK.js.map +0 -7
- package/www/browser/chunk-DEGQJKKZ.js +0 -409
- package/www/browser/chunk-DEGQJKKZ.js.map +0 -1
- package/www/browser/chunk-DIJX2663.js +0 -1166
- package/www/browser/chunk-DIJX2663.js.map +0 -1
- package/www/browser/chunk-E4XD4GLT.js +0 -427
- package/www/browser/chunk-E4XD4GLT.js.map +0 -1
- package/www/browser/chunk-EQOY6A3M.js +0 -212
- package/www/browser/chunk-EQOY6A3M.js.map +0 -1
- package/www/browser/chunk-ETTBRXVA.js +0 -2643
- package/www/browser/chunk-ETTBRXVA.js.map +0 -1
- package/www/browser/chunk-FLSUSPBD.js +0 -5569
- package/www/browser/chunk-FLSUSPBD.js.map +0 -1
- package/www/browser/chunk-FZNHBEAZ.js +0 -102
- package/www/browser/chunk-FZNHBEAZ.js.map +0 -1
- package/www/browser/chunk-GJC7CZIJ.js +0 -361
- package/www/browser/chunk-GJC7CZIJ.js.map +0 -7
- package/www/browser/chunk-GMCNMOTD.js +0 -844
- package/www/browser/chunk-GMCNMOTD.js.map +0 -7
- package/www/browser/chunk-H43HGCRW.js +0 -198
- package/www/browser/chunk-H43HGCRW.js.map +0 -7
- package/www/browser/chunk-J447GBHM.js +0 -160
- package/www/browser/chunk-J447GBHM.js.map +0 -1
- package/www/browser/chunk-JN3VOWP7.js +0 -384
- package/www/browser/chunk-JN3VOWP7.js.map +0 -1
- package/www/browser/chunk-KSHAGY2M.js +0 -399
- package/www/browser/chunk-KSHAGY2M.js.map +0 -7
- package/www/browser/chunk-KV72AKOD.js +0 -59
- package/www/browser/chunk-KV72AKOD.js.map +0 -7
- package/www/browser/chunk-LAVMY2SJ.js +0 -26
- package/www/browser/chunk-LAVMY2SJ.js.map +0 -7
- package/www/browser/chunk-LLRVGHG5.js +0 -73
- package/www/browser/chunk-LLRVGHG5.js.map +0 -7
- package/www/browser/chunk-LPME4AJ3.js +0 -196
- package/www/browser/chunk-LPME4AJ3.js.map +0 -1
- package/www/browser/chunk-LVPSURVU.js +0 -4615
- package/www/browser/chunk-LVPSURVU.js.map +0 -1
- package/www/browser/chunk-MMPO7QLO.js +0 -4146
- package/www/browser/chunk-MMPO7QLO.js.map +0 -7
- package/www/browser/chunk-O7LB6VFM.js +0 -1953
- package/www/browser/chunk-O7LB6VFM.js.map +0 -1
- package/www/browser/chunk-P5CWA4FO.js +0 -685
- package/www/browser/chunk-P5CWA4FO.js.map +0 -1
- package/www/browser/chunk-RBWIWNTL.js +0 -203
- package/www/browser/chunk-RBWIWNTL.js.map +0 -7
- package/www/browser/chunk-RUXJCM3V.js +0 -26199
- package/www/browser/chunk-RUXJCM3V.js.map +0 -1
- package/www/browser/chunk-S77VVYUZ.js +0 -168
- package/www/browser/chunk-S77VVYUZ.js.map +0 -1
- package/www/browser/chunk-SCXPYFOB.js +0 -4316
- package/www/browser/chunk-SCXPYFOB.js.map +0 -1
- package/www/browser/chunk-SS73S33S.js +0 -471
- package/www/browser/chunk-SS73S33S.js.map +0 -7
- package/www/browser/chunk-T6UAOWNP.js +0 -600
- package/www/browser/chunk-T6UAOWNP.js.map +0 -1
- package/www/browser/chunk-TEW4MY4J.js +0 -148
- package/www/browser/chunk-TEW4MY4J.js.map +0 -7
- package/www/browser/chunk-TVORF3SF.js +0 -82
- package/www/browser/chunk-TVORF3SF.js.map +0 -7
- package/www/browser/chunk-UAN42EUZ.js +0 -2147
- package/www/browser/chunk-UAN42EUZ.js.map +0 -1
- package/www/browser/chunk-ULOHDK7Y.js +0 -1
- package/www/browser/chunk-ULOHDK7Y.js.map +0 -7
- package/www/browser/chunk-UYJ3FVRV.js +0 -3978
- package/www/browser/chunk-UYJ3FVRV.js.map +0 -1
- package/www/browser/chunk-VXHZMSDM.js +0 -5509
- package/www/browser/chunk-VXHZMSDM.js.map +0 -1
- package/www/browser/chunk-VYNQPZQO.js +0 -281
- package/www/browser/chunk-VYNQPZQO.js.map +0 -1
- package/www/browser/chunk-W3J23PZI.js +0 -9213
- package/www/browser/chunk-W3J23PZI.js.map +0 -1
- package/www/browser/chunk-W5HGHCQT.js +0 -1642
- package/www/browser/chunk-W5HGHCQT.js.map +0 -7
- package/www/browser/chunk-XF5H7E4L.js +0 -4723
- package/www/browser/chunk-XF5H7E4L.js.map +0 -1
- package/www/browser/chunk-XNFNEBMY.js +0 -398
- package/www/browser/chunk-XNFNEBMY.js.map +0 -7
- package/www/browser/chunk-XQY5SPGI.js +0 -30811
- package/www/browser/chunk-XQY5SPGI.js.map +0 -1
- package/www/browser/chunk-Y7JBZHNK.js +0 -514
- package/www/browser/chunk-Y7JBZHNK.js.map +0 -1
- package/www/browser/chunk-YWHRP4X3.js +0 -406
- package/www/browser/chunk-YWHRP4X3.js.map +0 -1
- package/www/browser/chunk-Z7FJIV62.js +0 -95
- package/www/browser/chunk-Z7FJIV62.js.map +0 -7
- package/www/browser/chunk-ZBZHXS46.js +0 -1674
- package/www/browser/chunk-ZBZHXS46.js.map +0 -1
- package/www/browser/chunk-ZZA5NVAI.js +0 -735
- package/www/browser/chunk-ZZA5NVAI.js.map +0 -1
- package/www/browser/collection-modal.component.css.map +0 -7
- package/www/browser/collection-tree-item.component.css.map +0 -7
- package/www/browser/collection-tree.component.css.map +0 -7
- package/www/browser/config-change-bar-component.css.map +0 -7
- package/www/browser/config-item-component.css.map +0 -7
- package/www/browser/config-nav-component.css.map +0 -7
- package/www/browser/config-section-component.css.map +0 -7
- package/www/browser/create-summary-aside.component.css.map +0 -7
- package/www/browser/curl-actions.component.css.map +0 -7
- package/www/browser/dark.css.map +0 -7
- package/www/browser/dashboard-canvas.component.css.map +0 -7
- package/www/browser/dashboard.component.css.map +0 -7
- package/www/browser/default.css.map +0 -7
- package/www/browser/detail-item-card.component.css.map +0 -7
- package/www/browser/ellipsis-text.component.css.map +0 -7
- package/www/browser/env-modal.component.css.map +0 -7
- package/www/browser/env-picker.component.css.map +0 -7
- package/www/browser/feedback.component.css.map +0 -7
- package/www/browser/fs-explorer.component.css.map +0 -7
- package/www/browser/git-import-modal.component.css.map +0 -7
- package/www/browser/hub-v2-personal-token-modal.component.css.map +0 -7
- package/www/browser/issue-action-area.component.css.map +0 -7
- package/www/browser/issue-add-participants-dialog.component.css.map +0 -7
- package/www/browser/issue-assign-dialog.component.css.map +0 -7
- package/www/browser/issue-attachment-area.component.css.map +0 -7
- package/www/browser/issue-base-info-area.component.css.map +0 -7
- package/www/browser/issue-branches.component.css.map +0 -7
- package/www/browser/issue-close-dialog.component.css.map +0 -7
- package/www/browser/issue-collaborators-panel.component.css.map +0 -7
- package/www/browser/issue-comment-editor.component.css.map +0 -7
- package/www/browser/issue-create-branch-dialog.component.css.map +0 -7
- package/www/browser/issue-description-area.component.css.map +0 -7
- package/www/browser/issue-detail.component.css.map +0 -7
- package/www/browser/issue-resolve-dialog.component.css.map +0 -7
- package/www/browser/issue-start-own-branch-dialog.component.css.map +0 -7
- package/www/browser/issues-list-table.component.css.map +0 -7
- package/www/browser/issues.component.css.map +0 -7
- package/www/browser/kill-port-widget.component.css.map +0 -7
- package/www/browser/kv-table.component.css.map +0 -7
- package/www/browser/layout-footer.component.css.map +0 -7
- package/www/browser/layout-header.component.css.map +0 -7
- package/www/browser/layout-menu.component.css.map +0 -7
- package/www/browser/layout-project-nav.component.css.map +0 -7
- package/www/browser/layout-sidebar.component.css.map +0 -7
- package/www/browser/layout.component.css.map +0 -7
- package/www/browser/less-viewport-component.css.map +0 -7
- package/www/browser/main.js +0 -1872
- package/www/browser/main.js.map +0 -1
- package/www/browser/markdown-viewer.component.css.map +0 -7
- package/www/browser/news-feed-widget.component.css.map +0 -7
- package/www/browser/ng-devtool.component.css.map +0 -7
- package/www/browser/nginx-config-editor.component.css.map +0 -7
- package/www/browser/nginx-log-viewer.component.css.map +0 -7
- package/www/browser/nginx-secondary-logs-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-perf-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-settings-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-ssl-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-test-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-traffic-tab.component.css.map +0 -7
- package/www/browser/nginx-secondary-upstream-tab.component.css.map +0 -7
- package/www/browser/nginx-section-card.component.css.map +0 -7
- package/www/browser/nginx-server-drawer.component.css.map +0 -7
- package/www/browser/nginx-server-list.component.css.map +0 -7
- package/www/browser/nginx-stat-card.component.css.map +0 -7
- package/www/browser/nginx.component.css.map +0 -7
- package/www/browser/page-layout.component.css.map +0 -7
- package/www/browser/pick-workspace-modal.component.css.map +0 -7
- package/www/browser/polyfills.js +0 -26584
- package/www/browser/polyfills.js.map +0 -7
- package/www/browser/project-conf.component.css.map +0 -7
- package/www/browser/project-create-modal.component.css.map +0 -7
- package/www/browser/project-create.component.css.map +0 -7
- package/www/browser/project-deps.component.css.map +0 -7
- package/www/browser/project-edit-modal.component.css.map +0 -7
- package/www/browser/project-import.component.css.map +0 -7
- package/www/browser/project-item-popover.component.css.map +0 -7
- package/www/browser/project-item.component.css.map +0 -7
- package/www/browser/project-list.component.css.map +0 -7
- package/www/browser/projects.component.css.map +0 -7
- package/www/browser/quick-task-widget.component.css.map +0 -7
- package/www/browser/rd-action-area.component.css.map +0 -7
- package/www/browser/rd-advance-stage-dialog.component.css.map +0 -7
- package/www/browser/rd-block-dialog.component.css.map +0 -7
- package/www/browser/rd-create-dialog.component.css.map +0 -7
- package/www/browser/rd-detail.component.css.map +0 -7
- package/www/browser/rd-item-card.component.css.map +0 -7
- package/www/browser/rd-list-board.component.css.map +0 -7
- package/www/browser/rd-list-table.component.css.map +0 -7
- package/www/browser/rd.component.css.map +0 -7
- package/www/browser/request-collections.component.css.map +0 -7
- package/www/browser/request-editor.component.css.map +0 -7
- package/www/browser/request-list-item.component.css.map +0 -7
- package/www/browser/request-list.component.css.map +0 -7
- package/www/browser/request-tabs-bar.component.css.map +0 -7
- package/www/browser/request-tabs.component.css.map +0 -7
- package/www/browser/request-urlbar.component.css.map +0 -7
- package/www/browser/response-viewer.component.css.map +0 -7
- package/www/browser/scripts.js +0 -245
- package/www/browser/scripts.js.map +0 -7
- package/www/browser/setting.component.css.map +0 -7
- package/www/browser/sprite-conf-modal.component.css.map +0 -7
- package/www/browser/sprite-icons-panel-component.css.map +0 -7
- package/www/browser/sprite-images-panel-component.css.map +0 -7
- package/www/browser/sprite-result-tabs.component.css.map +0 -7
- package/www/browser/sprite-viewport-component.css.map +0 -7
- package/www/browser/sprite.component.css.map +0 -7
- package/www/browser/step-advance.component.css.map +0 -7
- package/www/browser/step-basic.component.css.map +0 -7
- package/www/browser/step-config.component.css.map +0 -7
- package/www/browser/step-features.component.css.map +0 -7
- package/www/browser/step-preset.component.css.map +0 -7
- package/www/browser/step-summary-aside.component.css.map +0 -7
- package/www/browser/styles.css +0 -258
- package/www/browser/styles.css.map +0 -7
- package/www/browser/system-log.component.css.map +0 -7
- package/www/browser/task-actions.component.css.map +0 -7
- package/www/browser/task-console.component.css.map +0 -7
- package/www/browser/task-header.component.css.map +0 -7
- package/www/browser/task-list.component.css.map +0 -7
- package/www/browser/tasks.component.css.map +0 -7
- package/www/browser/terminal-view.component.css.map +0 -7
- package/www/browser/welcome-widget.component.css.map +0 -7
- package/www/browser/widget-base.component.css.map +0 -7
- package/www/browser/widget-host.component.css.map +0 -7
|
@@ -34,7 +34,7 @@ var __importStar = (this && this.__importStar) || (function () {
|
|
|
34
34
|
})();
|
|
35
35
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
36
36
|
exports.default = projectRoutes;
|
|
37
|
-
const
|
|
37
|
+
const errors_1 = require("@yinuo-ngm/errors");
|
|
38
38
|
const path = __importStar(require("path"));
|
|
39
39
|
const editor_1 = require("../common/editor");
|
|
40
40
|
async function projectRoutes(fastify) {
|
|
@@ -138,7 +138,7 @@ async function projectRoutes(fastify) {
|
|
|
138
138
|
const { id } = req.params;
|
|
139
139
|
const body = req.body;
|
|
140
140
|
if (typeof body?.timestamp !== "number") {
|
|
141
|
-
throw new
|
|
141
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.INVALID_TIMESTAMP, "timestamp must be a number");
|
|
142
142
|
}
|
|
143
143
|
const updated = await fastify.core.project.setLastOpened(id, body.timestamp);
|
|
144
144
|
return updated;
|
|
@@ -147,16 +147,21 @@ async function projectRoutes(fastify) {
|
|
|
147
147
|
const { id } = req.params;
|
|
148
148
|
const body = req.body;
|
|
149
149
|
if (typeof body?.name !== "string" || body.name.trim() === "") {
|
|
150
|
-
throw new
|
|
150
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.INVALID_NAME, "name must be a non-empty string");
|
|
151
151
|
}
|
|
152
152
|
const updated = await fastify.core.project.rename(id, body.name.trim());
|
|
153
153
|
return updated;
|
|
154
154
|
});
|
|
155
|
+
fastify.post("/refreshScripts/:id", async (req) => {
|
|
156
|
+
const { id } = req.params;
|
|
157
|
+
const updated = await fastify.core.project.refreshScripts(id);
|
|
158
|
+
return updated;
|
|
159
|
+
});
|
|
155
160
|
fastify.post("/edit/:id", async (req) => {
|
|
156
161
|
const { id } = req.params;
|
|
157
162
|
const body = req.body;
|
|
158
163
|
if (typeof body?.name !== "string" || body.name.trim() === "") {
|
|
159
|
-
throw new
|
|
164
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.INVALID_NAME, "name must be a non-empty string");
|
|
160
165
|
}
|
|
161
166
|
const updated = await fastify.core.project.edit(id, {
|
|
162
167
|
name: body.name.trim(),
|
|
@@ -170,7 +175,7 @@ async function projectRoutes(fastify) {
|
|
|
170
175
|
const body = req.body;
|
|
171
176
|
const assets = body?.assets;
|
|
172
177
|
if (!assets || !assets.iconsSvn) {
|
|
173
|
-
throw new
|
|
178
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.BAD_REQUEST, "参数错误,assets.iconsSvn 是必需的");
|
|
174
179
|
}
|
|
175
180
|
const updated = await fastify.core.project.updateAssets(id, assets);
|
|
176
181
|
return updated;
|
|
@@ -182,10 +187,10 @@ async function projectRoutes(fastify) {
|
|
|
182
187
|
const p = await fastify.core.project.get(id);
|
|
183
188
|
const editor = body?.editor || "code";
|
|
184
189
|
await (0, editor_1.openFolder)(p.root, { editor });
|
|
185
|
-
return {
|
|
190
|
+
return {};
|
|
186
191
|
}
|
|
187
192
|
catch (e) {
|
|
188
|
-
throw new
|
|
193
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.EDITOR_LAUNCH_FAILED, e?.message || "openInEditor failed");
|
|
189
194
|
}
|
|
190
195
|
});
|
|
191
196
|
fastify.post("/bootstrap/cli", async (req) => {
|
|
@@ -201,9 +206,9 @@ async function projectRoutes(fastify) {
|
|
|
201
206
|
const taskId = String(body?.taskId ?? "").trim();
|
|
202
207
|
const pickedRoot = String(body?.pickedRoot ?? "").trim();
|
|
203
208
|
if (!taskId)
|
|
204
|
-
throw new
|
|
209
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.BAD_REQUEST, "taskId is required");
|
|
205
210
|
if (!pickedRoot)
|
|
206
|
-
throw new
|
|
211
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.BAD_REQUEST, "pickedRoot is required");
|
|
207
212
|
const r = await fastify.core.bootstrap.pickWorkspaceRoot({ taskId, pickedRoot });
|
|
208
213
|
return r;
|
|
209
214
|
});
|
package/lib/routes/rss.routes.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = rssRoutes;
|
|
7
|
-
const
|
|
7
|
+
const errors_1 = require("@yinuo-ngm/errors");
|
|
8
8
|
const rss_parser_1 = __importDefault(require("rss-parser"));
|
|
9
9
|
const cache = new Map();
|
|
10
10
|
const parser = new rss_parser_1.default({
|
|
@@ -15,7 +15,7 @@ async function rssRoutes(app) {
|
|
|
15
15
|
const q = req.query;
|
|
16
16
|
const url = (q.url ?? "").trim();
|
|
17
17
|
if (!url) {
|
|
18
|
-
throw new
|
|
18
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.INVALID_RSS_URL, "url required", { query: q });
|
|
19
19
|
}
|
|
20
20
|
const limit = Math.min(Math.max(parseInt(q.limit ?? "20", 10) || 20, 1), 100);
|
|
21
21
|
const force = (q.force ?? "0") === "1";
|
|
@@ -47,7 +47,7 @@ async function rssRoutes(app) {
|
|
|
47
47
|
return payload;
|
|
48
48
|
}
|
|
49
49
|
catch (e) {
|
|
50
|
-
throw new
|
|
50
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.RSS_FETCH_FAILED, e?.message || String(e), { url });
|
|
51
51
|
}
|
|
52
52
|
});
|
|
53
53
|
}
|
|
@@ -6,6 +6,7 @@ Object.defineProperty(exports, "__esModule", { value: true });
|
|
|
6
6
|
exports.default = spriteBrowseRoutes;
|
|
7
7
|
const node_fs_1 = __importDefault(require("node:fs"));
|
|
8
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
|
+
const errors_1 = require("@yinuo-ngm/errors");
|
|
9
10
|
const SKIP = new Set([
|
|
10
11
|
".svn",
|
|
11
12
|
".git",
|
|
@@ -18,7 +19,7 @@ function safeJoin(root, sub) {
|
|
|
18
19
|
const resolved = node_path_1.default.resolve(root, sub);
|
|
19
20
|
const rootResolved = node_path_1.default.resolve(root);
|
|
20
21
|
if (!resolved.startsWith(rootResolved)) {
|
|
21
|
-
throw new
|
|
22
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.BAD_REQUEST, "INVALID_PATH");
|
|
22
23
|
}
|
|
23
24
|
return resolved;
|
|
24
25
|
}
|
|
@@ -48,26 +49,40 @@ async function spriteBrowseRoutes(fastify) {
|
|
|
48
49
|
fastify.get("/icons/groups/:projectId", async (req) => {
|
|
49
50
|
const { projectId } = req.params;
|
|
50
51
|
const project = await fastify.core.project.get(projectId);
|
|
51
|
-
const
|
|
52
|
+
const cfg = await fastify.core.sprite.getConfig(projectId);
|
|
53
|
+
const localRoot = String(cfg?.localImageRoot ?? "").trim();
|
|
54
|
+
const root = localRoot || project?.assets?.iconsSvn?.localDir;
|
|
52
55
|
if (!root) {
|
|
53
56
|
return { root: "", entries: [] };
|
|
54
57
|
}
|
|
55
|
-
|
|
58
|
+
const entries = listDir(root).filter(e => e.kind === "dir");
|
|
59
|
+
if (localRoot) {
|
|
60
|
+
const rootFiles = listDir(root).filter((e) => e.kind === "file" && (e.ext === ".png" || e.ext === ".svg"));
|
|
61
|
+
if (rootFiles.length > 0) {
|
|
62
|
+
entries.unshift({ name: "root", kind: "dir", ext: undefined });
|
|
63
|
+
}
|
|
64
|
+
}
|
|
65
|
+
return { root, entries };
|
|
56
66
|
});
|
|
57
67
|
fastify.get("/icons/files/:projectId", async (req) => {
|
|
58
68
|
const { projectId } = req.params;
|
|
59
69
|
const group = req.query?.group;
|
|
60
70
|
const project = await fastify.core.project.get(projectId);
|
|
61
|
-
const
|
|
71
|
+
const cfg = await fastify.core.sprite.getConfig(projectId);
|
|
72
|
+
const localRoot = String(cfg?.localImageRoot ?? "").trim();
|
|
73
|
+
const root = localRoot || project?.assets?.iconsSvn?.localDir;
|
|
62
74
|
if (!root) {
|
|
63
75
|
return { root: "", entries: [] };
|
|
64
76
|
}
|
|
65
|
-
const
|
|
77
|
+
const isRootGroup = !!localRoot && (group === "root");
|
|
78
|
+
const groupDir = isRootGroup ? root : safeJoin(root, group || '');
|
|
66
79
|
const entries = listDir(groupDir)
|
|
67
80
|
.filter(e => e.kind === "file")
|
|
68
81
|
.map(e => ({
|
|
69
82
|
...e,
|
|
70
|
-
url:
|
|
83
|
+
url: localRoot
|
|
84
|
+
? `/api/static/local/${projectId}/${isRootGroup ? e.name : `${group}/${e.name}`}`
|
|
85
|
+
: `/api/static/svn/${projectId}/icons/${group}/${e.name}`,
|
|
71
86
|
}));
|
|
72
87
|
return { root: groupDir, entries };
|
|
73
88
|
});
|
|
@@ -5,7 +5,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.spriteRoutes = spriteRoutes;
|
|
7
7
|
const node_path_1 = __importDefault(require("node:path"));
|
|
8
|
-
const
|
|
8
|
+
const errors_1 = require("@yinuo-ngm/errors");
|
|
9
9
|
async function spriteRoutes(fastify) {
|
|
10
10
|
fastify.get("/config/:projectId", async (req) => {
|
|
11
11
|
const { projectId } = req.params;
|
|
@@ -14,26 +14,30 @@ async function spriteRoutes(fastify) {
|
|
|
14
14
|
fastify.post("/config/:projectId", async (req) => {
|
|
15
15
|
const { projectId } = req.params;
|
|
16
16
|
const body = req.body;
|
|
17
|
-
if (!body || !body.config
|
|
18
|
-
throw new
|
|
17
|
+
if (!body || !body.config) {
|
|
18
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.BAD_REQUEST, 'Missing config in request body');
|
|
19
19
|
}
|
|
20
20
|
const nextCfg = body.config;
|
|
21
|
-
const nextAssets = body.assets;
|
|
22
|
-
|
|
23
|
-
|
|
21
|
+
const nextAssets = body.assets || {};
|
|
22
|
+
const hasLocalImageRoot = !!String(nextCfg.localImageRoot ?? "").trim();
|
|
23
|
+
if (!nextAssets.iconsSvn && !hasLocalImageRoot) {
|
|
24
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.BAD_REQUEST, 'iconsSvn asset or localImageRoot is required');
|
|
24
25
|
}
|
|
25
|
-
if (nextCfg.localDir) {
|
|
26
|
+
if (nextCfg.localDir && nextAssets.iconsSvn) {
|
|
26
27
|
nextAssets.iconsSvn.localDir = node_path_1.default.join(nextCfg.localDir, nextAssets.iconsSvn.label || 'icons');
|
|
27
28
|
if (nextAssets.cutImageSvn) {
|
|
28
29
|
nextAssets.cutImageSvn.localDir = node_path_1.default.join(nextCfg.localDir, nextAssets.cutImageSvn.label || 'images');
|
|
29
30
|
}
|
|
30
31
|
}
|
|
31
|
-
const
|
|
32
|
-
|
|
33
|
-
|
|
32
|
+
const shouldUpdateAssets = !!(nextAssets.iconsSvn || nextAssets.cutImageSvn);
|
|
33
|
+
const project = shouldUpdateAssets
|
|
34
|
+
? await fastify.core.project.updateAssets(projectId, nextAssets)
|
|
35
|
+
: await fastify.core.project.get(projectId);
|
|
36
|
+
if (project.assets?.iconsSvn) {
|
|
37
|
+
nextCfg.sourceId = project.assets.iconsSvn.id;
|
|
34
38
|
}
|
|
35
39
|
const cfg = await fastify.core.sprite.createConfig(projectId, nextCfg);
|
|
36
|
-
return { cfg, project
|
|
40
|
+
return { cfg, project };
|
|
37
41
|
});
|
|
38
42
|
fastify.post("/generate/:projectId", async (req) => {
|
|
39
43
|
const { projectId } = req.params;
|
|
@@ -48,6 +52,8 @@ async function spriteRoutes(fastify) {
|
|
|
48
52
|
});
|
|
49
53
|
fastify.get("/list/:projectId", async (req) => {
|
|
50
54
|
const { projectId } = req.params;
|
|
51
|
-
|
|
55
|
+
const query = req.query;
|
|
56
|
+
const local = String(query['local'] ?? '').toLowerCase() === 'true';
|
|
57
|
+
return await fastify.core.sprite.getSprites(projectId, local);
|
|
52
58
|
});
|
|
53
59
|
}
|
|
@@ -37,7 +37,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
37
37
|
};
|
|
38
38
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
39
39
|
exports.default = staticFileRoutes;
|
|
40
|
-
const
|
|
40
|
+
const errors_1 = require("@yinuo-ngm/errors");
|
|
41
41
|
const mime_types_1 = __importDefault(require("mime-types"));
|
|
42
42
|
const node_fs_1 = __importStar(require("node:fs"));
|
|
43
43
|
const node_path_1 = __importDefault(require("node:path"));
|
|
@@ -45,7 +45,7 @@ function safeJoin(root, sub) {
|
|
|
45
45
|
const resolved = node_path_1.default.resolve(root, sub);
|
|
46
46
|
const rootResolved = node_path_1.default.resolve(root);
|
|
47
47
|
if (!resolved.startsWith(rootResolved)) {
|
|
48
|
-
throw new
|
|
48
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.BAD_REQUEST, "INVALID_PATH");
|
|
49
49
|
}
|
|
50
50
|
return resolved;
|
|
51
51
|
}
|
|
@@ -56,7 +56,7 @@ async function staticFileRoutes(fastify) {
|
|
|
56
56
|
const cacheDir = fastify.core.sprite.ensureCacheDir(projectId);
|
|
57
57
|
const filePath = safeJoin(cacheDir, file);
|
|
58
58
|
if (!node_fs_1.default.existsSync(filePath)) {
|
|
59
|
-
throw new
|
|
59
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.NOT_FOUND, "Requested file not found in cache");
|
|
60
60
|
}
|
|
61
61
|
const ct = mime_types_1.default.lookup(filePath) || "application/octet-stream";
|
|
62
62
|
reply.header("Content-Type", ct);
|
|
@@ -70,11 +70,27 @@ async function staticFileRoutes(fastify) {
|
|
|
70
70
|
? project?.assets?.iconsSvn?.localDir
|
|
71
71
|
: project?.assets?.cutImageSvn?.localDir;
|
|
72
72
|
if (!root) {
|
|
73
|
-
throw new
|
|
73
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.ASSET_NOT_FOUND, "Project asset source not found");
|
|
74
74
|
}
|
|
75
75
|
const filePath = safeJoin(root, file);
|
|
76
76
|
if (!node_fs_1.default.existsSync(filePath)) {
|
|
77
|
-
throw new
|
|
77
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.NOT_FOUND, "Requested file not found in SVN");
|
|
78
|
+
}
|
|
79
|
+
const ct = mime_types_1.default.lookup(filePath) || "application/octet-stream";
|
|
80
|
+
reply.header("Content-Type", ct);
|
|
81
|
+
return reply.send((0, node_fs_1.createReadStream)(filePath));
|
|
82
|
+
});
|
|
83
|
+
fastify.get("/local/:projectId/*", async (req, reply) => {
|
|
84
|
+
const { projectId } = req.params;
|
|
85
|
+
const file = req.params["*"];
|
|
86
|
+
const cfg = await fastify.core.sprite.getConfig(projectId);
|
|
87
|
+
const root = String(cfg?.localImageRoot ?? "").trim();
|
|
88
|
+
if (!root) {
|
|
89
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.ASSET_NOT_FOUND, "localImageRoot not configured");
|
|
90
|
+
}
|
|
91
|
+
const filePath = safeJoin(root, file);
|
|
92
|
+
if (!node_fs_1.default.existsSync(filePath)) {
|
|
93
|
+
throw new errors_1.GlobalError(errors_1.GlobalErrorCodes.NOT_FOUND, "Requested file not found in local folder");
|
|
78
94
|
}
|
|
79
95
|
const ct = mime_types_1.default.lookup(filePath) || "application/octet-stream";
|
|
80
96
|
reply.header("Content-Type", ct);
|
package/lib/routes/svn.routes.js
CHANGED
|
@@ -4,7 +4,7 @@ var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
|
4
4
|
};
|
|
5
5
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
6
|
exports.default = svnRoutes;
|
|
7
|
-
const
|
|
7
|
+
const errors_1 = require("@yinuo-ngm/errors");
|
|
8
8
|
const node_path_1 = __importDefault(require("node:path"));
|
|
9
9
|
const env_1 = require("../env");
|
|
10
10
|
async function svnRoutes(fastify) {
|
|
@@ -13,7 +13,8 @@ async function svnRoutes(fastify) {
|
|
|
13
13
|
const p = await fastify.core.project.get(projectId);
|
|
14
14
|
const assets = p.assets;
|
|
15
15
|
if (!assets) {
|
|
16
|
-
throw new
|
|
16
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.ASSET_NOT_FOUND, 'Project assets are required for SVN sync');
|
|
17
|
+
;
|
|
17
18
|
}
|
|
18
19
|
const { iconsSvn, cutImageSvn } = assets;
|
|
19
20
|
const svnSources = [iconsSvn, cutImageSvn].filter(s => s && s.kind === "svn");
|
|
@@ -37,7 +38,8 @@ async function svnRoutes(fastify) {
|
|
|
37
38
|
const { projectId } = req.params;
|
|
38
39
|
const assets = (await fastify.core.project.get(projectId)).assets;
|
|
39
40
|
if (!assets) {
|
|
40
|
-
throw new
|
|
41
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.ASSET_NOT_FOUND, 'Project assets are required for SVN sync');
|
|
42
|
+
;
|
|
41
43
|
}
|
|
42
44
|
const { iconsSvn, cutImageSvn } = assets;
|
|
43
45
|
const svnSources = [iconsSvn, cutImageSvn].filter(s => s && s.kind === "svn");
|
|
@@ -2,6 +2,11 @@
|
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = systemRoutes;
|
|
4
4
|
const env_1 = require("../env");
|
|
5
|
+
function isLocalAddress(ip) {
|
|
6
|
+
return (ip === '127.0.0.1' ||
|
|
7
|
+
ip === '::1' ||
|
|
8
|
+
ip === '::ffff:127.0.0.1');
|
|
9
|
+
}
|
|
5
10
|
async function systemRoutes(fastify) {
|
|
6
11
|
fastify.get("/health", async () => ({
|
|
7
12
|
ts: Date.now(),
|
|
@@ -11,7 +16,21 @@ async function systemRoutes(fastify) {
|
|
|
11
16
|
version: process.env.npm_package_version,
|
|
12
17
|
dataDir: env_1.env.dataDir
|
|
13
18
|
}));
|
|
14
|
-
fastify.post("/shutdown", async () => {
|
|
19
|
+
fastify.post("/shutdown", async (request, reply) => {
|
|
20
|
+
if (!isLocalAddress(request.ip)) {
|
|
21
|
+
fastify.log.warn(`Shutdown rejected: not localhost (${request.ip})`);
|
|
22
|
+
return reply.code(403).send({ ok: false, error: 'Localhost only' });
|
|
23
|
+
}
|
|
24
|
+
const token = request.headers["x-ngm-shutdown-token"];
|
|
25
|
+
const expected = env_1.env.shutdownToken;
|
|
26
|
+
if (!expected) {
|
|
27
|
+
fastify.log.warn("Shutdown rejected: no shutdown token configured");
|
|
28
|
+
return reply.code(403).send({ ok: false, error: 'Shutdown token required' });
|
|
29
|
+
}
|
|
30
|
+
if (token !== expected) {
|
|
31
|
+
fastify.log.warn("Shutdown rejected: invalid token");
|
|
32
|
+
return reply.code(403).send({ ok: false, error: 'Invalid shutdown token' });
|
|
33
|
+
}
|
|
15
34
|
fastify.log.info("Shutdown requested via /shutdown");
|
|
16
35
|
setTimeout(async () => {
|
|
17
36
|
try {
|
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
"use strict";
|
|
2
2
|
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
3
|
exports.default = taskRoutes;
|
|
4
|
-
const
|
|
4
|
+
const errors_1 = require("@yinuo-ngm/errors");
|
|
5
5
|
async function ensureSpecs(fastify, projectId) {
|
|
6
6
|
const specs = await fastify.core.task.listSpecsByProject(projectId);
|
|
7
7
|
if (specs.length === 0) {
|
|
@@ -22,16 +22,23 @@ async function taskRoutes(fastify) {
|
|
|
22
22
|
const body = req.body;
|
|
23
23
|
const taskId = body?.taskId?.trim();
|
|
24
24
|
if (!taskId)
|
|
25
|
-
throw new
|
|
25
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.TASK_ID_REQUIRED, "taskId is required", { body });
|
|
26
26
|
return await fastify.core.task.start(taskId);
|
|
27
27
|
});
|
|
28
28
|
fastify.post("/stop", async (req) => {
|
|
29
29
|
const body = req.body;
|
|
30
30
|
const taskId = body?.taskId?.trim();
|
|
31
31
|
if (!taskId)
|
|
32
|
-
throw new
|
|
32
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.TASK_ID_REQUIRED, "taskId is required", { body });
|
|
33
33
|
return await fastify.core.task.stop(taskId);
|
|
34
34
|
});
|
|
35
|
+
fastify.post("/restart", async (req) => {
|
|
36
|
+
const body = req.body;
|
|
37
|
+
const taskId = body?.taskId?.trim();
|
|
38
|
+
if (!taskId)
|
|
39
|
+
throw new errors_1.CoreError(errors_1.CoreErrorCodes.TASK_ID_REQUIRED, "taskId is required", { body });
|
|
40
|
+
return await fastify.core.task.restart(taskId);
|
|
41
|
+
});
|
|
35
42
|
fastify.get("/status/:taskId", async (req) => {
|
|
36
43
|
const { taskId } = req.params;
|
|
37
44
|
return await fastify.core.task.status(taskId);
|
package/package.json
CHANGED
|
@@ -1,11 +1,17 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@yinuo-ngm/server",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.17",
|
|
4
4
|
"description": "a server package for Yinuo NG Manager",
|
|
5
5
|
"author": "ZhangJing <892295834@qq.com>",
|
|
6
6
|
"license": "ISC",
|
|
7
7
|
"main": "lib/index.js",
|
|
8
8
|
"types": "lib/index.d.ts",
|
|
9
|
+
"exports": {
|
|
10
|
+
".": {
|
|
11
|
+
"types": "./lib/index.d.ts",
|
|
12
|
+
"default": "./lib/index.js"
|
|
13
|
+
}
|
|
14
|
+
},
|
|
9
15
|
"keywords": [],
|
|
10
16
|
"files": [
|
|
11
17
|
"lib",
|
|
@@ -22,19 +28,20 @@
|
|
|
22
28
|
"dependencies": {
|
|
23
29
|
"@fastify/static": "^9.0.0",
|
|
24
30
|
"@fastify/websocket": "^11.2.0",
|
|
25
|
-
"@yinuo-ngm/api": "^0.1.
|
|
26
|
-
"@yinuo-ngm/core": "^0.1.
|
|
27
|
-
"@yinuo-ngm/
|
|
31
|
+
"@yinuo-ngm/api": "^0.1.6",
|
|
32
|
+
"@yinuo-ngm/core": "^0.1.9",
|
|
33
|
+
"@yinuo-ngm/errors": "^1.0.1",
|
|
34
|
+
"@yinuo-ngm/nginx": "^0.1.2",
|
|
35
|
+
"@yinuo-ngm/protocol": "^0.1.1",
|
|
28
36
|
"fastify": "^5.6.2",
|
|
29
37
|
"fastify-plugin": "^5.1.0",
|
|
30
38
|
"launch-editor": "^2.12.0",
|
|
31
39
|
"mime-types": "^2.1.35",
|
|
32
|
-
"pino-pretty": "^13.1.3",
|
|
33
40
|
"rss-parser": "^3.13.0"
|
|
34
41
|
},
|
|
35
42
|
"devDependencies": {
|
|
36
43
|
"@types/mime-types": "^3.0.1",
|
|
37
44
|
"tsx": "^4.21.0"
|
|
38
45
|
},
|
|
39
|
-
"gitHead": "
|
|
46
|
+
"gitHead": "7b489cbe68f48a52e0004ea6abf343de3385c569"
|
|
40
47
|
}
|
package/www/3rdpartylicenses.txt
CHANGED
|
@@ -235,58 +235,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
235
235
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
236
236
|
THE SOFTWARE.
|
|
237
237
|
|
|
238
|
-
--------------------------------------------------------------------------------
|
|
239
|
-
Package: lodash
|
|
240
|
-
License: "MIT"
|
|
241
|
-
|
|
242
|
-
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
243
|
-
|
|
244
|
-
Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
245
|
-
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
246
|
-
|
|
247
|
-
This software consists of voluntary contributions made by many
|
|
248
|
-
individuals. For exact contribution history, see the revision history
|
|
249
|
-
available at https://github.com/lodash/lodash
|
|
250
|
-
|
|
251
|
-
The following license applies to all parts of this software except as
|
|
252
|
-
documented below:
|
|
253
|
-
|
|
254
|
-
====
|
|
255
|
-
|
|
256
|
-
Permission is hereby granted, free of charge, to any person obtaining
|
|
257
|
-
a copy of this software and associated documentation files (the
|
|
258
|
-
"Software"), to deal in the Software without restriction, including
|
|
259
|
-
without limitation the rights to use, copy, modify, merge, publish,
|
|
260
|
-
distribute, sublicense, and/or sell copies of the Software, and to
|
|
261
|
-
permit persons to whom the Software is furnished to do so, subject to
|
|
262
|
-
the following conditions:
|
|
263
|
-
|
|
264
|
-
The above copyright notice and this permission notice shall be
|
|
265
|
-
included in all copies or substantial portions of the Software.
|
|
266
|
-
|
|
267
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
268
|
-
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
269
|
-
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
270
|
-
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
271
|
-
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
272
|
-
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
273
|
-
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
274
|
-
|
|
275
|
-
====
|
|
276
|
-
|
|
277
|
-
Copyright and related rights for sample code are waived via CC0. Sample
|
|
278
|
-
code is defined as all source code displayed within the prose of the
|
|
279
|
-
documentation.
|
|
280
|
-
|
|
281
|
-
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
282
|
-
|
|
283
|
-
====
|
|
284
|
-
|
|
285
|
-
Files located in the node_modules and vendor directories are externally
|
|
286
|
-
maintained libraries used by this software which have their own
|
|
287
|
-
licenses; we recommend you read them, as their terms may differ from the
|
|
288
|
-
terms above.
|
|
289
|
-
|
|
290
238
|
--------------------------------------------------------------------------------
|
|
291
239
|
Package: @xterm/xterm
|
|
292
240
|
License: "MIT"
|
|
@@ -361,6 +309,58 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
361
309
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
362
310
|
THE SOFTWARE.
|
|
363
311
|
|
|
312
|
+
--------------------------------------------------------------------------------
|
|
313
|
+
Package: lodash
|
|
314
|
+
License: "MIT"
|
|
315
|
+
|
|
316
|
+
Copyright OpenJS Foundation and other contributors <https://openjsf.org/>
|
|
317
|
+
|
|
318
|
+
Based on Underscore.js, copyright Jeremy Ashkenas,
|
|
319
|
+
DocumentCloud and Investigative Reporters & Editors <http://underscorejs.org/>
|
|
320
|
+
|
|
321
|
+
This software consists of voluntary contributions made by many
|
|
322
|
+
individuals. For exact contribution history, see the revision history
|
|
323
|
+
available at https://github.com/lodash/lodash
|
|
324
|
+
|
|
325
|
+
The following license applies to all parts of this software except as
|
|
326
|
+
documented below:
|
|
327
|
+
|
|
328
|
+
====
|
|
329
|
+
|
|
330
|
+
Permission is hereby granted, free of charge, to any person obtaining
|
|
331
|
+
a copy of this software and associated documentation files (the
|
|
332
|
+
"Software"), to deal in the Software without restriction, including
|
|
333
|
+
without limitation the rights to use, copy, modify, merge, publish,
|
|
334
|
+
distribute, sublicense, and/or sell copies of the Software, and to
|
|
335
|
+
permit persons to whom the Software is furnished to do so, subject to
|
|
336
|
+
the following conditions:
|
|
337
|
+
|
|
338
|
+
The above copyright notice and this permission notice shall be
|
|
339
|
+
included in all copies or substantial portions of the Software.
|
|
340
|
+
|
|
341
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
|
|
342
|
+
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
|
|
343
|
+
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
|
|
344
|
+
NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
|
|
345
|
+
LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
|
|
346
|
+
OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
|
|
347
|
+
WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
|
|
348
|
+
|
|
349
|
+
====
|
|
350
|
+
|
|
351
|
+
Copyright and related rights for sample code are waived via CC0. Sample
|
|
352
|
+
code is defined as all source code displayed within the prose of the
|
|
353
|
+
documentation.
|
|
354
|
+
|
|
355
|
+
CC0: http://creativecommons.org/publicdomain/zero/1.0/
|
|
356
|
+
|
|
357
|
+
====
|
|
358
|
+
|
|
359
|
+
Files located in the node_modules and vendor directories are externally
|
|
360
|
+
maintained libraries used by this software which have their own
|
|
361
|
+
licenses; we recommend you read them, as their terms may differ from the
|
|
362
|
+
terms above.
|
|
363
|
+
|
|
364
364
|
--------------------------------------------------------------------------------
|
|
365
365
|
Package: @angular/core
|
|
366
366
|
License: "MIT"
|
|
@@ -509,32 +509,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
509
509
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
510
510
|
THE SOFTWARE.
|
|
511
511
|
|
|
512
|
-
--------------------------------------------------------------------------------
|
|
513
|
-
Package: date-fns
|
|
514
|
-
License: "MIT"
|
|
515
|
-
|
|
516
|
-
MIT License
|
|
517
|
-
|
|
518
|
-
Copyright (c) 2021 Sasha Koss and Lesha Koss https://kossnocorp.mit-license.org
|
|
519
|
-
|
|
520
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
521
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
522
|
-
in the Software without restriction, including without limitation the rights
|
|
523
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
524
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
525
|
-
furnished to do so, subject to the following conditions:
|
|
526
|
-
|
|
527
|
-
The above copyright notice and this permission notice shall be included in all
|
|
528
|
-
copies or substantial portions of the Software.
|
|
529
|
-
|
|
530
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
531
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
532
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
533
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
534
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
535
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
536
|
-
SOFTWARE.
|
|
537
|
-
|
|
538
512
|
--------------------------------------------------------------------------------
|
|
539
513
|
Package: @angular/router
|
|
540
514
|
License: "MIT"
|
|
@@ -561,22 +535,6 @@ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
|
561
535
|
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
562
536
|
THE SOFTWARE.
|
|
563
537
|
|
|
564
|
-
--------------------------------------------------------------------------------
|
|
565
|
-
Package: tslib
|
|
566
|
-
License: "0BSD"
|
|
567
|
-
|
|
568
|
-
Copyright (c) Microsoft Corporation.
|
|
569
|
-
|
|
570
|
-
Permission to use, copy, modify, and/or distribute this software for any
|
|
571
|
-
purpose with or without fee is hereby granted.
|
|
572
|
-
|
|
573
|
-
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
574
|
-
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
575
|
-
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
576
|
-
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
577
|
-
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
578
|
-
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
579
|
-
PERFORMANCE OF THIS SOFTWARE.
|
|
580
538
|
--------------------------------------------------------------------------------
|
|
581
539
|
Package: rxjs
|
|
582
540
|
License: "Apache-2.0"
|
|
@@ -785,29 +743,19 @@ License: "Apache-2.0"
|
|
|
785
743
|
|
|
786
744
|
|
|
787
745
|
--------------------------------------------------------------------------------
|
|
788
|
-
Package:
|
|
789
|
-
License: "
|
|
790
|
-
|
|
791
|
-
The MIT License
|
|
792
|
-
|
|
793
|
-
Copyright (c) 2010-2025 Google LLC. https://angular.dev/license
|
|
794
|
-
|
|
795
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
796
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
797
|
-
in the Software without restriction, including without limitation the rights
|
|
798
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
799
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
800
|
-
furnished to do so, subject to the following conditions:
|
|
801
|
-
|
|
802
|
-
The above copyright notice and this permission notice shall be included in
|
|
803
|
-
all copies or substantial portions of the Software.
|
|
804
|
-
|
|
805
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
806
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
807
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
808
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
809
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
810
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
|
|
811
|
-
THE SOFTWARE.
|
|
746
|
+
Package: tslib
|
|
747
|
+
License: "0BSD"
|
|
812
748
|
|
|
749
|
+
Copyright (c) Microsoft Corporation.
|
|
750
|
+
|
|
751
|
+
Permission to use, copy, modify, and/or distribute this software for any
|
|
752
|
+
purpose with or without fee is hereby granted.
|
|
753
|
+
|
|
754
|
+
THE SOFTWARE IS PROVIDED "AS IS" AND THE AUTHOR DISCLAIMS ALL WARRANTIES WITH
|
|
755
|
+
REGARD TO THIS SOFTWARE INCLUDING ALL IMPLIED WARRANTIES OF MERCHANTABILITY
|
|
756
|
+
AND FITNESS. IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY SPECIAL, DIRECT,
|
|
757
|
+
INDIRECT, OR CONSEQUENTIAL DAMAGES OR ANY DAMAGES WHATSOEVER RESULTING FROM
|
|
758
|
+
LOSS OF USE, DATA OR PROFITS, WHETHER IN AN ACTION OF CONTRACT, NEGLIGENCE OR
|
|
759
|
+
OTHER TORTIOUS ACTION, ARISING OUT OF OR IN CONNECTION WITH THE USE OR
|
|
760
|
+
PERFORMANCE OF THIS SOFTWARE.
|
|
813
761
|
--------------------------------------------------------------------------------
|