not-node 6.1.2 → 6.1.3
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/.vscode/launch.json +19 -0
- package/bin/not-cli.mjs +3 -8
- package/package.json +1 -1
- package/src/cli/readers/hostname.mjs +1 -1
- package/src/cli/readers/user.mjs +8 -1
- package/src/init/lib/modules.js +1 -2
- package/src/init/lib/routes.js +4 -1
- package/tmpl/files/app/app.ejs +3 -0
- package/playground/.babelrc +0 -11
- package/playground/.eslintignore +0 -4
- package/playground/.eslintrc.json +0 -23
- package/playground/app/front/build/admin.css +0 -2
- package/playground/app/front/build/admin.js +0 -52427
- package/playground/app/front/build/client.css +0 -2
- package/playground/app/front/build/client.js +0 -52427
- package/playground/app/front/build/guest.css +0 -2
- package/playground/app/front/build/guest.js +0 -50907
- package/playground/app/front/build/root.css +0 -2
- package/playground/app/front/build/root.js +0 -60023
- package/playground/app/front/build/user.css +0 -2
- package/playground/app/front/build/user.js +0 -52425
- package/playground/app/front/build.env.js +0 -15
- package/playground/app/front/index.!.js +0 -64
- package/playground/app/front/index.admin.js +0 -160
- package/playground/app/front/index.client.js +0 -160
- package/playground/app/front/index.guest.js +0 -160
- package/playground/app/front/index.root.js +0 -224
- package/playground/app/front/index.user.js +0 -160
- package/playground/app/front/rollup.!.js +0 -70
- package/playground/app/front/rollup.admin.js +0 -70
- package/playground/app/front/rollup.client.js +0 -70
- package/playground/app/front/rollup.guest.js +0 -70
- package/playground/app/front/rollup.root.js +0 -70
- package/playground/app/front/rollup.user.js +0 -70
- package/playground/app/front/src/admin/main/index.js +0 -45
- package/playground/app/front/src/client/main/index.js +0 -45
- package/playground/app/front/src/common/index.js +0 -39
- package/playground/app/front/src/common/ncInit.js +0 -18
- package/playground/app/front/src/common/ws.client.main.js +0 -35
- package/playground/app/front/src/guest/main/index.js +0 -34
- package/playground/app/front/src/root/main/index.js +0 -45
- package/playground/app/front/src/user/main/index.js +0 -45
- package/playground/app/server/app.js +0 -22
- package/playground/app/server/config/common.json +0 -99
- package/playground/app/server/config/development.json +0 -33
- package/playground/app/server/config/production.json +0 -33
- package/playground/app/server/config/stage.json +0 -33
- package/playground/app/server/index.js +0 -20
- package/playground/app/server/routes/index.js +0 -34
- package/playground/app/server/routes/site.js +0 -71
- package/playground/app/server/views/admin/foot.pug +0 -1
- package/playground/app/server/views/admin/head.pug +0 -7
- package/playground/app/server/views/admin/menu.pug +0 -2
- package/playground/app/server/views/admin.pug +0 -19
- package/playground/app/server/views/dashboard.pug +0 -20
- package/playground/app/server/views/index.pug +0 -15
- package/playground/app/server/views/parts/header.android.pug +0 -6
- package/playground/app/server/views/parts/header.ios.pug +0 -5
- package/playground/app/server/views/parts/header.pug +0 -18
- package/playground/app/server/views/parts/menu.pug +0 -1
- package/playground/app/server/views/parts/overview.pug +0 -2
- package/playground/app/server/ws/auth.js +0 -41
- package/playground/app/server/ws/index.js +0 -84
- package/playground/bin/build.sh +0 -8
- package/playground/package.json +0 -85
- package/playground/project.manifest.json +0 -37
|
@@ -1,70 +0,0 @@
|
|
|
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
|
-
};
|
|
@@ -1,70 +0,0 @@
|
|
|
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,45 +0,0 @@
|
|
|
1
|
-
import ncInit from "../../common/ncInit";
|
|
2
|
-
|
|
3
|
-
let manifest = {
|
|
4
|
-
environment: "guest",
|
|
5
|
-
router: {
|
|
6
|
-
manifest: [],
|
|
7
|
-
},
|
|
8
|
-
crud: {
|
|
9
|
-
containerSelector: ".main-container",
|
|
10
|
-
},
|
|
11
|
-
modules: {
|
|
12
|
-
user: {
|
|
13
|
-
loginFormContainerSelector: ".main-container",
|
|
14
|
-
registerFormContainerSelector: ".main-container",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
initController: ncInit,
|
|
18
|
-
menu: {
|
|
19
|
-
top: {
|
|
20
|
-
toggleSelector: ".navbar-burger",
|
|
21
|
-
sections: [],
|
|
22
|
-
items: [
|
|
23
|
-
{
|
|
24
|
-
title: "Вход",
|
|
25
|
-
url: "/login",
|
|
26
|
-
priority: 10,
|
|
27
|
-
showOnTouch: true,
|
|
28
|
-
type: "button",
|
|
29
|
-
place: "start",
|
|
30
|
-
} , {
|
|
31
|
-
id: 'register',
|
|
32
|
-
title: 'Регистрация',
|
|
33
|
-
url: '/register',
|
|
34
|
-
type: 'button',
|
|
35
|
-
priority: 11,
|
|
36
|
-
showOnTouch:true,
|
|
37
|
-
place: 'start'
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export { ncInit, manifest };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import ncInit from "../../common/ncInit";
|
|
2
|
-
|
|
3
|
-
let manifest = {
|
|
4
|
-
environment: "guest",
|
|
5
|
-
router: {
|
|
6
|
-
manifest: [],
|
|
7
|
-
},
|
|
8
|
-
crud: {
|
|
9
|
-
containerSelector: ".main-container",
|
|
10
|
-
},
|
|
11
|
-
modules: {
|
|
12
|
-
user: {
|
|
13
|
-
loginFormContainerSelector: ".main-container",
|
|
14
|
-
registerFormContainerSelector: ".main-container",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
initController: ncInit,
|
|
18
|
-
menu: {
|
|
19
|
-
top: {
|
|
20
|
-
toggleSelector: ".navbar-burger",
|
|
21
|
-
sections: [],
|
|
22
|
-
items: [
|
|
23
|
-
{
|
|
24
|
-
title: "Вход",
|
|
25
|
-
url: "/login",
|
|
26
|
-
priority: 10,
|
|
27
|
-
showOnTouch: true,
|
|
28
|
-
type: "button",
|
|
29
|
-
place: "start",
|
|
30
|
-
} , {
|
|
31
|
-
id: 'register',
|
|
32
|
-
title: 'Регистрация',
|
|
33
|
-
url: '/register',
|
|
34
|
-
type: 'button',
|
|
35
|
-
priority: 11,
|
|
36
|
-
showOnTouch:true,
|
|
37
|
-
place: 'start'
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export { ncInit, manifest };
|
|
@@ -1,39 +0,0 @@
|
|
|
1
|
-
|
|
2
|
-
import main from './ws.client.main.js';
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
let manifest = {
|
|
6
|
-
brand: {
|
|
7
|
-
icon: {
|
|
8
|
-
src: '/img/icons/icon-w-64.png',
|
|
9
|
-
width: 48,
|
|
10
|
-
height: 28
|
|
11
|
-
},
|
|
12
|
-
title: 'notNodeApplication',
|
|
13
|
-
url: '/'
|
|
14
|
-
},
|
|
15
|
-
modules:{
|
|
16
|
-
|
|
17
|
-
ws:{
|
|
18
|
-
clients:{
|
|
19
|
-
//options for ws client here
|
|
20
|
-
main: {
|
|
21
|
-
host: window.location.hostname,
|
|
22
|
-
path: 'websocket',
|
|
23
|
-
secure: true,
|
|
24
|
-
ssl: true
|
|
25
|
-
}
|
|
26
|
-
}
|
|
27
|
-
}
|
|
28
|
-
|
|
29
|
-
}
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
const wsc = {
|
|
33
|
-
main
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
export {
|
|
37
|
-
manifest,
|
|
38
|
-
wsc
|
|
39
|
-
};
|
|
@@ -1,18 +0,0 @@
|
|
|
1
|
-
import { Frame } from 'not-bulma';
|
|
2
|
-
|
|
3
|
-
const {
|
|
4
|
-
notSideMenu, notTopMenu,
|
|
5
|
-
notController} = Frame;
|
|
6
|
-
|
|
7
|
-
class ncInit extends notController {
|
|
8
|
-
constructor(app) {
|
|
9
|
-
super(app);
|
|
10
|
-
this.setModuleName('init');
|
|
11
|
-
this.log('init app');
|
|
12
|
-
notSideMenu.render(app);
|
|
13
|
-
notTopMenu.render(app);
|
|
14
|
-
return this;
|
|
15
|
-
}
|
|
16
|
-
}
|
|
17
|
-
|
|
18
|
-
export default ncInit;
|
|
@@ -1,35 +0,0 @@
|
|
|
1
|
-
import {notCommon} from 'not-bulma';
|
|
2
|
-
const logger = notCommon.createLogger(`WSClient(main)`);
|
|
3
|
-
|
|
4
|
-
const main = {
|
|
5
|
-
logger: logger,
|
|
6
|
-
getToken: () => {
|
|
7
|
-
return notCommon.getApp().getModel('user', {}).$token({})
|
|
8
|
-
.then((res) => {
|
|
9
|
-
logger.log('token', res.result.token);
|
|
10
|
-
notCommon.getApp().setWorking('token', res.result.token);
|
|
11
|
-
return res.result.token;
|
|
12
|
-
});
|
|
13
|
-
},
|
|
14
|
-
messenger: {
|
|
15
|
-
validateTypeAndName: false,
|
|
16
|
-
secure: false,//not secure, bc its not issuing tokens and has no secret key
|
|
17
|
-
types: {
|
|
18
|
-
'__service': ['updateToken'],
|
|
19
|
-
'request': [],
|
|
20
|
-
'response': [],
|
|
21
|
-
'event': []
|
|
22
|
-
},
|
|
23
|
-
},
|
|
24
|
-
router:{
|
|
25
|
-
routes:{
|
|
26
|
-
event: {
|
|
27
|
-
notification(){
|
|
28
|
-
console.log(...arguments);
|
|
29
|
-
}
|
|
30
|
-
}
|
|
31
|
-
}
|
|
32
|
-
}
|
|
33
|
-
};
|
|
34
|
-
|
|
35
|
-
export default main;
|
|
@@ -1,34 +0,0 @@
|
|
|
1
|
-
import ncInit from "../../common/ncInit";
|
|
2
|
-
|
|
3
|
-
let manifest = {
|
|
4
|
-
environment: "client",
|
|
5
|
-
router: {
|
|
6
|
-
root: "/dashboard",
|
|
7
|
-
manifest: [],
|
|
8
|
-
},
|
|
9
|
-
crud: {
|
|
10
|
-
containerSelector: ".main-container",
|
|
11
|
-
},
|
|
12
|
-
modules: {
|
|
13
|
-
user: {},
|
|
14
|
-
},
|
|
15
|
-
brand: {
|
|
16
|
-
icon: {
|
|
17
|
-
src: "/img/icons/icon-w-64.png",
|
|
18
|
-
width: 48,
|
|
19
|
-
height: 28,
|
|
20
|
-
},
|
|
21
|
-
url: "/",
|
|
22
|
-
},
|
|
23
|
-
menu: {
|
|
24
|
-
side: {
|
|
25
|
-
sections: [],
|
|
26
|
-
},
|
|
27
|
-
top: {
|
|
28
|
-
sections: [],
|
|
29
|
-
},
|
|
30
|
-
},
|
|
31
|
-
initController: ncInit,
|
|
32
|
-
};
|
|
33
|
-
|
|
34
|
-
export { ncInit, manifest };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import ncInit from "../../common/ncInit";
|
|
2
|
-
|
|
3
|
-
let manifest = {
|
|
4
|
-
environment: "guest",
|
|
5
|
-
router: {
|
|
6
|
-
manifest: [],
|
|
7
|
-
},
|
|
8
|
-
crud: {
|
|
9
|
-
containerSelector: ".main-container",
|
|
10
|
-
},
|
|
11
|
-
modules: {
|
|
12
|
-
user: {
|
|
13
|
-
loginFormContainerSelector: ".main-container",
|
|
14
|
-
registerFormContainerSelector: ".main-container",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
initController: ncInit,
|
|
18
|
-
menu: {
|
|
19
|
-
top: {
|
|
20
|
-
toggleSelector: ".navbar-burger",
|
|
21
|
-
sections: [],
|
|
22
|
-
items: [
|
|
23
|
-
{
|
|
24
|
-
title: "Вход",
|
|
25
|
-
url: "/login",
|
|
26
|
-
priority: 10,
|
|
27
|
-
showOnTouch: true,
|
|
28
|
-
type: "button",
|
|
29
|
-
place: "start",
|
|
30
|
-
} , {
|
|
31
|
-
id: 'register',
|
|
32
|
-
title: 'Регистрация',
|
|
33
|
-
url: '/register',
|
|
34
|
-
type: 'button',
|
|
35
|
-
priority: 11,
|
|
36
|
-
showOnTouch:true,
|
|
37
|
-
place: 'start'
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export { ncInit, manifest };
|
|
@@ -1,45 +0,0 @@
|
|
|
1
|
-
import ncInit from "../../common/ncInit";
|
|
2
|
-
|
|
3
|
-
let manifest = {
|
|
4
|
-
environment: "guest",
|
|
5
|
-
router: {
|
|
6
|
-
manifest: [],
|
|
7
|
-
},
|
|
8
|
-
crud: {
|
|
9
|
-
containerSelector: ".main-container",
|
|
10
|
-
},
|
|
11
|
-
modules: {
|
|
12
|
-
user: {
|
|
13
|
-
loginFormContainerSelector: ".main-container",
|
|
14
|
-
registerFormContainerSelector: ".main-container",
|
|
15
|
-
},
|
|
16
|
-
},
|
|
17
|
-
initController: ncInit,
|
|
18
|
-
menu: {
|
|
19
|
-
top: {
|
|
20
|
-
toggleSelector: ".navbar-burger",
|
|
21
|
-
sections: [],
|
|
22
|
-
items: [
|
|
23
|
-
{
|
|
24
|
-
title: "Вход",
|
|
25
|
-
url: "/login",
|
|
26
|
-
priority: 10,
|
|
27
|
-
showOnTouch: true,
|
|
28
|
-
type: "button",
|
|
29
|
-
place: "start",
|
|
30
|
-
} , {
|
|
31
|
-
id: 'register',
|
|
32
|
-
title: 'Регистрация',
|
|
33
|
-
url: '/register',
|
|
34
|
-
type: 'button',
|
|
35
|
-
priority: 11,
|
|
36
|
-
showOnTouch:true,
|
|
37
|
-
place: 'start'
|
|
38
|
-
},
|
|
39
|
-
],
|
|
40
|
-
},
|
|
41
|
-
},
|
|
42
|
-
};
|
|
43
|
-
|
|
44
|
-
|
|
45
|
-
export { ncInit, manifest };
|
|
@@ -1,22 +0,0 @@
|
|
|
1
|
-
const notNode = require("not-node");
|
|
2
|
-
|
|
3
|
-
const Init = require("not-node").Init,
|
|
4
|
-
path = require("path"),
|
|
5
|
-
manifest = require("./../../project.manifest.json");
|
|
6
|
-
|
|
7
|
-
module.exports = () => {
|
|
8
|
-
const options = {
|
|
9
|
-
pathToApp: path.join(__dirname),
|
|
10
|
-
pathToNPM: path.join(__dirname, "../../node_modules"),
|
|
11
|
-
routesPath: path.join(__dirname, "./routes"),
|
|
12
|
-
indexRoute: require("./routes/site.js").index,
|
|
13
|
-
};
|
|
14
|
-
|
|
15
|
-
const additional = {
|
|
16
|
-
pre({ initSequence }) {
|
|
17
|
-
initSequence.remove("InitMonitoring");
|
|
18
|
-
},
|
|
19
|
-
};
|
|
20
|
-
|
|
21
|
-
Init.run({ options, manifest, additional });
|
|
22
|
-
};
|
|
@@ -1,99 +0,0 @@
|
|
|
1
|
-
{
|
|
2
|
-
"port": 3000,
|
|
3
|
-
"host": "localhost",
|
|
4
|
-
"cors": [
|
|
5
|
-
""
|
|
6
|
-
],
|
|
7
|
-
"template": {
|
|
8
|
-
"engine": "pug",
|
|
9
|
-
"views": "views",
|
|
10
|
-
"partialsDir": "partials",
|
|
11
|
-
"partials": {}
|
|
12
|
-
},
|
|
13
|
-
"db": {
|
|
14
|
-
"mongoose": {
|
|
15
|
-
"uri": "mongodb:///test?authSource=admin",
|
|
16
|
-
"options": {
|
|
17
|
-
"useNewUrlParser": true,
|
|
18
|
-
"useUnifiedTopology": true,
|
|
19
|
-
"db": "test",
|
|
20
|
-
"host": "",
|
|
21
|
-
"user": "tester",
|
|
22
|
-
"pass": "test",
|
|
23
|
-
"autoIndex": false
|
|
24
|
-
}
|
|
25
|
-
},
|
|
26
|
-
"redis": {},
|
|
27
|
-
"ioredis": {
|
|
28
|
-
"enableOfflineQueue": false
|
|
29
|
-
}
|
|
30
|
-
},
|
|
31
|
-
"session": {
|
|
32
|
-
"driver": "redis",
|
|
33
|
-
"secret": "yPSvHeEQFmvFVYEf7U6ax6e4mRupDKlt7IKnDT8H",
|
|
34
|
-
"cookie": {
|
|
35
|
-
"maxAge": 2628000000
|
|
36
|
-
},
|
|
37
|
-
"key": "SessionID"
|
|
38
|
-
},
|
|
39
|
-
"path": {
|
|
40
|
-
"static": "../static",
|
|
41
|
-
"app": "/client",
|
|
42
|
-
"dbDumps": "../../../db.dumps",
|
|
43
|
-
"front": "../front/build",
|
|
44
|
-
"ws": "./ws"
|
|
45
|
-
},
|
|
46
|
-
"defaultUserRole": "user",
|
|
47
|
-
"modules": {
|
|
48
|
-
"ws": {
|
|
49
|
-
"servers": {
|
|
50
|
-
"main": {
|
|
51
|
-
"connection": {
|
|
52
|
-
"port": 3030,
|
|
53
|
-
"secure": true,
|
|
54
|
-
"secret": "2stgKj4IqCqsGE5NBV1yNQnSYR1ITyuqwro934aV"
|
|
55
|
-
}
|
|
56
|
-
}
|
|
57
|
-
}
|
|
58
|
-
},
|
|
59
|
-
"rateLimiter": {
|
|
60
|
-
"keyPrefix": "rateLimiterMiddleware",
|
|
61
|
-
"points": 500,
|
|
62
|
-
"duration": 1
|
|
63
|
-
}
|
|
64
|
-
},
|
|
65
|
-
"middleware": {
|
|
66
|
-
"not-options": {},
|
|
67
|
-
"not-filter": {},
|
|
68
|
-
"not-notification": {},
|
|
69
|
-
"not-locale": {},
|
|
70
|
-
"not-inform": {},
|
|
71
|
-
"not-inform-rule-tag": {},
|
|
72
|
-
"not-inform-sink-email": {},
|
|
73
|
-
"not-inform-sink-notification": {},
|
|
74
|
-
"not-inform-sink-ws": {},
|
|
75
|
-
"not-key": {},
|
|
76
|
-
"not-ws": {},
|
|
77
|
-
"not-store": {},
|
|
78
|
-
"not-dbdump": {},
|
|
79
|
-
"not-user": {},
|
|
80
|
-
"not-error": {}
|
|
81
|
-
},
|
|
82
|
-
"importModulesFromNPM": [
|
|
83
|
-
"not-options",
|
|
84
|
-
"not-filter",
|
|
85
|
-
"not-notification",
|
|
86
|
-
"not-locale",
|
|
87
|
-
"not-inform",
|
|
88
|
-
"not-inform-rule-tag",
|
|
89
|
-
"not-inform-sink-email",
|
|
90
|
-
"not-inform-sink-notification",
|
|
91
|
-
"not-inform-sink-ws",
|
|
92
|
-
"not-key",
|
|
93
|
-
"not-ws",
|
|
94
|
-
"not-store",
|
|
95
|
-
"not-dbdump",
|
|
96
|
-
"not-user",
|
|
97
|
-
"not-error"
|
|
98
|
-
]
|
|
99
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
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
|
-
]
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
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
|
-
]
|
|
32
|
-
}
|
|
33
|
-
}
|
|
@@ -1,33 +0,0 @@
|
|
|
1
|
-
{
|
|
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
|
-
]
|
|
32
|
-
}
|
|
33
|
-
}
|