aaden-cli 1.1.163 → 1.1.166

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.
Files changed (57) hide show
  1. package/.gitattributes +2 -2
  2. package/.github/workflows/submit-message.yml +49 -49
  3. package/AadenDeploy/Utils/LoadingUtils.sh +11 -11
  4. package/AadenDeploy/Utils/MyVersion.php +63 -63
  5. package/AadenDeploy/Utils/configureHttps.sh +5 -5
  6. package/AadenDeploy/Utils/convert.sql +18 -18
  7. package/AadenDeploy/Utils/startsUp.sh +6 -6
  8. package/AadenDeploy/Utils/tseEnable.sh +4 -4
  9. package/AadenDeploy/Utils/tseReady.sh +33 -33
  10. package/AadenDeploy/Utils/updateDataBaseCharSet.sh +5 -5
  11. package/AadenDeploy/Utils/usbPrinterSetup.sh +11 -11
  12. package/AadenDeploy/Utils/wlansetup.sh +12 -12
  13. package/AadenDeploy/aadensetup.sh +144 -144
  14. package/AadenDeploy/files/getFile.sh +27 -27
  15. package/AadenDeploy/lightUpdate.sh +11 -11
  16. package/AadenDeploy/mountTSE.sh +16 -16
  17. package/AadenDeploy/ngrok/ngrok +0 -0
  18. package/AadenDeploy/purge.sql +9 -9
  19. package/AadenDeploy/readme.md +179 -179
  20. package/AadenDeploy/scureSql.sh +91 -91
  21. package/AadenDeploy/update.sh +22 -22
  22. package/AadenDeploy/upgrade.sh +11 -11
  23. package/LICENSE +21 -21
  24. package/README.md +37 -37
  25. package/aws.js +42 -42
  26. package/dist/index.js +741 -741
  27. package/dist/patch/202010030826fixAuthority.sh +30 -30
  28. package/dist/patch/202010291116addUsrLocalBinToRootPath.sh +11 -11
  29. package/dist/patch/202104081433aptUpgrade.sh +2 -2
  30. package/dist/patch/202105052136useAxelToDownload.sh +2 -2
  31. package/dist/patch/202105052148createWorkDir.sh +5 -5
  32. package/dist/patch/202107031201addVersionPHP.sh +8 -8
  33. package/dist/patch/202107081404snapStopRefresh.sh +3 -3
  34. package/dist/patch/202107121635AddPHPExtension.sh +6 -6
  35. package/dist/patch/202107151032SnapStopRefresh2.sh +3 -3
  36. package/dist/patch/202107211049resetAutoUpgradeFixAuthProblem10.sh +4 -3
  37. package/dist/patch/{202204061112ResetCronTab15.sh → 202204061112ResetCronTab19.sh} +5 -5
  38. package/generateFullSql.js +21 -21
  39. package/index.js +656 -656
  40. package/modules/cli-utils.js +42 -42
  41. package/package.json +41 -41
  42. package/patch/202010030826fixAuthority.sh +30 -30
  43. package/patch/202010291116addUsrLocalBinToRootPath.sh +11 -11
  44. package/patch/202104081433aptUpgrade.sh +2 -2
  45. package/patch/202105052136useAxelToDownload.sh +2 -2
  46. package/patch/202105052148createWorkDir.sh +5 -5
  47. package/patch/202107031201addVersionPHP.sh +8 -8
  48. package/patch/202107081404snapStopRefresh.sh +3 -3
  49. package/patch/202107121635AddPHPExtension.sh +6 -6
  50. package/patch/202107151032SnapStopRefresh2.sh +3 -3
  51. package/patch/202107211049resetAutoUpgradeFixAuthProblem10.sh +4 -3
  52. package/patch/{202204061112ResetCronTab15.sh → 202204061112ResetCronTab19.sh} +5 -5
  53. package/sql/1.sql +1378 -1378
  54. package/sql/clean.sql +8 -8
  55. package/test.js +6 -6
  56. package/utils/checkInSet.js +23 -23
  57. package/utils/renameFile.js +19 -19
package/sql/clean.sql CHANGED
@@ -1,8 +1,8 @@
1
- Delete from AttributeGroup where id in (1,2,3,4,10,11,12,13,31,32,33,34,35,36,37,38,50,55,75,80,85,90,100,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128);
2
- Delete from Dish_AttributeGroup where id in (2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2923,2924,2925,2926,2927,2928,2929,2930,2931,2932,2933,2934,2935,2936,2937,2938,2939,2940,2941,2942,2943,2944,2945,2946,2950,2951,2952,2957,2958,2959,2960,2961,2962,2963,2964,3320,3321,3322,3323,3324,3325,3328,3329,3330,3331,3332,3333,3334,3335,3336,3337,3338,3339,3340,3341,3342,3343,3344,3345,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3359,3360,3361,3362,3363,3364,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,3375,3379,3380,3381,3382,3383,3384,3385,3386,3387,3388,3389,3393,3394,3395,3396,3397,3402,3403,3404,3405,3406,3407,3408,3409,3410,3411,3412,3413,3414,3415,3416,3417,3421,3422,3423,3424,3425,3426,3427,3428,3429,3430,3431,3432,3433,3434,3435,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3452,3453,3454,3455,3456,3457,3458,3459,3460,3461,3462,3463,3464,3465,3466,3467,3468,3469,3470,3471,3472,3473,3474,3475,3476,3477,3478,3479,3480,3481,3482,3483,3484,3485,3486,3487,3488,3489,3490,3491,3492,3493,3494,3495,3496,3497,3498,3499,3500,3501,3502,3503,3504,3505,3506,3507,3508,3509,3510,3511,3512,3513,3514,3515,3516,3517,3518,3519,3520,3521,3522,3523,3524,3525,3526,3527,3528,3529,3530,3531,3535,3536,3537,3538,3539,3540,3541,3542,3543,3544,3545,3556,3557,3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571,3572,3573,3574,3575,3576,3577,3578,3579,3580,3581,3582,3583,3584,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3789,3790,3791,3792,3793,3802,3803,3804,3805,3806,3807,3823,3824,3825,3826,3827,3828,3829,3830,3831,3832,3833,3834,3835,3836,3848,3849,3850,3851,3852,3853,3854,3855,3856,3857,3858,3859,3860,3861,3862,3863,3864,3865,3866,3867,3868,3869,3870,3871,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892,3893,3894,3895,3896,3897,3898,3899,3900,3901,3902,3903,3904,3905,3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942,3943,3944,3945,3946,3947,3948,3949,3950,3951,3952,3953,3954,3955,3956,3957,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,4042,4043,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4114,4115,4116,4117,4118,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4159,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4170,4171,4172,4173,4174,4175,4176,4177,4178,4179,4180,4181);
3
- Delete from Category_AttributeGroup where id in (439,444,445,449);
4
- Delete from Attribute where id in (1,2,3,4,5,6,7,8,9,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,37,38,39,40,41,45,48,49,50,51,52,53,57,66,68,69,71,78,79,82,84,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227);
5
- Delete from Dishes where id in (841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978);
6
- Delete from DishesCategory where id in (1096,1097,1098,1099,1100,1101,1102,1104,1106);
7
- Delete from DishesString where id in (1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611);
8
- Delete from DishesCategoryString where id in (383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,407,408,409,413,414,415);
1
+ Delete from AttributeGroup where id in (1,2,3,4,10,11,12,13,31,32,33,34,35,36,37,38,50,55,75,80,85,90,100,107,108,109,110,111,112,113,114,115,116,117,118,119,120,121,122,123,124,125,126,127,128);
2
+ Delete from Dish_AttributeGroup where id in (2893,2894,2895,2896,2897,2898,2899,2900,2901,2902,2903,2904,2905,2906,2907,2908,2909,2910,2911,2912,2913,2914,2915,2916,2917,2918,2919,2923,2924,2925,2926,2927,2928,2929,2930,2931,2932,2933,2934,2935,2936,2937,2938,2939,2940,2941,2942,2943,2944,2945,2946,2950,2951,2952,2957,2958,2959,2960,2961,2962,2963,2964,3320,3321,3322,3323,3324,3325,3328,3329,3330,3331,3332,3333,3334,3335,3336,3337,3338,3339,3340,3341,3342,3343,3344,3345,3346,3347,3348,3349,3350,3351,3352,3353,3354,3355,3356,3359,3360,3361,3362,3363,3364,3365,3366,3367,3368,3369,3370,3371,3372,3373,3374,3375,3379,3380,3381,3382,3383,3384,3385,3386,3387,3388,3389,3393,3394,3395,3396,3397,3402,3403,3404,3405,3406,3407,3408,3409,3410,3411,3412,3413,3414,3415,3416,3417,3421,3422,3423,3424,3425,3426,3427,3428,3429,3430,3431,3432,3433,3434,3435,3439,3440,3441,3442,3443,3444,3445,3446,3447,3448,3449,3450,3451,3452,3453,3454,3455,3456,3457,3458,3459,3460,3461,3462,3463,3464,3465,3466,3467,3468,3469,3470,3471,3472,3473,3474,3475,3476,3477,3478,3479,3480,3481,3482,3483,3484,3485,3486,3487,3488,3489,3490,3491,3492,3493,3494,3495,3496,3497,3498,3499,3500,3501,3502,3503,3504,3505,3506,3507,3508,3509,3510,3511,3512,3513,3514,3515,3516,3517,3518,3519,3520,3521,3522,3523,3524,3525,3526,3527,3528,3529,3530,3531,3535,3536,3537,3538,3539,3540,3541,3542,3543,3544,3545,3556,3557,3558,3559,3560,3561,3562,3563,3564,3565,3566,3567,3568,3569,3570,3571,3572,3573,3574,3575,3576,3577,3578,3579,3580,3581,3582,3583,3584,3585,3586,3587,3588,3589,3590,3591,3592,3593,3594,3595,3596,3597,3598,3599,3600,3601,3602,3603,3604,3605,3606,3607,3608,3609,3610,3611,3612,3613,3614,3615,3616,3617,3618,3619,3620,3621,3622,3623,3624,3625,3626,3627,3628,3629,3630,3631,3632,3789,3790,3791,3792,3793,3802,3803,3804,3805,3806,3807,3823,3824,3825,3826,3827,3828,3829,3830,3831,3832,3833,3834,3835,3836,3848,3849,3850,3851,3852,3853,3854,3855,3856,3857,3858,3859,3860,3861,3862,3863,3864,3865,3866,3867,3868,3869,3870,3871,3872,3873,3874,3875,3876,3877,3878,3879,3880,3881,3882,3883,3884,3885,3886,3887,3888,3889,3890,3891,3892,3893,3894,3895,3896,3897,3898,3899,3900,3901,3902,3903,3904,3905,3906,3907,3908,3909,3910,3911,3912,3913,3914,3915,3916,3917,3918,3919,3920,3921,3922,3923,3924,3925,3926,3927,3928,3929,3930,3931,3932,3933,3934,3935,3936,3937,3938,3939,3940,3941,3942,3943,3944,3945,3946,3947,3948,3949,3950,3951,3952,3953,3954,3955,3956,3957,4032,4033,4034,4035,4036,4037,4038,4039,4040,4041,4042,4043,4048,4049,4050,4051,4052,4053,4054,4055,4056,4057,4058,4059,4060,4061,4062,4063,4064,4065,4066,4067,4068,4069,4070,4071,4072,4073,4074,4075,4076,4077,4078,4114,4115,4116,4117,4118,4125,4126,4127,4128,4129,4130,4131,4132,4133,4134,4135,4136,4137,4138,4139,4140,4141,4142,4143,4144,4145,4146,4147,4148,4149,4150,4151,4152,4153,4154,4155,4156,4157,4158,4159,4160,4161,4162,4163,4164,4165,4166,4167,4168,4169,4170,4171,4172,4173,4174,4175,4176,4177,4178,4179,4180,4181);
3
+ Delete from Category_AttributeGroup where id in (439,444,445,449);
4
+ Delete from Attribute where id in (1,2,3,4,5,6,7,8,9,10,13,14,15,16,17,18,19,20,21,22,23,24,25,26,27,28,29,30,31,32,37,38,39,40,41,45,48,49,50,51,52,53,57,66,68,69,71,78,79,82,84,88,89,90,91,92,93,94,95,96,97,98,99,100,101,102,103,104,105,106,107,108,109,110,111,112,113,114,117,118,119,120,121,122,123,124,125,126,127,128,129,130,131,132,133,134,135,136,137,138,139,140,141,142,143,144,145,146,147,148,149,150,151,152,153,154,155,156,157,158,159,160,161,162,163,164,165,166,167,168,169,170,171,172,173,174,175,176,177,178,179,180,181,182,183,184,185,186,187,188,189,190,191,192,193,194,195,196,197,198,199,200,201,202,203,204,205,206,207,208,209,210,211,212,213,214,215,216,217,218,219,220,221,222,223,224,225,226,227);
5
+ Delete from Dishes where id in (841,842,843,844,845,846,847,848,849,850,851,852,853,854,855,856,857,858,859,860,861,862,863,864,865,866,867,868,869,870,871,872,873,874,875,876,877,878,879,880,881,882,883,884,885,886,887,888,889,890,891,892,893,894,895,896,897,898,899,900,901,902,903,904,905,906,907,908,909,910,911,912,913,914,915,916,917,918,919,920,921,922,923,924,925,926,927,928,929,930,931,932,933,934,935,936,937,938,939,940,941,942,943,944,945,946,947,958,959,960,961,962,963,964,965,966,967,968,969,970,971,972,973,974,975,976,977,978);
6
+ Delete from DishesCategory where id in (1096,1097,1098,1099,1100,1101,1102,1104,1106);
7
+ Delete from DishesString where id in (1198,1199,1200,1201,1202,1203,1204,1205,1206,1207,1208,1209,1210,1211,1212,1213,1214,1215,1216,1217,1218,1219,1220,1221,1222,1223,1224,1225,1226,1227,1228,1229,1230,1231,1232,1233,1234,1235,1236,1237,1238,1239,1240,1241,1242,1243,1244,1245,1246,1247,1248,1249,1250,1251,1252,1253,1254,1255,1256,1257,1258,1259,1260,1261,1262,1263,1264,1265,1266,1267,1268,1269,1270,1271,1272,1273,1274,1275,1276,1277,1278,1279,1280,1281,1282,1283,1284,1285,1286,1287,1288,1289,1290,1291,1292,1293,1294,1295,1296,1297,1298,1299,1300,1301,1302,1303,1304,1305,1306,1307,1308,1309,1310,1311,1312,1313,1314,1315,1316,1317,1318,1319,1320,1321,1322,1323,1324,1325,1326,1327,1328,1329,1330,1331,1332,1333,1334,1335,1336,1337,1338,1339,1340,1341,1342,1343,1344,1345,1346,1347,1348,1349,1350,1351,1352,1353,1354,1355,1356,1357,1358,1359,1360,1361,1362,1363,1364,1365,1366,1367,1368,1369,1370,1371,1372,1373,1374,1375,1376,1377,1378,1379,1380,1381,1382,1383,1384,1385,1386,1387,1388,1389,1390,1391,1392,1393,1394,1395,1396,1397,1398,1399,1400,1401,1402,1403,1404,1405,1406,1407,1408,1409,1410,1411,1412,1413,1414,1415,1416,1417,1418,1419,1420,1421,1422,1423,1424,1425,1426,1427,1428,1429,1430,1431,1432,1433,1434,1435,1436,1437,1438,1439,1440,1441,1442,1443,1444,1445,1446,1447,1448,1449,1450,1451,1452,1453,1454,1455,1456,1457,1458,1459,1460,1461,1462,1463,1464,1465,1466,1467,1468,1469,1470,1471,1472,1473,1474,1475,1476,1477,1478,1479,1480,1481,1482,1483,1484,1485,1486,1487,1488,1489,1490,1491,1492,1493,1494,1495,1496,1497,1498,1499,1500,1501,1502,1503,1504,1505,1506,1507,1508,1509,1510,1511,1512,1513,1514,1515,1516,1517,1518,1549,1550,1551,1552,1553,1554,1555,1556,1557,1558,1559,1560,1561,1562,1563,1564,1565,1566,1567,1568,1569,1570,1571,1572,1573,1574,1575,1576,1577,1578,1579,1580,1581,1582,1583,1584,1585,1586,1587,1588,1589,1590,1591,1592,1593,1594,1595,1596,1597,1598,1599,1600,1601,1602,1603,1604,1605,1606,1607,1608,1609,1610,1611);
8
+ Delete from DishesCategoryString where id in (383,384,385,386,387,388,389,390,391,392,393,394,395,396,397,398,399,400,401,402,403,407,408,409,413,414,415);
package/test.js CHANGED
@@ -1,6 +1,6 @@
1
- let i = 35
2
- while (i > 0) {
3
- //console.log(`http://ik1017.ngrok.aaden.io/QR?TableName=${i}&Base=ik1017.ngrok.aaden.io`)
4
- console.log(i)
5
- i--
6
- }
1
+ let i = 35
2
+ while (i > 0) {
3
+ //console.log(`http://ik1017.ngrok.aaden.io/QR?TableName=${i}&Base=ik1017.ngrok.aaden.io`)
4
+ console.log(i)
5
+ i--
6
+ }
@@ -1,23 +1,23 @@
1
- const a = [
2
- 1, 2, 3, 4, 5, 11, 12, 13, 14, 15, 16, 17,
3
- 18, 21, 22, 23, 24, 26, 28, 29, 31, 42,
4
- 44, 45, 46, 47, 51, 52, 53, 54, 61, 62,
5
- 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
6
- 73, 74, 75, 76, 77, 103, 105, 106,
7
- 107, 109, 110, 111, 112, 114, 115, 116,
8
- 117, 79, 83
9
- ]
10
-
11
- const b = [
12
- 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18, 19,
13
- 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 41, 42, 43,
14
- 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 61, 62, 63, 64,
15
- 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 80,
16
- 81, 82, 79, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 101, 102,
17
- 103, 104, 105, 106, 107,
18
- 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 56, 57
19
- ]
20
-
21
- let difference = a.concat(b).filter(v => !a.includes(v) || !b.includes(v))
22
-
23
- console.log(difference)
1
+ const a = [
2
+ 1, 2, 3, 4, 5, 11, 12, 13, 14, 15, 16, 17,
3
+ 18, 21, 22, 23, 24, 26, 28, 29, 31, 42,
4
+ 44, 45, 46, 47, 51, 52, 53, 54, 61, 62,
5
+ 63, 64, 65, 66, 67, 68, 69, 70, 71, 72,
6
+ 73, 74, 75, 76, 77, 103, 105, 106,
7
+ 107, 109, 110, 111, 112, 114, 115, 116,
8
+ 117, 79, 83
9
+ ]
10
+
11
+ const b = [
12
+ 1, 2, 3, 4, 5, 6, 7, 8, 9, 11, 12, 13, 14, 15, 17, 18, 19,
13
+ 21, 22, 23, 24, 25, 26, 27, 28, 29, 30, 31, 32, 41, 42, 43,
14
+ 44, 45, 46, 47, 48, 49, 50, 51, 52, 53, 54, 61, 62, 63, 64,
15
+ 65, 66, 67, 68, 69, 70, 71, 72, 73, 74, 75, 76, 77, 78, 80,
16
+ 81, 82, 79, 83, 84, 85, 86, 87, 88, 89, 90, 91, 92, 101, 102,
17
+ 103, 104, 105, 106, 107,
18
+ 108, 109, 110, 111, 112, 113, 114, 115, 116, 117, 56, 57
19
+ ]
20
+
21
+ let difference = a.concat(b).filter(v => !a.includes(v) || !b.includes(v))
22
+
23
+ console.log(difference)
@@ -1,19 +1,19 @@
1
- const filePath = 'files/'
2
- const outputPath = 'outputFiles/'
3
-
4
- function getTargetName (originName = '') {
5
- const nameArr = originName.split('.')
6
- console.log(nameArr)
7
- console.log('convert ' + originName + ' ---> ' + nameArr[0] + '.png')
8
- return nameArr[0] + '.png'
9
- }
10
-
11
- const fs = require('fs')
12
- const files = fs.readdirSync(filePath)
13
-
14
- files
15
- .forEach(f => {
16
- fs.copyFileSync(filePath + f, outputPath + getTargetName(f))
17
- })
18
-
19
-
1
+ const filePath = 'files/'
2
+ const outputPath = 'outputFiles/'
3
+
4
+ function getTargetName (originName = '') {
5
+ const nameArr = originName.split('.')
6
+ console.log(nameArr)
7
+ console.log('convert ' + originName + ' ---> ' + nameArr[0] + '.png')
8
+ return nameArr[0] + '.png'
9
+ }
10
+
11
+ const fs = require('fs')
12
+ const files = fs.readdirSync(filePath)
13
+
14
+ files
15
+ .forEach(f => {
16
+ fs.copyFileSync(filePath + f, outputPath + getTargetName(f))
17
+ })
18
+
19
+