@localazy/strapi-plugin 0.2.13 → 1.0.0-beta.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/README.md +3 -1
- package/dist/_chunks/App-BSFfgZKU.mjs +5278 -0
- package/dist/_chunks/App-D1QaIMHX.js +5278 -0
- package/dist/_chunks/ContentTransferSetup-DHXJIxAp.js +1552 -0
- package/dist/_chunks/ContentTransferSetup-DtjcF_jM.mjs +1550 -0
- package/dist/_chunks/GlobalSettings-BON3kjHK.js +228 -0
- package/dist/_chunks/GlobalSettings-BcdibqNS.mjs +228 -0
- package/dist/_chunks/LanguagesSelector-BeijBEjg.js +47 -0
- package/dist/_chunks/LanguagesSelector-fyAIUp7M.mjs +48 -0
- package/dist/_chunks/en-BTf8goGM.mjs +8 -0
- package/dist/_chunks/en-CRtsEFtl.js +8 -0
- package/dist/_chunks/fr-C8Qw4iPZ.js +4 -0
- package/dist/_chunks/fr-hkSxFuzl.mjs +4 -0
- package/dist/_chunks/has-model-changed-BMCQX2Dd.js +316 -0
- package/dist/_chunks/has-model-changed-Dvtzpc9v.mjs +317 -0
- package/dist/_chunks/index-BQw2qi2G.js +2679 -0
- package/dist/_chunks/index-CN3Gyh5F.mjs +2678 -0
- package/dist/_chunks/isEqual-B-YVnzrp.js +205 -0
- package/dist/_chunks/isEqual-CEyT97-3.mjs +206 -0
- package/dist/_chunks/set-DUdH3vE5.js +54557 -0
- package/dist/_chunks/set-DulHAQhq.mjs +54542 -0
- package/dist/admin/index.js +4 -0
- package/dist/admin/index.mjs +5 -0
- package/dist/admin/src/components/Initializer.d.ts +5 -0
- package/dist/admin/src/config/development/index.d.ts +15 -0
- package/dist/admin/src/config/example/index.example.d.ts +15 -0
- package/dist/admin/src/config/index.d.ts +15 -0
- package/dist/admin/src/config/local/index.d.ts +15 -0
- package/dist/admin/src/config/production/index.d.ts +15 -0
- package/dist/admin/src/i18n.d.ts +2 -0
- package/dist/admin/src/index.d.ts +10 -0
- package/dist/admin/src/modules/@common/api/strapi-api-base.d.ts +6 -0
- package/dist/admin/src/modules/@common/components/Icons/House.d.ts +2 -0
- package/dist/admin/src/modules/@common/components/Icons/Localazy.d.ts +2 -0
- package/dist/admin/src/modules/@common/components/LanguagesSelector.d.ts +11 -0
- package/dist/admin/src/modules/@common/components/PluginPageLoader.d.ts +2 -0
- package/dist/admin/src/modules/@common/components/SideNav.d.ts +2 -0
- package/dist/admin/src/modules/@common/components/TransferReport.d.ts +5 -0
- package/dist/admin/src/modules/@common/functions/flatten-deep.d.ts +2 -0
- package/dist/admin/src/modules/@common/locale/en.d.ts +14 -0
- package/dist/admin/src/modules/@common/models/supported-content-type-fields.d.ts +2 -0
- package/dist/admin/src/modules/@common/models/supported-custom-field-plugins.d.ts +2 -0
- package/dist/admin/src/modules/@common/services/i18n-service.d.ts +3 -0
- package/dist/admin/src/modules/@common/services/plugin.service.d.ts +3 -0
- package/dist/admin/src/modules/@common/services/product-analytics-service.d.ts +14 -0
- package/dist/admin/src/modules/@common/services/project-service.d.ts +4 -0
- package/dist/admin/src/modules/@common/services/user-service.d.ts +5 -0
- package/dist/admin/src/modules/@common/utils/are-locales-compatible.d.ts +2 -0
- package/dist/admin/src/modules/@common/utils/format-number.d.ts +2 -0
- package/dist/admin/src/modules/@common/utils/get-default-locale.d.ts +2 -0
- package/dist/admin/src/modules/@common/utils/history.d.ts +2 -0
- package/dist/admin/src/modules/@common/utils/is-plugin-route.d.ts +2 -0
- package/dist/admin/src/modules/@common/utils/iso-locales-utils.d.ts +3 -0
- package/dist/admin/src/modules/@common/utils/redirect-to-plugin-route.d.ts +13 -0
- package/dist/admin/src/modules/@common/utils/sort-by-model-name.d.ts +2 -0
- package/dist/admin/src/modules/@common/utils/use-header-subtitle.d.ts +2 -0
- package/dist/admin/src/modules/@common/utils/use-header-title.d.ts +2 -0
- package/dist/admin/src/modules/@common/utils/use-nav.d.ts +11 -0
- package/dist/admin/src/modules/alerts/constants/channels.d.ts +1 -0
- package/dist/admin/src/modules/alerts/constants/events.d.ts +4 -0
- package/dist/admin/src/modules/alerts/services/alerts-service.d.ts +8 -0
- package/dist/admin/src/modules/localazy-download/locale/en.d.ts +24 -0
- package/dist/admin/src/modules/localazy-download/services/download-alerts-service.d.ts +5 -0
- package/dist/admin/src/modules/localazy-download/services/localazy-download-service.d.ts +3 -0
- package/dist/admin/src/modules/localazy-upload/components/ReadDocsButton.d.ts +3 -0
- package/dist/admin/src/modules/localazy-upload/locale/en.d.ts +19 -0
- package/dist/admin/src/modules/localazy-upload/services/localazy-upload-service.d.ts +3 -0
- package/dist/admin/src/modules/localazy-upload/services/upload-alerts-service.d.ts +5 -0
- package/dist/admin/src/modules/login/components/FetchIdentity.d.ts +3 -0
- package/dist/admin/src/modules/login/components/LoginButton.d.ts +12 -0
- package/dist/admin/src/modules/login/components/LogoutButton.d.ts +6 -0
- package/dist/admin/src/modules/login/locale/en.d.ts +8 -0
- package/dist/admin/src/modules/login/services/localazy-login-service.d.ts +4 -0
- package/dist/admin/src/modules/overview/components/OverviewItem.d.ts +7 -0
- package/dist/admin/src/modules/overview/components/OverviewItemLink.d.ts +7 -0
- package/dist/admin/src/modules/overview/components/PrerequisitiesInfo.d.ts +3 -0
- package/dist/admin/src/modules/overview/locale/en.d.ts +14 -0
- package/dist/admin/src/modules/plugin-settings/components/ContentTransferSetupEmpty.d.ts +2 -0
- package/dist/admin/src/modules/plugin-settings/components/Tree.d.ts +8 -0
- package/dist/admin/src/modules/plugin-settings/components/TreeItem.d.ts +10 -0
- package/dist/admin/src/modules/plugin-settings/functions/build-content-transfer-setup-schema.d.ts +2 -0
- package/dist/admin/src/modules/plugin-settings/functions/get-content-transfer-setup-keys-sets.d.ts +8 -0
- package/dist/admin/src/modules/plugin-settings/functions/has-model-changed.d.ts +6 -0
- package/dist/admin/src/modules/plugin-settings/locale/en.d.ts +49 -0
- package/dist/admin/src/modules/plugin-settings/services/plugin-settings-service.d.ts +6 -0
- package/dist/admin/src/modules/plugin-settings/services/strapi-model-service.d.ts +4 -0
- package/dist/admin/src/modules/plugin-settings/services/strapi-users-service.d.ts +3 -0
- package/dist/admin/src/modules/plugin-settings/utils/array-of-models-to-object.d.ts +2 -0
- package/dist/admin/src/modules/plugin-settings/utils/find-model-value-by-key.d.ts +2 -0
- package/dist/admin/src/modules/plugin-settings/utils/get-filtered-models-schemas.d.ts +7 -0
- package/dist/admin/src/modules/plugin-settings/utils/get-models-tree.d.ts +5 -0
- package/dist/admin/src/modules/strapi/utils/get-default-theme.d.ts +3 -0
- package/dist/admin/src/modules/user/model/localazy-identity.d.ts +15 -0
- package/dist/admin/src/modules/user/services/localazy-user-service.d.ts +6 -0
- package/dist/admin/src/pages/App.d.ts +3 -0
- package/dist/admin/src/pages/ContentTransferSetup.d.ts +4 -0
- package/dist/admin/src/pages/Download.d.ts +7 -0
- package/dist/admin/src/pages/GlobalSettings.d.ts +4 -0
- package/dist/admin/src/pages/HomePage.d.ts +2 -0
- package/dist/admin/src/pages/Login.d.ts +8 -0
- package/dist/admin/src/pages/Overview.d.ts +8 -0
- package/dist/admin/src/pages/Upload.d.ts +7 -0
- package/dist/admin/src/pluginId.d.ts +2 -0
- package/dist/admin/src/plugins/generic-connector-client.d.ts +3 -0
- package/dist/admin/src/state/localazy-identity.d.ts +13 -0
- package/dist/admin/src/utils/getTranslation.d.ts +2 -0
- package/dist/server/index.js +26000 -0
- package/dist/server/index.mjs +25989 -0
- package/dist/server/src/bootstrap.d.ts +5 -0
- package/dist/server/src/config/core/config.d.ts +1 -0
- package/dist/server/src/config/development/index.d.ts +15 -0
- package/dist/server/src/config/example/index.example.d.ts +15 -0
- package/dist/server/src/config/index.d.ts +18 -0
- package/dist/server/src/config/local/index.d.ts +15 -0
- package/dist/server/src/config/production/index.d.ts +15 -0
- package/dist/server/src/constants/channels.d.ts +3 -0
- package/dist/server/src/constants/events.d.ts +6 -0
- package/dist/server/src/content-types/index.d.ts +2 -0
- package/dist/server/src/controllers/index.d.ts +43 -0
- package/dist/server/src/controllers/localazy-auth-controller.d.ts +8 -0
- package/dist/server/src/controllers/localazy-project-controller.d.ts +7 -0
- package/dist/server/src/controllers/localazy-transfer-controller.d.ts +8 -0
- package/dist/server/src/controllers/localazy-user-controller.d.ts +9 -0
- package/dist/server/src/controllers/plugin-settings-controller.d.ts +10 -0
- package/dist/server/src/controllers/strapi-controller.d.ts +10 -0
- package/dist/server/src/core/index.d.ts +71 -0
- package/dist/server/src/db/model/content-transfer-setup.d.ts +4 -0
- package/dist/server/src/db/model/localazy-user.d.ts +17 -0
- package/dist/server/src/db/model/plugin-settings.d.ts +5 -0
- package/dist/server/src/db/model/utils/get-strapi-store.d.ts +26 -0
- package/dist/server/src/destroy.d.ts +5 -0
- package/dist/server/src/functions/should-set-downloaded-property.d.ts +12 -0
- package/dist/server/src/index.d.ts +189 -0
- package/dist/server/src/lifecycles/deep-populate-hook.d.ts +20 -0
- package/dist/server/src/lifecycles/deprecate-event-entry-in-localazy-hook.d.ts +4 -0
- package/dist/server/src/lifecycles/upload-event-entry-to-localazy-hook.d.ts +12 -0
- package/dist/server/src/middlewares/index.d.ts +2 -0
- package/dist/server/src/models/plugin/content-transfer-setup.d.ts +13 -0
- package/dist/server/src/models/strapi/locale.d.ts +8 -0
- package/dist/server/src/policies/index.d.ts +2 -0
- package/dist/server/src/register.d.ts +5 -0
- package/dist/server/src/routes/index.d.ts +25 -0
- package/dist/server/src/routes/localazy-auth-routes.d.ts +9 -0
- package/dist/server/src/routes/localazy-project-routes.d.ts +9 -0
- package/dist/server/src/routes/localazy-transfer-routes.d.ts +9 -0
- package/dist/server/src/routes/localazy-user-routes.d.ts +9 -0
- package/dist/server/src/routes/plugin-settings-routes.d.ts +9 -0
- package/dist/server/src/routes/strapi-routes.d.ts +9 -0
- package/dist/server/src/services/helpers/job-notification-service.d.ts +14 -0
- package/dist/server/src/services/helpers/plugin-settings-service-helper.d.ts +16 -0
- package/dist/server/src/services/index.d.ts +92 -0
- package/dist/server/src/services/localazy-pubapi-service.d.ts +12 -0
- package/dist/server/src/services/localazy-transfer-download-service.d.ts +11 -0
- package/dist/server/src/services/localazy-transfer-upload-service.d.ts +11 -0
- package/dist/server/src/services/localazy-upload-service.d.ts +28 -0
- package/dist/server/src/services/localazy-user-service.d.ts +11 -0
- package/dist/server/src/services/plugin-settings-service.d.ts +16 -0
- package/dist/server/src/services/strapi-i18n-service.d.ts +19 -0
- package/dist/server/src/services/strapi-localazy-i18n-service.d.ts +9 -0
- package/dist/server/src/services/strapi-service.d.ts +10 -0
- package/dist/server/src/utils/delay.d.ts +1 -0
- package/dist/server/src/utils/drop-property-deep.d.ts +1 -0
- package/dist/server/src/utils/flatten-object.d.ts +2 -0
- package/dist/server/src/utils/generate-random-id.d.ts +2 -0
- package/dist/server/src/utils/get-full-populate-localazy-download-object.d.ts +17 -0
- package/dist/server/src/utils/get-full-populate-localazy-upload-object.d.ts +9 -0
- package/dist/server/src/utils/get-full-populate-object.d.ts +17 -0
- package/dist/server/src/utils/get-main-keys-of-nested-array-objects.d.ts +2 -0
- package/dist/server/src/utils/get-picked-flatten-keys-for-hook-entry.d.ts +5 -0
- package/dist/server/src/utils/intl-display-name.d.ts +1 -0
- package/dist/server/src/utils/is-generally-applicable-content-type.d.ts +2 -0
- package/dist/server/src/utils/is-localazy-applicable-content-type.d.ts +2 -0
- package/dist/server/src/utils/iso-locales-utils.d.ts +3 -0
- package/dist/server/src/utils/localazy-api-client-factory.d.ts +3 -0
- package/dist/server/src/utils/localazy-generic-connector-client-factory.d.ts +3 -0
- package/dist/server/src/utils/model-utils.d.ts +7 -0
- package/dist/server/src/utils/omit-deep.d.ts +2 -0
- package/dist/server/src/utils/parsed-localazy-entry-to-create-entry.d.ts +7 -0
- package/dist/server/src/utils/parsed-localazy-entry-to-update-entry.d.ts +1 -0
- package/dist/server/src/utils/pick-entries.d.ts +2 -0
- package/dist/server/src/utils/populate-create-update-entry-with-base-entry.d.ts +1 -0
- package/dist/server/src/utils/request-initiator-helper.d.ts +9 -0
- package/dist/server/src/utils/reset-array-keys-deep.d.ts +1 -0
- package/dist/server/src/utils/transfer-setup-utils.d.ts +7 -0
- package/install/index.mjs +88 -34
- package/install/vite.config.example.js +40 -0
- package/install/vite.config.example.ts +41 -0
- package/install/{webpack.example.js → webpack.config.example.js} +2 -2
- package/install/webpack.config.example.ts +30 -0
- package/package.json +93 -55
- package/.babelrc +0 -7
- package/.eslintrc +0 -13
- package/.github/workflows/qa.yml +0 -25
- package/.github/workflows/release.yml +0 -46
- package/.nvmrc +0 -1
- package/.strapi-updater.json +0 -4
- package/CHANGELOG.md +0 -68
- package/LICENSE +0 -21
- package/admin/src/components/Initializer/index.js +0 -26
- package/admin/src/components/PluginIcon/index.js +0 -14
- package/admin/src/config/development/index.js +0 -14
- package/admin/src/config/example/index.js +0 -14
- package/admin/src/config/index.js +0 -19
- package/admin/src/config/local/index.js +0 -14
- package/admin/src/config/production/index.js +0 -15
- package/admin/src/i18n.js +0 -41
- package/admin/src/index.js +0 -138
- package/admin/src/modules/@common/components/Icons/Localazy/index.js +0 -12
- package/admin/src/modules/@common/components/LanguagesSelector/index.js +0 -67
- package/admin/src/modules/@common/components/PluginPageLoader/index.js +0 -20
- package/admin/src/modules/@common/components/SideNav/index.js +0 -46
- package/admin/src/modules/@common/components/TransferReport/index.js +0 -53
- package/admin/src/modules/@common/locale/en.js +0 -14
- package/admin/src/modules/@common/models/supported-content-type-fields.js +0 -9
- package/admin/src/modules/@common/models/supported-custom-field-plugins.js +0 -6
- package/admin/src/modules/@common/services/i18n-service.js +0 -15
- package/admin/src/modules/@common/services/plugin.service.js +0 -16
- package/admin/src/modules/@common/services/product-analytics-service.js +0 -86
- package/admin/src/modules/@common/services/project-service.js +0 -15
- package/admin/src/modules/@common/services/user-service.js +0 -38
- package/admin/src/modules/@common/utils/__tests__/iso-locales-utils.test.js +0 -102
- package/admin/src/modules/@common/utils/are-locales-compatible.js +0 -42
- package/admin/src/modules/@common/utils/format-number.js +0 -1
- package/admin/src/modules/@common/utils/functions/flatten-deep.js +0 -23
- package/admin/src/modules/@common/utils/get-default-locale.js +0 -32
- package/admin/src/modules/@common/utils/get-header-subtitle.js +0 -21
- package/admin/src/modules/@common/utils/get-header-title.js +0 -24
- package/admin/src/modules/@common/utils/get-nav.js +0 -35
- package/admin/src/modules/@common/utils/history.js +0 -6
- package/admin/src/modules/@common/utils/is-plugin-route.js +0 -15
- package/admin/src/modules/@common/utils/iso-locales-utils.js +0 -58
- package/admin/src/modules/@common/utils/redirect-to-plugin-route.js +0 -22
- package/admin/src/modules/@common/utils/sort-by-model-name.js +0 -10
- package/admin/src/modules/alerts/constants/channels.js +0 -1
- package/admin/src/modules/alerts/constants/events.js +0 -4
- package/admin/src/modules/alerts/services/alerts-service.js +0 -41
- package/admin/src/modules/localazy-download/locale/en.js +0 -25
- package/admin/src/modules/localazy-download/services/download-alerts-service.js +0 -12
- package/admin/src/modules/localazy-download/services/localazy-download-service.js +0 -16
- package/admin/src/modules/localazy-upload/components/ReadDocsButton.js +0 -20
- package/admin/src/modules/localazy-upload/locale/en.js +0 -20
- package/admin/src/modules/localazy-upload/services/localazy-upload-service.js +0 -16
- package/admin/src/modules/localazy-upload/services/upload-alerts-service.js +0 -12
- package/admin/src/modules/login/components/LoginButton/index.js +0 -55
- package/admin/src/modules/login/components/LogoutButton/index.js +0 -49
- package/admin/src/modules/login/locale/en.js +0 -7
- package/admin/src/modules/login/services/localazy-login-service.js +0 -29
- package/admin/src/modules/plugin-settings/components/ContentTransferSetup/index.js +0 -308
- package/admin/src/modules/plugin-settings/components/ContentTransferSetupEmpty/index.js +0 -86
- package/admin/src/modules/plugin-settings/components/GlobalSettings/index.js +0 -269
- package/admin/src/modules/plugin-settings/components/Tree/index.js +0 -145
- package/admin/src/modules/plugin-settings/components/TreeItem/index.js +0 -48
- package/admin/src/modules/plugin-settings/functions/build-content-transfer-setup-schema.js +0 -57
- package/admin/src/modules/plugin-settings/functions/get-content-transfer-setup-keys-sets.js +0 -85
- package/admin/src/modules/plugin-settings/functions/has-model-changed.js +0 -75
- package/admin/src/modules/plugin-settings/locale/en.js +0 -61
- package/admin/src/modules/plugin-settings/services/plugin-settings-service.js +0 -55
- package/admin/src/modules/plugin-settings/services/strapi-model-service.js +0 -26
- package/admin/src/modules/plugin-settings/services/strapi-users-service.js +0 -26
- package/admin/src/modules/plugin-settings/utils/__tests__/get-models-tree.test.js +0 -135
- package/admin/src/modules/plugin-settings/utils/array-of-models-to-object.js +0 -6
- package/admin/src/modules/plugin-settings/utils/find-model-value-by-key.js +0 -8
- package/admin/src/modules/plugin-settings/utils/get-filtered-models-schemas.js +0 -31
- package/admin/src/modules/plugin-settings/utils/get-models-tree.js +0 -94
- package/admin/src/modules/settings/components/OverviewItem/index.js +0 -44
- package/admin/src/modules/settings/components/OverviewItemLink/index.js +0 -34
- package/admin/src/modules/settings/components/PrerequisitiesInfo/index.js +0 -28
- package/admin/src/modules/settings/locale/en.js +0 -13
- package/admin/src/modules/user/model/localazy-identity.js +0 -14
- package/admin/src/modules/user/services/localazy-user-service.js +0 -38
- package/admin/src/pages/App/index.js +0 -154
- package/admin/src/pages/Download/index.js +0 -280
- package/admin/src/pages/Index/index.js +0 -8
- package/admin/src/pages/Login/index.js +0 -109
- package/admin/src/pages/PluginSettings/index.js +0 -56
- package/admin/src/pages/Settings/index.js +0 -132
- package/admin/src/pages/Upload/index.js +0 -241
- package/admin/src/pluginId.js +0 -5
- package/admin/src/plugins/generic-connector-client.js +0 -9
- package/admin/src/state/localazy-identity.js +0 -29
- package/admin/src/tests/fixtures/all-models.js +0 -877
- package/admin/src/tests/fixtures/restaurant-model.js +0 -230
- package/admin/src/translations/en.json +0 -4
- package/admin/src/translations/fr.json +0 -1
- package/admin/src/utils/createAxiosInstance.js +0 -54
- package/admin/src/utils/getTrad.js +0 -5
- package/jest.config.js +0 -0
- package/server/bootstrap.js +0 -63
- package/server/config/development/index.js +0 -16
- package/server/config/example/index.js +0 -16
- package/server/config/index.js +0 -20
- package/server/config/local/index.js +0 -16
- package/server/config/production/index.js +0 -17
- package/server/config/schema.graphql.js +0 -21
- package/server/constants/channels.js +0 -3
- package/server/constants/events.js +0 -6
- package/server/content-types/index.js +0 -3
- package/server/controllers/index.js +0 -17
- package/server/controllers/localazy-auth-controller.js +0 -22
- package/server/controllers/localazy-project-controller.js +0 -21
- package/server/controllers/localazy-transfer-controller.js +0 -62
- package/server/controllers/localazy-user-controller.js +0 -24
- package/server/controllers/plugin-settings-controller.js +0 -31
- package/server/controllers/strapi-controller.js +0 -27
- package/server/db/model/content-transfer-setup.js +0 -13
- package/server/db/model/localazy-user.js +0 -23
- package/server/db/model/plugin-settings.js +0 -13
- package/server/db/model/utils/get-strapi-store.js +0 -9
- package/server/destroy.js +0 -5
- package/server/functions/should-set-downloaded-property.js +0 -94
- package/server/index.js +0 -25
- package/server/lifecycles/deep-populate-hook.js +0 -12
- package/server/lifecycles/deprecate-event-entry-in-localazy-hook.js +0 -73
- package/server/lifecycles/upload-event-entry-to-localazy-hook.js +0 -36
- package/server/middlewares/index.js +0 -7
- package/server/middlewares/verify-webhook.js +0 -76
- package/server/models/supported-content-type-fields.js +0 -9
- package/server/models/supported-custom-field-plugins.js +0 -6
- package/server/policies/index.js +0 -3
- package/server/register.js +0 -5
- package/server/routes/index.js +0 -28
- package/server/routes/localazy-auth.js +0 -22
- package/server/routes/localazy-project.js +0 -14
- package/server/routes/localazy-public-transfer.js +0 -20
- package/server/routes/localazy-transfer.js +0 -22
- package/server/routes/localazy-user.js +0 -30
- package/server/routes/plugin-settings.js +0 -38
- package/server/routes/strapi.js +0 -38
- package/server/services/helpers/job-notification-service.js +0 -30
- package/server/services/helpers/plugin-settings-service-helper.js +0 -52
- package/server/services/index.js +0 -23
- package/server/services/localazy-pubapi-service.js +0 -53
- package/server/services/localazy-transfer-download-service.js +0 -445
- package/server/services/localazy-transfer-upload-service.js +0 -178
- package/server/services/localazy-upload-service.js +0 -52
- package/server/services/localazy-user-service.js +0 -29
- package/server/services/plugin-settings-service.js +0 -53
- package/server/services/strapi-i18n-service.js +0 -151
- package/server/services/strapi-localazy-i18n-service.js +0 -130
- package/server/services/strapi-service.js +0 -26
- package/server/tests/fixtures/all-models.js +0 -869
- package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-cookbook.js +0 -5761
- package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-lesson-dz.js +0 -402
- package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-page-dz.js +0 -658
- package/server/tests/fixtures/parsed-localazy-entry-to-create-entry-restaurant-simple-menu.js +0 -536
- package/server/tests/fixtures/parsed-localazy-entry-to-update-entry.js +0 -35157
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-cookbook-empty-recipes.js +0 -202
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-cookbook.js +0 -2700
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-lesson-dz.js +0 -309
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-flat-simple.js +0 -47
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-flat-with-media.js +0 -169
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-menu-empty.js +0 -3003
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-restaurant-simple-menu-with-media.js +0 -2057
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-sample-json-dz.js +0 -884
- package/server/tests/fixtures/populate-create-update-entry-with-base-entry-sample-json.js +0 -46
- package/server/tests/fixtures/strapi-plugin-all-models.js +0 -7000
- package/server/utils/__tests__/build-populate.test.js +0 -85
- package/server/utils/__tests__/flatten-object.test.js +0 -171
- package/server/utils/__tests__/get-models-tree.test.js +0 -170
- package/server/utils/__tests__/iso-locales-utils.test.js +0 -104
- package/server/utils/__tests__/parsed-localazy-entry-to-create-entry.test.js +0 -258
- package/server/utils/__tests__/parsed-localazy-entry-to-update-entry.test.js +0 -456
- package/server/utils/__tests__/pick-entries.test.js +0 -963
- package/server/utils/__tests__/populate-create-update-entry-with-base-entry.test.js +0 -1176
- package/server/utils/build-populate.js +0 -48
- package/server/utils/delay.js +0 -6
- package/server/utils/flatten-object.js +0 -61
- package/server/utils/generate-random-id.js +0 -3
- package/server/utils/get-full-populate-object.js +0 -66
- package/server/utils/get-main-keys-of-nested-array-objects.js +0 -5
- package/server/utils/get-models-tree.js +0 -47
- package/server/utils/get-picked-flatten-keys-for-hook-entry.js +0 -270
- package/server/utils/intl-display-name.js +0 -4
- package/server/utils/is-generally-applicable-content-type.js +0 -33
- package/server/utils/is-localazy-applicable-content-type.js +0 -36
- package/server/utils/iso-locales-utils.js +0 -60
- package/server/utils/localazy-api-client-factory.js +0 -22
- package/server/utils/localazy-generic-connector-client-factory.js +0 -15
- package/server/utils/model-utils.js +0 -43
- package/server/utils/objectivise-entry.js +0 -41
- package/server/utils/omit-deep.js +0 -24
- package/server/utils/parsed-localazy-entry-to-create-entry.js +0 -194
- package/server/utils/parsed-localazy-entry-to-update-entry.js +0 -83
- package/server/utils/pick-deep.js +0 -22
- package/server/utils/pick-entries.js +0 -37
- package/server/utils/populate-create-update-entry-with-base-entry.js +0 -264
- package/server/utils/request-initiator-helper.js +0 -36
- package/server/utils/reset-array-keys-deep.js +0 -19
- package/server/utils/transfer-setup-utils.js +0 -93
- package/strapi-admin.js +0 -14
- package/strapi-server.js +0 -5
- package/test/helpers/mocks.js +0 -9
package/install/index.mjs
CHANGED
|
@@ -5,13 +5,46 @@ import { fileURLToPath } from 'url';
|
|
|
5
5
|
import fs from 'fs-extra';
|
|
6
6
|
import chalk from 'chalk';
|
|
7
7
|
import ora from 'ora';
|
|
8
|
-
import
|
|
8
|
+
import { exec } from 'node:child_process';
|
|
9
|
+
import { promisify } from 'node:util';
|
|
9
10
|
import { createRequire } from 'module';
|
|
10
11
|
|
|
12
|
+
const __filename = fileURLToPath(import.meta.url);
|
|
13
|
+
const __dirname = path.dirname(__filename);
|
|
14
|
+
|
|
15
|
+
const execAsync = promisify(exec);
|
|
16
|
+
const installSpinner = ora();
|
|
17
|
+
|
|
11
18
|
// To prevent node experimental features warning after `import(package.json)` require is used instead.
|
|
12
19
|
const require = createRequire(import.meta.url);
|
|
13
20
|
const pkg = require('../package.json');
|
|
14
21
|
|
|
22
|
+
/**
|
|
23
|
+
* This will be run via npx @localazy/strapi-plugin-v5
|
|
24
|
+
* Decide whether the root project uses Vite or Webpack
|
|
25
|
+
* and create the appropriate example file
|
|
26
|
+
*/
|
|
27
|
+
const isVite =
|
|
28
|
+
fs.existsSync(path.join(process.cwd(), 'src/admin/vite.config.ts')) ||
|
|
29
|
+
fs.existsSync(path.join(process.cwd(), 'src/admin/vite.config.js'));
|
|
30
|
+
const isWebpack =
|
|
31
|
+
fs.existsSync(path.join(process.cwd(), 'src/admin/webpack.config.ts')) ||
|
|
32
|
+
fs.existsSync(path.join(process.cwd(), 'src/admin/webpack.config.js'));
|
|
33
|
+
const isTs =
|
|
34
|
+
fs.existsSync(path.join(process.cwd(), 'src/admin/vite.config.ts')) ||
|
|
35
|
+
fs.existsSync(path.join(process.cwd(), 'src/admin/webpack.config.ts'));
|
|
36
|
+
const type = isVite ? 'vite' : isWebpack ? 'webpack' : 'fallback';
|
|
37
|
+
const extension = isTs ? 'ts' : 'js';
|
|
38
|
+
|
|
39
|
+
const exampleFileName =
|
|
40
|
+
type === 'vite'
|
|
41
|
+
? `vite.config.localazy-strapi-plugin.example.${extension}`
|
|
42
|
+
: `webpack.config.localazy-strapi-plugin.example.${extension}`;
|
|
43
|
+
const template =
|
|
44
|
+
type === 'vite'
|
|
45
|
+
? await fs.readFile(path.join(__dirname, `vite.config.example.${extension}`))
|
|
46
|
+
: await fs.readFile(path.join(__dirname, `webpack.config.example.${extension}`));
|
|
47
|
+
|
|
15
48
|
// https://patorjk.com/software/taag/#p=display&h=1&v=1&f=Sub-Zero&t=Localazy
|
|
16
49
|
const banner = chalk.blue(`
|
|
17
50
|
__ ______ ______ ______ __ ______ ______ __ __
|
|
@@ -22,54 +55,75 @@ const banner = chalk.blue(`
|
|
|
22
55
|
`);
|
|
23
56
|
const name = `${chalk.bold.green(pkg.name)}`;
|
|
24
57
|
const version = `${chalk.grey(`@${pkg.version}`)}`;
|
|
25
|
-
const exampleFileName = 'webpack.config.localazy-strapi-plugin.example.js';
|
|
26
58
|
const file = `${chalk.bold.green(exampleFileName)}`;
|
|
27
|
-
const __filename = fileURLToPath(import.meta.url);
|
|
28
|
-
const __dirname = path.dirname(__filename);
|
|
29
|
-
const template = (await fs.readFile(path.join(__dirname, 'webpack.example.js'))).toString();
|
|
30
|
-
const installSpinner = ora();
|
|
31
59
|
|
|
32
|
-
const install = () =>
|
|
33
|
-
|
|
34
|
-
|
|
60
|
+
const install = () =>
|
|
61
|
+
new Promise(async (resolve, reject) => {
|
|
62
|
+
// load parent package.json
|
|
63
|
+
const parentPkg = await fs.readJson(path.join(process.cwd(), 'package.json'));
|
|
64
|
+
const isLinkedLocally = parentPkg.dependencies[pkg.name].includes('.yalc');
|
|
65
|
+
try {
|
|
66
|
+
// Skip installation if we're using yalc (local development)
|
|
67
|
+
if (isLinkedLocally) {
|
|
68
|
+
installSpinner.info('Local development detected via yalc, skipping npm install');
|
|
69
|
+
resolve();
|
|
70
|
+
return;
|
|
71
|
+
}
|
|
72
|
+
|
|
73
|
+
await execAsync(`npm install ${pkg.name}`, { stdio: 'ignore' });
|
|
74
|
+
resolve();
|
|
75
|
+
} catch (err) {
|
|
76
|
+
// If installation fails, log the error but continue
|
|
77
|
+
installSpinner.fail(`Installation failed - ${err.message}`);
|
|
35
78
|
resolve();
|
|
36
|
-
}
|
|
37
|
-
}
|
|
38
|
-
reject(err);
|
|
39
|
-
}
|
|
40
|
-
});
|
|
79
|
+
}
|
|
80
|
+
});
|
|
41
81
|
|
|
42
|
-
const createWebpackConfigSample = () =>
|
|
43
|
-
|
|
44
|
-
|
|
82
|
+
const createWebpackConfigSample = () =>
|
|
83
|
+
new Promise(async (resolve, reject) => {
|
|
84
|
+
try {
|
|
85
|
+
await fs.writeFile(`src/admin/${exampleFileName}`, template);
|
|
45
86
|
resolve();
|
|
46
|
-
})
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
}
|
|
50
|
-
});
|
|
87
|
+
} catch (err) {
|
|
88
|
+
reject(err);
|
|
89
|
+
}
|
|
90
|
+
});
|
|
51
91
|
|
|
52
|
-
const updateEnvConfig = () =>
|
|
53
|
-
|
|
54
|
-
|
|
92
|
+
const updateEnvConfig = () =>
|
|
93
|
+
new Promise(async (resolve, reject) => {
|
|
94
|
+
try {
|
|
95
|
+
await fs.appendFile('.env', 'STRAPI_ADMIN_LOCALAZY_ENV=\n');
|
|
55
96
|
resolve();
|
|
56
|
-
})
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
}
|
|
60
|
-
});
|
|
97
|
+
} catch (err) {
|
|
98
|
+
reject(err);
|
|
99
|
+
}
|
|
100
|
+
});
|
|
61
101
|
|
|
62
102
|
console.log(banner);
|
|
63
103
|
|
|
104
|
+
if (type === 'vite') {
|
|
105
|
+
installSpinner.succeed(`Vite detected using ${extension === 'ts' ? 'TypeScript' : 'JavaScript'}`);
|
|
106
|
+
} else if (type === 'webpack') {
|
|
107
|
+
installSpinner.succeed(`Webpack detected using ${extension === 'ts' ? 'TypeScript' : 'JavaScript'}`);
|
|
108
|
+
} else if (type === 'fallback') {
|
|
109
|
+
installSpinner.warn('No Webpack or Vite config found - fallback to Webpack using JavaScript');
|
|
110
|
+
} else {
|
|
111
|
+
process.exit(1);
|
|
112
|
+
}
|
|
113
|
+
|
|
64
114
|
installSpinner.start(`Installing ${name}${version}`);
|
|
65
115
|
await install();
|
|
66
116
|
installSpinner.succeed();
|
|
67
117
|
|
|
68
|
-
installSpinner.start(`Creating example ${file} file in ${chalk.bold.green(
|
|
118
|
+
installSpinner.start(`Creating example ${file} file in ${chalk.bold.green('src/admin')} folder`);
|
|
69
119
|
await createWebpackConfigSample();
|
|
70
120
|
installSpinner.succeed();
|
|
71
|
-
installSpinner.start(
|
|
121
|
+
installSpinner.start(
|
|
122
|
+
`Updating ${chalk.bold.green('.env')} file with ${chalk.bold.green('STRAPI_ADMIN_LOCALAZY_ENV')} variable`
|
|
123
|
+
);
|
|
72
124
|
await updateEnvConfig();
|
|
73
125
|
installSpinner.succeed();
|
|
74
|
-
installSpinner.succeed(
|
|
75
|
-
|
|
126
|
+
installSpinner.succeed(
|
|
127
|
+
`To run the plugin, you need to update your webpack config in ${chalk.bold.green('src/admin/webpack.config.js')} file`
|
|
128
|
+
);
|
|
129
|
+
installSpinner.succeed(`Don't forget to build the admin panel with ${chalk.bold.green('npm run build')} command`);
|
|
@@ -0,0 +1,40 @@
|
|
|
1
|
+
import pkg from './../../package.json';
|
|
2
|
+
|
|
3
|
+
const nodeBuiltins = [
|
|
4
|
+
'async_hooks',
|
|
5
|
+
'assert',
|
|
6
|
+
'crypto',
|
|
7
|
+
'string_decoder',
|
|
8
|
+
'events',
|
|
9
|
+
'fs',
|
|
10
|
+
'fs/promises',
|
|
11
|
+
'http',
|
|
12
|
+
'https',
|
|
13
|
+
'net',
|
|
14
|
+
'path',
|
|
15
|
+
'querystring',
|
|
16
|
+
'stream',
|
|
17
|
+
'timers',
|
|
18
|
+
'tls',
|
|
19
|
+
'url',
|
|
20
|
+
'zlib',
|
|
21
|
+
].reduce((acc, cur) => {
|
|
22
|
+
acc.push(cur, `node:${cur}`);
|
|
23
|
+
return acc;
|
|
24
|
+
}, []);
|
|
25
|
+
|
|
26
|
+
export default (config) => {
|
|
27
|
+
// Important: always return the modified config
|
|
28
|
+
return mergeConfig(config, {
|
|
29
|
+
resolve: {
|
|
30
|
+
alias: {
|
|
31
|
+
'@': '/src',
|
|
32
|
+
},
|
|
33
|
+
},
|
|
34
|
+
build: {
|
|
35
|
+
rollupOptions: {
|
|
36
|
+
external: [...nodeBuiltins, ...Object.keys(pkg.dependencies || {})],
|
|
37
|
+
},
|
|
38
|
+
},
|
|
39
|
+
});
|
|
40
|
+
};
|
|
@@ -0,0 +1,41 @@
|
|
|
1
|
+
import { mergeConfig, type UserConfig } from 'vite';
|
|
2
|
+
import pkg from './../../package.json';
|
|
3
|
+
|
|
4
|
+
const nodeBuiltins: string[] = [
|
|
5
|
+
'async_hooks',
|
|
6
|
+
'assert',
|
|
7
|
+
'crypto',
|
|
8
|
+
'string_decoder',
|
|
9
|
+
'events',
|
|
10
|
+
'fs',
|
|
11
|
+
'fs/promises',
|
|
12
|
+
'http',
|
|
13
|
+
'https',
|
|
14
|
+
'net',
|
|
15
|
+
'path',
|
|
16
|
+
'querystring',
|
|
17
|
+
'stream',
|
|
18
|
+
'timers',
|
|
19
|
+
'tls',
|
|
20
|
+
'url',
|
|
21
|
+
'zlib',
|
|
22
|
+
].reduce((acc: string[], cur: string): string[] => {
|
|
23
|
+
acc.push(cur, `node:${cur}`);
|
|
24
|
+
return acc;
|
|
25
|
+
}, []);
|
|
26
|
+
|
|
27
|
+
export default (config: UserConfig) => {
|
|
28
|
+
// Important: always return the modified config
|
|
29
|
+
return mergeConfig(config, {
|
|
30
|
+
resolve: {
|
|
31
|
+
alias: {
|
|
32
|
+
'@': '/src',
|
|
33
|
+
},
|
|
34
|
+
},
|
|
35
|
+
build: {
|
|
36
|
+
rollupOptions: {
|
|
37
|
+
external: [...nodeBuiltins, ...Object.keys(pkg.dependencies || {})],
|
|
38
|
+
},
|
|
39
|
+
},
|
|
40
|
+
});
|
|
41
|
+
};
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
|
|
1
|
+
export default (config, webpack) => {
|
|
2
2
|
/**
|
|
3
3
|
* This is an example of how to extend webpack config in order to use Localazy Strapi Plugin.
|
|
4
4
|
* Because Strapi is using Webpack 5, it is necessary to disable some Node.js polyfills in the Strapi monorepo.
|
|
@@ -25,6 +25,6 @@ module.exports = (config, webpack) => {
|
|
|
25
25
|
url: false,
|
|
26
26
|
querystring: false,
|
|
27
27
|
},
|
|
28
|
-
}
|
|
28
|
+
},
|
|
29
29
|
};
|
|
30
30
|
};
|
|
@@ -0,0 +1,30 @@
|
|
|
1
|
+
export default (config: any, webpack: any) => {
|
|
2
|
+
/**
|
|
3
|
+
* This is an example of how to extend webpack config in order to use Localazy Strapi Plugin.
|
|
4
|
+
* Because Strapi is using Webpack 5, it is necessary to disable some Node.js polyfills in the Strapi monorepo.
|
|
5
|
+
*
|
|
6
|
+
* If your webpack config does not exist, create one.
|
|
7
|
+
*/
|
|
8
|
+
|
|
9
|
+
return {
|
|
10
|
+
...config,
|
|
11
|
+
resolve: {
|
|
12
|
+
...config.resolve,
|
|
13
|
+
fallback: {
|
|
14
|
+
...config.resolve.fallback,
|
|
15
|
+
crypto: false,
|
|
16
|
+
http: false,
|
|
17
|
+
fs: false,
|
|
18
|
+
zlib: false,
|
|
19
|
+
https: false,
|
|
20
|
+
stream: false,
|
|
21
|
+
path: false,
|
|
22
|
+
timers: false,
|
|
23
|
+
tls: false,
|
|
24
|
+
net: false,
|
|
25
|
+
url: false,
|
|
26
|
+
querystring: false,
|
|
27
|
+
},
|
|
28
|
+
},
|
|
29
|
+
};
|
|
30
|
+
};
|
package/package.json
CHANGED
|
@@ -1,12 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@localazy/strapi-plugin",
|
|
3
|
-
"version": "0.
|
|
3
|
+
"version": "1.0.0-beta.1",
|
|
4
4
|
"description": "The official Strapi Plugin by Localazy.",
|
|
5
|
-
"strapi": {
|
|
6
|
-
"name": "localazy",
|
|
7
|
-
"description": "The official Strapi Plugin by Localazy",
|
|
8
|
-
"kind": "plugin"
|
|
9
|
-
},
|
|
10
5
|
"keywords": [
|
|
11
6
|
"strapi",
|
|
12
7
|
"plugin",
|
|
@@ -24,66 +19,109 @@
|
|
|
24
19
|
"email": "team@localazy.com",
|
|
25
20
|
"url": "https://localazy.com"
|
|
26
21
|
},
|
|
27
|
-
"
|
|
28
|
-
|
|
29
|
-
"
|
|
22
|
+
"type": "commonjs",
|
|
23
|
+
"exports": {
|
|
24
|
+
"./package.json": "./package.json",
|
|
25
|
+
"./strapi-admin": {
|
|
26
|
+
"types": "./dist/admin/src/index.d.ts",
|
|
27
|
+
"source": "./admin/src/index.ts",
|
|
28
|
+
"import": "./dist/admin/index.mjs",
|
|
29
|
+
"require": "./dist/admin/index.js",
|
|
30
|
+
"default": "./dist/admin/index.js"
|
|
31
|
+
},
|
|
32
|
+
"./strapi-server": {
|
|
33
|
+
"types": "./dist/server/src/index.d.ts",
|
|
34
|
+
"source": "./server/src/index.ts",
|
|
35
|
+
"import": "./dist/server/index.mjs",
|
|
36
|
+
"require": "./dist/server/index.js",
|
|
37
|
+
"default": "./dist/server/index.js"
|
|
38
|
+
}
|
|
30
39
|
},
|
|
31
40
|
"bin": "./install/index.mjs",
|
|
41
|
+
"files": [
|
|
42
|
+
"dist",
|
|
43
|
+
"install"
|
|
44
|
+
],
|
|
32
45
|
"scripts": {
|
|
33
|
-
"
|
|
34
|
-
"
|
|
46
|
+
"build": "strapi-plugin build",
|
|
47
|
+
"format": "prettier --write .",
|
|
48
|
+
"format:check": "prettier --check .",
|
|
49
|
+
"lint": "eslint .",
|
|
50
|
+
"lint:fix": "eslint --fix .",
|
|
51
|
+
"test:server": "jest --config server/jest.config.ts",
|
|
52
|
+
"test:server:coverage": "jest --config server/jest.config.ts --coverage",
|
|
53
|
+
"test:server:watch": "jest --config server/jest.config.ts --watch",
|
|
54
|
+
"test:ts:back": "run -T tsc -p server/tsconfig.json",
|
|
55
|
+
"test:ts:front": "run -T tsc -p admin/tsconfig.json",
|
|
56
|
+
"verify": "strapi-plugin verify",
|
|
57
|
+
"watch": "strapi-plugin watch",
|
|
58
|
+
"watch:link": "strapi-plugin watch:link"
|
|
35
59
|
},
|
|
36
|
-
"
|
|
37
|
-
"
|
|
38
|
-
|
|
39
|
-
|
|
60
|
+
"lint-staged": {
|
|
61
|
+
"*.{ts,tsx}": [
|
|
62
|
+
"eslint --fix",
|
|
63
|
+
"prettier --write"
|
|
64
|
+
]
|
|
40
65
|
},
|
|
41
66
|
"dependencies": {
|
|
67
|
+
"shelljs": "^0.8.5",
|
|
68
|
+
"ws": "^8.18.0"
|
|
69
|
+
},
|
|
70
|
+
"devDependencies": {
|
|
42
71
|
"@david-vaclavek/deep-keys": "^0.5.0",
|
|
43
|
-
"@localazy/api-client": "^2.1.
|
|
44
|
-
"@localazy/generic-connector-client": "^0.
|
|
45
|
-
"@
|
|
46
|
-
"
|
|
47
|
-
"
|
|
48
|
-
"
|
|
49
|
-
"
|
|
50
|
-
"
|
|
72
|
+
"@localazy/api-client": "^2.1.6",
|
|
73
|
+
"@localazy/generic-connector-client": "^0.3.0",
|
|
74
|
+
"@strapi/design-system": "^2.0.0-rc.14",
|
|
75
|
+
"@strapi/icons": "^2.0.0-rc.14",
|
|
76
|
+
"@strapi/typescript-utils": "^5.6.0",
|
|
77
|
+
"@types/jest": "^29.5.12",
|
|
78
|
+
"@types/lodash": "^4.14.202",
|
|
79
|
+
"@types/lodash-es": "^4.17.12",
|
|
80
|
+
"@types/react": "^19.0.2",
|
|
81
|
+
"@types/react-dom": "^19.0.2",
|
|
82
|
+
"@typescript-eslint/eslint-plugin": "^8.21.0",
|
|
83
|
+
"@typescript-eslint/parser": "^8.21.0",
|
|
84
|
+
"axios": "^1.7.9",
|
|
85
|
+
"chalk": "^5.4.1",
|
|
86
|
+
"eslint": "^9.18.0",
|
|
87
|
+
"eslint-config-prettier": "^10.0.1",
|
|
88
|
+
"eslint-plugin-jsx-a11y": "^6.10.2",
|
|
89
|
+
"eslint-plugin-node": "^11.1.0",
|
|
90
|
+
"eslint-plugin-prettier": "^5.2.3",
|
|
91
|
+
"eslint-plugin-react": "^7.37.4",
|
|
92
|
+
"eslint-plugin-react-hooks": "^5.1.0",
|
|
93
|
+
"fs-extra": "^11.3.0",
|
|
94
|
+
"history": "^5.3.0",
|
|
95
|
+
"husky": "^9.1.7",
|
|
96
|
+
"i18next": "^24.2.1",
|
|
97
|
+
"jest": "^29.7.0",
|
|
98
|
+
"lint-staged": "^15.4.1",
|
|
51
99
|
"lodash": "^4.17.21",
|
|
52
|
-
"
|
|
53
|
-
"ora": "^
|
|
100
|
+
"lodash-es": "^4.17.21",
|
|
101
|
+
"ora": "^8.2.0",
|
|
102
|
+
"prettier": "^3.4.2",
|
|
54
103
|
"react-hooks-global-state": "^2.1.0",
|
|
55
|
-
"react-i18next": "^
|
|
56
|
-
"
|
|
57
|
-
"socket.io
|
|
104
|
+
"react-i18next": "^15.4.0",
|
|
105
|
+
"react-intl": "^7.1.0",
|
|
106
|
+
"socket.io": "^4.8.1",
|
|
107
|
+
"socket.io-client": "^4.8.1",
|
|
58
108
|
"strapio": "^3.0.2",
|
|
59
|
-
"
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
"@babel/plugin-transform-modules-commonjs": "^7.20.11",
|
|
63
|
-
"@localazy/conventional-changelog-preset": "^1.2.9",
|
|
64
|
-
"@strapi/eslint-config": "^0.2.1",
|
|
65
|
-
"conventional-changelog": "^5.1.0",
|
|
66
|
-
"conventional-changelog-cli": "^4.1.0",
|
|
67
|
-
"conventional-changelog-writer": "github:localazy/conventional-changelog-writer",
|
|
68
|
-
"conventional-recommended-bump": "^9.0.0",
|
|
69
|
-
"eslint": "^8.57.0",
|
|
70
|
-
"eslint-config-prettier": "^8.10.0",
|
|
71
|
-
"eslint-plugin-import": "^2.30.0",
|
|
72
|
-
"eslint-plugin-jest": "^27.2.1",
|
|
73
|
-
"jest": "^29.6.4"
|
|
109
|
+
"ts-jest": "^29.1.2",
|
|
110
|
+
"ts-node": "^10.9.2",
|
|
111
|
+
"typescript": "^5.7.2"
|
|
74
112
|
},
|
|
75
|
-
"
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
"engines": {
|
|
83
|
-
"node": ">=14.19.1 <=20.x.x",
|
|
84
|
-
"npm": ">=6.0.0"
|
|
113
|
+
"peerDependencies": {
|
|
114
|
+
"@strapi/sdk-plugin": "^5.2.8",
|
|
115
|
+
"@strapi/strapi": "^5.6.0",
|
|
116
|
+
"react": "^18.3.1",
|
|
117
|
+
"react-dom": "^18.3.1",
|
|
118
|
+
"react-router-dom": "^6.28.1",
|
|
119
|
+
"styled-components": "^6.1.14"
|
|
85
120
|
},
|
|
86
|
-
"
|
|
87
|
-
"
|
|
121
|
+
"strapi": {
|
|
122
|
+
"kind": "plugin",
|
|
123
|
+
"name": "strapi-plugin-v5",
|
|
124
|
+
"displayName": "Localazy Strapi Plugin",
|
|
125
|
+
"description": "The official Strapi Plugin by Localazy"
|
|
88
126
|
}
|
|
89
127
|
}
|
package/.babelrc
DELETED
package/.eslintrc
DELETED
package/.github/workflows/qa.yml
DELETED
|
@@ -1,25 +0,0 @@
|
|
|
1
|
-
name: QA checks
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
pull_request:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
jobs:
|
|
9
|
-
lint:
|
|
10
|
-
name: Tests
|
|
11
|
-
runs-on: [self-hosted, Linux]
|
|
12
|
-
steps:
|
|
13
|
-
- name: Checkout repository
|
|
14
|
-
uses: actions/checkout@v4
|
|
15
|
-
|
|
16
|
-
- name: Setup Node
|
|
17
|
-
uses: actions/setup-node@v4
|
|
18
|
-
with:
|
|
19
|
-
node-version: 20
|
|
20
|
-
|
|
21
|
-
- name: Install dependencies
|
|
22
|
-
run: npm ci
|
|
23
|
-
|
|
24
|
-
- name: Run tests
|
|
25
|
-
run: npm run test
|
|
@@ -1,46 +0,0 @@
|
|
|
1
|
-
name: Release CI
|
|
2
|
-
|
|
3
|
-
on:
|
|
4
|
-
push:
|
|
5
|
-
branches:
|
|
6
|
-
- main
|
|
7
|
-
|
|
8
|
-
permissions:
|
|
9
|
-
contents: write
|
|
10
|
-
pull-requests: write
|
|
11
|
-
|
|
12
|
-
jobs:
|
|
13
|
-
ci:
|
|
14
|
-
name: CI Init
|
|
15
|
-
runs-on: [self-hosted, Linux]
|
|
16
|
-
outputs:
|
|
17
|
-
action: ${{ steps.init.outputs.action }}
|
|
18
|
-
steps:
|
|
19
|
-
- id: init
|
|
20
|
-
uses: localazy/release/init@v2
|
|
21
|
-
|
|
22
|
-
prepare:
|
|
23
|
-
name: Prepare Release PR
|
|
24
|
-
needs: ci
|
|
25
|
-
if: needs.ci.outputs.action == 'prepare'
|
|
26
|
-
runs-on: [self-hosted, Linux]
|
|
27
|
-
steps:
|
|
28
|
-
- uses: localazy/release/prepare@v2
|
|
29
|
-
with:
|
|
30
|
-
node-version: 20
|
|
31
|
-
app-id: ${{ secrets.AUTH_APP_ID }}
|
|
32
|
-
app-key: ${{ secrets.AUTH_APP_KEY }}
|
|
33
|
-
|
|
34
|
-
publish:
|
|
35
|
-
name: Publish Release
|
|
36
|
-
needs: ci
|
|
37
|
-
if: needs.ci.outputs.action == 'publish'
|
|
38
|
-
runs-on: [self-hosted, Linux]
|
|
39
|
-
steps:
|
|
40
|
-
- uses: localazy/release/publish@v2
|
|
41
|
-
with:
|
|
42
|
-
node-version: 20
|
|
43
|
-
app-id: ${{ secrets.AUTH_APP_ID }}
|
|
44
|
-
app-key: ${{ secrets.AUTH_APP_KEY }}
|
|
45
|
-
npm-publish: public
|
|
46
|
-
npm-token: ${{ secrets.NPM_AUTH_TOKEN_PUBLIC }}
|
package/.nvmrc
DELETED
|
@@ -1 +0,0 @@
|
|
|
1
|
-
20
|
package/.strapi-updater.json
DELETED
package/CHANGELOG.md
DELETED
|
@@ -1,68 +0,0 @@
|
|
|
1
|
-
## 0.2.13 (2025-03-03)
|
|
2
|
-
### 🔀 Pull Requests
|
|
3
|
-
|
|
4
|
-
- [Fix webhook secret fetch 2 #76](https://github.com/localazy/strapi-plugin/pull/76)
|
|
5
|
-
|
|
6
|
-
### 🐛 Bug Fixes
|
|
7
|
-
|
|
8
|
-
- **webhook:** simplify secret retrieval from Localazy API ([97f1fe6](https://github.com/localazy/strapi-plugin/commit/97f1fe6)) ([#76](https://github.com/localazy/strapi-plugin/pull/76))
|
|
9
|
-
|
|
10
|
-
## 0.2.12 (2024-11-14)
|
|
11
|
-
### 🔀 Pull Requests
|
|
12
|
-
|
|
13
|
-
- [Feat add json fields support #65](https://github.com/localazy/strapi-plugin/pull/65)
|
|
14
|
-
|
|
15
|
-
### ✨ Features
|
|
16
|
-
|
|
17
|
-
- add json fields support ([5ef1f08](https://github.com/localazy/strapi-plugin/commit/5ef1f08)) ([#65](https://github.com/localazy/strapi-plugin/pull/65))
|
|
18
|
-
|
|
19
|
-
### 🐛 Bug Fixes
|
|
20
|
-
|
|
21
|
-
- **JSON:** `null` values upload ([5ef1f08](https://github.com/localazy/strapi-plugin/commit/5ef1f08)) ([#65](https://github.com/localazy/strapi-plugin/pull/65))
|
|
22
|
-
- doubled backslashed in URL ([5ef1f08](https://github.com/localazy/strapi-plugin/commit/5ef1f08)) ([#65](https://github.com/localazy/strapi-plugin/pull/65))
|
|
23
|
-
- string array is split into letters ([5ef1f08](https://github.com/localazy/strapi-plugin/commit/5ef1f08)) ([#65](https://github.com/localazy/strapi-plugin/pull/65))
|
|
24
|
-
|
|
25
|
-
## 0.2.11 (2024-11-14)
|
|
26
|
-
### 🔀 Pull Requests
|
|
27
|
-
|
|
28
|
-
- [Feat add json fields support #65](https://github.com/localazy/strapi-plugin/pull/65)
|
|
29
|
-
|
|
30
|
-
### ✨ Features
|
|
31
|
-
|
|
32
|
-
- add json fields support ([5ef1f08](https://github.com/localazy/strapi-plugin/commit/5ef1f08)) ([#65](https://github.com/localazy/strapi-plugin/pull/65))
|
|
33
|
-
|
|
34
|
-
### 🐛 Bug Fixes
|
|
35
|
-
|
|
36
|
-
- **JSON:** `null` values upload ([5ef1f08](https://github.com/localazy/strapi-plugin/commit/5ef1f08)) ([#65](https://github.com/localazy/strapi-plugin/pull/65))
|
|
37
|
-
- doubled backslashed in URL ([5ef1f08](https://github.com/localazy/strapi-plugin/commit/5ef1f08)) ([#65](https://github.com/localazy/strapi-plugin/pull/65))
|
|
38
|
-
- string array is split into letters ([5ef1f08](https://github.com/localazy/strapi-plugin/commit/5ef1f08)) ([#65](https://github.com/localazy/strapi-plugin/pull/65))
|
|
39
|
-
|
|
40
|
-
## 0.2.10 (2024-09-05)
|
|
41
|
-
|
|
42
|
-
### 🧰 Other Commits
|
|
43
|
-
|
|
44
|
-
- **QA:** switch to Node 20 in GH actions ([8ce744a](https://github.com/localazy/strapi-plugin/commit/8ce744a))
|
|
45
|
-
- **release:** switch to Node 20 in GH actions ([1760ff8](https://github.com/localazy/strapi-plugin/commit/1760ff8))
|
|
46
|
-
- add support for Node 20 ([041c0af](https://github.com/localazy/strapi-plugin/commit/041c0af))
|
|
47
|
-
- support Node 20 ([883c3ef](https://github.com/localazy/strapi-plugin/commit/883c3ef))
|
|
48
|
-
|
|
49
|
-
## 0.2.9 (2024-08-06)
|
|
50
|
-
|
|
51
|
-
## 0.2.8 (2024-08-06)
|
|
52
|
-
|
|
53
|
-
## 0.2.7 (2024-08-06)
|
|
54
|
-
|
|
55
|
-
## <small>0.2.6 (2024-05-09)</small>
|
|
56
|
-
|
|
57
|
-
* 🔧 conf: update .nvmrc node version to v18 ([78f1e4a](https://github.com/localazy/strapi-plugin/commit/78f1e4a))
|
|
58
|
-
* 0.2.3 ([70566df](https://github.com/localazy/strapi-plugin/commit/70566df))
|
|
59
|
-
* 0.2.4 (#49) ([17f864c](https://github.com/localazy/strapi-plugin/commit/17f864c)), closes [#49](https://github.com/localazy/strapi-plugin/issues/49)
|
|
60
|
-
* Add release CI (#52) ([770ea8a](https://github.com/localazy/strapi-plugin/commit/770ea8a)), closes [#52](https://github.com/localazy/strapi-plugin/issues/52)
|
|
61
|
-
* Bump @strapi/strapi from 4.5.6 to 4.15.0 (#42) ([7c4f5f7](https://github.com/localazy/strapi-plugin/commit/7c4f5f7)), closes [#42](https://github.com/localazy/strapi-plugin/issues/42)
|
|
62
|
-
* Bump browserify-sign from 4.2.1 to 4.2.2 (#43) ([1e2900e](https://github.com/localazy/strapi-plugin/commit/1e2900e)), closes [#43](https://github.com/localazy/strapi-plugin/issues/43)
|
|
63
|
-
* Bump http-cache-semantics from 4.1.0 to 4.1.1 (#44) ([3abdd42](https://github.com/localazy/strapi-plugin/commit/3abdd42)), closes [#44](https://github.com/localazy/strapi-plugin/issues/44)
|
|
64
|
-
* LOC-1015 Strapi plugin does not work on certain versions (#48) ([5f55f1b](https://github.com/localazy/strapi-plugin/commit/5f55f1b)), closes [#48](https://github.com/localazy/strapi-plugin/issues/48)
|
|
65
|
-
* LOC-1056 - Add support for the unofficial CKEditor5 plugin (#50) ([dddaebc](https://github.com/localazy/strapi-plugin/commit/dddaebc)), closes [#50](https://github.com/localazy/strapi-plugin/issues/50)
|
|
66
|
-
* LOC-1096 - Fix Analytics User Identification Within Integrations (#51) ([6000259](https://github.com/localazy/strapi-plugin/commit/6000259)), closes [#51](https://github.com/localazy/strapi-plugin/issues/51)
|
|
67
|
-
|
|
68
|
-
|
package/LICENSE
DELETED
|
@@ -1,21 +0,0 @@
|
|
|
1
|
-
MIT License
|
|
2
|
-
|
|
3
|
-
Copyright (c) 2022 Localazy
|
|
4
|
-
|
|
5
|
-
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
-
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
-
in the Software without restriction, including without limitation the rights
|
|
8
|
-
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
-
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
-
furnished to do so, subject to the following conditions:
|
|
11
|
-
|
|
12
|
-
The above copyright notice and this permission notice shall be included in all
|
|
13
|
-
copies or substantial portions of the Software.
|
|
14
|
-
|
|
15
|
-
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
-
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
-
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
-
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
-
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
-
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
-
SOFTWARE.
|