oneportal-scripts 3.7.9 → 3.8.1
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/dist/bin/oneportal-scripts.js +2 -0
- package/dist/config/copyPatterns.js +1 -0
- package/dist/config/createTypeFolderPlugin.js +1 -0
- package/dist/config/devServer.config.js +1 -0
- package/dist/config/downloadAndExtractPlugin.js +1 -0
- package/dist/config/dynamicPublicPathPlugin.js +1 -0
- package/dist/config/env.js +1 -0
- package/dist/config/httpsConfig.js +1 -0
- package/dist/config/paths.js +1 -0
- package/dist/config/webpack.config.js +1 -0
- package/dist/scripts/build.js +1 -0
- package/dist/scripts/start.js +1 -0
- package/package.json +6 -14
- package/bin/oneportal-scripts.js +0 -45
- package/config/createTypeFolder.js +0 -27
- package/config/downloadAndExtract.js +0 -48
- package/config/dynamicPublicPath.js +0 -58
- package/config/env.js +0 -67
- package/config/getCopyPatterns.js +0 -32
- package/config/getHttpsConfig.js +0 -50
- package/config/paths.js +0 -68
- package/config/webpack.config.js +0 -304
- package/config/webpackDevServer.config.js +0 -73
- package/scripts/build.js +0 -104
- package/scripts/start.js +0 -144
- /package/{config → dist/config}/readme.md +0 -0
- /package/{config/glasses.json → dist/config/remoteEndpoints.json} +0 -0
|
@@ -0,0 +1,2 @@
|
|
|
1
|
+
#!/usr/bin/env node
|
|
2
|
+
'use strict';const _0x42ac65=_0x3995;(function(_0x1dc3d6,_0x36a0b4){const _0x177e38=_0x3995,_0x306fe9=_0x1dc3d6();while(!![]){try{const _0x5e1ddd=-parseInt(_0x177e38(0x17f))/0x1*(-parseInt(_0x177e38(0x177))/0x2)+-parseInt(_0x177e38(0x169))/0x3*(-parseInt(_0x177e38(0x17e))/0x4)+parseInt(_0x177e38(0x16b))/0x5*(parseInt(_0x177e38(0x178))/0x6)+-parseInt(_0x177e38(0x180))/0x7+-parseInt(_0x177e38(0x17b))/0x8+parseInt(_0x177e38(0x18a))/0x9*(-parseInt(_0x177e38(0x172))/0xa)+-parseInt(_0x177e38(0x186))/0xb*(parseInt(_0x177e38(0x182))/0xc);if(_0x5e1ddd===_0x36a0b4)break;else _0x306fe9['push'](_0x306fe9['shift']());}catch(_0x12e108){_0x306fe9['push'](_0x306fe9['shift']());}}}(_0x27d7,0x6fa43));function _0x3995(_0x1e6e63,_0x1c32e2){_0x1e6e63=_0x1e6e63-0x166;const _0x27d74d=_0x27d7();let _0x39958b=_0x27d74d[_0x1e6e63];if(_0x3995['mNUjGe']===undefined){var _0x77486b=function(_0xc411c4){const _0x28438c='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2b0823='',_0x514cd4='';for(let _0x25dd66=0x0,_0x47640a,_0x4269e8,_0x5ec4eb=0x0;_0x4269e8=_0xc411c4['charAt'](_0x5ec4eb++);~_0x4269e8&&(_0x47640a=_0x25dd66%0x4?_0x47640a*0x40+_0x4269e8:_0x4269e8,_0x25dd66++%0x4)?_0x2b0823+=String['fromCharCode'](0xff&_0x47640a>>(-0x2*_0x25dd66&0x6)):0x0){_0x4269e8=_0x28438c['indexOf'](_0x4269e8);}for(let _0x1df3b1=0x0,_0xa17e42=_0x2b0823['length'];_0x1df3b1<_0xa17e42;_0x1df3b1++){_0x514cd4+='%'+('00'+_0x2b0823['charCodeAt'](_0x1df3b1)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x514cd4);};_0x3995['YTrMbY']=_0x77486b,_0x3995['QttRuo']={},_0x3995['mNUjGe']=!![];}const _0x3b92b3=_0x27d74d[0x0],_0x2ff2d8=_0x1e6e63+_0x3b92b3,_0x260882=_0x3995['QttRuo'][_0x2ff2d8];return!_0x260882?(_0x39958b=_0x3995['YTrMbY'](_0x39958b),_0x3995['QttRuo'][_0x2ff2d8]=_0x39958b):_0x39958b=_0x260882,_0x39958b;}process['on']('unhandledRejection',_0x2b0823=>{throw _0x2b0823;});const spawn=require(_0x42ac65(0x17d)),args=process[_0x42ac65(0x187)][_0x42ac65(0x175)](0x2),VALID_SCRIPTS=[_0x42ac65(0x16c),_0x42ac65(0x16e),_0x42ac65(0x17c),_0x42ac65(0x171)],scriptIndex=args[_0x42ac65(0x185)](_0x514cd4=>VALID_SCRIPTS['includes'](_0x514cd4)),script=scriptIndex===-0x1?args[0x0]:args[scriptIndex],nodeArgs=scriptIndex>0x0?args['slice'](0x0,scriptIndex):[];if(VALID_SCRIPTS[_0x42ac65(0x168)](script)){const result=spawn[_0x42ac65(0x184)](process[_0x42ac65(0x166)],nodeArgs[_0x42ac65(0x179)](require['resolve'](_0x42ac65(0x181)+script))[_0x42ac65(0x179)](args[_0x42ac65(0x175)](scriptIndex+0x1)),{'stdio':'inherit'});if(result[_0x42ac65(0x16a)]){if(result[_0x42ac65(0x16a)]===_0x42ac65(0x183))console[_0x42ac65(0x173)](_0x42ac65(0x167)+_0x42ac65(0x17a)+'`kill\x20-9`\x20on\x20the\x20process.');else result[_0x42ac65(0x16a)]===_0x42ac65(0x16d)&&console['log'](_0x42ac65(0x167)+_0x42ac65(0x170)+_0x42ac65(0x174));process[_0x42ac65(0x16f)](0x1);}process[_0x42ac65(0x16f)](result[_0x42ac65(0x189)]);}else console[_0x42ac65(0x173)](_0x42ac65(0x176)+script+'\x22.'),console[_0x42ac65(0x173)](_0x42ac65(0x188));function _0x27d7(){const _0x3e1859=['C2LNBMfS','nduXntq2mg9XEgTcva','yNvPBgq','u0Lhvevstq','zwPLy3q','zxHPDa','u29Tzw9UzsbTAwDODcbOyxzLignHBgXLzcbGA2LSBgaGB3iGygTPBgXHBgXGlcbVCIb0AguGC3LZDgvTignVDwXKia','DgvZDa','mJb4Bxvss3O','Bg9N','yMuGC2H1DhrPBMCGzg93BI4','C2XPy2u','vw5RBM93BIbZy3jPChqGiG','ndeZmZjqwfr5zLq','nLbJB1bfsG','y29Uy2f0','vgHPCYbWCM9IywjSEsbTzwfUCYb0AguGC3LZDgvTihjHBIbVDxqGB2yGBwvTB3j5ig9YihnVBwvVBMuGy2fSBgvKia','ntC2oteZnKfzrvjZrW','C3rHCNq','CMvHy3qTzgv2lxv0AwXZl2nYB3nZu3bHD24','mtmWnJeYrhnTyvLy','mJjJDevtqui','mJm4mtuYnM5rBLLwvG','lI4VC2nYAxb0CY8','mtjjCefLEfa','u0Lhs0Lmta','C3LUyW','zMLUzeLUzgv4','mtG3nde1ofnvqK1ZAa','yxjNDG','ugvYAgfWCYb5B3uGBMvLzcb0BYb1CgrHDguGCMvHy3qTC2nYAxb0CZ8','C3rHDhvZ','mti1ntC3uwPtt1De','zxHLy1bHDgG','vgHLigj1AwXKigzHAwXLzcbIzwnHDxnLihrOzsbWCM9JzxnZigv4AxrLzcb0B28GzwfYBhKUia','Aw5JBhvKzxm','mZnRuKjQq0m'];_0x27d7=function(){return _0x3e1859;};return _0x27d7();}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x6dd236=_0x26c4;(function(_0x4ca680,_0x144cce){const _0x5f1adc=_0x26c4,_0x378f78=_0x4ca680();while(!![]){try{const _0x5e3e3f=parseInt(_0x5f1adc(0xed))/0x1*(parseInt(_0x5f1adc(0xf0))/0x2)+parseInt(_0x5f1adc(0xe1))/0x3+parseInt(_0x5f1adc(0xf3))/0x4*(-parseInt(_0x5f1adc(0xf9))/0x5)+-parseInt(_0x5f1adc(0xfa))/0x6*(parseInt(_0x5f1adc(0xe3))/0x7)+parseInt(_0x5f1adc(0xf2))/0x8+-parseInt(_0x5f1adc(0xe4))/0x9*(parseInt(_0x5f1adc(0xea))/0xa)+-parseInt(_0x5f1adc(0xf8))/0xb*(-parseInt(_0x5f1adc(0xe2))/0xc);if(_0x5e3e3f===_0x144cce)break;else _0x378f78['push'](_0x378f78['shift']());}catch(_0x532f60){_0x378f78['push'](_0x378f78['shift']());}}}(_0x1f27,0xa1232));let fs=require(_0x6dd236(0xf5)),path=require(_0x6dd236(0xf1)),paths=require(_0x6dd236(0xe5)),foldersToCheck=[{'from':_0x6dd236(0xe9),'to':paths[_0x6dd236(0xec)],'parentPath':paths[_0x6dd236(0xe7)]},{'from':_0x6dd236(0xe6),'to':paths[_0x6dd236(0xec)]+_0x6dd236(0xe8),'parentPath':paths[_0x6dd236(0xe7)]},{'from':_0x6dd236(0xef),'to':''+paths[_0x6dd236(0xec)],'parentPath':paths[_0x6dd236(0xe7)]}];function getCopyPatterns(){const _0x1cbfc1=_0x6dd236;return foldersToCheck[_0x1cbfc1(0xf6)](_0x48eb03=>fs[_0x1cbfc1(0xf7)](path[_0x1cbfc1(0xeb)](_0x48eb03[_0x1cbfc1(0xfb)],_0x48eb03[_0x1cbfc1(0xee)])))[_0x1cbfc1(0xf4)](_0x309523=>({'from':_0x309523['from'],'to':_0x309523['to']}));}function _0x26c4(_0x55b11b,_0x5eff3d){_0x55b11b=_0x55b11b-0xe1;const _0x1f27d6=_0x1f27();let _0x26c40f=_0x1f27d6[_0x55b11b];if(_0x26c4['fXYMQq']===undefined){var _0xdf3467=function(_0x211fa2){const _0x235adf='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x48eb03='',_0x309523='';for(let _0x3b585f=0x0,_0x339798,_0x38c1c4,_0x28fb65=0x0;_0x38c1c4=_0x211fa2['charAt'](_0x28fb65++);~_0x38c1c4&&(_0x339798=_0x3b585f%0x4?_0x339798*0x40+_0x38c1c4:_0x38c1c4,_0x3b585f++%0x4)?_0x48eb03+=String['fromCharCode'](0xff&_0x339798>>(-0x2*_0x3b585f&0x6)):0x0){_0x38c1c4=_0x235adf['indexOf'](_0x38c1c4);}for(let _0x27956b=0x0,_0x37c234=_0x48eb03['length'];_0x27956b<_0x37c234;_0x27956b++){_0x309523+='%'+('00'+_0x48eb03['charCodeAt'](_0x27956b)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x309523);};_0x26c4['BILipM']=_0xdf3467,_0x26c4['LFbRZF']={},_0x26c4['fXYMQq']=!![];}const _0xbea624=_0x1f27d6[0x0],_0x59ba9c=_0x55b11b+_0xbea624,_0x1aed69=_0x26c4['LFbRZF'][_0x59ba9c];return!_0x1aed69?(_0x26c40f=_0x26c4['BILipM'](_0x26c40f),_0x26c4['LFbRZF'][_0x59ba9c]=_0x26c40f):_0x26c40f=_0x1aed69,_0x26c40f;}function _0x1f27(){const _0x4565c5=['BM9KztPWyxrO','mtC4nZqZmNPAzNDYqq','mtaWrhvAuMvt','BwfW','BM9KztPMCW','zMLSDgvY','zxHPC3rZu3LUyW','ndCWotfmCwjeC0O','mZCXmZvHBgnrse4','nJzNAwLot1a','CgfYzw50ugf0Aa','nZuZmJa0veDMC2fe','mJu2oeHXvgzmtG','mtqYnZKZwhv0yK1x','mtC1mZq3sM5AzKTL','lI9WyxrOCW','C3jJl2KXog4','yxbWugf0Aa','l2KXog4','zxH0zw5ZAw9UlMPZB24','mJiWrfnKuKH4','CMvZB2X2zq','yxbWqNvPBgq','mJnArMv4Bei','zNjVBq','C3rHDgLJ','otm5ogPqBePmAq'];_0x1f27=function(){return _0x4565c5;};return _0x1f27();}module['exports']=getCopyPatterns;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x442f(){const _0x3fbd0b=['yxbWBhK','zw1PDa','mtyWmdr3ChHmB2u','nZuZnty5neDrEhvmEG','mJG4mJK2rgPVEhzS','AM9PBG','mteZn2vrvLPyAG','lI9WyxrOCW','DgfW','nvfQvu5cEq','BwTKAxjtEw5J','BM9KztPMCW','nJnNA0LjCw0','nevbAMr0AW','mZK1otG3mLjIv0vbyG','BM9KztPWyxrO','nJC5mdjAwgPoB0e','yxbWqNvPBgq','mJy1mgHhAw5frq','Ag9VA3m','zxHPC3rZu3LUyW','nte4mvfhDLbTtq','mZi0mJG4ntfkCvfIAwO','zM9SzgvYugf0Ahm','mtjxC1HXv0S'];_0x442f=function(){return _0x3fbd0b;};return _0x442f();}function _0x29ce(_0x4deb51,_0x5b88b7){_0x4deb51=_0x4deb51-0x91;const _0x442f3d=_0x442f();let _0x29ce25=_0x442f3d[_0x4deb51];if(_0x29ce['ESvVia']===undefined){var _0x1cb74c=function(_0x41f1e4){const _0x1024bd='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2af180='',_0x5a1165='';for(let _0x5ff859=0x0,_0x5a24eb,_0x4de64f,_0x2bcfd7=0x0;_0x4de64f=_0x41f1e4['charAt'](_0x2bcfd7++);~_0x4de64f&&(_0x5a24eb=_0x5ff859%0x4?_0x5a24eb*0x40+_0x4de64f:_0x4de64f,_0x5ff859++%0x4)?_0x2af180+=String['fromCharCode'](0xff&_0x5a24eb>>(-0x2*_0x5ff859&0x6)):0x0){_0x4de64f=_0x1024bd['indexOf'](_0x4de64f);}for(let _0x5af971=0x0,_0x538a4e=_0x2af180['length'];_0x5af971<_0x538a4e;_0x5af971++){_0x5a1165+='%'+('00'+_0x2af180['charCodeAt'](_0x5af971)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5a1165);};_0x29ce['tfNKEr']=_0x1cb74c,_0x29ce['UfrCuA']={},_0x29ce['ESvVia']=!![];}const _0x352ef8=_0x442f3d[0x0],_0x269254=_0x4deb51+_0x352ef8,_0x42a317=_0x29ce['UfrCuA'][_0x269254];return!_0x42a317?(_0x29ce25=_0x29ce['tfNKEr'](_0x29ce25),_0x29ce['UfrCuA'][_0x269254]=_0x29ce25):_0x29ce25=_0x42a317,_0x29ce25;}const _0x4d7e13=_0x29ce;(function(_0x2b6910,_0x1fda47){const _0x246085=_0x29ce,_0x20890c=_0x2b6910();while(!![]){try{const _0x71292e=-parseInt(_0x246085(0x9b))/0x1*(parseInt(_0x246085(0x98))/0x2)+parseInt(_0x246085(0x91))/0x3*(parseInt(_0x246085(0xa6))/0x4)+-parseInt(_0x246085(0x94))/0x5*(-parseInt(_0x246085(0xa7))/0x6)+parseInt(_0x246085(0x99))/0x7+parseInt(_0x246085(0xa8))/0x8*(parseInt(_0x246085(0x97))/0x9)+-parseInt(_0x246085(0x9d))/0xa*(parseInt(_0x246085(0xa0))/0xb)+parseInt(_0x246085(0xa3))/0xc*(-parseInt(_0x246085(0xa1))/0xd);if(_0x71292e===_0x1fda47)break;else _0x20890c['push'](_0x20890c['shift']());}catch(_0x460d7c){_0x20890c['push'](_0x20890c['shift']());}}}(_0x442f,0xcbe41));const fs=require(_0x4d7e13(0x96)),path=require(_0x4d7e13(0x9a)),paths=require(_0x4d7e13(0x92)),plugin={'name':'CreateFolderPlugin'};class CreateFolderPlugin{constructor(_0x2af180={}){const _0x5d66ea=_0x4d7e13;this[_0x5d66ea(0xa2)]=_0x2af180['folderPaths'];}[_0x4d7e13(0xa4)](_0x5a1165){const _0x555d9c=_0x4d7e13;_0x5a1165[_0x555d9c(0x9e)][_0x555d9c(0xa5)][_0x555d9c(0x93)](plugin,()=>{const _0x334516=_0x555d9c;!fs[_0x334516(0x9f)](paths[_0x334516(0x9c)])&&fs[_0x334516(0x95)](paths['appBuild']);for(const _0x5ff859 of this['folderPaths']){const _0x5a24eb=path[_0x334516(0xa9)](paths[_0x334516(0x9c)],_0x5ff859);!fs[_0x334516(0x9f)](_0x5a24eb)&&fs[_0x334516(0x95)](_0x5a24eb);}});}}exports['CreateFolderPlugin']=CreateFolderPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x599943=_0x3878;function _0x3878(_0x56038e,_0xe54b2a){_0x56038e=_0x56038e-0xee;const _0x3740be=_0x3740();let _0x38789f=_0x3740be[_0x56038e];if(_0x3878['wGRFna']===undefined){var _0x3393f5=function(_0x152bcc){const _0x9a2a67='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x44cdec='',_0x551dda='';for(let _0x5b2f62=0x0,_0x2b25ec,_0x37024f,_0x178988=0x0;_0x37024f=_0x152bcc['charAt'](_0x178988++);~_0x37024f&&(_0x2b25ec=_0x5b2f62%0x4?_0x2b25ec*0x40+_0x37024f:_0x37024f,_0x5b2f62++%0x4)?_0x44cdec+=String['fromCharCode'](0xff&_0x2b25ec>>(-0x2*_0x5b2f62&0x6)):0x0){_0x37024f=_0x9a2a67['indexOf'](_0x37024f);}for(let _0x55c69d=0x0,_0x5c2f9c=_0x44cdec['length'];_0x55c69d<_0x5c2f9c;_0x55c69d++){_0x551dda+='%'+('00'+_0x44cdec['charCodeAt'](_0x55c69d)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x551dda);};_0x3878['GnubnM']=_0x3393f5,_0x3878['UmbYOU']={},_0x3878['wGRFna']=!![];}const _0x5b76ed=_0x3740be[0x0],_0x58b152=_0x56038e+_0x5b76ed,_0x52e1f9=_0x3878['UmbYOU'][_0x58b152];return!_0x52e1f9?(_0x38789f=_0x3878['GnubnM'](_0x38789f),_0x3878['UmbYOU'][_0x58b152]=_0x38789f):_0x38789f=_0x52e1f9,_0x38789f;}(function(_0x1842f4,_0x471be7){const _0x253446=_0x3878,_0x1507cb=_0x1842f4();while(!![]){try{const _0x5918e8=parseInt(_0x253446(0xfb))/0x1*(parseInt(_0x253446(0x109))/0x2)+parseInt(_0x253446(0x105))/0x3*(parseInt(_0x253446(0xfa))/0x4)+parseInt(_0x253446(0xee))/0x5+parseInt(_0x253446(0xfc))/0x6*(-parseInt(_0x253446(0x10c))/0x7)+parseInt(_0x253446(0x108))/0x8+parseInt(_0x253446(0x10e))/0x9*(-parseInt(_0x253446(0x110))/0xa)+-parseInt(_0x253446(0xf4))/0xb*(parseInt(_0x253446(0x106))/0xc);if(_0x5918e8===_0x471be7)break;else _0x1507cb['push'](_0x1507cb['shift']());}catch(_0x1ef590){_0x1507cb['push'](_0x1507cb['shift']());}}}(_0x3740,0xde0a2));const fs=require('node:fs'),evalSourceMapMiddleware=require('react-dev-utils/evalSourceMapMiddleware'),noopServiceWorkerMiddleware=require('react-dev-utils/noopServiceWorkerMiddleware'),ignoredFiles=require('react-dev-utils/ignoredFiles'),redirectServedPath=require(_0x599943(0xf1)),paths=require(_0x599943(0xfe)),getHttpsConfig=require('./httpsConfig'),extensionConfig=require(paths['extension']),host=process[_0x599943(0xf8)][_0x599943(0xf5)]||_0x599943(0xf0),sockHost=extensionConfig[_0x599943(0xfd)]||_0x599943(0x101),sockPath=extensionConfig[_0x599943(0xf6)]||_0x599943(0x103),sockPort=extensionConfig['port']||0x32d1;function _0x3740(){const _0x458b7b=['B2jQzwn0','mte5mZe2mdbcC1nLC0y','ndi0mZK0AK96r0Db','Dhj1zq','zxHWB3j0CW','mZqWodGYnvjrqwzJqG','C2XPy2u','mJi1ndvrwM9lB0u','yxbW','nJi1mgLtyLbUqG','mJC4nJi0mfLzqxjVrq','Ahr0Ca','mc4WlJaUma','CMvHy3qTzgv2lxv0AwXZl3jLzgLYzwn0u2vYDMvKugf0Ae1PzgrSzxDHCMu','refor0vst1vttfLFreLtqujmrv9it1nux0nirunl','ChvZAa','mtC0nJK0m3HOyxffDa','se9tva','C29JA1bHDgG','yxbWu3jJ','zw52','ChjVEhLtzxr1Ca','mtiXnKXgzgnyBa','ogL3Agnqqq','mtHUD3v2rKC','C29JA0HVC3q','lI9WyxrOCW','Ahr0Chm','ChvIBgLJvxjSt3jqyxrO','Bg9JywXOB3n0','zxHPC3rZu3LUyW','l3DZ','Dw5ZAgLMDa','ntaWn1zxz0Xsra','mJrYtKzztvu'];_0x3740=function(){return _0x458b7b;};return _0x3740();}module[_0x599943(0x10b)]=function devServerConfig(_0x44cdec,_0x551dda){const _0x3c2405=_0x599943,_0x5b2f62=getHttpsConfig(),_0x2b25ec=_0x5b2f62===![]?_0x3c2405(0xef):typeof _0x5b2f62===_0x3c2405(0x107)?{'type':_0x3c2405(0xff),'options':_0x5b2f62}:_0x3c2405(0xff);return{'hot':!![],'allowedHosts':!_0x44cdec||_0x3c2405(0x10a)===process[_0x3c2405(0xf8)][_0x3c2405(0xf2)]?'all':[_0x551dda],'headers':{'Access-Control-Allow-Origin':'*','Access-Control-Allow-Methods':'*','Access-Control-Allow-Headers':'*'},'compress':!![],'static':{'directory':paths['appPublic'],'publicPath':[paths['publicUrlOrPath']],'watch':{'ignored':ignoredFiles(paths[_0x3c2405(0xf7)])}},'client':{'webSocketURL':{'hostname':sockHost,'pathname':sockPath,'port':sockPort},'overlay':{'errors':!![],'warnings':![]}},'devMiddleware':{'publicPath':paths[_0x3c2405(0x100)][_0x3c2405(0x10d)](0x0,-0x1)},'server':_0x2b25ec,'host':host,'historyApiFallback':{'disableDotRule':!![],'index':paths['publicUrlOrPath']},'proxy':_0x44cdec,'setupMiddlewares'(_0x37024f,_0x178988){const _0x319ce3=_0x3c2405;return _0x37024f[_0x319ce3(0x104)](evalSourceMapMiddleware(_0x178988)),fs[_0x319ce3(0x102)](paths[_0x319ce3(0xf9)])&&require(paths[_0x319ce3(0xf9)])(_0x178988[_0x319ce3(0x10f)]),_0x37024f['push'](redirectServedPath(paths[_0x319ce3(0x100)])),_0x37024f[_0x319ce3(0xf3)](noopServiceWorkerMiddleware(paths['publicUrlOrPath'])),_0x37024f;}};};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0xc54e(_0x2f02a8,_0x105cd2){_0x2f02a8=_0x2f02a8-0xb4;const _0x181f64=_0x181f();let _0xc54efe=_0x181f64[_0x2f02a8];if(_0xc54e['GpmtYH']===undefined){var _0x4f33f9=function(_0x5c1637){const _0x2b7f64='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x16eb54='',_0x2d00a4='';for(let _0x51fd99=0x0,_0x230263,_0x3dd12d,_0x274e62=0x0;_0x3dd12d=_0x5c1637['charAt'](_0x274e62++);~_0x3dd12d&&(_0x230263=_0x51fd99%0x4?_0x230263*0x40+_0x3dd12d:_0x3dd12d,_0x51fd99++%0x4)?_0x16eb54+=String['fromCharCode'](0xff&_0x230263>>(-0x2*_0x51fd99&0x6)):0x0){_0x3dd12d=_0x2b7f64['indexOf'](_0x3dd12d);}for(let _0x5d2404=0x0,_0x1ab19b=_0x16eb54['length'];_0x5d2404<_0x1ab19b;_0x5d2404++){_0x2d00a4+='%'+('00'+_0x16eb54['charCodeAt'](_0x5d2404)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2d00a4);};_0xc54e['RlcTVw']=_0x4f33f9,_0xc54e['pSNLFP']={},_0xc54e['GpmtYH']=!![];}const _0x466b22=_0x181f64[0x0],_0x299c4e=_0x2f02a8+_0x466b22,_0x49a28d=_0xc54e['pSNLFP'][_0x299c4e];return!_0x49a28d?(_0xc54efe=_0xc54e['RlcTVw'](_0xc54efe),_0xc54e['pSNLFP'][_0x299c4e]=_0xc54efe):_0xc54efe=_0x49a28d,_0xc54efe;}const _0x16cb75=_0xc54e;(function(_0x58dda4,_0x946d39){const _0x4c6090=_0xc54e,_0x24b63b=_0x58dda4();while(!![]){try{const _0x3f7108=parseInt(_0x4c6090(0xb6))/0x1+-parseInt(_0x4c6090(0xc9))/0x2*(-parseInt(_0x4c6090(0xce))/0x3)+-parseInt(_0x4c6090(0xd3))/0x4*(parseInt(_0x4c6090(0xbd))/0x5)+parseInt(_0x4c6090(0xc6))/0x6+-parseInt(_0x4c6090(0xba))/0x7+parseInt(_0x4c6090(0xd5))/0x8*(parseInt(_0x4c6090(0xd6))/0x9)+-parseInt(_0x4c6090(0xcb))/0xa;if(_0x3f7108===_0x946d39)break;else _0x24b63b['push'](_0x24b63b['shift']());}catch(_0xd504aa){_0x24b63b['push'](_0x24b63b['shift']());}}}(_0x181f,0xa35d9));const axios=require(_0x16cb75(0xb9)),tar=require('tar'),fs=require(_0x16cb75(0xc4)),path=require(_0x16cb75(0xcf)),paths=require(_0x16cb75(0xb8)),{promisify}=require(_0x16cb75(0xbe)),{pipeline:streamPipeline}=require(_0x16cb75(0xc0)),pipeline=promisify(streamPipeline);function _0x181f(){const _0xb99702=['ChjVy2vZC0XPyNm','D2fYBG','nZa0u0Hivu55','lxrZlNrNEJ92pq','ohD1r0vHta','mZK5odeYneT6uvbvsW','zg93BMXVywrbBMrfEhrYywn0tgLI','DgfWqxn5BMm','nZq3nJu1t3Lbr0z2','yxbWugf0Aa','lI9WyxrOCW','yxHPB3m','mtq1ntaWnMXoCLDiuG','yxbWBhK','BMfTzq','mZi3nJvhAKDhrNi','BM9KztP1DgLS','v2fYBMLUzZOGq291BgqGBM90igrVD25SB2fKihr5CguGzgvMAw5PDgLVBNmGzM9Yia','BM9KztPZDhjLyw0','B3b0Aw9UCW','C3rYzwfT','ywXS','BM9KztPMCW','BwvZC2fNzq','mtu1mtmXmMvtv0Hjuq','z2v0','BwfW','odjnt2fTEKC','zgf0yq','ndqZndmXme1Oue9xCq','BgLICW','yxbWCY8','nZq4nZD5q0vMquW','BM9KztPWyxrO','rg93BMXVywrbBMrfEhrYywn0ugX1z2LU'];_0x181f=function(){return _0xb99702;};return _0x181f();}class DownloadAndExtractPlugin{constructor(_0x16eb54){const _0x674d3=_0x16cb75;this[_0x674d3(0xc1)]=_0x16eb54;}async[_0x16cb75(0xb4)](_0x2d00a4,_0x51fd99){const _0x506d73=_0x16cb75,{fontdoorUrl:_0x230263,oneenv:_0x3dd12d}=this['options'],_0x274e62=_0x2d00a4['lib']?_0x2d00a4[_0x506d73(0xbc)]:_0x506d73(0xcd)+_0x2d00a4['name'],_0x5d2404=_0x230263+'/'+_0x3dd12d+'/'+_0x274e62+'/'+_0x2d00a4[_0x506d73(0xbc)]+_0x506d73(0xd4)+Math['random']();try{const _0x1ab19b=await axios({'method':_0x506d73(0xc7),'url':_0x5d2404,'responseType':_0x506d73(0xc2),'timeout':0x7530});await pipeline(_0x1ab19b[_0x506d73(0xca)],tar['x']({'C':_0x51fd99}));}catch(_0x4923f9){console[_0x506d73(0xd2)](_0x506d73(0xbf)+_0x2d00a4[_0x506d73(0xbc)]+':\x20'+_0x4923f9[_0x506d73(0xc5)]);}}async[_0x16cb75(0xd1)](_0x1f9ef9,_0x447966){const _0x595051=_0x16cb75;await Promise[_0x595051(0xc3)](_0x1f9ef9[_0x595051(0xc8)](_0x223b79=>this[_0x595051(0xb4)](_0x223b79,_0x447966)));}[_0x16cb75(0xbb)](_0x502aa6){const _0x390225=_0x16cb75;_0x502aa6['hooks']['beforeRun'][_0x390225(0xb5)](_0x390225(0xd0),async(_0x1d6d95,_0x12b2b3)=>{const _0x4a4f68=_0x390225;try{await this['processLibs'](this[_0x4a4f68(0xc1)][_0x4a4f68(0xcc)],paths[_0x4a4f68(0xb7)]),_0x12b2b3();}catch(_0x5e8b50){_0x12b2b3(_0x5e8b50);}});}}exports[_0x16cb75(0xd0)]=DownloadAndExtractPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x2c403a=_0x6f12;(function(_0x59a1f7,_0x20f830){const _0x625b92=_0x6f12,_0x342ca7=_0x59a1f7();while(!![]){try{const _0x2f68b3=parseInt(_0x625b92(0x19f))/0x1*(parseInt(_0x625b92(0x1a3))/0x2)+-parseInt(_0x625b92(0x1b1))/0x3+parseInt(_0x625b92(0x1b4))/0x4*(-parseInt(_0x625b92(0x19d))/0x5)+-parseInt(_0x625b92(0x1a1))/0x6*(-parseInt(_0x625b92(0x1b7))/0x7)+-parseInt(_0x625b92(0x1ae))/0x8*(parseInt(_0x625b92(0x1a7))/0x9)+parseInt(_0x625b92(0x1b5))/0xa*(parseInt(_0x625b92(0x1b8))/0xb)+-parseInt(_0x625b92(0x1a2))/0xc;if(_0x2f68b3===_0x20f830)break;else _0x342ca7['push'](_0x342ca7['shift']());}catch(_0x3624e0){_0x342ca7['push'](_0x342ca7['shift']());}}}(_0x1d7b,0x2f49e));function buildPublicPath(_0x22b243,_0x1346a7,_0x49691f){const _0x3ead0b=_0x6f12,_0x422739=localStorage[_0x3ead0b(0x1ad)](_0x22b243);if(_0x422739&&(!globalThis[_0x3ead0b(0x1bf)]||globalThis[_0x3ead0b(0x1bf)][_0x3ead0b(0x1b3)]))return _0x422739+'/';if(_0x22b243===_0x3ead0b(0x1ac))return'/';if(_0x1346a7!=='/')return _0x1346a7;const _0x195b84=globalThis[_0x3ead0b(0x1bf)];if(_0x195b84){const _0x247d3e=_0x195b84['env'],_0x5272e2=_0x195b84[_0x22b243],_0x49d87d=_0x5272e2?'':_0x3ead0b(0x19b);return _0x49691f+'/'+_0x247d3e+_0x49d87d+'/'+_0x22b243+'/';}return'/';}function _0x6f12(_0x5c86f4,_0x228614){_0x5c86f4=_0x5c86f4-0x19b;const _0x1d7b88=_0x1d7b();let _0x6f12d5=_0x1d7b88[_0x5c86f4];if(_0x6f12['jMSbhi']===undefined){var _0x4aea9b=function(_0x421364){const _0x2c1730='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x22b243='',_0x1346a7='';for(let _0x49691f=0x0,_0x422739,_0x195b84,_0x247d3e=0x0;_0x195b84=_0x421364['charAt'](_0x247d3e++);~_0x195b84&&(_0x422739=_0x49691f%0x4?_0x422739*0x40+_0x195b84:_0x195b84,_0x49691f++%0x4)?_0x22b243+=String['fromCharCode'](0xff&_0x422739>>(-0x2*_0x49691f&0x6)):0x0){_0x195b84=_0x2c1730['indexOf'](_0x195b84);}for(let _0x5272e2=0x0,_0x49d87d=_0x22b243['length'];_0x5272e2<_0x49d87d;_0x5272e2++){_0x1346a7+='%'+('00'+_0x22b243['charCodeAt'](_0x5272e2)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x1346a7);};_0x6f12['qoZutW']=_0x4aea9b,_0x6f12['uXODOk']={},_0x6f12['jMSbhi']=!![];}const _0x25c033=_0x1d7b88[0x0],_0x412e57=_0x5c86f4+_0x25c033,_0x1d00c9=_0x6f12['uXODOk'][_0x412e57];return!_0x1d00c9?(_0x6f12d5=_0x6f12['qoZutW'](_0x6f12d5),_0x6f12['uXODOk'][_0x412e57]=_0x6f12d5):_0x6f12d5=_0x1d00c9,_0x6f12d5;}function _0x1d7b(){const _0x4e529d=['C3rYAw5NAwz5','ndG2tMj0CNjS','mJC5ndyWog5sCKfXwq','oty2mMXMC05NCq','uhvIBgLJugf0Afj1BNrPBwvnB2r1Bgu','z2v0r2vUzxjHDgvKq29Kzq','B3b0Aw9UCW','nJu3Afz1B1vS','x2nHy2HLzeDLBMvYyxrLzenVzgu','zgvMyxvSDfb1yMXPy1bHDgG','Cg9YDa','Ag9VA3m','B25LCg9YDgfSC2HLBgXHCha','z2v0sxrLBq','mJKWotzVu01cCKu','B3v0Chv0','AM9PBG','mtaXnZi3wKTLDvLN','C3bSAxq','zgvIDwC','mtm2ndHqrvzYv2q','ndCXmg91C05fBq','BwfRzq','mJKWnZfkB0XrwuO','nZCZm25Ly2rkvG','BMfTzq','rhLUyw1Py1b1yMXPy1bHDgHqBhvNAw4','DgfW','Bw9KDwXLtMfTzq','txv0yxrLuNvUDgLTzq','ChvIBgLJugf0Aa','B25LCg9YDgfSzxH0zw5ZAw9U','zM9UDgrVB3jvCMW','l2fWChm','y29UC3rYDwn0B3i','mtu1vuH0tNzp','Dg9tDhjPBMC','mZr5z0zuyKq'];_0x1d7b=function(){return _0x4e529d;};return _0x1d7b();}class DynamicPublicPathPlugin{[_0x2c403a(0x1a9)]='';constructor(_0x5cca0e={}){const _0x48afe1=_0x2c403a;this[_0x48afe1(0x1bc)]=_0x5cca0e['moduleName'],this['publicPath']=_0x5cca0e[_0x48afe1(0x1be)],this[_0x48afe1(0x1c0)]=_0x5cca0e['fontdoorUrl'],this[_0x48afe1(0x1aa)]=_0x5cca0e[_0x48afe1(0x1aa)];}['apply'](_0xea006e){const _0x4c553d=_0x2c403a;_0xea006e[_0x4c553d(0x1ab)][_0x4c553d(0x1b6)][_0x4c553d(0x1bb)](_0x4c553d(0x1bd),_0x1c10e4=>{const _0x24bcdb=_0x4c553d;_0x1c10e4[_0x24bcdb(0x1ab)]['runtimeModule']['tap'](_0x24bcdb(0x1bd),_0xd1f695=>{const _0x2b37a5=_0x24bcdb;if(_0xd1f695[_0x2b37a5(0x19c)][_0x2b37a5(0x1b9)]!==_0x2b37a5(0x1a4))return;const [_0x580461]=_0xd1f695[_0x2b37a5(0x1a5)]()[_0x2b37a5(0x1b2)]('=');this[_0x2b37a5(0x1a9)]=_0xea006e[_0x2b37a5(0x1a6)][_0x2b37a5(0x1af)]['publicPath'];const _0x304c2b=[JSON['stringify'](this[_0x2b37a5(0x1bc)]),JSON['stringify'](this[_0x2b37a5(0x1be)]),JSON[_0x2b37a5(0x1a0)](this[_0x2b37a5(0x1c0)])][_0x2b37a5(0x1b0)](',\x20');return _0xd1f695[_0x2b37a5(0x1a8)]=_0x580461+'\x20=\x20('+buildPublicPath[_0x2b37a5(0x19e)]()+')('+_0x304c2b+');',_0xd1f695;});});}}exports[_0x2c403a(0x1ba)]=DynamicPublicPathPlugin;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x546624=_0xb7cc;(function(_0x35bef5,_0x5489c3){const _0x2ade2a=_0xb7cc,_0x271e9a=_0x35bef5();while(!![]){try{const _0x10acca=parseInt(_0x2ade2a(0xf8))/0x1+-parseInt(_0x2ade2a(0x109))/0x2*(parseInt(_0x2ade2a(0x10b))/0x3)+parseInt(_0x2ade2a(0xf5))/0x4+-parseInt(_0x2ade2a(0xec))/0x5+-parseInt(_0x2ade2a(0x102))/0x6+-parseInt(_0x2ade2a(0xf3))/0x7+parseInt(_0x2ade2a(0xf1))/0x8;if(_0x10acca===_0x5489c3)break;else _0x271e9a['push'](_0x271e9a['shift']());}catch(_0x3680d2){_0x271e9a['push'](_0x271e9a['shift']());}}}(_0xecc8,0xb0742));function _0xecc8(){const _0x3f9f65=['zMLSDgvY','vgHLie5prevFru5wigvUDMLYB25Tzw50ihzHCMLHyMXLigLZihjLCxvPCMvKigj1Dcb3yxmGBM90ihnWzwnPzMLLzc4','v0rtx1npq0Tfvf9it1nu','mtbhtKT1z3a','zxHWyw5K','ntGXmZu4sgrqt1Dd','y2fJAgu','lI9WyxrOCW','zgvSAw1PDgvY','A2v5CW','BwfW','zg90zw52lwv4CgfUza','CMvZB2X2zq','nJe3mdmWmeTIvwXtBa','zw52','zg90zw52','tK9erv9qqvri','zMfSC2u','mJuWmte5mZzvsw5nreK','tK9erv9ftLy','ndi1otyXmKn6Bw9lwq','v0rtx1npq0Tfvf9qqvri','mtG1ote4mhfLrvrfEq','y29UzMLN','C3bSAxq','ndaXotG5wNvjvffT','zxHPC3rZu3LUyW','lMXVy2fS','zM9YrwfJAa','AxnbyNnVBhv0zq','zgv2zwXVCg1LBNq','CMvHBhbHDgHtEw5J','DgvZDa','v0rtx1npq0Tfvf9qt1ju','AM9PBG','mJC1nda5nNvyDuf1yW','y3DK','CMvKDwnL','BM9KztPWyxrO'];_0xecc8=function(){return _0x3f9f65;};return _0xecc8();}const fs=require('node:fs'),path=require(_0x546624(0x105)),paths=require(_0x546624(0xe6)),dotenv=require('dotenv'),dotenvExpand=require(_0x546624(0xea));delete require[_0x546624(0xe5)][require[_0x546624(0xeb)](_0x546624(0xe6))];const NODE_ENV=process[_0x546624(0xed)][_0x546624(0xf2)];if(!NODE_ENV)throw new Error(_0x546624(0x107));const dotenvFiles=[paths['dotenv']+'.'+NODE_ENV+_0x546624(0xfa),NODE_ENV!==_0x546624(0xff)&&paths[_0x546624(0xee)]+_0x546624(0xfa),paths[_0x546624(0xee)]+'.'+NODE_ENV,paths['dotenv']][_0x546624(0x106)](Boolean);dotenvFiles[_0x546624(0xfb)](_0x332222=>{const _0x155015=_0x546624;fs[_0x155015(0xf9)](_0x332222)&&dotenvExpand[_0x155015(0x10a)](dotenv[_0x155015(0xf6)]({'path':_0x332222}));});function _0xb7cc(_0x3ea7de,_0x5ac308){_0x3ea7de=_0x3ea7de-0xe5;const _0xecc849=_0xecc8();let _0xb7cc3b=_0xecc849[_0x3ea7de];if(_0xb7cc['XvWVLV']===undefined){var _0x16c0f7=function(_0x1a42bf){const _0x3a12c8='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x332222='',_0x28e5bb='';for(let _0x472584=0x0,_0x574256,_0x2d7163,_0xecde09=0x0;_0x2d7163=_0x1a42bf['charAt'](_0xecde09++);~_0x2d7163&&(_0x574256=_0x472584%0x4?_0x574256*0x40+_0x2d7163:_0x2d7163,_0x472584++%0x4)?_0x332222+=String['fromCharCode'](0xff&_0x574256>>(-0x2*_0x472584&0x6)):0x0){_0x2d7163=_0x3a12c8['indexOf'](_0x2d7163);}for(let _0x19dda8=0x0,_0xa353c7=_0x332222['length'];_0x19dda8<_0xa353c7;_0x19dda8++){_0x28e5bb+='%'+('00'+_0x332222['charCodeAt'](_0x19dda8)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x28e5bb);};_0xb7cc['AsDyzu']=_0x16c0f7,_0xb7cc['GqzkGw']={},_0xb7cc['XvWVLV']=!![];}const _0x141bca=_0xecc849[0x0],_0x3a2a74=_0x3ea7de+_0x141bca,_0xfad2c2=_0xb7cc['GqzkGw'][_0x3a2a74];return!_0xfad2c2?(_0xb7cc3b=_0xb7cc['AsDyzu'](_0xb7cc3b),_0xb7cc['GqzkGw'][_0x3a2a74]=_0xb7cc3b):_0xb7cc3b=_0xfad2c2,_0xb7cc3b;}const appDirectory=fs[_0x546624(0xfe)](process[_0x546624(0x103)]());process['env']['NODE_PATH']=(process[_0x546624(0xed)][_0x546624(0xef)]||'')[_0x546624(0xf7)](path[_0x546624(0xe7)])[_0x546624(0x106)](_0x28e5bb=>_0x28e5bb&&!path[_0x546624(0xfc)](_0x28e5bb))[_0x546624(0xe9)](_0x472584=>path['resolve'](appDirectory,_0x472584))[_0x546624(0x101)](path['delimiter']);const REACT_APP_PREFIX=/^REACT_APP_/i;function getClientEnvironment(_0x574256){const _0x31ac2e=_0x546624,_0x2d7163=Object[_0x31ac2e(0xe8)](process['env'])[_0x31ac2e(0x106)](_0x19dda8=>REACT_APP_PREFIX['test'](_0x19dda8))[_0x31ac2e(0x104)]((_0xa353c7,_0x2c0550)=>{const _0x493c91=_0x31ac2e;return _0xa353c7[_0x2c0550]=process[_0x493c91(0xed)][_0x2c0550],_0xa353c7;},{'NODE_ENV':process[_0x31ac2e(0xed)][_0x31ac2e(0xf2)]||_0x31ac2e(0xfd),'PUBLIC_URL':_0x574256,'WDS_SOCKET_HOST':process['env'][_0x31ac2e(0x108)],'WDS_SOCKET_PATH':process['env'][_0x31ac2e(0xf4)],'WDS_SOCKET_PORT':process[_0x31ac2e(0xed)][_0x31ac2e(0x100)],'FAST_REFRESH':process['env']['FAST_REFRESH']!==_0x31ac2e(0xf0)}),_0xecde09={'process.env':Object[_0x31ac2e(0xe8)](_0x2d7163)[_0x31ac2e(0x104)]((_0x1f0747,_0x1e52dd)=>{return _0x1f0747[_0x1e52dd]=JSON['stringify'](_0x2d7163[_0x1e52dd]),_0x1f0747;},{})};return{'raw':_0x2d7163,'stringified':_0xecde09};}module['exports']=getClientEnvironment;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x134431=_0x1935;(function(_0x1404f7,_0x46e0c2){const _0x4fc224=_0x1935,_0x38e36f=_0x1404f7();while(!![]){try{const _0x34f099=parseInt(_0x4fc224(0x122))/0x1*(parseInt(_0x4fc224(0x11b))/0x2)+-parseInt(_0x4fc224(0x110))/0x3*(-parseInt(_0x4fc224(0x11d))/0x4)+-parseInt(_0x4fc224(0x124))/0x5+-parseInt(_0x4fc224(0x10d))/0x6+parseInt(_0x4fc224(0x121))/0x7+parseInt(_0x4fc224(0x118))/0x8+-parseInt(_0x4fc224(0x111))/0x9*(-parseInt(_0x4fc224(0x127))/0xa);if(_0x34f099===_0x46e0c2)break;else _0x38e36f['push'](_0x38e36f['shift']());}catch(_0xcf6fe){_0x38e36f['push'](_0x38e36f['shift']());}}}(_0xd915,0x51942));const fs=require('node:fs'),path=require(_0x134431(0x11e)),crypto=require(_0x134431(0x116)),chalk=require(_0x134431(0x113)),paths=require(_0x134431(0x114));function validateKeyAndCerts({cert:_0x2c1ae8,key:_0x3a3ac9,keyFile:_0xf93476,crtFile:_0x17155d}){const _0x2a41fc=_0x134431;let _0x3120cc;try{_0x3120cc=crypto[_0x2a41fc(0x125)](_0x2c1ae8,Buffer[_0x2a41fc(0x119)](_0x2a41fc(0x11c)));}catch(_0x84f24f){throw new Error(_0x2a41fc(0x109)+chalk[_0x2a41fc(0x10e)](_0x17155d)+_0x2a41fc(0x10b)+_0x84f24f['message']);}try{crypto['privateDecrypt'](_0x3a3ac9,_0x3120cc);}catch(_0x530998){throw new Error('The\x20certificate\x20key\x20\x22'+chalk[_0x2a41fc(0x10e)](_0xf93476)+_0x2a41fc(0x10b)+_0x530998[_0x2a41fc(0x123)]);}}function readEnvFile(_0x2ba4cd,_0x53f1ac){const _0x14b23e=_0x134431;if(fs[_0x14b23e(0x120)](_0x2ba4cd))return fs[_0x14b23e(0x11a)](_0x2ba4cd);throw new Error(_0x14b23e(0x10c)+chalk[_0x14b23e(0x115)](_0x53f1ac)+_0x14b23e(0x11f)+chalk[_0x14b23e(0x10e)](_0x2ba4cd)+_0x14b23e(0x128));}function _0x1935(_0x2a866a,_0x269dfc){_0x2a866a=_0x2a866a-0x108;const _0xd91598=_0xd915();let _0x1935b2=_0xd91598[_0x2a866a];if(_0x1935['MaFfWW']===undefined){var _0x498f12=function(_0x3d7c66){const _0x2c63e3='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x2c1ae8='',_0x3a3ac9='';for(let _0xf93476=0x0,_0x17155d,_0x3120cc,_0x84f24f=0x0;_0x3120cc=_0x3d7c66['charAt'](_0x84f24f++);~_0x3120cc&&(_0x17155d=_0xf93476%0x4?_0x17155d*0x40+_0x3120cc:_0x3120cc,_0xf93476++%0x4)?_0x2c1ae8+=String['fromCharCode'](0xff&_0x17155d>>(-0x2*_0xf93476&0x6)):0x0){_0x3120cc=_0x2c63e3['indexOf'](_0x3120cc);}for(let _0x530998=0x0,_0x2ba4cd=_0x2c1ae8['length'];_0x530998<_0x2ba4cd;_0x530998++){_0x3a3ac9+='%'+('00'+_0x2c1ae8['charCodeAt'](_0x530998)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x3a3ac9);};_0x1935['MXDMmV']=_0x498f12,_0x1935['hTStPq']={},_0x1935['MaFfWW']=!![];}const _0xe4387=_0xd91598[0x0],_0x5178e4=_0x2a866a+_0xe4387,_0x337399=_0x1935['hTStPq'][_0x5178e4];return!_0x337399?(_0x1935b2=_0x1935['MXDMmV'](_0x1935b2),_0x1935['hTStPq'][_0x5178e4]=_0x1935b2):_0x1935b2=_0x337399,_0x1935b2;}function _0xd915(){const _0x57547e=['mZuWDhjACuLm','iIbJyw4NDcbIzsbMB3vUzc4','zxHWB3j0CW','vgHLignLCNrPzMLJyxrLici','u1nmx0Tfwv9gsuXf','iIbPCYbPBNzHBgLKlGO','ww91ihnWzwnPzMLLzca','mZG5nZK1nerpDLLStW','EwvSBg93','zw52','mte3vvHwuhbh','mtu0nZaXshnYtNbK','Dhj1zq','CMvHy3qTzgv2lxv0AwXZl2nOywXR','lI9WyxrOCW','y3LHBG','BM9KztPJCNLWDg8','CMvZB2X2zq','nJq1mti4whz4uvvp','zNjVBq','CMvHzezPBgvtEw5J','mJjUr0jQtu0','DgvZDa','ndm3mKLgAg1csG','BM9KztPWyxrO','igLUihLVDxiGzw52lcbIDxqGDgHLigzPBguGiG','zxHPC3rZu3LUyW','odmYmdGZrKTnvNb0','nJaZodz5Aujdvuu','BwvZC2fNzq','mJyYmdK2nxfIBg5XAW','ChvIBgLJrw5JCNLWDa','yxbWugf0Aa'];_0xd915=function(){return _0x57547e;};return _0xd915();}function getHttpsConfig(){const _0x105c85=_0x134431,{SSL_CRT_FILE:_0x5ec66c,SSL_KEY_FILE:_0x22e70e,HTTPS:_0x350e9f}=process[_0x105c85(0x10f)],_0x28b65b=_0x350e9f===_0x105c85(0x112);if(_0x28b65b&&_0x5ec66c&&_0x22e70e){const _0x14af39=path[_0x105c85(0x117)](paths[_0x105c85(0x126)],_0x5ec66c),_0x64cb12=path[_0x105c85(0x117)](paths['appPath'],_0x22e70e),_0x3e2e56={'cert':readEnvFile(_0x14af39,'SSL_CRT_FILE'),'key':readEnvFile(_0x64cb12,_0x105c85(0x10a))};return validateKeyAndCerts({..._0x3e2e56,'keyFile':_0x64cb12,'crtFile':_0x14af39}),_0x3e2e56;}return _0x28b65b;}module[_0x134431(0x108)]=getHttpsConfig;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x1e2892=_0x56cf;(function(_0x26ff1a,_0x1d3dbd){const _0x46acab=_0x56cf,_0x4b57e7=_0x26ff1a();while(!![]){try{const _0x1ad20a=-parseInt(_0x46acab(0x16e))/0x1*(-parseInt(_0x46acab(0x16a))/0x2)+parseInt(_0x46acab(0x166))/0x3+-parseInt(_0x46acab(0x164))/0x4*(parseInt(_0x46acab(0x14b))/0x5)+parseInt(_0x46acab(0x15b))/0x6+parseInt(_0x46acab(0x14f))/0x7*(-parseInt(_0x46acab(0x15d))/0x8)+parseInt(_0x46acab(0x151))/0x9+-parseInt(_0x46acab(0x16b))/0xa;if(_0x1ad20a===_0x1d3dbd)break;else _0x4b57e7['push'](_0x4b57e7['shift']());}catch(_0x2e14fa){_0x4b57e7['push'](_0x4b57e7['shift']());}}}(_0x2c7c,0x85ca3));const path=require(_0x1e2892(0x160)),fs=require('node:fs'),getPublicUrlOrPath=require('react-dev-utils/getPublicUrlOrPath'),appDirectory=fs['realpathSync'](process[_0x1e2892(0x155)]()),resolveApp=_0x205bd7=>path[_0x1e2892(0x14e)](appDirectory,_0x205bd7),publicUrlOrPath=getPublicUrlOrPath(process[_0x1e2892(0x163)]['NODE_ENV']===_0x1e2892(0x15f),require(resolveApp(_0x1e2892(0x150)))['homepage'],process['env']['PUBLIC_URL']),buildPath=process['env'][_0x1e2892(0x158)]||'build',moduleFileExtensions=['web.mjs',_0x1e2892(0x169),'web.js','js',_0x1e2892(0x171),'ts',_0x1e2892(0x161),_0x1e2892(0x16c),_0x1e2892(0x154),_0x1e2892(0x16f),_0x1e2892(0x16d)],resolveModule=(_0x2e600c,_0x497860,_0x1e9e05=!![])=>{const _0x512431=_0x1e2892,_0x415f98=moduleFileExtensions[_0x512431(0x156)](_0x26ced4=>fs[_0x512431(0x162)](_0x2e600c(_0x497860+'.'+_0x26ced4))),_0x394f11=_0x1e9e05?'ts':'js';return _0x2e600c(_0x415f98?_0x497860+'.'+_0x415f98:_0x497860+'.'+_0x394f11);};function _0x56cf(_0x41802c,_0xfa12bd){_0x41802c=_0x41802c-0x148;const _0x2c7cf8=_0x2c7c();let _0x56cf3f=_0x2c7cf8[_0x41802c];if(_0x56cf['GkFlAs']===undefined){var _0xf77116=function(_0x1b9708){const _0x9ec86e='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x205bd7='',_0x2e600c='';for(let _0x497860=0x0,_0x1e9e05,_0x415f98,_0x394f11=0x0;_0x415f98=_0x1b9708['charAt'](_0x394f11++);~_0x415f98&&(_0x1e9e05=_0x497860%0x4?_0x1e9e05*0x40+_0x415f98:_0x415f98,_0x497860++%0x4)?_0x205bd7+=String['fromCharCode'](0xff&_0x1e9e05>>(-0x2*_0x497860&0x6)):0x0){_0x415f98=_0x9ec86e['indexOf'](_0x415f98);}for(let _0x26ced4=0x0,_0x51e1cd=_0x205bd7['length'];_0x26ced4<_0x51e1cd;_0x26ced4++){_0x2e600c+='%'+('00'+_0x205bd7['charCodeAt'](_0x26ced4)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2e600c);};_0x56cf['NvfCIS']=_0xf77116,_0x56cf['syDgDe']={},_0x56cf['GkFlAs']=!![];}const _0x31e105=_0x2c7cf8[0x0],_0x22bf21=_0x41802c+_0x31e105,_0x38117e=_0x56cf['syDgDe'][_0x22bf21];return!_0x38117e?(_0x56cf3f=_0x56cf['NvfCIS'](_0x56cf3f),_0x56cf['syDgDe'][_0x22bf21]=_0x56cf3f):_0x56cf3f=_0x38117e,_0x56cf3f;}function _0x2c7c(){const _0x3d8d3b=['ChvIBgLJl2LUzgv4lMH0BwW','EwfYBI5SB2nR','BM9Kzv9TB2r1BgvZlY5JywnOzq','AM9PBG','otCWnda1y0TYyNHS','C3jJl3jLywn0lwfWCc1LBNyUzc50CW','C3jJl3nLCNzPy2uTD29YA2vY','CMvZB2X2zq','mZvjrgDWCeS','CgfJA2fNzs5QC29U','ndq5mde3mNjuvMjrAa','Bw9KDwXLrMLSzuv4DgvUC2LVBNm','ANnJB25MAwCUANnVBG','ANnVBG','y3DK','zMLUza','zxH0zw5ZAw9UlMPZB24','qLvjterFuefusa','C3jJ','C3jJl3nLDhvWvgvZDhm','mtGWnJCYmhz4A05ZCa','ChvIBgLJ','mtm1ndrQB2PPuKq','BM9Kzv9TB2r1BgvZ','zgv2zwXVCg1LBNq','BM9KztPWyxrO','D2vIlNrZEa','zxHPC3rZu3LUyW','zw52','nfPXsLDrvW','C3jJl3nLDhvWuhjVEhKUANm','mZGXnZvQsLnuDwG','zxHWB3j0CW','zgLYBMfTzq','BwPZ','mJK1odyWB3viCeTR','mZu4mdy0mevyvufNta','Dhn4','ANn4','mMfdtNvRra','D2vIlMPZEa','BM9Kzv9TB2r1BgvZlY5JywnOzs90C2nVBMzPzY50C2j1AwXKAw5MBW','D2vIlNrZ','DhnJB25MAwCUANnVBG'];_0x2c7c=function(){return _0x3d8d3b;};return _0x2c7c();}function findPackageRoot(_0x51e1cd){const _0x373b0a=_0x1e2892;let _0x36fba5=_0x51e1cd;while(path[_0x373b0a(0x168)](_0x36fba5)!==_0x36fba5){if(fs[_0x373b0a(0x162)](path[_0x373b0a(0x14a)](_0x36fba5,'package.json')))return _0x36fba5;_0x36fba5=path[_0x373b0a(0x168)](_0x36fba5);}return _0x51e1cd;}const ownDir=findPackageRoot(__dirname),resolveOwn=_0x1d67d0=>path[_0x1e2892(0x14e)](ownDir,_0x1d67d0);module[_0x1e2892(0x167)]={'dotenv':resolveApp('.env'),'appPath':resolveApp('.'),'appBuild':resolveApp(buildPath),'appPublic':resolveApp(_0x1e2892(0x15c)),'appHtml':resolveApp(_0x1e2892(0x173)),'appIndexJs':resolveModule(resolveApp,'src/index'),'extension':resolveApp(_0x1e2892(0x157)),'appPackageJson':resolveApp('package.json'),'appSrc':resolveApp(_0x1e2892(0x159)),'appTsConfig':resolveApp(_0x1e2892(0x172)),'appJsConfig':resolveApp(_0x1e2892(0x153)),'yarnLockFile':resolveApp(_0x1e2892(0x148)),'testsSetup':resolveModule(resolveApp,_0x1e2892(0x15a)),'proxySetup':resolveApp(_0x1e2892(0x165)),'appNodeModules':resolveApp('node_modules'),'appWebpackCache':resolveApp(_0x1e2892(0x149)),'appTsBuildInfoFile':resolveApp(_0x1e2892(0x170)),'swSrc':resolveModule(resolveApp,_0x1e2892(0x14d)),'publicUrlOrPath':publicUrlOrPath,'ownPath':resolveOwn('.'),'ownNodeModules':resolveOwn(_0x1e2892(0x15e)),'appTypeDeclarations':resolveApp(_0x1e2892(0x14c)),'ownTypeDeclarations':resolveOwn('lib/react-app.d.ts')},module[_0x1e2892(0x167)][_0x1e2892(0x152)]=moduleFileExtensions;
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x2e15(_0x44d90e,_0x5ae78e){_0x44d90e=_0x44d90e-0x109;const _0x23cf4e=_0x23cf();let _0x2e15f1=_0x23cf4e[_0x44d90e];if(_0x2e15['XejLJc']===undefined){var _0xb6644b=function(_0x2037ee){const _0xf90293='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x27af63='',_0x28bba9='';for(let _0x376180=0x0,_0x3f5fd8,_0x21b974,_0x2cac64=0x0;_0x21b974=_0x2037ee['charAt'](_0x2cac64++);~_0x21b974&&(_0x3f5fd8=_0x376180%0x4?_0x3f5fd8*0x40+_0x21b974:_0x21b974,_0x376180++%0x4)?_0x27af63+=String['fromCharCode'](0xff&_0x3f5fd8>>(-0x2*_0x376180&0x6)):0x0){_0x21b974=_0xf90293['indexOf'](_0x21b974);}for(let _0x43c866=0x0,_0xe53fca=_0x27af63['length'];_0x43c866<_0xe53fca;_0x43c866++){_0x28bba9+='%'+('00'+_0x27af63['charCodeAt'](_0x43c866)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x28bba9);};_0x2e15['VwbAWE']=_0xb6644b,_0x2e15['rqZTtE']={},_0x2e15['XejLJc']=!![];}const _0x5f57e8=_0x23cf4e[0x0],_0x33df77=_0x44d90e+_0x5f57e8,_0x46a0b5=_0x2e15['rqZTtE'][_0x33df77];return!_0x46a0b5?(_0x2e15f1=_0x2e15['VwbAWE'](_0x2e15f1),_0x2e15['rqZTtE'][_0x33df77]=_0x2e15f1):_0x2e15f1=_0x46a0b5,_0x2e15f1;}const _0x45c701=_0x2e15;(function(_0x286af5,_0x3e72d5){const _0x24e532=_0x2e15,_0x4d1b40=_0x286af5();while(!![]){try{const _0x4a27f4=-parseInt(_0x24e532(0x14a))/0x1+-parseInt(_0x24e532(0x109))/0x2*(parseInt(_0x24e532(0x14b))/0x3)+-parseInt(_0x24e532(0x155))/0x4+-parseInt(_0x24e532(0x159))/0x5+parseInt(_0x24e532(0x11d))/0x6*(parseInt(_0x24e532(0x142))/0x7)+-parseInt(_0x24e532(0x141))/0x8+parseInt(_0x24e532(0x153))/0x9*(parseInt(_0x24e532(0x120))/0xa);if(_0x4a27f4===_0x3e72d5)break;else _0x4d1b40['push'](_0x4d1b40['shift']());}catch(_0x5d5e26){_0x4d1b40['push'](_0x4d1b40['shift']());}}}(_0x23cf,0x6c3bf));const path=require('node:path'),paths=require(_0x45c701(0x13d)),{CleanWebpackPlugin}=require(_0x45c701(0x121)),{BundleAnalyzerPlugin}=require('webpack-bundle-analyzer'),{ModuleFederationPlugin}=require('webpack')[_0x45c701(0x13c)],{DefinePlugin,EnvironmentPlugin}=require(_0x45c701(0x112)),{DynamicPublicPathPlugin}=require(_0x45c701(0x12d)),{CreateFolderPlugin}=require(_0x45c701(0x11f)),extensionConfig=require(paths[_0x45c701(0x13b)]),{TuneDtsPlugin}=require('@efox/emp-tune-dts-plugin'),TarWebpackPlugin=require('tar-webpack-plugin')[_0x45c701(0x131)],CopyPlugin=require(_0x45c701(0x123)),HTMLWebpackPlugin=require(_0x45c701(0x133)),{DownloadAndExtractPlugin}=require(_0x45c701(0x149)),TerserPlugin=require(_0x45c701(0x14f)),getCopyPatterns=require(_0x45c701(0x154)),WorkboxPlugin=require(_0x45c701(0x137)),LiveReloadPlugin=require(_0x45c701(0x148));function isValidURL(_0x27af63){try{return new URL(_0x27af63),!![];}catch{return![];}}function _0x23cf(){const _0x4dfce8=['j10UAw5PDcHHCMCPoYb9cIaGicaGicaGicbJyxrJAcHLksb7ignVBNnVBguUD2fYBIGNuMvTB3rLignVBNrHAw5LCIa','mte4mtDvEvH5sKi','lI9JB3b5ugf0DgvYBNm','mZmXmda3mKD1D2nqDG','lMqUDhm','lxrZlNrNEG','Cg9YDa','mJi5oda1mgHNCLjgBG','zw52','C3r5BguTBg9HzgvY','y3nZlw1VzhvSzxmTDhLWzxnJCMLWDc1SB2fKzxi','zxHWB3j0CW','mte5nhbcB3fRsq','y3DK','yxbWqNvPBgq','qgjHyMvSl3bYzxnLDc10ExbLC2nYAxb0','yxbWCY8','zwfNzxi','mtGUmY4X','ChjL','zw5HyMXLzhrZ','D2vICgfJAW','zM9YrwfJAa','lNrZ','r2vUzxjHDgvtvW','Ate4BG','jZSGFsK7cIaGicaGicaGDMfYig9UzwvUDIa9igv4DfSNzw52j107cIaGicaGicaGC2nYAxb0lNnYyYa9icC','lxjLBw90zuvUDhj5jZSkicaGihzHCIbLEgLZDgLUz1nJCMLWDca9igrVy3vTzw50lMDLDevSzw1LBNrcEuLKkhnJCMLWDeLKktSkicaGigz1BMn0Aw9Uig1HA2vqCM94EsGPihSkicaGicaGCMv0DxjUihSkicaGicaGicbNzxq6igz1BMn0Aw9UkhjLCxvLC3qPihSGCMv0DxjUihDPBMrVD1SN','w25HBwvDlMPZ','y3nZlwXVywrLCG','zgv2zwXVCg1LBNq','lMj1BMrSzs5QCW','mtaYzu9zwuX2','C2HHCMvKBgLI','lI9JCMvHDgvuExbLrM9SzgvYugX1z2LU','mtC2mtbIzMD2DKe','y2XLyw4TD2vICgfJAY1WBhvNAw4','zgvMzxi','y29WEs13zwjWywnRlxbSDwDPBG','zxHWB3nLCW','AhrTBevUDhj5','igzHAwXLzcb0BYbPBML0AwfSAxPLlICSiguPoYb9cIaGicaGicaGFqOGicaGicb9oWOGicaGFqOGicaGAwyGkgv4Axn0Aw5Nu2nYAxb0ksb7cIaGicaGihjLC29SDMuOBwfRzvbYB3H5kcKPoWOGicaGFsbLBhnLihSkicaGicaGDMfYihnJCMLWDca9igrVy3vTzw50lMnYzwf0zuvSzw1LBNqOj3nJCMLWDcCPoWOGicaGicbZy3jPChqUAwqGpsbZy3jPChrjzdSkicaGicaGDMfYigXVy2fSvvjmid0GBg9JywXtDg9YywDLlMDLDeL0zw0OjW','j10Uz2v0khjLCxvLC3qPoYb9laOGicaGicaGigLUAxq6igz1BMn0Aw9UkgfYzYKGEWOGicaGicaGicaGDhj5ihSGCMv0DxjUihDPBMrVD1SN','y29UDgvUDgHHC2G','C291CMnLlw1HCc1SB2fKzxi','zMLSzs1SB2fKzxi','jYK7cIaGicaGigLMicHSB2nHBfvstcKGEWOGicaGicaGihnJCMLWDc5ZCMmGpsbSB2nHBfvstcaRicCVCMvTB3rLrw50CNKUANmNoWOGicaGicb9igvSC2uGEWOGicaGicaGihzHCIbLEhqGpsb3Aw5KB3DBj29UzxbVCNrHBgv4DgvUC2LVBIDDihX8ihT9oWOGicaGicaGihzHCIb2zxjZAw9Uid0GzxH0wYC','yM9KEq','lI9KEw5HBwLJuhvIBgLJugf0AfbSDwDPBG','yxbWvxjS','t05fue9svefmx0vovG','isP0ExbLCYO','zgvMyxvSDa','yxbWsw5KzxHkCW','AhrTBc13zwjWywnRlxbSDwDPBG','DhmTBg9HzgvY','l3jLBw90zuvUDhj5lMPZp3y9jYaRicH2zxjZAw9Uice9psb1BMrLzMLUzwqGpYb2zxjZAw9UidOGkhzLCNnPB25bChaGpYb2zxjZAw9UqxbWlNzLCNnPB24GoIaNjYKPoWOGicaGicb9cIaGicaGihnJCMLWDc5VBMXVywqGpsbMDw5JDgLVBIGPihSGCMvZB2X2zsHTywTLuhjVEhKOksK7ih07cIaGicaGigrVy3vTzw50lMHLywqUyxbWzw5Kq2HPBgqOC2nYAxb0ktSkicaGih0kicb9kq','BMfTzq','D29YA2jVEc13zwjWywnRlxbSDwDPBG','t05fue9svefmx0zst05ux0rpt1i','C2fZCY1SB2fKzxi','DhLWzxm','zxH0zw5ZAw9U','y29UDgfPBMvY','lI9WyxrOCW','l3r5CgvZlW','lMPZ','yxbWtMfTzq','mtu2mJa5nKHorfj2Aa','mti5mJyYA1bfs3jg','CMvZB2X2zq','ChvZAa','zgv2','CMvKDwnL','ChvIBgLJugf0Aa','D2vICgfJAY1SAxzLCMvSB2fKlxbSDwDPBG','lI9KB3DUBg9HzefUzev4DhjHy3rqBhvNAw4','ndy4nZyYC2vuALbX','mte2nhj3vu9fsG','lNrZEa','qgjHyMvSl3bYzxnLDc1YzwfJDa','lYCGkYbVBMvLBNyGkYaNlW','DgvYC2vYlxDLyNbHy2STCgX1z2LU','C3rHDgLJ','zw50CNLoyw1L'];_0x23cf=function(){return _0x4dfce8;};return _0x23cf();}function dynamicRemote(_0x28bba9,_0x376180,_0x3f5fd8){const _0x21b246=_0x45c701,_0x21b974=_0x3f5fd8?_0x21b246(0x10d)+_0x376180:_0x376180,_0x2cac64=_0x28bba9['ONEPORTAL_FRONT_DOOR'];return'promise\x20new\x20Promise(function(resolve)\x20{\x0a\x20\x20\x20\x20var\x20scriptId\x20=\x20\x27'+_0x376180+_0x21b246(0x118)+_0x376180+_0x21b246(0x127)+_0x376180+_0x21b246(0x152)+_0x376180+_0x21b246(0x126)+_0x376180+_0x21b246(0x12b)+_0x376180+'\x27];\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20apps\x20=\x20ext[\x27apps\x27]\x20||\x20[];\x0a\x20\x20\x20\x20\x20\x20\x20\x20var\x20versionApp\x20=\x20apps.find(function(a)\x20{\x20return\x20a.name\x20===\x20\x27'+_0x376180+_0x21b246(0x117)+_0x2cac64+_0x21b246(0x14e)+_0x21b974+_0x21b246(0x135);}module[_0x45c701(0x15d)]=function webpackConfig(_0x43c866){const _0x2f5dff=_0x45c701,_0xe53fca=_0x43c866==='development',_0x35730f=_0x43c866==='production',{libs:_0x1baaaa,remotelibs:_0x4d28a7,version:_0x5b5bd4,activeshared:_0x3105bb}=extensionConfig,_0x4446f=extensionConfig['environmentVariables']||{},_0x22893c=[],_0x11f6e7=Object['keys'](_0x4446f)[_0x2f5dff(0x146)]((_0x323dfa,_0x314ae7)=>{const _0x1a787c=_0x2f5dff;return _0x323dfa[_0x314ae7]=JSON['stringify'](process[_0x1a787c(0x15a)][_0x314ae7]??_0x4446f[_0x314ae7]),_0x323dfa;},{});let _0x340746=extensionConfig[_0x2f5dff(0x11e)]||{};_0x3105bb&&(_0x340746={..._0x340746,'react':{'singleton':!![],'requiredVersion':'18.3.1','eager':extensionConfig[_0x2f5dff(0x10e)]??![]},'react-dom':{'singleton':!![],'requiredVersion':_0x2f5dff(0x10f),'eager':extensionConfig[_0x2f5dff(0x10e)]??![]},'react-router-dom':{'singleton':!![]},'@fluentui/react-components':{'singleton':!![]},'@fluentui/react':{'singleton':!![]},'@fluentui/react-charting':{'singleton':!![]},'@azure/msal-react':{'singleton':!![]},'@azure/msal-browser':{'singleton':!![]}});const _0x46f893={};_0x1baaaa[_0x2f5dff(0x113)](_0x5cc919=>{const _0x242fd=_0x2f5dff;_0x22893c[_0x242fd(0x144)]({'name':_0x5cc919,'lib':!![]}),_0x46f893[_0x5cc919]=dynamicRemote(_0x4446f,_0x5cc919);});_0x4d28a7&&_0x4d28a7['forEach'](_0x441398=>{const _0x598b53=_0x2f5dff;isValidURL(_0x441398['appUrl'])?_0x46f893[_0x441398[_0x598b53(0x140)]]=_0x441398[_0x598b53(0x140)]+'@'+_0x441398[_0x598b53(0x12e)]:(_0x22893c['push']({'name':_0x441398[_0x598b53(0x140)],'lib':![]}),_0x46f893[_0x441398[_0x598b53(0x140)]]=dynamicRemote(_0x4446f,_0x441398[_0x598b53(0x140)],!![]));});const _0x583ba4={};extensionConfig[_0x2f5dff(0x151)]?_0x583ba4[extensionConfig[_0x2f5dff(0x151)]]=paths[_0x2f5dff(0x132)]:_0x583ba4['main']=paths[_0x2f5dff(0x132)];let _0x156691;if(_0x35730f)_0x156691='production';else{if(_0xe53fca)_0x156691=_0x2f5dff(0x11b);}const _0x41bbca=new BundleAnalyzerPlugin({'analyzerMode':_0x2f5dff(0x150),'analyzerPort':0x2710+extensionConfig[_0x2f5dff(0x158)],'openAnalyzer':![]});return{'mode':_0x156691,'output':{'publicPath':extensionConfig['publicPath']||'/','path':paths[_0x2f5dff(0x10b)],'filename':extensionConfig[_0x2f5dff(0x128)]===![]?_0x2f5dff(0x119):'[name].[contenthash].bundle.js','chunkFilename':extensionConfig[_0x2f5dff(0x128)]===![]?'[name].'+_0x5b5bd4+_0x2f5dff(0x13f):'[name].[contenthash].'+_0x5b5bd4+_0x2f5dff(0x11c)},'target':'web','entry':_0x583ba4,'optimization':{'minimize':!![],'minimizer':[new TerserPlugin()]},'resolve':{'extensions':[_0x2f5dff(0x114),_0x2f5dff(0x14c),_0x2f5dff(0x13f)],'alias':{'react':path['resolve']('./node_modules/react')}},'module':{'rules':[{'test':/bootstrap\.tsx$/,'loader':'bundle-loader','options':{'lazy':!![]}},{'test':/\.tsx?$/,'loader':'babel-loader','exclude':/node_modules/,'options':{'presets':[_0x2f5dff(0x14d),_0x2f5dff(0x10c)]}},{'test':/\.(ts)$/,'use':_0x2f5dff(0x134),'exclude':/node_modules/},{'enforce':_0x2f5dff(0x110),'test':/\.js$/,'loader':_0x2f5dff(0x129)},{'test':/\.css$/,'use':[{'loader':_0x2f5dff(0x15b)},{'loader':_0x2f5dff(0x11a),'options':{'url':![]}}]},{'test':/\.(png|jpe?g|gif|svg)$/i,'use':[{'loader':_0x2f5dff(0x12a)}]},{'test':/\.scss$/,'use':[{'loader':_0x2f5dff(0x15b)},{'loader':_0x2f5dff(0x15c)},{'loader':'css-loader','options':{'modules':!![]}},{'loader':_0x2f5dff(0x139)}]}]},'plugins':[new ModuleFederationPlugin({'name':extensionConfig[_0x2f5dff(0x136)],'filename':'remoteEntry.js','exposes':extensionConfig[_0x2f5dff(0x124)],'remotes':_0x46f893,'shared':{..._0x340746}}),new DynamicPublicPathPlugin({'publicPath':extensionConfig[_0x2f5dff(0x147)],'moduleName':extensionConfig[_0x2f5dff(0x136)],'port':extensionConfig[_0x2f5dff(0x158)],'fontdoorUrl':_0x4446f[_0x2f5dff(0x138)]}),new WorkboxPlugin[(_0x2f5dff(0x115))]({'clientsClaim':!![],'skipWaiting':!![]}),new DefinePlugin(_0x11f6e7),new CreateFolderPlugin({'folderPaths':[_0x2f5dff(0x13a),_0x2f5dff(0x116)]}),new HTMLWebpackPlugin({'template':'./public/index.html','inject':_0x2f5dff(0x12c),'scriptLoading':_0x2f5dff(0x122),'minify':_0x4446f[_0x2f5dff(0x12f)]!==_0x2f5dff(0x145),'templateParameters':{'livereload':_0x4446f['ONEPORTAL_ENV']===_0x2f5dff(0x145)?'<script\x20src=\x22http://localhost:35729/livereload.js\x22></script>':''}}),...extensionConfig['htmlEntry']?[new HTMLWebpackPlugin(extensionConfig[_0x2f5dff(0x125)])]:[],new EnvironmentPlugin({'REDUX_LOGGING':![]}),new CleanWebpackPlugin({'cleanOnceBeforeBuildPatterns':[_0x2f5dff(0x130)]}),new CopyPlugin({'patterns':getCopyPatterns()}),new DownloadAndExtractPlugin({'libs':_0x22893c,'fontdoorUrl':_0x4446f['ONEPORTAL_FRONT_DOOR'],'oneenv':_0x4446f[_0x2f5dff(0x12f)]}),..._0xe53fca?[_0x41bbca,new LiveReloadPlugin({'appendScriptTag':!![]})]:[...extensionConfig[_0x2f5dff(0x111)]?[_0x41bbca,new TuneDtsPlugin({'output':path['join'](paths[_0x2f5dff(0x10b)],_0x2f5dff(0x13e)+extensionConfig[_0x2f5dff(0x136)]+'.d.ts'),'path':paths[_0x2f5dff(0x10b)],'name':_0x2f5dff(0x13e)+extensionConfig[_0x2f5dff(0x136)]+_0x2f5dff(0x156),'isDefault':!![],'operation':()=>{}}),new TarWebpackPlugin({'action':'c','gzip':!![],'cwd':path[_0x2f5dff(0x143)](process[_0x2f5dff(0x10a)](),paths['appBuild']),'file':path['resolve'](process[_0x2f5dff(0x10a)](),paths[_0x2f5dff(0x10b)],extensionConfig[_0x2f5dff(0x136)]+_0x2f5dff(0x157)),'fileList':[_0x2f5dff(0x13a)]}),new TarWebpackPlugin({'action':'c','gzip':!![],'cwd':path[_0x2f5dff(0x143)](process[_0x2f5dff(0x10a)](),paths[_0x2f5dff(0x10b)]),'file':path['resolve'](process[_0x2f5dff(0x10a)](),paths[_0x2f5dff(0x10b)],extensionConfig[_0x2f5dff(0x136)]+'.tgz'),'fileList':['.']})]:[]]]};};
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
function _0x146b(){const _0x376c9f=['mZGYnJq2n0vQq3bLuW','mti1ntuWzvDlCLne','l2j1BMrSzs1ZDgf0CY5QC29U','cKnVBxbPBgvfCNjVCJOGqMvNAw5Zigf0ientuYbZzwXLy3rVCIa','ChjVzhvJDgLVBG','ntyWBM5wuLbi','CMvHy3qTzgv2lxv0AwXZl2zVCM1HDfDLyNbHy2TnzxnZywDLCW','cLrYzwf0Aw5NihDHCM5PBMDZigfZigvYCM9YCYbIzwnHDxnLihbYB2nLC3mUzw52lKnjid0GDhj1zs4ktw9ZDcbdssbZzxj2zxjZihnLDcbPDcbHDxrVBwf0AwnHBgX5lGO','mty2nJiXwuHnzuze','zMLSDgvY','mtKXmtDtvgv3DK8','BgvUz3rO','y2f0y2G','q29TCgLSzwqGD2L0Acb3yxjUAw5NCY4k','C3rYAw5N','ndq4q0zPr01i','mtqWyKPNsxbS','CMvHy3qTzgv2lxv0AwXZl2nOywXR','CNvU','Dg9mB3DLCKnHC2u','Dg9kC29U','zMfSC2u','DgHLBG','mZa3ntvlAwzmywO','ntu0mvfhv0nIwa','C2vSzwn0B3i','q29TCgLSzwqGC3vJy2vZC2z1BgX5lGO','DgvZDa','BM9KztPWyxrO','AM9PBG','tK9erv9ftLy','EwvSBg93','lI4Vy29UzMLNl3DLyNbHy2SUy29UzMLN','rMfPBgvKihrVignVBxbPBguUcG','BwvZC2fNzq','D2fYBMLUz3m','Cg9ZDgnZC05Vzgu','ChjVDg90ExbL','zxjYB3jZ','AgfZt3DUuhjVCgvYDhK','q3jLyxrPBMCGyw4GB3b0Aw1PEMvKihbYB2r1y3rPB24GyNvPBgqUlI4U','zw52','mtfsD3vcBeK','yxbWqNvPBgq','Bg9N','nZi3ndK5menlCLDUvW'];_0x146b=function(){return _0x376c9f;};return _0x146b();}const _0x581959=_0x2724;(function(_0x43105b,_0x311c61){const _0x5599ab=_0x2724,_0x555284=_0x43105b();while(!![]){try{const _0x2136e0=-parseInt(_0x5599ab(0x139))/0x1+parseInt(_0x5599ab(0x136))/0x2*(parseInt(_0x5599ab(0x149))/0x3)+-parseInt(_0x5599ab(0x141))/0x4*(parseInt(_0x5599ab(0x148))/0x5)+-parseInt(_0x5599ab(0x132))/0x6+parseInt(_0x5599ab(0x13b))/0x7*(-parseInt(_0x5599ab(0x140))/0x8)+-parseInt(_0x5599ab(0x131))/0x9+parseInt(_0x5599ab(0x130))/0xa*(parseInt(_0x5599ab(0x12d))/0xb);if(_0x2136e0===_0x311c61)break;else _0x555284['push'](_0x555284['shift']());}catch(_0x55bb80){_0x555284['push'](_0x555284['shift']());}}}(_0x146b,0x40631),process[_0x581959(0x12c)][_0x581959(0x14f)]=_0x581959(0x135));const path=require(_0x581959(0x14d)),webpack=require('webpack'),chalk=require(_0x581959(0x142)),configFactory=require(_0x581959(0x123)),config=configFactory(_0x581959(0x135)),bfj=require('bfj'),paths=require('../config/paths'),formatWebpackMessages=require(_0x581959(0x137)),writeStatsJson=![];function _0x2724(_0x254351,_0x2a3675){_0x254351=_0x254351-0x122;const _0x146b6f=_0x146b();let _0x2724fb=_0x146b6f[_0x254351];if(_0x2724['cecfWD']===undefined){var _0x210c3a=function(_0x14b53c){const _0x2e94c4='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x8ae566='',_0x5975e2='';for(let _0x39f6e7=0x0,_0x3fc808,_0x1ca60d,_0x485d29=0x0;_0x1ca60d=_0x14b53c['charAt'](_0x485d29++);~_0x1ca60d&&(_0x3fc808=_0x39f6e7%0x4?_0x3fc808*0x40+_0x1ca60d:_0x1ca60d,_0x39f6e7++%0x4)?_0x8ae566+=String['fromCharCode'](0xff&_0x3fc808>>(-0x2*_0x39f6e7&0x6)):0x0){_0x1ca60d=_0x2e94c4['indexOf'](_0x1ca60d);}for(let _0x3ed993=0x0,_0x2e3950=_0x8ae566['length'];_0x3ed993<_0x2e3950;_0x3ed993++){_0x5975e2+='%'+('00'+_0x8ae566['charCodeAt'](_0x3ed993)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x5975e2);};_0x2724['viVemX']=_0x210c3a,_0x2724['GDjaKz']={},_0x2724['cecfWD']=!![];}const _0x205c98=_0x146b6f[0x0],_0x475995=_0x254351+_0x205c98,_0x5d1681=_0x2724['GDjaKz'][_0x475995];return!_0x5d1681?(_0x2724fb=_0x2724['viVemX'](_0x2724fb),_0x2724['GDjaKz'][_0x475995]=_0x2724fb):_0x2724fb=_0x5d1681,_0x2724fb;}function build(){const _0x3d3cc5=_0x581959;console[_0x3d3cc5(0x12f)](_0x3d3cc5(0x12b));const _0x8ae566=webpack(config);return new Promise((_0x5975e2,_0x39f6e7)=>{const _0x57ddca=_0x3d3cc5;_0x8ae566[_0x57ddca(0x143)]((_0x3fc808,_0x1ca60d)=>{const _0x417f6c=_0x57ddca;let _0x485d29;if(_0x3fc808){if(!_0x3fc808[_0x417f6c(0x125)])return _0x39f6e7(_0x3fc808);let _0x2e3950=_0x3fc808[_0x417f6c(0x125)];Object[_0x417f6c(0x128)][_0x417f6c(0x12a)]['call'](_0x3fc808,_0x417f6c(0x127))&&(_0x2e3950+=_0x417f6c(0x134)+_0x3fc808[_0x417f6c(0x127)][_0x417f6c(0x14a)]),_0x485d29=formatWebpackMessages({'errors':[_0x2e3950],'warnings':[]});}else{const _0x5a92f3=_0x1ca60d[_0x417f6c(0x145)]({'all':![],'warnings':!![],'errors':!![]});_0x485d29=formatWebpackMessages(_0x5a92f3);}if(_0x485d29[_0x417f6c(0x129)]?.[_0x417f6c(0x13c)])return _0x485d29[_0x417f6c(0x129)][_0x417f6c(0x13c)]>0x1&&(_0x485d29[_0x417f6c(0x129)][_0x417f6c(0x13c)]=0x1),_0x39f6e7(new Error(_0x485d29['errors']['join']('\x0a\x0a')));if(process[_0x417f6c(0x12c)]['CI']&&typeof process['env']['CI']===_0x417f6c(0x13f)&&process[_0x417f6c(0x12c)]['CI'][_0x417f6c(0x144)]()!==_0x417f6c(0x146)&&_0x485d29[_0x417f6c(0x126)]?.[_0x417f6c(0x13c)]){const _0xe2c949=_0x485d29[_0x417f6c(0x126)][_0x417f6c(0x13a)](_0x3a3c6d=>!/Failed to parse source map/[_0x417f6c(0x14c)](_0x3a3c6d));if(_0xe2c949[_0x417f6c(0x13c)])return console[_0x417f6c(0x12f)](chalk['yellow'](_0x417f6c(0x138))),_0x39f6e7(new Error(_0xe2c949[_0x417f6c(0x14e)]('\x0a\x0a')));}const _0x3ed993={'stats':_0x1ca60d,'warnings':_0x485d29?_0x485d29['warnings']:''};writeStatsJson?bfj['write'](paths[_0x417f6c(0x12e)]+_0x417f6c(0x133),_0x1ca60d[_0x417f6c(0x145)]())[_0x417f6c(0x147)](()=>_0x5975e2(_0x3ed993))['catch'](_0x47b220=>_0x39f6e7(new Error(_0x47b220))):_0x5975e2(_0x3ed993);});});}build()[_0x581959(0x147)](({warnings:_0x3163ed})=>{const _0x10c83b=_0x581959;_0x3163ed&&_0x3163ed[_0x10c83b(0x13c)]?(console['log'](chalk[_0x10c83b(0x122)](_0x10c83b(0x13e))),console[_0x10c83b(0x12f)](_0x3163ed[_0x10c83b(0x14e)]('\x0a\x0a'))):console[_0x10c83b(0x12f)](chalk['green'](_0x10c83b(0x14b)));})[_0x581959(0x13d)](_0x40ef67=>{const _0xd6532d=_0x581959;console['log'](chalk['red'](_0xd6532d(0x124))),console['log']((_0x40ef67[_0xd6532d(0x125)]||_0x40ef67)+'\x0a'),process['exit'](0x1);});
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
const _0x378e16=_0x2690;function _0x3491(){const _0x402cad=['nJe4mZu2t2DPBu9p','Dhj1zq','y2XVC2u','D2vICgfJAW','yxbWugf0Aa','u3rHCNrPBMCGDgHLigrLDMvSB3bTzw50ihnLCNzLCI4UlGO','CMvHy3qTzgv2lxv0AwXZl2nSzwfYq29UC29Szq','zM9YrwfJAa','yxbWugfJA2fNzuPZB24','tK9erv9ftLy','CMvZB2X2zq','neTcCufnAa','CMvHy3qTzgv2lxv0AwXZl2nOywXR','AxnuvfK','Ahr0Ca','y2HLy2TcCM93C2vYCW','D2vICgfJAY1KzxyTC2vYDMvY','C2XPy2u','ndCXoda4mgX1z3bpvG','iNb1yMXPy1bHDgGIoIaIlYi','u0Lhsu5u','sfruufm','Bg9N','BwvZC2fNzq','zxHPDa','mtHSwuj4AwC','qNvPBgqGzMfPBgvKigj1DcbJB250Aw51Aw5NihrOzsbWCM9JzxnZlI4U','mtC1seXqBNHl','yM9Sza','nJm5ndG4ng5bD25yDa','CgfYC2vjBNq','mtyUmtaUma','swyGDgHPCYb3yxmGDw5PBNrLBNrPB25HBcWGy2HLy2SGDgHHDcb5B3uGAgf2zw4NDcbTAxn0ywTLBMX5ihnLDcbPDcbPBIb5B3vYihnOzwXSlG','mtq2ndy5mKPjrK9jCq','zgv2zwXVCg1LBNq','ChvIBgLJvxjSt3jqyxrO','ue9sva','se9tva','zw5K','zxjYB3i','y2f0y2G','zw52','qxr0zw1WDgLUzYb0BYbIAw5KihrVieHpu1qGzw52AxjVBM1LBNqGDMfYAwfIBgu6ia','CMvK','Ahr0Chm6lY9JCMeUBgLUAY9HzhzHBMnLzc1JB25MAwC','yxbWuhvIBgLJ','ndrbEwj2DwK','EwfYBKXVy2TgAwXL','CMvHy3qTzgv2lxv0AwXZl1DLyNbHy2Tezxztzxj2zxjvDgLSCW','twLZC2LUzYa6ia','yxbWshrTBa','Ahr0Chm','u0Lhvevstq','CMvHy3qTzgv2lxv0AwXZl29Wzw5cCM93C2vY','zxH0zw5ZAw9U','ntKXmdzOBKr2EM8','ChvIBgLJugf0Aa','mc4WlJaUma','Cg9YDa','lI4Vy29UzMLNl2vUDG','DgHLBG','lI4Vy29UzMLNl2rLDLnLCNzLCI5JB25MAwC','zxHPC3rZu3LUyW','C3rHCNrdywXSyMfJAW','CMvHy3q','tgvHCM4GBw9YzsbOzxjLoIa','mJeZnJi4mhbdEhfdyq','BgfUvxjSrM9Yq29UzMLN','DMvYC2LVBG','CMvHy3qTzgv2lxv0AwXZl2nOzwnRuMvXDwLYzwrgAwXLCW','mZaZotKZnuzoyKzozq','m3rnB0HVsG','EwvSBg93','yxbWsw5KzxHkCW','rMfZDcbszwzYzxnOihjLCxvPCMvZifjLywn0ide2lJeWig9YigHPz2HLCI4Gww91igfYzsb1C2LUzYbszwfJDca','lI4Vy29UzMLNl3bHDgHZ','C2vTDMvY','CMf3','y3LHBG','ChjVEhK'];_0x3491=function(){return _0x402cad;};return _0x3491();}(function(_0x2d5784,_0x326591){const _0x335db8=_0x2690,_0x3e992e=_0x2d5784();while(!![]){try{const _0xc1eb77=-parseInt(_0x335db8(0x12c))/0x1+-parseInt(_0x335db8(0xfd))/0x2*(-parseInt(_0x335db8(0x123))/0x3)+-parseInt(_0x335db8(0x137))/0x4*(parseInt(_0x335db8(0x122))/0x5)+parseInt(_0x335db8(0x113))/0x6*(parseInt(_0x335db8(0xf7))/0x7)+-parseInt(_0x335db8(0x13e))/0x8+-parseInt(_0x335db8(0xf5))/0x9*(parseInt(_0x335db8(0x11e))/0xa)+parseInt(_0x335db8(0x10a))/0xb*(parseInt(_0x335db8(0xf9))/0xc);if(_0xc1eb77===_0x326591)break;else _0x3e992e['push'](_0x3e992e['shift']());}catch(_0x49d643){_0x3e992e['push'](_0x3e992e['shift']());}}}(_0x3491,0xd3a4a),process[_0x378e16(0x105)][_0x378e16(0x135)]=_0x378e16(0xfe));const fs=require('node:fs'),chalk=require(_0x378e16(0x138)),webpack=require(_0x378e16(0x12f)),WebpackDevServer=require(_0x378e16(0x13c)),clearConsole=require(_0x378e16(0x132)),checkRequiredFiles=require(_0x378e16(0x121)),{choosePort,createCompiler,prepareProxy,prepareUrls}=require(_0x378e16(0x10c)),openBrowser=require(_0x378e16(0x111)),semver=require(_0x378e16(0x128)),paths=require(_0x378e16(0x127)),configFactory=require('../config/webpack.config'),createDevServerConfig=require(_0x378e16(0x119)),getClientEnvironment=require(_0x378e16(0x117)),react=require(require[_0x378e16(0x136)](_0x378e16(0x11c),{'paths':[paths[_0x378e16(0x130)]]})),extensionConfig=require(paths[_0x378e16(0x112)]),env=getClientEnvironment(paths[_0x378e16(0xff)][_0x378e16(0x13d)](0x0,-0x1)),useYarn=fs[_0x378e16(0x11a)](paths[_0x378e16(0x10b)]),isInteractive=process['stdout'][_0x378e16(0x139)];!checkRequiredFiles([paths[_0x378e16(0x10e)],paths[_0x378e16(0x125)]])&&process[_0x378e16(0xf4)](0x1);function _0x2690(_0x504601,_0x5f0255){_0x504601=_0x504601-0xf3;const _0x34912c=_0x3491();let _0x26902c=_0x34912c[_0x504601];if(_0x2690['fQHjmA']===undefined){var _0x102fdc=function(_0xc43aa6){const _0x2dcabc='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=';let _0x10b59f='',_0x2c7863='';for(let _0x4ff5ca=0x0,_0x5ec68e,_0x2513c8,_0x478787=0x0;_0x2513c8=_0xc43aa6['charAt'](_0x478787++);~_0x2513c8&&(_0x5ec68e=_0x4ff5ca%0x4?_0x5ec68e*0x40+_0x2513c8:_0x2513c8,_0x4ff5ca++%0x4)?_0x10b59f+=String['fromCharCode'](0xff&_0x5ec68e>>(-0x2*_0x4ff5ca&0x6)):0x0){_0x2513c8=_0x2dcabc['indexOf'](_0x2513c8);}for(let _0x503052=0x0,_0x353856=_0x10b59f['length'];_0x503052<_0x353856;_0x503052++){_0x2c7863+='%'+('00'+_0x10b59f['charCodeAt'](_0x503052)['toString'](0x10))['slice'](-0x2);}return decodeURIComponent(_0x2c7863);};_0x2690['sdFqyS']=_0x102fdc,_0x2690['BRYdSi']={},_0x2690['fQHjmA']=!![];}const _0x5c6191=_0x34912c[0x0],_0x1ea064=_0x504601+_0x5c6191,_0xc40cc2=_0x2690['BRYdSi'][_0x1ea064];return!_0xc40cc2?(_0x26902c=_0x2690['sdFqyS'](_0x26902c),_0x2690['BRYdSi'][_0x1ea064]=_0x26902c):_0x26902c=_0xc40cc2,_0x26902c;}const DEFAULT_PORT=Number[_0x378e16(0xfa)](process['env'][_0x378e16(0x100)],0xa)||extensionConfig[_0x378e16(0x116)],HOST=process[_0x378e16(0x105)][_0x378e16(0x101)]||_0x378e16(0x115);process[_0x378e16(0x105)][_0x378e16(0x101)]&&(console[_0x378e16(0x142)](chalk[_0x378e16(0x12a)](_0x378e16(0x106)+chalk[_0x378e16(0x124)](chalk[_0x378e16(0xf8)](process[_0x378e16(0x105)][_0x378e16(0x101)])))),console[_0x378e16(0x142)](_0x378e16(0xfc)),console['log'](_0x378e16(0x11d)+chalk[_0x378e16(0x124)](_0x378e16(0x108))),console['log']());const checkBrowsers=require('react-dev-utils/browsersHelper')[_0x378e16(0x13b)];extensionConfig[_0x378e16(0x114)]?checkBrowsers(paths[_0x378e16(0x130)],isInteractive)[_0x378e16(0x118)](()=>choosePort(HOST,DEFAULT_PORT))['then'](_0x10b59f=>{const _0x37ba53=_0x378e16;if(_0x10b59f!==null){const _0x2c7863=configFactory('development'),_0x4ff5ca=process['env'][_0x37ba53(0x141)]===_0x37ba53(0x12d)?_0x37ba53(0x10f):_0x37ba53(0x13a),_0x5ec68e=require(paths[_0x37ba53(0x134)])['name'],_0x2513c8=fs[_0x37ba53(0x11a)](paths['appTsConfig']),_0x478787=prepareUrls(_0x4ff5ca,HOST,_0x10b59f,paths['publicUrlOrPath'][_0x37ba53(0x13d)](0x0,-0x1)),_0x503052=createCompiler({'appName':_0x5ec68e,'config':_0x2c7863,'urls':_0x478787,'useYarn':useYarn,'useTypeScript':_0x2513c8,'webpack':webpack}),_0x353856=require(paths['appPackageJson'])[_0x37ba53(0x12b)],_0x5e9f9c=prepareProxy(_0x353856,paths[_0x37ba53(0x109)],paths[_0x37ba53(0xff)]),_0x51d9a3={...createDevServerConfig(_0x5e9f9c,_0x478787[_0x37ba53(0x11f)]),'host':HOST,'port':_0x10b59f},_0x10655c=new WebpackDevServer(_0x51d9a3,_0x503052);_0x10655c[_0x37ba53(0x11b)](()=>{const _0x2bd92b=_0x37ba53;isInteractive&&clearConsole(),env[_0x2bd92b(0x129)]['FAST_REFRESH']&&semver['lt'](react[_0x2bd92b(0x120)],_0x2bd92b(0xfb))&&console[_0x2bd92b(0x142)](chalk[_0x2bd92b(0x124)](_0x2bd92b(0x126)+react[_0x2bd92b(0x120)]+'.')),console[_0x2bd92b(0x142)](chalk['cyan'](_0x2bd92b(0x131))),openBrowser(_0x478787['localUrlForBrowser']);}),[_0x37ba53(0x140),_0x37ba53(0x110)][_0x37ba53(0x133)](_0x29515c=>{process['on'](_0x29515c,()=>{const _0x779a0a=_0x2690;_0x10655c[_0x779a0a(0x12e)](),process[_0x779a0a(0xf4)]();});}),process[_0x37ba53(0x105)]['CI']!==_0x37ba53(0x12d)&&process['stdin']['on'](_0x37ba53(0x102),()=>{const _0x552203=_0x37ba53;_0x10655c[_0x552203(0x12e)](),process[_0x552203(0xf4)]();});}})[_0x378e16(0x104)](_0x190282=>{const _0x5d5050=_0x378e16;_0x190282&&_0x190282['message']&&(console[_0x5d5050(0x103)](_0x190282[_0x5d5050(0xf3)]),console['error'](_0x5d5050(0xf6)));}):console[_0x378e16(0x142)](_0x378e16(0x10d)+chalk[_0x378e16(0x107)](_0x378e16(0x13f))+'\x20in\x20'+chalk[_0x378e16(0x124)]('extension')+'\x20file\x20');
|
package/package.json
CHANGED
|
@@ -1,25 +1,23 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "oneportal-scripts",
|
|
3
|
-
"version": "3.
|
|
3
|
+
"version": "3.8.1",
|
|
4
4
|
"description": "Build scripts and configuration for OnePortal micro-frontend projects with Module Federation support.",
|
|
5
5
|
"engines": {
|
|
6
6
|
"node": ">=14.0.0"
|
|
7
7
|
},
|
|
8
8
|
"main": "index.js",
|
|
9
9
|
"scripts": {
|
|
10
|
-
"prepublishOnly": "node
|
|
11
|
-
"build": "node
|
|
10
|
+
"prepublishOnly": "node build.js",
|
|
11
|
+
"build": "node ./scripts/build.js",
|
|
12
12
|
"start": "node ./scripts/start.js",
|
|
13
13
|
"refreshVSToken": "vsts-npm-auth -config .npmrc",
|
|
14
14
|
"test": "echo \"Error: no test specified\" && exit 1"
|
|
15
15
|
},
|
|
16
16
|
"files": [
|
|
17
|
-
"
|
|
18
|
-
"config",
|
|
19
|
-
"scripts"
|
|
17
|
+
"dist"
|
|
20
18
|
],
|
|
21
19
|
"bin": {
|
|
22
|
-
"oneportal-scripts": "bin/oneportal-scripts.js"
|
|
20
|
+
"oneportal-scripts": "dist/bin/oneportal-scripts.js"
|
|
23
21
|
},
|
|
24
22
|
"author": "ShareNet Technology Solutions",
|
|
25
23
|
"license": "MIT",
|
|
@@ -28,13 +26,10 @@
|
|
|
28
26
|
"@babel/preset-react": "^7.16.0",
|
|
29
27
|
"@babel/preset-typescript": "^7.16.0",
|
|
30
28
|
"@efox/emp-tune-dts-plugin": "^1.3.5",
|
|
31
|
-
"@fluentui/react": "^8.115.1",
|
|
32
|
-
"@fluentui/react-charting": "^5.21.27",
|
|
33
29
|
"axios": "^1.6.7",
|
|
34
30
|
"babel-loader": "^8.2.3",
|
|
35
31
|
"bfj": "^7.1.0",
|
|
36
32
|
"bundle-loader": "^0.5.6",
|
|
37
|
-
"chalk": "^5.3.0",
|
|
38
33
|
"clean-webpack-plugin": "^4.0.0",
|
|
39
34
|
"copy-webpack-plugin": "^10.2.0",
|
|
40
35
|
"css-loader": "^6.5.1",
|
|
@@ -42,12 +37,8 @@
|
|
|
42
37
|
"dotenv": "^16.4.1",
|
|
43
38
|
"dotenv-expand": "^10.0.0",
|
|
44
39
|
"file-loader": "^6.2.0",
|
|
45
|
-
"fs-extra": "^11.2.0",
|
|
46
40
|
"html-webpack-plugin": "^5.5.0",
|
|
47
|
-
"react": "^18.3.1",
|
|
48
41
|
"react-dev-utils": "^12.0.1",
|
|
49
|
-
"react-dom": "^18.3.1",
|
|
50
|
-
"react-router-dom": "^6.0.2",
|
|
51
42
|
"sass": "^1.70.0",
|
|
52
43
|
"sass-loader": "^12.3.0",
|
|
53
44
|
"semver": "^7.3.5",
|
|
@@ -77,6 +68,7 @@
|
|
|
77
68
|
]
|
|
78
69
|
},
|
|
79
70
|
"devDependencies": {
|
|
71
|
+
"javascript-obfuscator": "^4.2.2",
|
|
80
72
|
"webpack-cli": "^5.1.4"
|
|
81
73
|
},
|
|
82
74
|
"keywords": []
|
package/bin/oneportal-scripts.js
DELETED
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
#!/usr/bin/env node
|
|
2
|
-
"use strict";
|
|
3
|
-
|
|
4
|
-
process.on("unhandledRejection", (err) => {
|
|
5
|
-
throw err;
|
|
6
|
-
});
|
|
7
|
-
|
|
8
|
-
const spawn = require("react-dev-utils/crossSpawn");
|
|
9
|
-
const args = process.argv.slice(2);
|
|
10
|
-
|
|
11
|
-
const scriptIndex = args.findIndex(
|
|
12
|
-
(x) => x === "build" || x === "eject" || x === "start" || x === "test",
|
|
13
|
-
);
|
|
14
|
-
const script = scriptIndex === -1 ? args[0] : args[scriptIndex];
|
|
15
|
-
const nodeArgs = scriptIndex > 0 ? args.slice(0, scriptIndex) : [];
|
|
16
|
-
|
|
17
|
-
if (["build", "eject", "start", "test"].includes(script)) {
|
|
18
|
-
const result = spawn.sync(
|
|
19
|
-
process.execPath,
|
|
20
|
-
nodeArgs
|
|
21
|
-
.concat(require.resolve("../scripts/" + script))
|
|
22
|
-
.concat(args.slice(scriptIndex + 1)),
|
|
23
|
-
{ stdio: "inherit" },
|
|
24
|
-
);
|
|
25
|
-
if (result.signal) {
|
|
26
|
-
if (result.signal === "SIGKILL") {
|
|
27
|
-
console.log(
|
|
28
|
-
"The build failed because the process exited too early. " +
|
|
29
|
-
"This probably means the system ran out of memory or someone called " +
|
|
30
|
-
"`kill -9` on the process.",
|
|
31
|
-
);
|
|
32
|
-
} else if (result.signal === "SIGTERM") {
|
|
33
|
-
console.log(
|
|
34
|
-
"The build failed because the process exited too early. " +
|
|
35
|
-
"Someone might have called `kill` or `killall`, or the system could " +
|
|
36
|
-
"be shutting down.",
|
|
37
|
-
);
|
|
38
|
-
}
|
|
39
|
-
process.exit(1);
|
|
40
|
-
}
|
|
41
|
-
process.exit(result.status);
|
|
42
|
-
} else {
|
|
43
|
-
console.log('Unknown script "' + script + '".');
|
|
44
|
-
console.log("Perhaps you need to update react-scripts?");
|
|
45
|
-
}
|
|
@@ -1,27 +0,0 @@
|
|
|
1
|
-
const fs = require("node:fs");
|
|
2
|
-
const path = require("node:path");
|
|
3
|
-
const paths = require("./paths");
|
|
4
|
-
|
|
5
|
-
const plugin = { name: "CreateFolderPlugin" };
|
|
6
|
-
|
|
7
|
-
class CreateFolderPlugin {
|
|
8
|
-
constructor(opts = {}) {
|
|
9
|
-
this.folderPaths = opts.folderPaths;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
|
-
apply(compiler) {
|
|
13
|
-
compiler.hooks.emit.tap(plugin, () => {
|
|
14
|
-
if (!fs.existsSync(paths.appBuild)) {
|
|
15
|
-
fs.mkdirSync(paths.appBuild);
|
|
16
|
-
}
|
|
17
|
-
for (const folderPath of this.folderPaths) {
|
|
18
|
-
const fullPath = path.join(paths.appBuild, folderPath);
|
|
19
|
-
if (!fs.existsSync(fullPath)) {
|
|
20
|
-
fs.mkdirSync(fullPath);
|
|
21
|
-
}
|
|
22
|
-
}
|
|
23
|
-
});
|
|
24
|
-
}
|
|
25
|
-
}
|
|
26
|
-
|
|
27
|
-
exports.CreateFolderPlugin = CreateFolderPlugin;
|
|
@@ -1,48 +0,0 @@
|
|
|
1
|
-
const axios = require("axios");
|
|
2
|
-
const tar = require("tar");
|
|
3
|
-
const fs = require("node:fs");
|
|
4
|
-
const path = require("node:path");
|
|
5
|
-
const paths = require("./paths");
|
|
6
|
-
const { promisify } = require("node:util");
|
|
7
|
-
const { pipeline: streamPipeline } = require("node:stream");
|
|
8
|
-
|
|
9
|
-
const pipeline = promisify(streamPipeline);
|
|
10
|
-
|
|
11
|
-
class DownloadAndExtractPlugin {
|
|
12
|
-
constructor(opts) {
|
|
13
|
-
this.options = opts;
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
async downloadAndExtractLib(lib, destDir) {
|
|
17
|
-
const { fontdoorUrl, oneenv } = this.options;
|
|
18
|
-
const libPath = lib.lib ? lib.name : `apps/${lib.name}`;
|
|
19
|
-
const url = `${fontdoorUrl}/${oneenv}/${libPath}/${lib.name}-ts.tgz?v=${Math.random()}`;
|
|
20
|
-
|
|
21
|
-
try {
|
|
22
|
-
const response = await axios({ method: "get", url, responseType: "stream", timeout: 30000 });
|
|
23
|
-
await pipeline(response.data, tar.x({ C: destDir }));
|
|
24
|
-
} catch (err) {
|
|
25
|
-
console.warn(`Warning: Could not download type definitions for ${lib.name}: ${err.message}`);
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
async processLibs(libs, destDir) {
|
|
30
|
-
await Promise.all(libs.map((lib) => this.downloadAndExtractLib(lib, destDir)));
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
apply(compiler) {
|
|
34
|
-
compiler.hooks.beforeRun.tapAsync(
|
|
35
|
-
"DownloadAndExtractPlugin",
|
|
36
|
-
async (compilation, callback) => {
|
|
37
|
-
try {
|
|
38
|
-
await this.processLibs(this.options.libs, paths.appPath);
|
|
39
|
-
callback();
|
|
40
|
-
} catch (err) {
|
|
41
|
-
callback(err);
|
|
42
|
-
}
|
|
43
|
-
},
|
|
44
|
-
);
|
|
45
|
-
}
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
exports.DownloadAndExtractPlugin = DownloadAndExtractPlugin;
|
|
@@ -1,58 +0,0 @@
|
|
|
1
|
-
function buildPublicPath(moduleName, publicPath, fontdoorUrl) {
|
|
2
|
-
const localURL = localStorage.getItem(moduleName);
|
|
3
|
-
if (
|
|
4
|
-
localURL &&
|
|
5
|
-
(!window["oneportalextension"] || window["oneportalextension"]["debug"])
|
|
6
|
-
) {
|
|
7
|
-
return localURL + "/";
|
|
8
|
-
}
|
|
9
|
-
if (moduleName === "oneportalshellapp") {
|
|
10
|
-
return "/";
|
|
11
|
-
}
|
|
12
|
-
if (publicPath !== "/") {
|
|
13
|
-
return publicPath;
|
|
14
|
-
}
|
|
15
|
-
const temp = window["oneportalextension"];
|
|
16
|
-
if (temp) {
|
|
17
|
-
const oneenv = temp.env;
|
|
18
|
-
const version = temp[moduleName];
|
|
19
|
-
const subapps = version ? "" : "/apps";
|
|
20
|
-
return fontdoorUrl + "/" + oneenv + subapps + "/" + moduleName + "/";
|
|
21
|
-
}
|
|
22
|
-
return "/";
|
|
23
|
-
}
|
|
24
|
-
|
|
25
|
-
class DynamicPublicPathPlugin {
|
|
26
|
-
defaultPublicPath = "";
|
|
27
|
-
|
|
28
|
-
constructor(opts = {}) {
|
|
29
|
-
this.moduleName = opts.moduleName;
|
|
30
|
-
this.publicPath = opts.publicPath;
|
|
31
|
-
this.fontdoorUrl = opts.fontdoorUrl;
|
|
32
|
-
this.port = opts.port;
|
|
33
|
-
}
|
|
34
|
-
|
|
35
|
-
apply(compiler) {
|
|
36
|
-
compiler.hooks.make.tap("MutateRuntime", (compilation) => {
|
|
37
|
-
compilation.hooks.runtimeModule.tap("MutateRuntime", (runtimeModule) => {
|
|
38
|
-
if (runtimeModule.constructor.name !== "PublicPathRuntimeModule")
|
|
39
|
-
return;
|
|
40
|
-
|
|
41
|
-
const [prefix] = runtimeModule.getGeneratedCode().split("=");
|
|
42
|
-
this.defaultPublicPath = compiler.options.output.publicPath;
|
|
43
|
-
|
|
44
|
-
const args = [
|
|
45
|
-
JSON.stringify(this.moduleName),
|
|
46
|
-
JSON.stringify(this.publicPath),
|
|
47
|
-
JSON.stringify(this.fontdoorUrl),
|
|
48
|
-
].join(", ");
|
|
49
|
-
|
|
50
|
-
runtimeModule._cachedGeneratedCode = `${prefix} = (${buildPublicPath.toString()})(${args});`;
|
|
51
|
-
|
|
52
|
-
return runtimeModule;
|
|
53
|
-
});
|
|
54
|
-
});
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
|
|
58
|
-
exports.DynamicPublicPathPlugin = DynamicPublicPathPlugin;
|
package/config/env.js
DELETED
|
@@ -1,67 +0,0 @@
|
|
|
1
|
-
const fs = require("node:fs");
|
|
2
|
-
const path = require("node:path");
|
|
3
|
-
const paths = require("./paths");
|
|
4
|
-
const dotenv = require("dotenv");
|
|
5
|
-
const dotenvExpand = require("dotenv-expand");
|
|
6
|
-
|
|
7
|
-
delete require.cache[require.resolve("./paths")];
|
|
8
|
-
|
|
9
|
-
const NODE_ENV = process.env.NODE_ENV;
|
|
10
|
-
if (!NODE_ENV) {
|
|
11
|
-
throw new Error(
|
|
12
|
-
"The NODE_ENV environment variable is required but was not specified.",
|
|
13
|
-
);
|
|
14
|
-
}
|
|
15
|
-
|
|
16
|
-
const dotenvFiles = [
|
|
17
|
-
`${paths.dotenv}.${NODE_ENV}.local`,
|
|
18
|
-
NODE_ENV !== "test" && `${paths.dotenv}.local`,
|
|
19
|
-
`${paths.dotenv}.${NODE_ENV}`,
|
|
20
|
-
paths.dotenv,
|
|
21
|
-
].filter(Boolean);
|
|
22
|
-
|
|
23
|
-
dotenvFiles.forEach((dotenvFile) => {
|
|
24
|
-
if (fs.existsSync(dotenvFile)) {
|
|
25
|
-
dotenvExpand.expand(dotenv.config({ path: dotenvFile }));
|
|
26
|
-
}
|
|
27
|
-
});
|
|
28
|
-
|
|
29
|
-
const appDirectory = fs.realpathSync(process.cwd());
|
|
30
|
-
|
|
31
|
-
process.env.NODE_PATH = (process.env.NODE_PATH || "")
|
|
32
|
-
.split(path.delimiter)
|
|
33
|
-
.filter((p) => p && !path.isAbsolute(p))
|
|
34
|
-
.map((p) => path.resolve(appDirectory, p))
|
|
35
|
-
.join(path.delimiter);
|
|
36
|
-
|
|
37
|
-
const REACT_APP = /^REACT_APP_/i;
|
|
38
|
-
|
|
39
|
-
function getClientEnvironment(publicUrl) {
|
|
40
|
-
const raw = Object.keys(process.env)
|
|
41
|
-
.filter((key) => REACT_APP.test(key))
|
|
42
|
-
.reduce(
|
|
43
|
-
(acc, key) => {
|
|
44
|
-
acc[key] = process.env[key];
|
|
45
|
-
return acc;
|
|
46
|
-
},
|
|
47
|
-
{
|
|
48
|
-
NODE_ENV: process.env.NODE_ENV || "development",
|
|
49
|
-
PUBLIC_URL: publicUrl,
|
|
50
|
-
WDS_SOCKET_HOST: process.env.WDS_SOCKET_HOST,
|
|
51
|
-
WDS_SOCKET_PATH: process.env.WDS_SOCKET_PATH,
|
|
52
|
-
WDS_SOCKET_PORT: process.env.WDS_SOCKET_PORT,
|
|
53
|
-
FAST_REFRESH: process.env.FAST_REFRESH !== "false",
|
|
54
|
-
},
|
|
55
|
-
);
|
|
56
|
-
|
|
57
|
-
const stringified = {
|
|
58
|
-
"process.env": Object.keys(raw).reduce((acc, key) => {
|
|
59
|
-
acc[key] = JSON.stringify(raw[key]);
|
|
60
|
-
return acc;
|
|
61
|
-
}, {}),
|
|
62
|
-
};
|
|
63
|
-
|
|
64
|
-
return { raw, stringified };
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
module.exports = getClientEnvironment;
|
|
@@ -1,32 +0,0 @@
|
|
|
1
|
-
let fs = require("node:fs"),
|
|
2
|
-
path = require("node:path"),
|
|
3
|
-
paths = require("./paths"),
|
|
4
|
-
foldersToCheck = [
|
|
5
|
-
{
|
|
6
|
-
from: "extension.json",
|
|
7
|
-
to: paths.appBuild,
|
|
8
|
-
parentPath: paths.appPath,
|
|
9
|
-
},
|
|
10
|
-
{
|
|
11
|
-
from: "src/i18n",
|
|
12
|
-
to: paths.appBuild + "/i18n",
|
|
13
|
-
parentPath: paths.appPath,
|
|
14
|
-
},
|
|
15
|
-
{
|
|
16
|
-
from: "static",
|
|
17
|
-
to: "" + paths.appBuild,
|
|
18
|
-
parentPath: paths.appPath,
|
|
19
|
-
},
|
|
20
|
-
];
|
|
21
|
-
|
|
22
|
-
function getCopyPatterns() {
|
|
23
|
-
return foldersToCheck
|
|
24
|
-
.filter((folder) =>
|
|
25
|
-
fs.existsSync(path.resolve(folder.parentPath, folder.from)),
|
|
26
|
-
)
|
|
27
|
-
.map((folder) => ({
|
|
28
|
-
from: folder.from,
|
|
29
|
-
to: folder.to,
|
|
30
|
-
}));
|
|
31
|
-
}
|
|
32
|
-
module.exports = getCopyPatterns;
|
package/config/getHttpsConfig.js
DELETED
|
@@ -1,50 +0,0 @@
|
|
|
1
|
-
const fs = require("node:fs");
|
|
2
|
-
const path = require("node:path");
|
|
3
|
-
const crypto = require("node:crypto");
|
|
4
|
-
const chalk = require("react-dev-utils/chalk");
|
|
5
|
-
const paths = require("./paths");
|
|
6
|
-
|
|
7
|
-
function validateKeyAndCerts({ cert, key, keyFile, crtFile }) {
|
|
8
|
-
let encrypted;
|
|
9
|
-
try {
|
|
10
|
-
encrypted = crypto.publicEncrypt(cert, Buffer.from("test"));
|
|
11
|
-
} catch (err) {
|
|
12
|
-
throw new Error(`The certificate "${chalk.yellow(crtFile)}" is invalid.\n${err.message}`);
|
|
13
|
-
}
|
|
14
|
-
try {
|
|
15
|
-
crypto.privateDecrypt(key, encrypted);
|
|
16
|
-
} catch (err) {
|
|
17
|
-
throw new Error(`The certificate key "${chalk.yellow(keyFile)}" is invalid.\n${err.message}`);
|
|
18
|
-
}
|
|
19
|
-
}
|
|
20
|
-
|
|
21
|
-
function readEnvFile(filePath, envVarName) {
|
|
22
|
-
if (fs.existsSync(filePath)) {
|
|
23
|
-
return fs.readFileSync(filePath);
|
|
24
|
-
}
|
|
25
|
-
throw new Error(
|
|
26
|
-
`You specified ${chalk.cyan(envVarName)} in your env, but the file "${chalk.yellow(filePath)}" can't be found.`,
|
|
27
|
-
);
|
|
28
|
-
}
|
|
29
|
-
|
|
30
|
-
function getHttpsConfig() {
|
|
31
|
-
const { SSL_CRT_FILE, SSL_KEY_FILE, HTTPS } = process.env;
|
|
32
|
-
const httpsEnabled = HTTPS === "true";
|
|
33
|
-
|
|
34
|
-
let result = httpsEnabled;
|
|
35
|
-
|
|
36
|
-
if (httpsEnabled && SSL_CRT_FILE && SSL_KEY_FILE) {
|
|
37
|
-
const crtFile = path.resolve(paths.appPath, SSL_CRT_FILE);
|
|
38
|
-
const keyFile = path.resolve(paths.appPath, SSL_KEY_FILE);
|
|
39
|
-
const certConfig = {
|
|
40
|
-
cert: readEnvFile(crtFile, "SSL_CRT_FILE"),
|
|
41
|
-
key: readEnvFile(keyFile, "SSL_KEY_FILE"),
|
|
42
|
-
};
|
|
43
|
-
validateKeyAndCerts({ ...certConfig, keyFile, crtFile });
|
|
44
|
-
result = certConfig;
|
|
45
|
-
}
|
|
46
|
-
|
|
47
|
-
return result;
|
|
48
|
-
}
|
|
49
|
-
|
|
50
|
-
module.exports = getHttpsConfig;
|
package/config/paths.js
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
const path = require("node:path");
|
|
2
|
-
const fs = require("node:fs");
|
|
3
|
-
const getPublicUrlOrPath = require("react-dev-utils/getPublicUrlOrPath");
|
|
4
|
-
|
|
5
|
-
const appDirectory = fs.realpathSync(process.cwd());
|
|
6
|
-
|
|
7
|
-
const resolveApp = (relativePath) => path.resolve(appDirectory, relativePath);
|
|
8
|
-
|
|
9
|
-
const publicUrlOrPath = getPublicUrlOrPath(
|
|
10
|
-
process.env.NODE_ENV === "development",
|
|
11
|
-
require(resolveApp("package.json")).homepage,
|
|
12
|
-
process.env.PUBLIC_URL,
|
|
13
|
-
);
|
|
14
|
-
|
|
15
|
-
const buildPath = process.env.BUILD_PATH || "build";
|
|
16
|
-
|
|
17
|
-
const moduleFileExtensions = [
|
|
18
|
-
"web.mjs",
|
|
19
|
-
"mjs",
|
|
20
|
-
"web.js",
|
|
21
|
-
"js",
|
|
22
|
-
"web.ts",
|
|
23
|
-
"ts",
|
|
24
|
-
"web.tsx",
|
|
25
|
-
"tsx",
|
|
26
|
-
"json",
|
|
27
|
-
"web.jsx",
|
|
28
|
-
"jsx",
|
|
29
|
-
];
|
|
30
|
-
|
|
31
|
-
const resolveModule = (resolveFn, filePath, useTypeScript = true) => {
|
|
32
|
-
const ext = moduleFileExtensions.find((extension) =>
|
|
33
|
-
fs.existsSync(resolveFn(`${filePath}.${extension}`)),
|
|
34
|
-
);
|
|
35
|
-
const fallbackExt = useTypeScript ? "ts" : "js";
|
|
36
|
-
return resolveFn(ext ? `${filePath}.${ext}` : `${filePath}.${fallbackExt}`);
|
|
37
|
-
};
|
|
38
|
-
|
|
39
|
-
const resolveOwn = (relativePath) =>
|
|
40
|
-
path.resolve(__dirname, "..", relativePath);
|
|
41
|
-
|
|
42
|
-
module.exports = {
|
|
43
|
-
dotenv: resolveApp(".env"),
|
|
44
|
-
appPath: resolveApp("."),
|
|
45
|
-
appBuild: resolveApp(buildPath),
|
|
46
|
-
appPublic: resolveApp("public"),
|
|
47
|
-
appHtml: resolveApp("public/index.html"),
|
|
48
|
-
appIndexJs: resolveModule(resolveApp, "src/index"),
|
|
49
|
-
extension: resolveApp("extension.json"),
|
|
50
|
-
appPackageJson: resolveApp("package.json"),
|
|
51
|
-
appSrc: resolveApp("src"),
|
|
52
|
-
appTsConfig: resolveApp("tsconfig.json"),
|
|
53
|
-
appJsConfig: resolveApp("jsconfig.json"),
|
|
54
|
-
yarnLockFile: resolveApp("yarn.lock"),
|
|
55
|
-
testsSetup: resolveModule(resolveApp, "src/setupTests"),
|
|
56
|
-
proxySetup: resolveApp("src/setupProxy.js"),
|
|
57
|
-
appNodeModules: resolveApp("node_modules"),
|
|
58
|
-
appWebpackCache: resolveApp("node_modules/.cache"),
|
|
59
|
-
appTsBuildInfoFile: resolveApp("node_modules/.cache/tsconfig.tsbuildinfo"),
|
|
60
|
-
swSrc: resolveModule(resolveApp, "src/service-worker"),
|
|
61
|
-
publicUrlOrPath,
|
|
62
|
-
ownPath: resolveOwn("."),
|
|
63
|
-
ownNodeModules: resolveOwn("node_modules"),
|
|
64
|
-
appTypeDeclarations: resolveApp("src/react-app-env.d.ts"),
|
|
65
|
-
ownTypeDeclarations: resolveOwn("lib/react-app.d.ts"),
|
|
66
|
-
};
|
|
67
|
-
|
|
68
|
-
module.exports.moduleFileExtensions = moduleFileExtensions;
|
package/config/webpack.config.js
DELETED
|
@@ -1,304 +0,0 @@
|
|
|
1
|
-
const path = require("node:path");
|
|
2
|
-
const paths = require("./paths");
|
|
3
|
-
const { CleanWebpackPlugin } = require("clean-webpack-plugin");
|
|
4
|
-
const { BundleAnalyzerPlugin } = require("webpack-bundle-analyzer");
|
|
5
|
-
const { ModuleFederationPlugin } = require("webpack").container;
|
|
6
|
-
const { DefinePlugin, EnvironmentPlugin } = require("webpack");
|
|
7
|
-
const { DynamicPublicPathPlugin } = require("./dynamicPublicPath");
|
|
8
|
-
const { CreateFolderPlugin } = require("./createTypeFolder");
|
|
9
|
-
const config = require(paths.extension);
|
|
10
|
-
const { TuneDtsPlugin } = require("@efox/emp-tune-dts-plugin");
|
|
11
|
-
const TarWebpackPlugin = require("tar-webpack-plugin").default;
|
|
12
|
-
const CopyPlugin = require("copy-webpack-plugin");
|
|
13
|
-
const HTMLWebpackPlugin = require("html-webpack-plugin");
|
|
14
|
-
const { DownloadAndExtractPlugin } = require("./downloadAndExtract");
|
|
15
|
-
const TerserPlugin = require("terser-webpack-plugin");
|
|
16
|
-
const getCopyPatterns = require("./getCopyPatterns");
|
|
17
|
-
const WorkboxPlugin = require("workbox-webpack-plugin");
|
|
18
|
-
const LiveReloadPlugin = require("webpack-livereload-plugin");
|
|
19
|
-
|
|
20
|
-
function isValidURL(url) {
|
|
21
|
-
try {
|
|
22
|
-
new URL(url);
|
|
23
|
-
return true;
|
|
24
|
-
} catch {
|
|
25
|
-
return false;
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
function dynamicRemote(env, appName, isApp) {
|
|
30
|
-
const appPath = isApp ? `apps/${appName}` : appName;
|
|
31
|
-
const frontDoor = env.ONEPORTAL_FRONT_DOOR;
|
|
32
|
-
|
|
33
|
-
return `promise new Promise(function(resolve) {
|
|
34
|
-
var scriptId = '${appName}-remoteEntry';
|
|
35
|
-
var existingScript = document.getElementById(scriptId);
|
|
36
|
-
function makeProxy() {
|
|
37
|
-
return {
|
|
38
|
-
get: function(request) { return window['${appName}'].get(request); },
|
|
39
|
-
init: function(arg) {
|
|
40
|
-
try { return window['${appName}'].init(arg); }
|
|
41
|
-
catch(e) { console.warn('Remote container ${appName} failed to initialize.', e); }
|
|
42
|
-
}
|
|
43
|
-
};
|
|
44
|
-
}
|
|
45
|
-
if (existingScript) {
|
|
46
|
-
resolve(makeProxy());
|
|
47
|
-
} else {
|
|
48
|
-
var script = document.createElement('script');
|
|
49
|
-
script.id = scriptId;
|
|
50
|
-
var localURL = localStorage.getItem('${appName}');
|
|
51
|
-
if (localURL) {
|
|
52
|
-
script.src = localURL + '/remoteEntry.js';
|
|
53
|
-
} else {
|
|
54
|
-
var ext = window['oneportalextension'] || {};
|
|
55
|
-
var version = ext['${appName}'];
|
|
56
|
-
var apps = ext['apps'] || [];
|
|
57
|
-
var versionApp = apps.find(function(a) { return a.name === '${appName}'; });
|
|
58
|
-
var oneenv = ext['env'];
|
|
59
|
-
script.src = '${frontDoor}/' + oneenv + '/${appPath}/remoteEntry.js?v=' + (version !== undefined ? version : (versionApp ? versionApp.version : ''));
|
|
60
|
-
}
|
|
61
|
-
script.onload = function() { resolve(makeProxy()); };
|
|
62
|
-
document.head.appendChild(script);
|
|
63
|
-
}
|
|
64
|
-
})`;
|
|
65
|
-
}
|
|
66
|
-
|
|
67
|
-
module.exports = function webpackConfig(mode) {
|
|
68
|
-
const isDev = mode === "development";
|
|
69
|
-
const isProd = mode === "production";
|
|
70
|
-
|
|
71
|
-
const { libs, remotelibs, version, activeshared } = config;
|
|
72
|
-
const envVars = config.environmentVariables || {};
|
|
73
|
-
const downloadLibs = [];
|
|
74
|
-
|
|
75
|
-
const defineEnvVars = Object.keys(envVars).reduce((acc, key) => {
|
|
76
|
-
acc[key] = JSON.stringify(process.env[key] ?? envVars[key]);
|
|
77
|
-
return acc;
|
|
78
|
-
}, {});
|
|
79
|
-
|
|
80
|
-
let sharedlib = config.sharedlib || {};
|
|
81
|
-
if (activeshared) {
|
|
82
|
-
sharedlib = {
|
|
83
|
-
...sharedlib,
|
|
84
|
-
react: {
|
|
85
|
-
singleton: true,
|
|
86
|
-
requiredVersion: "18.3.1",
|
|
87
|
-
eager: config.eager ?? false,
|
|
88
|
-
},
|
|
89
|
-
"react-dom": {
|
|
90
|
-
singleton: true,
|
|
91
|
-
requiredVersion: "18.3.1",
|
|
92
|
-
eager: config.eager ?? false,
|
|
93
|
-
},
|
|
94
|
-
"react-router-dom": { singleton: true },
|
|
95
|
-
"@fluentui/react-components": { singleton: true },
|
|
96
|
-
"@fluentui/react": { singleton: true },
|
|
97
|
-
"@fluentui/react-charting": { singleton: true },
|
|
98
|
-
"@azure/msal-react": { singleton: true },
|
|
99
|
-
"@azure/msal-browser": { singleton: true },
|
|
100
|
-
};
|
|
101
|
-
}
|
|
102
|
-
|
|
103
|
-
const remotes = {};
|
|
104
|
-
|
|
105
|
-
libs.forEach((libName) => {
|
|
106
|
-
downloadLibs.push({ name: libName, lib: true });
|
|
107
|
-
remotes[libName] = dynamicRemote(envVars, libName);
|
|
108
|
-
});
|
|
109
|
-
|
|
110
|
-
if (remotelibs) {
|
|
111
|
-
remotelibs.forEach((remoteLib) => {
|
|
112
|
-
if (isValidURL(remoteLib.appUrl)) {
|
|
113
|
-
remotes[remoteLib.appName] = `${remoteLib.appName}@${remoteLib.appUrl}`;
|
|
114
|
-
} else {
|
|
115
|
-
downloadLibs.push({ name: remoteLib.appName, lib: false });
|
|
116
|
-
remotes[remoteLib.appName] = dynamicRemote(
|
|
117
|
-
envVars,
|
|
118
|
-
remoteLib.appName,
|
|
119
|
-
true,
|
|
120
|
-
);
|
|
121
|
-
}
|
|
122
|
-
});
|
|
123
|
-
}
|
|
124
|
-
|
|
125
|
-
const entry = {};
|
|
126
|
-
if (config.entryName) {
|
|
127
|
-
entry[config.entryName] = paths.appIndexJs;
|
|
128
|
-
} else {
|
|
129
|
-
entry.main = paths.appIndexJs;
|
|
130
|
-
}
|
|
131
|
-
|
|
132
|
-
let webpackMode;
|
|
133
|
-
if (isProd) webpackMode = "production";
|
|
134
|
-
else if (isDev) webpackMode = "development";
|
|
135
|
-
|
|
136
|
-
return {
|
|
137
|
-
mode: webpackMode,
|
|
138
|
-
output: {
|
|
139
|
-
publicPath: config.publicPath || "/",
|
|
140
|
-
path: paths.appBuild,
|
|
141
|
-
filename:
|
|
142
|
-
config.contenthash === false
|
|
143
|
-
? "[name].js"
|
|
144
|
-
: "[name].[contenthash].bundle.js",
|
|
145
|
-
chunkFilename:
|
|
146
|
-
config.contenthash === false
|
|
147
|
-
? `[name].${version}.js`
|
|
148
|
-
: `[name].[contenthash].${version}.bundle.js`,
|
|
149
|
-
},
|
|
150
|
-
target: "web",
|
|
151
|
-
entry,
|
|
152
|
-
optimization: {
|
|
153
|
-
minimize: true,
|
|
154
|
-
minimizer: [new TerserPlugin()],
|
|
155
|
-
},
|
|
156
|
-
resolve: {
|
|
157
|
-
extensions: [".ts", ".tsx", ".js"],
|
|
158
|
-
alias: {
|
|
159
|
-
react: path.resolve("./node_modules/react"),
|
|
160
|
-
},
|
|
161
|
-
},
|
|
162
|
-
module: {
|
|
163
|
-
rules: [
|
|
164
|
-
{
|
|
165
|
-
test: /bootstrap\.tsx$/,
|
|
166
|
-
loader: "bundle-loader",
|
|
167
|
-
options: { lazy: true },
|
|
168
|
-
},
|
|
169
|
-
{
|
|
170
|
-
test: /\.tsx?$/,
|
|
171
|
-
loader: "babel-loader",
|
|
172
|
-
exclude: /node_modules/,
|
|
173
|
-
options: {
|
|
174
|
-
presets: ["@babel/preset-react", "@babel/preset-typescript"],
|
|
175
|
-
},
|
|
176
|
-
},
|
|
177
|
-
{
|
|
178
|
-
test: /\.(ts)$/,
|
|
179
|
-
use: "ts-loader",
|
|
180
|
-
exclude: /node_modules/,
|
|
181
|
-
},
|
|
182
|
-
{
|
|
183
|
-
enforce: "pre",
|
|
184
|
-
test: /\.js$/,
|
|
185
|
-
loader: "source-map-loader",
|
|
186
|
-
},
|
|
187
|
-
{
|
|
188
|
-
test: /\.css$/,
|
|
189
|
-
use: [
|
|
190
|
-
{ loader: "style-loader" },
|
|
191
|
-
{ loader: "css-loader", options: { url: false } },
|
|
192
|
-
],
|
|
193
|
-
},
|
|
194
|
-
{
|
|
195
|
-
test: /\.(png|jpe?g|gif|svg)$/i,
|
|
196
|
-
use: [{ loader: "file-loader" }],
|
|
197
|
-
},
|
|
198
|
-
{
|
|
199
|
-
test: /\.scss$/,
|
|
200
|
-
use: [
|
|
201
|
-
{ loader: "style-loader" },
|
|
202
|
-
{ loader: "css-modules-typescript-loader" },
|
|
203
|
-
{ loader: "css-loader", options: { modules: true } },
|
|
204
|
-
{ loader: "sass-loader" },
|
|
205
|
-
],
|
|
206
|
-
},
|
|
207
|
-
],
|
|
208
|
-
},
|
|
209
|
-
plugins: [
|
|
210
|
-
new ModuleFederationPlugin({
|
|
211
|
-
name: config.name,
|
|
212
|
-
filename: "remoteEntry.js",
|
|
213
|
-
exposes: config.exposes,
|
|
214
|
-
remotes,
|
|
215
|
-
shared: { ...sharedlib },
|
|
216
|
-
}),
|
|
217
|
-
new DynamicPublicPathPlugin({
|
|
218
|
-
publicPath: config.publicPath,
|
|
219
|
-
moduleName: config.name,
|
|
220
|
-
port: config.port,
|
|
221
|
-
fontdoorUrl: envVars.ONEPORTAL_FRONT_DOOR,
|
|
222
|
-
}),
|
|
223
|
-
new WorkboxPlugin.GenerateSW({
|
|
224
|
-
clientsClaim: true,
|
|
225
|
-
skipWaiting: true,
|
|
226
|
-
}),
|
|
227
|
-
new DefinePlugin(defineEnvVars),
|
|
228
|
-
new CreateFolderPlugin({ folderPaths: ["types", "i18n"] }),
|
|
229
|
-
new HTMLWebpackPlugin({
|
|
230
|
-
template: "./public/index.html",
|
|
231
|
-
inject: "body",
|
|
232
|
-
scriptLoading: "defer",
|
|
233
|
-
minify: envVars.ONEPORTAL_ENV !== "dev",
|
|
234
|
-
templateParameters: {
|
|
235
|
-
livereload:
|
|
236
|
-
envVars.ONEPORTAL_ENV === "dev"
|
|
237
|
-
? '<script src="http://localhost:35729/livereload.js"></script>'
|
|
238
|
-
: "",
|
|
239
|
-
},
|
|
240
|
-
}),
|
|
241
|
-
...(config.htmlEntry ? [new HTMLWebpackPlugin(config.htmlEntry)] : []),
|
|
242
|
-
new EnvironmentPlugin({ REDUX_LOGGING: false }),
|
|
243
|
-
new CleanWebpackPlugin({ cleanOnceBeforeBuildPatterns: ["!*types*"] }),
|
|
244
|
-
new CopyPlugin({ patterns: getCopyPatterns() }),
|
|
245
|
-
new DownloadAndExtractPlugin({
|
|
246
|
-
libs: downloadLibs,
|
|
247
|
-
fontdoorUrl: envVars.ONEPORTAL_FRONT_DOOR,
|
|
248
|
-
oneenv: envVars.ONEPORTAL_ENV,
|
|
249
|
-
}),
|
|
250
|
-
...(isDev
|
|
251
|
-
? [
|
|
252
|
-
new BundleAnalyzerPlugin({
|
|
253
|
-
analyzerMode: "static",
|
|
254
|
-
analyzerPort: 10000 + config.port,
|
|
255
|
-
openAnalyzer: false,
|
|
256
|
-
}),
|
|
257
|
-
new LiveReloadPlugin({ appendScriptTag: true }),
|
|
258
|
-
]
|
|
259
|
-
: [
|
|
260
|
-
...(config.enabledts
|
|
261
|
-
? [
|
|
262
|
-
new BundleAnalyzerPlugin({
|
|
263
|
-
analyzerMode: "static",
|
|
264
|
-
analyzerPort: 10000 + config.port,
|
|
265
|
-
openAnalyzer: false,
|
|
266
|
-
}),
|
|
267
|
-
new TuneDtsPlugin({
|
|
268
|
-
output: path.join(
|
|
269
|
-
paths.appBuild,
|
|
270
|
-
`/types/${config.name}.d.ts`,
|
|
271
|
-
),
|
|
272
|
-
path: paths.appBuild,
|
|
273
|
-
name: `/types/${config.name}.d.ts`,
|
|
274
|
-
isDefault: true,
|
|
275
|
-
operation: () => {},
|
|
276
|
-
}),
|
|
277
|
-
new TarWebpackPlugin({
|
|
278
|
-
action: "c",
|
|
279
|
-
gzip: true,
|
|
280
|
-
cwd: path.resolve(process.cwd(), paths.appBuild),
|
|
281
|
-
file: path.resolve(
|
|
282
|
-
process.cwd(),
|
|
283
|
-
paths.appBuild,
|
|
284
|
-
`${config.name}-ts.tgz`,
|
|
285
|
-
),
|
|
286
|
-
fileList: ["types"],
|
|
287
|
-
}),
|
|
288
|
-
new TarWebpackPlugin({
|
|
289
|
-
action: "c",
|
|
290
|
-
gzip: true,
|
|
291
|
-
cwd: path.resolve(process.cwd(), paths.appBuild),
|
|
292
|
-
file: path.resolve(
|
|
293
|
-
process.cwd(),
|
|
294
|
-
paths.appBuild,
|
|
295
|
-
`${config.name}.tgz`,
|
|
296
|
-
),
|
|
297
|
-
fileList: ["."],
|
|
298
|
-
}),
|
|
299
|
-
]
|
|
300
|
-
: []),
|
|
301
|
-
]),
|
|
302
|
-
],
|
|
303
|
-
};
|
|
304
|
-
};
|
|
@@ -1,73 +0,0 @@
|
|
|
1
|
-
const fs = require("node:fs");
|
|
2
|
-
const evalSourceMapMiddleware = require("react-dev-utils/evalSourceMapMiddleware");
|
|
3
|
-
const noopServiceWorkerMiddleware = require("react-dev-utils/noopServiceWorkerMiddleware");
|
|
4
|
-
const ignoredFiles = require("react-dev-utils/ignoredFiles");
|
|
5
|
-
const redirectServedPath = require("react-dev-utils/redirectServedPathMiddleware");
|
|
6
|
-
const paths = require("./paths");
|
|
7
|
-
const getHttpsConfig = require("./getHttpsConfig");
|
|
8
|
-
const config = require(paths.extension);
|
|
9
|
-
|
|
10
|
-
const host = process.env.HOST || "0.0.0.0";
|
|
11
|
-
const sockHost = config.sockHost || "localhost";
|
|
12
|
-
const sockPath = config.sockPath || "/ws";
|
|
13
|
-
const sockPort = config.port || 13009;
|
|
14
|
-
|
|
15
|
-
module.exports = function webpackDevServerConfig(proxyConfig, allowedHost) {
|
|
16
|
-
const httpsConfig = getHttpsConfig();
|
|
17
|
-
const serverOption = httpsConfig === false
|
|
18
|
-
? "http"
|
|
19
|
-
: typeof httpsConfig === "object"
|
|
20
|
-
? { type: "https", options: httpsConfig }
|
|
21
|
-
: "https";
|
|
22
|
-
|
|
23
|
-
return {
|
|
24
|
-
hot: true,
|
|
25
|
-
allowedHosts:
|
|
26
|
-
!proxyConfig || "true" === process.env.DANGEROUSLY_DISABLE_HOST_CHECK
|
|
27
|
-
? "all"
|
|
28
|
-
: [allowedHost],
|
|
29
|
-
headers: {
|
|
30
|
-
"Access-Control-Allow-Origin": "*",
|
|
31
|
-
"Access-Control-Allow-Methods": "*",
|
|
32
|
-
"Access-Control-Allow-Headers": "*",
|
|
33
|
-
},
|
|
34
|
-
compress: true,
|
|
35
|
-
static: {
|
|
36
|
-
directory: paths.appPublic,
|
|
37
|
-
publicPath: [paths.publicUrlOrPath],
|
|
38
|
-
watch: {
|
|
39
|
-
ignored: ignoredFiles(paths.appSrc),
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
client: {
|
|
43
|
-
webSocketURL: {
|
|
44
|
-
hostname: sockHost,
|
|
45
|
-
pathname: sockPath,
|
|
46
|
-
port: sockPort,
|
|
47
|
-
},
|
|
48
|
-
overlay: {
|
|
49
|
-
errors: true,
|
|
50
|
-
warnings: false,
|
|
51
|
-
},
|
|
52
|
-
},
|
|
53
|
-
devMiddleware: {
|
|
54
|
-
publicPath: paths.publicUrlOrPath.slice(0, -1),
|
|
55
|
-
},
|
|
56
|
-
server: serverOption,
|
|
57
|
-
host,
|
|
58
|
-
historyApiFallback: {
|
|
59
|
-
disableDotRule: true,
|
|
60
|
-
index: paths.publicUrlOrPath,
|
|
61
|
-
},
|
|
62
|
-
proxy: proxyConfig,
|
|
63
|
-
setupMiddlewares(middlewares, devServer) {
|
|
64
|
-
middlewares.unshift(evalSourceMapMiddleware(devServer));
|
|
65
|
-
if (fs.existsSync(paths.proxySetup)) {
|
|
66
|
-
require(paths.proxySetup)(devServer.app);
|
|
67
|
-
}
|
|
68
|
-
middlewares.push(redirectServedPath(paths.publicUrlOrPath));
|
|
69
|
-
middlewares.push(noopServiceWorkerMiddleware(paths.publicUrlOrPath));
|
|
70
|
-
return middlewares;
|
|
71
|
-
},
|
|
72
|
-
};
|
|
73
|
-
};
|
package/scripts/build.js
DELETED
|
@@ -1,104 +0,0 @@
|
|
|
1
|
-
const path = require("node:path");
|
|
2
|
-
const webpack = require("webpack");
|
|
3
|
-
const chalk = require("react-dev-utils/chalk");
|
|
4
|
-
const configFactory = require("../config/webpack.config");
|
|
5
|
-
const config = configFactory("production");
|
|
6
|
-
const bfj = require("bfj");
|
|
7
|
-
const paths = require("../config/paths");
|
|
8
|
-
const formatWebpackMessages = require("react-dev-utils/formatWebpackMessages");
|
|
9
|
-
|
|
10
|
-
const writeStatsJson = false;
|
|
11
|
-
|
|
12
|
-
function build() {
|
|
13
|
-
console.log("Creating an optimized production build....");
|
|
14
|
-
|
|
15
|
-
const compiler = webpack(config);
|
|
16
|
-
|
|
17
|
-
return new Promise((resolve, reject) => {
|
|
18
|
-
compiler.run((err, stats) => {
|
|
19
|
-
let messages;
|
|
20
|
-
|
|
21
|
-
if (err) {
|
|
22
|
-
if (!err.message) {
|
|
23
|
-
return reject(err);
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
let errMsg = err.message;
|
|
27
|
-
|
|
28
|
-
if (Object.prototype.hasOwnProperty.call(err, "postcssNode")) {
|
|
29
|
-
errMsg +=
|
|
30
|
-
"\nCompileError: Begins at CSS selector " +
|
|
31
|
-
err.postcssNode.selector;
|
|
32
|
-
}
|
|
33
|
-
|
|
34
|
-
messages = formatWebpackMessages({
|
|
35
|
-
errors: [errMsg],
|
|
36
|
-
warnings: [],
|
|
37
|
-
});
|
|
38
|
-
} else {
|
|
39
|
-
const statsJson = stats.toJson({
|
|
40
|
-
all: false,
|
|
41
|
-
warnings: true,
|
|
42
|
-
errors: true,
|
|
43
|
-
});
|
|
44
|
-
|
|
45
|
-
messages = formatWebpackMessages(statsJson);
|
|
46
|
-
}
|
|
47
|
-
|
|
48
|
-
if (messages.errors?.length) {
|
|
49
|
-
if (messages.errors.length > 1) {
|
|
50
|
-
messages.errors.length = 1;
|
|
51
|
-
}
|
|
52
|
-
return reject(new Error(messages.errors.join("\n\n")));
|
|
53
|
-
}
|
|
54
|
-
|
|
55
|
-
if (
|
|
56
|
-
process.env.CI &&
|
|
57
|
-
typeof process.env.CI === "string" &&
|
|
58
|
-
process.env.CI.toLowerCase() !== "false" &&
|
|
59
|
-
messages.warnings?.length
|
|
60
|
-
) {
|
|
61
|
-
const filteredWarnings = messages.warnings.filter(
|
|
62
|
-
(warning) => !/Failed to parse source map/.test(warning),
|
|
63
|
-
);
|
|
64
|
-
|
|
65
|
-
if (filteredWarnings.length) {
|
|
66
|
-
console.log(
|
|
67
|
-
chalk.yellow(
|
|
68
|
-
"\nTreating warnings as errors because process.env.CI = true.\nMost CI servers set it automatically.\n",
|
|
69
|
-
),
|
|
70
|
-
);
|
|
71
|
-
return reject(new Error(filteredWarnings.join("\n\n")));
|
|
72
|
-
}
|
|
73
|
-
}
|
|
74
|
-
|
|
75
|
-
const result = {
|
|
76
|
-
stats,
|
|
77
|
-
warnings: messages ? messages.warnings : "",
|
|
78
|
-
};
|
|
79
|
-
|
|
80
|
-
if (writeStatsJson) {
|
|
81
|
-
bfj
|
|
82
|
-
.write(paths.appBuild + "/bundle-stats.json", stats.toJson())
|
|
83
|
-
.then(() => resolve(result))
|
|
84
|
-
.catch((error) => reject(new Error(error)));
|
|
85
|
-
} else {
|
|
86
|
-
resolve(result);
|
|
87
|
-
}
|
|
88
|
-
});
|
|
89
|
-
});
|
|
90
|
-
}
|
|
91
|
-
build()
|
|
92
|
-
.then(({ warnings }) => {
|
|
93
|
-
if (warnings && warnings.length) {
|
|
94
|
-
console.log(chalk.yellow("Compiled with warnings.\n"));
|
|
95
|
-
console.log(warnings.join("\n\n"));
|
|
96
|
-
} else {
|
|
97
|
-
console.log(chalk.green("Compiled successfully.\n"));
|
|
98
|
-
}
|
|
99
|
-
})
|
|
100
|
-
.catch((err) => {
|
|
101
|
-
console.log(chalk.red("Failed to compile.\n"));
|
|
102
|
-
console.log((err.message || err) + "\n");
|
|
103
|
-
process.exit(1);
|
|
104
|
-
});
|
package/scripts/start.js
DELETED
|
@@ -1,144 +0,0 @@
|
|
|
1
|
-
const fs = require("node:fs");
|
|
2
|
-
const chalk = require("react-dev-utils/chalk");
|
|
3
|
-
const webpack = require("webpack");
|
|
4
|
-
const WebpackDevServer = require("webpack-dev-server");
|
|
5
|
-
const clearConsole = require("react-dev-utils/clearConsole");
|
|
6
|
-
const checkRequiredFiles = require("react-dev-utils/checkRequiredFiles");
|
|
7
|
-
const {
|
|
8
|
-
choosePort,
|
|
9
|
-
createCompiler,
|
|
10
|
-
prepareProxy,
|
|
11
|
-
prepareUrls,
|
|
12
|
-
} = require("react-dev-utils/WebpackDevServerUtils");
|
|
13
|
-
const openBrowser = require("react-dev-utils/openBrowser");
|
|
14
|
-
const semver = require("semver");
|
|
15
|
-
const paths = require("../config/paths");
|
|
16
|
-
const configFactory = require("../config/webpack.config");
|
|
17
|
-
const createDevServerConfig = require("../config/webpackDevServer.config");
|
|
18
|
-
const getClientEnvironment = require("../config/env");
|
|
19
|
-
|
|
20
|
-
const react = require(require.resolve("react", {
|
|
21
|
-
paths: [paths.appPath],
|
|
22
|
-
}));
|
|
23
|
-
const config = require(paths.extension);
|
|
24
|
-
const env = getClientEnvironment(paths.publicUrlOrPath.slice(0, -1));
|
|
25
|
-
const useYarn = fs.existsSync(paths.yarnLockFile);
|
|
26
|
-
const isInteractive = process.stdout.isTTY;
|
|
27
|
-
|
|
28
|
-
// Check required files and exit if missing
|
|
29
|
-
if (!checkRequiredFiles([paths.appHtml, paths.appIndexJs])) {
|
|
30
|
-
process.exit(1);
|
|
31
|
-
}
|
|
32
|
-
|
|
33
|
-
const DEFAULT_PORT = Number.parseInt(process.env.PORT, 10) || config.port;
|
|
34
|
-
const HOST = process.env.HOST || "0.0.0.0";
|
|
35
|
-
|
|
36
|
-
// Check browsers if HOST is set
|
|
37
|
-
if (process.env.HOST) {
|
|
38
|
-
console.log(
|
|
39
|
-
chalk.cyan(
|
|
40
|
-
"Attempting to bind to HOST environment variable: " +
|
|
41
|
-
chalk.yellow(chalk.bold(process.env.HOST)),
|
|
42
|
-
),
|
|
43
|
-
);
|
|
44
|
-
console.log(
|
|
45
|
-
"If this was unintentional, check that you haven't mistakenly set it in your shell.",
|
|
46
|
-
);
|
|
47
|
-
console.log(
|
|
48
|
-
"Learn more here: " + chalk.yellow("https://cra.link/advanced-config"),
|
|
49
|
-
);
|
|
50
|
-
console.log();
|
|
51
|
-
}
|
|
52
|
-
|
|
53
|
-
const checkBrowsers = require("react-dev-utils/browsersHelper").checkBrowsers;
|
|
54
|
-
|
|
55
|
-
if (config.publicPath) {
|
|
56
|
-
checkBrowsers(paths.appPath, isInteractive)
|
|
57
|
-
.then(() => choosePort(HOST, DEFAULT_PORT))
|
|
58
|
-
.then((port) => {
|
|
59
|
-
if (port !== null) {
|
|
60
|
-
const webpackConfig = configFactory("development");
|
|
61
|
-
const protocol = process.env.HTTPS === "true" ? "https" : "http";
|
|
62
|
-
const appName = require(paths.appPackageJson).name;
|
|
63
|
-
const useTypeScript = fs.existsSync(paths.appTsConfig);
|
|
64
|
-
|
|
65
|
-
const urls = prepareUrls(
|
|
66
|
-
protocol,
|
|
67
|
-
HOST,
|
|
68
|
-
port,
|
|
69
|
-
paths.publicUrlOrPath.slice(0, -1),
|
|
70
|
-
);
|
|
71
|
-
|
|
72
|
-
const compiler = createCompiler({
|
|
73
|
-
appName,
|
|
74
|
-
config: webpackConfig,
|
|
75
|
-
urls,
|
|
76
|
-
useYarn,
|
|
77
|
-
useTypeScript,
|
|
78
|
-
webpack,
|
|
79
|
-
});
|
|
80
|
-
|
|
81
|
-
const proxy = require(paths.appPackageJson).proxy;
|
|
82
|
-
const proxyConfig = prepareProxy(
|
|
83
|
-
proxy,
|
|
84
|
-
paths.appPublic,
|
|
85
|
-
paths.publicUrlOrPath,
|
|
86
|
-
);
|
|
87
|
-
|
|
88
|
-
const devServerConfig = {
|
|
89
|
-
...createDevServerConfig(proxyConfig, urls.lanUrlForConfig),
|
|
90
|
-
host: HOST,
|
|
91
|
-
port,
|
|
92
|
-
};
|
|
93
|
-
|
|
94
|
-
const devServer = new WebpackDevServer(devServerConfig, compiler);
|
|
95
|
-
|
|
96
|
-
devServer.startCallback(() => {
|
|
97
|
-
if (isInteractive) {
|
|
98
|
-
clearConsole();
|
|
99
|
-
}
|
|
100
|
-
|
|
101
|
-
if (env.raw.FAST_REFRESH && semver.lt(react.version, "16.10.0")) {
|
|
102
|
-
console.log(
|
|
103
|
-
chalk.yellow(
|
|
104
|
-
"Fast Refresh requires React 16.10 or higher. You are using React " +
|
|
105
|
-
react.version +
|
|
106
|
-
".",
|
|
107
|
-
),
|
|
108
|
-
);
|
|
109
|
-
}
|
|
110
|
-
|
|
111
|
-
console.log(chalk.cyan("Starting the development server...\n"));
|
|
112
|
-
openBrowser(urls.localUrlForBrowser);
|
|
113
|
-
});
|
|
114
|
-
|
|
115
|
-
["SIGINT", "SIGTERM"].forEach((signal) => {
|
|
116
|
-
process.on(signal, () => {
|
|
117
|
-
devServer.close();
|
|
118
|
-
process.exit();
|
|
119
|
-
});
|
|
120
|
-
});
|
|
121
|
-
|
|
122
|
-
if (process.env.CI !== "true") {
|
|
123
|
-
process.stdin.on("end", () => {
|
|
124
|
-
devServer.close();
|
|
125
|
-
process.exit();
|
|
126
|
-
});
|
|
127
|
-
}
|
|
128
|
-
}
|
|
129
|
-
})
|
|
130
|
-
.catch((err) => {
|
|
131
|
-
if (err && err.message) {
|
|
132
|
-
console.error(err.message);
|
|
133
|
-
console.error("Build failed but continuing the process...");
|
|
134
|
-
}
|
|
135
|
-
});
|
|
136
|
-
} else {
|
|
137
|
-
console.log(
|
|
138
|
-
"Missing : " +
|
|
139
|
-
chalk.red('"publicPath": "/"') +
|
|
140
|
-
" in " +
|
|
141
|
-
chalk.yellow("extension") +
|
|
142
|
-
" file ",
|
|
143
|
-
);
|
|
144
|
-
}
|
|
File without changes
|
|
File without changes
|