underpost 2.6.3 → 2.7.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.
- package/.dockerignore +13 -13
- package/.env.development +7 -7
- package/.env.production +7 -7
- package/.env.test +7 -7
- package/.github/workflows/publish.yml +26 -0
- package/.nycrc +9 -9
- package/.prettierignore +12 -12
- package/.prettierrc +9 -9
- package/.vscode/extensions.json +72 -72
- package/.vscode/settings.json +100 -99
- package/AUTHORS.md +10 -0
- package/CHANGELOG.md +91 -0
- package/Dockerfile +89 -89
- package/LICENSE +21 -21
- package/README.md +96 -96
- package/bin/db.js +172 -119
- package/bin/deploy.js +582 -626
- package/bin/dns.js +1 -1
- package/bin/file.js +92 -92
- package/bin/index.js +53 -34
- package/bin/install.js +398 -357
- package/bin/shortcut.js +44 -44
- package/bin/ssl.js +65 -61
- package/bin/util.js +182 -182
- package/bin/vs.js +35 -35
- package/conf.js +251 -249
- package/docker-compose.yml +67 -67
- package/jsconfig.json +7 -7
- package/jsdoc.json +32 -32
- package/nodemon.json +6 -6
- package/package.json +137 -128
- package/prometheus.yml +36 -36
- package/setup.sh +24 -24
- package/src/api/core/core.controller.js +69 -69
- package/src/api/core/core.model.js +11 -11
- package/src/api/core/core.router.js +23 -23
- package/src/api/core/core.service.js +29 -29
- package/src/api/crypto/crypto.controller.js +51 -51
- package/src/api/crypto/crypto.model.js +23 -23
- package/src/api/crypto/crypto.router.js +20 -20
- package/src/api/crypto/crypto.service.js +64 -64
- package/src/api/default/default.controller.js +69 -69
- package/src/api/default/default.model.js +20 -20
- package/src/api/default/default.router.js +23 -23
- package/src/api/default/default.service.js +31 -31
- package/src/api/file/file.controller.js +53 -51
- package/src/api/file/file.model.js +19 -19
- package/src/api/file/file.router.js +21 -20
- package/src/api/file/file.service.js +76 -70
- package/src/api/instance/instance.controller.js +69 -69
- package/src/api/instance/instance.model.js +36 -36
- package/src/api/instance/instance.router.js +33 -33
- package/src/api/instance/instance.service.js +48 -48
- package/src/api/test/test.controller.js +59 -59
- package/src/api/test/test.model.js +14 -14
- package/src/api/test/test.router.js +21 -21
- package/src/api/test/test.service.js +35 -35
- package/src/api/user/user.build.js +16 -0
- package/src/api/user/user.controller.js +70 -70
- package/src/api/user/user.model.js +65 -65
- package/src/api/user/user.router.js +345 -345
- package/src/api/user/user.service.js +479 -479
- package/src/api.js +23 -23
- package/src/client/Default.index.js +40 -40
- package/src/client/components/core/Account.js +290 -290
- package/src/client/components/core/AgGrid.js +160 -160
- package/src/client/components/core/Auth.js +19 -19
- package/src/client/components/core/Badge.js +32 -32
- package/src/client/components/core/BlockChain.js +41 -41
- package/src/client/components/core/Blog.js +9 -9
- package/src/client/components/core/BtnIcon.js +101 -94
- package/src/client/components/core/CalendarCore.js +458 -319
- package/src/client/components/core/Chat.js +64 -64
- package/src/client/components/core/ColorPalette.js +5267 -5267
- package/src/client/components/core/CommonJs.js +735 -732
- package/src/client/components/core/Content.js +193 -49
- package/src/client/components/core/Css.js +1064 -1027
- package/src/client/components/core/CssCore.js +817 -796
- package/src/client/components/core/D3Chart.js +44 -44
- package/src/client/components/core/Docs.js +229 -229
- package/src/client/components/core/DropDown.js +164 -164
- package/src/client/components/core/EventsUI.js +46 -54
- package/src/client/components/core/FileExplorer.js +699 -624
- package/src/client/components/core/FullScreen.js +45 -45
- package/src/client/components/core/Input.js +346 -259
- package/src/client/components/core/JoyStick.js +77 -77
- package/src/client/components/core/Keyboard.js +73 -73
- package/src/client/components/core/LoadingAnimation.js +179 -157
- package/src/client/components/core/LogIn.js +187 -181
- package/src/client/components/core/LogOut.js +58 -52
- package/src/client/components/core/Logger.js +26 -26
- package/src/client/components/core/Modal.js +1612 -1596
- package/src/client/components/core/NotificationManager.js +84 -84
- package/src/client/components/core/Panel.js +613 -413
- package/src/client/components/core/PanelForm.js +468 -0
- package/src/client/components/core/Polyhedron.js +162 -162
- package/src/client/components/core/Recover.js +204 -204
- package/src/client/components/core/Responsive.js +53 -53
- package/src/client/components/core/RichText.js +51 -27
- package/src/client/components/core/Router.js +76 -77
- package/src/client/components/core/Scroll.js +34 -0
- package/src/client/components/core/SignUp.js +125 -125
- package/src/client/components/core/SocketIo.js +72 -72
- package/src/client/components/core/Stream.js +113 -113
- package/src/client/components/core/ToggleSwitch.js +87 -87
- package/src/client/components/core/ToolTip.js +26 -26
- package/src/client/components/core/Translate.js +437 -408
- package/src/client/components/core/Validator.js +100 -100
- package/src/client/components/core/VanillaJs.js +460 -457
- package/src/client/components/core/Wallet.js +106 -106
- package/src/client/components/core/Webhook.js +25 -25
- package/src/client/components/core/Worker.js +272 -272
- package/src/client/components/default/CommonDefault.js +29 -29
- package/src/client/components/default/CssDefault.js +13 -13
- package/src/client/components/default/ElementsDefault.js +38 -38
- package/src/client/components/default/LogInDefault.js +41 -41
- package/src/client/components/default/LogOutDefault.js +28 -28
- package/src/client/components/default/MenuDefault.js +389 -389
- package/src/client/components/default/RoutesDefault.js +48 -48
- package/src/client/components/default/SettingsDefault.js +16 -16
- package/src/client/components/default/SignUpDefault.js +9 -9
- package/src/client/components/default/SocketIoDefault.js +54 -54
- package/src/client/components/default/TranslateDefault.js +7 -7
- package/src/client/public/default/assets/mailer/api-user-check.png +0 -0
- package/src/client/public/default/assets/mailer/api-user-invalid-token.png +0 -0
- package/src/client/public/default/assets/mailer/api-user-recover.png +0 -0
- package/src/client/public/default/browserconfig.xml +11 -11
- package/src/client/public/default/manifest.webmanifest +68 -68
- package/src/client/public/default/plantuml/client-conf.svg +1 -0
- package/src/client/public/default/plantuml/client-schema.svg +1 -0
- package/src/client/public/default/plantuml/cron-conf.svg +1 -0
- package/src/client/public/default/plantuml/cron-schema.svg +1 -0
- package/src/client/public/default/plantuml/server-conf.svg +1 -0
- package/src/client/public/default/plantuml/server-schema.svg +1 -0
- package/src/client/public/default/plantuml/ssr-conf.svg +1 -0
- package/src/client/public/default/plantuml/ssr-schema.svg +1 -0
- package/src/client/public/default/sitemap +147 -147
- package/src/client/public/default/yandex-browser-manifest.json +8 -8
- package/src/client/public/doc/sitemap +147 -147
- package/src/client/public/test/sitemap +147 -147
- package/src/client/services/core/core.service.js +170 -152
- package/src/client/services/crypto/crypto.service.js +70 -70
- package/src/client/services/default/default.management.js +345 -345
- package/src/client/services/default/default.service.js +89 -89
- package/src/client/services/file/file.service.js +70 -70
- package/src/client/services/instance/instance.management.js +74 -74
- package/src/client/services/instance/instance.service.js +89 -89
- package/src/client/services/test/test.service.js +70 -70
- package/src/client/services/user/user.management.js +50 -50
- package/src/client/services/user/user.service.js +89 -89
- package/src/client/ssr/Render.js +16 -16
- package/src/client/ssr/body-components/CacheControl.js +114 -113
- package/src/client/ssr/body-components/DefaultSplashScreen.js +79 -79
- package/src/client/ssr/email-components/DefaultRecoverEmail.js +21 -21
- package/src/client/ssr/email-components/DefaultVerifyEmail.js +17 -17
- package/src/client/ssr/head-components/Css.js +241 -241
- package/src/client/ssr/head-components/DefaultScripts.js +3 -3
- package/src/client/ssr/head-components/Microdata.js +11 -11
- package/src/client/ssr/head-components/Production.js +1 -1
- package/src/client/ssr/head-components/PwaDefault.js +59 -59
- package/src/client/ssr/head-components/Seo.js +14 -14
- package/src/client/sw/default.sw.js +201 -201
- package/src/client/sw/template.sw.js +84 -84
- package/src/client.build.js +22 -22
- package/src/client.dev.js +21 -21
- package/src/cron.js +25 -25
- package/src/db/DataBaseProvider.js +34 -34
- package/src/db/mariadb/MariaDB.js +33 -33
- package/src/db/mongo/MongooseDB.js +46 -46
- package/src/dns.js +22 -22
- package/src/index.js +42 -0
- package/src/mailer/EmailRender.js +69 -69
- package/src/mailer/MailerProvider.js +96 -96
- package/src/proxy.js +22 -22
- package/src/runtime/lampp/Lampp.js +69 -44
- package/src/runtime/nginx/Nginx.js +3 -3
- package/src/runtime/xampp/Xampp.js +49 -49
- package/src/server/auth.js +235 -204
- package/src/server/backup.js +101 -84
- package/src/server/client-build-live.js +72 -72
- package/src/server/client-build.js +705 -699
- package/src/server/client-dev-server.js +60 -58
- package/src/server/client-formatted.js +48 -48
- package/src/server/client-icons.js +149 -150
- package/src/server/conf.js +860 -611
- package/src/server/dns.js +98 -87
- package/src/server/downloader.js +42 -42
- package/src/server/logger.js +180 -135
- package/src/server/network.js +122 -122
- package/src/server/peer.js +33 -33
- package/src/server/process.js +66 -66
- package/src/server/prompt-optimizer.js +28 -0
- package/src/server/proxy.js +118 -118
- package/src/server/runtime.js +444 -393
- package/src/server/ssl.js +109 -107
- package/src/server.js +25 -25
- package/src/ws/IoInterface.js +45 -45
- package/src/ws/IoServer.js +39 -39
- package/src/ws/core/channels/core.ws.chat.js +23 -23
- package/src/ws/core/channels/core.ws.mailer.js +35 -35
- package/src/ws/core/channels/core.ws.stream.js +31 -31
- package/src/ws/core/core.ws.connection.js +28 -28
- package/src/ws/core/core.ws.emit.js +14 -14
- package/src/ws/core/core.ws.server.js +24 -24
- package/src/ws/core/management/core.ws.chat.js +8 -8
- package/src/ws/core/management/core.ws.mailer.js +16 -16
- package/src/ws/core/management/core.ws.stream.js +8 -8
- package/src/ws/default/channels/default.ws.main.js +16 -16
- package/src/ws/default/default.ws.connection.js +22 -22
- package/src/ws/default/default.ws.emit.js +14 -14
- package/src/ws/default/default.ws.server.js +20 -20
- package/src/ws/default/management/default.ws.main.js +8 -8
- package/startup.js +11 -11
- package/supervisord-openssh-server.conf +4 -4
- package/test/api.test.js +60 -60
- package/bin/help.js +0 -110
|
@@ -1,160 +1,160 @@
|
|
|
1
|
-
// https://www.ag-grid.com/javascript-data-grid/getting-started/
|
|
2
|
-
// https://www.ag-grid.com/javascript-data-grid/themes/
|
|
3
|
-
|
|
4
|
-
import { ThemeEvents, darkTheme } from './Css.js';
|
|
5
|
-
import { append, getProxyPath, htmls, s } from './VanillaJs.js';
|
|
6
|
-
import * as agGrid from 'ag-grid-community';
|
|
7
|
-
|
|
8
|
-
const AgGrid = {
|
|
9
|
-
grids: {},
|
|
10
|
-
theme: `ag-theme-alpine`, // quartz
|
|
11
|
-
Render: async function (options) {
|
|
12
|
-
let { id } = options;
|
|
13
|
-
setTimeout(() => {
|
|
14
|
-
// Grid Options: Contains all of the grid configurations
|
|
15
|
-
const gridOptions = {
|
|
16
|
-
// Row Data: The data to be displayed.
|
|
17
|
-
// rowHeight: 60,
|
|
18
|
-
enableCellChangeFlash: true,
|
|
19
|
-
defaultColDef: {
|
|
20
|
-
editable: false,
|
|
21
|
-
flex: 1,
|
|
22
|
-
minWidth: 50,
|
|
23
|
-
filter: true,
|
|
24
|
-
autoHeight: true,
|
|
25
|
-
},
|
|
26
|
-
// domLayout: 'autoHeight', || 'normal'
|
|
27
|
-
// Column Definitions: Defines & controls grid columns.
|
|
28
|
-
columnDefs: options?.gridOptions?.rowData?.[0]
|
|
29
|
-
? Object.keys(options.gridOptions.rowData[0]).map((field) => {
|
|
30
|
-
return { field };
|
|
31
|
-
})
|
|
32
|
-
: [],
|
|
33
|
-
...options.gridOptions,
|
|
34
|
-
};
|
|
35
|
-
|
|
36
|
-
// Your Javascript code to create the grid
|
|
37
|
-
const myGridElement = s(`.${id}`);
|
|
38
|
-
if (this.grids[id]) this.grids[id].destroy();
|
|
39
|
-
this.grids[id] = agGrid.createGrid(myGridElement, gridOptions);
|
|
40
|
-
// myGridElement.style.setProperty('width', '100%');
|
|
41
|
-
ThemeEvents[id] = () => {
|
|
42
|
-
if (s(`.${id}`)) {
|
|
43
|
-
s(`.${id}`).classList.remove(darkTheme ? this.theme : this.theme + '-dark');
|
|
44
|
-
s(`.${id}`).classList.add(!darkTheme ? this.theme : this.theme + '-dark');
|
|
45
|
-
} else {
|
|
46
|
-
// console.warn('change theme: grid not found');
|
|
47
|
-
delete ThemeEvents[id];
|
|
48
|
-
}
|
|
49
|
-
};
|
|
50
|
-
});
|
|
51
|
-
return html`
|
|
52
|
-
<div
|
|
53
|
-
class="${id} ${this.theme}${options?.darkTheme ? `-dark` : ''}"
|
|
54
|
-
style="${options?.style
|
|
55
|
-
? Object.keys(options.style).map((styleKey) => `${styleKey}: ${options.style[styleKey]}; `)
|
|
56
|
-
: 'height: 500px'}"
|
|
57
|
-
></div>
|
|
58
|
-
`;
|
|
59
|
-
},
|
|
60
|
-
RenderStyle: async function (
|
|
61
|
-
options = {
|
|
62
|
-
eventThemeId: 'AgGrid',
|
|
63
|
-
style: {
|
|
64
|
-
'font-family': '',
|
|
65
|
-
'font-size': '',
|
|
66
|
-
'no-cell-focus-style': false,
|
|
67
|
-
'row-cursor': '',
|
|
68
|
-
},
|
|
69
|
-
},
|
|
70
|
-
) {
|
|
71
|
-
/*
|
|
72
|
-
--ag-foreground-color: rgb(126, 46, 132);
|
|
73
|
-
--ag-background-color: rgb(249, 245, 227);
|
|
74
|
-
--ag-header-foreground-color: rgb(204, 245, 172);
|
|
75
|
-
--ag-header-background-color: rgb(209, 64, 129);
|
|
76
|
-
--ag-odd-row-background-color: rgb(0, 0, 0, 0.03);
|
|
77
|
-
--ag-header-column-resize-handle-color: rgb(126, 46, 132);
|
|
78
|
-
|
|
79
|
-
--ag-font-size: 17px;
|
|
80
|
-
*/
|
|
81
|
-
if (!s(`.ag-grid-base-style`))
|
|
82
|
-
append(
|
|
83
|
-
'head',
|
|
84
|
-
html`<link
|
|
85
|
-
class="ag-grid-base-style"
|
|
86
|
-
rel="stylesheet"
|
|
87
|
-
type="text/css"
|
|
88
|
-
href="${getProxyPath()}styles/ag-grid-community/ag-grid.min.css"
|
|
89
|
-
/><link
|
|
90
|
-
rel="stylesheet"
|
|
91
|
-
type="text/css"
|
|
92
|
-
href="${getProxyPath()}styles/ag-grid-community/${this.theme}.min.css"
|
|
93
|
-
/>`,
|
|
94
|
-
);
|
|
95
|
-
ThemeEvents[options.eventThemeId] = () => {
|
|
96
|
-
htmls(
|
|
97
|
-
`.ag-grid-style`,
|
|
98
|
-
html` ${options.style['font-family']
|
|
99
|
-
? html`<style>
|
|
100
|
-
.ag-theme-alpine,
|
|
101
|
-
.ag-theme-alpine-dark {
|
|
102
|
-
--ag-font-family: '{{ag-font-family}}';
|
|
103
|
-
}
|
|
104
|
-
</style>`.replaceAll('{{ag-font-family}}', options.style['font-family'])
|
|
105
|
-
: ''}
|
|
106
|
-
${options.style['font-size']
|
|
107
|
-
? html`<style>
|
|
108
|
-
.ag-theme-alpine,
|
|
109
|
-
.ag-theme-alpine-dark {
|
|
110
|
-
--ag-font-size: '{{ag-font-size}}';
|
|
111
|
-
}
|
|
112
|
-
</style>`.replaceAll('{{ag-font-size}}', options.style['font-size'])
|
|
113
|
-
: ''}
|
|
114
|
-
${options.style['no-cell-focus-style']
|
|
115
|
-
? html`<style>
|
|
116
|
-
.ag-has-focus .ag-cell-focus {
|
|
117
|
-
border: none !important;
|
|
118
|
-
}
|
|
119
|
-
</style>`
|
|
120
|
-
: ''}
|
|
121
|
-
${options.style['row-cursor']
|
|
122
|
-
? html`<style>
|
|
123
|
-
.ag-row {
|
|
124
|
-
cursor: '{{ag-row-cursor}}';
|
|
125
|
-
}
|
|
126
|
-
</style>`.replaceAll(`'{{ag-row-cursor}}'`, options.style['row-cursor'])
|
|
127
|
-
: ''}
|
|
128
|
-
|
|
129
|
-
<style>
|
|
130
|
-
.ag-btn-renderer {
|
|
131
|
-
font-size: 16px;
|
|
132
|
-
min-width: 90px;
|
|
133
|
-
min-height: 90px;
|
|
134
|
-
}
|
|
135
|
-
</style>
|
|
136
|
-
${darkTheme
|
|
137
|
-
? html`
|
|
138
|
-
<style>
|
|
139
|
-
.ag-cell-data-changed,
|
|
140
|
-
.ag-cell-data-changed-animation {
|
|
141
|
-
background-color: #6d68ff !important;
|
|
142
|
-
background: #6d68ff !important;
|
|
143
|
-
color: #e4e4e4 !important;
|
|
144
|
-
}
|
|
145
|
-
</style>
|
|
146
|
-
`
|
|
147
|
-
: html`<style>
|
|
148
|
-
.ag-cell-data-changed,
|
|
149
|
-
.ag-cell-data-changed-animation {
|
|
150
|
-
background-color: #d1d1d1 !important;
|
|
151
|
-
background: #d1d1d1 !important;
|
|
152
|
-
color: #2e2e2e !important;
|
|
153
|
-
}
|
|
154
|
-
</style>`}`,
|
|
155
|
-
);
|
|
156
|
-
};
|
|
157
|
-
},
|
|
158
|
-
};
|
|
159
|
-
|
|
160
|
-
export { AgGrid };
|
|
1
|
+
// https://www.ag-grid.com/javascript-data-grid/getting-started/
|
|
2
|
+
// https://www.ag-grid.com/javascript-data-grid/themes/
|
|
3
|
+
|
|
4
|
+
import { ThemeEvents, darkTheme } from './Css.js';
|
|
5
|
+
import { append, getProxyPath, htmls, s } from './VanillaJs.js';
|
|
6
|
+
import * as agGrid from 'ag-grid-community';
|
|
7
|
+
|
|
8
|
+
const AgGrid = {
|
|
9
|
+
grids: {},
|
|
10
|
+
theme: `ag-theme-alpine`, // quartz
|
|
11
|
+
Render: async function (options) {
|
|
12
|
+
let { id } = options;
|
|
13
|
+
setTimeout(() => {
|
|
14
|
+
// Grid Options: Contains all of the grid configurations
|
|
15
|
+
const gridOptions = {
|
|
16
|
+
// Row Data: The data to be displayed.
|
|
17
|
+
// rowHeight: 60,
|
|
18
|
+
enableCellChangeFlash: true,
|
|
19
|
+
defaultColDef: {
|
|
20
|
+
editable: false,
|
|
21
|
+
flex: 1,
|
|
22
|
+
minWidth: 50,
|
|
23
|
+
filter: true,
|
|
24
|
+
autoHeight: true,
|
|
25
|
+
},
|
|
26
|
+
// domLayout: 'autoHeight', || 'normal'
|
|
27
|
+
// Column Definitions: Defines & controls grid columns.
|
|
28
|
+
columnDefs: options?.gridOptions?.rowData?.[0]
|
|
29
|
+
? Object.keys(options.gridOptions.rowData[0]).map((field) => {
|
|
30
|
+
return { field };
|
|
31
|
+
})
|
|
32
|
+
: [],
|
|
33
|
+
...options.gridOptions,
|
|
34
|
+
};
|
|
35
|
+
|
|
36
|
+
// Your Javascript code to create the grid
|
|
37
|
+
const myGridElement = s(`.${id}`);
|
|
38
|
+
if (this.grids[id]) this.grids[id].destroy();
|
|
39
|
+
this.grids[id] = agGrid.createGrid(myGridElement, gridOptions);
|
|
40
|
+
// myGridElement.style.setProperty('width', '100%');
|
|
41
|
+
ThemeEvents[id] = () => {
|
|
42
|
+
if (s(`.${id}`)) {
|
|
43
|
+
s(`.${id}`).classList.remove(darkTheme ? this.theme : this.theme + '-dark');
|
|
44
|
+
s(`.${id}`).classList.add(!darkTheme ? this.theme : this.theme + '-dark');
|
|
45
|
+
} else {
|
|
46
|
+
// console.warn('change theme: grid not found');
|
|
47
|
+
delete ThemeEvents[id];
|
|
48
|
+
}
|
|
49
|
+
};
|
|
50
|
+
});
|
|
51
|
+
return html`
|
|
52
|
+
<div
|
|
53
|
+
class="${id} ${this.theme}${options?.darkTheme ? `-dark` : ''}"
|
|
54
|
+
style="${options?.style
|
|
55
|
+
? Object.keys(options.style).map((styleKey) => `${styleKey}: ${options.style[styleKey]}; `)
|
|
56
|
+
: 'height: 500px'}"
|
|
57
|
+
></div>
|
|
58
|
+
`;
|
|
59
|
+
},
|
|
60
|
+
RenderStyle: async function (
|
|
61
|
+
options = {
|
|
62
|
+
eventThemeId: 'AgGrid',
|
|
63
|
+
style: {
|
|
64
|
+
'font-family': '',
|
|
65
|
+
'font-size': '',
|
|
66
|
+
'no-cell-focus-style': false,
|
|
67
|
+
'row-cursor': '',
|
|
68
|
+
},
|
|
69
|
+
},
|
|
70
|
+
) {
|
|
71
|
+
/*
|
|
72
|
+
--ag-foreground-color: rgb(126, 46, 132);
|
|
73
|
+
--ag-background-color: rgb(249, 245, 227);
|
|
74
|
+
--ag-header-foreground-color: rgb(204, 245, 172);
|
|
75
|
+
--ag-header-background-color: rgb(209, 64, 129);
|
|
76
|
+
--ag-odd-row-background-color: rgb(0, 0, 0, 0.03);
|
|
77
|
+
--ag-header-column-resize-handle-color: rgb(126, 46, 132);
|
|
78
|
+
|
|
79
|
+
--ag-font-size: 17px;
|
|
80
|
+
*/
|
|
81
|
+
if (!s(`.ag-grid-base-style`))
|
|
82
|
+
append(
|
|
83
|
+
'head',
|
|
84
|
+
html`<link
|
|
85
|
+
class="ag-grid-base-style"
|
|
86
|
+
rel="stylesheet"
|
|
87
|
+
type="text/css"
|
|
88
|
+
href="${getProxyPath()}styles/ag-grid-community/ag-grid.min.css"
|
|
89
|
+
/><link
|
|
90
|
+
rel="stylesheet"
|
|
91
|
+
type="text/css"
|
|
92
|
+
href="${getProxyPath()}styles/ag-grid-community/${this.theme}.min.css"
|
|
93
|
+
/>`,
|
|
94
|
+
);
|
|
95
|
+
ThemeEvents[options.eventThemeId] = () => {
|
|
96
|
+
htmls(
|
|
97
|
+
`.ag-grid-style`,
|
|
98
|
+
html` ${options.style['font-family']
|
|
99
|
+
? html`<style>
|
|
100
|
+
.ag-theme-alpine,
|
|
101
|
+
.ag-theme-alpine-dark {
|
|
102
|
+
--ag-font-family: '{{ag-font-family}}';
|
|
103
|
+
}
|
|
104
|
+
</style>`.replaceAll('{{ag-font-family}}', options.style['font-family'])
|
|
105
|
+
: ''}
|
|
106
|
+
${options.style['font-size']
|
|
107
|
+
? html`<style>
|
|
108
|
+
.ag-theme-alpine,
|
|
109
|
+
.ag-theme-alpine-dark {
|
|
110
|
+
--ag-font-size: '{{ag-font-size}}';
|
|
111
|
+
}
|
|
112
|
+
</style>`.replaceAll('{{ag-font-size}}', options.style['font-size'])
|
|
113
|
+
: ''}
|
|
114
|
+
${options.style['no-cell-focus-style']
|
|
115
|
+
? html`<style>
|
|
116
|
+
.ag-has-focus .ag-cell-focus {
|
|
117
|
+
border: none !important;
|
|
118
|
+
}
|
|
119
|
+
</style>`
|
|
120
|
+
: ''}
|
|
121
|
+
${options.style['row-cursor']
|
|
122
|
+
? html`<style>
|
|
123
|
+
.ag-row {
|
|
124
|
+
cursor: '{{ag-row-cursor}}';
|
|
125
|
+
}
|
|
126
|
+
</style>`.replaceAll(`'{{ag-row-cursor}}'`, options.style['row-cursor'])
|
|
127
|
+
: ''}
|
|
128
|
+
|
|
129
|
+
<style>
|
|
130
|
+
.ag-btn-renderer {
|
|
131
|
+
font-size: 16px;
|
|
132
|
+
min-width: 90px;
|
|
133
|
+
min-height: 90px;
|
|
134
|
+
}
|
|
135
|
+
</style>
|
|
136
|
+
${darkTheme
|
|
137
|
+
? html`
|
|
138
|
+
<style>
|
|
139
|
+
.ag-cell-data-changed,
|
|
140
|
+
.ag-cell-data-changed-animation {
|
|
141
|
+
background-color: #6d68ff !important;
|
|
142
|
+
background: #6d68ff !important;
|
|
143
|
+
color: #e4e4e4 !important;
|
|
144
|
+
}
|
|
145
|
+
</style>
|
|
146
|
+
`
|
|
147
|
+
: html`<style>
|
|
148
|
+
.ag-cell-data-changed,
|
|
149
|
+
.ag-cell-data-changed-animation {
|
|
150
|
+
background-color: #d1d1d1 !important;
|
|
151
|
+
background: #d1d1d1 !important;
|
|
152
|
+
color: #2e2e2e !important;
|
|
153
|
+
}
|
|
154
|
+
</style>`}`,
|
|
155
|
+
);
|
|
156
|
+
};
|
|
157
|
+
},
|
|
158
|
+
};
|
|
159
|
+
|
|
160
|
+
export { AgGrid };
|
|
@@ -1,19 +1,19 @@
|
|
|
1
|
-
const token = Symbol('token');
|
|
2
|
-
|
|
3
|
-
const Auth = {
|
|
4
|
-
[token]: '',
|
|
5
|
-
setToken: function (value = '') {
|
|
6
|
-
return (this[token] = value);
|
|
7
|
-
},
|
|
8
|
-
deleteToken: function () {
|
|
9
|
-
return (this[token] = '');
|
|
10
|
-
},
|
|
11
|
-
getToken: function () {
|
|
12
|
-
return this[token];
|
|
13
|
-
},
|
|
14
|
-
getJWT: function () {
|
|
15
|
-
return `Bearer ${this.getToken()}`;
|
|
16
|
-
},
|
|
17
|
-
};
|
|
18
|
-
|
|
19
|
-
export { Auth };
|
|
1
|
+
const token = Symbol('token');
|
|
2
|
+
|
|
3
|
+
const Auth = {
|
|
4
|
+
[token]: '',
|
|
5
|
+
setToken: function (value = '') {
|
|
6
|
+
return (this[token] = value);
|
|
7
|
+
},
|
|
8
|
+
deleteToken: function () {
|
|
9
|
+
return (this[token] = '');
|
|
10
|
+
},
|
|
11
|
+
getToken: function () {
|
|
12
|
+
return this[token];
|
|
13
|
+
},
|
|
14
|
+
getJWT: function () {
|
|
15
|
+
return `Bearer ${this.getToken()}`;
|
|
16
|
+
},
|
|
17
|
+
};
|
|
18
|
+
|
|
19
|
+
export { Auth };
|
|
@@ -1,32 +1,32 @@
|
|
|
1
|
-
import { getId, getIsoDate } from './CommonJs.js';
|
|
2
|
-
import { Css, renderCssAttr, Themes } from './Css.js';
|
|
3
|
-
import { Modal } from './Modal.js';
|
|
4
|
-
import { append, prepend, s } from './VanillaJs.js';
|
|
5
|
-
|
|
6
|
-
const Badge = {
|
|
7
|
-
Tokens: {},
|
|
8
|
-
Render: async function (options = { id: '', type: 'circle-red', classList: '', text: '' }) {
|
|
9
|
-
if (!options.id) options.id = getId(this.Tokens, 'badge-');
|
|
10
|
-
else options.id = 'badge-' + options.id;
|
|
11
|
-
if (options && options.style && !options.style.color) options.style.color = 'white';
|
|
12
|
-
if (!options.classList) options.classList = '';
|
|
13
|
-
|
|
14
|
-
const { id, type } = options;
|
|
15
|
-
this.Tokens[id] = { ...options };
|
|
16
|
-
|
|
17
|
-
switch (type) {
|
|
18
|
-
case 'circle-red':
|
|
19
|
-
options.classList += ' badge-notification-circle-red ';
|
|
20
|
-
break;
|
|
21
|
-
|
|
22
|
-
default:
|
|
23
|
-
break;
|
|
24
|
-
}
|
|
25
|
-
|
|
26
|
-
return html`<div class="badge wfm ${options.classList} ${id}" style="${renderCssAttr(options)}">
|
|
27
|
-
<div class="badge-text">${options?.text ? options.text : 'B'}</div>
|
|
28
|
-
</div>`;
|
|
29
|
-
},
|
|
30
|
-
};
|
|
31
|
-
|
|
32
|
-
export { Badge };
|
|
1
|
+
import { getId, getIsoDate } from './CommonJs.js';
|
|
2
|
+
import { Css, renderCssAttr, Themes } from './Css.js';
|
|
3
|
+
import { Modal } from './Modal.js';
|
|
4
|
+
import { append, prepend, s } from './VanillaJs.js';
|
|
5
|
+
|
|
6
|
+
const Badge = {
|
|
7
|
+
Tokens: {},
|
|
8
|
+
Render: async function (options = { id: '', type: 'circle-red', classList: '', text: '', style: '' }) {
|
|
9
|
+
if (!options.id) options.id = getId(this.Tokens, 'badge-');
|
|
10
|
+
else options.id = 'badge-' + options.id;
|
|
11
|
+
if (options && options.style && !options.style.color) options.style.color = 'white';
|
|
12
|
+
if (!options.classList) options.classList = '';
|
|
13
|
+
|
|
14
|
+
const { id, type } = options;
|
|
15
|
+
this.Tokens[id] = { ...options };
|
|
16
|
+
|
|
17
|
+
switch (type) {
|
|
18
|
+
case 'circle-red':
|
|
19
|
+
options.classList += ' badge-notification-circle-red ';
|
|
20
|
+
break;
|
|
21
|
+
|
|
22
|
+
default:
|
|
23
|
+
break;
|
|
24
|
+
}
|
|
25
|
+
|
|
26
|
+
return html`<div class="badge wfm ${options.classList} ${id}" style="${renderCssAttr(options)}">
|
|
27
|
+
<div class="badge-text">${options?.text ? options.text : 'B'}</div>
|
|
28
|
+
</div>`;
|
|
29
|
+
},
|
|
30
|
+
};
|
|
31
|
+
|
|
32
|
+
export { Badge };
|
|
@@ -1,41 +1,41 @@
|
|
|
1
|
-
import { BlockChainService } from '../../services/blockchain/blockchain.service.js';
|
|
2
|
-
import { BtnIcon } from './BtnIcon.js';
|
|
3
|
-
import { dynamicCol } from './Css.js';
|
|
4
|
-
import { EventsUI } from './EventsUI.js';
|
|
5
|
-
import { Input } from './Input.js';
|
|
6
|
-
import { Translate } from './Translate.js';
|
|
7
|
-
|
|
8
|
-
const BlockChainManagement = {
|
|
9
|
-
Render: async function (options) {
|
|
10
|
-
setTimeout(() => {
|
|
11
|
-
EventsUI.onClick(`.btn-upload-blockchain`, async () => {
|
|
12
|
-
// const { result, status } = new BlockChainService.post();
|
|
13
|
-
});
|
|
14
|
-
});
|
|
15
|
-
return html` ${dynamicCol({ containerSelector: options.idModal, id: 'blockchain' })}
|
|
16
|
-
<div class="fl">
|
|
17
|
-
<div class="in fll blockchain-col-a">
|
|
18
|
-
<div class="in section-mp">
|
|
19
|
-
<div class="in sub-title-modal"><i class="fa-solid fa-sliders"></i> ${Translate.Render('config')}</div>
|
|
20
|
-
<div class="in">
|
|
21
|
-
${await Input.Render({
|
|
22
|
-
id: `blockchain-seed`,
|
|
23
|
-
label: html`<i class="fa-solid fa-pen-to-square"></i> ${Translate.Render('blockchain-seed')}`,
|
|
24
|
-
containerClass: 'section-mp width-mini-box input-container',
|
|
25
|
-
placeholder: true,
|
|
26
|
-
})}
|
|
27
|
-
${await BtnIcon.Render({
|
|
28
|
-
class: `section-mp btn-custom btn-upload-blockchain`,
|
|
29
|
-
label: html`<i class="fas fa-plus"></i> ${Translate.Render(`create`)}`,
|
|
30
|
-
})}
|
|
31
|
-
</div>
|
|
32
|
-
</div>
|
|
33
|
-
</div>
|
|
34
|
-
<div class="in fll blockchain-col-b">
|
|
35
|
-
<div class="in section-mp"></div>
|
|
36
|
-
</div>
|
|
37
|
-
</div>`;
|
|
38
|
-
},
|
|
39
|
-
};
|
|
40
|
-
|
|
41
|
-
export { BlockChainManagement };
|
|
1
|
+
import { BlockChainService } from '../../services/blockchain/blockchain.service.js';
|
|
2
|
+
import { BtnIcon } from './BtnIcon.js';
|
|
3
|
+
import { dynamicCol } from './Css.js';
|
|
4
|
+
import { EventsUI } from './EventsUI.js';
|
|
5
|
+
import { Input } from './Input.js';
|
|
6
|
+
import { Translate } from './Translate.js';
|
|
7
|
+
|
|
8
|
+
const BlockChainManagement = {
|
|
9
|
+
Render: async function (options) {
|
|
10
|
+
setTimeout(() => {
|
|
11
|
+
EventsUI.onClick(`.btn-upload-blockchain`, async () => {
|
|
12
|
+
// const { result, status } = new BlockChainService.post();
|
|
13
|
+
});
|
|
14
|
+
});
|
|
15
|
+
return html` ${dynamicCol({ containerSelector: options.idModal, id: 'blockchain' })}
|
|
16
|
+
<div class="fl">
|
|
17
|
+
<div class="in fll blockchain-col-a">
|
|
18
|
+
<div class="in section-mp">
|
|
19
|
+
<div class="in sub-title-modal"><i class="fa-solid fa-sliders"></i> ${Translate.Render('config')}</div>
|
|
20
|
+
<div class="in">
|
|
21
|
+
${await Input.Render({
|
|
22
|
+
id: `blockchain-seed`,
|
|
23
|
+
label: html`<i class="fa-solid fa-pen-to-square"></i> ${Translate.Render('blockchain-seed')}`,
|
|
24
|
+
containerClass: 'section-mp width-mini-box input-container',
|
|
25
|
+
placeholder: true,
|
|
26
|
+
})}
|
|
27
|
+
${await BtnIcon.Render({
|
|
28
|
+
class: `section-mp btn-custom btn-upload-blockchain`,
|
|
29
|
+
label: html`<i class="fas fa-plus"></i> ${Translate.Render(`create`)}`,
|
|
30
|
+
})}
|
|
31
|
+
</div>
|
|
32
|
+
</div>
|
|
33
|
+
</div>
|
|
34
|
+
<div class="in fll blockchain-col-b">
|
|
35
|
+
<div class="in section-mp"></div>
|
|
36
|
+
</div>
|
|
37
|
+
</div>`;
|
|
38
|
+
},
|
|
39
|
+
};
|
|
40
|
+
|
|
41
|
+
export { BlockChainManagement };
|
|
@@ -1,9 +1,9 @@
|
|
|
1
|
-
import { RichText } from './RichText.js';
|
|
2
|
-
|
|
3
|
-
const Blog = {
|
|
4
|
-
Render: async function () {
|
|
5
|
-
return html`${await RichText.Render()}`;
|
|
6
|
-
},
|
|
7
|
-
};
|
|
8
|
-
|
|
9
|
-
export { Blog };
|
|
1
|
+
import { RichText } from './RichText.js';
|
|
2
|
+
|
|
3
|
+
const Blog = {
|
|
4
|
+
Render: async function () {
|
|
5
|
+
return html`${await RichText.Render()}`;
|
|
6
|
+
},
|
|
7
|
+
};
|
|
8
|
+
|
|
9
|
+
export { Blog };
|