@things-factory/operato-gangsters 5.0.0-alpha.29
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/CHANGELOG.md +8 -0
- package/Dockerfile +60 -0
- package/LICENSE.md +21 -0
- package/_index.html +91 -0
- package/assets/favicon.ico +0 -0
- package/assets/helps/index.md +1 -0
- package/assets/images/hatiolab-logo.png +0 -0
- package/assets/images/spinner.png +0 -0
- package/assets/manifest/apple-1024.png +0 -0
- package/assets/manifest/apple-120.png +0 -0
- package/assets/manifest/apple-152.png +0 -0
- package/assets/manifest/apple-167.png +0 -0
- package/assets/manifest/apple-180.png +0 -0
- package/assets/manifest/apple-touch-icon.png +0 -0
- package/assets/manifest/badge-128x128.png +0 -0
- package/assets/manifest/chrome-splashscreen-icon-384x384.png +0 -0
- package/assets/manifest/chrome-touch-icon-192x192.png +0 -0
- package/assets/manifest/icon-128x128.png +0 -0
- package/assets/manifest/icon-192x192.png +0 -0
- package/assets/manifest/icon-512x512.png +0 -0
- package/assets/manifest/icon-72x72.png +0 -0
- package/assets/manifest/icon-96x96.png +0 -0
- package/assets/manifest/image-metaog.png +0 -0
- package/assets/manifest/maskable_icon.png +0 -0
- package/assets/manifest/ms-icon-144x144.png +0 -0
- package/assets/manifest/ms-touch-icon-144x144-precomposed.png +0 -0
- package/assets/manifest.json +27 -0
- package/client/actions/main.js +1 -0
- package/client/bootstrap.js +91 -0
- package/client/index.js +1 -0
- package/client/pages/main.js +38 -0
- package/client/reducers/main.js +17 -0
- package/client/route.js +10 -0
- package/client/themes/app-theme.css +142 -0
- package/config/config.development.js +3 -0
- package/config/config.production.js +37 -0
- package/dist-server/controllers/index.js +1 -0
- package/dist-server/controllers/index.js.map +1 -0
- package/dist-server/index.js +20 -0
- package/dist-server/index.js.map +1 -0
- package/dist-server/middlewares/index.js +8 -0
- package/dist-server/middlewares/index.js.map +1 -0
- package/dist-server/migrations/index.js +12 -0
- package/dist-server/migrations/index.js.map +1 -0
- package/dist-server/routes.js +25 -0
- package/dist-server/routes.js.map +1 -0
- package/installer/config.production.js +40 -0
- package/installer/docker-compose.yml +37 -0
- package/installer/install.sh +54 -0
- package/installer/migrate.sh +1 -0
- package/installer/start.sh +18 -0
- package/installer/stop.sh +1 -0
- package/installer/upgrade.sh +1 -0
- package/openapi/unstable.yaml +41 -0
- package/package.json +81 -0
- package/server/controllers/index.ts +0 -0
- package/server/index.ts +4 -0
- package/server/middlewares/index.ts +3 -0
- package/server/migrations/index.ts +9 -0
- package/server/routes.ts +28 -0
- package/things-factory.config.js +13 -0
- package/translations/en.json +1 -0
- package/translations/ko.json +1 -0
- package/translations/ms.json +1 -0
- package/translations/zh.json +1 -0
- package/tsconfig.json +9 -0
- package/views/auth-page.html +93 -0
- package/views/public/home.html +83 -0
package/CHANGELOG.md
ADDED
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
# Changelog
|
|
2
|
+
|
|
3
|
+
All notable changes to this project will be documented in this file.
|
|
4
|
+
|
|
5
|
+
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
|
|
6
|
+
and adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
|
|
7
|
+
|
|
8
|
+
<!-- ## [Unreleased] -->
|
package/Dockerfile
ADDED
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
# Use an official ubuntu image
|
|
2
|
+
FROM ubuntu:18.04
|
|
3
|
+
|
|
4
|
+
# Use an official node image
|
|
5
|
+
FROM node:12.20.2
|
|
6
|
+
|
|
7
|
+
ARG DEBIAN_FRONTEND=noninteractive
|
|
8
|
+
|
|
9
|
+
# Install the required packages
|
|
10
|
+
RUN apt-get update -o Acquire::CompressionTypes::Order::=gz
|
|
11
|
+
RUN apt-get upgrade -y
|
|
12
|
+
|
|
13
|
+
RUN echo "deb http://ftp.de.debian.org/debian stable main" > /etc/apt/sources.list
|
|
14
|
+
|
|
15
|
+
RUN apt-get update
|
|
16
|
+
|
|
17
|
+
RUN apt-get install -y --no-install-recommends apt-utils
|
|
18
|
+
RUN apt-get install -y chromium
|
|
19
|
+
RUN apt-get install -y libcups2-dev
|
|
20
|
+
RUN apt-get install -y libavahi-compat-libdnssd-dev
|
|
21
|
+
RUN apt-get install -y gconf-service libasound2 libatk1.0-0 libcairo2 libcups2 libfontconfig1 libgdk-pixbuf2.0-0 libgtk-3-0 libnspr4 libpango-1.0-0 libxss1 fonts-liberation libnss3 lsb-release xdg-utils libaio1
|
|
22
|
+
|
|
23
|
+
RUN apt update
|
|
24
|
+
RUN apt-get install -y ghostscript
|
|
25
|
+
RUN apt-get install -y curl
|
|
26
|
+
RUN apt-get install -y git
|
|
27
|
+
|
|
28
|
+
# install chrome
|
|
29
|
+
RUN wget https://dl.google.com/linux/direct/google-chrome-stable_current_amd64.deb
|
|
30
|
+
RUN dpkg -i google-chrome-stable_current_amd64.deb; apt-get -fy install
|
|
31
|
+
RUN rm google-chrome-stable_current_amd64.deb
|
|
32
|
+
|
|
33
|
+
|
|
34
|
+
|
|
35
|
+
# make oracle path
|
|
36
|
+
RUN mkdir -p /opt/oracle
|
|
37
|
+
WORKDIR /opt/oracle
|
|
38
|
+
|
|
39
|
+
# download newest oracle cilent for connect to Oracle Database
|
|
40
|
+
RUN wget https://download.oracle.com/otn_software/linux/instantclient/instantclient-basiclite-linuxx64.zip && \
|
|
41
|
+
unzip instantclient-basiclite-linuxx64.zip && \
|
|
42
|
+
rm -f instantclient-basiclite-linuxx64.zip && \
|
|
43
|
+
cd /opt/oracle/instantclient* && \
|
|
44
|
+
rm -f *jdbc* *occi* *mysql* *mql1* *ipc1* *jar uidrvci genezi adrci && \
|
|
45
|
+
echo /opt/oracle/instantclient* > /etc/ld.so.conf.d/oracle-instantclient.conf &&\
|
|
46
|
+
ldconfig
|
|
47
|
+
|
|
48
|
+
# Set the working directory to /app
|
|
49
|
+
WORKDIR /app
|
|
50
|
+
|
|
51
|
+
# copy application & configuration files
|
|
52
|
+
COPY . .
|
|
53
|
+
|
|
54
|
+
# run node install command
|
|
55
|
+
RUN yarn install
|
|
56
|
+
|
|
57
|
+
# Make port 3000 available to the world outside this container
|
|
58
|
+
EXPOSE 3000
|
|
59
|
+
|
|
60
|
+
CMD [ "yarn", "run", "serve" ]
|
package/LICENSE.md
ADDED
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
MIT License
|
|
2
|
+
|
|
3
|
+
Copyright (c) Hatiolab
|
|
4
|
+
|
|
5
|
+
Permission is hereby granted, free of charge, to any person obtaining a copy
|
|
6
|
+
of this software and associated documentation files (the "Software"), to deal
|
|
7
|
+
in the Software without restriction, including without limitation the rights
|
|
8
|
+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
|
9
|
+
copies of the Software, and to permit persons to whom the Software is
|
|
10
|
+
furnished to do so, subject to the following conditions:
|
|
11
|
+
|
|
12
|
+
The above copyright notice and this permission notice shall be included in all
|
|
13
|
+
copies or substantial portions of the Software.
|
|
14
|
+
|
|
15
|
+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
|
16
|
+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
|
17
|
+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
|
18
|
+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
|
19
|
+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
|
20
|
+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
|
21
|
+
SOFTWARE.
|
package/_index.html
ADDED
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en">
|
|
3
|
+
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="utf-8" />
|
|
6
|
+
<title>Operato Gangsters</title>
|
|
7
|
+
<meta name="generator" content="Things Factory Starter Kit" />
|
|
8
|
+
<meta name="viewport" content="width=device-width, initial-scale=1" />
|
|
9
|
+
<meta name="description" content="Reimagining Software" />
|
|
10
|
+
|
|
11
|
+
<base href="/" />
|
|
12
|
+
|
|
13
|
+
<link rel="icon" href="/assets/favicon.ico" />
|
|
14
|
+
|
|
15
|
+
<!-- See https://goo.gl/OOhYW5 -->
|
|
16
|
+
<link rel="manifest" href="/assets/manifest.json" />
|
|
17
|
+
|
|
18
|
+
<!-- See https://goo.gl/qRE0vM -->
|
|
19
|
+
<meta name="theme-color" content="#22a6a7" />
|
|
20
|
+
|
|
21
|
+
<!-- Add to homescreen for Chrome on Android. Fallback for manifest.json -->
|
|
22
|
+
<meta name="mobile-web-app-capable" content="yes" />
|
|
23
|
+
<meta name="application-name" content="Operato Gangsters" />
|
|
24
|
+
<meta name="application-description" content="Reimagining Software" />
|
|
25
|
+
<meta name="application-copyright" content="Copyright © hatiolab.com. All Rights Reserved." />
|
|
26
|
+
<link rel="application-icon" href="/assets/manifest/icon-96x96.png" />
|
|
27
|
+
|
|
28
|
+
<!-- Add to homescreen for Safari on iOS -->
|
|
29
|
+
<meta name="apple-mobile-web-app-capable" content="yes" />
|
|
30
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="default" />
|
|
31
|
+
<meta name="apple-mobile-web-app-title" content="Operato Gangsters" />
|
|
32
|
+
|
|
33
|
+
<!-- Homescreen icons -->
|
|
34
|
+
<link rel="apple-touch-icon" href="/assets/manifest/icon-48x48.png" />
|
|
35
|
+
<link rel="apple-touch-icon" sizes="72x72" href="/assets/manifest/icon-72x72.png" />
|
|
36
|
+
<link rel="apple-touch-icon" sizes="96x96" href="/assets/manifest/icon-96x96.png" />
|
|
37
|
+
<link rel="apple-touch-icon" sizes="144x144" href="/assets/manifest/icon-144x144.png" />
|
|
38
|
+
<link rel="apple-touch-icon" sizes="192x192" href="/assets/manifest/icon-192x192.png" />
|
|
39
|
+
|
|
40
|
+
<!-- Tile icon for Windows 8 (144x144 + tile color) -->
|
|
41
|
+
<meta name="msapplication-TileImage" content="/assets/manifest/icon-144x144.png" />
|
|
42
|
+
<meta name="msapplication-TileColor" content="#3f51b5" />
|
|
43
|
+
<meta name="msapplication-tap-highlight" content="no" />
|
|
44
|
+
|
|
45
|
+
<!-- Default twitter cards -->
|
|
46
|
+
<meta name="twitter:card" content="summary" />
|
|
47
|
+
<meta name="twitter:site" content="@username" />
|
|
48
|
+
<meta property="og:type" content="website" />
|
|
49
|
+
<meta property="og:site_name" content="Operato Gangsters, Reimagining Software." />
|
|
50
|
+
<meta property="og:image" content="/assets/manifest/image-metaog.png" />
|
|
51
|
+
|
|
52
|
+
<!-- Performance tip: hint to the browser to start the handshake for the fonts site -->
|
|
53
|
+
<link rel="preconnect" href="https://fonts.gstatic.com/" crossorigin />
|
|
54
|
+
<link rel="stylesheet" href="https://fonts.googleapis.com/css?family=Material+Icons&display=block" />
|
|
55
|
+
|
|
56
|
+
<!-- Add any global styles for body, document, etc. -->
|
|
57
|
+
<style>
|
|
58
|
+
body {
|
|
59
|
+
margin: 0;
|
|
60
|
+
padding: 0;
|
|
61
|
+
overflow: hidden;
|
|
62
|
+
|
|
63
|
+
/* This is a font-stack that tries to use the system-default sans-serifs first */
|
|
64
|
+
font-family: Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';
|
|
65
|
+
line-height: 1.5;
|
|
66
|
+
-webkit-font-smoothing: antialiased;
|
|
67
|
+
}
|
|
68
|
+
</style>
|
|
69
|
+
|
|
70
|
+
<script>
|
|
71
|
+
if ('serviceWorker' in navigator) {
|
|
72
|
+
navigator.serviceWorker.register('/service-worker.js', {
|
|
73
|
+
scope: '/'
|
|
74
|
+
})
|
|
75
|
+
}
|
|
76
|
+
</script>
|
|
77
|
+
</head>
|
|
78
|
+
|
|
79
|
+
<body>
|
|
80
|
+
<things-app></things-app>
|
|
81
|
+
<noscript>
|
|
82
|
+
Please enable JavaScript to view this website.
|
|
83
|
+
</noscript>
|
|
84
|
+
<!-- Load webcomponents-loader.js to check and load any polyfills your browser needs -->
|
|
85
|
+
<script src="node_modules/@webcomponents/webcomponentsjs/webcomponents-loader.js"></script>
|
|
86
|
+
<script src="node_modules/web-animations-js/web-animations-next.min.js"></script>
|
|
87
|
+
<script src="node_modules/@hatiolab/things-scene/things-scene-min.js"></script>
|
|
88
|
+
<!-- Built with love using PWA Starter Kit -->
|
|
89
|
+
</body>
|
|
90
|
+
|
|
91
|
+
</html>
|
|
Binary file
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
# Operato Gangsters
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
@@ -0,0 +1,27 @@
|
|
|
1
|
+
{
|
|
2
|
+
"name": "Operato Gangsters",
|
|
3
|
+
"short_name": "Operato Gangsters",
|
|
4
|
+
"description": "Operato Gangsters",
|
|
5
|
+
"icons": [
|
|
6
|
+
{
|
|
7
|
+
"src": "manifest/icon-192x192.png",
|
|
8
|
+
"sizes": "192x192",
|
|
9
|
+
"type": "image/png"
|
|
10
|
+
},
|
|
11
|
+
{
|
|
12
|
+
"src": "manifest/icon-512x512.png",
|
|
13
|
+
"sizes": "512x512",
|
|
14
|
+
"type": "image/png"
|
|
15
|
+
},
|
|
16
|
+
{
|
|
17
|
+
"src": "manifest/maskable_icon.png",
|
|
18
|
+
"sizes": "682x682",
|
|
19
|
+
"type": "image/png",
|
|
20
|
+
"purpose": "maskable"
|
|
21
|
+
}
|
|
22
|
+
],
|
|
23
|
+
"start_url": "/",
|
|
24
|
+
"display": "standalone",
|
|
25
|
+
"theme_color": "#3f51b5",
|
|
26
|
+
"background_color": "#3f51b5"
|
|
27
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export const UPDATE_OPERATO_GANGSTERS = 'UPDATE_OPERATO_GANGSTERS'
|
|
@@ -0,0 +1,91 @@
|
|
|
1
|
+
import { html } from 'lit-html'
|
|
2
|
+
|
|
3
|
+
import { registerDefaultGroups } from '@operato/board/register-default-groups.js'
|
|
4
|
+
import { auth } from '@things-factory/auth-base'
|
|
5
|
+
import { setAuthManagementMenus } from '@things-factory/auth-ui'
|
|
6
|
+
import { setupMenuPart, updateMenuTemplate } from '@things-factory/lite-menu'
|
|
7
|
+
import { ADD_MORENDA } from '@things-factory/more-base'
|
|
8
|
+
import { navigate, store } from '@things-factory/shell'
|
|
9
|
+
|
|
10
|
+
console.log(
|
|
11
|
+
`%c
|
|
12
|
+
▄▄ ▄▄▄ ▄▄▄ ▄▄▄ ▄▄ ▄▄▄ ▄▄ ▄▄▄▄▄ ▄▄▄ ▄▄▄
|
|
13
|
+
▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▀
|
|
14
|
+
▓ ▓ ▓▀▀ ▓▀▀ ▓▀▀▄ ▓▀▀▓ ▓ ▓ ▓ ▀▀ ▓▀▀▀ ▓ ▀▀▄▄
|
|
15
|
+
▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▓ ▄ ▓
|
|
16
|
+
▀▀ ▀ ▀▀▀ ▀ ▀ ▀ ▀ ▀ ▀▀ ▀▀▀▀▀ ▀▀▀ ▀▀▀
|
|
17
|
+
`,
|
|
18
|
+
'background: #222; color: #bada55'
|
|
19
|
+
)
|
|
20
|
+
|
|
21
|
+
export default function bootstrap() {
|
|
22
|
+
setupMenuPart({ hovering: true })
|
|
23
|
+
updateMenuTemplate([])
|
|
24
|
+
|
|
25
|
+
/* set board-modeller group and default templates */
|
|
26
|
+
registerDefaultGroups()
|
|
27
|
+
|
|
28
|
+
/* set auth management menus into more-panel */
|
|
29
|
+
auth.on('profile', async ({ credential }) => {
|
|
30
|
+
setAuthManagementMenus(credential)
|
|
31
|
+
})
|
|
32
|
+
|
|
33
|
+
auth.on('profile', async ({ credential }) => {
|
|
34
|
+
if (credential.owner) {
|
|
35
|
+
store.dispatch({
|
|
36
|
+
type: ADD_MORENDA,
|
|
37
|
+
morenda: {
|
|
38
|
+
icon: html` <mwc-icon>device_hub</mwc-icon> `,
|
|
39
|
+
name: html` <i18n-msg msgid="text.connection"></i18n-msg> `,
|
|
40
|
+
action: () => {
|
|
41
|
+
navigate('connection')
|
|
42
|
+
}
|
|
43
|
+
}
|
|
44
|
+
})
|
|
45
|
+
|
|
46
|
+
store.dispatch({
|
|
47
|
+
type: ADD_MORENDA,
|
|
48
|
+
morenda: {
|
|
49
|
+
icon: html` <mwc-icon>format_list_numbered</mwc-icon> `,
|
|
50
|
+
name: html` <i18n-msg msgid="text.scenario"></i18n-msg> `,
|
|
51
|
+
action: () => {
|
|
52
|
+
navigate('scenario')
|
|
53
|
+
}
|
|
54
|
+
}
|
|
55
|
+
})
|
|
56
|
+
|
|
57
|
+
store.dispatch({
|
|
58
|
+
type: ADD_MORENDA,
|
|
59
|
+
morenda: {
|
|
60
|
+
icon: html` <mwc-icon>vpn_key</mwc-icon> `,
|
|
61
|
+
name: html` <i18n-msg msgid="text.oauth2-clients"></i18n-msg> `,
|
|
62
|
+
action: () => {
|
|
63
|
+
navigate('oauth2-clients')
|
|
64
|
+
}
|
|
65
|
+
}
|
|
66
|
+
})
|
|
67
|
+
}
|
|
68
|
+
|
|
69
|
+
store.dispatch({
|
|
70
|
+
type: ADD_MORENDA,
|
|
71
|
+
morenda: {
|
|
72
|
+
icon: html` <mwc-icon>extension</mwc-icon> `,
|
|
73
|
+
name: html` <i18n-msg msgid="text.api-sandbox"></i18n-msg> `,
|
|
74
|
+
action: () => {
|
|
75
|
+
navigate('api-swagger')
|
|
76
|
+
}
|
|
77
|
+
}
|
|
78
|
+
})
|
|
79
|
+
|
|
80
|
+
store.dispatch({
|
|
81
|
+
type: ADD_MORENDA,
|
|
82
|
+
morenda: {
|
|
83
|
+
icon: html` <mwc-icon>help</mwc-icon> `,
|
|
84
|
+
name: html` <i18n-msg msgid="text.help"></i18n-msg> `,
|
|
85
|
+
action: () => {
|
|
86
|
+
navigate('help')
|
|
87
|
+
}
|
|
88
|
+
}
|
|
89
|
+
})
|
|
90
|
+
})
|
|
91
|
+
}
|
package/client/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './actions/main'
|
|
@@ -0,0 +1,38 @@
|
|
|
1
|
+
import { html, css } from 'lit-element'
|
|
2
|
+
import { connect } from 'pwa-helpers/connect-mixin.js'
|
|
3
|
+
import { store, PageView } from '@things-factory/shell'
|
|
4
|
+
|
|
5
|
+
import logo from '../../assets/images/hatiolab-logo.png'
|
|
6
|
+
|
|
7
|
+
class OperatoGangstersMain extends connect(store)(PageView) {
|
|
8
|
+
static get styles() {
|
|
9
|
+
return [
|
|
10
|
+
css`
|
|
11
|
+
:host {
|
|
12
|
+
display: flex;
|
|
13
|
+
}
|
|
14
|
+
`
|
|
15
|
+
]
|
|
16
|
+
}
|
|
17
|
+
|
|
18
|
+
static get properties() {
|
|
19
|
+
return {
|
|
20
|
+
operatoGangsters: String
|
|
21
|
+
}
|
|
22
|
+
}
|
|
23
|
+
|
|
24
|
+
render() {
|
|
25
|
+
return html`
|
|
26
|
+
<section>
|
|
27
|
+
<h2>OperatoGangsters</h2>
|
|
28
|
+
<img src=${logo} />
|
|
29
|
+
</section>
|
|
30
|
+
`
|
|
31
|
+
}
|
|
32
|
+
|
|
33
|
+
stateChanged(state) {
|
|
34
|
+
//this.operatoGangsters = state.operatoGangsters.state_main
|
|
35
|
+
}
|
|
36
|
+
}
|
|
37
|
+
|
|
38
|
+
window.customElements.define('operato-gangsters-main', OperatoGangstersMain)
|
|
@@ -0,0 +1,17 @@
|
|
|
1
|
+
import { UPDATE_OPERATO_GANGSTERS } from '../actions/main'
|
|
2
|
+
|
|
3
|
+
const INITIAL_STATE = {
|
|
4
|
+
operatoGangsters: 'ABC'
|
|
5
|
+
}
|
|
6
|
+
|
|
7
|
+
const operatoGangsters = (state = INITIAL_STATE, action) => {
|
|
8
|
+
switch (action.type) {
|
|
9
|
+
case UPDATE_OPERATO_GANGSTERS:
|
|
10
|
+
return { ...state }
|
|
11
|
+
|
|
12
|
+
default:
|
|
13
|
+
return state
|
|
14
|
+
}
|
|
15
|
+
}
|
|
16
|
+
|
|
17
|
+
export default operatoGangsters
|
package/client/route.js
ADDED
|
@@ -0,0 +1,142 @@
|
|
|
1
|
+
body {
|
|
2
|
+
/* theme color */
|
|
3
|
+
--primary-color-rgb: 34, 166, 167;
|
|
4
|
+
--primary-color: rgb(var(--primary-color-rgb));
|
|
5
|
+
--secondary-color-rgb: 57, 78, 100;
|
|
6
|
+
--secondary-color: rgb(var(--secondary-color-rgb));
|
|
7
|
+
--focus-color: var(--theme-white-color);
|
|
8
|
+
--primary-background-color: var(--secondary-color);
|
|
9
|
+
--secondary-background-color: #283644;
|
|
10
|
+
--main-section-background-color: #f4f7fb;
|
|
11
|
+
--theme-white-color: #fff;
|
|
12
|
+
--theme-black-color: rgba(0, 0, 0, 0.9);
|
|
13
|
+
|
|
14
|
+
--focus-background-color: var(--primary-color);
|
|
15
|
+
--primary-text-color: #111;
|
|
16
|
+
--secondary-text-color: #017e7f;
|
|
17
|
+
|
|
18
|
+
--opacity-dark-color: rgba(0, 0, 0, 0.4);
|
|
19
|
+
--opacity-light-color: rgba(255, 255, 255, 0.8);
|
|
20
|
+
|
|
21
|
+
/* status color */
|
|
22
|
+
--status-success-color: #35a24a;
|
|
23
|
+
--status-warning-color: #ee8d03;
|
|
24
|
+
--status-danger-color: #d14946;
|
|
25
|
+
--status-info-color: #398ace;
|
|
26
|
+
|
|
27
|
+
/* common style */
|
|
28
|
+
--border-radius: 4px;
|
|
29
|
+
--border-dark-color: 1px solid rgba(0, 0, 0, 0.15);
|
|
30
|
+
--border-light-color: 1px solid rgba(255, 255, 255, 0.3);
|
|
31
|
+
|
|
32
|
+
--box-shadow: 2px 2px 3px 0px rgba(0, 0, 0, 0.1);
|
|
33
|
+
|
|
34
|
+
--theme-font: 'Noto', Helvetica;
|
|
35
|
+
|
|
36
|
+
--margin-default: 9px;
|
|
37
|
+
--margin-narrow: 4px;
|
|
38
|
+
--margin-wide: 15px;
|
|
39
|
+
--padding-default: var(--margin-default);
|
|
40
|
+
--padding-narrow: var(--margin-narrow);
|
|
41
|
+
--padding-wide: var(--margin-wide);
|
|
42
|
+
|
|
43
|
+
--scrollbar-thumb-color: rgba(57, 78, 100, 0.5);
|
|
44
|
+
--scrollbar-thumb-hover-color: var(--primary-color);
|
|
45
|
+
|
|
46
|
+
--fontsize-default: 14px;
|
|
47
|
+
--fontsize-small: 13px;
|
|
48
|
+
--fontsize-large: 16px;
|
|
49
|
+
|
|
50
|
+
/* app layout style */
|
|
51
|
+
--app-grid-template-area: 'header header header' 'nav main aside' 'nav footer aside';
|
|
52
|
+
|
|
53
|
+
/* title & description style */
|
|
54
|
+
--title-margin: var(--margin-narrow) 0;
|
|
55
|
+
--title-font: bold 24px var(--theme-font);
|
|
56
|
+
--title-text-color: var(--secondary-color);
|
|
57
|
+
--title-font-mobile: bold 20px var(--theme-font);
|
|
58
|
+
|
|
59
|
+
--page-description-margin: var(--margin-narrow) 0 var(--margin-wide) 0;
|
|
60
|
+
--page-description-font: normal var(--fontsize-default) / 1.2rem var(--theme-font);
|
|
61
|
+
--page-description-color: var(--secondary-text-color);
|
|
62
|
+
|
|
63
|
+
--subtitle-padding: 12px 5px 3px 5px;
|
|
64
|
+
--subtitle-font: bold 18px var(--theme-font);
|
|
65
|
+
--subtitle-text-color: var(--primary-color);
|
|
66
|
+
--subtitle-border-bottom: 1px solid var(--primary-color);
|
|
67
|
+
|
|
68
|
+
/* icon style */
|
|
69
|
+
--icon-tiny-size: 24px;
|
|
70
|
+
--icon-default-size: 36px;
|
|
71
|
+
--icon-big-size: 48px;
|
|
72
|
+
--icon-default-color: var(--theme-white-color);
|
|
73
|
+
|
|
74
|
+
/* material design component themes */
|
|
75
|
+
--mdc-theme-on-primary: var(--theme-white-color);
|
|
76
|
+
--mdc-theme-primary: var(--secondary-text-color);
|
|
77
|
+
--mdc-theme-on-secondary: var(--theme-white-color);
|
|
78
|
+
--mdc-theme-secondary: var(--primary-color);
|
|
79
|
+
--mdc-button-outline-color: var(--primary-color);
|
|
80
|
+
--mdc-danger-button-primary-color: var(--status-danger-color);
|
|
81
|
+
--mdc-danger-button-outline-color: var(--status-danger-color);
|
|
82
|
+
--mdc-button-outline-width: 1px;
|
|
83
|
+
--mdc-button-horizontal-padding: 16px;
|
|
84
|
+
|
|
85
|
+
/* button style */
|
|
86
|
+
--button-background-color: #fafbfc;
|
|
87
|
+
--button-background-focus-color: var(--primary-color);
|
|
88
|
+
--button-border: var(--border-dark-color);
|
|
89
|
+
--button-border-radius: var(--border-radius);
|
|
90
|
+
--button-margin: var(--margin-default) var(--margin-default) var(--margin-default) 0;
|
|
91
|
+
--button-padding: var(--padding-default);
|
|
92
|
+
--button-color: var(--secondary-color);
|
|
93
|
+
--button-font: normal 15px var(--theme-font);
|
|
94
|
+
--button-text-transform: capitalize;
|
|
95
|
+
--button-active-box-shadow: 1px 1px 1px 0px rgba(0, 0, 0, 0.2);
|
|
96
|
+
--button-activ-border: 1px solid var(--primary-color);
|
|
97
|
+
|
|
98
|
+
--button-primary-background-color: var(--primary-color);
|
|
99
|
+
--button-primary-active-background-color: var(--status-success-color);
|
|
100
|
+
--button-primary-padding: var(--margin-default) var(--margin-wide);
|
|
101
|
+
--button-primary-color: var(--theme-white-color);
|
|
102
|
+
--button-primary-font: bold 16px var(--theme-font);
|
|
103
|
+
|
|
104
|
+
/* table style */
|
|
105
|
+
--th-padding: var(--padding-default) 0 var(--padding-default) var(--padding-default);
|
|
106
|
+
--th-border-top: 2px solid var(--secondary-color);
|
|
107
|
+
--th-text-transform: capitalize;
|
|
108
|
+
--th-font: bold var(--fontsize-small) var(--theme-font);
|
|
109
|
+
--th-color: rgba(var(--secondary-color-rgb), 0.8);
|
|
110
|
+
|
|
111
|
+
--tr-background-color: var(--theme-white-color);
|
|
112
|
+
--tr-background-odd-color: rgba(255, 255, 255, 0.4);
|
|
113
|
+
--tr-background-hover-color: #e1f5fe;
|
|
114
|
+
--td-border-bottom: 1px solid rgba(0, 0, 0, 0.09);
|
|
115
|
+
--td-padding: var(--padding-default);
|
|
116
|
+
--td-font: normal 13px var(--theme-font);
|
|
117
|
+
--td-color: var(--secondary-color);
|
|
118
|
+
|
|
119
|
+
/* form style */
|
|
120
|
+
--label-font: normal var(--fontsize-default) var(--theme-font);
|
|
121
|
+
--label-color: var(--secondary-color);
|
|
122
|
+
--label-text-transform: capitalize;
|
|
123
|
+
--input-margin: var(--margin-narrow) 0;
|
|
124
|
+
--input-padding: var(--padding-default);
|
|
125
|
+
--input-min-width: 200px;
|
|
126
|
+
--input-font: normal var(--fontsize-default) var(--theme-font);
|
|
127
|
+
--input-hint-font: normal var(--fontsize-small) var(--theme-font);
|
|
128
|
+
--input-hint-color: #666;
|
|
129
|
+
--input-container-max-width: 900px;
|
|
130
|
+
--fieldset-margin: var(--padding-wide) 0;
|
|
131
|
+
--fieldset-padding: 0 var(--padding-wide) var(--padding-wide) var(--padding-wide);
|
|
132
|
+
--legend-padding: var(--padding-default) 0;
|
|
133
|
+
--legend-color: var(--secondary-text-color);
|
|
134
|
+
--legend-font: bold 16px var(--theme-font);
|
|
135
|
+
}
|
|
136
|
+
|
|
137
|
+
@media only screen and (max-width: 460px) {
|
|
138
|
+
body {
|
|
139
|
+
/* subtitle style */
|
|
140
|
+
--subtitle-margin: 0;
|
|
141
|
+
}
|
|
142
|
+
}
|
|
@@ -0,0 +1,37 @@
|
|
|
1
|
+
module.exports = {
|
|
2
|
+
subdomain: "system",
|
|
3
|
+
email: {
|
|
4
|
+
host: 'smtp.office365.com', // your sender-email smtp host
|
|
5
|
+
port: 587, // smtp server port
|
|
6
|
+
secure: false, // true for 465, false for other ports
|
|
7
|
+
auth: {
|
|
8
|
+
user: 'your sender-email',
|
|
9
|
+
pass: 'your sender-email password' // generated ethereal password
|
|
10
|
+
},
|
|
11
|
+
secureConnection: false,
|
|
12
|
+
tls: {
|
|
13
|
+
ciphers: 'SSLv3'
|
|
14
|
+
}
|
|
15
|
+
},
|
|
16
|
+
logger: {
|
|
17
|
+
file: {
|
|
18
|
+
filename: 'logs/application-%DATE%.log',
|
|
19
|
+
datePattern: 'YYYY-MM-DD-HH',
|
|
20
|
+
zippedArchive: false,
|
|
21
|
+
maxSize: '20m',
|
|
22
|
+
maxFiles: '2d',
|
|
23
|
+
level: 'info'
|
|
24
|
+
},
|
|
25
|
+
console: {
|
|
26
|
+
level: 'silly'
|
|
27
|
+
}
|
|
28
|
+
},
|
|
29
|
+
ormconfig: {
|
|
30
|
+
name: 'default',
|
|
31
|
+
type: 'sqlite',
|
|
32
|
+
database: 'db.sqlite',
|
|
33
|
+
synchronize: false,
|
|
34
|
+
logging: true,
|
|
35
|
+
logger: 'debug'
|
|
36
|
+
}
|
|
37
|
+
}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/controllers/index.ts"],"names":[],"mappings":""}
|
|
@@ -0,0 +1,20 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
var __createBinding = (this && this.__createBinding) || (Object.create ? (function(o, m, k, k2) {
|
|
3
|
+
if (k2 === undefined) k2 = k;
|
|
4
|
+
var desc = Object.getOwnPropertyDescriptor(m, k);
|
|
5
|
+
if (!desc || ("get" in desc ? !m.__esModule : desc.writable || desc.configurable)) {
|
|
6
|
+
desc = { enumerable: true, get: function() { return m[k]; } };
|
|
7
|
+
}
|
|
8
|
+
Object.defineProperty(o, k2, desc);
|
|
9
|
+
}) : (function(o, m, k, k2) {
|
|
10
|
+
if (k2 === undefined) k2 = k;
|
|
11
|
+
o[k2] = m[k];
|
|
12
|
+
}));
|
|
13
|
+
var __exportStar = (this && this.__exportStar) || function(m, exports) {
|
|
14
|
+
for (var p in m) if (p !== "default" && !Object.prototype.hasOwnProperty.call(exports, p)) __createBinding(exports, m, p);
|
|
15
|
+
};
|
|
16
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
17
|
+
__exportStar(require("./migrations"), exports);
|
|
18
|
+
__exportStar(require("./middlewares"), exports);
|
|
19
|
+
require("./routes");
|
|
20
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../server/index.ts"],"names":[],"mappings":";;;;;;;;;;;;;;;;AAAA,+CAA4B;AAC5B,gDAA6B;AAE7B,oBAAiB"}
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
"use strict";
|
|
2
|
+
Object.defineProperty(exports, "__esModule", { value: true });
|
|
3
|
+
exports.initMiddlewares = void 0;
|
|
4
|
+
function initMiddlewares(app) {
|
|
5
|
+
/* can add middlewares into app */
|
|
6
|
+
}
|
|
7
|
+
exports.initMiddlewares = initMiddlewares;
|
|
8
|
+
//# sourceMappingURL=index.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":["../../server/middlewares/index.ts"],"names":[],"mappings":";;;AAAA,SAAgB,eAAe,CAAC,GAAG;IACjC,kCAAkC;AACpC,CAAC;AAFD,0CAEC"}
|