not-node 6.1.1 → 6.1.2

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.
Files changed (36) hide show
  1. package/.env +2 -2
  2. package/bin/not-cli.mjs +53 -12
  3. package/package.json +1 -1
  4. package/playground/app/front/build/admin.css +2 -0
  5. package/playground/app/front/build/admin.js +52427 -0
  6. package/playground/app/front/build/client.css +2 -0
  7. package/playground/app/front/build/client.js +52427 -0
  8. package/playground/app/front/build/guest.css +2 -0
  9. package/playground/app/front/build/guest.js +50907 -0
  10. package/playground/app/front/build/root.css +2 -0
  11. package/playground/app/front/build/root.js +60023 -0
  12. package/playground/app/front/build/user.css +2 -0
  13. package/playground/app/front/build/user.js +52425 -0
  14. package/playground/app/front/index.admin.js +160 -0
  15. package/playground/app/front/index.client.js +160 -0
  16. package/playground/app/front/index.guest.js +160 -0
  17. package/playground/app/front/index.root.js +224 -0
  18. package/playground/app/front/index.user.js +160 -0
  19. package/playground/app/front/rollup.admin.js +70 -0
  20. package/playground/app/front/rollup.client.js +70 -0
  21. package/playground/app/front/rollup.guest.js +70 -0
  22. package/playground/app/front/rollup.root.js +70 -0
  23. package/playground/app/front/rollup.user.js +70 -0
  24. package/playground/app/server/config/common.json +4 -4
  25. package/playground/app/server/config/development.json +31 -32
  26. package/playground/app/server/config/production.json +31 -32
  27. package/playground/app/server/config/stage.json +31 -32
  28. package/playground/app/server/routes/index.js +29 -31
  29. package/playground/app/server/views/parts/header.android.pug +6 -7
  30. package/playground/app/server/views/parts/header.ios.pug +5 -5
  31. package/src/metas.js +4 -3
  32. package/tmpl/files/app/routes/index.ejs +29 -31
  33. package/tmpl/files/app/views/parts/header.android.ejs +6 -7
  34. package/tmpl/files/app/views/parts/header.ios.ejs +5 -5
  35. package/tmpl/files/app/views/parts/menu.ejs +1 -1
  36. package/tmpl/files/app/views/parts/overview.ejs +1 -1
@@ -0,0 +1,160 @@
1
+
2
+
3
+ import {
4
+ Frame
5
+ } from 'not-bulma';
6
+
7
+ const {notCommon, notApp, COMPONENTS} = Frame;
8
+
9
+ notCommon.register('backlog', true);
10
+ window.dumpBacklog = notCommon.dumpBacklog.bind(notCommon);
11
+
12
+ let appDefaultOptions = {
13
+ manifestURL: '/api/manifest',
14
+ router: {
15
+ root: '/',
16
+ manifest: [],
17
+ index: ''
18
+ },
19
+ language: 'ru',
20
+ crud: {
21
+ navigateBackAfter: ['create', 'update', 'delete']
22
+ },
23
+ modules: {
24
+ user: {
25
+ redirectTimout: 1000,
26
+ afterLoginURL: '/dashboard',
27
+ loginForm: {
28
+ modes: [
29
+ 'login',
30
+ 'requestLoginCodeOnEmail',
31
+ 'loginByCode'
32
+ ]
33
+ },
34
+ loginFormContainerSelector: '.main-container',
35
+ restoreFormContainerSelector: '.main-container',
36
+ registerFormContainerSelector: '.main-container'
37
+ }
38
+ }
39
+ };
40
+
41
+ let services = {}, uis = {}, wsc = {}, fields = {};
42
+
43
+
44
+ import * as mod_0
45
+ from '/var/server/nn/playground/node_modules/not-options/src/controllers/common';
46
+ appDefaultOptions = notCommon.absorbModule({
47
+ defaultConf: appDefaultOptions,
48
+ mod: mod_0,
49
+ services, uis, wsc, fields
50
+ });
51
+
52
+ import * as mod_1
53
+ from '/var/server/nn/playground/node_modules/not-filter/src/controllers/common';
54
+ appDefaultOptions = notCommon.absorbModule({
55
+ defaultConf: appDefaultOptions,
56
+ mod: mod_1,
57
+ services, uis, wsc, fields
58
+ });
59
+
60
+ import * as mod_2
61
+ from '/var/server/nn/playground/node_modules/not-notification/src/controllers/user';
62
+ appDefaultOptions = notCommon.absorbModule({
63
+ defaultConf: appDefaultOptions,
64
+ mod: mod_2,
65
+ services, uis, wsc, fields
66
+ });
67
+
68
+ import * as mod_3
69
+ from '/var/server/nn/playground/node_modules/not-locale/src/controllers/common';
70
+ appDefaultOptions = notCommon.absorbModule({
71
+ defaultConf: appDefaultOptions,
72
+ mod: mod_3,
73
+ services, uis, wsc, fields
74
+ });
75
+
76
+ import * as mod_4
77
+ from '/var/server/nn/playground/node_modules/not-key/src/controllers/common';
78
+ appDefaultOptions = notCommon.absorbModule({
79
+ defaultConf: appDefaultOptions,
80
+ mod: mod_4,
81
+ services, uis, wsc, fields
82
+ });
83
+
84
+ import * as mod_5
85
+ from '/var/server/nn/playground/node_modules/not-ws/src/controllers/common';
86
+ appDefaultOptions = notCommon.absorbModule({
87
+ defaultConf: appDefaultOptions,
88
+ mod: mod_5,
89
+ services, uis, wsc, fields
90
+ });
91
+
92
+ import * as mod_6
93
+ from '/var/server/nn/playground/node_modules/not-store/src/controllers/common';
94
+ appDefaultOptions = notCommon.absorbModule({
95
+ defaultConf: appDefaultOptions,
96
+ mod: mod_6,
97
+ services, uis, wsc, fields
98
+ });
99
+
100
+ import * as mod_7
101
+ from '/var/server/nn/playground/node_modules/not-dbdump/src/controllers/common';
102
+ appDefaultOptions = notCommon.absorbModule({
103
+ defaultConf: appDefaultOptions,
104
+ mod: mod_7,
105
+ services, uis, wsc, fields
106
+ });
107
+
108
+ import * as mod_8
109
+ from '/var/server/nn/playground/node_modules/not-user/src/controllers/user';
110
+ appDefaultOptions = notCommon.absorbModule({
111
+ defaultConf: appDefaultOptions,
112
+ mod: mod_8,
113
+ services, uis, wsc, fields
114
+ });
115
+
116
+ import * as mod_9
117
+ from '/var/server/nn/playground/node_modules/not-user/src/controllers/common';
118
+ appDefaultOptions = notCommon.absorbModule({
119
+ defaultConf: appDefaultOptions,
120
+ mod: mod_9,
121
+ services, uis, wsc, fields
122
+ });
123
+
124
+ import * as mod_10
125
+ from '/var/server/nn/playground/node_modules/not-error/src/controllers/common';
126
+ appDefaultOptions = notCommon.absorbModule({
127
+ defaultConf: appDefaultOptions,
128
+ mod: mod_10,
129
+ services, uis, wsc, fields
130
+ });
131
+
132
+ import * as mod_11
133
+ from '/var/server/nn/playground/app/front/src/common';
134
+ appDefaultOptions = notCommon.absorbModule({
135
+ defaultConf: appDefaultOptions,
136
+ mod: mod_11,
137
+ services, uis, wsc, fields
138
+ });
139
+
140
+ import * as mod_12
141
+ from '/var/server/nn/playground/app/front/src/user/main';
142
+ appDefaultOptions = notCommon.absorbModule({
143
+ defaultConf: appDefaultOptions,
144
+ mod: mod_12,
145
+ services, uis, wsc, fields
146
+ });
147
+
148
+
149
+ COMPONENTS.import(uis);
150
+
151
+ import 'bulma';
152
+
153
+
154
+ import '/var/server/nn/playground/node_modules/not-user/src/styles/common/common.scss';
155
+
156
+
157
+ appDefaultOptions.services = services;
158
+ appDefaultOptions.wsc = wsc;
159
+
160
+ notCommon.startApp(() => new notApp(appDefaultOptions));
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "/var/server/nn/playground/app/front/index.admin.js",
15
+ output: {
16
+ file: "/var/server/nn/playground/app/front/build/admin.js",
17
+ name: "notNodeApplication",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "/var/server/nn/playground/app/front/index.client.js",
15
+ output: {
16
+ file: "/var/server/nn/playground/app/front/build/client.js",
17
+ name: "notNodeApplication",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "/var/server/nn/playground/app/front/index.guest.js",
15
+ output: {
16
+ file: "/var/server/nn/playground/app/front/build/guest.js",
17
+ name: "notNodeApplication",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "/var/server/nn/playground/app/front/index.root.js",
15
+ output: {
16
+ file: "/var/server/nn/playground/app/front/build/root.js",
17
+ name: "notNodeApplication",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };
@@ -0,0 +1,70 @@
1
+ // Rollup plugins
2
+ import babel from "@rollup/plugin-babel";
3
+ import commonjs from "@rollup/plugin-commonjs";
4
+ import svelte from "rollup-plugin-svelte";
5
+ import resolve from "@rollup/plugin-node-resolve";
6
+ import filesize from "rollup-plugin-filesize";
7
+ import sizes from "rollup-plugin-sizes";
8
+ import postcss from "rollup-plugin-postcss";
9
+ import json from "@rollup/plugin-json";
10
+
11
+ import { babelOn } from "./build.env.js";
12
+
13
+ export default {
14
+ input: "/var/server/nn/playground/app/front/index.user.js",
15
+ output: {
16
+ file: "/var/server/nn/playground/app/front/build/user.js",
17
+ name: "notNodeApplication",
18
+ format: "iife",
19
+ sourcemap:
20
+ false && (process.env.NODE_ENV === "production" ? false : "inline"),
21
+ },
22
+ plugins: [
23
+ json(),
24
+ svelte({
25
+ emitCss: true,
26
+ }),
27
+ resolve({
28
+ browser: true,
29
+ preferBuiltins: true,
30
+ dedupe: (importee) =>
31
+ importee === "svelte" || importee.startsWith("svelte/"),
32
+ }),
33
+ commonjs({}),
34
+ postcss({
35
+ extract: true,
36
+ minimize: true,
37
+ use: [
38
+ [
39
+ "sass",
40
+ {
41
+ includePaths: ["./src/styles/theme", "./node_modules"],
42
+ },
43
+ ],
44
+ ],
45
+ }),
46
+ babelOn() &&
47
+ babel({
48
+ presets: [
49
+ [
50
+ "@babel/preset-env",
51
+ {
52
+ corejs: 3,
53
+ modules: false,
54
+ useBuiltIns: "usage",
55
+ targets: "> 2.5%, not dead",
56
+ },
57
+ ],
58
+ ],
59
+ babelHelpers: "bundled",
60
+ plugins: [
61
+ "@babel/plugin-proposal-class-properties",
62
+ "@babel/plugin-proposal-private-methods",
63
+ "@babel/transform-arrow-functions",
64
+ ],
65
+ exclude: ["node_modules/**", "build/**"],
66
+ }),
67
+ sizes(),
68
+ filesize(),
69
+ ],
70
+ };
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "port": 3000,
3
- "host": "https://localhost",
3
+ "host": "localhost",
4
4
  "cors": [
5
5
  ""
6
6
  ],
@@ -30,7 +30,7 @@
30
30
  },
31
31
  "session": {
32
32
  "driver": "redis",
33
- "secret": "NG1ARzt2kIFQ82GbldZACMYE12xBiuRnPObMqeba",
33
+ "secret": "yPSvHeEQFmvFVYEf7U6ax6e4mRupDKlt7IKnDT8H",
34
34
  "cookie": {
35
35
  "maxAge": 2628000000
36
36
  },
@@ -49,9 +49,9 @@
49
49
  "servers": {
50
50
  "main": {
51
51
  "connection": {
52
- "port": 303,
52
+ "port": 3030,
53
53
  "secure": true,
54
- "secret": "Nqh6DCD9lZ0Px575JmBJuimO1giVlPgBbjEHhHmE"
54
+ "secret": "2stgKj4IqCqsGE5NBV1yNQnSYR1ITyuqwro934aV"
55
55
  }
56
56
  }
57
57
  }
@@ -1,34 +1,33 @@
1
1
  {
2
- "hostname":"https://localhost",
3
- "CSP": {
4
- "connect": [
5
- "'self'",
6
- "*",
7
- "wss:",
8
- "https:",
9
- "'unsafe-inline'"
10
- ],
11
- "default": [
12
- "'self'",
13
- "*",
14
- "wss:",
15
- "https:",
16
- "'unsafe-inline'"
17
- ],
18
- "img": [
19
- "'self'",
20
- "data:"
21
- ],
22
- "script": [
23
- "'self'",
24
- "'unsafe-eval'",
25
- "'unsafe-inline'"
26
- ],
27
- "style": [
28
- "'self'",
29
- "'unsafe-inline'",
30
- "'unsafe-eval'"
31
- ]
32
- }
2
+ "hostname": "localhost",
3
+ "CSP": {
4
+ "connect": [
5
+ "'self'",
6
+ "*",
7
+ "wss:",
8
+ "https:",
9
+ "'unsafe-inline'"
10
+ ],
11
+ "default": [
12
+ "'self'",
13
+ "*",
14
+ "wss:",
15
+ "https:",
16
+ "'unsafe-inline'"
17
+ ],
18
+ "img": [
19
+ "'self'",
20
+ "data:"
21
+ ],
22
+ "script": [
23
+ "'self'",
24
+ "'unsafe-eval'",
25
+ "'unsafe-inline'"
26
+ ],
27
+ "style": [
28
+ "'self'",
29
+ "'unsafe-inline'",
30
+ "'unsafe-eval'"
31
+ ]
33
32
  }
34
-
33
+ }
@@ -1,34 +1,33 @@
1
1
  {
2
- "hostname":"https://localhost",
3
- "CSP": {
4
- "connect": [
5
- "'self'",
6
- "*",
7
- "wss:",
8
- "https:",
9
- "'unsafe-inline'"
10
- ],
11
- "default": [
12
- "'self'",
13
- "*",
14
- "wss:",
15
- "https:",
16
- "'unsafe-inline'"
17
- ],
18
- "img": [
19
- "'self'",
20
- "data:"
21
- ],
22
- "script": [
23
- "'self'",
24
- "'unsafe-eval'",
25
- "'unsafe-inline'"
26
- ],
27
- "style": [
28
- "'self'",
29
- "'unsafe-inline'",
30
- "'unsafe-eval'"
31
- ]
32
- }
2
+ "hostname": "localhost",
3
+ "CSP": {
4
+ "connect": [
5
+ "'self'",
6
+ "*",
7
+ "wss:",
8
+ "https:",
9
+ "'unsafe-inline'"
10
+ ],
11
+ "default": [
12
+ "'self'",
13
+ "*",
14
+ "wss:",
15
+ "https:",
16
+ "'unsafe-inline'"
17
+ ],
18
+ "img": [
19
+ "'self'",
20
+ "data:"
21
+ ],
22
+ "script": [
23
+ "'self'",
24
+ "'unsafe-eval'",
25
+ "'unsafe-inline'"
26
+ ],
27
+ "style": [
28
+ "'self'",
29
+ "'unsafe-inline'",
30
+ "'unsafe-eval'"
31
+ ]
33
32
  }
34
-
33
+ }