@vonaffenfels/contentful-teasermanager 1.1.53 → 1.1.54
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/dist/{index.094ebe8a6da25ebef11e.hot-update.js → index.07e598363ffb4e0123dd.hot-update.js} +2 -2
- package/dist/index.0d1613509edd22e9248f.hot-update.js +22 -0
- package/dist/index.0d1613509edd22e9248f.hot-update.json +1 -0
- package/dist/index.0ec04034fe489f78cde4.hot-update.js +22 -0
- package/dist/index.0ec04034fe489f78cde4.hot-update.json +1 -0
- package/dist/index.139c010356b53a858854.hot-update.js +254 -0
- package/dist/index.248976de3ac65b567b42.hot-update.js +22 -0
- package/dist/index.248976de3ac65b567b42.hot-update.json +1 -0
- package/dist/index.be6397413907713e60e7.hot-update.js +22 -0
- package/dist/index.be6397413907713e60e7.hot-update.json +1 -0
- package/dist/{index.d80013ee9c93571c5cd7.hot-update.js → index.ff7cfd658909fc7ee335.hot-update.js} +2 -2
- package/dist/index.js +137 -46
- package/package.json +2 -2
- package/src/components/Contentful/ConfigScreen.js +85 -24
- package/src/components/Contentful/Dialog.js +0 -5
- package/src/components/Contentful/EntryEditor.js +2 -2
- package/src/components/Contentful/Page.js +0 -6
- package/src/index.js +0 -1
- package/dist/index.30eae97ccdf3a813b021.hot-update.js +0 -42
- package/dist/index.5ec068db2d05b046d371.hot-update.js +0 -22
- package/dist/index.5ec068db2d05b046d371.hot-update.json +0 -1
- package/dist/index.9c341de9e0f1bd4a79d2.hot-update.js +0 -43
- package/dist/index.9dfef8895061a4ec159a.hot-update.js +0 -398
- package/dist/index.9dfef8895061a4ec159a.hot-update.json +0 -1
- package/dist/index.c062f00a592bcf4fd9e7.hot-update.js +0 -20666
- package/dist/index.c062f00a592bcf4fd9e7.hot-update.json +0 -1
- package/dist/index.d80013ee9c93571c5cd7.hot-update.json +0 -1
- package/dist/index.fd3ea37b5951a3cb5357.hot-update.js +0 -11
- package/dist/index.fd3ea37b5951a3cb5357.hot-update.json +0 -1
- /package/dist/{index.094ebe8a6da25ebef11e.hot-update.json → index.07e598363ffb4e0123dd.hot-update.json} +0 -0
- /package/dist/{index.30eae97ccdf3a813b021.hot-update.json → index.139c010356b53a858854.hot-update.json} +0 -0
- /package/dist/{index.9c341de9e0f1bd4a79d2.hot-update.json → index.ff7cfd658909fc7ee335.hot-update.json} +0 -0
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@vonaffenfels/contentful-teasermanager",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.54",
|
|
4
4
|
"main": "dist/index.js",
|
|
5
5
|
"scripts": {
|
|
6
6
|
"prepublish": "yarn run build",
|
|
@@ -99,7 +99,7 @@
|
|
|
99
99
|
"@vonaffenfels/slate-editor": "^1.1.52",
|
|
100
100
|
"webpack": "5.88.2"
|
|
101
101
|
},
|
|
102
|
-
"gitHead": "
|
|
102
|
+
"gitHead": "f5696a1d623a42c86821e19c6587211bb7274195",
|
|
103
103
|
"publishConfig": {
|
|
104
104
|
"access": "public"
|
|
105
105
|
}
|
|
@@ -4,12 +4,18 @@ import React, {
|
|
|
4
4
|
import {
|
|
5
5
|
Form, Workbench,
|
|
6
6
|
} from '@contentful/forma-36-react-components';
|
|
7
|
-
import {
|
|
7
|
+
import {
|
|
8
|
+
Button, DisplayText, Flex,
|
|
9
|
+
FormControl, Subheading, TextInput,
|
|
10
|
+
} from '@contentful/f36-components';
|
|
8
11
|
import {Multiselect} from '@contentful/f36-multiselect';
|
|
9
12
|
import {css} from 'emotion';
|
|
10
13
|
|
|
11
14
|
const Config = ({sdk}) => {
|
|
12
|
-
const [params, setParams] = useState({
|
|
15
|
+
const [params, setParams] = useState({
|
|
16
|
+
usersWithAccess: {},
|
|
17
|
+
portalsWithAccess: [],
|
|
18
|
+
});
|
|
13
19
|
const [spaceUsers, setSpaceUsers] = useState([]);
|
|
14
20
|
|
|
15
21
|
const onConfigure = async () => {
|
|
@@ -24,6 +30,10 @@ const Config = ({sdk}) => {
|
|
|
24
30
|
useEffect(() => {
|
|
25
31
|
if (sdk) {
|
|
26
32
|
sdk.app.getParameters().then(params => {
|
|
33
|
+
if (Array.isArray(params?.usersWithAccess)) {
|
|
34
|
+
params.usersWithAccess = {};
|
|
35
|
+
}
|
|
36
|
+
|
|
27
37
|
setParams(params);
|
|
28
38
|
sdk.app.setReady();
|
|
29
39
|
});
|
|
@@ -39,25 +49,54 @@ const Config = ({sdk}) => {
|
|
|
39
49
|
}
|
|
40
50
|
}, [sdk, params]);
|
|
41
51
|
|
|
42
|
-
const handleSelectItem = (event) => {
|
|
52
|
+
const handleSelectItem = (event, portal) => {
|
|
43
53
|
const {
|
|
44
54
|
checked,
|
|
45
55
|
value,
|
|
46
56
|
} = event.target;
|
|
47
57
|
|
|
48
|
-
|
|
58
|
+
console.log("ConfigScreen.js:58 / handleSelectItem", params?.usersWithAccess, portal);
|
|
59
|
+
let newValue = params?.usersWithAccess?.[portal] || [];
|
|
49
60
|
if (checked) {
|
|
50
61
|
newValue = [...newValue, value];
|
|
51
62
|
} else {
|
|
52
63
|
newValue = newValue.filter((email) => email !== value);
|
|
53
64
|
}
|
|
54
65
|
|
|
66
|
+
console.log(
|
|
67
|
+
"ConfigScreen.js:65 / handleSelectItem", params.usersWithAccess, newValue, portal,
|
|
68
|
+
);
|
|
55
69
|
setParams({
|
|
56
70
|
...params,
|
|
57
|
-
usersWithAccess:
|
|
71
|
+
usersWithAccess: {
|
|
72
|
+
...(params.usersWithAccess || {}),
|
|
73
|
+
[portal]: newValue,
|
|
74
|
+
},
|
|
58
75
|
});
|
|
59
76
|
};
|
|
60
77
|
|
|
78
|
+
const addPortal = () => {
|
|
79
|
+
const newPortal = document.getElementsByName("newPortal")[0].value;
|
|
80
|
+
const portals = params.portalsWithAccess || [];
|
|
81
|
+
|
|
82
|
+
if (!newPortal || portals.includes(newPortal)) {
|
|
83
|
+
return;
|
|
84
|
+
}
|
|
85
|
+
|
|
86
|
+
setParams({
|
|
87
|
+
...params,
|
|
88
|
+
portalsWithAccess: [...portals, newPortal.trim()].filter(Boolean),
|
|
89
|
+
});
|
|
90
|
+
};
|
|
91
|
+
|
|
92
|
+
const removePortal = (portal) => {
|
|
93
|
+
const portals = params.portalsWithAccess || [];
|
|
94
|
+
|
|
95
|
+
setParams({
|
|
96
|
+
...params,
|
|
97
|
+
portalsWithAccess: portals.filter(v => v !== portal),
|
|
98
|
+
});
|
|
99
|
+
};
|
|
61
100
|
|
|
62
101
|
return (
|
|
63
102
|
<Workbench className={css({
|
|
@@ -66,26 +105,48 @@ const Config = ({sdk}) => {
|
|
|
66
105
|
})}>
|
|
67
106
|
<Form>
|
|
68
107
|
<FormControl>
|
|
69
|
-
<FormControl.Label>Teasermanager
|
|
70
|
-
<
|
|
71
|
-
|
|
72
|
-
|
|
73
|
-
|
|
74
|
-
|
|
75
|
-
|
|
76
|
-
|
|
77
|
-
<
|
|
78
|
-
|
|
79
|
-
|
|
80
|
-
|
|
81
|
-
|
|
82
|
-
|
|
83
|
-
|
|
84
|
-
|
|
85
|
-
|
|
86
|
-
|
|
87
|
-
</Multiselect>
|
|
108
|
+
<FormControl.Label>Teasermanager Portale mit Zugriffsbeschränkung</FormControl.Label>
|
|
109
|
+
<Flex flexDirection="column" gap={"spacingM"}>
|
|
110
|
+
<Flex flexDirection="row" gap={"spacingM"}>
|
|
111
|
+
<TextInput name="newPortal"/>
|
|
112
|
+
<Button onClick={addPortal} variant="positive">Portal hinzufügen</Button>
|
|
113
|
+
</Flex>
|
|
114
|
+
<Flex flexDirection="column" gap={"spacingM"}>
|
|
115
|
+
{params.portalsWithAccess?.map((portal) => {
|
|
116
|
+
return <Flex flexDirection="row" gap={"spacingM"} key={portal}>
|
|
117
|
+
<Subheading style={{width: "200px"}}>{portal}</Subheading>
|
|
118
|
+
<Button
|
|
119
|
+
variant="negative"
|
|
120
|
+
key={portal}
|
|
121
|
+
onClick={e => removePortal(portal)}>Löschen</Button>
|
|
122
|
+
</Flex>;
|
|
123
|
+
})}
|
|
124
|
+
</Flex>
|
|
125
|
+
</Flex>
|
|
88
126
|
</FormControl>
|
|
127
|
+
{params.portalsWithAccess?.map((portal) => {
|
|
128
|
+
return <FormControl key={portal}>
|
|
129
|
+
<FormControl.Label>{portal} Teasermanager Benutzer</FormControl.Label>
|
|
130
|
+
<Multiselect
|
|
131
|
+
currentSelection={params.usersWithAccess?.[portal]}
|
|
132
|
+
popoverProps={{isFullWidth: true}}
|
|
133
|
+
>
|
|
134
|
+
{spaceUsers.map((userEmail) => {
|
|
135
|
+
const val = userEmail.toLowerCase().replace(/\s/g, '-');
|
|
136
|
+
return (
|
|
137
|
+
<Multiselect.Option
|
|
138
|
+
key={`user-${val}}`}
|
|
139
|
+
itemId={`user-${portal}-${val}}`}
|
|
140
|
+
value={userEmail}
|
|
141
|
+
label={userEmail}
|
|
142
|
+
onSelectItem={e => handleSelectItem(e, portal)}
|
|
143
|
+
isChecked={params.usersWithAccess?.[portal]?.includes(userEmail)}
|
|
144
|
+
/>
|
|
145
|
+
);
|
|
146
|
+
})}
|
|
147
|
+
</Multiselect>
|
|
148
|
+
</FormControl>;
|
|
149
|
+
})}
|
|
89
150
|
</Form>
|
|
90
151
|
</Workbench>
|
|
91
152
|
);
|
|
@@ -10,7 +10,6 @@ const Dialog = ({
|
|
|
10
10
|
getArticleThumbnailUrl,
|
|
11
11
|
}) => {
|
|
12
12
|
const [slotState, setSlotState] = useState({});
|
|
13
|
-
const enabled = sdk?.parameters?.installation?.usersWithAccess?.includes(sdk?.user?.email);
|
|
14
13
|
|
|
15
14
|
const selectEntry = (entry) => {
|
|
16
15
|
sdk.close(entry);
|
|
@@ -39,10 +38,6 @@ const Dialog = ({
|
|
|
39
38
|
loadSlotStateForPage().then(setSlotState);
|
|
40
39
|
}, [sdk.parameters.invocation]);
|
|
41
40
|
|
|
42
|
-
if (!enabled) {
|
|
43
|
-
return <NoAccess sdk={sdk}/>;
|
|
44
|
-
}
|
|
45
|
-
|
|
46
41
|
return <div style={{
|
|
47
42
|
backgroundColor: "#FFFFFF",
|
|
48
43
|
minHeight: "100vh",
|
|
@@ -9,7 +9,7 @@ const Entry = ({sdk}) => {
|
|
|
9
9
|
const [locale, setLocale] = useState(sdk.locales.default);
|
|
10
10
|
const [portal, setPortal] = useState();
|
|
11
11
|
const portalField = sdk?.entry?.fields?.portal;
|
|
12
|
-
const enabled = sdk?.parameters?.installation?.usersWithAccess?.includes(sdk?.user?.email);
|
|
12
|
+
const enabled = !sdk?.parameters?.installation?.usersWithAccess?.[portal] || sdk?.parameters?.installation?.usersWithAccess?.[portal]?.includes(sdk?.user?.email);
|
|
13
13
|
|
|
14
14
|
portalField?.onValueChanged(() => {
|
|
15
15
|
if (portalField.getValue() !== portal) {
|
|
@@ -123,7 +123,7 @@ const Entry = ({sdk}) => {
|
|
|
123
123
|
};
|
|
124
124
|
|
|
125
125
|
if (!enabled) {
|
|
126
|
-
return <NoAccess sdk={sdk}/>;
|
|
126
|
+
return <NoAccess sdk={sdk} portal={portal}/>;
|
|
127
127
|
}
|
|
128
128
|
|
|
129
129
|
return <Teasermanager
|
|
@@ -3,12 +3,6 @@ import {Teasermanager} from "../Teasermanager";
|
|
|
3
3
|
import {NoAccess} from "../NoAccess";
|
|
4
4
|
|
|
5
5
|
const Page = ({sdk}) => {
|
|
6
|
-
const enabled = sdk?.parameters?.installation?.usersWithAccess?.includes(sdk?.user?.email);
|
|
7
|
-
|
|
8
|
-
if (!enabled) {
|
|
9
|
-
return <NoAccess sdk={sdk}/>;
|
|
10
|
-
}
|
|
11
|
-
|
|
12
6
|
return <Teasermanager entryId={"4RvZ6fcUtBIgw2Hw5YILPs"} />;
|
|
13
7
|
};
|
|
14
8
|
|
package/src/index.js
CHANGED
|
@@ -43,7 +43,6 @@ export const BaseContentfulApp = (props = {}) => {
|
|
|
43
43
|
];
|
|
44
44
|
|
|
45
45
|
ComponentLocationSettings.forEach((componentLocationSetting) => {
|
|
46
|
-
console.log("index.js:46 / ANON", sdk.location);
|
|
47
46
|
if (sdk.location.is(componentLocationSetting.location)) {
|
|
48
47
|
const root = createRoot(rootContainer); // createRoot(container!) if you use TypeScript
|
|
49
48
|
root.render(componentLocationSetting.component);
|
|
@@ -1,42 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
this["webpackHotUpdate_vonaffenfels_contentful_teasermanager"]("index",{
|
|
3
|
-
|
|
4
|
-
/***/ "./src/components/NoAccess.js":
|
|
5
|
-
/*!************************************!*\
|
|
6
|
-
!*** ./src/components/NoAccess.js ***!
|
|
7
|
-
\************************************/
|
|
8
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9
|
-
|
|
10
|
-
__webpack_require__.r(__webpack_exports__);
|
|
11
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
/* harmony export */ NoAccess: () => (/* binding */ NoAccess)
|
|
13
|
-
/* harmony export */ });
|
|
14
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
|
|
15
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
16
|
-
/* harmony import */ var _contentful_f36_components__WEBPACK_IMPORTED_MODULE_1__ = __webpack_require__(/*! @contentful/f36-components */ "../../node_modules/@contentful/f36-core/dist/esm/index.js");
|
|
17
|
-
/* harmony import */ var _contentful_f36_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @contentful/f36-components */ "../../node_modules/@contentful/f36-components/node_modules/@contentful/f36-typography/dist/esm/index.js");
|
|
18
|
-
|
|
19
|
-
var __jsx = (react__WEBPACK_IMPORTED_MODULE_0___default().createElement);
|
|
20
|
-
|
|
21
|
-
var NoAccess = function NoAccess(_ref) {
|
|
22
|
-
var _sdk$user;
|
|
23
|
-
var sdk = _ref.sdk;
|
|
24
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_contentful_f36_components__WEBPACK_IMPORTED_MODULE_1__.Flex, {
|
|
25
|
-
flexDirection: "column",
|
|
26
|
-
alignItems: "center",
|
|
27
|
-
paddingTop: "spacing2Xl"
|
|
28
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_contentful_f36_components__WEBPACK_IMPORTED_MODULE_2__.DisplayText, null, "Kein Zugriff"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_contentful_f36_components__WEBPACK_IMPORTED_MODULE_2__.Paragraph, null, "Bitte wenden Sie sich an einen Administrator wenn sie Zugriff ben\xF6tigen"), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_contentful_f36_components__WEBPACK_IMPORTED_MODULE_2__.Paragraph, null, "Angemeldeter Benutzer: ", sdk === null || sdk === void 0 || (_sdk$user = sdk.user) === null || _sdk$user === void 0 ? void 0 : _sdk$user.email));
|
|
29
|
-
};
|
|
30
|
-
|
|
31
|
-
/***/ })
|
|
32
|
-
|
|
33
|
-
},
|
|
34
|
-
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
35
|
-
/******/ /* webpack/runtime/getFullHash */
|
|
36
|
-
/******/ (() => {
|
|
37
|
-
/******/ __webpack_require__.h = () => ("44ce92ca7b539d178d5c")
|
|
38
|
-
/******/ })();
|
|
39
|
-
/******/
|
|
40
|
-
/******/ }
|
|
41
|
-
);
|
|
42
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguMzBlYWU5N2NjZGYzYTgxM2IwMjEuaG90LXVwZGF0ZS5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7Ozs7O0FBRW9DO0FBRTdCLElBQU1HLFFBQVEsR0FBRyxTQUFYQSxRQUFRQSxDQUFBQyxJQUFBLEVBQWM7RUFBQSxJ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yWGxcIj5cbiAgICAgICAgPERpc3BsYXlUZXh0PlxuICAgICAgICAgICAgS2VpbiBadWdyaWZmXG4gICAgICAgIDwvRGlzcGxheVRleHQ+XG4gICAgICAgIDxQYXJhZ3JhcGg+Qml0dGUgd2VuZGVuIFNpZSBzaWNoIGFuIGVpbmVuIEFkbWluaXN0cmF0b3Igd2VubiBzaWUgWnVncmlmZiBiZW7DtnRpZ2VuPC9QYXJhZ3JhcGg+XG4gICAgICAgIDxQYXJhZ3JhcGg+QW5nZW1lbGRldGVyIEJlbnV0emVyOiB7c2RrPy51c2VyPy5lbWFpbH08L1BhcmFncmFwaD5cbiAgICA8L0ZsZXg+O1xufTsiLCJfX3dlYnBhY2tfcmVxdWlyZV9fLmggPSAoKSA9PiAoXCI0NGNlOTJjYTdiNTM5ZDE3OGQ1Y1wiKSJdLCJuYW1lcyI6WyJEaXNwbGF5VGV4dCIsIkZsZXgiLCJQYXJhZ3JhcGgiLCJOb0FjY2VzcyIsIl9yZWYiLCJfc2RrJHVzZXIiLCJzZGsiLCJSZWFjdCIsImNyZWF0ZUVsZW1lbnQiLCJmbGV4RGlyZWN0aW9uIiwiYWxpZ25JdGVtcyIsInBhZGRpbmdUb3AiLCJ1c2VyIiwiZW1haWwiXSwic291cmNlUm9vdCI6IiJ9
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
this["webpackHotUpdate_vonaffenfels_contentful_teasermanager"]("index",{
|
|
2
|
-
|
|
3
|
-
/***/ "../../node_modules/contentful-app-nextjs-tools/index.js":
|
|
4
|
-
/*!***************************************************************!*\
|
|
5
|
-
!*** ../../node_modules/contentful-app-nextjs-tools/index.js ***!
|
|
6
|
-
\***************************************************************/
|
|
7
|
-
/***/ (() => {
|
|
8
|
-
|
|
9
|
-
throw new Error("Module build failed: Error: ENOENT: no such file or directory, open '/home/kienzler/Projects/contentful-apps/node_modules/contentful-app-nextjs-tools/index.js'");
|
|
10
|
-
|
|
11
|
-
/***/ })
|
|
12
|
-
|
|
13
|
-
},
|
|
14
|
-
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
15
|
-
/******/ /* webpack/runtime/getFullHash */
|
|
16
|
-
/******/ (() => {
|
|
17
|
-
/******/ __webpack_require__.h = () => ("9dfef8895061a4ec159a")
|
|
18
|
-
/******/ })();
|
|
19
|
-
/******/
|
|
20
|
-
/******/ }
|
|
21
|
-
);
|
|
22
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguNWVjMDY4ZGIyZDA1YjA0NmQzNzEuaG90LXVwZGF0ZS5qcyIsIm1hcHBpbmdzIjoiOzs7Ozs7Ozs7Ozs7Ozs7O1VBQUEiLCJzb3VyY2VzIjpbIndlYnBhY2s6Ly9Adm9uYWZmZW5mZWxzL2NvbnRlbnRmdWwtdGVhc2VybWFuYWdlci93ZWJwYWNrL3J1bnRpbWUvZ2V0RnVsbEhhc2giXSwic291cmNlc0NvbnRlbnQiOlsiX193ZWJwYWNrX3JlcXVpcmVfXy5oID0gKCkgPT4gKFwiOWRmZWY4ODk1MDYxYTRlYzE1OWFcIikiXSwibmFtZXMiOltdLCJzb3VyY2VSb290IjoiIn0=
|
|
@@ -1 +0,0 @@
|
|
|
1
|
-
{"c":["index"],"r":[],"m":["../../node_modules/call-bind/callBound.js","../../node_modules/call-bind/index.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/api-key.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-action-call.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-action.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-bundle.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-definition.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-details.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-installation.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-signed-request.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-signing-secret.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/app-upload.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/asset-key.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/asset.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/bulk-action.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/comment.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/content-type.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/editor-interface.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/entry.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/environment-alias.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/environment.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/extension.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/http.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/index.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/locale.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization-invitation.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization-membership.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/organization.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/personal-access-token.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/preview-api-key.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/raw.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/release-action.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/release.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/role.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/scheduled-action.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/snapshot.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space-member.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space-membership.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/space.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/tag.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/task.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team-membership.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team-space-membership.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/team.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/upload.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/usage.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/user.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/utils.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/webhook.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflow-definition.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflow.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/endpoints/workflows-changelog.js","../../node_modules/contentful-management/dist/es-modules/adapters/REST/rest-adapter.js","../../node_modules/contentful-management/dist/es-modules/common-types.js","../../node_modules/contentful-management/dist/es-modules/common-utils.js","../../node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/controls-defaults.js","../../node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/editors-defaults.js","../../node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/index.js","../../node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/sidebar-defaults.js","../../node_modules/contentful-management/dist/es-modules/constants/editor-interface-defaults/types.js","../../node_modules/contentful-management/dist/es-modules/contentful-management.js","../../node_modules/contentful-management/dist/es-modules/create-adapter.js","../../node_modules/contentful-management/dist/es-modules/create-app-definition-api.js","../../node_modules/contentful-management/dist/es-modules/create-contentful-api.js","../../node_modules/contentful-management/dist/es-modules/create-entry-api.js","../../node_modules/contentful-management/dist/es-modules/create-environment-api.js","../../node_modules/contentful-management/dist/es-modules/create-organization-api.js","../../node_modules/contentful-management/dist/es-modules/create-space-api.js","../../node_modules/contentful-management/dist/es-modules/enhance-with-methods.js","../../node_modules/contentful-management/dist/es-modules/entities/api-key.js","../../node_modules/contentful-management/dist/es-modules/entities/app-action-call.js","../../node_modules/contentful-management/dist/es-modules/entities/app-action.js","../../node_modules/contentful-management/dist/es-modules/entities/app-bundle.js","../../node_modules/contentful-management/dist/es-modules/entities/app-definition.js","../../node_modules/contentful-management/dist/es-modules/entities/app-details.js","../../node_modules/contentful-management/dist/es-modules/entities/app-installation.js","../../node_modules/contentful-management/dist/es-modules/entities/app-signed-request.js","../../node_modules/contentful-management/dist/es-modules/entities/app-signing-secret.js","../../node_modules/contentful-management/dist/es-modules/entities/app-upload.js","../../node_modules/contentful-management/dist/es-modules/entities/asset-key.js","../../node_modules/contentful-management/dist/es-modules/entities/asset.js","../../node_modules/contentful-management/dist/es-modules/entities/bulk-action.js","../../node_modules/contentful-management/dist/es-modules/entities/comment.js","../../node_modules/contentful-management/dist/es-modules/entities/content-type.js","../../node_modules/contentful-management/dist/es-modules/entities/editor-interface.js","../../node_modules/contentful-management/dist/es-modules/entities/entry.js","../../node_modules/contentful-management/dist/es-modules/entities/environment-alias.js","../../node_modules/contentful-management/dist/es-modules/entities/environment.js","../../node_modules/contentful-management/dist/es-modules/entities/extension.js","../../node_modules/contentful-management/dist/es-modules/entities/index.js","../../node_modules/contentful-management/dist/es-modules/entities/locale.js","../../node_modules/contentful-management/dist/es-modules/entities/organization-invitation.js","../../node_modules/contentful-management/dist/es-modules/entities/organization-membership.js","../../node_modules/contentful-management/dist/es-modules/entities/organization.js","../../node_modules/contentful-management/dist/es-modules/entities/personal-access-token.js","../../node_modules/contentful-management/dist/es-modules/entities/preview-api-key.js","../../node_modules/contentful-management/dist/es-modules/entities/release-action.js","../../node_modules/contentful-management/dist/es-modules/entities/release.js","../../node_modules/contentful-management/dist/es-modules/entities/role.js","../../node_modules/contentful-management/dist/es-modules/entities/scheduled-action.js","../../node_modules/contentful-management/dist/es-modules/entities/snapshot.js","../../node_modules/contentful-management/dist/es-modules/entities/space-member.js","../../node_modules/contentful-management/dist/es-modules/entities/space-membership.js","../../node_modules/contentful-management/dist/es-modules/entities/space.js","../../node_modules/contentful-management/dist/es-modules/entities/tag.js","../../node_modules/contentful-management/dist/es-modules/entities/task.js","../../node_modules/contentful-management/dist/es-modules/entities/team-membership.js","../../node_modules/contentful-management/dist/es-modules/entities/team-space-membership.js","../../node_modules/contentful-management/dist/es-modules/entities/team.js","../../node_modules/contentful-management/dist/es-modules/entities/upload.js","../../node_modules/contentful-management/dist/es-modules/entities/usage.js","../../node_modules/contentful-management/dist/es-modules/entities/user.js","../../node_modules/contentful-management/dist/es-modules/entities/webhook.js","../../node_modules/contentful-management/dist/es-modules/entities/workflow-definition.js","../../node_modules/contentful-management/dist/es-modules/export-types.js","../../node_modules/contentful-management/dist/es-modules/methods/action.js","../../node_modules/contentful-management/dist/es-modules/methods/content-type.js","../../node_modules/contentful-management/dist/es-modules/methods/utils.js","../../node_modules/contentful-management/dist/es-modules/plain/as-iterator.js","../../node_modules/contentful-management/dist/es-modules/plain/checks.js","../../node_modules/contentful-management/dist/es-modules/plain/plain-client.js","../../node_modules/contentful-management/dist/es-modules/plain/wrappers/wrap.js","../../node_modules/contentful-management/dist/es-modules/upload-http-client.js","../../node_modules/contentful-management/node_modules/axios/index.js","../../node_modules/contentful-management/node_modules/axios/lib/adapters/xhr.js","../../node_modules/contentful-management/node_modules/axios/lib/axios.js","../../node_modules/contentful-management/node_modules/axios/lib/cancel/Cancel.js","../../node_modules/contentful-management/node_modules/axios/lib/cancel/CancelToken.js","../../node_modules/contentful-management/node_modules/axios/lib/cancel/isCancel.js","../../node_modules/contentful-management/node_modules/axios/lib/core/Axios.js","../../node_modules/contentful-management/node_modules/axios/lib/core/InterceptorManager.js","../../node_modules/contentful-management/node_modules/axios/lib/core/buildFullPath.js","../../node_modules/contentful-management/node_modules/axios/lib/core/createError.js","../../node_modules/contentful-management/node_modules/axios/lib/core/dispatchRequest.js","../../node_modules/contentful-management/node_modules/axios/lib/core/enhanceError.js","../../node_modules/contentful-management/node_modules/axios/lib/core/mergeConfig.js","../../node_modules/contentful-management/node_modules/axios/lib/core/settle.js","../../node_modules/contentful-management/node_modules/axios/lib/core/transformData.js","../../node_modules/contentful-management/node_modules/axios/lib/defaults.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/bind.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/buildURL.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/combineURLs.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/cookies.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/isAbsoluteURL.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/isAxiosError.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/isURLSameOrigin.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/normalizeHeaderName.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/parseHeaders.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/spread.js","../../node_modules/contentful-management/node_modules/axios/lib/helpers/validator.js","../../node_modules/contentful-management/node_modules/axios/lib/utils.js","../../node_modules/contentful-management/node_modules/axios/package.json","../../node_modules/contentful-sdk-core/dist/index.es-modules.js","../../node_modules/contentful-sdk-core/node_modules/qs/lib/formats.js","../../node_modules/contentful-sdk-core/node_modules/qs/lib/index.js","../../node_modules/contentful-sdk-core/node_modules/qs/lib/parse.js","../../node_modules/contentful-sdk-core/node_modules/qs/lib/stringify.js","../../node_modules/contentful-sdk-core/node_modules/qs/lib/utils.js","../../node_modules/fast-copy/dist/fast-copy.js","../../node_modules/function-bind/implementation.js","../../node_modules/function-bind/index.js","../../node_modules/get-intrinsic/index.js","../../node_modules/has-proto/index.js","../../node_modules/has-symbols/index.js","../../node_modules/has-symbols/shams.js","../../node_modules/has/node_modules/function-bind/implementation.js","../../node_modules/has/node_modules/function-bind/index.js","../../node_modules/has/src/index.js","../../node_modules/lodash.isplainobject/index.js","../../node_modules/lodash.isstring/index.js","../../node_modules/object-inspect/index.js","../../node_modules/p-throttle/index.js","../../node_modules/side-channel/index.js","?c95a"]}
|
|
@@ -1,43 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
this["webpackHotUpdate_vonaffenfels_contentful_teasermanager"]("index",{
|
|
3
|
-
|
|
4
|
-
/***/ "./src/components/NoAccess.js":
|
|
5
|
-
/*!************************************!*\
|
|
6
|
-
!*** ./src/components/NoAccess.js ***!
|
|
7
|
-
\************************************/
|
|
8
|
-
/***/ ((__unused_webpack_module, __webpack_exports__, __webpack_require__) => {
|
|
9
|
-
|
|
10
|
-
__webpack_require__.r(__webpack_exports__);
|
|
11
|
-
/* harmony export */ __webpack_require__.d(__webpack_exports__, {
|
|
12
|
-
/* harmony export */ NoAccess: () => (/* binding */ NoAccess)
|
|
13
|
-
/* harmony export */ });
|
|
14
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0__ = __webpack_require__(/*! react */ "../../node_modules/react/index.js");
|
|
15
|
-
/* harmony import */ var react__WEBPACK_IMPORTED_MODULE_0___default = /*#__PURE__*/__webpack_require__.n(react__WEBPACK_IMPORTED_MODULE_0__);
|
|
16
|
-
Object(function webpackMissingModule() { var e = new Error("Cannot find module 'contentful-app-nextjs-tools'"); e.code = 'MODULE_NOT_FOUND'; throw e; }());
|
|
17
|
-
/* harmony import */ var _contentful_f36_components__WEBPACK_IMPORTED_MODULE_2__ = __webpack_require__(/*! @contentful/f36-components */ "../../node_modules/@contentful/f36-core/dist/esm/index.js");
|
|
18
|
-
/* harmony import */ var _contentful_f36_components__WEBPACK_IMPORTED_MODULE_3__ = __webpack_require__(/*! @contentful/f36-components */ "../../node_modules/@contentful/f36-components/node_modules/@contentful/f36-typography/dist/esm/index.js");
|
|
19
|
-
|
|
20
|
-
var __jsx = (react__WEBPACK_IMPORTED_MODULE_0___default().createElement);
|
|
21
|
-
|
|
22
|
-
|
|
23
|
-
var NoAccess = function NoAccess() {
|
|
24
|
-
var _sdk$user;
|
|
25
|
-
var sdk = Object(function webpackMissingModule() { var e = new Error("Cannot find module 'contentful-app-nextjs-tools'"); e.code = 'MODULE_NOT_FOUND'; throw e; }())();
|
|
26
|
-
return /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_contentful_f36_components__WEBPACK_IMPORTED_MODULE_2__.Flex, {
|
|
27
|
-
flexDirection: "column",
|
|
28
|
-
alignItems: "center"
|
|
29
|
-
}, /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_contentful_f36_components__WEBPACK_IMPORTED_MODULE_3__.DisplayText, null, "Kein Zugriff", /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement("br", null), "Angemeldeter Benutzer: $", sdk === null || sdk === void 0 || (_sdk$user = sdk.user) === null || _sdk$user === void 0 ? void 0 : _sdk$user.email), /*#__PURE__*/react__WEBPACK_IMPORTED_MODULE_0___default().createElement(_contentful_f36_components__WEBPACK_IMPORTED_MODULE_3__.Paragraph, null, "Bitte wenden Sie sich an einen Administrator wenn sie Zugriff ben\xF6tigen"));
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
/***/ })
|
|
33
|
-
|
|
34
|
-
},
|
|
35
|
-
/******/ function(__webpack_require__) { // webpackRuntimeModules
|
|
36
|
-
/******/ /* webpack/runtime/getFullHash */
|
|
37
|
-
/******/ (() => {
|
|
38
|
-
/******/ __webpack_require__.h = () => ("094ebe8a6da25ebef11e")
|
|
39
|
-
/******/ })();
|
|
40
|
-
/******/
|
|
41
|
-
/******/ }
|
|
42
|
-
);
|
|
43
|
-
//# sourceMappingURL=data:application/json;charset=utf-8;base64,eyJ2ZXJzaW9uIjozLCJmaWxlIjoiaW5kZXguOWMzND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