strapi-plugin-navigation 2.0.13 → 2.1.0
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 +105 -27
- package/admin/src/components/Alert/styles.d.ts +2 -0
- package/admin/src/components/Alert/styles.js +10 -4
- package/admin/src/components/CollapseButton/index.d.ts +7 -0
- package/admin/src/components/CollapseButton/index.js +21 -22
- package/admin/src/components/ConfirmationDialog/index.d.ts +28 -0
- package/admin/src/components/ConfirmationDialog/index.js +32 -54
- package/admin/src/components/EmptyView/index.d.ts +3 -0
- package/admin/src/components/EmptyView/index.js +9 -7
- package/admin/src/components/Item/ItemCardBadge/index.d.ts +3 -0
- package/admin/src/components/Item/ItemCardBadge/index.js +11 -7
- package/admin/src/components/Item/ItemCardHeader/Wrapper.d.ts +3 -0
- package/admin/src/components/Item/ItemCardHeader/Wrapper.js +10 -6
- package/admin/src/components/Item/ItemCardHeader/index.d.ts +12 -0
- package/admin/src/components/Item/ItemCardHeader/index.js +33 -52
- package/admin/src/components/Item/ItemCardRemovedOverlay/index.d.ts +2 -0
- package/admin/src/components/Item/ItemCardRemovedOverlay/index.js +10 -4
- package/admin/src/components/Item/Wrapper.d.ts +3 -0
- package/admin/src/components/Item/Wrapper.js +10 -6
- package/admin/src/components/Item/index.d.ts +31 -0
- package/admin/src/components/Item/index.js +163 -242
- package/admin/src/components/NavigationItemList/Wrapper.d.ts +3 -0
- package/admin/src/components/NavigationItemList/Wrapper.js +9 -5
- package/admin/src/components/NavigationItemList/index.d.ts +35 -0
- package/admin/src/components/NavigationItemList/index.js +28 -66
- package/admin/src/components/RestartAlert/index.d.ts +3 -0
- package/admin/src/components/RestartAlert/index.js +10 -5
- package/admin/src/components/Search/index.d.ts +6 -0
- package/admin/src/components/Search/index.js +57 -46
- package/admin/src/components/icons/navigation.d.ts +6 -0
- package/admin/src/components/icons/navigation.js +11 -13
- package/admin/src/contexts/DataManagerContext.d.ts +3 -0
- package/admin/src/contexts/DataManagerContext.js +6 -5
- package/admin/src/hooks/useAllContentTypes.d.ts +6 -0
- package/admin/src/hooks/useAllContentTypes.js +10 -11
- package/admin/src/hooks/useDataManager.d.ts +3 -0
- package/admin/src/hooks/useDataManager.js +10 -6
- package/admin/src/hooks/useI18nCopyNavigationItemsModal.d.ts +9 -0
- package/admin/src/hooks/useI18nCopyNavigationItemsModal.js +51 -0
- package/admin/src/hooks/useNavigationConfig.d.ts +10 -0
- package/admin/src/hooks/useNavigationConfig.js +52 -56
- package/admin/src/hooks/useNavigationManager.d.ts +7 -0
- package/admin/src/hooks/useNavigationManager.js +41 -0
- package/admin/src/index.d.ts +14 -0
- package/admin/src/index.js +92 -76
- package/admin/src/pages/App/index.d.ts +3 -0
- package/admin/src/pages/App/index.js +43 -31
- package/admin/src/pages/DataManagerProvider/actions.d.ts +19 -0
- package/admin/src/pages/DataManagerProvider/actions.js +22 -26
- package/admin/src/pages/DataManagerProvider/index.d.ts +12 -0
- package/admin/src/pages/DataManagerProvider/index.js +316 -298
- package/admin/src/pages/DataManagerProvider/init.d.ts +3 -0
- package/admin/src/pages/DataManagerProvider/init.js +5 -3
- package/admin/src/pages/DataManagerProvider/reducer.d.ts +19 -0
- package/admin/src/pages/DataManagerProvider/reducer.js +119 -121
- package/admin/src/pages/SettingsPage/components/DisableI18nModal/index.d.ts +24 -0
- package/admin/src/pages/SettingsPage/components/DisableI18nModal/index.js +88 -0
- package/admin/src/pages/SettingsPage/index.d.ts +3 -0
- package/admin/src/pages/SettingsPage/index.js +242 -335
- package/admin/src/pages/SettingsPage/utils/functions.d.ts +5 -0
- package/admin/src/pages/SettingsPage/utils/functions.js +3 -8
- package/admin/src/pages/View/components/I18nCopyNavigationItems/index.d.ts +14 -0
- package/admin/src/pages/View/components/I18nCopyNavigationItems/index.js +15 -0
- package/admin/src/pages/View/components/NavigationContentHeader/index.d.ts +6 -0
- package/admin/src/pages/View/components/NavigationContentHeader/index.js +13 -17
- package/admin/src/pages/View/components/NavigationHeader/index.d.ts +12 -0
- package/admin/src/pages/View/components/NavigationHeader/index.js +79 -65
- package/admin/src/pages/View/components/NavigationHeader/styles.d.ts +2 -0
- package/admin/src/pages/View/components/NavigationHeader/styles.js +10 -5
- package/admin/src/pages/View/components/NavigationItemForm/index.d.ts +57 -0
- package/admin/src/pages/View/components/NavigationItemForm/index.js +416 -453
- package/admin/src/pages/View/components/NavigationItemForm/utils/form.d.ts +45 -0
- package/admin/src/pages/View/components/NavigationItemForm/utils/form.js +84 -52
- package/admin/src/pages/View/components/NavigationItemPopup/NavigationItemPopupFooter.d.ts +23 -0
- package/admin/src/pages/View/components/NavigationItemPopup/NavigationItemPopupFooter.js +24 -34
- package/admin/src/pages/View/components/NavigationItemPopup/NavigationItemPopupHeader.d.ts +4 -0
- package/admin/src/pages/View/components/NavigationItemPopup/NavigationItemPopupHeader.js +16 -16
- package/admin/src/pages/View/components/NavigationItemPopup/index.d.ts +30 -0
- package/admin/src/pages/View/components/NavigationItemPopup/index.js +85 -108
- package/admin/src/pages/View/components/NavigationManager/Create/index.d.ts +9 -0
- package/admin/src/pages/View/components/NavigationManager/Create/index.js +57 -0
- package/admin/src/pages/View/components/NavigationManager/Delete/index.d.ts +8 -0
- package/admin/src/pages/View/components/NavigationManager/Delete/index.js +28 -0
- package/admin/src/pages/View/components/NavigationManager/Edit/index.d.ts +8 -0
- package/admin/src/pages/View/components/NavigationManager/Edit/index.js +54 -0
- package/admin/src/pages/View/components/NavigationManager/Error/index.d.ts +8 -0
- package/admin/src/pages/View/components/NavigationManager/Error/index.js +53 -0
- package/admin/src/pages/View/components/NavigationManager/Form/index.d.ts +19 -0
- package/admin/src/pages/View/components/NavigationManager/Form/index.js +98 -0
- package/admin/src/pages/View/components/NavigationManager/List/index.d.ts +8 -0
- package/admin/src/pages/View/components/NavigationManager/List/index.js +138 -0
- package/admin/src/pages/View/components/NavigationManager/index.d.ts +10 -0
- package/admin/src/pages/View/components/NavigationManager/index.js +189 -0
- package/admin/src/pages/View/components/NavigationManager/types.d.ts +53 -0
- package/admin/src/pages/View/components/NavigationManager/types.js +3 -0
- package/admin/src/pages/View/index.d.ts +4 -0
- package/admin/src/pages/View/index.js +231 -304
- package/admin/src/pages/View/utils/enums.d.ts +9 -0
- package/admin/src/pages/View/utils/enums.js +11 -8
- package/admin/src/pages/View/utils/form.d.ts +2 -0
- package/admin/src/pages/View/utils/form.js +15 -12
- package/admin/src/pages/View/utils/index.d.ts +2 -0
- package/admin/src/pages/View/utils/index.js +11 -3
- package/admin/src/pages/View/utils/parsers.d.ts +49 -0
- package/admin/src/pages/View/utils/parsers.js +239 -278
- package/admin/src/permissions.d.ts +12 -0
- package/admin/src/permissions.js +11 -7
- package/admin/src/pluginId.d.ts +3 -0
- package/admin/src/pluginId.js +2 -2
- package/admin/src/translations/en.json +157 -104
- package/admin/src/translations/fr.json +44 -44
- package/admin/src/translations/index.d.ts +12 -0
- package/admin/src/translations/index.js +17 -11
- package/admin/src/utils/api.d.ts +8 -0
- package/admin/src/utils/api.js +54 -50
- package/admin/src/utils/getTrad.d.ts +3 -0
- package/admin/src/utils/getTrad.js +9 -5
- package/admin/src/utils/index.d.ts +18 -0
- package/admin/src/utils/index.js +36 -15
- package/package.json +20 -19
- package/permissions.d.ts +9 -0
- package/permissions.js +5 -4
- package/server/bootstrap/index.d.ts +4 -0
- package/server/bootstrap/index.js +41 -0
- package/server/config/index.d.ts +5 -0
- package/server/config/index.js +33 -9
- package/server/config/setupStrategy.d.ts +3 -0
- package/server/config/setupStrategy.js +38 -0
- package/server/content-types/audience/index.d.ts +27 -0
- package/server/content-types/audience/index.js +9 -8
- package/server/content-types/audience/schema.d.ts +25 -0
- package/server/content-types/audience/schema.js +26 -0
- package/server/content-types/index.d.ts +255 -0
- package/server/content-types/index.js +15 -12
- package/server/content-types/navigation/index.d.ts +64 -0
- package/server/content-types/navigation/index.js +11 -8
- package/server/content-types/navigation/lifecycle.d.ts +9 -0
- package/server/content-types/navigation/lifecycle.js +8 -12
- package/server/content-types/navigation/schema.d.ts +55 -0
- package/server/content-types/navigation/schema.js +56 -0
- package/server/content-types/navigation-item/index.d.ts +112 -0
- package/server/content-types/navigation-item/index.js +11 -8
- package/server/content-types/navigation-item/lifecycle.d.ts +16 -0
- package/server/content-types/navigation-item/lifecycle.js +28 -32
- package/server/content-types/navigation-item/schema.d.ts +97 -0
- package/server/content-types/navigation-item/schema.js +102 -0
- package/server/content-types/navigations-items-related/index.d.ts +56 -0
- package/server/content-types/navigations-items-related/index.js +11 -8
- package/server/content-types/navigations-items-related/lifecycle.d.ts +8 -0
- package/server/content-types/navigations-items-related/lifecycle.js +20 -17
- package/server/content-types/navigations-items-related/schema.d.ts +49 -0
- package/server/content-types/navigations-items-related/schema.js +50 -0
- package/server/controllers/admin.d.ts +4 -0
- package/server/controllers/admin.js +130 -0
- package/server/controllers/client.d.ts +4 -0
- package/server/controllers/client.js +57 -0
- package/server/controllers/index.d.ts +4 -0
- package/server/controllers/index.js +12 -6
- package/server/destroy.d.ts +3 -0
- package/server/destroy.js +5 -0
- package/server/graphql/config.d.ts +4 -0
- package/server/graphql/config.js +28 -0
- package/server/graphql/index.d.ts +2 -0
- package/server/graphql/index.js +18 -22
- package/server/graphql/queries/index.d.ts +3 -0
- package/server/graphql/queries/index.js +15 -15
- package/server/graphql/queries/render-navigation-child.d.ts +15 -0
- package/server/graphql/queries/render-navigation-child.js +24 -15
- package/server/graphql/queries/render-navigation.d.ts +21 -0
- package/server/graphql/queries/render-navigation.js +31 -15
- package/server/graphql/resolvers-config.d.ts +10 -0
- package/server/graphql/resolvers-config.js +5 -3
- package/server/graphql/setupStrategy.d.ts +3 -0
- package/server/graphql/setupStrategy.js +15 -0
- package/server/graphql/types/content-types-name-fields.d.ts +6 -0
- package/server/graphql/types/content-types-name-fields.js +13 -9
- package/server/graphql/types/content-types.d.ts +5 -0
- package/server/graphql/types/content-types.js +17 -15
- package/server/graphql/types/create-navigation-item.d.ts +5 -0
- package/server/graphql/types/create-navigation-item.js +18 -16
- package/server/graphql/types/create-navigation-related.d.ts +5 -0
- package/server/graphql/types/create-navigation-related.js +9 -7
- package/server/graphql/types/create-navigation.d.ts +5 -0
- package/server/graphql/types/create-navigation.js +8 -6
- package/server/graphql/types/index.d.ts +3 -0
- package/server/graphql/types/index.js +15 -13
- package/server/graphql/types/navigation-config.d.ts +5 -0
- package/server/graphql/types/navigation-config.js +10 -8
- package/server/graphql/types/navigation-details.d.ts +5 -0
- package/server/graphql/types/navigation-details.js +11 -9
- package/server/graphql/types/navigation-item-related-data.d.ts +5 -0
- package/server/graphql/types/navigation-item-related-data.js +9 -0
- package/server/graphql/types/navigation-item-related.d.ts +7 -0
- package/server/graphql/types/navigation-item-related.js +25 -0
- package/server/graphql/types/navigation-item.d.ts +5 -0
- package/server/graphql/types/navigation-item.js +28 -29
- package/server/graphql/types/navigation-render-type.d.ts +5 -0
- package/server/graphql/types/navigation-render-type.js +7 -4
- package/server/graphql/types/navigation.d.ts +5 -0
- package/server/graphql/types/navigation.js +10 -8
- package/server/i18n/constant.d.ts +2 -0
- package/server/i18n/constant.js +5 -0
- package/server/i18n/errors.d.ts +7 -0
- package/server/i18n/errors.js +14 -0
- package/server/i18n/graphQLEnhancers.d.ts +10 -0
- package/server/i18n/graphQLEnhancers.js +10 -0
- package/server/i18n/index.d.ts +8 -0
- package/server/i18n/index.js +23 -0
- package/server/i18n/navigationSetupStrategy.d.ts +3 -0
- package/server/i18n/navigationSetupStrategy.js +119 -0
- package/server/i18n/serviceEnhancers.d.ts +13 -0
- package/server/i18n/serviceEnhancers.js +156 -0
- package/server/i18n/types.d.ts +60 -0
- package/server/i18n/types.js +3 -0
- package/server/i18n/utils.d.ts +12 -0
- package/server/i18n/utils.js +29 -0
- package/server/index.d.ts +273 -0
- package/server/index.js +26 -0
- package/server/navigation/index.d.ts +2 -0
- package/server/navigation/index.js +18 -0
- package/server/navigation/setupStrategy.d.ts +3 -0
- package/server/navigation/setupStrategy.js +39 -0
- package/server/register/index.d.ts +3 -0
- package/server/register/index.js +4 -0
- package/server/routes/admin.d.ts +4 -0
- package/server/routes/admin.js +82 -61
- package/server/routes/client.d.ts +4 -0
- package/server/routes/client.js +25 -21
- package/server/routes/index.d.ts +6 -0
- package/server/routes/index.js +13 -4
- package/server/services/admin.d.ts +5 -0
- package/server/services/admin.js +238 -0
- package/server/services/client.d.ts +5 -0
- package/server/services/client.js +249 -0
- package/server/services/common.d.ts +5 -0
- package/server/services/common.js +313 -0
- package/server/services/index.d.ts +7 -0
- package/server/services/index.js +14 -6
- package/server/utils/constant.d.ts +27 -0
- package/server/utils/constant.js +24 -0
- package/server/utils/functions.d.ts +139 -0
- package/server/utils/functions.js +226 -0
- package/server/utils/index.d.ts +3 -0
- package/server/utils/index.js +19 -0
- package/strapi-admin.d.ts +3 -0
- package/strapi-admin.js +8 -1
- package/strapi-server.d.ts +273 -0
- package/strapi-server.js +6 -17
- package/tsconfig.tsbuildinfo +1 -0
- package/types/bootstrap.d.ts +13 -0
- package/types/bootstrap.js +3 -0
- package/types/config.d.ts +21 -0
- package/types/config.js +3 -0
- package/types/contentTypes.d.ts +85 -0
- package/types/contentTypes.js +3 -0
- package/types/controllers.d.ts +48 -0
- package/types/controllers.js +5 -0
- package/types/graphQL.d.ts +3 -0
- package/types/graphQL.js +3 -0
- package/types/i18n.d.ts +9 -0
- package/types/i18n.js +3 -0
- package/types/index.d.ts +9 -0
- package/types/index.js +25 -0
- package/types/services.d.ts +74 -0
- package/types/services.js +3 -0
- package/types/utils.d.ts +62 -0
- package/types/utils.js +27 -0
- package/utils/InvalidParamNavigationError.d.ts +4 -0
- package/utils/InvalidParamNavigationError.js +8 -0
- package/utils/NavigationError.d.ts +5 -0
- package/utils/NavigationError.js +7 -7
- package/__mocks__/pages.settings.json +0 -25
- package/__mocks__/strapi.js +0 -207
- package/jest.config.js +0 -14
- package/server/bootstrap.js +0 -52
- package/server/config.js +0 -9
- package/server/content-types/audience/lifecycle.js +0 -8
- package/server/content-types/audience/schema.json +0 -23
- package/server/content-types/navigation/schema.json +0 -45
- package/server/content-types/navigation-item/schema.json +0 -99
- package/server/content-types/navigations-items-related/schema.json +0 -47
- package/server/controllers/navigation.js +0 -105
- package/server/graphql/types/navigation-related.js +0 -25
- package/server/services/__tests__/functions.test.js +0 -48
- package/server/services/__tests__/navigation.test.js +0 -91
- package/server/services/navigation.js +0 -791
- package/server/services/utils/constant.js +0 -21
- package/server/services/utils/functions.js +0 -226
|
@@ -0,0 +1,64 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
lifecycle: {
|
|
3
|
+
renderType: {
|
|
4
|
+
FLAT: string;
|
|
5
|
+
TREE: string;
|
|
6
|
+
RFR: string;
|
|
7
|
+
};
|
|
8
|
+
};
|
|
9
|
+
schema: {
|
|
10
|
+
collectionName: string;
|
|
11
|
+
info: {
|
|
12
|
+
singularName: string;
|
|
13
|
+
pluralName: string;
|
|
14
|
+
displayName: string;
|
|
15
|
+
name: string;
|
|
16
|
+
};
|
|
17
|
+
options: {
|
|
18
|
+
increments: boolean;
|
|
19
|
+
comment: string;
|
|
20
|
+
};
|
|
21
|
+
pluginOptions: {
|
|
22
|
+
"content-manager": {
|
|
23
|
+
visible: boolean;
|
|
24
|
+
};
|
|
25
|
+
"content-type-builder": {
|
|
26
|
+
visible: boolean;
|
|
27
|
+
};
|
|
28
|
+
};
|
|
29
|
+
attributes: {
|
|
30
|
+
name: {
|
|
31
|
+
type: string;
|
|
32
|
+
configurable: boolean;
|
|
33
|
+
required: boolean;
|
|
34
|
+
};
|
|
35
|
+
slug: {
|
|
36
|
+
type: string;
|
|
37
|
+
target: string;
|
|
38
|
+
configurable: boolean;
|
|
39
|
+
required: boolean;
|
|
40
|
+
};
|
|
41
|
+
visible: {
|
|
42
|
+
type: string;
|
|
43
|
+
default: boolean;
|
|
44
|
+
configurable: boolean;
|
|
45
|
+
};
|
|
46
|
+
items: {
|
|
47
|
+
type: string;
|
|
48
|
+
relation: string;
|
|
49
|
+
target: string;
|
|
50
|
+
configurable: boolean;
|
|
51
|
+
};
|
|
52
|
+
localizations: {
|
|
53
|
+
type: string;
|
|
54
|
+
relation: string;
|
|
55
|
+
target: string;
|
|
56
|
+
};
|
|
57
|
+
localeCode: {
|
|
58
|
+
type: string;
|
|
59
|
+
};
|
|
60
|
+
};
|
|
61
|
+
};
|
|
62
|
+
};
|
|
63
|
+
export default _default;
|
|
64
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const lifecycle = require("./lifecycle");
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
lifecycle,
|
|
8
|
-
schema
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
4
|
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const schema_1 = __importDefault(require("./schema"));
|
|
7
|
+
const lifecycle_1 = __importDefault(require("./lifecycle"));
|
|
8
|
+
exports.default = {
|
|
9
|
+
lifecycle: lifecycle_1.default,
|
|
10
|
+
schema: schema_1.default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -1,14 +1,10 @@
|
|
|
1
1
|
"use strict";
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
renderType: {
|
|
10
|
-
FLAT: "flat",
|
|
11
|
-
TREE: "tree",
|
|
12
|
-
RFR: "rfr",
|
|
13
|
-
},
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
renderType: {
|
|
5
|
+
FLAT: "flat",
|
|
6
|
+
TREE: "tree",
|
|
7
|
+
RFR: "rfr",
|
|
8
|
+
},
|
|
14
9
|
};
|
|
10
|
+
//# sourceMappingURL=lifecycle.js.map
|
|
@@ -0,0 +1,55 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
collectionName: string;
|
|
3
|
+
info: {
|
|
4
|
+
singularName: string;
|
|
5
|
+
pluralName: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
options: {
|
|
10
|
+
increments: boolean;
|
|
11
|
+
comment: string;
|
|
12
|
+
};
|
|
13
|
+
pluginOptions: {
|
|
14
|
+
"content-manager": {
|
|
15
|
+
visible: boolean;
|
|
16
|
+
};
|
|
17
|
+
"content-type-builder": {
|
|
18
|
+
visible: boolean;
|
|
19
|
+
};
|
|
20
|
+
};
|
|
21
|
+
attributes: {
|
|
22
|
+
name: {
|
|
23
|
+
type: string;
|
|
24
|
+
configurable: boolean;
|
|
25
|
+
required: boolean;
|
|
26
|
+
};
|
|
27
|
+
slug: {
|
|
28
|
+
type: string;
|
|
29
|
+
target: string;
|
|
30
|
+
configurable: boolean;
|
|
31
|
+
required: boolean;
|
|
32
|
+
};
|
|
33
|
+
visible: {
|
|
34
|
+
type: string;
|
|
35
|
+
default: boolean;
|
|
36
|
+
configurable: boolean;
|
|
37
|
+
};
|
|
38
|
+
items: {
|
|
39
|
+
type: string;
|
|
40
|
+
relation: string;
|
|
41
|
+
target: string;
|
|
42
|
+
configurable: boolean;
|
|
43
|
+
};
|
|
44
|
+
localizations: {
|
|
45
|
+
type: string;
|
|
46
|
+
relation: string;
|
|
47
|
+
target: string;
|
|
48
|
+
};
|
|
49
|
+
localeCode: {
|
|
50
|
+
type: string;
|
|
51
|
+
};
|
|
52
|
+
};
|
|
53
|
+
};
|
|
54
|
+
export default _default;
|
|
55
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1,56 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
collectionName: "navigations",
|
|
5
|
+
info: {
|
|
6
|
+
singularName: "navigation",
|
|
7
|
+
pluralName: "navigations",
|
|
8
|
+
displayName: "Navigation",
|
|
9
|
+
name: "navigation"
|
|
10
|
+
},
|
|
11
|
+
options: {
|
|
12
|
+
increments: true,
|
|
13
|
+
comment: ""
|
|
14
|
+
},
|
|
15
|
+
pluginOptions: {
|
|
16
|
+
"content-manager": {
|
|
17
|
+
visible: false
|
|
18
|
+
},
|
|
19
|
+
"content-type-builder": {
|
|
20
|
+
visible: false
|
|
21
|
+
}
|
|
22
|
+
},
|
|
23
|
+
attributes: {
|
|
24
|
+
name: {
|
|
25
|
+
type: "text",
|
|
26
|
+
configurable: false,
|
|
27
|
+
required: true
|
|
28
|
+
},
|
|
29
|
+
slug: {
|
|
30
|
+
type: "uid",
|
|
31
|
+
target: "name",
|
|
32
|
+
configurable: false,
|
|
33
|
+
required: true
|
|
34
|
+
},
|
|
35
|
+
visible: {
|
|
36
|
+
type: "boolean",
|
|
37
|
+
default: false,
|
|
38
|
+
configurable: false
|
|
39
|
+
},
|
|
40
|
+
items: {
|
|
41
|
+
type: "relation",
|
|
42
|
+
relation: "oneToMany",
|
|
43
|
+
target: "plugin::navigation.navigation-item",
|
|
44
|
+
configurable: false
|
|
45
|
+
},
|
|
46
|
+
localizations: {
|
|
47
|
+
type: "relation",
|
|
48
|
+
relation: "oneToMany",
|
|
49
|
+
target: "plugin::navigation.navigation",
|
|
50
|
+
},
|
|
51
|
+
localeCode: {
|
|
52
|
+
type: "string"
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
};
|
|
56
|
+
//# sourceMappingURL=schema.js.map
|
|
@@ -0,0 +1,112 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
lifecycle: {
|
|
3
|
+
type: {
|
|
4
|
+
INTERNAL: string;
|
|
5
|
+
EXTERNAL: string;
|
|
6
|
+
WRAPPER: string;
|
|
7
|
+
};
|
|
8
|
+
additionalFields: {
|
|
9
|
+
AUDIENCE: string;
|
|
10
|
+
};
|
|
11
|
+
lifecycles: {
|
|
12
|
+
afterFind(results: any): void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
schema: {
|
|
16
|
+
collectionName: string;
|
|
17
|
+
info: {
|
|
18
|
+
singularName: string;
|
|
19
|
+
pluralName: string;
|
|
20
|
+
displayName: string;
|
|
21
|
+
name: string;
|
|
22
|
+
};
|
|
23
|
+
options: {
|
|
24
|
+
increments: boolean;
|
|
25
|
+
timestamps: boolean;
|
|
26
|
+
comment: string;
|
|
27
|
+
};
|
|
28
|
+
pluginOptions: {
|
|
29
|
+
"content-manager": {
|
|
30
|
+
visible: boolean;
|
|
31
|
+
};
|
|
32
|
+
"content-type-builder": {
|
|
33
|
+
visible: boolean;
|
|
34
|
+
};
|
|
35
|
+
i18n: {
|
|
36
|
+
localized: boolean;
|
|
37
|
+
};
|
|
38
|
+
};
|
|
39
|
+
attributes: {
|
|
40
|
+
title: {
|
|
41
|
+
type: string;
|
|
42
|
+
configurable: boolean;
|
|
43
|
+
required: boolean;
|
|
44
|
+
pluginOptions: {
|
|
45
|
+
i18n: {
|
|
46
|
+
localized: boolean;
|
|
47
|
+
};
|
|
48
|
+
};
|
|
49
|
+
};
|
|
50
|
+
type: {
|
|
51
|
+
type: string;
|
|
52
|
+
enum: string[];
|
|
53
|
+
default: string;
|
|
54
|
+
configurable: boolean;
|
|
55
|
+
};
|
|
56
|
+
path: {
|
|
57
|
+
type: string;
|
|
58
|
+
targetField: string;
|
|
59
|
+
configurable: boolean;
|
|
60
|
+
};
|
|
61
|
+
externalPath: {
|
|
62
|
+
type: string;
|
|
63
|
+
configurable: boolean;
|
|
64
|
+
};
|
|
65
|
+
uiRouterKey: {
|
|
66
|
+
type: string;
|
|
67
|
+
configurable: boolean;
|
|
68
|
+
};
|
|
69
|
+
menuAttached: {
|
|
70
|
+
type: string;
|
|
71
|
+
default: boolean;
|
|
72
|
+
configurable: boolean;
|
|
73
|
+
};
|
|
74
|
+
order: {
|
|
75
|
+
type: string;
|
|
76
|
+
default: number;
|
|
77
|
+
configurable: boolean;
|
|
78
|
+
};
|
|
79
|
+
collapsed: {
|
|
80
|
+
type: string;
|
|
81
|
+
default: boolean;
|
|
82
|
+
configurable: boolean;
|
|
83
|
+
};
|
|
84
|
+
related: {
|
|
85
|
+
type: string;
|
|
86
|
+
relation: string;
|
|
87
|
+
target: string;
|
|
88
|
+
configurable: boolean;
|
|
89
|
+
};
|
|
90
|
+
parent: {
|
|
91
|
+
type: string;
|
|
92
|
+
relation: string;
|
|
93
|
+
target: string;
|
|
94
|
+
configurable: boolean;
|
|
95
|
+
default: null;
|
|
96
|
+
};
|
|
97
|
+
master: {
|
|
98
|
+
type: string;
|
|
99
|
+
relation: string;
|
|
100
|
+
target: string;
|
|
101
|
+
configurable: boolean;
|
|
102
|
+
};
|
|
103
|
+
audience: {
|
|
104
|
+
type: string;
|
|
105
|
+
relation: string;
|
|
106
|
+
target: string;
|
|
107
|
+
};
|
|
108
|
+
};
|
|
109
|
+
};
|
|
110
|
+
};
|
|
111
|
+
export default _default;
|
|
112
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,9 +1,12 @@
|
|
|
1
|
-
"use strict"
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
const lifecycle = require("./lifecycle");
|
|
5
|
-
|
|
6
|
-
module.exports = {
|
|
7
|
-
lifecycle,
|
|
8
|
-
schema
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
9
4
|
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const schema_1 = __importDefault(require("./schema"));
|
|
7
|
+
const lifecycle_1 = __importDefault(require("./lifecycle"));
|
|
8
|
+
exports.default = {
|
|
9
|
+
lifecycle: lifecycle_1.default,
|
|
10
|
+
schema: schema_1.default
|
|
11
|
+
};
|
|
12
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,16 @@
|
|
|
1
|
+
import { ToBeFixed } from "../../../types";
|
|
2
|
+
declare const _default: {
|
|
3
|
+
type: {
|
|
4
|
+
INTERNAL: string;
|
|
5
|
+
EXTERNAL: string;
|
|
6
|
+
WRAPPER: string;
|
|
7
|
+
};
|
|
8
|
+
additionalFields: {
|
|
9
|
+
AUDIENCE: string;
|
|
10
|
+
};
|
|
11
|
+
lifecycles: {
|
|
12
|
+
afterFind(results: ToBeFixed): void;
|
|
13
|
+
};
|
|
14
|
+
};
|
|
15
|
+
export default _default;
|
|
16
|
+
//# sourceMappingURL=lifecycle.d.ts.map
|
|
@@ -1,35 +1,31 @@
|
|
|
1
1
|
'use strict';
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
-
|
|
15
|
-
|
|
16
|
-
|
|
17
|
-
|
|
18
|
-
|
|
19
|
-
|
|
20
|
-
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
|
|
24
|
-
|
|
25
|
-
|
|
26
|
-
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
});
|
|
32
|
-
});
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
const lodash_1 = require("lodash");
|
|
4
|
+
exports.default = {
|
|
5
|
+
type: {
|
|
6
|
+
INTERNAL: 'INTERNAL',
|
|
7
|
+
EXTERNAL: 'EXTERNAL',
|
|
8
|
+
WRAPPER: 'WRAPPER',
|
|
9
|
+
},
|
|
10
|
+
additionalFields: {
|
|
11
|
+
AUDIENCE: 'audience',
|
|
12
|
+
},
|
|
13
|
+
lifecycles: {
|
|
14
|
+
afterFind(results) {
|
|
15
|
+
results.forEach((_) => {
|
|
16
|
+
_?.related.forEach((entity) => {
|
|
17
|
+
for (const [key, value] of Object.entries(entity)) {
|
|
18
|
+
const newKey = (0, lodash_1.camelCase)(key);
|
|
19
|
+
if (value) {
|
|
20
|
+
entity[newKey] = value;
|
|
21
|
+
}
|
|
22
|
+
if (newKey !== key) {
|
|
23
|
+
delete entity[key];
|
|
24
|
+
}
|
|
25
|
+
}
|
|
26
|
+
});
|
|
27
|
+
});
|
|
28
|
+
},
|
|
33
29
|
},
|
|
34
|
-
},
|
|
35
30
|
};
|
|
31
|
+
//# sourceMappingURL=lifecycle.js.map
|
|
@@ -0,0 +1,97 @@
|
|
|
1
|
+
declare const _default: {
|
|
2
|
+
collectionName: string;
|
|
3
|
+
info: {
|
|
4
|
+
singularName: string;
|
|
5
|
+
pluralName: string;
|
|
6
|
+
displayName: string;
|
|
7
|
+
name: string;
|
|
8
|
+
};
|
|
9
|
+
options: {
|
|
10
|
+
increments: boolean;
|
|
11
|
+
timestamps: boolean;
|
|
12
|
+
comment: string;
|
|
13
|
+
};
|
|
14
|
+
pluginOptions: {
|
|
15
|
+
"content-manager": {
|
|
16
|
+
visible: boolean;
|
|
17
|
+
};
|
|
18
|
+
"content-type-builder": {
|
|
19
|
+
visible: boolean;
|
|
20
|
+
};
|
|
21
|
+
i18n: {
|
|
22
|
+
localized: boolean;
|
|
23
|
+
};
|
|
24
|
+
};
|
|
25
|
+
attributes: {
|
|
26
|
+
title: {
|
|
27
|
+
type: string;
|
|
28
|
+
configurable: boolean;
|
|
29
|
+
required: boolean;
|
|
30
|
+
pluginOptions: {
|
|
31
|
+
i18n: {
|
|
32
|
+
localized: boolean;
|
|
33
|
+
};
|
|
34
|
+
};
|
|
35
|
+
};
|
|
36
|
+
type: {
|
|
37
|
+
type: string;
|
|
38
|
+
enum: string[];
|
|
39
|
+
default: string;
|
|
40
|
+
configurable: boolean;
|
|
41
|
+
};
|
|
42
|
+
path: {
|
|
43
|
+
type: string;
|
|
44
|
+
targetField: string;
|
|
45
|
+
configurable: boolean;
|
|
46
|
+
};
|
|
47
|
+
externalPath: {
|
|
48
|
+
type: string;
|
|
49
|
+
configurable: boolean;
|
|
50
|
+
};
|
|
51
|
+
uiRouterKey: {
|
|
52
|
+
type: string;
|
|
53
|
+
configurable: boolean;
|
|
54
|
+
};
|
|
55
|
+
menuAttached: {
|
|
56
|
+
type: string;
|
|
57
|
+
default: boolean;
|
|
58
|
+
configurable: boolean;
|
|
59
|
+
};
|
|
60
|
+
order: {
|
|
61
|
+
type: string;
|
|
62
|
+
default: number;
|
|
63
|
+
configurable: boolean;
|
|
64
|
+
};
|
|
65
|
+
collapsed: {
|
|
66
|
+
type: string;
|
|
67
|
+
default: boolean;
|
|
68
|
+
configurable: boolean;
|
|
69
|
+
};
|
|
70
|
+
related: {
|
|
71
|
+
type: string;
|
|
72
|
+
relation: string;
|
|
73
|
+
target: string;
|
|
74
|
+
configurable: boolean;
|
|
75
|
+
};
|
|
76
|
+
parent: {
|
|
77
|
+
type: string;
|
|
78
|
+
relation: string;
|
|
79
|
+
target: string;
|
|
80
|
+
configurable: boolean;
|
|
81
|
+
default: null;
|
|
82
|
+
};
|
|
83
|
+
master: {
|
|
84
|
+
type: string;
|
|
85
|
+
relation: string;
|
|
86
|
+
target: string;
|
|
87
|
+
configurable: boolean;
|
|
88
|
+
};
|
|
89
|
+
audience: {
|
|
90
|
+
type: string;
|
|
91
|
+
relation: string;
|
|
92
|
+
target: string;
|
|
93
|
+
};
|
|
94
|
+
};
|
|
95
|
+
};
|
|
96
|
+
export default _default;
|
|
97
|
+
//# sourceMappingURL=schema.d.ts.map
|
|
@@ -0,0 +1,102 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.default = {
|
|
4
|
+
collectionName: "navigations_items",
|
|
5
|
+
info: {
|
|
6
|
+
singularName: "navigation-item",
|
|
7
|
+
pluralName: "navigation-items",
|
|
8
|
+
displayName: "Navigation Item",
|
|
9
|
+
name: "navigation-item"
|
|
10
|
+
},
|
|
11
|
+
options: {
|
|
12
|
+
increments: true,
|
|
13
|
+
timestamps: true,
|
|
14
|
+
comment: "Navigation Item"
|
|
15
|
+
},
|
|
16
|
+
pluginOptions: {
|
|
17
|
+
"content-manager": {
|
|
18
|
+
visible: false
|
|
19
|
+
},
|
|
20
|
+
"content-type-builder": {
|
|
21
|
+
visible: false
|
|
22
|
+
},
|
|
23
|
+
i18n: {
|
|
24
|
+
localized: false
|
|
25
|
+
}
|
|
26
|
+
},
|
|
27
|
+
attributes: {
|
|
28
|
+
title: {
|
|
29
|
+
type: "text",
|
|
30
|
+
configurable: false,
|
|
31
|
+
required: true,
|
|
32
|
+
pluginOptions: {
|
|
33
|
+
i18n: {
|
|
34
|
+
localized: false
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
},
|
|
38
|
+
type: {
|
|
39
|
+
type: "enumeration",
|
|
40
|
+
enum: [
|
|
41
|
+
"INTERNAL",
|
|
42
|
+
"EXTERNAL",
|
|
43
|
+
"WRAPPER"
|
|
44
|
+
],
|
|
45
|
+
default: "INTERNAL",
|
|
46
|
+
configurable: false
|
|
47
|
+
},
|
|
48
|
+
path: {
|
|
49
|
+
type: "text",
|
|
50
|
+
targetField: "title",
|
|
51
|
+
configurable: false
|
|
52
|
+
},
|
|
53
|
+
externalPath: {
|
|
54
|
+
type: "text",
|
|
55
|
+
configurable: false
|
|
56
|
+
},
|
|
57
|
+
uiRouterKey: {
|
|
58
|
+
type: "string",
|
|
59
|
+
configurable: false
|
|
60
|
+
},
|
|
61
|
+
menuAttached: {
|
|
62
|
+
type: "boolean",
|
|
63
|
+
default: false,
|
|
64
|
+
configurable: false
|
|
65
|
+
},
|
|
66
|
+
order: {
|
|
67
|
+
type: "integer",
|
|
68
|
+
default: 0,
|
|
69
|
+
configurable: false
|
|
70
|
+
},
|
|
71
|
+
collapsed: {
|
|
72
|
+
type: "boolean",
|
|
73
|
+
default: false,
|
|
74
|
+
configurable: false
|
|
75
|
+
},
|
|
76
|
+
related: {
|
|
77
|
+
type: "relation",
|
|
78
|
+
relation: "oneToOne",
|
|
79
|
+
target: "plugin::navigation.navigations-items-related",
|
|
80
|
+
configurable: false
|
|
81
|
+
},
|
|
82
|
+
parent: {
|
|
83
|
+
type: "relation",
|
|
84
|
+
relation: "oneToOne",
|
|
85
|
+
target: "plugin::navigation.navigation-item",
|
|
86
|
+
configurable: false,
|
|
87
|
+
default: null
|
|
88
|
+
},
|
|
89
|
+
master: {
|
|
90
|
+
type: "relation",
|
|
91
|
+
relation: "manyToOne",
|
|
92
|
+
target: "plugin::navigation.navigation",
|
|
93
|
+
configurable: false
|
|
94
|
+
},
|
|
95
|
+
audience: {
|
|
96
|
+
type: "relation",
|
|
97
|
+
relation: "oneToMany",
|
|
98
|
+
target: "plugin::navigation.audience"
|
|
99
|
+
}
|
|
100
|
+
}
|
|
101
|
+
};
|
|
102
|
+
//# sourceMappingURL=schema.js.map
|