@things-factory/shell 10.0.0-beta.4 → 10.0.0-beta.44
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/_index.html +2 -2
- package/config/config.development.js +1 -1
- package/config/config.production.js +1 -1
- package/dist-server/middlewares/index.d.ts +2 -1
- package/dist-server/middlewares/index.js.map +1 -1
- package/dist-server/tsconfig.tsbuildinfo +1 -1
- package/dist-server/utils/headless-pool/browser-factory.js +31 -1
- package/dist-server/utils/headless-pool/browser-factory.js.map +1 -1
- package/dist-server/utils/headless-pool/config.js +6 -2
- package/dist-server/utils/headless-pool/config.js.map +1 -1
- package/package.json +8 -11
- package/views/public/home.html +0 -3
package/_index.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="google" content="notranslate" />
|
|
6
6
|
<title>Things Factory App</title>
|
|
7
7
|
<meta name="generator" content="Things Factory Starter Kit" />
|
|
8
|
-
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no" />
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1, user-scalable=no, viewport-fit=cover" />
|
|
9
9
|
<meta name="description" content="Reimagining Software" />
|
|
10
10
|
|
|
11
11
|
<base href="/" />
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
|
|
28
28
|
<!-- Add to homescreen for Safari on iOS -->
|
|
29
29
|
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
30
|
-
<meta name="apple-mobile-web-app-status-bar-style" content="
|
|
30
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent" />
|
|
31
31
|
<meta name="apple-mobile-web-app-title" content="Things Factory" />
|
|
32
32
|
|
|
33
33
|
<!-- Homescreen icons -->
|
|
@@ -44,7 +44,7 @@ module.exports = {
|
|
|
44
44
|
'script-src': ['*', "'unsafe-inline'", "'unsafe-eval'"],
|
|
45
45
|
'style-src': ['*', "'unsafe-inline'"],
|
|
46
46
|
'img-src': ['*', 'data:', 'blob:'],
|
|
47
|
-
'connect-src': ['*', 'data:'
|
|
47
|
+
'connect-src': ['*', 'data:', 'blob:'],
|
|
48
48
|
'font-src': ['*'],
|
|
49
49
|
'media-src': ['*', 'data:', 'blob:'],
|
|
50
50
|
'object-src': ['*', 'data:', 'blob:'],
|
|
@@ -47,7 +47,7 @@ module.exports = {
|
|
|
47
47
|
'script-src': ['*', "'unsafe-inline'", "'unsafe-eval'"],
|
|
48
48
|
'style-src': ['*', "'unsafe-inline'"],
|
|
49
49
|
'img-src': ['*', 'data:', 'blob:'],
|
|
50
|
-
'connect-src': ['*', 'data:'
|
|
50
|
+
'connect-src': ['*', 'data:', 'blob:'],
|
|
51
51
|
'font-src': ['*'],
|
|
52
52
|
'media-src': ['*', 'data:', 'blob:'],
|
|
53
53
|
'object-src': ['*', 'data:', 'blob:'],
|
|
@@ -1 +1 @@
|
|
|
1
|
-
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;AAMA,0CAoCC;;AAxCD,6CAAoD;AAEpD,iEAAyD;AAEzD,SAAgB,eAAe,CAAC,GAAQ;IACtC,GAAG,CAAC,eAAe,GAAG,YAAM,CAAC,GAAG,CAAC,iBAAiB,EAAE,CAAC,CAAC,CAAA;IAEtD,GAAG,CAAC,EAAE,CAAC,OAAO,EAAE,CAAC,GAAG,EAAE,OAAO,EAAE,EAAE;QAC/B,YAAM,CAAC,KAAK,CAAC,GAAG,CAAC,CAAA;IACnB,CAAC,CAAC,CAAA;IAEF;;;OAGG;IACH,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,IAAI,CAAC;YACH,MAAM,IAAI,EAAE,CAAA;QACd,CAAC;QAAC,OAAO,GAAG,EAAE,CAAC;YACb,OAAO,CAAC,MAAM,GAAG,GAAG,EAAE,MAAM,IAAI,GAAG,CAAA;YACnC,OAAO,CAAC,IAAI,GAAG,GAAG,EAAE,OAAO,CAAA;YAE3B,yCAAyC;YACzC,OAAO,CAAC,GAAG,CAAC,IAAI,CAAC,OAAO,EAAE,GAAG,EAAE,OAAO,CAAC,CAAA;QACzC,CAAC;IACH,CAAC,CAAC,CAAA;IAEF;;;OAGG;IACH,GAAG,CAAC,GAAG,CAAC,KAAK,EAAE,OAAO,EAAE,IAAI,EAAE,EAAE;QAC9B,MAAM,EAAE,MAAM,EAAE,IAAI,EAAE,GAAG,OAAO,CAAA;QAEhC,IAAI,MAAM,IAAI,MAAM,IAAI,IAAI,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;YACpD,OAAO,MAAM,IAAA,uCAAgB,EAAC,OAAO,EAAE,IAAI,CAAC,CAAA;QAC9C,CAAC;QAED,MAAM,IAAI,EAAE,CAAA;IACd,CAAC,CAAC,CAAA;AACJ,CAAC;AAED,iEAAsC","sourcesContent":["import Koa from 'koa'\n\nimport { config, logger } from '@things-factory/env'\n\nimport { domainMiddleware } from './domain-middleware.js'\n\nexport function initMiddlewares(app: Koa) {\n app.subdomainOffset = config.get('subdomainOffset', 2)\n\n app.on('error', (err, context) => {\n logger.error(err)\n })\n\n /*\n * Catching downstream errors\n * - recommend to use context.throw, context.assert\n */\n app.use(async (context, next) => {\n try {\n await next()\n } catch (err) {\n context.status = err?.status || 500\n context.body = err?.message\n\n // emitting error to app.on('error', ...)\n context.app.emit('error', err, context)\n }\n })\n\n /*\n * post:graphql 에 대해서는 domain을 확인한다.\n * graphql app을 router에 적용하지 못하기 때문임.\n */\n app.use(async (context, next) => {\n const { method, path } = context\n\n if (method == 'POST' && path.startsWith('/graphql')) {\n return await domainMiddleware(context, next)\n }\n\n await next()\n })\n}\n\nexport * from './domain-middleware.js'\n"]}
|