From 87a0ca3834bdfa76cf567eeed42d04bb7d338632 Mon Sep 17 00:00:00 2001 From: Jelle Siderius Date: Mon, 23 May 2022 09:23:10 +0200 Subject: [PATCH] Release 0.1.7 --- dist/controllers/mainController.js | 2 +- dist/controllers/mainController.js.map | 2 +- dist/tasks/importTask.js | 2 +- dist/tasks/importTask.js.map | 2 +- dist/tasks/shopwareConfigureTask.js | 2 +- dist/tasks/shopwareConfigureTask.js.map | 2 +- package-lock.json | 2 +- package.json | 2 +- src/controllers/mainController.ts | 2 +- src/tasks/importTask.ts | 2 +- src/tasks/shopwareConfigureTask.ts | 2 +- 11 files changed, 11 insertions(+), 11 deletions(-) diff --git a/dist/controllers/mainController.js b/dist/controllers/mainController.js index 52ae378..b78a8ab 100644 --- a/dist/controllers/mainController.js +++ b/dist/controllers/mainController.js @@ -30,7 +30,7 @@ class MainController { 'databaseFileName': '', 'databaseFullPath': '', 'strip': '', - 'syncImages': false, + 'syncImages': 'no', 'rsyncInstalled': false, 'import': 'no', 'currentFolderIsShopware': false, diff --git a/dist/controllers/mainController.js.map b/dist/controllers/mainController.js.map index c6bbf07..5dda064 100644 --- a/dist/controllers/mainController.js.map +++ b/dist/controllers/mainController.js.map @@ -1 +1 @@ -{"version":3,"file":"mainController.js","sourceRoot":"","sources":["../../src/controllers/mainController.ts"],"names":[],"mappings":";;;AAAA,aAAa;AACb,uFAAmD;AACnD,uCAAgC;AAChC,sFAAsD;AACtD,+CAAwB;AACxB,mDAA4B;AAC5B,mCAA+B;AAC/B,4EAA2C;AAC3C,gEAA+B;AAC/B,kBAAQ,CAAC,cAAc,CAAC,aAAa,EAAE,OAAO,CAAC,yCAAyC,CAAC,CAAC,CAAC;AAG3F,MAAM,cAAc;IAiDhB;QAhDO,WAAM,GAAG;YACZ,cAAc,EAAE;gBACZ,gBAAgB,EAAE,uBAAU,CAAC,GAAG,CAAC,WAAW;gBAC5C,eAAe,EAAE,uBAAU,CAAC,GAAG,CAAC,UAAU;gBAC1C,6BAA6B,E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,CAAC;iBAC3B,IAAI,CAAC,CAAC,OAAO,EAAE,EAAE;gBACd,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,cAAc,GAAG,IAAI,CAAC;YAC/C,CAAC,CAAC,CAAC,KAAK,CAAC,cAAW,CAAC,CAAC,CAAC;YAEvB,8BAA8B;YAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;YAEnD,kDAAkD;YAClD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7G,CAAC,CAAA,CAAA;QApBG,IAAI,CAAC,eAAe,EAAE,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;CAoBJ;AAED,kBAAe,cAAc,CAAA"} \ No newline at end of file +{"version":3,"file":"mainController.js","sourceRoot":"","sources":["../../src/controllers/mainController.ts"],"names":[],"mappings":";;;AAAA,aAAa;AACb,uFAAmD;AACnD,uCAAgC;AAChC,sFAAsD;AACtD,+CAAwB;AACxB,mDAA4B;AAC5B,mCAA+B;AAC/B,4EAA2C;AAC3C,gEAA+B;AAC/B,kBAAQ,CAAC,cAAc,CAAC,aAAa,EAAE,OAAO,CAAC,yCAAyC,CAAC,CAAC,CAAC;AAG3F,MAAM,cAAc;IAiDhB;QAhDO,WAAM,GAAG;YACZ,cAAc,EAAE;gBACZ,gBAAgB,EAAE,uBAAU,CAAC,GAAG,CAAC,WAAW;gBAC5C,eAAe,EAAE,uBAAU,CAAC,GAAG,CAAC,UAAU;gBAC1C,6BAA6B,EAAE,uBAAU,CAAC,OAAO,CAAC,gBAAgB;aACrE;YACD,iBAAiB,EAAE;gBACf,iBAAiB,EAAE,EAAE;gBACrB,cAAc,EAAE,EAAE;gBAClB,cAAc,EAAE,EAAE;aACrB;YACD,UAAU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cAAW,CAAC,CAAC,CAAC;YAEvB,8BAA8B;YAC9B,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,GAAG,OAAO,CAAC,GAAG,EAAE,CAAC;YAEnD,kDAAkD;YAClD,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,iBAAiB,GAAG,IAAI,CAAC,QAAQ,CAAC,IAAI,CAAC,OAAO,CAAC,IAAI,CAAC,MAAM,CAAC,QAAQ,CAAC,aAAa,CAAC,CAAC,CAAC;QAC7G,CAAC,CAAA,CAAA;QApBG,IAAI,CAAC,eAAe,EAAE,CAAC,IAAI,EAAE,CAAC;IAClC,CAAC;CAoBJ;AAED,kBAAe,cAAc,CAAA"} \ No newline at end of file diff --git a/dist/tasks/importTask.js b/dist/tasks/importTask.js index 53a653e..ebbb9ea 100644 --- a/dist/tasks/importTask.js +++ b/dist/tasks/importTask.js @@ -51,7 +51,7 @@ class ImportTask { yield console_1.localhostShopwareRootExec(`mysql -u ${config.localhost.username} --password=${config.localhost.password} ${config.localhost.database} --force < ${config.settings.databaseFullPath}/${config.settings.databaseFileName}.sql`, config, true); }) }); - if (config.settings.syncImages) { + if (config.settings.syncImages == 'yes') { this.importTasks.push({ title: 'Synchronizing public/media & public/thumbnail', task: () => tslib_1.__awaiter(this, void 0, void 0, function* () { diff --git a/dist/tasks/importTask.js.map b/dist/tasks/importTask.js.map index 2d304a6..e687680 100644 --- a/dist/tasks/importTask.js.map +++ b/dist/tasks/importTask.js.map @@ -1 +1 @@ -{"version":3,"file":"importTask.js","sourceRoot":"","sources":["../../src/tasks/importTask.ts"],"names":[],"mappings":";;;AAAA,8CAAmF;AAGnF,MAAM,UAAU;IAAhB;QACY,gBAAW,GAAG,EAAE,CAAC;QAEzB,cAAS,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACzC,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC;QAChB,CAAC,C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oBACtD,IAAI,EAAE,GAAwB,EAAE;wBAC5B,aAAa;wBACb,MAAM,mCAAyB,CAAC,yBAAyB,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,KAAK,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,MAAM,IAAI,MAAM,CAAC,eAAe,CAAC,YAAY,+BAA+B,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;wBAEpQ,iBAAiB;wBACjB,MAAM,mCAAyB,CAAC,yBAAyB,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,IAAI,KAAK,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,QAAQ,IAAI,MAAM,CAAC,SAAS,CAAC,YAAY,CAAC,MAAM,IAAI,MAAM,CAAC,eAAe,CAAC,YAAY,uCAAuC,EAAE,MAAM,EAAE,IAAI,CAAC,CAAC;oBAChR,CAAC,CAAA;iBACJ,CACJ,CAAC;aACL;YAED,IAAI,CAAC,WAAW,CAAC,IAAI,CACjB;gBACI,KAAK,EAAE,aAAa;gBACpB,IAAI,EAAE,GAAwB,EAAE;oBAC5B,wBAAwB;oBACxB,MAAM,mCAAyB,CAAC,MAAM,MAAM,CAAC,QAAQ,CAAC,gBAAgB,MAAM,EAAE,MAAM,CAAC,CAAC;gBAC1F,CAAC,CAAA;aACJ,CACJ,CAAC;QACN,CAAC,CAAA,CAAA;IACL,CAAC;CAAA;AAED,kBAAe,UAAU,CAAA"} \ No newline at end of file diff --git a/dist/tasks/shopwareConfigureTask.js b/dist/tasks/shopwareConfigureTask.js index dd51b1d..5c5e361 100644 --- a/dist/tasks/shopwareConfigureTask.js +++ b/dist/tasks/shopwareConfigureTask.js @@ -30,7 +30,7 @@ class ShopwareConfigureTask { } }) }); - if (!config.settings.syncImages) { + if (config.settings.syncImages == 'no') { this.configureTasks.push({ title: "Emptying media tables", task: () => tslib_1.__awaiter(this, void 0, void 0, function* () { diff --git a/dist/tasks/shopwareConfigureTask.js.map b/dist/tasks/shopwareConfigureTask.js.map index a4b9961..faf92a1 100644 --- a/dist/tasks/shopwareConfigureTask.js.map +++ b/dist/tasks/shopwareConfigureTask.js.map @@ -1 +1 @@ -{"version":3,"file":"shopwareConfigureTask.js","sourceRoot":"","sources":["../../src/tasks/shopwareConfigureTask.ts"],"names":[],"mappings":";;;AAAA,8CAA2F;AAE3F,uFAAmD;AAEnD,MAAM,qBAAqB;IAA3B;QACY,mBAAc,GAAG,EAAE,CAAC;QAE5B,cAAS,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACzC,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC;QAChB,CAAC,CAAA,CAAA;QAED,YAAY;QACZ,aAAQ,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACxC,IAAI,CAAC,GAAG,CACJ;gBACI,KAAK,EAAE,8CAA8C;gBACrD,IAAI,EAAE,CAAC,GAAQ,EAAE,IAAS,EAAS,EAAE,CACrC,IAAI,CAAC,QAAQ,CACT,IAAI,CAAC,cAAc,CACtB;aACJ,CACJ,CAAA;YAED,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,gCAAgC;gBACvC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,MAAM,mCAAyB,CAAC,2CAA2C,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC;oBAEjH,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE;wBACxB,MAAM,wCAA8B,CAAC,0EAA0E,EAAE,MAAM,CAAC,CAAC;wBACzH,MAAM,CAAC,aAAa,CAAC,YAAY,GAAG,WAAW,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,CAAC;qBAC/E;yBAAM;wBACH,MAAM,wCAA8B,CAAC,0EAA0E,EAAE,MAAM,CAAC,CAAC;wBACzH,MAAM,C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AC,CAAC;gBACvE,CAAC,CAAA;aACJ,CACJ,CAAC;YAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,4BAA4B;gBACnC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,mDAAmD;oBACnD,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;gBACvE,CAAC,CAAA;aACJ,CACJ,CAAC;QACN,CAAC,CAAA,CAAA;IACL,CAAC;CAAA;AAED,kBAAe,qBAAqB,CAAA"} \ No newline at end of file +{"version":3,"file":"shopwareConfigureTask.js","sourceRoot":"","sources":["../../src/tasks/shopwareConfigureTask.ts"],"names":[],"mappings":";;;AAAA,8CAA2F;AAE3F,uFAAmD;AAEnD,MAAM,qBAAqB;IAA3B;QACY,mBAAc,GAAG,EAAE,CAAC;QAE5B,cAAS,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACzC,MAAM,IAAI,CAAC,QAAQ,CAAC,IAAI,EAAE,MAAM,CAAC,CAAC;YAClC,OAAO,IAAI,CAAC;QAChB,CAAC,CAAA,CAAA;QAED,YAAY;QACZ,aAAQ,GAAG,CAAO,IAAS,EAAE,MAAW,EAAE,EAAE;YACxC,IAAI,CAAC,GAAG,CACJ;gBACI,KAAK,EAAE,8CAA8C;gBACrD,IAAI,EAAE,CAAC,GAAQ,EAAE,IAAS,EAAS,EAAE,CACrC,IAAI,CAAC,QAAQ,CACT,IAAI,CAAC,cAAc,CACtB;aACJ,CACJ,CAAA;YAED,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,gCAAgC;gBACvC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,MAAM,mCAAyB,CAAC,2CAA2C,MAAM,CAAC,SAAS,CAAC,SAAS,EAAE,EAAE,MAAM,CAAC,CAAC;oBAEjH,IAAI,MAAM,CAAC,SAAS,CAAC,KAAK,EAAE;wBACxB,MAAM,wCAA8B,CAAC,0EAA0E,EAAE,MA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B;gBACI,KAAK,EAAE,0BAA0B;gBACjC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,UAAU;oBACV,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;oBACnE,gBAAgB;oBAChB,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;gBACvE,CAAC,CAAA;aACJ,CACJ,CAAC;YAEF,IAAI,CAAC,cAAc,CAAC,IAAI,CACpB;gBACI,KAAK,EAAE,4BAA4B;gBACnC,IAAI,EAAE,GAAwB,EAAE;oBAC5B,mDAAmD;oBACnD,MAAM,mCAAyB,CAAC,yBAAyB,EAAE,MAAM,CAAC,CAAC;gBACvE,CAAC,CAAA;aACJ,CACJ,CAAC;QACN,CAAC,CAAA,CAAA;IACL,CAAC;CAAA;AAED,kBAAe,qBAAqB,CAAA"} \ No newline at end of file diff --git a/package-lock.json b/package-lock.json index cc0dc93..48bc248 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1,6 +1,6 @@ { "name": "sw-db-sync", - "version": "0.1.6", + "version": "0.1.7", "lockfileVersion": 1, "requires": true, "dependencies": { diff --git a/package.json b/package.json index 9a8eb65..a193914 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sw-db-sync", - "version": "0.1.6", + "version": "0.1.7", "description": "Database synchronizer for Shopware 6", "author": { "name": "Jelle Siderius" diff --git a/src/controllers/mainController.ts b/src/controllers/mainController.ts index a7c7946..d87e6cd 100644 --- a/src/controllers/mainController.ts +++ b/src/controllers/mainController.ts @@ -28,7 +28,7 @@ class MainController { 'databaseFileName': '', 'databaseFullPath': '', 'strip': '', - 'syncImages': false, + 'syncImages': 'no', 'rsyncInstalled': false, 'import': 'no', 'currentFolderIsShopware': false, diff --git a/src/tasks/importTask.ts b/src/tasks/importTask.ts index 0ea736d..1ff624b 100644 --- a/src/tasks/importTask.ts +++ b/src/tasks/importTask.ts @@ -71,7 +71,7 @@ class ImportTask { } ); - if (config.settings.syncImages) { + if (config.settings.syncImages == 'yes') { this.importTasks.push( { title: 'Synchronizing public/media & public/thumbnail', diff --git a/src/tasks/shopwareConfigureTask.ts b/src/tasks/shopwareConfigureTask.ts index b664fc7..a41d825 100644 --- a/src/tasks/shopwareConfigureTask.ts +++ b/src/tasks/shopwareConfigureTask.ts @@ -39,7 +39,7 @@ class ShopwareConfigureTask { } ); - if (!config.settings.syncImages) { + if (config.settings.syncImages == 'no') { this.configureTasks.push( { title: "Emptying media tables",