cc-core-cli 1.0.13 → 1.0.15
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 +1 -1
- package/template/admin/next.config.js +0 -10
- package/template/admin/package.json +1 -1
- package/template/admin/public/private-image-worker.js +21 -0
- package/template/admin/public/static/styles/login.less +17 -0
- package/template/core/package.json +1 -1
- package/template/admin/package-lock.json +0 -18996
package/package.json
CHANGED
|
@@ -43,16 +43,6 @@ module.exports = withPlugins([
|
|
|
43
43
|
[withLess, {
|
|
44
44
|
lessLoaderOptions: {}
|
|
45
45
|
}],
|
|
46
|
-
[
|
|
47
|
-
withPWA, {
|
|
48
|
-
pwa: {
|
|
49
|
-
dest: 'public',
|
|
50
|
-
register: true,
|
|
51
|
-
skipWaiting: true,
|
|
52
|
-
disable: process.env.NODE_ENV === 'development'
|
|
53
|
-
}
|
|
54
|
-
}
|
|
55
|
-
],
|
|
56
46
|
withAntd,
|
|
57
47
|
withAntdTheme,
|
|
58
48
|
], {
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
self.addEventListener('activate', event => {
|
|
2
|
+
event.waitUntil(self.clients.claim());
|
|
3
|
+
});
|
|
4
|
+
|
|
5
|
+
self.addEventListener('fetch', event => {
|
|
6
|
+
const privateHost = new URL(self.serviceWorker.scriptURL).searchParams.get('host')
|
|
7
|
+
if (!event.request.url.startsWith(privateHost)) return
|
|
8
|
+
|
|
9
|
+
event.respondWith(modifyAPIResponse(event.request));
|
|
10
|
+
})
|
|
11
|
+
|
|
12
|
+
async function modifyAPIResponse(request) {
|
|
13
|
+
const imageLink = request.url
|
|
14
|
+
request = new Request(`/api/media?url=${imageLink}`, {
|
|
15
|
+
method: 'GET',
|
|
16
|
+
headers: request.headers,
|
|
17
|
+
mode: 'same-origin',
|
|
18
|
+
credentials: 'include',
|
|
19
|
+
});
|
|
20
|
+
return await fetch(request)
|
|
21
|
+
}
|
|
@@ -219,4 +219,21 @@
|
|
|
219
219
|
margin-top : 0;
|
|
220
220
|
padding-top: 0;
|
|
221
221
|
text-align : center;
|
|
222
|
+
}
|
|
223
|
+
|
|
224
|
+
.login-input {
|
|
225
|
+
.ant-input {
|
|
226
|
+
height: 44px;
|
|
227
|
+
font-size: 16px;
|
|
228
|
+
}
|
|
229
|
+
}
|
|
230
|
+
.login-input-password {
|
|
231
|
+
.ant-input-password {
|
|
232
|
+
height: 44px;
|
|
233
|
+
font-size: 16px;
|
|
234
|
+
}
|
|
235
|
+
}
|
|
236
|
+
.button_login {
|
|
237
|
+
height: 44px;
|
|
238
|
+
font-size: 16px;
|
|
222
239
|
}
|
|
@@ -38,7 +38,7 @@
|
|
|
38
38
|
"@nestjs/platform-fastify": "^9.3.9",
|
|
39
39
|
"@nestjs/schedule": "^2.2.0",
|
|
40
40
|
"@nestjs/swagger": "^6.2.1",
|
|
41
|
-
"@shopstack/cc-core-lib": "^2.5.
|
|
41
|
+
"@shopstack/cc-core-lib": "^2.5.18",
|
|
42
42
|
"@types/chroma-js": "^2.4.0",
|
|
43
43
|
"@types/numeral": "^2.0.2",
|
|
44
44
|
"amazon-cognito-identity-js": "^4.5.0",
|