@koine/next 2.0.0-beta.10 → 2.0.0-beta.11
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/package.json +16 -16
- package/12/AnalyticsGoogle.js +0 -79
- package/12/DisableErrorOverlay.js +0 -31
- package/12/DynamicNamespaces.js +0 -23
- package/12/Favicon.js +0 -29
- package/12/Link.js +0 -38
- package/12/NextProgress.js +0 -69
- package/12/Seo.js +0 -29
- package/12/SeoDefaults.js +0 -31
- package/12/T.js +0 -43
- package/12/ThemeContext.js +0 -25
- package/12/ThemeProvider.js +0 -256
- package/12/TransText.js +0 -23
- package/12/app/AppHead.js +0 -31
- package/12/app/AppMain.js +0 -6
- package/12/app/css/AppMain.js +0 -39
- package/12/app/css/AppTheme.js +0 -33
- package/12/app/css/auth/index.js +0 -40
- package/12/app/css/index.js +0 -36
- package/12/app/index.js +0 -7
- package/12/app/sc/AppMain.js +0 -70
- package/12/app/sc/AppTheme.js +0 -33
- package/12/app/sc/auth/index.js +0 -40
- package/12/app/sc/index.js +0 -36
- package/12/document/Document.js +0 -49
- package/12/document/css/index.js +0 -60
- package/12/document/index.js +0 -19
- package/12/document/sc/index.js +0 -73
- package/12/getT.js +0 -23
- package/12/index.js +0 -100
- package/12/seoBuildTags.js +0 -126
- package/12/to.js +0 -31
- package/12/translationAsOptions.js +0 -19
- package/12/types-i18n.js +0 -15
- package/12/types-seo.js +0 -4
- package/12/useBackUrl.js +0 -47
- package/12/useDateFormat.js +0 -42
- package/12/useForm.js +0 -65
- package/12/useLocale.js +0 -25
- package/12/useT.js +0 -58
- package/12/useTheme.js +0 -23
- package/12/useTo.js +0 -26
- package/config/index.js +0 -317
- package/getSiteUrl.js +0 -24
- package/index.js +0 -20
- package/load.js +0 -31
package/12/ThemeProvider.js
DELETED
|
@@ -1,256 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
function _export(target, all) {
|
|
7
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: all[name]
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
_export(exports, {
|
|
13
|
-
ThemeProvider: function() {
|
|
14
|
-
return ThemeProvider;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
21
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
22
|
-
const _script = /*#__PURE__*/ _interop_require_default._(require("next/script"));
|
|
23
|
-
const _react = require("react");
|
|
24
|
-
const _isServer = /*#__PURE__*/ _interop_require_default._(require("@koine/utils/isServer"));
|
|
25
|
-
const _ThemeContext = require("./ThemeContext");
|
|
26
|
-
const colorSchemes = [
|
|
27
|
-
"light",
|
|
28
|
-
"dark"
|
|
29
|
-
];
|
|
30
|
-
const MEDIA = "(prefers-color-scheme: dark)";
|
|
31
|
-
const THEME_STORAGE_KEY = "theme";
|
|
32
|
-
const ThemeProvider = ({ forcedTheme, disableTransitionOnChange = false, enableSystem = true, enableColorScheme, themes = [
|
|
33
|
-
"light",
|
|
34
|
-
"dark"
|
|
35
|
-
], defaultTheme = enableSystem ? "system" : "light", attribute = "data-theme", value, children, nonce })=>{
|
|
36
|
-
const [theme, setThemeState] = (0, _react.useState)(()=>getTheme(THEME_STORAGE_KEY, defaultTheme));
|
|
37
|
-
const [resolvedTheme, setResolvedTheme] = (0, _react.useState)(()=>getTheme(THEME_STORAGE_KEY));
|
|
38
|
-
const attrs = !value ? themes : Object.values(value);
|
|
39
|
-
const applyTheme = (0, _react.useCallback)((theme)=>{
|
|
40
|
-
let resolved = theme;
|
|
41
|
-
if (_isServer.default || !resolved) return;
|
|
42
|
-
// If theme is system, resolve it before setting theme
|
|
43
|
-
if (theme === "system" && enableSystem) {
|
|
44
|
-
resolved = getSystemTheme();
|
|
45
|
-
}
|
|
46
|
-
const name = value ? value[resolved] : resolved;
|
|
47
|
-
const enable = disableTransitionOnChange ? disableAnimation() : null;
|
|
48
|
-
const d = document.documentElement;
|
|
49
|
-
if (attribute === "class") {
|
|
50
|
-
d.classList.remove(...attrs);
|
|
51
|
-
if (name) d.classList.add(name);
|
|
52
|
-
} else {
|
|
53
|
-
if (name) {
|
|
54
|
-
d.setAttribute(attribute, name);
|
|
55
|
-
} else {
|
|
56
|
-
d.removeAttribute(attribute);
|
|
57
|
-
}
|
|
58
|
-
}
|
|
59
|
-
if (enableColorScheme) {
|
|
60
|
-
const fallback = colorSchemes.includes(defaultTheme) ? defaultTheme : "";
|
|
61
|
-
const colorScheme = colorSchemes.includes(resolved) ? resolved : fallback;
|
|
62
|
-
d.style.colorScheme = colorScheme;
|
|
63
|
-
}
|
|
64
|
-
enable?.();
|
|
65
|
-
}, [
|
|
66
|
-
attribute,
|
|
67
|
-
attrs,
|
|
68
|
-
defaultTheme,
|
|
69
|
-
disableTransitionOnChange,
|
|
70
|
-
enableColorScheme,
|
|
71
|
-
enableSystem,
|
|
72
|
-
value
|
|
73
|
-
]);
|
|
74
|
-
const setTheme = (0, _react.useCallback)((theme)=>{
|
|
75
|
-
setThemeState(theme);
|
|
76
|
-
// Save to storage
|
|
77
|
-
try {
|
|
78
|
-
localStorage.setItem(THEME_STORAGE_KEY, theme);
|
|
79
|
-
} catch (e) {
|
|
80
|
-
// Unsupported
|
|
81
|
-
}
|
|
82
|
-
}, []);
|
|
83
|
-
const handleMediaQuery = (0, _react.useCallback)((e)=>{
|
|
84
|
-
const resolved = getSystemTheme(e);
|
|
85
|
-
setResolvedTheme(resolved);
|
|
86
|
-
if (theme === "system" && enableSystem && !forcedTheme) {
|
|
87
|
-
applyTheme("system");
|
|
88
|
-
}
|
|
89
|
-
}, [
|
|
90
|
-
theme,
|
|
91
|
-
enableSystem,
|
|
92
|
-
forcedTheme,
|
|
93
|
-
applyTheme
|
|
94
|
-
]);
|
|
95
|
-
// Always listen to System preference
|
|
96
|
-
(0, _react.useEffect)(()=>{
|
|
97
|
-
const media = window.matchMedia(MEDIA);
|
|
98
|
-
// Intentionally use deprecated listener methods to support iOS & old browsers
|
|
99
|
-
media.addListener(handleMediaQuery);
|
|
100
|
-
handleMediaQuery(media);
|
|
101
|
-
return ()=>media.removeListener(handleMediaQuery);
|
|
102
|
-
}, [
|
|
103
|
-
handleMediaQuery
|
|
104
|
-
]);
|
|
105
|
-
// localStorage event handling
|
|
106
|
-
(0, _react.useEffect)(()=>{
|
|
107
|
-
const handleStorage = (e)=>{
|
|
108
|
-
if (e.key !== THEME_STORAGE_KEY) {
|
|
109
|
-
return;
|
|
110
|
-
}
|
|
111
|
-
// If default theme set, use it if localstorage === null (happens on local storage manual deletion)
|
|
112
|
-
const theme = e.newValue || defaultTheme;
|
|
113
|
-
setTheme(theme);
|
|
114
|
-
};
|
|
115
|
-
window.addEventListener("storage", handleStorage);
|
|
116
|
-
return ()=>window.removeEventListener("storage", handleStorage);
|
|
117
|
-
}, [
|
|
118
|
-
defaultTheme,
|
|
119
|
-
setTheme
|
|
120
|
-
]);
|
|
121
|
-
// Whenever theme or forcedTheme changes, apply it
|
|
122
|
-
(0, _react.useEffect)(()=>{
|
|
123
|
-
applyTheme(forcedTheme ?? theme);
|
|
124
|
-
}, [
|
|
125
|
-
applyTheme,
|
|
126
|
-
forcedTheme,
|
|
127
|
-
theme
|
|
128
|
-
]);
|
|
129
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_ThemeContext.ThemeContext.Provider, {
|
|
130
|
-
value: {
|
|
131
|
-
theme,
|
|
132
|
-
setTheme,
|
|
133
|
-
forcedTheme,
|
|
134
|
-
resolvedTheme: theme === "system" ? resolvedTheme : theme,
|
|
135
|
-
themes: enableSystem ? [
|
|
136
|
-
...themes,
|
|
137
|
-
"system"
|
|
138
|
-
] : themes,
|
|
139
|
-
systemTheme: enableSystem ? resolvedTheme : undefined
|
|
140
|
-
},
|
|
141
|
-
children: [
|
|
142
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(ThemeScript, {
|
|
143
|
-
forcedTheme,
|
|
144
|
-
disableTransitionOnChange,
|
|
145
|
-
enableSystem,
|
|
146
|
-
enableColorScheme,
|
|
147
|
-
themes,
|
|
148
|
-
defaultTheme,
|
|
149
|
-
attribute,
|
|
150
|
-
value,
|
|
151
|
-
children,
|
|
152
|
-
attrs,
|
|
153
|
-
nonce
|
|
154
|
-
}),
|
|
155
|
-
children
|
|
156
|
-
]
|
|
157
|
-
});
|
|
158
|
-
};
|
|
159
|
-
const ThemeScript = /*#__PURE__*/ (0, _react.memo)(({ forcedTheme, attribute, enableSystem, enableColorScheme, defaultTheme, value, attrs, nonce })=>{
|
|
160
|
-
const defaultSystem = defaultTheme === "system";
|
|
161
|
-
// Code-golfing the amount of characters in the script
|
|
162
|
-
const optimization = (()=>{
|
|
163
|
-
const removeClasses = `d.remove(${attrs.map((t)=>`'${t}'`).join(",")})`;
|
|
164
|
-
return `var d=document.documentElement.classList;${removeClasses};`;
|
|
165
|
-
})();
|
|
166
|
-
const fallbackColorScheme = (()=>{
|
|
167
|
-
if (!enableColorScheme) {
|
|
168
|
-
return "";
|
|
169
|
-
}
|
|
170
|
-
const fallback = colorSchemes.includes(defaultTheme) ? defaultTheme : null;
|
|
171
|
-
if (fallback) {
|
|
172
|
-
return `if(e==='light'||e==='dark'||!e)d.style.colorScheme=e||'${defaultTheme}'`;
|
|
173
|
-
} else {
|
|
174
|
-
return `if(e==='light'||e==='dark')d.style.colorScheme=e`;
|
|
175
|
-
}
|
|
176
|
-
})();
|
|
177
|
-
const updateDOM = (name, literal = false, setColorScheme = true)=>{
|
|
178
|
-
const resolvedName = value ? value[name] : name;
|
|
179
|
-
const val = literal ? name + `|| ''` : `'${resolvedName}'`;
|
|
180
|
-
let text = "";
|
|
181
|
-
// MUCH faster to set colorScheme alongside HTML attribute/class
|
|
182
|
-
// as it only incurs 1 style recalculation rather than 2
|
|
183
|
-
// This can save over 250ms of work for pages with big DOM
|
|
184
|
-
if (enableColorScheme && setColorScheme && !literal && colorSchemes.includes(name)) {
|
|
185
|
-
text += `d.style.colorScheme = '${name}';`;
|
|
186
|
-
}
|
|
187
|
-
if (attribute === "class") {
|
|
188
|
-
if (literal || resolvedName) {
|
|
189
|
-
text += `d.add(${val})`;
|
|
190
|
-
} else {
|
|
191
|
-
text += `null`;
|
|
192
|
-
}
|
|
193
|
-
} else {
|
|
194
|
-
if (resolvedName) {
|
|
195
|
-
text += `d[s](n, ${val})`;
|
|
196
|
-
}
|
|
197
|
-
}
|
|
198
|
-
return text;
|
|
199
|
-
};
|
|
200
|
-
const scriptSrc = (()=>{
|
|
201
|
-
if (forcedTheme) {
|
|
202
|
-
return `!function(){${optimization}${updateDOM(forcedTheme)}}()`;
|
|
203
|
-
}
|
|
204
|
-
if (enableSystem) {
|
|
205
|
-
return `!function(){try {${optimization}var e=localStorage.getItem('${THEME_STORAGE_KEY}');if("system"===e||(!e&&${defaultSystem})){var t="${MEDIA}",m=window.matchMedia(t);if(m.media!==t||m.matches){${updateDOM("dark")}}else{${updateDOM("light")}}}else if(e){${value ? `var x=${JSON.stringify(value)};` : ""}${updateDOM(value ? `x[e]` : "e", true)}}${!defaultSystem ? `else{` + updateDOM(defaultTheme, false, false) + "}" : ""}${fallbackColorScheme}}catch(e){}}()`;
|
|
206
|
-
}
|
|
207
|
-
return `!function(){try{${optimization}var e=localStorage.getItem("${THEME_STORAGE_KEY}");if(e){${value ? `var x=${JSON.stringify(value)};` : ""}${updateDOM(value ? `x[e]` : "e", true)}}else{${updateDOM(defaultTheme, false, false)};}${fallbackColorScheme}}catch(t){}}();`;
|
|
208
|
-
})();
|
|
209
|
-
// We MUST use next/script's `beforeInteractive` strategy to avoid flashing on load.
|
|
210
|
-
// However, it only accepts the `src` prop, not `dangerouslySetInnerHTML` or `children`
|
|
211
|
-
// But our script cannot be external because it changes at runtime based on React props
|
|
212
|
-
// so we trick next/script by passing `src` as a base64 JS script
|
|
213
|
-
const encodedScript = `data:text/javascript;base64,${encodeBase64(scriptSrc)}`;
|
|
214
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_script.default, {
|
|
215
|
-
id: "next-theme-script",
|
|
216
|
-
strategy: "beforeInteractive",
|
|
217
|
-
src: encodedScript,
|
|
218
|
-
nonce: nonce
|
|
219
|
-
});
|
|
220
|
-
}, // Never re-render this component
|
|
221
|
-
()=>true);
|
|
222
|
-
// Helpers
|
|
223
|
-
const getTheme = (key, fallback)=>{
|
|
224
|
-
if (_isServer.default) return undefined;
|
|
225
|
-
let theme;
|
|
226
|
-
try {
|
|
227
|
-
theme = localStorage.getItem(key) || undefined;
|
|
228
|
-
} catch (e) {
|
|
229
|
-
// Unsupported
|
|
230
|
-
}
|
|
231
|
-
return theme || fallback;
|
|
232
|
-
};
|
|
233
|
-
const disableAnimation = ()=>{
|
|
234
|
-
const d = document;
|
|
235
|
-
const css = d.createElement("style");
|
|
236
|
-
css.appendChild(d.createTextNode(`*{-webkit-transition:none!important;-moz-transition:none!important;-o-transition:none!important;-ms-transition:none!important;transition:none!important}`));
|
|
237
|
-
d.head.appendChild(css);
|
|
238
|
-
return ()=>{
|
|
239
|
-
// Force restyle
|
|
240
|
-
(()=>window.getComputedStyle(d.body))();
|
|
241
|
-
// Wait for next tick before removing
|
|
242
|
-
setTimeout(()=>{
|
|
243
|
-
d.head.removeChild(css);
|
|
244
|
-
}, 1);
|
|
245
|
-
};
|
|
246
|
-
};
|
|
247
|
-
const getSystemTheme = (e)=>{
|
|
248
|
-
if (!e) e = window.matchMedia(MEDIA);
|
|
249
|
-
const isDark = e.matches;
|
|
250
|
-
const systemTheme = isDark ? "dark" : "light";
|
|
251
|
-
return systemTheme;
|
|
252
|
-
};
|
|
253
|
-
const encodeBase64 = (str)=>{
|
|
254
|
-
return _isServer.default ? Buffer.from(str).toString("base64") : btoa(str);
|
|
255
|
-
};
|
|
256
|
-
const _default = ThemeProvider;
|
package/12/TransText.js
DELETED
|
@@ -1,23 +0,0 @@
|
|
|
1
|
-
"use client";
|
|
2
|
-
"use strict";
|
|
3
|
-
Object.defineProperty(exports, "__esModule", {
|
|
4
|
-
value: true
|
|
5
|
-
});
|
|
6
|
-
function _export(target, all) {
|
|
7
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
8
|
-
enumerable: true,
|
|
9
|
-
get: all[name]
|
|
10
|
-
});
|
|
11
|
-
}
|
|
12
|
-
_export(exports, {
|
|
13
|
-
TransText: function() {
|
|
14
|
-
return TransText;
|
|
15
|
-
},
|
|
16
|
-
default: function() {
|
|
17
|
-
return _default;
|
|
18
|
-
}
|
|
19
|
-
});
|
|
20
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
21
|
-
const _TransText = /*#__PURE__*/ _interop_require_default._(require("next-translate/TransText"));
|
|
22
|
-
const TransText = _TransText.default;
|
|
23
|
-
const _default = TransText;
|
package/12/app/AppHead.js
DELETED
|
@@ -1,31 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
AppHead: function() {
|
|
13
|
-
return AppHead;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
21
|
-
const _head = /*#__PURE__*/ _interop_require_default._(require("next/head"));
|
|
22
|
-
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
23
|
-
const AppHead = ()=>{
|
|
24
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_head.default, {
|
|
25
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)("meta", {
|
|
26
|
-
name: "viewport",
|
|
27
|
-
content: "width=device-width"
|
|
28
|
-
})
|
|
29
|
-
});
|
|
30
|
-
};
|
|
31
|
-
const _default = AppHead;
|
package/12/app/AppMain.js
DELETED
package/12/app/css/AppMain.js
DELETED
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
AppMain: function() {
|
|
13
|
-
return AppMain;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
21
|
-
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
22
|
-
const _SeoDefaults = require("../../SeoDefaults");
|
|
23
|
-
const AppMain = ({ Component, pageProps, Layout, seo, pre, post })=>{
|
|
24
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_react.default.Fragment, {
|
|
25
|
-
children: [
|
|
26
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_SeoDefaults.SeoDefaults, {
|
|
27
|
-
...seo
|
|
28
|
-
}),
|
|
29
|
-
pre,
|
|
30
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(Layout, {
|
|
31
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(Component, {
|
|
32
|
-
...pageProps
|
|
33
|
-
})
|
|
34
|
-
}),
|
|
35
|
-
post
|
|
36
|
-
]
|
|
37
|
-
});
|
|
38
|
-
};
|
|
39
|
-
const _default = AppMain;
|
package/12/app/css/AppTheme.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
AppTheme: function() {
|
|
13
|
-
return AppTheme;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
21
|
-
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
22
|
-
const _ThemeProvider = require("../../ThemeProvider");
|
|
23
|
-
const AppTheme = ({ theme, children })=>{
|
|
24
|
-
// return (
|
|
25
|
-
// <ThemeVanillaProvider initialTheme={theme}>{children}</ThemeVanillaProvider>
|
|
26
|
-
// );
|
|
27
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsx)(_ThemeProvider.ThemeProvider, {
|
|
28
|
-
defaultTheme: theme,
|
|
29
|
-
attribute: "class",
|
|
30
|
-
children: children
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
const _default = AppTheme;
|
package/12/app/css/auth/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
NextApp: function() {
|
|
13
|
-
return NextApp;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _react = require("next-auth/react");
|
|
21
|
-
const _AppHead = require("../../AppHead");
|
|
22
|
-
const _AppMain = require("../AppMain");
|
|
23
|
-
const _AppTheme = require("../AppTheme");
|
|
24
|
-
const NextApp = (props)=>{
|
|
25
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
26
|
-
children: [
|
|
27
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_AppHead.AppHead, {}),
|
|
28
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_react.SessionProvider, {
|
|
29
|
-
session: props.pageProps.session,
|
|
30
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_AppTheme.AppTheme, {
|
|
31
|
-
...props,
|
|
32
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_AppMain.AppMain, {
|
|
33
|
-
...props
|
|
34
|
-
})
|
|
35
|
-
})
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
const _default = NextApp;
|
package/12/app/css/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
NextApp: function() {
|
|
13
|
-
return NextApp;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _AppHead = require("../AppHead");
|
|
21
|
-
const _AppMain = require("./AppMain");
|
|
22
|
-
const _AppTheme = require("./AppTheme");
|
|
23
|
-
const NextApp = (props)=>{
|
|
24
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
25
|
-
children: [
|
|
26
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_AppHead.AppHead, {}),
|
|
27
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_AppTheme.AppTheme, {
|
|
28
|
-
...props,
|
|
29
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_AppMain.AppMain, {
|
|
30
|
-
...props
|
|
31
|
-
})
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
const _default = NextApp;
|
package/12/app/index.js
DELETED
package/12/app/sc/AppMain.js
DELETED
|
@@ -1,70 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
AppMain: function() {
|
|
13
|
-
return AppMain;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_wildcard = require("@swc/helpers/_/_interop_require_wildcard");
|
|
20
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
21
|
-
const _react = /*#__PURE__*/ _interop_require_wildcard._(require("react"));
|
|
22
|
-
const _framermotion = require("framer-motion");
|
|
23
|
-
const _router = require("next/router");
|
|
24
|
-
const _m = require("@koine/react/m");
|
|
25
|
-
const _NextProgress = require("../../NextProgress");
|
|
26
|
-
const _SeoDefaults = require("../../SeoDefaults");
|
|
27
|
-
const AppMain = ({ Component, pageProps, Layout, ProgressOverlay, seo, motion, transition = {
|
|
28
|
-
initial: {
|
|
29
|
-
opacity: 0
|
|
30
|
-
},
|
|
31
|
-
animate: {
|
|
32
|
-
opacity: 1
|
|
33
|
-
},
|
|
34
|
-
exit: {
|
|
35
|
-
opacity: 0
|
|
36
|
-
}
|
|
37
|
-
}, pre, post })=>{
|
|
38
|
-
const { pathname } = (0, _router.useRouter)();
|
|
39
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
40
|
-
children: [
|
|
41
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_SeoDefaults.SeoDefaults, {
|
|
42
|
-
...seo
|
|
43
|
-
}),
|
|
44
|
-
pre,
|
|
45
|
-
/*#__PURE__*/ (0, _jsxruntime.jsxs)(_m.MotionProvider, {
|
|
46
|
-
features: motion,
|
|
47
|
-
children: [
|
|
48
|
-
ProgressOverlay && /*#__PURE__*/ (0, _jsxruntime.jsx)(_NextProgress.NextProgress, {
|
|
49
|
-
Overlay: ProgressOverlay
|
|
50
|
-
}),
|
|
51
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(Layout, {
|
|
52
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_framermotion.AnimatePresence, {
|
|
53
|
-
exitBeforeEnter: true,
|
|
54
|
-
initial: false,
|
|
55
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_framermotion.m.div, {
|
|
56
|
-
...transition,
|
|
57
|
-
children: /*#__PURE__*/ (0, _react.createElement)(Component, {
|
|
58
|
-
...pageProps,
|
|
59
|
-
key: pathname
|
|
60
|
-
})
|
|
61
|
-
}, pathname)
|
|
62
|
-
})
|
|
63
|
-
})
|
|
64
|
-
]
|
|
65
|
-
}),
|
|
66
|
-
post
|
|
67
|
-
]
|
|
68
|
-
});
|
|
69
|
-
};
|
|
70
|
-
const _default = AppMain;
|
package/12/app/sc/AppTheme.js
DELETED
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
AppTheme: function() {
|
|
13
|
-
return AppTheme;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _interop_require_default = require("@swc/helpers/_/_interop_require_default");
|
|
20
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
21
|
-
const _react = /*#__PURE__*/ _interop_require_default._(require("react"));
|
|
22
|
-
const _styledcomponents = require("styled-components");
|
|
23
|
-
const _sc = require("@koine/react/sc");
|
|
24
|
-
const AppTheme = ({ theme, children })=>{
|
|
25
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_styledcomponents.ThemeProvider, {
|
|
26
|
-
theme: theme,
|
|
27
|
-
children: [
|
|
28
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_sc.StylesGlobal, {}),
|
|
29
|
-
children
|
|
30
|
-
]
|
|
31
|
-
});
|
|
32
|
-
};
|
|
33
|
-
const _default = AppTheme;
|
package/12/app/sc/auth/index.js
DELETED
|
@@ -1,40 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
NextApp: function() {
|
|
13
|
-
return NextApp;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _react = require("next-auth/react");
|
|
21
|
-
const _AppHead = require("../../AppHead");
|
|
22
|
-
const _AppMain = require("../AppMain");
|
|
23
|
-
const _AppTheme = require("../AppTheme");
|
|
24
|
-
const NextApp = (props)=>{
|
|
25
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
26
|
-
children: [
|
|
27
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_AppHead.AppHead, {}),
|
|
28
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_react.SessionProvider, {
|
|
29
|
-
session: props.pageProps.session,
|
|
30
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_AppTheme.AppTheme, {
|
|
31
|
-
...props,
|
|
32
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_AppMain.AppMain, {
|
|
33
|
-
...props
|
|
34
|
-
})
|
|
35
|
-
})
|
|
36
|
-
})
|
|
37
|
-
]
|
|
38
|
-
});
|
|
39
|
-
};
|
|
40
|
-
const _default = NextApp;
|
package/12/app/sc/index.js
DELETED
|
@@ -1,36 +0,0 @@
|
|
|
1
|
-
"use strict";
|
|
2
|
-
Object.defineProperty(exports, "__esModule", {
|
|
3
|
-
value: true
|
|
4
|
-
});
|
|
5
|
-
function _export(target, all) {
|
|
6
|
-
for(var name in all)Object.defineProperty(target, name, {
|
|
7
|
-
enumerable: true,
|
|
8
|
-
get: all[name]
|
|
9
|
-
});
|
|
10
|
-
}
|
|
11
|
-
_export(exports, {
|
|
12
|
-
NextApp: function() {
|
|
13
|
-
return NextApp;
|
|
14
|
-
},
|
|
15
|
-
default: function() {
|
|
16
|
-
return _default;
|
|
17
|
-
}
|
|
18
|
-
});
|
|
19
|
-
const _jsxruntime = require("react/jsx-runtime");
|
|
20
|
-
const _AppHead = require("../AppHead");
|
|
21
|
-
const _AppMain = require("./AppMain");
|
|
22
|
-
const _AppTheme = require("./AppTheme");
|
|
23
|
-
const NextApp = (props)=>{
|
|
24
|
-
return /*#__PURE__*/ (0, _jsxruntime.jsxs)(_jsxruntime.Fragment, {
|
|
25
|
-
children: [
|
|
26
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_AppHead.AppHead, {}),
|
|
27
|
-
/*#__PURE__*/ (0, _jsxruntime.jsx)(_AppTheme.AppTheme, {
|
|
28
|
-
...props,
|
|
29
|
-
children: /*#__PURE__*/ (0, _jsxruntime.jsx)(_AppMain.AppMain, {
|
|
30
|
-
...props
|
|
31
|
-
})
|
|
32
|
-
})
|
|
33
|
-
]
|
|
34
|
-
});
|
|
35
|
-
};
|
|
36
|
-
const _default = NextApp;
|