@lovrabet/rabetbase-cli 2.2.4-beta.5 → 2.2.4
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/api/api-doc.js +1 -1
- package/lib/api/fetch-model-list.js +1 -1
- package/lib/api/generate-api-file.js +1 -1
- package/lib/auth/auth-server-ui.js +1 -1
- package/lib/auth/auth-server.js +1 -1
- package/lib/auth/constant.js +1 -1
- package/lib/auth/get-cookie.js +1 -1
- package/lib/auth/get-session-user.js +1 -1
- package/lib/auth/is-session-valid.js +1 -1
- package/lib/auth/login-success-html.js +1 -1
- package/lib/auth/logout.js +1 -1
- package/lib/cli-flags.js +1 -1
- package/lib/cli.js +1 -1
- package/lib/commands/api/generate.js +1 -1
- package/lib/commands/api/index.js +1 -1
- package/lib/commands/api/list.js +1 -1
- package/lib/commands/api/pull.js +1 -1
- package/lib/commands/api/shared.js +1 -1
- package/lib/commands/app/add.js +1 -1
- package/lib/commands/app/discover.js +1 -1
- package/lib/commands/app/index.js +1 -1
- package/lib/commands/app/list.js +1 -1
- package/lib/commands/app/remove.js +1 -1
- package/lib/commands/app/shared.js +1 -1
- package/lib/commands/app/use.js +1 -1
- package/lib/commands/auth/index.js +1 -1
- package/lib/commands/bff/create.js +1 -1
- package/lib/commands/bff/delete.js +1 -1
- package/lib/commands/bff/detail.js +1 -1
- package/lib/commands/bff/index.js +1 -1
- package/lib/commands/bff/list.js +1 -1
- package/lib/commands/bff/pull.js +1 -1
- package/lib/commands/bff/push.js +1 -1
- package/lib/commands/bff/status.js +1 -1
- package/lib/commands/cli-update.js +1 -1
- package/lib/commands/codegen/index.js +1 -1
- package/lib/commands/codegen/sdk.js +1 -1
- package/lib/commands/codegen/sql.js +1 -1
- package/lib/commands/common/app-selector.js +1 -1
- package/lib/commands/common/flags.js +1 -1
- package/lib/commands/common/validate.js +1 -1
- package/lib/commands/config/get.js +1 -1
- package/lib/commands/config/index.js +1 -1
- package/lib/commands/config/list.js +1 -1
- package/lib/commands/config/set.js +1 -1
- package/lib/commands/config/shared.js +1 -1
- package/lib/commands/data/filter.js +1 -1
- package/lib/commands/data/getOne.js +1 -1
- package/lib/commands/data/index.js +1 -1
- package/lib/commands/data/shared.js +1 -1
- package/lib/commands/dataset/capability.js +1 -1
- package/lib/commands/dataset/delete.js +1 -1
- package/lib/commands/dataset/detail.js +1 -1
- package/lib/commands/dataset/extend-update.js +1 -1
- package/lib/commands/dataset/field-update.js +1 -1
- package/lib/commands/dataset/index.js +1 -1
- package/lib/commands/dataset/list.js +1 -1
- package/lib/commands/dataset/operations.js +1 -1
- package/lib/commands/dataset/relation-create.js +1 -1
- package/lib/commands/dataset/relation-delete.js +1 -1
- package/lib/commands/dataset/relation-shared.js +1 -1
- package/lib/commands/dataset/relation-update.js +1 -1
- package/lib/commands/dataset/relations.js +1 -1
- package/lib/commands/dataset/rename.js +1 -1
- package/lib/commands/db/analyze-cancel.js +1 -1
- package/lib/commands/db/analyze-start.js +1 -1
- package/lib/commands/db/analyze-status.js +1 -1
- package/lib/commands/db/create.js +1 -1
- package/lib/commands/db/delete.js +1 -1
- package/lib/commands/db/detail.js +1 -1
- package/lib/commands/db/diff.js +1 -1
- package/lib/commands/db/index.js +1 -1
- package/lib/commands/db/list.js +1 -1
- package/lib/commands/db/shared.js +1 -1
- package/lib/commands/db/tables.js +1 -1
- package/lib/commands/db/test.js +1 -1
- package/lib/commands/db/update.js +1 -1
- package/lib/commands/doctor.js +1 -1
- package/lib/commands/init/index.js +1 -1
- package/lib/commands/issue/index.js +1 -1
- package/lib/commands/issue/nudge.js +1 -1
- package/lib/commands/issue/report.js +1 -1
- package/lib/commands/issue/shared.js +1 -1
- package/lib/commands/logs/index.js +1 -1
- package/lib/commands/menu/index.js +1 -1
- package/lib/commands/menu/list.js +1 -1
- package/lib/commands/menu/shared/compare-table.js +1 -1
- package/lib/commands/menu/shared/index.js +1 -1
- package/lib/commands/menu/shared/inquirer.js +1 -1
- package/lib/commands/menu/shared/local-pages.js +1 -1
- package/lib/commands/menu/shared/logic.js +1 -1
- package/lib/commands/menu/shared/service.js +1 -1
- package/lib/commands/menu/shared/sync-core.js +1 -1
- package/lib/commands/menu/shared/update-core.js +1 -1
- package/lib/commands/menu/shared/valid-url.js +1 -1
- package/lib/commands/menu/sync.js +1 -1
- package/lib/commands/menu/update.js +1 -1
- package/lib/commands/page/generate-start.js +1 -1
- package/lib/commands/page/generate-status.js +1 -1
- package/lib/commands/page/index.js +1 -1
- package/lib/commands/page/pull.js +1 -1
- package/lib/commands/page/push.js +1 -1
- package/lib/commands/page/relation-audit.js +1 -1
- package/lib/commands/page/shared.js +1 -1
- package/lib/commands/page/standard-page-status.js +1 -1
- package/lib/commands/page/sync.js +1 -1
- package/lib/commands/project/create/enhanced-guided-create.js +1 -1
- package/lib/commands/project/create/format-elapsed.js +1 -1
- package/lib/commands/project/create/main.js +1 -1
- package/lib/commands/project/create/non-interactive.js +1 -1
- package/lib/commands/project/create/project-template-path.js +1 -1
- package/lib/commands/project/create/use-copy-project-template.js +1 -1
- package/lib/commands/project/create/use-format-code.js +1 -1
- package/lib/commands/project/create/use-install-dependencies.js +1 -1
- package/lib/commands/project/index.js +1 -1
- package/lib/commands/project/init.js +1 -1
- package/lib/commands/project/upgrade.js +1 -1
- package/lib/commands/registry.js +1 -1
- package/lib/commands/run/index.js +1 -1
- package/lib/commands/schema.js +1 -1
- package/lib/commands/skill/index.js +1 -1
- package/lib/commands/sql/create.js +1 -1
- package/lib/commands/sql/delete.js +1 -1
- package/lib/commands/sql/detail.js +1 -1
- package/lib/commands/sql/exec.js +1 -1
- package/lib/commands/sql/index.js +1 -1
- package/lib/commands/sql/list.js +1 -1
- package/lib/commands/sql/pull.js +1 -1
- package/lib/commands/sql/push.js +1 -1
- package/lib/commands/sql/save.js +1 -1
- package/lib/commands/sql/shared.js +1 -1
- package/lib/commands/sql/status.js +1 -1
- package/lib/commands/sql/validate.js +1 -1
- package/lib/commands/workspace/index.js +1 -0
- package/lib/config/schema.js +1 -1
- package/lib/constant/cdn.js +1 -1
- package/lib/constant/cli.js +1 -1
- package/lib/constant/defaults.js +1 -1
- package/lib/constant/domain.js +1 -1
- package/lib/constant/env.js +1 -1
- package/lib/constant/output.js +1 -1
- package/lib/constant/paths.js +1 -1
- package/lib/constant/risk.js +1 -1
- package/lib/context/app-resolver.js +1 -1
- package/lib/context/auth-resolver.js +1 -1
- package/lib/context/config-loader.js +1 -1
- package/lib/context.js +1 -1
- package/lib/core/alias-resolver.js +1 -1
- package/lib/core/api-client.js +1 -1
- package/lib/core/bff/config.js +1 -1
- package/lib/core/bff/file-system.js +1 -1
- package/lib/core/bff/hash.js +1 -1
- package/lib/core/bff/lock.js +1 -1
- package/lib/core/bff/utils.js +1 -1
- package/lib/core/db-resolver.js +1 -1
- package/lib/core/page/file-system.js +1 -1
- package/lib/core/page/hash.js +1 -1
- package/lib/core/page/lock.js +1 -1
- package/lib/core/sql-sync/config.js +1 -1
- package/lib/core/sql-sync/file-system.js +1 -1
- package/lib/core/sql-sync/hash.js +1 -1
- package/lib/core/sql-sync/lock.js +1 -1
- package/lib/core/sql-sync/utils.js +1 -1
- package/lib/core/sql-validator.js +1 -1
- package/lib/errors.js +1 -1
- package/lib/framework/build-all-flags.js +1 -1
- package/lib/framework/flags.js +1 -1
- package/lib/framework/help.js +1 -1
- package/lib/framework/index.js +1 -1
- package/lib/framework/output.js +1 -1
- package/lib/framework/response.js +1 -1
- package/lib/framework/runner-alias.js +1 -1
- package/lib/framework/runner.js +1 -1
- package/lib/framework/schema-export.js +1 -1
- package/lib/framework/types.js +1 -1
- package/lib/generated/build-info.js +1 -1
- package/lib/help.js +1 -1
- package/lib/skills/main.js +1 -1
- package/lib/skills/npx-skills-add.js +1 -1
- package/lib/telemetry/cli-command-trace.js +1 -1
- package/lib/telemetry/cli-help-trace.js +1 -1
- package/lib/telemetry/ensure-cli-otel-config.js +1 -1
- package/lib/telemetry/register-otel-exit-shutdown.js +1 -1
- package/lib/telemetry/send-cli-trace-log.js +1 -1
- package/lib/telemetry/send-platform-issue-collect-log.js +1 -1
- package/lib/utils/ai_config.js +1 -1
- package/lib/utils/apply-jq-filter.js +1 -1
- package/lib/utils/cdn-config.js +1 -1
- package/lib/utils/check-sdk-version.js +1 -1
- package/lib/utils/cli-version-check.js +1 -1
- package/lib/utils/cli-version-policy.js +1 -1
- package/lib/utils/config.js +1 -1
- package/lib/utils/copy-directory.js +1 -1
- package/lib/utils/entity-with-id.js +1 -1
- package/lib/utils/file-utils.js +1 -1
- package/lib/utils/guides-cdn.js +1 -1
- package/lib/utils/http-client.js +1 -1
- package/lib/utils/is-non-interactive.js +1 -1
- package/lib/utils/logger.js +1 -1
- package/lib/utils/params.js +1 -1
- package/lib/utils/platform.js +1 -1
- package/lib/utils/rules-cdn.js +1 -1
- package/lib/utils/sleep.js +1 -1
- package/lib/utils/template-replacer.js +1 -1
- package/lib/utils/update-notice.js +1 -1
- package/lib/utils/version.js +1 -1
- package/lib/utils/with-active-cookie.js +1 -1
- package/lib/utils/write-cli-side-channel.js +1 -1
- package/package.json +1 -1
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
function a89_0x1e10(_0x34880f,_0x57060e){_0x34880f=_0x34880f-0x80;const _0x31c055=a89_0x31c0();let _0x1e10f4=_0x31c055[_0x34880f];return _0x1e10f4;}(function(_0x5a05d5,_0x1e6e72){const _0x29b415=a89_0x1e10,_0x470ef2=_0x5a05d5();while(!![]){try{const _0x471d6b=-parseInt(_0x29b415(0x83))/0x1+-parseInt(_0x29b415(0x93))/0x2+-parseInt(_0x29b415(0x8e))/0x3*(parseInt(_0x29b415(0x85))/0x4)+-parseInt(_0x29b415(0x8f))/0x5+parseInt(_0x29b415(0x97))/0x6*(parseInt(_0x29b415(0x8c))/0x7)+parseInt(_0x29b415(0x82))/0x8*(parseInt(_0x29b415(0x94))/0x9)+parseInt(_0x29b415(0x84))/0xa;if(_0x471d6b===_0x1e6e72)break;else _0x470ef2['push'](_0x470ef2['shift']());}catch(_0x4973fa){_0x470ef2['push'](_0x470ef2['shift']());}}}(a89_0x31c0,0x83a7a));import{readdirSync,statSync,readFileSync}from'fs';import{join,relative,resolve,sep}from'path';const pagesDir=resolve(process['cwd'](),'src/pages');function a89_0x31c0(){const _0x368a77=['index.tsx','utf-8','\x5c.displayName\x5cs*=\x5cs*[\x22\x27]([^\x22\x27]+)[\x22\x27]','247846TNKEOH','27NIlyiB','slice','push','18GqvaIF','concat','forEach','1594704VJvlIP','306178yZBDMr','13349860nuyEkR','12kKcubZ','replace','path','endsWith','match','trim','join','347809jkfewO','.tsx','228609ftBPGK','4420465uMWFEB'];a89_0x31c0=function(){return _0x368a77;};return a89_0x31c0();}export function extractTitleFromComment(_0x3a6710){const _0x10c74c=a89_0x1e10;try{const _0x1d42e5=readFileSync(_0x3a6710,_0x10c74c(0x91)),_0x5101f7=_0x1d42e5[_0x10c74c(0x89)](/^\s*\/\*\*?([\s\S]*?)\*\//);if(_0x5101f7&&_0x5101f7[0x1]){const _0x4048ce=_0x5101f7[0x1],_0x60772d=_0x4048ce[_0x10c74c(0x89)](/^\s*\*?\s*title\s*:\s*(.+)/im);if(_0x60772d&&_0x60772d[0x1])return _0x60772d[0x1][_0x10c74c(0x8a)]();}let _0xe6e7ad=null;const _0x37165c=_0x1d42e5['match'](/export\s+default\s+([A-Z][a-zA-Z0-9]*)/);_0x37165c&&_0x37165c[0x1]&&(_0xe6e7ad=_0x37165c[0x1]);if(!_0xe6e7ad){const _0x36633=_0x1d42e5['match'](/export\s+default\s+function\s+([A-Z][a-zA-Z0-9]*)/);_0x36633&&_0x36633[0x1]&&(_0xe6e7ad=_0x36633[0x1]);}if(_0xe6e7ad){const _0x5a0276=new RegExp('\x5cb'+_0xe6e7ad+_0x10c74c(0x92)),_0x1a7d9e=_0x1d42e5[_0x10c74c(0x89)](_0x5a0276);if(_0x1a7d9e&&_0x1a7d9e[0x1])return _0x1a7d9e[0x1];return _0xe6e7ad;}return null;}catch(_0x436205){return null;}}export function getLocalPages(_0xd46b51=pagesDir,_0x471abd=pagesDir){const _0x1bf81c=a89_0x1e10;let _0x4095c7=[];const _0x41c6cb=readdirSync(_0xd46b51);return _0x41c6cb[_0x1bf81c(0x81)](_0x1b6fe1=>{const _0x305412=_0x1bf81c,_0x42b8c0=join(_0xd46b51,_0x1b6fe1),_0x2a69a0=statSync(_0x42b8c0);if(_0x2a69a0&&_0x2a69a0['isDirectory']())_0x4095c7=_0x4095c7[_0x305412(0x80)](getLocalPages(_0x42b8c0,_0x471abd));else{if(_0x1b6fe1['endsWith'](_0x305412(0x8d))){let _0x3629fe=relative(_0x471abd,_0x42b8c0);_0x3629fe[_0x305412(0x88)](_0x305412(0x90))?_0x3629fe=_0x3629fe[_0x305412(0x86)](/index\.tsx$/,''):_0x3629fe=_0x3629fe['replace'](/\.tsx$/,'');_0x3629fe[_0x305412(0x88)](sep)&&(_0x3629fe=_0x3629fe[_0x305412(0x95)](0x0,-0x1));const _0x11db82=_0x3629fe['split'](sep)[_0x305412(0x8b)]('/'),_0x455967=extractTitleFromComment(_0x42b8c0),_0x2ed0a2=_0x455967||_0x11db82;_0x4095c7[_0x305412(0x96)]({'path':_0x11db82['replaceAll']('$',':'),'label':_0x2ed0a2});}}}),_0x4095c7['filter'](_0x147731=>_0x147731[_0x1bf81c(0x87)]!=='');}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x96b9ec,_0xd60eea){const _0x2fb5c3=a90_0x1138,_0x4373cc=_0x96b9ec();while(!![]){try{const _0x17de9e=parseInt(_0x2fb5c3(0xe0))/0x1*(parseInt(_0x2fb5c3(0xeb))/0x2)+-parseInt(_0x2fb5c3(0xda))/0x3*(-parseInt(_0x2fb5c3(0xe3))/0x4)+-parseInt(_0x2fb5c3(0xdb))/0x5+-parseInt(_0x2fb5c3(0xea))/0x6+parseInt(_0x2fb5c3(0xe5))/0x7*(parseInt(_0x2fb5c3(0xf0))/0x8)+parseInt(_0x2fb5c3(0xf2))/0x9*(-parseInt(_0x2fb5c3(0xe1))/0xa)+parseInt(_0x2fb5c3(0xdc))/0xb;if(_0x17de9e===_0xd60eea)break;else _0x4373cc['push'](_0x4373cc['shift']());}catch(_0x5f1fcb){_0x4373cc['push'](_0x4373cc['shift']());}}}(a90_0x50cb,0x4252c));import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus,updateMenuCdnUrl}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';export function validateJsUrl(_0x4ceedb){const _0x3a2115=a90_0x1138,_0x503411=[];return!isValidJsHttpsUrl(_0x4ceedb)&&_0x503411[_0x3a2115(0xe6)](_0x3a2115(0xec)),{'ok':_0x503411[_0x3a2115(0xe9)]===0x0,'errors':_0x503411};}export function validateCssUrl(_0x2606d9){const _0x1b79ff=a90_0x1138,_0xe0d7dd=[];return!isValidCssHttpsUrl(_0x2606d9)&&_0xe0d7dd['push'](_0x1b79ff(0xdd)),{'ok':_0xe0d7dd[_0x1b79ff(0xe9)]===0x0,'errors':_0xe0d7dd};}function a90_0x50cb(){const _0x46f128=['resources','4Mrbshw','fulfilled','2608018gdqBZI','push','No\x20local\x20pages\x20matched\x20labels:\x20','status','length','1257738azqLpt','2CnhpPE','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','errors','filter','join','8iCYwTI','has','1017LVdglm','map','path','trim','label','1258914ZTYDTm','2040290uvaRVb','3305951KVRwyK','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','rejected','value','77167JrqUzC','24830pvJSFX'];a90_0x50cb=function(){return _0x46f128;};return a90_0x50cb();}export async function validateJsUrlReachable(_0xdb87f2){const _0x19bf74=a90_0x1138,_0x12791f=validateJsUrl(_0xdb87f2);if(!_0x12791f['ok'])return _0x12791f;const _0x183f5b=await isUrlReachable(_0xdb87f2);if(!_0x183f5b)_0x12791f[_0x19bf74(0xed)][_0x19bf74(0xe6)]('JS\x20URL\x20is\x20unreachable');return{'ok':_0x12791f[_0x19bf74(0xed)]['length']===0x0,'errors':_0x12791f[_0x19bf74(0xed)]};}export async function validateCssUrlReachable(_0x3f2fc0){const _0x51a167=a90_0x1138,_0x26a86a=validateCssUrl(_0x3f2fc0);if(!_0x26a86a['ok'])return _0x26a86a;const _0x3b3309=await isUrlReachable(_0x3f2fc0);if(!_0x3b3309)_0x26a86a['errors']['push']('CSS\x20URL\x20is\x20unreachable');return{'ok':_0x26a86a[_0x51a167(0xed)][_0x51a167(0xe9)]===0x0,'errors':_0x26a86a['errors']};}export function buildCompareRows(_0x5b7522,_0x1e5ffc){const _0x384188=a90_0x1138;return _0x5b7522[_0x384188(0xf3)](_0x816637=>({'label':_0x816637[_0x384188(0xd9)],'path':_0x816637['path'],'local':!![],'online':_0x1e5ffc['has'](_0x816637[_0x384188(0xf4)])}));}function a90_0x1138(_0x2d26e2,_0x3f77ea){_0x2d26e2=_0x2d26e2-0xd9;const _0x50cb44=a90_0x50cb();let _0x113836=_0x50cb44[_0x2d26e2];return _0x113836;}export function filterNewPages(_0x47430b,_0x241931,_0x503480){const _0x440209=a90_0x1138;if(_0x503480&&_0x503480[_0x440209(0xe9)]>0x0){const _0x3b85e1=new Set(_0x503480['map'](_0x1dabf0=>_0x1dabf0[_0x440209(0xf5)]())),_0x3ea84d=_0x47430b[_0x440209(0xee)](_0x36795c=>_0x3b85e1[_0x440209(0xf1)](_0x36795c[_0x440209(0xd9)]));if(_0x3ea84d[_0x440209(0xe9)]===0x0)throw new Error(_0x440209(0xe7)+[..._0x3b85e1][_0x440209(0xef)](',\x20'));return _0x3ea84d;}return _0x47430b[_0x440209(0xee)](_0x1532de=>!_0x241931[_0x440209(0xf1)](_0x1532de[_0x440209(0xf4)]));}export function filterPagesByLabels(_0x492a75,_0x54e16c){const _0x70a402=a90_0x1138,_0x23bafd=[],_0x46ad75=[];for(const _0x3f1659 of _0x54e16c){const _0x27e046=_0x3f1659[_0x70a402(0xf5)](),_0x4c5e8d=_0x492a75['find'](_0x2e0a24=>_0x2e0a24['label']===_0x27e046);if(_0x4c5e8d)_0x23bafd[_0x70a402(0xe6)](_0x4c5e8d);else _0x46ad75[_0x70a402(0xe6)](_0x3f1659);}return{'matched':_0x23bafd,'unmatched':_0x46ad75};}export async function doCreateMenus(_0x322d00,_0x3e64f6,_0x3f77a4,_0x7fb14c){const _0x271225=await createMenus(_0x322d00,_0x3e64f6,_0x3f77a4,_0x7fb14c);return{'created':_0x271225['length'],'failed':0x0,'labels':_0x3f77a4['map'](_0x11b49f=>_0x11b49f['label']),'menus':_0x271225};}export function filterMenusWithResources(_0x3a667f){const _0x178123=a90_0x1138;return _0x3a667f[_0x178123(0xee)](_0x2cbf2e=>_0x2cbf2e['resources'][_0x178123(0xe9)]>0x0);}export async function doUpdateCdnUrls(_0x50d6c0,_0x46888c,_0x2def10,_0x4d345d){const _0x4bb98a=a90_0x1138,_0x9f42fe=_0x2def10[_0x4bb98a(0xee)](_0x493203=>_0x493203[_0x4bb98a(0xe2)]['length']>0x0),_0x4c438b=await Promise['allSettled'](_0x9f42fe[_0x4bb98a(0xf3)](_0x3b8154=>updateMenuCdnUrl(_0x50d6c0,_0x46888c,{'id':_0x3b8154['id'],'label':_0x3b8154[_0x4bb98a(0xd9)],'path':_0x3b8154[_0x4bb98a(0xf4)],'resources':_0x4d345d,'extend':_0x3b8154['extend']??null}))),_0x11404d=_0x4c438b['filter'](_0x3cacfc=>_0x3cacfc[_0x4bb98a(0xe8)]===_0x4bb98a(0xe4))['map'](_0xd1662d=>_0xd1662d[_0x4bb98a(0xdf)]),_0xeb4526=_0x4c438b[_0x4bb98a(0xee)](_0x15cace=>_0x15cace['status']===_0x4bb98a(0xde))[_0x4bb98a(0xe9)];return{'updated':_0x11404d[_0x4bb98a(0xe9)],'failed':_0xeb4526,'menus':_0x11404d};}export async function fetchMenuData(_0x3f91e3,_0x3b6c7a){const _0x3806db=a90_0x1138,_0x19e1ea=getLocalPages(),_0x36b31f=await getOnlineMenuList(_0x3f91e3,_0x3b6c7a),_0x10df14=new Set(_0x36b31f[_0x3806db(0xf3)](_0x5ecd4d=>_0x5ecd4d[_0x3806db(0xf4)]));return{'localPages':_0x19e1ea,'onlineMenuList':_0x36b31f,'onlinePaths':_0x10df14};}export async function fetchOnlineMenuList(_0x549645,_0x40e280){return getOnlineMenuList(_0x549645,_0x40e280);}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x321b9e,_0xa08cf6){const _0x361924=a91_0x4a12,_0x41290c=_0x321b9e();while(!![]){try{const _0x8c58ed=-parseInt(_0x361924(0x1e6))/0x1+-parseInt(_0x361924(0x1e3))/0x2*(parseInt(_0x361924(0x200))/0x3)+parseInt(_0x361924(0x1e5))/0x4+parseInt(_0x361924(0x1e2))/0x5+-parseInt(_0x361924(0x206))/0x6+-parseInt(_0x361924(0x209))/0x7*(parseInt(_0x361924(0x1f8))/0x8)+parseInt(_0x361924(0x1f6))/0x9*(parseInt(_0x361924(0x1f2))/0xa);if(_0x8c58ed===_0xa08cf6)break;else _0x41290c['push'](_0x41290c['shift']());}catch(_0x5c124b){_0x41290c['push'](_0x41290c['shift']());}}}(a91_0x15ef,0xa367a));import{getApiDomain}from'../../../constant/domain.js';import{getEnv,isProduction}from'../../../constant/env.js';import{logger}from'../../../utils/logger.js';import{platformFetch}from'../../../core/api-client.js';export async function getOnlineMenuList(_0x2e251d,_0x858b82){const _0x24ab2c=a91_0x4a12,_0x3ca1a9=getEnv();logger['info'](_0x24ab2c(0x1f4),isProduction(_0x3ca1a9)?_0x24ab2c(0x202)+_0x2e251d+')':_0x24ab2c(0x1f5)+_0x2e251d+')');const _0xa39e5b=await platformFetch(getApiDomain()+_0x24ab2c(0x1ed)+_0x2e251d,{'cookie':_0x858b82,'label':_0x24ab2c(0x20b)});if(!_0xa39e5b)return logger[_0x24ab2c(0x201)]('get-online-menu-list','Server\x20returned\x20empty\x20menu\x20list'),[];return logger[_0x24ab2c(0x201)](_0x24ab2c(0x1f4),_0x24ab2c(0x1e1)+_0xa39e5b[_0x24ab2c(0x1eb)]+_0x24ab2c(0x1f3)),_0xa39e5b[_0x24ab2c(0x1f1)](flattenMenuItem)[_0x24ab2c(0x1ee)]();}function flattenMenuItem(_0xfaff88){const _0x5be84c=a91_0x4a12;let _0x2a13c2=[];try{const _0x2269dd=_0xfaff88[_0x5be84c(0x204)]?.[_0x5be84c(0x20a)];if(typeof _0x2269dd===_0x5be84c(0x208)){const _0x7c0623=JSON[_0x5be84c(0x1fa)](_0x2269dd);if(Array[_0x5be84c(0x1e0)](_0x7c0623))_0x2a13c2=_0x7c0623[_0x5be84c(0x1f1)](String);}else Array[_0x5be84c(0x1e0)](_0x2269dd)&&(_0x2a13c2=_0x2269dd['map'](String));}catch{}const _0x18b860=[{'id':_0xfaff88['id'],'path':_0xfaff88[_0x5be84c(0x1e7)],'label':_0xfaff88[_0x5be84c(0x1fe)],'resources':_0x2a13c2,'extend':_0xfaff88[_0x5be84c(0x204)]??null}];if(_0xfaff88[_0x5be84c(0x1ea)]&&_0xfaff88[_0x5be84c(0x1ea)][_0x5be84c(0x1eb)]>0x0)for(const _0x448bda of _0xfaff88[_0x5be84c(0x1ea)]){_0x18b860[_0x5be84c(0x207)](...flattenMenuItem(_0x448bda));}return _0x18b860;}export async function createMenu(_0x24536f,_0x1517c8,_0x4faf43){const _0x36a50d=a91_0x4a12;logger[_0x36a50d(0x201)](_0x36a50d(0x1f0),_0x36a50d(0x1f9)+_0x4faf43[_0x36a50d(0x1fe)]+'\x20('+_0x4faf43[_0x36a50d(0x1e7)]+')');const _0x5c6b11={'appCode':_0x24536f,'type':_0x36a50d(0x1e9),'sort':0x0,'extend':{'loadScriptMode':_0x36a50d(0x1df),'resources':_0x4faf43[_0x36a50d(0x20a)]?JSON['stringify'](_0x4faf43['resources']):undefined},..._0x4faf43},_0x3c6597=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':_0x36a50d(0x203),'body':_0x5c6b11,'cookie':_0x1517c8,'label':_0x36a50d(0x1ef)+_0x4faf43[_0x36a50d(0x1fe)]+'\x22'});return logger[_0x36a50d(0x201)](_0x36a50d(0x1f0),'Menu\x20created\x20successfully:\x20'+_0x4faf43['label']),_0x3c6597;}async function createSingleMenu(_0x13aca2,_0x392551,_0x41141f,_0x56f47e){const _0x40fde2=a91_0x4a12,_0x16c3d6={'appCode':_0x13aca2,'type':'procode','sort':0x0,'extend':{'loadScriptMode':_0x40fde2(0x1df),'resources':_0x56f47e?JSON['stringify'](_0x56f47e):undefined},'label':_0x41141f[_0x40fde2(0x1fe)],'path':_0x41141f['path']},_0x454778=await platformFetch(getApiDomain()+'/smartapi/menu/create',{'method':'POST','body':_0x16c3d6,'cookie':_0x392551,'label':_0x40fde2(0x1ef)+_0x41141f['label']+'\x22'});return logger[_0x40fde2(0x201)]('create-menu',_0x40fde2(0x1f7)+_0x41141f[_0x40fde2(0x1fe)]),_0x454778;}function a91_0x15ef(){const _0x4f8c81=['update-menu-cdn-url','all','stringify','label','Start\x20batch\x20menu\x20creation,\x20total\x20','3838290uUxTxK','info','Fetching\x20online\x20menu\x20list...\x20(appCode:\x20','POST','extend','/smartapi/menu/update','4248786XUqjdD','push','string','821023jqOEyL','resources','Fetch\x20menu\x20list','import','isArray','Fetched\x20','5583935lhdjjE','2Rzpnys','Batch\x20menu\x20creation\x20completed,\x20total\x20','283516wQiHFf','695923wkdGqI','path','create-menus','procode','children','length','Update\x20menu\x20assets\x20\x22','/smartapi/menu/find?appCode=','flat','Create\x20menu\x20\x22','create-menu','map','1618570MmyxHe','\x20online\x20menus\x20successfully','get-online-menu-list','Fetching\x20daily\x20menu\x20list...\x20(appCode:\x20','153qthzpT','Menu\x20created\x20successfully:\x20','40GXeRLw','Creating\x20menu:\x20','parse'];a91_0x15ef=function(){return _0x4f8c81;};return a91_0x15ef();}export async function createMenus(_0x25442d,_0x1f2a00,_0x3558dc,_0xa13d14){const _0x11fb37=a91_0x4a12;logger[_0x11fb37(0x201)](_0x11fb37(0x1e8),_0x11fb37(0x1ff)+_0x3558dc[_0x11fb37(0x1eb)]);const _0x3b6339=await Promise[_0x11fb37(0x1fc)](_0x3558dc['map'](_0x248c5c=>createSingleMenu(_0x25442d,_0x1f2a00,_0x248c5c,_0xa13d14)));return logger['info'](_0x11fb37(0x1e8),_0x11fb37(0x1e4)+_0x3558dc[_0x11fb37(0x1eb)]),_0x3b6339;}function a91_0x4a12(_0x3cbe41,_0x12c138){_0x3cbe41=_0x3cbe41-0x1df;const _0x15efec=a91_0x15ef();let _0x4a122d=_0x15efec[_0x3cbe41];return _0x4a122d;}export async function updateMenuCdnUrl(_0x330f0d,_0x843505,_0x269342){const _0x4d0a97=a91_0x4a12;logger[_0x4d0a97(0x201)](_0x4d0a97(0x1fb),'Updating\x20menu\x20asset\x20links:\x20'+_0x269342[_0x4d0a97(0x1fe)]+'\x20('+_0x269342[_0x4d0a97(0x1e7)]+')');const _0xc07f79={'id':_0x269342['id'],'appCode':_0x330f0d,'extend':{..._0x269342[_0x4d0a97(0x204)]??{},'loadScriptMode':_0x4d0a97(0x1df),'resources':_0x269342['resources']?JSON[_0x4d0a97(0x1fd)](_0x269342[_0x4d0a97(0x20a)]):undefined}},_0x17bc3c=await platformFetch(getApiDomain()+_0x4d0a97(0x205),{'method':'POST','body':_0xc07f79,'cookie':_0x843505,'label':_0x4d0a97(0x1ec)+_0x269342['label']+'\x22'});return logger[_0x4d0a97(0x201)](_0x4d0a97(0x1fb),'Menu\x20assets\x20synced:\x20'+_0x269342[_0x4d0a97(0x1fe)],undefined),_0x17bc3c;}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x1b2847,_0x4a8785){const _0x24d606=a92_0x52b2,_0x3fea28=_0x1b2847();while(!![]){try{const _0x43b5f7=-parseInt(_0x24d606(0xbd))/0x1*(-parseInt(_0x24d606(0xde))/0x2)+parseInt(_0x24d606(0xda))/0x3*(-parseInt(_0x24d606(0xc7))/0x4)+-parseInt(_0x24d606(0xd4))/0x5+parseInt(_0x24d606(0xb4))/0x6*(-parseInt(_0x24d606(0xc6))/0x7)+-parseInt(_0x24d606(0xd2))/0x8+-parseInt(_0x24d606(0xcc))/0x9*(parseInt(_0x24d606(0xc1))/0xa)+parseInt(_0x24d606(0xc3))/0xb*(parseInt(_0x24d606(0xc5))/0xc);if(_0x43b5f7===_0x4a8785)break;else _0x3fea28['push'](_0x3fea28['shift']());}catch(_0x2c611a){_0x3fea28['push'](_0x3fea28['shift']());}}}(a92_0x184c,0x5fcca));function a92_0x184c(){const _0x461d29=['Start\x20non-interactive\x20menu\x20sync','end','isTTY','parse','jsUrl','6068560eaClwm','toString','1281860ktmLZN','path','length','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','readableEnded','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','9xtByrm','filter','pages','trim','4qYnjDW','menu-sync','split','cssUrl','No\x20local\x20pages\x20matched\x20labels:\x20','13686PxblQG','object','stdin','join','selectedLabels','concat','map','startsWith','push','4745iPNgAN','label','has','isArray','6010ysTwGu','cwd','1023TfvWOI','string','304908BtWzon','21VJnYfR','926012mlBujg','Invalid\x20--params:\x20','setLogPath','info','utf8','3951EvvFWT'];a92_0x184c=function(){return _0x461d29;};return a92_0x184c();}import{getLocalPages}from'../../../commands/menu/shared/local-pages.js';import{getOnlineMenuList,createMenus}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x235d1e){const _0x2eca3b=a92_0x52b2,_0x5bbbe4=[];return _0x235d1e[_0x2eca3b(0xd1)]&&!isValidJsHttpsUrl(_0x235d1e[_0x2eca3b(0xd1)])&&_0x5bbbe4[_0x2eca3b(0xbc)]({'field':_0x2eca3b(0xd1),'message':_0x2eca3b(0xd7)}),_0x235d1e[_0x2eca3b(0xe1)]&&!isValidCssHttpsUrl(_0x235d1e[_0x2eca3b(0xe1)])&&_0x5bbbe4[_0x2eca3b(0xbc)]({'field':_0x2eca3b(0xe1),'message':_0x2eca3b(0xd9)}),_0x5bbbe4;}function a92_0x52b2(_0x4e2c2f,_0x39c3b7){_0x4e2c2f=_0x4e2c2f-0xb3;const _0x184c67=a92_0x184c();let _0x52b276=_0x184c67[_0x4e2c2f];return _0x52b276;}export async function runMenuSyncCore(_0x3f43c5,_0x154d0f,_0x46d061=[],_0x13632a){const _0x438ca2=a92_0x52b2,_0x7724f5=parseParamsFlag(_0x13632a),_0x51fa84=_0x46d061[_0x438ca2(0xd6)]>0x0?_0x46d061:_0x7724f5[_0x438ca2(0xb8)],_0x27c15a=_0x7724f5[_0x438ca2(0xd1)],_0x5a59ed=_0x7724f5['cssUrl'],_0x23399b=[];if(_0x27c15a)_0x23399b[_0x438ca2(0xbc)](_0x27c15a);if(_0x5a59ed)_0x23399b[_0x438ca2(0xbc)](_0x5a59ed);const _0x6b0e67=validateParams(_0x7724f5);if(_0x6b0e67[_0x438ca2(0xd6)]>0x0){const _0x5566b6=_0x6b0e67[_0x438ca2(0xba)](_0x19caa5=>'--params.'+_0x19caa5['field']+':\x20'+_0x19caa5['message'])['join'](';\x20');throw new Error(_0x438ca2(0xc8)+_0x5566b6);}logger[_0x438ca2(0xc9)](process[_0x438ca2(0xc2)]()),logger[_0x438ca2(0xca)](_0x438ca2(0xdf),_0x438ca2(0xcd),{'appCode':_0x3f43c5,'selectedCount':_0x51fa84?.['length'],'jsUrl':_0x27c15a,'cssUrl':_0x5a59ed});if(_0x27c15a){const _0x26c9af=await isUrlReachable(_0x27c15a);if(!_0x26c9af)throw new Error('JS\x20URL\x20is\x20unreachable:\x20'+_0x27c15a);}if(_0x5a59ed){const _0x580390=await isUrlReachable(_0x5a59ed);if(!_0x580390)throw new Error('CSS\x20URL\x20is\x20unreachable:\x20'+_0x5a59ed);}const _0x5dc355=getLocalPages();if(_0x5dc355[_0x438ca2(0xd6)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0x4e604e=await getOnlineMenuList(_0x3f43c5,_0x154d0f),_0x4c246a=new Set(_0x4e604e['map'](_0x4532be=>_0x4532be[_0x438ca2(0xd5)]));let _0x3773ce;if(_0x51fa84&&_0x51fa84[_0x438ca2(0xd6)]>0x0){const _0x197855=new Set(_0x51fa84[_0x438ca2(0xba)](_0x1006e8=>_0x1006e8['trim']()));_0x3773ce=_0x5dc355['filter'](_0x3914c6=>_0x197855[_0x438ca2(0xbf)](_0x3914c6['label']));if(_0x3773ce[_0x438ca2(0xd6)]===0x0){const _0x50d5e2=_0x5dc355[_0x438ca2(0xba)](_0x5938c5=>_0x5938c5[_0x438ca2(0xbe)])[_0x438ca2(0xb7)](',\x20');throw new Error(_0x438ca2(0xb3)+[..._0x197855][_0x438ca2(0xb7)](',\x20')+'\x0a\x20\x20Available\x20local\x20pages:\x20'+_0x50d5e2);}}else _0x3773ce=_0x5dc355[_0x438ca2(0xdb)](_0x28ac76=>!_0x4c246a[_0x438ca2(0xbf)](_0x28ac76[_0x438ca2(0xd5)]));if(_0x3773ce[_0x438ca2(0xd6)]===0x0)return{'created':0x0,'skipped':!![],'targetPages':[]};const _0xd54c9d=await createMenus(_0x3f43c5,_0x154d0f,_0x3773ce,_0x23399b[_0x438ca2(0xd6)]>0x0?_0x23399b:undefined);return logger[_0x438ca2(0xca)]('menu-sync','Menu\x20sync\x20completed',{'count':_0x3773ce[_0x438ca2(0xd6)],'resources':_0x23399b}),{'created':_0xd54c9d['length'],'skipped':![],'targetPages':_0x3773ce,'menus':_0xd54c9d};}export async function readPageLabelsFromStdin(){const _0x277611=a92_0x52b2;if(!process[_0x277611(0xb6)][_0x277611(0xcf)]&&!process['stdin'][_0x277611(0xd8)])return new Promise(_0x2a1095=>{const _0x3adad7=_0x277611,_0x4f5fd0=[];process[_0x3adad7(0xb6)]['on']('data',_0x50a2ae=>_0x4f5fd0[_0x3adad7(0xbc)](_0x50a2ae)),process[_0x3adad7(0xb6)]['on'](_0x3adad7(0xce),()=>{const _0x51953e=_0x3adad7,_0x22dcd3=Buffer[_0x51953e(0xb9)](_0x4f5fd0)[_0x51953e(0xd3)](_0x51953e(0xcb)),_0xaedff0=_0x22dcd3[_0x51953e(0xe0)]('\x0a')[_0x51953e(0xba)](_0xf039b5=>_0xf039b5['trim']())[_0x51953e(0xdb)](_0x54a668=>_0x54a668['length']>0x0&&!_0x54a668[_0x51953e(0xbb)]('#'));_0x2a1095(_0xaedff0);}),setTimeout(()=>_0x2a1095([]),0x1f4);});return[];}function parseParamsFlag(_0x632dc0){const _0x49d1f3=a92_0x52b2;if(!_0x632dc0||typeof _0x632dc0!==_0x49d1f3(0xc4))return{};try{const _0x4f2c11=JSON[_0x49d1f3(0xd0)](_0x632dc0);if(typeof _0x4f2c11!==_0x49d1f3(0xb5)||_0x4f2c11===null||Array[_0x49d1f3(0xc0)](_0x4f2c11))return{};return{'selectedLabels':Array[_0x49d1f3(0xc0)](_0x4f2c11['pages'])?_0x4f2c11[_0x49d1f3(0xdc)][_0x49d1f3(0xba)](String):undefined,'jsUrl':typeof _0x4f2c11['jsUrl']===_0x49d1f3(0xc4)?_0x4f2c11[_0x49d1f3(0xd1)][_0x49d1f3(0xdd)]():undefined,'cssUrl':typeof _0x4f2c11[_0x49d1f3(0xe1)]===_0x49d1f3(0xc4)?_0x4f2c11['cssUrl'][_0x49d1f3(0xdd)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
(function(
|
|
1
|
+
(function(_0x56e197,_0x7320c1){const _0x38172b=a94_0x49c5,_0x3ca754=_0x56e197();while(!![]){try{const _0xbe79a3=-parseInt(_0x38172b(0x197))/0x1+parseInt(_0x38172b(0x198))/0x2+parseInt(_0x38172b(0x193))/0x3*(parseInt(_0x38172b(0x181))/0x4)+parseInt(_0x38172b(0x170))/0x5*(-parseInt(_0x38172b(0x179))/0x6)+parseInt(_0x38172b(0x17d))/0x7*(parseInt(_0x38172b(0x169))/0x8)+parseInt(_0x38172b(0x175))/0x9+-parseInt(_0x38172b(0x19b))/0xa;if(_0xbe79a3===_0x7320c1)break;else _0x3ca754['push'](_0x3ca754['shift']());}catch(_0x16868c){_0x3ca754['push'](_0x3ca754['shift']());}}}(a94_0x19db,0xd8348));import{updateMenuCdnUrl,getOnlineMenuList}from'../../../commands/menu/shared/service.js';import{isUrlReachable,isValidCssHttpsUrl,isValidJsHttpsUrl}from'../../../commands/menu/shared/valid-url.js';import{logger}from'../../../utils/logger.js';function validateParams(_0x304428){const _0x234493=a94_0x49c5,_0x29ebc4=[];return _0x304428['jsUrl']&&!isValidJsHttpsUrl(_0x304428['jsUrl'])&&_0x29ebc4[_0x234493(0x167)]({'field':_0x234493(0x168),'message':_0x234493(0x177)}),_0x304428['cssUrl']&&!isValidCssHttpsUrl(_0x304428[_0x234493(0x194)])&&_0x29ebc4[_0x234493(0x167)]({'field':'cssUrl','message':_0x234493(0x176)}),_0x29ebc4;}export async function runMenuUpdateCore(_0x11e351,_0x10481f,_0x229155,_0x219ed0={}){const _0x54ea70=a94_0x49c5,_0x25bbce=parseUpdateParamsFlag(_0x229155),_0x3da2e8=normalizeMode(_0x219ed0[_0x54ea70(0x183)]),_0x532eef=[];if(_0x25bbce[_0x54ea70(0x168)])_0x532eef[_0x54ea70(0x167)](_0x25bbce[_0x54ea70(0x168)]);if(_0x25bbce[_0x54ea70(0x194)])_0x532eef['push'](_0x25bbce[_0x54ea70(0x194)]);const _0x1b4960=validateParams(_0x25bbce);if(_0x1b4960[_0x54ea70(0x171)]>0x0){const _0x274055=_0x1b4960[_0x54ea70(0x187)](_0x3b288f=>_0x54ea70(0x178)+_0x3b288f[_0x54ea70(0x182)]+':\x20'+_0x3b288f[_0x54ea70(0x180)])[_0x54ea70(0x163)](';\x20');throw new Error(_0x54ea70(0x195)+_0x274055);}if(_0x532eef[_0x54ea70(0x171)]===0x0)throw new Error(_0x54ea70(0x17c)+_0x54ea70(0x184));logger[_0x54ea70(0x16d)](process[_0x54ea70(0x189)]()),logger[_0x54ea70(0x185)](_0x54ea70(0x16a),'Start\x20non-interactive\x20menu\x20update',{'appCode':_0x11e351,'jsUrl':_0x25bbce[_0x54ea70(0x168)],'cssUrl':_0x25bbce[_0x54ea70(0x194)],'mode':_0x3da2e8,'dryRun':_0x219ed0['dryRun']===!![]});if(_0x25bbce[_0x54ea70(0x168)]){const _0xa444b8=await isUrlReachable(_0x25bbce[_0x54ea70(0x168)]);if(!_0xa444b8)throw new Error(_0x54ea70(0x17f)+_0x25bbce['jsUrl']);}if(_0x25bbce[_0x54ea70(0x194)]){const _0x5068e0=await isUrlReachable(_0x25bbce[_0x54ea70(0x194)]);if(!_0x5068e0)throw new Error(_0x54ea70(0x18c)+_0x25bbce[_0x54ea70(0x194)]);}const _0x5249fc=await getOnlineMenuList(_0x11e351,_0x10481f),_0x2a41d1=_0x5249fc[_0x54ea70(0x186)](_0x1de741=>_0x1de741['resources'][_0x54ea70(0x171)]>0x0);if(_0x2a41d1[_0x54ea70(0x171)]===0x0)return{'updated':0x0,'failed':0x0,'skipped':!![],'dryRun':_0x219ed0['dryRun']===!![]};const _0x3cbd38=_0x2a41d1['map'](_0x50e5a7=>buildMenuUpdateDiff(_0x50e5a7,_0x25bbce,_0x3da2e8,_0x219ed0[_0x54ea70(0x17b)]===!![]));if(_0x219ed0['dryRun'])return{'updated':0x0,'failed':0x0,'skipped':![],'dryRun':!![],'diffs':_0x3cbd38};const _0x403eb8=await Promise['allSettled'](_0x2a41d1[_0x54ea70(0x187)]((_0x3531fb,_0x1cf798)=>updateMenuCdnUrl(_0x11e351,_0x10481f,{'id':_0x3531fb['id'],'label':_0x3531fb[_0x54ea70(0x191)],'path':_0x3531fb[_0x54ea70(0x174)],'resources':_0x3cbd38[_0x1cf798][_0x54ea70(0x173)][_0x54ea70(0x192)],'extend':_0x3531fb[_0x54ea70(0x16e)]??null}))),_0x3b43b2=_0x403eb8[_0x54ea70(0x186)](_0x5426af=>_0x5426af[_0x54ea70(0x190)]===_0x54ea70(0x18b))[_0x54ea70(0x187)](_0x5a4f86=>_0x5a4f86[_0x54ea70(0x19a)]),_0x5852ac=_0x403eb8[_0x54ea70(0x186)](_0xd48eef=>_0xd48eef[_0x54ea70(0x190)]===_0x54ea70(0x18e))[_0x54ea70(0x171)];return logger[_0x54ea70(0x185)]('menu-update',_0x54ea70(0x17a),{'count':_0x2a41d1[_0x54ea70(0x171)],'resources':_0x532eef}),{'updated':_0x3b43b2[_0x54ea70(0x171)],'failed':_0x5852ac,'skipped':![],'menus':_0x3b43b2};}function a94_0x49c5(_0x3720f1,_0x533982){_0x3720f1=_0x3720f1-0x163;const _0x19db86=a94_0x19db();let _0x49c51c=_0x19db86[_0x3720f1];return _0x49c51c;}function normalizeMode(_0xfffe09){const _0x34a196=a94_0x49c5;if(!_0xfffe09)return _0x34a196(0x172);if(_0xfffe09===_0x34a196(0x172)||_0xfffe09===_0x34a196(0x188))return _0xfffe09;throw new Error(_0x34a196(0x18d)+_0xfffe09+_0x34a196(0x16c));}function buildMenuUpdateDiff(_0x124276,_0x4773ed,_0x358511,_0x10c113){const _0x5ca74c=a94_0x49c5,_0x31d653=[..._0x124276[_0x5ca74c(0x192)]],_0x2b3442=_0x358511===_0x5ca74c(0x188)?patchResources(_0x31d653,_0x4773ed):replaceResources(_0x4773ed),_0x17ffac=[],_0xc3f9a7=_0x31d653[_0x5ca74c(0x16b)](isJsResource),_0x37e204=_0x2b3442['some'](isJsResource);if(_0xc3f9a7&&!_0x37e204){const _0x4f1ede='menu\x20update\x20would\x20remove\x20existing\x20JS\x20resource\x20for\x20\x22'+_0x124276[_0x5ca74c(0x191)]+'\x22\x20('+_0x124276[_0x5ca74c(0x174)]+_0x5ca74c(0x17e)+'Use\x20--mode\x20patch\x20to\x20preserve\x20it,\x20pass\x20jsUrl,\x20or\x20add\x20--force\x20for\x20an\x20intentional\x20removal.';if(!_0x10c113)throw new Error(_0x4f1ede);_0x17ffac[_0x5ca74c(0x167)](_0x4f1ede);}const _0x37eb4e=_0x31d653[_0x5ca74c(0x16b)](isCssResource),_0x413739=_0x2b3442['some'](isCssResource);return _0x37eb4e&&!_0x413739&&_0x17ffac['push']('menu\x20update\x20will\x20remove\x20existing\x20CSS\x20resource\x20for\x20\x22'+_0x124276[_0x5ca74c(0x191)]+_0x5ca74c(0x19c)+_0x124276[_0x5ca74c(0x174)]+').'),{'id':_0x124276['id'],'label':_0x124276[_0x5ca74c(0x191)],'path':_0x124276['path'],'mode':_0x358511,'before':{'resources':_0x31d653},'after':{'resources':_0x2b3442},'warnings':_0x17ffac};}function replaceResources(_0x55d3ed){return[_0x55d3ed['jsUrl'],_0x55d3ed['cssUrl']]['filter'](_0x5bd8c3=>!!_0x5bd8c3);}function a94_0x19db(){const _0xb83122=['6323120PCEOIM','field','mode','Pass\x20--params\x20\x27{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}\x27\x20to\x20update\x20assets.','info','filter','map','patch','cwd','toLowerCase','fulfilled','CSS\x20URL\x20is\x20unreachable:\x20','Invalid\x20--mode:\x20','rejected','parse','status','label','resources','3ETdFSX','cssUrl','Invalid\x20--params:\x20','string','1754668bXouMG','2256536oKOvdU','.js','value','16750950jZvavq','\x22\x20(','join','endsWith','isArray','trim','push','jsUrl','8JKMEKJ','menu-update','some','.\x20Allowed\x20values:\x20replace,\x20patch','setLogPath','extend','object','549830ZQtnEs','length','replace','after','path','10884681kTIOan','CSS\x20URL\x20must\x20be\x20a\x20valid\x20https://...css\x20URL','JS\x20URL\x20must\x20be\x20a\x20valid\x20https://...js\x20URL','--params.','60GNEHeO','Menu\x20update\x20completed','force','Invalid\x20--params:\x20menu\x20update\x20requires\x20at\x20least\x20one\x20explicit\x20JS/CSS\x20URL.\x20','10475794efgaUm',').\x20','JS\x20URL\x20is\x20unreachable:\x20','message'];a94_0x19db=function(){return _0xb83122;};return a94_0x19db();}function patchResources(_0x507b1c,_0x29c1d4){const _0x3b0c08=a94_0x49c5;let _0x52123f=![],_0x34cb93=![];const _0x2c0a06=[];for(const _0x31fb4c of _0x507b1c){if(isJsResource(_0x31fb4c)){if(_0x29c1d4[_0x3b0c08(0x168)]&&!_0x52123f)_0x2c0a06[_0x3b0c08(0x167)](_0x29c1d4['jsUrl']),_0x52123f=!![];else!_0x29c1d4['jsUrl']&&_0x2c0a06[_0x3b0c08(0x167)](_0x31fb4c);continue;}if(isCssResource(_0x31fb4c)){if(_0x29c1d4[_0x3b0c08(0x194)]&&!_0x34cb93)_0x2c0a06[_0x3b0c08(0x167)](_0x29c1d4[_0x3b0c08(0x194)]),_0x34cb93=!![];else!_0x29c1d4[_0x3b0c08(0x194)]&&_0x2c0a06['push'](_0x31fb4c);continue;}_0x2c0a06[_0x3b0c08(0x167)](_0x31fb4c);}return _0x29c1d4[_0x3b0c08(0x168)]&&!_0x52123f&&_0x2c0a06['unshift'](_0x29c1d4['jsUrl']),_0x29c1d4[_0x3b0c08(0x194)]&&!_0x34cb93&&_0x2c0a06[_0x3b0c08(0x167)](_0x29c1d4[_0x3b0c08(0x194)]),_0x2c0a06;}function isJsResource(_0x4c9eb8){const _0x335cf3=a94_0x49c5;return stripQuery(_0x4c9eb8)[_0x335cf3(0x18a)]()[_0x335cf3(0x164)](_0x335cf3(0x199));}function isCssResource(_0x29ec0d){const _0x1ba1ff=a94_0x49c5;return stripQuery(_0x29ec0d)[_0x1ba1ff(0x18a)]()[_0x1ba1ff(0x164)]('.css');}function stripQuery(_0x1ac88e){return _0x1ac88e['split']('?')[0x0]??_0x1ac88e;}function parseUpdateParamsFlag(_0x393c5b){const _0x36bca3=a94_0x49c5;if(!_0x393c5b||typeof _0x393c5b!==_0x36bca3(0x196))return{};try{const _0x358311=JSON[_0x36bca3(0x18f)](_0x393c5b);if(typeof _0x358311!==_0x36bca3(0x16f)||_0x358311===null||Array[_0x36bca3(0x165)](_0x358311))return{};return{'jsUrl':typeof _0x358311[_0x36bca3(0x168)]===_0x36bca3(0x196)?_0x358311[_0x36bca3(0x168)][_0x36bca3(0x166)]():undefined,'cssUrl':typeof _0x358311[_0x36bca3(0x194)]==='string'?_0x358311['cssUrl'][_0x36bca3(0x166)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
function
|
|
1
|
+
function a95_0x3ddf(){const _0x5e658f=['trim','28621536ZhJqYB','422830elglAo','862758Xxafat','9ntuiAY','test','22ZnSOpq','9UFfoFI','1717048Rxekvv','530047wBTYTo','1744440KQOqut','160948ZSZbWJ','HEAD','66wKvNyv','130wGgFxw'];a95_0x3ddf=function(){return _0x5e658f;};return a95_0x3ddf();}(function(_0x4617c3,_0xdc1d){const _0x189519=a95_0xa652,_0x37c2c9=_0x4617c3();while(!![]){try{const _0x2f2e3f=-parseInt(_0x189519(0x100))/0x1+parseInt(_0x189519(0xff))/0x2*(-parseInt(_0x189519(0xf5))/0x3)+-parseInt(_0x189519(0xf9))/0x4*(parseInt(_0x189519(0xfc))/0x5)+-parseInt(_0x189519(0xfb))/0x6*(-parseInt(_0x189519(0xf7))/0x7)+parseInt(_0x189519(0xf6))/0x8*(parseInt(_0x189519(0xf2))/0x9)+-parseInt(_0x189519(0xf8))/0xa*(parseInt(_0x189519(0xf4))/0xb)+parseInt(_0x189519(0xfe))/0xc;if(_0x2f2e3f===_0xdc1d)break;else _0x37c2c9['push'](_0x37c2c9['shift']());}catch(_0x505939){_0x37c2c9['push'](_0x37c2c9['shift']());}}}(a95_0x3ddf,0x83fdd));export function isValidJsHttpsUrl(_0x4765c2){const _0x1255ec=a95_0xa652;return/^https:\/\/.+\.js(\?.*)?$/[_0x1255ec(0xf3)](_0x4765c2[_0x1255ec(0xfd)]());}function a95_0xa652(_0x4158fe,_0x521a0d){_0x4158fe=_0x4158fe-0xf2;const _0x3ddfa0=a95_0x3ddf();let _0xa65285=_0x3ddfa0[_0x4158fe];return _0xa65285;}export function isValidCssHttpsUrl(_0x2b07a0){const _0x100d4a=a95_0xa652;return/^https:\/\/.+\.css(\?.*)?$/[_0x100d4a(0xf3)](_0x2b07a0['trim']());}export async function isUrlReachable(_0x275713){const _0xdc0996=a95_0xa652;try{const _0x2b53ca=await fetch(_0x275713,{'method':_0xdc0996(0xfa)});return _0x2b53ca['ok'];}catch{return![];}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a96_0x186b37=a96_0x108a;(function(_0x24cf71,_0x11beb5){const _0x36be11=a96_0x108a,_0x2cf49b=_0x24cf71();while(!![]){try{const _0x7e50df=parseInt(_0x36be11(0xf5))/0x1+-parseInt(_0x36be11(0xff))/0x2+-parseInt(_0x36be11(0x11b))/0x3*(parseInt(_0x36be11(0xeb))/0x4)+parseInt(_0x36be11(0x117))/0x5+-parseInt(_0x36be11(0x10c))/0x6*(parseInt(_0x36be11(0x121))/0x7)+parseInt(_0x36be11(0x10e))/0x8+-parseInt(_0x36be11(0xf6))/0x9*(-parseInt(_0x36be11(0xf4))/0xa);if(_0x7e50df===_0x11beb5)break;else _0x2cf49b['push'](_0x2cf49b['shift']());}catch(_0x2f1fa4){_0x2cf49b['push'](_0x2cf49b['shift']());}}}(a96_0x3d3c,0xd7e05));function a96_0x108a(_0x33dd7c,_0x3fcbdb){_0x33dd7c=_0x33dd7c-0xe5;const _0x3d3c2d=a96_0x3d3c();let _0x108a44=_0x3d3c2d[_0x33dd7c];return _0x108a44;}import a96_0x2cad75 from'chalk';import{buildCompareRows,doCreateMenus,fetchMenuData}from'../../commands/menu/shared/logic.js';import{renderCompareTable,renderSyncSummary}from'../../commands/menu/shared/compare-table.js';import{selectPages,askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';function a96_0x3d3c(){const _0x1b2ba1=['isArray','Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.','\x20\x20Cancelled.','2716582WzWwCp','\x20page(s)','pages','\x20menu(s)...','yes','yellow','boolean','created','flag','appcode','menu','Online\x20menu\x20list\x20fetched','Pre-fill\x20JS/CSS\x20URLs\x20and/or\x20select\x20specific\x20pages.\x20','1488BVFfDy','skipped','10791928yOirDZ','jsUrl','Sync\x20local\x20pages\x20as\x20platform\x20menus','onlineMenuList','failed','Menu\x20creation\x20failed','\x20\x20Create\x20','rawFlags','\x20failed.','8096020mXdWAV','sync','parse','JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22,\x22pages\x22:[\x22Page1\x22]}','2113203mhUyfh','\x20created.','\x20\x20!\x20No\x20local\x20pages\x20found,\x20please\x20create\x20pages\x20first','menu\x20sync\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','cookie','!\x20No\x20local\x20pages\x20found\x20in\x20src/pages','29470sccXbt','Created\x20','Non-interactive:\x20auto-create\x20all\x20local\x20pages\x20not\x20yet\x20on\x20platform','trim','message','cssUrl','length','object','selectedAppName','4YzIGCM','cyan','✓\x20Menu\x20sync\x20completed:\x20','str','gray','\x20menu(s)','string','validation','\x20and\x20CSS:\x20','2656410giXgJL','491524IxMgUj','18UUHjlz','onlinePaths','\x20\x20✓\x20Selected:\x20','appCode','Failed\x20to\x20fetch\x20online\x20menu\x20list','map'];a96_0x3d3c=function(){return _0x1b2ba1;};return a96_0x3d3c();}import{runMenuSyncCore,readPageLabelsFromStdin}from'../../commands/menu/shared/sync-core.js';import{getLocalPages}from'../../commands/menu/shared/local-pages.js';import{isInProject}from'../../context.js';export const menuSync={'service':a96_0x186b37(0x109),'command':a96_0x186b37(0x118),'description':a96_0x186b37(0x110),'risk':'write','flags':[{'name':'params','type':a96_0x186b37(0xf1),'description':a96_0x186b37(0x10b)+a96_0x186b37(0x11a)},{'name':a96_0x186b37(0x103),'type':a96_0x186b37(0x105),'description':a96_0x186b37(0x123)}],async 'execute'(_0x28179f){const _0x5cf53a=a96_0x186b37,_0x28bf0f=_0x28179f[_0x5cf53a(0x115)][_0x5cf53a(0x108)]?String(_0x28179f[_0x5cf53a(0x115)][_0x5cf53a(0x108)])['trim']():'';if(!isInProject()&&!_0x28179f[_0x5cf53a(0xea)]&&!_0x28bf0f)throw CliErrors[_0x5cf53a(0xf2)](_0x5cf53a(0x11e)+_0x5cf53a(0xfd));const _0x10c88d=_0x28179f[_0x5cf53a(0x107)]('yes'),_0x3ea171=_0x28179f[_0x5cf53a(0xee)]('params'),_0x270615=parseParams(_0x3ea171),_0x385588=!!(_0x270615['jsUrl']||_0x270615[_0x5cf53a(0xe7)]||_0x270615[_0x5cf53a(0x101)]&&_0x270615['pages'][_0x5cf53a(0xe8)]>0x0);if(_0x10c88d||_0x385588){let _0xfdb190=[];!isInteractive()&&!_0x270615[_0x5cf53a(0x101)]?.[_0x5cf53a(0xe8)]&&(_0xfdb190=await readPageLabelsFromStdin());const _0x7cb22=await runMenuSyncCore(_0x28179f['appCode'],_0x28179f[_0x5cf53a(0x11f)],_0xfdb190[_0x5cf53a(0xe8)]>0x0?_0xfdb190:_0x270615[_0x5cf53a(0x101)]??[],_0x3ea171);if(_0x7cb22[_0x5cf53a(0x10d)]){const _0x285602=getLocalPages();_0x285602[_0x5cf53a(0xe8)]===0x0?writeCliSideChannelLine(_0x5cf53a(0x120)):writeCliSideChannelLine('✓\x20All\x20local\x20pages\x20are\x20already\x20on\x20platform');}else writeCliSideChannelLine(_0x5cf53a(0xed)+_0x7cb22[_0x5cf53a(0x106)]+'\x20menu(s)\x20created');return{'ok':!![],'data':_0x7cb22,'message':_0x7cb22['skipped']?'Menu\x20sync\x20skipped':'Menu\x20sync\x20completed:\x20'+_0x7cb22[_0x5cf53a(0x106)]+_0x5cf53a(0x11c)};}requireInteractive();const _0x59ddf3=startSpinner('Fetching\x20online\x20menu\x20list...');let _0x346ece,_0x35d8df,_0x3406e6;try{const _0x4df9d2=await fetchMenuData(_0x28179f[_0x5cf53a(0xf9)],_0x28179f[_0x5cf53a(0x11f)]);_0x346ece=_0x4df9d2['localPages'],_0x35d8df=_0x4df9d2[_0x5cf53a(0xf7)],_0x3406e6=_0x4df9d2[_0x5cf53a(0x111)],stopSpinner(_0x59ddf3,_0x5cf53a(0x10a),!![]);}catch(_0x48938e){stopSpinner(_0x59ddf3,_0x5cf53a(0xfa),![]);throw CliErrors[_0x5cf53a(0xf2)](_0x48938e instanceof Error?_0x48938e[_0x5cf53a(0xe6)]:_0x5cf53a(0xfa));}if(_0x346ece[_0x5cf53a(0xe8)]===0x0)return writeCliSideChannelLine(a96_0x2cad75[_0x5cf53a(0x104)](_0x5cf53a(0x11d))),{'ok':!![]};const _0x1f821a=buildCompareRows(_0x346ece,_0x35d8df);writeCliSideChannelLine(renderCompareTable(_0x1f821a)),writeCliSideChannelLine('');const _0x444ec6=_0x270615['pages'],_0x72bd4f=await selectPages(_0x346ece,_0x35d8df,_0x444ec6);writeCliSideChannelLine(''),writeCliSideChannelLine(a96_0x2cad75[_0x5cf53a(0xec)](_0x5cf53a(0xf8)+_0x72bd4f[_0x5cf53a(0xe8)]+_0x5cf53a(0x100)));const _0x22dea2=_0x270615[_0x5cf53a(0x10f)]&&_0x270615[_0x5cf53a(0xe7)];if(!_0x22dea2){writeCliSideChannelLine(renderSyncSummary(_0x72bd4f,_0x35d8df['size']>0x0));const _0x449cb6=await askConfirm('\x20\x20Continue\x20with\x20creation?');if(!_0x449cb6)return writeCliSideChannelLine(a96_0x2cad75[_0x5cf53a(0xef)](_0x5cf53a(0xfe))),{'ok':!![]};}let _0x1b70e1=_0x270615['jsUrl'],_0x14faf5=_0x270615['cssUrl'];!_0x1b70e1&&(_0x1b70e1=await askJsUrl());!_0x14faf5&&(_0x14faf5=await askCssUrl());const _0x532513=await askConfirm(_0x5cf53a(0x114)+_0x72bd4f[_0x5cf53a(0xe8)]+'\x20menu(s)\x20with\x20JS:\x20'+_0x1b70e1+_0x5cf53a(0xf3)+_0x14faf5+'?');if(!_0x532513)return writeCliSideChannelLine(a96_0x2cad75[_0x5cf53a(0xef)](_0x5cf53a(0xfe))),{'ok':!![]};const _0x4b362b=[_0x1b70e1,_0x14faf5],_0x3dcc3e=startSpinner('Creating\x20'+_0x72bd4f[_0x5cf53a(0xe8)]+_0x5cf53a(0x102));try{const _0x16841e=await doCreateMenus(_0x28179f['appCode'],_0x28179f[_0x5cf53a(0x11f)],_0x72bd4f,_0x4b362b);return stopSpinner(_0x3dcc3e,_0x5cf53a(0x122)+_0x16841e[_0x5cf53a(0x106)]+_0x5cf53a(0xf0),!![]),{'ok':!![],'data':_0x16841e,'message':'Menu\x20sync\x20completed:\x20'+_0x16841e[_0x5cf53a(0x106)]+'\x20created,\x20'+_0x16841e[_0x5cf53a(0x112)]+_0x5cf53a(0x116)};}catch(_0x414c2a){stopSpinner(_0x3dcc3e,_0x5cf53a(0x113),![]);throw CliErrors[_0x5cf53a(0xf2)](_0x414c2a instanceof Error?_0x414c2a[_0x5cf53a(0xe6)]:_0x5cf53a(0x113));}}};function parseParams(_0x26fbc8){const _0xcff50f=a96_0x186b37;if(!_0x26fbc8)return{};try{const _0x30e8fd=JSON[_0xcff50f(0x119)](_0x26fbc8);if(typeof _0x30e8fd!==_0xcff50f(0xe9)||_0x30e8fd===null||Array[_0xcff50f(0xfc)](_0x30e8fd))return{};return{'jsUrl':typeof _0x30e8fd[_0xcff50f(0x10f)]===_0xcff50f(0xf1)?_0x30e8fd[_0xcff50f(0x10f)]['trim']():undefined,'cssUrl':typeof _0x30e8fd[_0xcff50f(0xe7)]===_0xcff50f(0xf1)?_0x30e8fd['cssUrl'][_0xcff50f(0xe5)]():undefined,'pages':Array[_0xcff50f(0xfc)](_0x30e8fd[_0xcff50f(0x101)])?_0x30e8fd[_0xcff50f(0x101)][_0xcff50f(0xfb)](String):undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
const a97_0x3cba7d=a97_0x29e0;(function(_0x27d54d,_0x31e344){const _0x511011=a97_0x29e0,_0xd142bf=_0x27d54d();while(!![]){try{const _0x5181ad=-parseInt(_0x511011(0x1ec))/0x1*(parseInt(_0x511011(0x1e2))/0x2)+parseInt(_0x511011(0x220))/0x3+parseInt(_0x511011(0x209))/0x4+parseInt(_0x511011(0x21d))/0x5*(-parseInt(_0x511011(0x21a))/0x6)+-parseInt(_0x511011(0x1f9))/0x7*(-parseInt(_0x511011(0x1fd))/0x8)+-parseInt(_0x511011(0x1ef))/0x9+parseInt(_0x511011(0x1f7))/0xa*(parseInt(_0x511011(0x1fe))/0xb);if(_0x5181ad===_0x31e344)break;else _0xd142bf['push'](_0xd142bf['shift']());}catch(_0x53812a){_0xd142bf['push'](_0xd142bf['shift']());}}}(a97_0x239b,0x280db));import a97_0x5eab57 from'chalk';function a97_0x239b(){const _0x29e7c6=['2605833eDxmDy','replace','Updated\x20','Online\x20menu\x20list\x20fetched','Menu\x20update\x20failed','\x20menu(s)\x20with\x20JS:\x20','isArray','boolean','80hFOIgK','yellow','7hDbWra','flag','skipped','\x20\x20Update\x20','1115144cqEkCJ','473000nmpoZA','updated','✓\x20Menu\x20update\x20completed:\x20','mode','POST','jsUrl','object','\x20menu(s)...','appCode','Fetching\x20online\x20menu\x20list...','cssUrl','43804bMoFIj','Would\x20update\x20','message','selectedAppName','\x20\x20!\x20No\x20menus\x20with\x20existing\x20resources\x20found','yes','string','\x20menu(s)\x20with\x20existing\x20resources','diffs','update','gray','patch','\x20and\x20CSS:\x20','Non-interactive:\x20update\x20all\x20menus\x20without\x20confirmation;\x20requires\x20--params','menu\x20update\x20requires\x20a\x20project\x20context\x20or\x20explicit\x20--appcode.\x20','\x20updated,\x20','Failed\x20to\x20fetch\x20online\x20menu\x20list','258936uBoNZn','\x20failed.','trim','10SUEgtE','Invalid\x20--mode.\x20Allowed\x20values:\x20replace,\x20patch','\x20menu(s)\x20failed','173661LeHtPw','validation','/smartapi/menu/update','Menu\x20update\x20completed:\x20','force','failed','Updating\x20','\x20updated.','!\x20No\x20menus\x20with\x20existing\x20resources\x20found','Update\x20CDN\x20asset\x20URLs\x20for\x20all\x20online\x20menus\x20with\x20existing\x20resources','2XUZiTa','str','menu','params','No\x20menus\x20with\x20existing\x20resources\x20would\x20be\x20updated.','cyan','\x20menu(s)\x20updated','length','cookie','rawFlags','12323KOafpR','bool','Menu\x20update\x20skipped'];a97_0x239b=function(){return _0x29e7c6;};return a97_0x239b();}import{filterMenusWithResources,doUpdateCdnUrls,fetchOnlineMenuList}from'../../commands/menu/shared/logic.js';import{renderUpdateSummary}from'../../commands/menu/shared/compare-table.js';import{askJsUrl,askCssUrl,askConfirm,startSpinner,stopSpinner,isInteractive,requireInteractive}from'../../commands/menu/shared/inquirer.js';import{CliErrors}from'../../errors.js';function a97_0x29e0(_0x30f39c,_0x5ac7b1){_0x30f39c=_0x30f39c-0x1e1;const _0x239b1d=a97_0x239b();let _0x29e082=_0x239b1d[_0x30f39c];return _0x29e082;}import{writeCliSideChannelLine}from'../../utils/write-cli-side-channel.js';import{runMenuUpdateCore}from'../../commands/menu/shared/update-core.js';import{isInProject}from'../../context.js';export const menuUpdate={'service':a97_0x3cba7d(0x1e4),'command':a97_0x3cba7d(0x212),'description':a97_0x3cba7d(0x1e1),'risk':'high-risk-write','flags':[{'name':a97_0x3cba7d(0x1e5),'type':a97_0x3cba7d(0x20f),'description':'Pre-fill\x20JS/CSS\x20URLs\x20to\x20update.\x20'+'JSON:\x20{\x22jsUrl\x22:\x22https://...js\x22,\x22cssUrl\x22:\x22https://...css\x22}'},{'name':a97_0x3cba7d(0x20e),'type':'boolean','description':a97_0x3cba7d(0x216)},{'name':a97_0x3cba7d(0x201),'type':a97_0x3cba7d(0x20f),'description':'Resource\x20update\x20mode:\x20replace\x20rewrites\x20resources\x20from\x20supplied\x20URLs;\x20patch\x20replaces\x20only\x20supplied\x20resource\x20types','enum':[a97_0x3cba7d(0x1f0),'patch'],'default':a97_0x3cba7d(0x1f0)},{'name':a97_0x3cba7d(0x224),'type':a97_0x3cba7d(0x1f6),'description':'Allow\x20replace\x20mode\x20to\x20remove\x20existing\x20JS\x20resources'}],async 'dryRun'(_0x34ccea){const _0xc395b1=a97_0x3cba7d;ensureRunnableContext(_0x34ccea[_0xc395b1(0x1eb)],_0x34ccea[_0xc395b1(0x20c)]);const _0x38c781=await runMenuUpdateCore(_0x34ccea[_0xc395b1(0x206)],_0x34ccea[_0xc395b1(0x1ea)],_0x34ccea['str'](_0xc395b1(0x1e5)),{'mode':parseMode(_0x34ccea['str'](_0xc395b1(0x201))),'dryRun':!![],'force':_0x34ccea[_0xc395b1(0x1ed)](_0xc395b1(0x224))});return{'method':_0xc395b1(0x202),'url':_0xc395b1(0x222),'body':_0x38c781,'description':_0x38c781[_0xc395b1(0x1fb)]?_0xc395b1(0x1e6):_0xc395b1(0x20a)+(_0x38c781[_0xc395b1(0x211)]?.['length']??0x0)+'\x20menu\x20resource\x20set(s).'};},async 'execute'(_0x241e36){const _0x41069e=a97_0x3cba7d;ensureRunnableContext(_0x241e36['rawFlags'],_0x241e36[_0x41069e(0x20c)]);const _0x2d5f9b=_0x241e36[_0x41069e(0x1fa)](_0x41069e(0x20e)),_0x14f7aa=_0x241e36[_0x41069e(0x1e3)](_0x41069e(0x1e5)),_0x27a61e=parseMode(_0x241e36[_0x41069e(0x1e3)]('mode')),_0x2dbf9e=_0x241e36['bool']('force'),_0x512e13=parseParams(_0x14f7aa),_0x4a58a0=!!(_0x512e13['jsUrl']||_0x512e13[_0x41069e(0x208)]);if(_0x2d5f9b||_0x4a58a0&&!isInteractive()){const _0xa5e992=await runMenuUpdateCore(_0x241e36[_0x41069e(0x206)],_0x241e36['cookie'],_0x14f7aa,{'mode':_0x27a61e,'force':_0x2dbf9e});return _0xa5e992[_0x41069e(0x1fb)]?writeCliSideChannelLine(_0x41069e(0x228)):(writeCliSideChannelLine(_0x41069e(0x200)+_0xa5e992['updated']+_0x41069e(0x1e8)),_0xa5e992[_0x41069e(0x225)]>0x0&&writeCliSideChannelLine('!\x20'+_0xa5e992[_0x41069e(0x225)]+_0x41069e(0x21f))),{'ok':_0xa5e992['failed']===0x0,'data':_0xa5e992,'message':_0xa5e992['skipped']?_0x41069e(0x1ee):'Menu\x20update\x20completed:\x20'+_0xa5e992[_0x41069e(0x1ff)]+_0x41069e(0x218)+_0xa5e992[_0x41069e(0x225)]+_0x41069e(0x21b)};}requireInteractive();const _0x4316d7=startSpinner(_0x41069e(0x207));let _0x3b79a2;try{_0x3b79a2=await fetchOnlineMenuList(_0x241e36[_0x41069e(0x206)],_0x241e36['cookie']),stopSpinner(_0x4316d7,_0x41069e(0x1f2),!![]);}catch(_0xb79784){stopSpinner(_0x4316d7,_0x41069e(0x219),![]);throw CliErrors[_0x41069e(0x221)](_0xb79784 instanceof Error?_0xb79784[_0x41069e(0x20b)]:'Failed\x20to\x20fetch\x20online\x20menu\x20list');}const _0x534579=filterMenusWithResources(_0x3b79a2);if(_0x534579['length']===0x0)return writeCliSideChannelLine(a97_0x5eab57[_0x41069e(0x1f8)](_0x41069e(0x20d))),{'ok':!![]};writeCliSideChannelLine(''),writeCliSideChannelLine(a97_0x5eab57[_0x41069e(0x1e7)]('\x20\x20Found\x20'+_0x534579[_0x41069e(0x1e9)]+_0x41069e(0x210))),writeCliSideChannelLine(renderUpdateSummary(_0x534579['map'](_0x112d8b=>_0x112d8b['label']),[_0x512e13[_0x41069e(0x203)],_0x512e13[_0x41069e(0x208)]])),writeCliSideChannelLine('');let _0x5578f2=_0x512e13[_0x41069e(0x203)],_0x521073=_0x512e13[_0x41069e(0x208)];!_0x5578f2&&(_0x5578f2=await askJsUrl());!_0x521073&&(_0x521073=await askCssUrl());const _0x2c86ec=await askConfirm(_0x41069e(0x1fc)+_0x534579[_0x41069e(0x1e9)]+_0x41069e(0x1f4)+_0x5578f2+_0x41069e(0x215)+_0x521073+'?');if(!_0x2c86ec)return writeCliSideChannelLine(a97_0x5eab57[_0x41069e(0x213)]('\x20\x20Cancelled.')),{'ok':!![]};const _0x512fb2=[_0x5578f2,_0x521073],_0x411044=startSpinner(_0x41069e(0x226)+_0x534579[_0x41069e(0x1e9)]+_0x41069e(0x205));try{const _0x36a2d0=await doUpdateCdnUrls(_0x241e36[_0x41069e(0x206)],_0x241e36[_0x41069e(0x1ea)],_0x534579,_0x512fb2);return stopSpinner(_0x411044,_0x41069e(0x1f1)+_0x36a2d0[_0x41069e(0x1ff)]+'\x20menu(s)',_0x36a2d0[_0x41069e(0x225)]===0x0),{'ok':_0x36a2d0[_0x41069e(0x225)]===0x0,'data':_0x36a2d0,'message':_0x36a2d0[_0x41069e(0x225)]>0x0?'Menu\x20update\x20completed:\x20'+_0x36a2d0['updated']+_0x41069e(0x218)+_0x36a2d0[_0x41069e(0x225)]+'\x20failed.':_0x41069e(0x223)+_0x36a2d0[_0x41069e(0x1ff)]+_0x41069e(0x227)};}catch(_0x3e7018){stopSpinner(_0x411044,_0x41069e(0x1f3),![]);throw CliErrors[_0x41069e(0x221)](_0x3e7018 instanceof Error?_0x3e7018[_0x41069e(0x20b)]:_0x41069e(0x1f3));}}};function ensureRunnableContext(_0x4121c0,_0x1bc0a6){const _0x42498e=a97_0x3cba7d,_0x40fd5f=_0x4121c0['appcode']?String(_0x4121c0['appcode'])[_0x42498e(0x21c)]():'';if(!isInProject()&&!_0x1bc0a6&&!_0x40fd5f)throw CliErrors[_0x42498e(0x221)](_0x42498e(0x217)+'Run\x20inside\x20a\x20directory\x20with\x20.rabetbase.json,\x20or\x20pass\x20--appcode\x20<code>.');}function parseMode(_0x56425b){const _0x42a882=a97_0x3cba7d;if(!_0x56425b)return _0x42a882(0x1f0);if(_0x56425b===_0x42a882(0x1f0)||_0x56425b===_0x42a882(0x214))return _0x56425b;throw CliErrors['validation'](_0x42a882(0x21e));}function parseParams(_0x3ae61f){const _0x1d96f0=a97_0x3cba7d;if(!_0x3ae61f)return{};try{const _0x245671=JSON['parse'](_0x3ae61f);if(typeof _0x245671!==_0x1d96f0(0x204)||_0x245671===null||Array[_0x1d96f0(0x1f5)](_0x245671))return{};return{'jsUrl':typeof _0x245671[_0x1d96f0(0x203)]===_0x1d96f0(0x20f)?_0x245671[_0x1d96f0(0x203)]['trim']():undefined,'cssUrl':typeof _0x245671['cssUrl']==='string'?_0x245671['cssUrl'][_0x1d96f0(0x21c)]():undefined};}catch{return{};}}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a98_0x30e710=a98_0xfc63;(function(_0x228b06,_0x46a4d9){const _0x69a7d1=a98_0xfc63,_0x2d7545=_0x228b06();while(!![]){try{const _0x96f7ec=parseInt(_0x69a7d1(0x84))/0x1+parseInt(_0x69a7d1(0x7d))/0x2*(-parseInt(_0x69a7d1(0x86))/0x3)+-parseInt(_0x69a7d1(0x81))/0x4+parseInt(_0x69a7d1(0x74))/0x5+parseInt(_0x69a7d1(0x99))/0x6+-parseInt(_0x69a7d1(0x94))/0x7+-parseInt(_0x69a7d1(0x8d))/0x8*(-parseInt(_0x69a7d1(0x85))/0x9);if(_0x96f7ec===_0x46a4d9)break;else _0x2d7545['push'](_0x2d7545['shift']());}catch(_0x2c27b9){_0x2d7545['push'](_0x2d7545['shift']());}}}(a98_0x1563,0x85d1c));import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,assessStandardPageState,buildPageGenerateOperationStatusQueryCommand,buildStandardPageStatusQueryCommand,createPageGenerateClientOperationId,getUndeletedRelatedPages,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector}from'../../commands/page/shared.js';import{startGenerateStandardPages}from'../../core/api-client.js';export const pageGenerateStart={'service':'page','command':'generate-start','description':a98_0x30e710(0x76),'risk':a98_0x30e710(0x8b),'defaultOutputFormat':a98_0x30e710(0x96),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':'alias','type':'string','description':a98_0x30e710(0x82)},{'name':a98_0x30e710(0x8c),'type':a98_0x30e710(0x79),'description':a98_0x30e710(0x93)}],async 'validate'(_0x3cf6de){validateDatasetSelector(_0x3cf6de);},async 'dryRun'(_0x14fadc){const _0x695f11=a98_0x30e710,_0x3b70c6=await prepare(_0x14fadc);return{'method':_0x695f11(0x8a),'url':'/smartapi/lovrabet/dataset/'+_0x3b70c6[_0x695f11(0x87)][_0x695f11(0x97)]+'/generate-standard-pages/start','body':{'appCode':_0x14fadc['appCode'],'clientOperationId':_0x3b70c6['clientOperationId']},'description':serializeDryRunDescription({'dataset':{'id':_0x3b70c6['dataset']['id'],'code':_0x3b70c6['dataset']['code'],'name':_0x3b70c6[_0x695f11(0x87)]['name'],'fieldCount':_0x3b70c6['dataset']['fieldCount']},'precheckSource':_0x3b70c6[_0x695f11(0x7e)]?.[_0x695f11(0x7a)]??_0x695f11(0x98),'action':_0x695f11(0x8e),'clientOperationId':_0x3b70c6[_0x695f11(0x88)],'plannedStatus':_0x3b70c6['precheck']['status'],'reason':_0x3b70c6[_0x695f11(0x7b)]['message']})};},async 'execute'(_0x425b0b){const _0x5c1b62=a98_0x30e710;if(!_0x425b0b[_0x5c1b62(0x8f)](_0x5c1b62(0x8c))){const _0x2ad4c1=await pageGenerateStart[_0x5c1b62(0x83)](_0x425b0b);return{'ok':!![],'message':_0x5c1b62(0x7f),'data':_0x2ad4c1};}const _0x49ba5d=await prepare(_0x425b0b);if(!_0x49ba5d['precheck']['allowGenerate'])return{'ok':![],'message':_0x49ba5d['precheck'][_0x5c1b62(0x90)],'data':{'datasetCode':_0x49ba5d[_0x5c1b62(0x87)]['code'],'clientOperationId':_0x49ba5d[_0x5c1b62(0x88)],'precheckSource':_0x49ba5d[_0x5c1b62(0x7e)]?.[_0x5c1b62(0x7a)]??_0x5c1b62(0x98),'status':_0x49ba5d[_0x5c1b62(0x7b)][_0x5c1b62(0x9a)],'manualResolutionRequired':_0x49ba5d[_0x5c1b62(0x7b)][_0x5c1b62(0x91)],'nextAction':_0x49ba5d[_0x5c1b62(0x7b)][_0x5c1b62(0x7c)],'query':{'command':buildStandardPageStatusQueryCommand(_0x49ba5d[_0x5c1b62(0x87)][_0x5c1b62(0x97)],_0x425b0b['appCode'])},'standardPageStatus':_0x49ba5d[_0x5c1b62(0x7e)]}};const _0x18a0f3=await startGenerateStandardPages(_0x425b0b[_0x5c1b62(0x92)],_0x49ba5d['dataset'][_0x5c1b62(0x97)],{'clientOperationId':_0x49ba5d['clientOperationId']}),_0x3e9d90=_0x18a0f3['status']==='SUCCESS'||_0x18a0f3[_0x5c1b62(0x9a)]==='PARTIAL_SUCCESS'?await loadStandardPageStatusForGenerate(_0x425b0b,_0x49ba5d[_0x5c1b62(0x87)][_0x5c1b62(0x97)]):null,_0x184cca=assessGenerateOperationState(_0x49ba5d[_0x5c1b62(0x87)][_0x5c1b62(0x97)],_0x18a0f3['status'],_0x3e9d90);return{'ok':!![],'message':_0x18a0f3[_0x5c1b62(0x80)]?_0x5c1b62(0x89):'已提交生成任务','data':{'datasetCode':_0x49ba5d[_0x5c1b62(0x87)][_0x5c1b62(0x97)],'appCode':_0x425b0b[_0x5c1b62(0x92)],'operationId':_0x18a0f3['operationId']??null,'clientOperationId':_0x49ba5d['clientOperationId'],'jobStatus':_0x18a0f3[_0x5c1b62(0x9a)]??null,'progressRate':typeof _0x18a0f3['progressRate']===_0x5c1b62(0x78)?_0x18a0f3[_0x5c1b62(0x77)]:null,'currentStep':_0x18a0f3[_0x5c1b62(0x75)]??null,'reused':_0x18a0f3['reused']===!![],'status':_0x184cca['status'],'manualResolutionRequired':_0x184cca[_0x5c1b62(0x91)],'nextAction':_0x184cca['nextAction'],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x49ba5d[_0x5c1b62(0x87)][_0x5c1b62(0x97)],{'appCode':_0x425b0b[_0x5c1b62(0x92)],'operationId':_0x18a0f3[_0x5c1b62(0x95)],'clientOperationId':_0x49ba5d[_0x5c1b62(0x88)]})},'standardPageStatus':_0x3e9d90}};}};function a98_0xfc63(_0x44c0c5,_0x51fb78){_0x44c0c5=_0x44c0c5-0x74;const _0x1563e2=a98_0x1563();let _0xfc6376=_0x1563e2[_0x44c0c5];return _0xfc6376;}function a98_0x1563(){const _0x29619d=['source','precheck','nextAction','68bNQOAS','standardPageStatus','Dry-run\x20preview\x20(pass\x20--apply\x20to\x20execute\x20the\x20generation)','reused','3237736tGSRqi','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','dryRun','467149SZDywd','321543BoitMy','92838ZrWdKx','dataset','clientOperationId','复用已有生成任务','POST','write','apply','328bPpKNK','generate-start','bool','message','manualResolutionRequired','appCode','Actually\x20execute\x20the\x20generation.\x20Without\x20this\x20flag,\x20only\x20a\x20dry-run\x20preview\x20is\x20shown.','5972687hxnZUy','operationId','compress','code','related-pages-fallback','5330628dkuNpR','status','2212845awzaWm','currentStep','Start\x20async\x20Smart\x20List\x20Page\x20generation\x20from\x20a\x20dataset','progressRate','number','boolean'];a98_0x1563=function(){return _0x29619d;};return a98_0x1563();}async function prepare(_0x490a15){const _0x3c1264=a98_0x30e710,_0x8ad06e=await loadDatasetDetailForPage(_0x490a15),_0x55d77a=await loadStandardPageStatusForGenerate(_0x490a15,_0x8ad06e[_0x3c1264(0x97)]),_0x11522c=getUndeletedRelatedPages(_0x8ad06e);return{'dataset':_0x8ad06e,'standardPageStatus':_0x55d77a,'clientOperationId':createPageGenerateClientOperationId(),'precheck':assessStandardPageState(_0x8ad06e[_0x3c1264(0x97)],_0x55d77a,{'fallbackUndeletedPages':_0x11522c})};}
|
|
@@ -1 +1 @@
|
|
|
1
|
-
const
|
|
1
|
+
const a99_0x30861d=a99_0x1aad;function a99_0x1aad(_0x15719d,_0x4e7c57){_0x15719d=_0x15719d-0x15c;const _0x14c6ec=a99_0x14c6();let _0x1aad73=_0x14c6ec[_0x15719d];return _0x1aad73;}(function(_0x58a229,_0x590670){const _0x1ef44b=a99_0x1aad,_0x29fdfe=_0x58a229();while(!![]){try{const _0x1567f6=parseInt(_0x1ef44b(0x17a))/0x1*(-parseInt(_0x1ef44b(0x16a))/0x2)+-parseInt(_0x1ef44b(0x15d))/0x3*(-parseInt(_0x1ef44b(0x16d))/0x4)+-parseInt(_0x1ef44b(0x174))/0x5+-parseInt(_0x1ef44b(0x16e))/0x6+-parseInt(_0x1ef44b(0x15e))/0x7*(parseInt(_0x1ef44b(0x16b))/0x8)+-parseInt(_0x1ef44b(0x177))/0x9+parseInt(_0x1ef44b(0x17e))/0xa;if(_0x1567f6===_0x590670)break;else _0x29fdfe['push'](_0x29fdfe['shift']());}catch(_0x5cd314){_0x29fdfe['push'](_0x29fdfe['shift']());}}}(a99_0x14c6,0xddc7d));function a99_0x14c6(){const _0x547ddf=['code','511755WBdHvF','3997kzVTQa','compress','toString','alias','/generate-standard-pages/status?','page','query-generate-operation-status','set','manualResolutionRequired','nextAction','read','result','212zocBHN','12592vKaKQw','operation-id','16VRGoZe','8541114iKAnUM','errorMsg','appCode','name','progressRate','clientOperationId','2485820TqInwB','operationId','client-operation-id','357822gyfUDX','/smartapi/lovrabet/dataset/','str','11276cZCczI','generate-status','Dataset\x20alias\x20from\x20api.ts\x20(resolves\x20to\x20dataset\x20code\x20automatically)','string','42805240gJyVUP','PARTIAL_SUCCESS','status','Query\x20Smart\x20List\x20Page\x20generate\x20operation\x20status','Async\x20operation\x20id\x20returned\x20by\x20page\x20generate-start','message','currentStep'];a99_0x14c6=function(){return _0x547ddf;};return a99_0x14c6();}import{APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL}from'../../commands/common/flags.js';import{assessGenerateOperationState,buildPageGenerateOperationStatusQueryCommand,loadDatasetDetailForPage,loadStandardPageStatusForGenerate,serializeDryRunDescription,validateDatasetSelector,validateGenerateOperationSelector}from'../../commands/page/shared.js';import{getGenerateStandardPagesStatus}from'../../core/api-client.js';export const pageGenerateStatus={'service':a99_0x30861d(0x163),'command':a99_0x30861d(0x17b),'description':a99_0x30861d(0x181),'risk':a99_0x30861d(0x168),'defaultOutputFormat':a99_0x30861d(0x15f),'flags':[APPCODE_FLAG_OPTIONAL,DATASETCODE_FLAG_OPTIONAL,{'name':a99_0x30861d(0x161),'type':a99_0x30861d(0x17d),'description':a99_0x30861d(0x17c)},{'name':a99_0x30861d(0x16c),'type':a99_0x30861d(0x17d),'description':a99_0x30861d(0x182)},{'name':a99_0x30861d(0x176),'type':a99_0x30861d(0x17d),'description':'Client\x20recovery/idempotency\x20id\x20when\x20operationId\x20is\x20unavailable\x20or\x20lost'}],async 'validate'(_0x1a8e96){validateDatasetSelector(_0x1a8e96),validateGenerateOperationSelector(_0x1a8e96);},async 'dryRun'(_0x382869){const _0x192705=a99_0x30861d,_0x4e2af9=await loadDatasetDetailForPage(_0x382869),_0x555c69=_0x382869[_0x192705(0x179)](_0x192705(0x16c)),_0x4cf2bf=_0x382869[_0x192705(0x179)](_0x192705(0x176)),_0x744a6=new URLSearchParams({'appCode':_0x382869['appCode']});return _0x555c69&&_0x744a6[_0x192705(0x165)](_0x192705(0x175),_0x555c69),_0x4cf2bf&&_0x744a6[_0x192705(0x165)]('clientOperationId',_0x4cf2bf),{'method':'GET','url':_0x192705(0x178)+_0x4e2af9['code']+_0x192705(0x162)+_0x744a6[_0x192705(0x160)](),'description':serializeDryRunDescription({'dataset':{'id':_0x4e2af9['id'],'code':_0x4e2af9['code'],'name':_0x4e2af9[_0x192705(0x171)]},'action':_0x192705(0x164),'operationId':_0x555c69||undefined,'clientOperationId':_0x4cf2bf||undefined})};},async 'execute'(_0x41a8b9){const _0x4954c9=a99_0x30861d,_0x8713c2=await loadDatasetDetailForPage(_0x41a8b9),_0x3f2715=_0x41a8b9[_0x4954c9(0x179)](_0x4954c9(0x16c)),_0x1c3c7c=_0x41a8b9[_0x4954c9(0x179)](_0x4954c9(0x176)),_0x5c981a=await getGenerateStandardPagesStatus(_0x41a8b9['appCode'],_0x8713c2[_0x4954c9(0x15c)],{'operationId':_0x3f2715||undefined,'clientOperationId':_0x1c3c7c||undefined}),_0x6c5c3a=_0x5c981a[_0x4954c9(0x180)]==='SUCCESS'||_0x5c981a[_0x4954c9(0x180)]===_0x4954c9(0x17f),_0x381d81=_0x6c5c3a?await loadStandardPageStatusForGenerate(_0x41a8b9,_0x8713c2[_0x4954c9(0x15c)]):null,_0xc871ca=assessGenerateOperationState(_0x8713c2['code'],_0x5c981a[_0x4954c9(0x180)],_0x381d81),_0x5eefa5=_0x5c981a['operationId']??_0x3f2715??undefined,_0x4b762b=_0x5c981a[_0x4954c9(0x173)]??_0x1c3c7c??undefined;return{'ok':!![],'message':_0xc871ca[_0x4954c9(0x180)]==='operation_failed'?_0x5c981a[_0x4954c9(0x16f)]||_0xc871ca[_0x4954c9(0x183)]:_0xc871ca['message'],'data':{'datasetCode':_0x8713c2['code'],'appCode':_0x41a8b9[_0x4954c9(0x170)],'operationId':_0x5eefa5,'clientOperationId':_0x4b762b,'jobStatus':_0x5c981a[_0x4954c9(0x180)]??null,'progressRate':typeof _0x5c981a[_0x4954c9(0x172)]==='number'?_0x5c981a[_0x4954c9(0x172)]:null,'currentStep':_0x5c981a[_0x4954c9(0x184)]??null,'errorMsg':_0x5c981a[_0x4954c9(0x16f)]??null,'status':_0xc871ca[_0x4954c9(0x180)],'manualResolutionRequired':_0xc871ca[_0x4954c9(0x166)],'nextAction':_0xc871ca[_0x4954c9(0x167)],'query':{'command':buildPageGenerateOperationStatusQueryCommand(_0x8713c2['code'],{'appCode':_0x41a8b9[_0x4954c9(0x170)],'operationId':_0x5eefa5,'clientOperationId':_0x4b762b})},'standardPageStatus':_0x381d81,'result':_0x5c981a[_0x4954c9(0x169)]??null}};}};
|
|
@@ -1 +1 @@
|
|
|
1
|
-
|
|
1
|
+
(function(_0x3eeeb1,_0x2fb2d6){const _0x533d25=a100_0x46f0,_0xd161a=_0x3eeeb1();while(!![]){try{const _0xfa2993=-parseInt(_0x533d25(0x78))/0x1*(parseInt(_0x533d25(0x76))/0x2)+-parseInt(_0x533d25(0x7c))/0x3*(parseInt(_0x533d25(0x7a))/0x4)+-parseInt(_0x533d25(0x77))/0x5*(-parseInt(_0x533d25(0x7b))/0x6)+-parseInt(_0x533d25(0x72))/0x7+parseInt(_0x533d25(0x71))/0x8*(-parseInt(_0x533d25(0x74))/0x9)+parseInt(_0x533d25(0x75))/0xa+parseInt(_0x533d25(0x73))/0xb*(parseInt(_0x533d25(0x79))/0xc);if(_0xfa2993===_0x2fb2d6)break;else _0xd161a['push'](_0xd161a['shift']());}catch(_0x13b20f){_0xd161a['push'](_0xd161a['shift']());}}}(a100_0x5ebe,0xbb465));import{pageGenerateStart}from'../../commands/page/generate-start.js';import{pageGenerateStatus}from'../../commands/page/generate-status.js';import{pageStandardPageStatus}from'../../commands/page/standard-page-status.js';import{pageSync}from'../../commands/page/sync.js';import{pagePull}from'../../commands/page/pull.js';function a100_0x46f0(_0x257757,_0xa10ffe){_0x257757=_0x257757-0x71;const _0x5ebea9=a100_0x5ebe();let _0x46f00f=_0x5ebea9[_0x257757];return _0x46f00f;}import{pagePush}from'../../commands/page/push.js';function a100_0x5ebe(){const _0x21e44b=['5933496ezHFaS','2122508CciKmp','6CIcDFr','3RMcqcs','104HFMQdr','712082XGhdHv','55llNsFp','1041858OMIAny','4167040jMgjjU','88linWAV','2361410AkRPbH','10385BaPWGe'];a100_0x5ebe=function(){return _0x21e44b;};return a100_0x5ebe();}import{pageRelationAudit}from'../../commands/page/relation-audit.js';export const pageDefinitions=[pageGenerateStart,pageGenerateStatus,pageStandardPageStatus,pageRelationAudit,pageSync,pagePull,pagePush];
|