ng2-rest 21.0.50 → 21.0.53
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/VERIFIED-BUILD-DATA.jsonc +3 -3
- package/browser/package.json +1 -1
- package/browser-prod/fesm2022/ng2-rest-browser-prod.mjs.map +1 -1
- package/browser-prod/package.json +1 -1
- package/html/assets/generated/pwa/html-pwa.html +60 -0
- package/lib/build-info._auto-generated_.d.ts +1 -1
- package/lib/build-info._auto-generated_.js +1 -1
- package/lib/package.json +1 -1
- package/lib-esm/app.d.ts +0 -0
- package/lib-esm/app.electron.d.ts +0 -0
- package/lib-esm/app.electron.js +82 -0
- package/lib-esm/app.electron.js.map +1 -0
- package/lib-esm/app.hosts.d.ts +3 -0
- package/lib-esm/app.hosts.js +48 -0
- package/lib-esm/app.hosts.js.map +1 -0
- package/lib-esm/app.js +318 -0
- package/lib-esm/app.js.map +1 -0
- package/lib-esm/app.vscode.d.ts +0 -0
- package/lib-esm/app.vscode.js +47 -0
- package/lib-esm/app.vscode.js.map +1 -0
- package/lib-esm/cli.d.ts +1 -0
- package/lib-esm/cli.js +4 -0
- package/lib-esm/cli.js.map +1 -0
- package/lib-esm/index.d.ts +1 -0
- package/lib-esm/index.js +2 -0
- package/lib-esm/index.js.map +1 -0
- package/lib-esm/lib/build-info._auto-generated_.d.ts +24 -0
- package/lib-esm/lib/build-info._auto-generated_.js +27 -0
- package/lib-esm/lib/build-info._auto-generated_.js.map +1 -0
- package/lib-esm/lib/env/env.angular-node-app.d.ts +66 -0
- package/lib-esm/lib/env/env.angular-node-app.js +135 -0
- package/lib-esm/lib/env/env.angular-node-app.js.map +1 -0
- package/lib-esm/lib/env/env.docs-webapp.d.ts +66 -0
- package/lib-esm/lib/env/env.docs-webapp.js +135 -0
- package/lib-esm/lib/env/env.docs-webapp.js.map +1 -0
- package/lib-esm/lib/env/env.electron-app.d.ts +66 -0
- package/lib-esm/lib/env/env.electron-app.js +135 -0
- package/lib-esm/lib/env/env.electron-app.js.map +1 -0
- package/lib-esm/lib/env/env.mobile-app.d.ts +66 -0
- package/lib-esm/lib/env/env.mobile-app.js +135 -0
- package/lib-esm/lib/env/env.mobile-app.js.map +1 -0
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.d.ts +66 -0
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js +135 -0
- package/lib-esm/lib/env/env.npm-lib-and-cli-tool.js.map +1 -0
- package/lib-esm/lib/env/env.vscode-plugin.d.ts +66 -0
- package/lib-esm/lib/env/env.vscode-plugin.js +135 -0
- package/lib-esm/lib/env/env.vscode-plugin.js.map +1 -0
- package/lib-esm/lib/env/index.d.ts +6 -0
- package/lib-esm/lib/env/index.js +7 -0
- package/lib-esm/lib/env/index.js.map +1 -0
- package/lib-esm/lib/index._auto-generated_.d.ts +0 -0
- package/lib-esm/lib/index._auto-generated_.js +6 -0
- package/lib-esm/lib/index._auto-generated_.js.map +1 -0
- package/lib-esm/lib/index.d.ts +3 -0
- package/lib-esm/lib/index.js +4 -0
- package/lib-esm/lib/index.js.map +1 -0
- package/lib-esm/lib/new-mapping-decode.test.d.ts +1 -0
- package/lib-esm/lib/new-mapping-decode.test.js +119 -0
- package/lib-esm/lib/new-mapping-decode.test.js.map +1 -0
- package/lib-esm/lib/new-mapping-encode.test.d.ts +1 -0
- package/lib-esm/lib/new-mapping-encode.test.js +229 -0
- package/lib-esm/lib/new-mapping-encode.test.js.map +1 -0
- package/lib-esm/lib/new-mapping.d.ts +55 -0
- package/lib-esm/lib/new-mapping.js +314 -0
- package/lib-esm/lib/new-mapping.js.map +1 -0
- package/lib-esm/lib/new-mapping.test.d.ts +1 -0
- package/lib-esm/lib/new-mapping.test.js +7 -0
- package/lib-esm/lib/new-mapping.test.js.map +1 -0
- package/lib-esm/lib/ng2-rest.d.ts +301 -0
- package/lib-esm/lib/ng2-rest.js +998 -0
- package/lib-esm/lib/ng2-rest.js.map +1 -0
- package/lib-esm/lib/start-cli.d.ts +1 -0
- package/lib-esm/lib/start-cli.js +31 -0
- package/lib-esm/lib/start-cli.js.map +1 -0
- package/lib-prod/build-info._auto-generated_.d.ts +1 -1
- package/lib-prod/build-info._auto-generated_.js +1 -1
- package/lib-prod/new-mapping.js.map +1 -1
- package/lib-prod/ng2-rest.js.map +1 -1
- package/lib-prod/package.json +1 -1
- package/package.json +1 -1
- package/src.js +4 -20
- package/websql/package.json +1 -1
- package/websql-prod/fesm2022/ng2-rest-websql-prod.mjs.map +1 -1
- package/websql-prod/package.json +1 -1
|
@@ -0,0 +1,60 @@
|
|
|
1
|
+
<link rel="icon" type="image/x-icon" href="/assets/assets-for/ng2-rest/assets/generated/pwa/favicon.ico">
|
|
2
|
+
<link rel="icon" type="image/png" sizes="16x16" href="/assets/assets-for/ng2-rest/assets/generated/pwa/favicon-16x16.png">
|
|
3
|
+
<link rel="icon" type="image/png" sizes="32x32" href="/assets/assets-for/ng2-rest/assets/generated/pwa/favicon-32x32.png">
|
|
4
|
+
<link rel="icon" type="image/png" sizes="48x48" href="/assets/assets-for/ng2-rest/assets/generated/pwa/favicon-48x48.png">
|
|
5
|
+
<link rel="manifest" href="/assets/assets-for/ng2-rest/assets/generated/pwa/manifest.webmanifest">
|
|
6
|
+
<meta name="mobile-web-app-capable" content="yes">
|
|
7
|
+
<meta name="theme-color" content="#fff">
|
|
8
|
+
<meta name="application-name">
|
|
9
|
+
<link rel="apple-touch-icon" sizes="57x57" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-57x57.png">
|
|
10
|
+
<link rel="apple-touch-icon" sizes="60x60" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-60x60.png">
|
|
11
|
+
<link rel="apple-touch-icon" sizes="72x72" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-72x72.png">
|
|
12
|
+
<link rel="apple-touch-icon" sizes="76x76" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-76x76.png">
|
|
13
|
+
<link rel="apple-touch-icon" sizes="114x114" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-114x114.png">
|
|
14
|
+
<link rel="apple-touch-icon" sizes="120x120" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-120x120.png">
|
|
15
|
+
<link rel="apple-touch-icon" sizes="144x144" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-144x144.png">
|
|
16
|
+
<link rel="apple-touch-icon" sizes="152x152" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-152x152.png">
|
|
17
|
+
<link rel="apple-touch-icon" sizes="167x167" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-167x167.png">
|
|
18
|
+
<link rel="apple-touch-icon" sizes="180x180" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-180x180.png">
|
|
19
|
+
<link rel="apple-touch-icon" sizes="1024x1024" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-icon-1024x1024.png">
|
|
20
|
+
<meta name="apple-mobile-web-app-capable" content="yes">
|
|
21
|
+
<meta name="apple-mobile-web-app-status-bar-style" content="black-translucent">
|
|
22
|
+
<meta name="apple-mobile-web-app-title">
|
|
23
|
+
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-640x1136.png">
|
|
24
|
+
<link rel="apple-touch-startup-image" media="(device-width: 320px) and (device-height: 568px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1136x640.png">
|
|
25
|
+
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-750x1334.png">
|
|
26
|
+
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 667px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1334x750.png">
|
|
27
|
+
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1125x2436.png">
|
|
28
|
+
<link rel="apple-touch-startup-image" media="(device-width: 375px) and (device-height: 812px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2436x1125.png">
|
|
29
|
+
<link rel="apple-touch-startup-image" media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1170x2532.png">
|
|
30
|
+
<link rel="apple-touch-startup-image" media="(device-width: 390px) and (device-height: 844px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2532x1170.png">
|
|
31
|
+
<link rel="apple-touch-startup-image" media="(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1179x2556.png">
|
|
32
|
+
<link rel="apple-touch-startup-image" media="(device-width: 393px) and (device-height: 852px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2556x1179.png">
|
|
33
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-828x1792.png">
|
|
34
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1792x828.png">
|
|
35
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1242x2688.png">
|
|
36
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 896px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2688x1242.png">
|
|
37
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1242x2208.png">
|
|
38
|
+
<link rel="apple-touch-startup-image" media="(device-width: 414px) and (device-height: 736px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2208x1242.png">
|
|
39
|
+
<link rel="apple-touch-startup-image" media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1284x2778.png">
|
|
40
|
+
<link rel="apple-touch-startup-image" media="(device-width: 428px) and (device-height: 926px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2778x1284.png">
|
|
41
|
+
<link rel="apple-touch-startup-image" media="(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1290x2796.png">
|
|
42
|
+
<link rel="apple-touch-startup-image" media="(device-width: 430px) and (device-height: 932px) and (-webkit-device-pixel-ratio: 3) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2796x1290.png">
|
|
43
|
+
<link rel="apple-touch-startup-image" media="(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1488x2266.png">
|
|
44
|
+
<link rel="apple-touch-startup-image" media="(device-width: 744px) and (device-height: 1133px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2266x1488.png">
|
|
45
|
+
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1536x2048.png">
|
|
46
|
+
<link rel="apple-touch-startup-image" media="(device-width: 768px) and (device-height: 1024px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2048x1536.png">
|
|
47
|
+
<link rel="apple-touch-startup-image" media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1620x2160.png">
|
|
48
|
+
<link rel="apple-touch-startup-image" media="(device-width: 810px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2160x1620.png">
|
|
49
|
+
<link rel="apple-touch-startup-image" media="(device-width: 820px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1640x2160.png">
|
|
50
|
+
<link rel="apple-touch-startup-image" media="(device-width: 820px) and (device-height: 1080px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2160x1640.png">
|
|
51
|
+
<link rel="apple-touch-startup-image" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1668x2388.png">
|
|
52
|
+
<link rel="apple-touch-startup-image" media="(device-width: 834px) and (device-height: 1194px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2388x1668.png">
|
|
53
|
+
<link rel="apple-touch-startup-image" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-1668x2224.png">
|
|
54
|
+
<link rel="apple-touch-startup-image" media="(device-width: 834px) and (device-height: 1112px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2224x1668.png">
|
|
55
|
+
<link rel="apple-touch-startup-image" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: portrait)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2048x2732.png">
|
|
56
|
+
<link rel="apple-touch-startup-image" media="(device-width: 1024px) and (device-height: 1366px) and (-webkit-device-pixel-ratio: 2) and (orientation: landscape)" href="/assets/assets-for/ng2-rest/assets/generated/pwa/apple-touch-startup-image-2732x2048.png">
|
|
57
|
+
<meta name="msapplication-TileColor" content="#fff">
|
|
58
|
+
<meta name="msapplication-TileImage" content="/assets/assets-for/ng2-rest/assets/generated/pwa/mstile-144x144.png">
|
|
59
|
+
<meta name="msapplication-config" content="/assets/assets-for/ng2-rest/assets/generated/pwa/browserconfig.xml">
|
|
60
|
+
<link rel="yandex-tableau-widget" href="/assets/assets-for/ng2-rest/assets/generated/pwa/yandex-browser-manifest.json">
|
|
@@ -25,6 +25,6 @@ exports.CURRENT_PACKAGE_TAON_VERSION = 'v21';
|
|
|
25
25
|
/**
|
|
26
26
|
* Autogenerated by current cli tool. Use *tnp release* to bump version.
|
|
27
27
|
*/
|
|
28
|
-
exports.CURRENT_PACKAGE_VERSION = '21.0.
|
|
28
|
+
exports.CURRENT_PACKAGE_VERSION = '21.0.53';
|
|
29
29
|
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
30
30
|
//# sourceMappingURL=build-info._auto-generated_.js.map
|
package/lib/package.json
CHANGED
package/lib-esm/app.d.ts
ADDED
|
File without changes
|
|
File without changes
|
|
@@ -0,0 +1,82 @@
|
|
|
1
|
+
// import { CLIENT_DEV_NORMAL_APP_PORT, CLIENT_DEV_WEBSQL_APP_PORT } from './app.hosts';
|
|
2
|
+
// import {
|
|
3
|
+
// path,
|
|
4
|
+
// //#region @backend
|
|
5
|
+
// fse
|
|
6
|
+
// //#endregion
|
|
7
|
+
// } from 'tnp-core/src';
|
|
8
|
+
// //#region @backend
|
|
9
|
+
// import { app, BrowserWindow, screen } from 'electron';
|
|
10
|
+
// let win: BrowserWindow | null = null;
|
|
11
|
+
// const args = process.argv.slice(1);
|
|
12
|
+
// const serve = args.some(val => val === '--serve');
|
|
13
|
+
// const websql = args.some(val => val === '--websql');
|
|
14
|
+
// function createWindow(): BrowserWindow {
|
|
15
|
+
// const size = screen.getPrimaryDisplay().workAreaSize;
|
|
16
|
+
// // Create the browser window.
|
|
17
|
+
// win = new BrowserWindow({
|
|
18
|
+
// x: 0,
|
|
19
|
+
// y: 0,
|
|
20
|
+
// autoHideMenuBar: true,
|
|
21
|
+
// width: size.width / 2,
|
|
22
|
+
// height: size.height / 2,
|
|
23
|
+
// webPreferences: {
|
|
24
|
+
// nodeIntegration: true,
|
|
25
|
+
// allowRunningInsecureContent: (serve),
|
|
26
|
+
// contextIsolation: false,
|
|
27
|
+
// },
|
|
28
|
+
// });
|
|
29
|
+
// if (serve) {
|
|
30
|
+
// const debug = require('electron-debug');
|
|
31
|
+
// debug();
|
|
32
|
+
// require('electron-reloader')(module);
|
|
33
|
+
// win.loadURL('http://localhost:' + (websql ? CLIENT_DEV_WEBSQL_APP_PORT : CLIENT_DEV_NORMAL_APP_PORT));
|
|
34
|
+
// } else {
|
|
35
|
+
// // Path when running electron executable
|
|
36
|
+
// let pathIndex = './index.html';
|
|
37
|
+
// if (fse.existsSync(path.join(__dirname, '../dist/index.html'))) {
|
|
38
|
+
// // Path when running electron in local folder
|
|
39
|
+
// pathIndex = '../dist/index.html';
|
|
40
|
+
// }
|
|
41
|
+
// const url = new URL(path.join('file:', __dirname, pathIndex));
|
|
42
|
+
// win.loadURL(url.href);
|
|
43
|
+
// }
|
|
44
|
+
// // Emitted when the window is closed.
|
|
45
|
+
// win.on('closed', () => {
|
|
46
|
+
// // Dereference the window object, usually you would store window
|
|
47
|
+
// // in an array if your app supports multi windows, this is the time
|
|
48
|
+
// // when you should delete the corresponding element.
|
|
49
|
+
// win = null;
|
|
50
|
+
// });
|
|
51
|
+
// return win;
|
|
52
|
+
// }
|
|
53
|
+
// async function startElectron() {
|
|
54
|
+
// try {
|
|
55
|
+
// // This method will be called when Electron has finished
|
|
56
|
+
// // initialization and is ready to create browser windows.
|
|
57
|
+
// // Some APIs can only be used after this event occurs.
|
|
58
|
+
// // Added 400 ms to fix the black background issue while using transparent window. More detais at https://github.com/electron/electron/issues/15947
|
|
59
|
+
// app.on('ready', () => setTimeout(createWindow, 400));
|
|
60
|
+
// // Quit when all windows are closed.
|
|
61
|
+
// app.on('window-all-closed', () => {
|
|
62
|
+
// // On OS X it is common for applications and their menu bar
|
|
63
|
+
// // to stay active until the user quits explicitly with Cmd + Q
|
|
64
|
+
// if (process.platform !== 'darwin') {
|
|
65
|
+
// app.quit();
|
|
66
|
+
// }
|
|
67
|
+
// });
|
|
68
|
+
// app.on('activate', () => {
|
|
69
|
+
// // On OS X it's common to re-create a window in the app when the
|
|
70
|
+
// // dock icon is clicked and there are no other windows open.
|
|
71
|
+
// if (win === null) {
|
|
72
|
+
// createWindow();
|
|
73
|
+
// }
|
|
74
|
+
// });
|
|
75
|
+
// } catch (e) {
|
|
76
|
+
// // Catch Error
|
|
77
|
+
// // throw e;
|
|
78
|
+
// }
|
|
79
|
+
// }
|
|
80
|
+
// export default startElectron;
|
|
81
|
+
// //#endregion
|
|
82
|
+
//# sourceMappingURL=app.electron.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.electron.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,wFAAwF;AACxF,WAAW;AACX,QAAQ;AACR,qBAAqB;AACrB,MAAM;AACN,eAAe;AACf,yBAAyB;AACzB,qBAAqB;AACrB,yDAAyD;AAEzD,wCAAwC;AACxC,sCAAsC;AACtC,qDAAqD;AACrD,uDAAuD;AAEvD,2CAA2C;AAE3C,wDAAwD;AAExD,gCAAgC;AAChC,4BAA4B;AAC5B,UAAU;AACV,UAAU;AACV,2BAA2B;AAC3B,2BAA2B;AAC3B,6BAA6B;AAC7B,sBAAsB;AACtB,6BAA6B;AAC7B,4CAA4C;AAC5C,+BAA+B;AAC/B,OAAO;AACP,MAAM;AAEN,eAAe;AACf,6CAA6C;AAC7C,aAAa;AAEb,0CAA0C;AAC1C,2GAA2G;AAC3G,WAAW;AACX,6CAA6C;AAC7C,oCAAoC;AAEpC,sEAAsE;AACtE,oDAAoD;AACpD,wCAAwC;AACxC,MAAM;AAEN,mEAAmE;AACnE,2BAA2B;AAC3B,IAAI;AAEJ,wCAAwC;AACxC,2BAA2B;AAC3B,qEAAqE;AACrE,wEAAwE;AACxE,yDAAyD;AACzD,gBAAgB;AAChB,MAAM;AAEN,cAAc;AACd,IAAI;AAEJ,mCAAmC;AACnC,QAAQ;AACR,6DAA6D;AAC7D,8DAA8D;AAC9D,2DAA2D;AAC3D,uJAAuJ;AACvJ,0DAA0D;AAE1D,yCAAyC;AACzC,wCAAwC;AACxC,kEAAkE;AAClE,qEAAqE;AACrE,2CAA2C;AAC3C,oBAAoB;AACpB,QAAQ;AACR,QAAQ;AAER,+BAA+B;AAC/B,uEAAuE;AACvE,mEAAmE;AACnE,0BAA0B;AAC1B,wBAAwB;AACxB,QAAQ;AACR,QAAQ;AAER,gBAAgB;AAChB,mBAAmB;AACnB,gBAAgB;AAChB,IAAI;AACJ,IAAI;AAEJ,gCAAgC;AAChC,eAAe"}
|
|
@@ -0,0 +1,48 @@
|
|
|
1
|
+
let isWebSQLMode = false;
|
|
2
|
+
//#region @backend
|
|
3
|
+
isWebSQLMode = false;
|
|
4
|
+
//#endregion
|
|
5
|
+
/* */
|
|
6
|
+
/* */
|
|
7
|
+
const nodeENV = (() => {
|
|
8
|
+
let env;
|
|
9
|
+
//#region @backend
|
|
10
|
+
env = process.env || {};
|
|
11
|
+
//#endregion
|
|
12
|
+
return env || {};
|
|
13
|
+
})();
|
|
14
|
+
const windowENV = (() => {
|
|
15
|
+
let env;
|
|
16
|
+
/* */
|
|
17
|
+
/* */
|
|
18
|
+
return env || {};
|
|
19
|
+
})();
|
|
20
|
+
const argsENV = (() => {
|
|
21
|
+
let env;
|
|
22
|
+
//#region @backend
|
|
23
|
+
env = require('minimist')(process.argv);
|
|
24
|
+
//#endregion
|
|
25
|
+
return env || {};
|
|
26
|
+
})();
|
|
27
|
+
const transformURL = (url) => {
|
|
28
|
+
if (!url) {
|
|
29
|
+
return url;
|
|
30
|
+
}
|
|
31
|
+
//#region @backend
|
|
32
|
+
if (url.startsWith('http://') || url.startsWith('https://')) {
|
|
33
|
+
return url;
|
|
34
|
+
}
|
|
35
|
+
return 'http://' + url; // by default backend is http
|
|
36
|
+
//#endregion
|
|
37
|
+
/* */
|
|
38
|
+
/* */
|
|
39
|
+
/* */
|
|
40
|
+
/* */
|
|
41
|
+
/* */
|
|
42
|
+
};
|
|
43
|
+
const ACTIVE_CONTEXT = nodeENV['ACTIVE_CONTEXT'] || argsENV['ACTIVE_CONTEXT'] || windowENV['ACTIVE_CONTEXT'] || null;
|
|
44
|
+
export const CLIENT_DEV_NORMAL_APP_PORT = void 0;
|
|
45
|
+
export const CLIENT_DEV_WEBSQL_APP_PORT = void 0;
|
|
46
|
+
export const HOST_CONFIG = {};
|
|
47
|
+
// THIS FILE IS GENERATED - DO NOT MODIFY
|
|
48
|
+
//# sourceMappingURL=app.hosts.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.hosts.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAKA,IAAI,YAAY,GAAY,KAAK,CAAC;AAClC,kBAAkB;AAClB,YAAY,GAAG,KAAK,CAAC;AACrB,YAAY;AAEZ,KAAK;AACL,KAAK;AAGL,MAAM,OAAO,GAAG,CAAC,GAAE,EAAE;IACnB,IAAI,GAAQ,CAAC;IACb,kBAAkB;IAClB,GAAG,GAAG,OAAO,CAAC,GAAG,IAAI,EAAE,CAAC;IACxB,YAAY;IACZ,OAAO,GAAG,IAAI,EAAE,CAAC;AACnB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,SAAS,GAAG,CAAC,GAAE,EAAE;IACrB,IAAI,GAAQ,CAAC;IACf,KAAK;IACL,KAAK;IAEH,OAAO,GAAG,IAAI,EAAE,CAAC;AACnB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,OAAO,GAAG,CAAC,GAAE,EAAE;IACnB,IAAI,GAAQ,CAAC;IACb,kBAAkB;IAClB,GAAG,GAAG,OAAO,CAAC,UAAU,CAAC,CAAC,OAAO,CAAC,IAAI,CAAC,CAAC;IACxC,YAAY;IACZ,OAAO,GAAG,IAAI,EAAE,CAAC;AACnB,CAAC,CAAC,EAAE,CAAC;AAEL,MAAM,YAAY,GAAG,CAAC,GAAW,EAAU,EAAE;IAC3C,IAAI,CAAC,GAAG,EAAE,CAAC;QACT,OAAO,GAAG,CAAC;IACb,CAAC;IACD,kBAAkB;IAClB,IAAI,GAAG,CAAC,UAAU,CAAC,SAAS,CAAC,IAAI,GAAG,CAAC,UAAU,CAAC,UAAU,CAAC,EAAE,CAAC;QAC5D,OAAO,GAAG,CAAC;IACb,CAAC;IACD,OAAO,SAAS,GAAG,GAAG,CAAC,CAAC,6BAA6B;IACrD,YAAY;IACd,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;IACL,KAAK;AAEL,CAAC,CAAC;AAEF,MAAM,cAAc,GAAkB,OAAO,CAAC,gBAAgB,CAAC,IAAI,OAAO,CAAC,gBAAgB,CAAC,IAAI,SAAS,CAAC,gBAAgB,CAAC,IAAI,IAAI,CAAC;AAKpI,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAC,CAAC;AACjD,MAAM,CAAC,MAAM,0BAA0B,GAAG,KAAK,CAAC,CAAC;AAGjD,MAAM,CAAC,MAAM,WAAW,GAAG,EAE1B,CAAA;AAED,yCAAyC"}
|
package/lib-esm/app.js
ADDED
|
@@ -0,0 +1,318 @@
|
|
|
1
|
+
// //#region imports
|
|
2
|
+
// import * as os from 'os'; // @backend
|
|
3
|
+
// import {
|
|
4
|
+
// APP_INITIALIZER,
|
|
5
|
+
// ApplicationConfig,
|
|
6
|
+
// provideBrowserGlobalErrorListeners,
|
|
7
|
+
// isDevMode,
|
|
8
|
+
// mergeApplicationConfig,
|
|
9
|
+
// provideZonelessChangeDetection,
|
|
10
|
+
// signal,
|
|
11
|
+
// } from '@angular/core'; // @browser
|
|
12
|
+
// import { Component } from '@angular/core'; // @browser
|
|
13
|
+
// import { OnInit } from '@angular/core'; // @browser
|
|
14
|
+
// import {
|
|
15
|
+
// provideClientHydration,
|
|
16
|
+
// withEventReplay,
|
|
17
|
+
// } from '@angular/platform-browser';
|
|
18
|
+
// import {
|
|
19
|
+
// provideRouter,
|
|
20
|
+
// RouterModule,
|
|
21
|
+
// Routes,
|
|
22
|
+
// withHashLocation,
|
|
23
|
+
// } from '@angular/router';
|
|
24
|
+
// import { provideServiceWorker } from '@angular/service-worker';
|
|
25
|
+
// import { provideServerRendering, withRoutes } from '@angular/ssr';
|
|
26
|
+
// import { RenderMode, ServerRoute } from '@angular/ssr';
|
|
27
|
+
// import Aura from '@primeng/themes/aura'; // @browser
|
|
28
|
+
// import { Resource } from 'ng2-rest/src';
|
|
29
|
+
// import { providePrimeNG } from 'primeng/config'; // @browser
|
|
30
|
+
// import { Taon, TAON_CONTEXT, TaonBaseClass, TaonContext } from 'taon/src';
|
|
31
|
+
// import { CLASS } from 'typescript-class-helpers/src';
|
|
32
|
+
// import { HOST_CONFIG } from './app.hosts';
|
|
33
|
+
// import { ENV_ANGULAR_NODE_APP_BUILD_PWA_DISABLE_SERVICE_WORKER } from './lib/env/env.angular-node-app';
|
|
34
|
+
// import {
|
|
35
|
+
// decodeMappingForHeaderJson,
|
|
36
|
+
// DefaultMapping,
|
|
37
|
+
// encodeMapping,
|
|
38
|
+
// getMappingHeaderString,
|
|
39
|
+
// } from './lib/new-mapping';
|
|
40
|
+
// // @placeholder-for-imports
|
|
41
|
+
// //#endregion
|
|
42
|
+
// //#region constants
|
|
43
|
+
// const firstHostConfig = (Object.values(HOST_CONFIG) || [])[0];
|
|
44
|
+
// console.log('Your backend host ' + firstHostConfig?.host);
|
|
45
|
+
// console.log('Your frontend host ' + firstHostConfig?.frontendHost);
|
|
46
|
+
// //#endregion
|
|
47
|
+
// //#region ng2-rest component
|
|
48
|
+
/* */
|
|
49
|
+
/* */
|
|
50
|
+
/* */
|
|
51
|
+
/* */
|
|
52
|
+
/* */
|
|
53
|
+
/* */
|
|
54
|
+
/* */
|
|
55
|
+
/* */
|
|
56
|
+
/* */
|
|
57
|
+
/* */
|
|
58
|
+
/* */
|
|
59
|
+
/* */
|
|
60
|
+
/* */
|
|
61
|
+
/* */
|
|
62
|
+
/* */
|
|
63
|
+
/* */
|
|
64
|
+
/* */
|
|
65
|
+
/* */
|
|
66
|
+
/* */
|
|
67
|
+
// //#endregion
|
|
68
|
+
// //#region ng2-rest routes
|
|
69
|
+
/* */
|
|
70
|
+
/* */
|
|
71
|
+
/* */
|
|
72
|
+
/* */
|
|
73
|
+
/* */
|
|
74
|
+
/* */
|
|
75
|
+
/* */
|
|
76
|
+
/* */
|
|
77
|
+
/* */
|
|
78
|
+
/* */
|
|
79
|
+
/* */
|
|
80
|
+
/* */
|
|
81
|
+
/* */
|
|
82
|
+
/* */
|
|
83
|
+
/* */
|
|
84
|
+
/* */
|
|
85
|
+
/* */
|
|
86
|
+
/* */
|
|
87
|
+
/* */
|
|
88
|
+
/* */
|
|
89
|
+
/* */
|
|
90
|
+
// //#endregion
|
|
91
|
+
// //#region ng2-rest app configs
|
|
92
|
+
/* */
|
|
93
|
+
/* */
|
|
94
|
+
/* */
|
|
95
|
+
/* */
|
|
96
|
+
/* */
|
|
97
|
+
/* */
|
|
98
|
+
/* */
|
|
99
|
+
/* */
|
|
100
|
+
/* */
|
|
101
|
+
/* */
|
|
102
|
+
/* */
|
|
103
|
+
/* */
|
|
104
|
+
/* */
|
|
105
|
+
/* */
|
|
106
|
+
/* */
|
|
107
|
+
/* */
|
|
108
|
+
/* */
|
|
109
|
+
/* */
|
|
110
|
+
/* */
|
|
111
|
+
/* */
|
|
112
|
+
/* */
|
|
113
|
+
/* */
|
|
114
|
+
/* */
|
|
115
|
+
/* */
|
|
116
|
+
/* */
|
|
117
|
+
/* */
|
|
118
|
+
/* */
|
|
119
|
+
/* */
|
|
120
|
+
/* */
|
|
121
|
+
/* */
|
|
122
|
+
/* */
|
|
123
|
+
/* */
|
|
124
|
+
/* */
|
|
125
|
+
/* */
|
|
126
|
+
// //#endregion
|
|
127
|
+
// //#region ng2-rest context
|
|
128
|
+
// var Ng2RestContext = Taon.createContext(() => ({
|
|
129
|
+
// ...HOST_CONFIG['Ng2RestContext'],
|
|
130
|
+
// contexts: {},
|
|
131
|
+
// disabledRealtime: true,
|
|
132
|
+
// }));
|
|
133
|
+
// //#endregion
|
|
134
|
+
// //#region case 1 default mapping
|
|
135
|
+
// function case1() {
|
|
136
|
+
// class Book {}
|
|
137
|
+
// // class Book {}
|
|
138
|
+
// // @DefaultMapping<User>(() => ({ books: [Book] }))
|
|
139
|
+
// // class User {
|
|
140
|
+
// // declare name: string;
|
|
141
|
+
// // declare books: Book[];
|
|
142
|
+
// // }
|
|
143
|
+
// // const raw = {
|
|
144
|
+
// // books: [{ id: 1 }, { id: 2 }],
|
|
145
|
+
// // };
|
|
146
|
+
// // const mapping = getDefaultMapping(User);
|
|
147
|
+
// // console.log({ mapping });
|
|
148
|
+
// // const user = encodeMapping<User>(raw, mapping);
|
|
149
|
+
// // const forHeader = decodeMappingForHeaderJson(User);
|
|
150
|
+
// // console.log({ forHeader });
|
|
151
|
+
// // console.log(user instanceof User); // true
|
|
152
|
+
// // console.log(user.name); // "testName"
|
|
153
|
+
// // console.log(user.books[0] instanceof Book); // true
|
|
154
|
+
// }
|
|
155
|
+
// //#endregion
|
|
156
|
+
// //#region case 2 using class name
|
|
157
|
+
// async function case2() {
|
|
158
|
+
// @CLASS.NAME('EntityData')
|
|
159
|
+
// class EntityData {
|
|
160
|
+
// declare color: string;
|
|
161
|
+
// declare capacity: string;
|
|
162
|
+
// }
|
|
163
|
+
// @CLASS.NAME('Entity')
|
|
164
|
+
// class Entity {
|
|
165
|
+
// declare id: number;
|
|
166
|
+
// declare name: string;
|
|
167
|
+
// }
|
|
168
|
+
// const arrRest = Resource.create('https://api.restful-api.dev', '/objects', {
|
|
169
|
+
// responseMapping: {
|
|
170
|
+
// // entity: () => ({
|
|
171
|
+
// // '': Entity,
|
|
172
|
+
// // data: EntityData,
|
|
173
|
+
// // }),
|
|
174
|
+
// entity: {
|
|
175
|
+
// '': Entity,
|
|
176
|
+
// data: EntityData,
|
|
177
|
+
// },
|
|
178
|
+
// },
|
|
179
|
+
// });
|
|
180
|
+
// const data = await arrRest.model().get();
|
|
181
|
+
// console.log(data.body.json);
|
|
182
|
+
// }
|
|
183
|
+
// //#endregion
|
|
184
|
+
// //#region case 3 using just class
|
|
185
|
+
// async function case3() {
|
|
186
|
+
// class EntityData {
|
|
187
|
+
// declare color: string;
|
|
188
|
+
// declare capacity: string;
|
|
189
|
+
// }
|
|
190
|
+
// class Entity {
|
|
191
|
+
// declare id: number;
|
|
192
|
+
// declare name: string;
|
|
193
|
+
// }
|
|
194
|
+
// await Ng2RestContext.initialize();
|
|
195
|
+
// const arrRest = Resource.create('https://api.restful-api.dev', '/objects', {
|
|
196
|
+
// responseMapping: {
|
|
197
|
+
// // entity: () => ({
|
|
198
|
+
// // '': Entity,
|
|
199
|
+
// // data: EntityData,
|
|
200
|
+
// // }),
|
|
201
|
+
// entity: {
|
|
202
|
+
// '': Entity,
|
|
203
|
+
// data: EntityData,
|
|
204
|
+
// },
|
|
205
|
+
// },
|
|
206
|
+
// });
|
|
207
|
+
// const data = await arrRest.model().get();
|
|
208
|
+
// console.log(data.body.json);
|
|
209
|
+
// }
|
|
210
|
+
// //#endregion
|
|
211
|
+
// //#region case 4 circural objects
|
|
212
|
+
// function case4() {
|
|
213
|
+
// class User {
|
|
214
|
+
// declare name: string;
|
|
215
|
+
// declare firend: User;
|
|
216
|
+
// declare relatives: User[];
|
|
217
|
+
// }
|
|
218
|
+
// const user1 = { name: 'figot' } as Partial<User>;
|
|
219
|
+
// const user2 = { name: 'fagot' } as Partial<User>;
|
|
220
|
+
// const user3 = { name: 'donald' } as Partial<User>;
|
|
221
|
+
// const rawData = {
|
|
222
|
+
// name: 'wiesiek',
|
|
223
|
+
// firend: user1,
|
|
224
|
+
// relatives: [user2, user3],
|
|
225
|
+
// } as Partial<User>;
|
|
226
|
+
// const rawDataEntioty = encodeMapping(
|
|
227
|
+
// rawData,
|
|
228
|
+
// {
|
|
229
|
+
// '': User,
|
|
230
|
+
// firend: User,
|
|
231
|
+
// relatives: [User],
|
|
232
|
+
// },
|
|
233
|
+
// [
|
|
234
|
+
// {
|
|
235
|
+
// circuralTargetPath: '',
|
|
236
|
+
// pathToObj: 'friend',
|
|
237
|
+
// },
|
|
238
|
+
// ],
|
|
239
|
+
// );
|
|
240
|
+
// console.log({ rawDataEntioty });
|
|
241
|
+
// }
|
|
242
|
+
// //#endregion
|
|
243
|
+
// //#region case 5 mapping for header array
|
|
244
|
+
// function case5() {
|
|
245
|
+
// @CLASS.NAME('User')
|
|
246
|
+
// @DefaultMapping<User>(() => ({ '': User }))
|
|
247
|
+
// class User extends TaonBaseClass<User> {
|
|
248
|
+
// declare title?: string;
|
|
249
|
+
// }
|
|
250
|
+
// @CLASS.NAME('Book')
|
|
251
|
+
// @DefaultMapping<Book>(() => ({ '': Book }))
|
|
252
|
+
// class Book extends TaonBaseClass<Book> {
|
|
253
|
+
// declare name?: string;
|
|
254
|
+
// }
|
|
255
|
+
// @CLASS.NAME('BookExtended')
|
|
256
|
+
// @DefaultMapping<BookExtended>(() => ({ '': Book }))
|
|
257
|
+
// class BookExtended extends Book {
|
|
258
|
+
// declare title?: string;
|
|
259
|
+
// }
|
|
260
|
+
// const books = [
|
|
261
|
+
// new Book().clone({ name: 'book1' }),
|
|
262
|
+
// new Book().clone({ name: 'book2' }),
|
|
263
|
+
// new BookExtended().clone({
|
|
264
|
+
// name: 'book extended',
|
|
265
|
+
// }),
|
|
266
|
+
// ];
|
|
267
|
+
// console.log({
|
|
268
|
+
// books,
|
|
269
|
+
// Book: CLASS.getName(Book),
|
|
270
|
+
// BookExtended: CLASS.getName(BookExtended),
|
|
271
|
+
// });
|
|
272
|
+
// const forHeader = getMappingHeaderString(books);
|
|
273
|
+
// console.log(forHeader);
|
|
274
|
+
// // I am expecting
|
|
275
|
+
// // {
|
|
276
|
+
// // '': ['Book#2','BookExtended']
|
|
277
|
+
// // }
|
|
278
|
+
// }
|
|
279
|
+
// //#endregion
|
|
280
|
+
// //#region ng2-rest start function
|
|
281
|
+
// export const Ng2RestStartFunction = async (
|
|
282
|
+
// startParams?: Taon.StartParams,
|
|
283
|
+
// ): Promise<void> => {
|
|
284
|
+
// case5();
|
|
285
|
+
// //#region initialize auto generated active contexts
|
|
286
|
+
// const autoGeneratedActiveContextsForApp: TaonContext[] = [
|
|
287
|
+
// // @placeholder-for-contexts-init
|
|
288
|
+
// ];
|
|
289
|
+
// const priorityContexts = [
|
|
290
|
+
// // put here manual priority for contexts if needed
|
|
291
|
+
// ];
|
|
292
|
+
// const activeContextsForApp: TaonContext[] = [
|
|
293
|
+
// ...priorityContexts,
|
|
294
|
+
// ...autoGeneratedActiveContextsForApp.filter(
|
|
295
|
+
// c => !priorityContexts.includes(c),
|
|
296
|
+
// ),
|
|
297
|
+
// ];
|
|
298
|
+
// for (const activeContext of activeContextsForApp) {
|
|
299
|
+
// await activeContext.initialize();
|
|
300
|
+
// }
|
|
301
|
+
// //#endregion
|
|
302
|
+
// //#region @backend
|
|
303
|
+
// if (
|
|
304
|
+
// startParams?.onlyMigrationRun ||
|
|
305
|
+
// startParams?.onlyMigrationRevertToTimestamp
|
|
306
|
+
// ) {
|
|
307
|
+
// process.exit(0);
|
|
308
|
+
// }
|
|
309
|
+
// //#endregion
|
|
310
|
+
// //#region @backend
|
|
311
|
+
// console.log(`Hello in NodeJs backend! os=${os.platform()}`);
|
|
312
|
+
// //#endregion
|
|
313
|
+
// };
|
|
314
|
+
// //#endregion
|
|
315
|
+
// //#region default export
|
|
316
|
+
// export default Ng2RestStartFunction;
|
|
317
|
+
// //#endregion
|
|
318
|
+
//# sourceMappingURL=app.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,oBAAoB;AACpB,wCAAwC;AAExC,WAAW;AACX,qBAAqB;AACrB,uBAAuB;AACvB,wCAAwC;AACxC,eAAe;AACf,4BAA4B;AAC5B,oCAAoC;AACpC,YAAY;AACZ,sCAAsC;AACtC,yDAAyD;AACzD,sDAAsD;AACtD,WAAW;AACX,4BAA4B;AAC5B,qBAAqB;AACrB,sCAAsC;AACtC,WAAW;AACX,mBAAmB;AACnB,kBAAkB;AAClB,YAAY;AACZ,sBAAsB;AACtB,4BAA4B;AAC5B,kEAAk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DAAkD;AAClD,QAAQ;AACR,uBAAuB;AACvB,MAAM;AACN,iBAAiB;AAEjB,uBAAuB;AACvB,iEAAiE;AACjE,iBAAiB;AACjB,KAAK;AACL,eAAe;AAEf,2BAA2B;AAC3B,uCAAuC;AACvC,eAAe"}
|
|
File without changes
|
|
@@ -0,0 +1,47 @@
|
|
|
1
|
+
// import { Utils } from 'tnp-core/src';
|
|
2
|
+
// import { CommandType, executeCommand } from 'tnp-helpers/src';
|
|
3
|
+
// import type { ExtensionContext } from 'vscode';
|
|
4
|
+
// const group = 'Ng 2 Rest CLI essentials';
|
|
5
|
+
// export const commands: CommandType[] = (
|
|
6
|
+
// [
|
|
7
|
+
// {
|
|
8
|
+
// title: 'hello world',
|
|
9
|
+
// },
|
|
10
|
+
// {
|
|
11
|
+
// title: 'hey!',
|
|
12
|
+
// },
|
|
13
|
+
// ] as CommandType[]
|
|
14
|
+
// ).map(c => {
|
|
15
|
+
// if (!c.command) {
|
|
16
|
+
// c.command = `extension.${Utils.camelize(c.title)}`;
|
|
17
|
+
// }
|
|
18
|
+
// if (!c.group) {
|
|
19
|
+
// c.group = group;
|
|
20
|
+
// }
|
|
21
|
+
// return c;
|
|
22
|
+
// });
|
|
23
|
+
// export function activate(context: ExtensionContext) {
|
|
24
|
+
// for (let index = 0; index < commands.length; index++) {
|
|
25
|
+
// const {
|
|
26
|
+
// title = '',
|
|
27
|
+
// command = '',
|
|
28
|
+
// exec = '',
|
|
29
|
+
// options,
|
|
30
|
+
// isDefaultBuildCommand,
|
|
31
|
+
// } = commands[index];
|
|
32
|
+
// const sub = executeCommand(
|
|
33
|
+
// title,
|
|
34
|
+
// command,
|
|
35
|
+
// exec,
|
|
36
|
+
// options,
|
|
37
|
+
// isDefaultBuildCommand,
|
|
38
|
+
// context,
|
|
39
|
+
// );
|
|
40
|
+
// if (sub) {
|
|
41
|
+
// context.subscriptions.push(sub);
|
|
42
|
+
// }
|
|
43
|
+
// }
|
|
44
|
+
// }
|
|
45
|
+
// export function deactivate() {}
|
|
46
|
+
// export default { commands };
|
|
47
|
+
//# sourceMappingURL=app.vscode.js.map
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"app.vscode.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,wCAAwC;AACxC,iEAAiE;AACjE,kDAAkD;AAElD,4CAA4C;AAE5C,2CAA2C;AAC3C,MAAM;AACN,QAAQ;AACR,8BAA8B;AAC9B,SAAS;AACT,QAAQ;AACR,uBAAuB;AACvB,SAAS;AACT,uBAAuB;AACvB,eAAe;AACf,sBAAsB;AACtB,0DAA0D;AAC1D,MAAM;AACN,oBAAoB;AACpB,uBAAuB;AACvB,MAAM;AACN,cAAc;AACd,MAAM;AAEN,wDAAwD;AACxD,4DAA4D;AAC5D,cAAc;AACd,oBAAoB;AACpB,sBAAsB;AACtB,mBAAmB;AACnB,iBAAiB;AACjB,+BAA+B;AAC/B,2BAA2B;AAC3B,kCAAkC;AAClC,eAAe;AACf,iBAAiB;AACjB,cAAc;AACd,iBAAiB;AACjB,+BAA+B;AAC/B,iBAAiB;AACjB,SAAS;AACT,iBAAiB;AACjB,yCAAyC;AACzC,QAAQ;AACR,MAAM;AACN,IAAI;AAEJ,kCAAkC;AAElC,+BAA+B"}
|
package/lib-esm/cli.d.ts
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export { startCli } from './index';
|
package/lib-esm/cli.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"cli.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,kBAAkB;AAClB,OAAO,EAAE,QAAQ,EAAE,MAAM,SAAS,CAAC;AACnC,YAAY"}
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
export * from './lib';
|
package/lib-esm/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
{"version":3,"file":"index.js","sourceRoot":"","sources":[""],"names":[],"mappings":"AAAA,cAAc,OAAO,CAAC"}
|