not-node 6.1.3 → 6.1.4

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 (66) hide show
  1. package/bin/not-cli.mjs +3 -3
  2. package/package.json +1 -1
  3. package/playground/.babelrc +11 -0
  4. package/playground/.eslintignore +4 -0
  5. package/playground/.eslintrc.json +23 -0
  6. package/playground/app/front/build/admin.css +2 -0
  7. package/playground/app/front/build/admin.js +52419 -0
  8. package/playground/app/front/build/client.css +2 -0
  9. package/playground/app/front/build/client.js +52419 -0
  10. package/playground/app/front/build/guest.css +2 -0
  11. package/playground/app/front/build/guest.js +50915 -0
  12. package/playground/app/front/build/root.css +2 -0
  13. package/playground/app/front/build/root.js +60015 -0
  14. package/playground/app/front/build/user.css +2 -0
  15. package/playground/app/front/build/user.js +52417 -0
  16. package/playground/app/front/build.env.js +15 -0
  17. package/playground/app/front/index.!.js +64 -0
  18. package/playground/app/front/index.admin.js +160 -0
  19. package/playground/app/front/index.client.js +160 -0
  20. package/playground/app/front/index.guest.js +160 -0
  21. package/playground/app/front/index.root.js +224 -0
  22. package/playground/app/front/index.user.js +160 -0
  23. package/playground/app/front/rollup.!.js +70 -0
  24. package/playground/app/front/rollup.admin.js +70 -0
  25. package/playground/app/front/rollup.client.js +70 -0
  26. package/playground/app/front/rollup.guest.js +70 -0
  27. package/playground/app/front/rollup.root.js +70 -0
  28. package/playground/app/front/rollup.user.js +70 -0
  29. package/playground/app/front/src/admin/main/index.js +34 -0
  30. package/playground/app/front/src/client/main/index.js +34 -0
  31. package/playground/app/front/src/common/index.js +40 -0
  32. package/playground/app/front/src/common/ncInit.js +18 -0
  33. package/playground/app/front/src/common/ws.client.main.js +34 -0
  34. package/playground/app/front/src/guest/main/index.js +45 -0
  35. package/playground/app/front/src/root/main/index.js +34 -0
  36. package/playground/app/front/src/user/main/index.js +34 -0
  37. package/playground/app/server/app.js +25 -0
  38. package/playground/app/server/config/common.json +106 -0
  39. package/playground/app/server/config/development.json +34 -0
  40. package/playground/app/server/config/production.json +34 -0
  41. package/playground/app/server/config/stage.json +34 -0
  42. package/playground/app/server/index.js +20 -0
  43. package/playground/app/server/routes/index.js +34 -0
  44. package/playground/app/server/routes/site.js +71 -0
  45. package/playground/app/server/views/admin/foot.pug +1 -0
  46. package/playground/app/server/views/admin/head.pug +7 -0
  47. package/playground/app/server/views/admin/menu.pug +2 -0
  48. package/playground/app/server/views/admin.pug +19 -0
  49. package/playground/app/server/views/dashboard.pug +20 -0
  50. package/playground/app/server/views/index.pug +15 -0
  51. package/playground/app/server/views/parts/header.android.pug +6 -0
  52. package/playground/app/server/views/parts/header.ios.pug +5 -0
  53. package/playground/app/server/views/parts/header.pug +18 -0
  54. package/playground/app/server/views/parts/menu.pug +1 -0
  55. package/playground/app/server/views/parts/overview.pug +2 -0
  56. package/playground/app/server/ws/auth.js +41 -0
  57. package/playground/app/server/ws/index.js +84 -0
  58. package/playground/bin/build.sh +8 -0
  59. package/playground/package.json +85 -0
  60. package/playground/project.manifest.json +37 -0
  61. package/src/cli/readers/ws.mjs +12 -0
  62. package/src/cli/renderers/controllers.mjs +1 -0
  63. package/tmpl/dirs/module.front.mjs +1 -1
  64. package/tmpl/files/module.front/common/index.ejs +7 -6
  65. package/tmpl/files/module.front/common/ws.client.main.ejs +2 -3
  66. package/tmpl/files/module.front/role/index.ejs +1 -1
@@ -0,0 +1,15 @@
1
+
2
+ let replaceSets = {
3
+ development: {},
4
+ production: {},
5
+ stage: {},
6
+ };
7
+
8
+ let babelOn = () => {
9
+ return ['production', 'stage', 'development'].indexOf(process.env.NODE_ENV) > -1;
10
+ };
11
+
12
+ export {
13
+ babelOn,
14
+ replaceSets
15
+ };
@@ -0,0 +1,64 @@
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
+ <% for(var i = 0; i < mods.length; i++) { %>
44
+ import * as mod_<%= i %>
45
+ from '<%= mods[i] %>';
46
+ appDefaultOptions = notCommon.absorbModule({
47
+ defaultConf: appDefaultOptions,
48
+ mod: mod_<%= i %>,
49
+ services, uis, wsc, fields
50
+ });
51
+ <% } %>
52
+
53
+ COMPONENTS.import(uis);
54
+
55
+ import 'bulma';
56
+
57
+ <% for(var i = 0; i < scss.length; i++) { %>
58
+ import '<%= scss[i] %>';
59
+ <% } %>
60
+
61
+ appDefaultOptions.services = services;
62
+ appDefaultOptions.wsc = wsc;
63
+
64
+ notCommon.startApp(() => new notApp(appDefaultOptions));
@@ -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/admin';
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/admin';
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/admin/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,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/client';
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/client';
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/client/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,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/guest';
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/guest';
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/guest/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));