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
package/admin/src/permissions.js
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const permissions_1 = __importDefault(require("../../permissions"));
|
|
3
7
|
const pluginPermissions = {
|
|
4
|
-
access: [{ action:
|
|
5
|
-
update: [{ action:
|
|
6
|
-
|
|
7
|
-
|
|
8
|
-
|
|
8
|
+
access: [{ action: permissions_1.default.render(permissions_1.default.navigation.read), subject: null }],
|
|
9
|
+
update: [{ action: permissions_1.default.render(permissions_1.default.navigation.update), subject: null }],
|
|
10
|
+
};
|
|
11
|
+
exports.default = pluginPermissions;
|
|
12
|
+
//# sourceMappingURL=permissions.js.map
|
package/admin/src/pluginId.js
CHANGED
|
@@ -1,105 +1,158 @@
|
|
|
1
1
|
{
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
|
|
46
|
-
|
|
47
|
-
|
|
48
|
-
|
|
49
|
-
|
|
50
|
-
|
|
51
|
-
|
|
52
|
-
|
|
53
|
-
|
|
54
|
-
|
|
55
|
-
|
|
56
|
-
|
|
57
|
-
|
|
58
|
-
|
|
59
|
-
|
|
60
|
-
|
|
61
|
-
|
|
62
|
-
|
|
63
|
-
|
|
64
|
-
|
|
65
|
-
|
|
66
|
-
|
|
67
|
-
|
|
68
|
-
|
|
69
|
-
|
|
70
|
-
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
|
|
88
|
-
|
|
89
|
-
|
|
90
|
-
|
|
91
|
-
|
|
92
|
-
|
|
93
|
-
|
|
94
|
-
|
|
95
|
-
|
|
96
|
-
|
|
97
|
-
|
|
98
|
-
|
|
99
|
-
|
|
100
|
-
|
|
101
|
-
|
|
102
|
-
|
|
103
|
-
|
|
104
|
-
|
|
105
|
-
|
|
2
|
+
"plugin.name": "UI Navigation",
|
|
3
|
+
"header.title": "Navigation",
|
|
4
|
+
"header.description": "Define your portal navigation",
|
|
5
|
+
"header.action.newItem": "New Item",
|
|
6
|
+
"header.action.manage": "Manage",
|
|
7
|
+
"header.action.collapseAll": "Collapse All",
|
|
8
|
+
"header.action.expandAll": "Expand All",
|
|
9
|
+
"submit.cta.cancel": "Cancel",
|
|
10
|
+
"submit.cta.save": "Save",
|
|
11
|
+
"empty": "Your navigation is empty",
|
|
12
|
+
"empty.cta": "Create first item",
|
|
13
|
+
"popup.item.header.edit": "Edit navigation item",
|
|
14
|
+
"popup.item.header.new": "New navigation item",
|
|
15
|
+
"popup.item.form.title.label": "Title",
|
|
16
|
+
"popup.item.form.title.placeholder": "Enter the item title or leave blank to pull from related entity",
|
|
17
|
+
"popup.item.form.uiRouterKey.label": "UI router key",
|
|
18
|
+
"popup.item.form.uiRouterKey.placeholder": "If empty, auto generated by \"Title\"",
|
|
19
|
+
"popup.item.form.path.label": "URL",
|
|
20
|
+
"popup.item.form.path.placeholder": "Unique url part identifies this item",
|
|
21
|
+
"popup.item.form.path.preview": "Preview:",
|
|
22
|
+
"popup.item.form.externalPath.label": "External URL",
|
|
23
|
+
"popup.item.form.externalPath.placeholder": "Link to the external source",
|
|
24
|
+
"popup.item.form.externalPath.validation.type": "This value is not a proper url.",
|
|
25
|
+
"popup.item.form.menuAttached.label": "Attach to menu",
|
|
26
|
+
"popup.item.form.type.label": "Navigation item type",
|
|
27
|
+
"popup.item.form.type.internal.label": "Internal source",
|
|
28
|
+
"popup.item.form.type.external.label": "External source",
|
|
29
|
+
"popup.item.form.type.wrapper.label": "Wrapper element",
|
|
30
|
+
"popup.item.form.type.external.description": "Output path: {value}",
|
|
31
|
+
"popup.item.form.audience.label": "Audience",
|
|
32
|
+
"popup.item.form.audience.placeholder": "Select audience...",
|
|
33
|
+
"popup.item.form.audience.empty": "There are no more audiences",
|
|
34
|
+
"popup.item.form.relatedSection.label": "Relation to",
|
|
35
|
+
"popup.item.form.relatedType.label": "Content Type",
|
|
36
|
+
"popup.item.form.relatedType.placeholder": "Select content type...",
|
|
37
|
+
"popup.item.form.relatedType.empty": "There are no content types to select",
|
|
38
|
+
"popup.item.form.i18n.locale.label": "Copy details from",
|
|
39
|
+
"popup.item.form.i18n.locale.placeholder": "locale",
|
|
40
|
+
"popup.item.form.i18n.locale.button": "Copy",
|
|
41
|
+
"popup.item.form.i18n.locale.error.generic": "Unable to copy item",
|
|
42
|
+
"popup.item.form.i18n.locale.error.unavailable": "Locale version unavailable",
|
|
43
|
+
"popup.item.form.related.label": "Entity",
|
|
44
|
+
"popup.item.form.related.empty": "There are no more entities of \"{ contentTypeName }\" to select",
|
|
45
|
+
"popup.item.form.button.create": "Create item",
|
|
46
|
+
"popup.item.form.button.update": "Update item",
|
|
47
|
+
"popup.item.form.button.restore": "Restore item",
|
|
48
|
+
"popup.item.form.button.remove": "Remove",
|
|
49
|
+
"popup.item.form.button.save": "Save",
|
|
50
|
+
"popup.item.form.button.cancel": "Cancel",
|
|
51
|
+
"popup.navigation.form.name.label": "Name",
|
|
52
|
+
"popup.navigation.form.name.placeholder": "Navigations's name",
|
|
53
|
+
"popup.navigation.form.visible.label": "Visibility",
|
|
54
|
+
"popup.navigation.form.validation.name.alreadyUsed": "Name is already used",
|
|
55
|
+
"popup.navigation.form.validation.name.required": "Name is required",
|
|
56
|
+
"popup.navigation.form.validation.name.tooShort": "Name is too short",
|
|
57
|
+
"popup.navigation.form.validation.visible.required": "Visibility is required",
|
|
58
|
+
"popup.navigation.manage.table.hasSelected": "{count} entries selected",
|
|
59
|
+
"popup.navigation.manage.table.id": "Id",
|
|
60
|
+
"popup.navigation.manage.table.name": "Name",
|
|
61
|
+
"popup.navigation.manage.table.locale": "Locale versions",
|
|
62
|
+
"popup.navigation.manage.table.visibility": "Visibility",
|
|
63
|
+
"popup.navigation.manage.button.goBack": "Go back",
|
|
64
|
+
"popup.navigation.manage.button.cancel": "Cancel",
|
|
65
|
+
"popup.navigation.manage.button.delete": "Delete",
|
|
66
|
+
"popup.navigation.manage.button.save": "Save",
|
|
67
|
+
"popup.navigation.manage.button.edit": "Edit",
|
|
68
|
+
"popup.navigation.manage.button.create": "Create",
|
|
69
|
+
"popup.navigation.manage.delete.header": "Following navigations will be removed:",
|
|
70
|
+
"popup.navigation.manage.header.LIST": "All navigations",
|
|
71
|
+
"popup.navigation.manage.header.CREATE": "New navigation",
|
|
72
|
+
"popup.navigation.manage.header.DELETE": "Deleting",
|
|
73
|
+
"popup.navigation.manage.header.ERROR": "Error",
|
|
74
|
+
"popup.navigation.manage.header.EDIT": "Editing \"{name}\"",
|
|
75
|
+
"popup.navigation.manage.error.message": "An error happened :(",
|
|
76
|
+
"notification.navigation.submit": "Navigation changes has been saved",
|
|
77
|
+
"notification.navigation.error": "Duplicate path: { path } in parent: { parentTitle } for { errorTitles } items",
|
|
78
|
+
"notification.navigation.item.relation": "Entity relation does not exist!",
|
|
79
|
+
"notification.navigation.item.relation.status.draft": "draft",
|
|
80
|
+
"notification.navigation.item.relation.status.published": "published",
|
|
81
|
+
"notification.error": "Error while processing request.",
|
|
82
|
+
"pages.main.search.placeholder": "Type to start searching...",
|
|
83
|
+
"pages.main.header.localization.select.placeholder": "Select locale",
|
|
84
|
+
"pages.settings.general.title": "General settings",
|
|
85
|
+
"pages.settings.additional.title": "Additional settings",
|
|
86
|
+
"pages.settings.nameField.title": "Content types settings",
|
|
87
|
+
"pages.settings.restoring.title": "Restoring",
|
|
88
|
+
"pages.settings.section.title": "Navigation Plugin",
|
|
89
|
+
"pages.settings.section.subtitle": "Configuration",
|
|
90
|
+
"pages.settings.header.title": "Navigation",
|
|
91
|
+
"pages.settings.header.description": "Configure the navigation plugin",
|
|
92
|
+
"pages.settings.actions.restart": "Restart Strapi",
|
|
93
|
+
"pages.settings.actions.submit": "Save configuration",
|
|
94
|
+
"pages.settings.actions.restore": "Restore configuration",
|
|
95
|
+
"pages.settings.actions.restore.confirmation.header": "Do you want to continue?",
|
|
96
|
+
"pages.settings.actions.restore.confirmation.confirm": "Restore",
|
|
97
|
+
"pages.settings.actions.restore.confirmation.description": "Plugin config will be restored from plugins.js file.",
|
|
98
|
+
"pages.settings.actions.restore.description": "Restoring the plugin configuration will cause it to be replaced with configuration saved inside 'plugins.js' file.",
|
|
99
|
+
"pages.settings.actions.restart.alert.title": "Strapi requires restart",
|
|
100
|
+
"pages.settings.actions.restart.alert.description": "You've made a configuration changes which requires your Strapi application to be restarted to take an effect. Do it manually or by using below trigger.",
|
|
101
|
+
"pages.settings.actions.restart.alert.reason.I18N": "Internationalization(i18n) changes will be applied.",
|
|
102
|
+
"pages.settings.actions.restart.alert.reason.GRAPH_QL": "GraphQL changes will be applied.",
|
|
103
|
+
"pages.settings.actions.restart.alert.reason.I18N_NAVIGATIONS_PRUNE": "Obsolete locale navigations will be removed.",
|
|
104
|
+
"pages.settings.actions.disableI18n.confirmation.header": "Disabling Internationalization",
|
|
105
|
+
"pages.settings.actions.disableI18n.confirmation.confirm": "I understand",
|
|
106
|
+
"pages.settings.actions.disableI18n.confirmation.description.line1": "You are disabling Internationalization for Navigation. Navigations for locales different than default are not available for viewing and modifications via this plugin.",
|
|
107
|
+
"pages.settings.actions.disableI18n.confirmation.description.line2": "You can choose to remove navigations for other locales.",
|
|
108
|
+
"pages.settings.actions.disableI18n.confirmation.description.line3": "Remember! Removal is irreversible",
|
|
109
|
+
"pages.settings.actions.disableI18n.prune.label": "Obsolete navigations",
|
|
110
|
+
"pages.settings.actions.disableI18n.prune.on": "Remove",
|
|
111
|
+
"pages.settings.actions.disableI18n.prune.off": "Keep",
|
|
112
|
+
"pages.settings.actions.restart.alert.close": "Discard",
|
|
113
|
+
"pages.settings.actions.restart.alert.cancel": "Cancel",
|
|
114
|
+
"pages.settings.notification.fetch.error": "Failed to fetch configuration. Retrying...",
|
|
115
|
+
"pages.settings.notification.submit.success": "Config has been updated successfully",
|
|
116
|
+
"pages.settings.notification.restore.success": "Config has been restored successfully",
|
|
117
|
+
"pages.settings.notification.restart.success": "Application has been restarted successfully",
|
|
118
|
+
"pages.settings.notification.submit.error": "Config update has failed",
|
|
119
|
+
"pages.settings.notification.restore.error": "Config restore has failed",
|
|
120
|
+
"pages.settings.notification.restart.error": "Failed to restart your application. Try to do it manually.",
|
|
121
|
+
"pages.settings.form.contentTypes.label": "Enable navigation for",
|
|
122
|
+
"pages.settings.form.i18n.label": "i18n",
|
|
123
|
+
"pages.settings.form.i18n.hint": "Enable internationalisation",
|
|
124
|
+
"pages.settings.form.i18n.hint.missingDefaultLocale": "Default locale missing!",
|
|
125
|
+
"pages.settings.form.contentTypes.placeholder": "eg. Pages, Posts",
|
|
126
|
+
"pages.settings.form.contentTypes.hint": "If none is selected, also none of the content types are enabled",
|
|
127
|
+
"pages.settings.form.allowedLevels.label": "Allowed levels",
|
|
128
|
+
"pages.settings.form.allowedLevels.placeholder": "eg. 2",
|
|
129
|
+
"pages.settings.form.allowedLevels.hint": "Maximum level for which you're able to mark item as \"Menu attached\"",
|
|
130
|
+
"pages.settings.form.audience.label": "Audience",
|
|
131
|
+
"pages.settings.form.audience.hint": "Enable audience field",
|
|
132
|
+
"pages.settings.form.nameField.label": "Name fields",
|
|
133
|
+
"pages.settings.form.nameField.placeholder": "Select at least one or leave empty to apply defaults",
|
|
134
|
+
"pages.settings.form.nameField.hint": "If left empty name field is going to take following ordered fields: \"title\", \"subject\" and \"name\"",
|
|
135
|
+
"pages.settings.form.nameField.empty": "This content type doesn't have any string attributes",
|
|
136
|
+
"pages.settings.form.populate.label": "Fields to populate",
|
|
137
|
+
"pages.settings.form.populate.placeholder": "Select at least one or leave empty to disable populating relation fields",
|
|
138
|
+
"pages.settings.form.populate.hint": "Selected relation fields will be populated inside API responses",
|
|
139
|
+
"pages.settings.form.populate.empty": "This content type doesn't have any relation fields",
|
|
140
|
+
"pages.settings.form.contentTypesSettings.label": "Content types",
|
|
141
|
+
"pages.settings.form.contentTypesSettings.tooltip": "Custom configuration per content type",
|
|
142
|
+
"pages.settings.form.contentTypesSettings.initializationWarning.title": "Warning",
|
|
143
|
+
"pages.settings.form.contentTypesSettings.initializationWarning.content": "- Content Type hasn't yet been initialized. Initialize it first to be able to use in a Visual Editor.",
|
|
144
|
+
"pages.view.actions.i18nCopyItems.confirmation.header": "Confirmation",
|
|
145
|
+
"pages.view.actions.i18nCopyItems.confirmation.confirm": "Copy",
|
|
146
|
+
"pages.view.actions.i18nCopyItems.confirmation.content": "Do you want to copy navigations items?",
|
|
147
|
+
"components.navigationItem.action.newItem": "Add nested item",
|
|
148
|
+
"components.navigationItem.badge.removed": "Removed",
|
|
149
|
+
"components.navigationItem.badge.draft": "Draft",
|
|
150
|
+
"components.navigationItem.badge.published": "Published",
|
|
151
|
+
"components.confirmation.dialog.button.cancel": "Cancel",
|
|
152
|
+
"components.confirmation.dialog.button.confirm": "Confirm",
|
|
153
|
+
"components.confirmation.dialog.description": "Do you want to continue?",
|
|
154
|
+
"components.confirmation.dialog.header": "Confirmation",
|
|
155
|
+
"view.i18n.fill.cta": "or bootstrap",
|
|
156
|
+
"view.i18n.fill.option": "{locale} locale",
|
|
157
|
+
"view.i18n.fill.cta.button": "copy"
|
|
158
|
+
}
|
|
@@ -1,45 +1,45 @@
|
|
|
1
1
|
{
|
|
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
|
-
|
|
33
|
-
|
|
34
|
-
|
|
35
|
-
|
|
36
|
-
|
|
37
|
-
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
41
|
-
|
|
42
|
-
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
}
|
|
2
|
+
"plugin.name": "UI Navigation",
|
|
3
|
+
"header.title": "Navigation",
|
|
4
|
+
"header.description": "Définisser votre menu de navigation",
|
|
5
|
+
"submit.cta.cancel": "Annuler",
|
|
6
|
+
"submit.cta.save": "Sauvegarder",
|
|
7
|
+
"empty": "Le menu de navigation est vide",
|
|
8
|
+
"empty.cta": "Créer un premier élément",
|
|
9
|
+
"popup.item.header": "Modifiez les éléments de navigation",
|
|
10
|
+
"popup.item.form.title.label": "Titre",
|
|
11
|
+
"popup.item.form.title.placeholder": "Saisissez le titre de l'élément ou laissez le champ vide pour utiliser celui de l'entité associée",
|
|
12
|
+
"popup.item.form.uiRouterKey.label": "Clé de routeur pour l'interface utilisateur",
|
|
13
|
+
"popup.item.form.uiRouterKey.placeholder": "Si vide, généré automatiquement par \"Title\"",
|
|
14
|
+
"popup.item.form.path.label": "URL",
|
|
15
|
+
"popup.item.form.path.placeholder": "Une partie d'URL unique identifie cet élément",
|
|
16
|
+
"popup.item.form.path.preview": "Aperçu:",
|
|
17
|
+
"popup.item.form.externalPath.label": "URL externe",
|
|
18
|
+
"popup.item.form.externalPath.placeholder": "Lien vers la source externe",
|
|
19
|
+
"popup.item.form.externalPath.validation.type": "Cette valeur d'URL n'est pas correcte.",
|
|
20
|
+
"popup.item.form.menuAttached.label": "Ajouter au menu",
|
|
21
|
+
"popup.item.form.type.label": "Type",
|
|
22
|
+
"popup.item.form.type.internal.label": "Interne",
|
|
23
|
+
"popup.item.form.type.external.label": "Externe",
|
|
24
|
+
"popup.item.form.audience.label": "Audience",
|
|
25
|
+
"popup.item.form.audience.placeholder": "Écrivez pour lancer la recherche...",
|
|
26
|
+
"popup.item.form.relatedSection.label": "Relation avec",
|
|
27
|
+
"popup.item.form.relatedType.label": "Type de contenu",
|
|
28
|
+
"popup.item.form.related.label": "Entitée",
|
|
29
|
+
"popup.item.form.related.empty": "Il n'y a plus d'entitée \"{ contentTypeName }\", que vous pouvez sélectionner",
|
|
30
|
+
"popup.item.form.button.create": "Créer un élément",
|
|
31
|
+
"popup.item.form.button.update": "Modifier l'élément",
|
|
32
|
+
"popup.item.form.button.restore": "Restaurer l'élément",
|
|
33
|
+
"popup.item.form.button.remove": "Supprimer",
|
|
34
|
+
"popup.item.form.button.save": "Sauvegarder",
|
|
35
|
+
"popup.item.form.button.cancel": "Annuler",
|
|
36
|
+
"notification.navigation.submit": "Les modifications de navigation ont été enregistrées",
|
|
37
|
+
"notification.navigation.error": "Chemin indisponible: { path } dans le parent: { parentTitle } pour l'élément { errorTitles }",
|
|
38
|
+
"notification.navigation.item.relation": "L'entitée n'a pas de relations!",
|
|
39
|
+
"notification.navigation.item.relation.status.draft": "brouillon",
|
|
40
|
+
"notification.navigation.item.relation.status.published": "publié",
|
|
41
|
+
"components.navigationItem.action.newItem": "Nouvel élément imbriqué",
|
|
42
|
+
"components.navigationItem.badge.removed": "Supprimé",
|
|
43
|
+
"components.navigationItem.badge.draft": "Brouillon",
|
|
44
|
+
"components.navigationItem.badge.published": "Publié"
|
|
45
|
+
}
|
|
@@ -0,0 +1,12 @@
|
|
|
1
|
+
export function getTradId(msg: any): string;
|
|
2
|
+
export function getTrad(msg: any): {
|
|
3
|
+
id: string;
|
|
4
|
+
};
|
|
5
|
+
export default trads;
|
|
6
|
+
declare namespace trads {
|
|
7
|
+
export { en };
|
|
8
|
+
export { fr };
|
|
9
|
+
}
|
|
10
|
+
import en from "./en.json";
|
|
11
|
+
import fr from "./fr.json";
|
|
12
|
+
//# sourceMappingURL=index.d.ts.map
|
|
@@ -1,13 +1,19 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.getTrad = exports.getTradId = void 0;
|
|
7
|
+
const pluginId_1 = __importDefault(require("../pluginId"));
|
|
8
|
+
const en_json_1 = __importDefault(require("./en.json"));
|
|
9
|
+
const fr_json_1 = __importDefault(require("./fr.json"));
|
|
5
10
|
const trads = {
|
|
6
|
-
|
|
7
|
-
|
|
11
|
+
en: en_json_1.default,
|
|
12
|
+
fr: fr_json_1.default,
|
|
8
13
|
};
|
|
9
|
-
|
|
10
|
-
|
|
11
|
-
|
|
12
|
-
|
|
13
|
-
|
|
14
|
+
const getTradId = (msg) => `${pluginId_1.default}.${msg}`;
|
|
15
|
+
exports.getTradId = getTradId;
|
|
16
|
+
const getTrad = (msg) => ({ id: (0, exports.getTradId)(msg) });
|
|
17
|
+
exports.getTrad = getTrad;
|
|
18
|
+
exports.default = trads;
|
|
19
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
export function fetchNavigationConfig(): Promise<any>;
|
|
2
|
+
export function updateNavigationConfig({ body }: {
|
|
3
|
+
body: any;
|
|
4
|
+
}): Promise<any>;
|
|
5
|
+
export function restoreNavigationConfig(): Promise<any>;
|
|
6
|
+
export function fetchAllContentTypes(): Promise<any>;
|
|
7
|
+
export function restartStrapi(toggleNotification: any): Promise<any>;
|
|
8
|
+
//# sourceMappingURL=api.d.ts.map
|
package/admin/src/utils/api.js
CHANGED
|
@@ -1,51 +1,55 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
export const fetchNavigationConfig = async () => {
|
|
5
|
-
try {
|
|
6
|
-
const data = await request(`/${pluginId}/settings/config`, { method: 'GET' });
|
|
7
|
-
return data;
|
|
8
|
-
} catch (err) {
|
|
9
|
-
toggleNotification({
|
|
10
|
-
type: 'warning',
|
|
11
|
-
message: { id: 'notification.error' },
|
|
12
|
-
});
|
|
13
|
-
|
|
14
|
-
return { err };
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export const updateNavigationConfig = async ({ body }) =>
|
|
19
|
-
request(`/${pluginId}/config`, { method: 'PUT', body }, true);
|
|
20
|
-
|
|
21
|
-
export const restoreNavigationConfig = async () =>
|
|
22
|
-
request(`/${pluginId}/config`, { method: 'DELETE' }, true);
|
|
23
|
-
|
|
24
|
-
export const fetchAllContentTypes = async () => {
|
|
25
|
-
try {
|
|
26
|
-
const { data } = await request('/content-manager/content-types');
|
|
27
|
-
return { ...data }
|
|
28
|
-
} catch (err) {
|
|
29
|
-
toggleNotification({
|
|
30
|
-
type: 'warning',
|
|
31
|
-
message: { id: 'notification.error' },
|
|
32
|
-
});
|
|
33
|
-
|
|
34
|
-
return { err };
|
|
35
|
-
}
|
|
36
|
-
}
|
|
37
|
-
|
|
38
|
-
export const restartStrapi = async (toggleNotification) => {
|
|
39
|
-
try {
|
|
40
|
-
const { data } = await request(`/${pluginId}/settings/restart`);
|
|
41
|
-
|
|
42
|
-
return data;
|
|
43
|
-
} catch (err) {
|
|
44
|
-
toggleNotification({
|
|
45
|
-
type: 'warning',
|
|
46
|
-
message: { id: 'notification.error' },
|
|
47
|
-
});
|
|
48
|
-
|
|
49
|
-
return { err };
|
|
50
|
-
}
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
51
4
|
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
exports.restartStrapi = exports.fetchAllContentTypes = exports.restoreNavigationConfig = exports.updateNavigationConfig = exports.fetchNavigationConfig = void 0;
|
|
7
|
+
const helper_plugin_1 = require("@strapi/helper-plugin");
|
|
8
|
+
const pluginId_1 = __importDefault(require("../pluginId"));
|
|
9
|
+
const fetchNavigationConfig = async () => {
|
|
10
|
+
try {
|
|
11
|
+
const data = await (0, helper_plugin_1.request)(`/${pluginId_1.default}/settings/config`, { method: 'GET' });
|
|
12
|
+
return data;
|
|
13
|
+
}
|
|
14
|
+
catch (err) {
|
|
15
|
+
toggleNotification({
|
|
16
|
+
type: 'warning',
|
|
17
|
+
message: { id: 'notification.error' },
|
|
18
|
+
});
|
|
19
|
+
return { err };
|
|
20
|
+
}
|
|
21
|
+
};
|
|
22
|
+
exports.fetchNavigationConfig = fetchNavigationConfig;
|
|
23
|
+
const updateNavigationConfig = async ({ body }) => (0, helper_plugin_1.request)(`/${pluginId_1.default}/config`, { method: 'PUT', body }, true);
|
|
24
|
+
exports.updateNavigationConfig = updateNavigationConfig;
|
|
25
|
+
const restoreNavigationConfig = async () => (0, helper_plugin_1.request)(`/${pluginId_1.default}/config`, { method: 'DELETE' }, true);
|
|
26
|
+
exports.restoreNavigationConfig = restoreNavigationConfig;
|
|
27
|
+
const fetchAllContentTypes = async () => {
|
|
28
|
+
try {
|
|
29
|
+
const { data } = await (0, helper_plugin_1.request)('/content-manager/content-types');
|
|
30
|
+
return { ...data };
|
|
31
|
+
}
|
|
32
|
+
catch (err) {
|
|
33
|
+
toggleNotification({
|
|
34
|
+
type: 'warning',
|
|
35
|
+
message: { id: 'notification.error' },
|
|
36
|
+
});
|
|
37
|
+
return { err };
|
|
38
|
+
}
|
|
39
|
+
};
|
|
40
|
+
exports.fetchAllContentTypes = fetchAllContentTypes;
|
|
41
|
+
const restartStrapi = async (toggleNotification) => {
|
|
42
|
+
try {
|
|
43
|
+
const { data } = await (0, helper_plugin_1.request)(`/${pluginId_1.default}/settings/restart`);
|
|
44
|
+
return data;
|
|
45
|
+
}
|
|
46
|
+
catch (err) {
|
|
47
|
+
toggleNotification({
|
|
48
|
+
type: 'warning',
|
|
49
|
+
message: { id: 'notification.error' },
|
|
50
|
+
});
|
|
51
|
+
return { err };
|
|
52
|
+
}
|
|
53
|
+
};
|
|
54
|
+
exports.restartStrapi = restartStrapi;
|
|
55
|
+
//# sourceMappingURL=api.js.map
|
|
@@ -1,5 +1,9 @@
|
|
|
1
|
-
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
1
|
+
"use strict";
|
|
2
|
+
var __importDefault = (this && this.__importDefault) || function (mod) {
|
|
3
|
+
return (mod && mod.__esModule) ? mod : { "default": mod };
|
|
4
|
+
};
|
|
5
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
6
|
+
const pluginId_1 = __importDefault(require("../pluginId"));
|
|
7
|
+
const getTrad = id => `${pluginId_1.default}.${id}`;
|
|
8
|
+
exports.default = getTrad;
|
|
9
|
+
//# sourceMappingURL=getTrad.js.map
|
|
@@ -0,0 +1,18 @@
|
|
|
1
|
+
export function getMessage(input: any, defaultMessage?: string, inPluginScope?: boolean): string;
|
|
2
|
+
export namespace ItemTypes {
|
|
3
|
+
const NAVIGATION_ITEM: string;
|
|
4
|
+
}
|
|
5
|
+
export namespace ResourceState {
|
|
6
|
+
const RESOLVED: string;
|
|
7
|
+
const LOADING: string;
|
|
8
|
+
const ERROR: string;
|
|
9
|
+
}
|
|
10
|
+
export function resolvedResourceFor(value: any): {
|
|
11
|
+
type: string;
|
|
12
|
+
value: any;
|
|
13
|
+
};
|
|
14
|
+
export function errorStatusResourceFor(errors: any): {
|
|
15
|
+
type: string;
|
|
16
|
+
errors: any;
|
|
17
|
+
};
|
|
18
|
+
//# sourceMappingURL=index.d.ts.map
|