@interopio/iocd-cli 0.0.11 → 0.0.13

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (28) hide show
  1. package/dist/cli.js +0 -0
  2. package/dist/services/components/stores/github.store.js +103 -3
  3. package/dist/services/components/stores/github.store.js.map +1 -1
  4. package/dist/services/installer/installer.service.js +2 -12
  5. package/dist/services/installer/installer.service.js.map +1 -1
  6. package/dist/templates/ioconnect-desktop/package.json +1 -1
  7. package/dist/templates/splash/apps/splash/assets/fonts/Inter-Regular.ttf +0 -0
  8. package/dist/templates/splash/apps/splash/assets/images/splash-background.png +0 -0
  9. package/dist/templates/splash/apps/splash/assets/styles/style.css +39 -0
  10. package/dist/templates/splash/apps/splash/iocd.app.json +6 -18
  11. package/dist/templates/splash/apps/splash/script.js +53 -0
  12. package/dist/templates/splash/apps/splash/splash.html +25 -0
  13. package/package.json +2 -2
  14. package/dist/templates/splash/apps/splash/README.md +0 -119
  15. package/dist/templates/splash/apps/splash/config/system-dev.json +0 -9
  16. package/dist/templates/splash/apps/splash/index.html +0 -55
  17. package/dist/templates/splash/apps/splash/package-lock.json +0 -1059
  18. package/dist/templates/splash/apps/splash/package.json +0 -17
  19. package/dist/templates/splash/apps/splash/public/assets/fonts/PTSans-Regular.ttf +0 -0
  20. package/dist/templates/splash/apps/splash/public/assets/images/logo-light.svg +0 -85
  21. package/dist/templates/splash/apps/splash/public/assets/images/splash-bg.png +0 -0
  22. package/dist/templates/splash/apps/splash/public/assets/styles/style.css +0 -149
  23. package/dist/templates/splash/apps/splash/public/assets/styles/style.scss +0 -90
  24. package/dist/templates/splash/apps/splash/src/main.ts +0 -93
  25. package/dist/templates/splash/apps/splash/src/types.ts +0 -28
  26. package/dist/templates/splash/apps/splash/tsconfig.json +0 -25
  27. package/dist/templates/splash/apps/splash/vite.config.ts +0 -27
  28. /package/dist/templates/splash/apps/splash/{public/assets → assets}/styles/style.css.map +0 -0
@@ -1,17 +0,0 @@
1
- {
2
- "name": "splash-screen",
3
- "private": true,
4
- "version": "1.0.0",
5
- "type": "module",
6
- "description": "io.Connect Desktop splash screen built with Vite and TypeScript",
7
- "scripts": {
8
- "start": "vite --port 5177",
9
- "build": "tsc && vite build",
10
- "preview": "vite preview",
11
- "type-check": "tsc --noEmit"
12
- },
13
- "devDependencies": {
14
- "typescript": "~5.8.3",
15
- "vite": "^7.1.2"
16
- }
17
- }
@@ -1,85 +0,0 @@
1
- <?xml version="1.0" encoding="utf-8"?>
2
- <!-- Generator: Adobe Illustrator 27.7.0, SVG Export Plug-In . SVG Version: 6.00 Build 0) -->
3
- <svg version="1.1" id="Layer_1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" x="0px" y="0px"
4
- viewBox="0 0 170.1 72" style="enable-background:new 0 0 170.1 72;" xml:space="preserve">
5
- <style type="text/css">
6
- .st0{fill:#007BE5;}
7
- .st1{fill-rule:evenodd;clip-rule:evenodd;fill:#FFFFFF;}
8
- </style>
9
- <path class="st0" d="M0.0106,25.9565c0-0.2092,0.1687-0.3779,0.3779-0.3779h3.2966c0.2058,0,0.3745,0.1687,0.3745,0.3779v3.2932
10
- c0,0.2092-0.1687,0.3779-0.3779,0.3779H0.3885c-0.2092,0-0.3779-0.1687-0.3779-0.3779C0.0106,29.2497,0.0106,25.9565,0.0106,25.9565
11
- z"/>
12
- <path class="st0" d="M27.9151,45.8642c0-0.2092,0.1687-0.3779,0.3779-0.3779h3.2966c0.2092,0,0.3779,0.1687,0.3779,0.3779v3.2932
13
- c0,0.2092-0.1687,0.3779-0.3779,0.3779H28.293c-0.2092,0-0.3779-0.1687-0.3779-0.3779V45.8642z"/>
14
- <path class="st1" d="M15.1539,35.4683h3.0165c1.461,0,2.4631,0.3847,3.111,1.1641c0.6546,0.7929,0.992,2.0549,0.992,3.9174
15
- s-0.3374,3.1144-0.992,3.9005c-0.6445,0.7761-1.65,1.1506-3.111,1.1506h-3.0165c-1.4813,0-2.4834-0.3745-3.1245-1.1506
16
- c-0.6512-0.7828-0.9853-2.0346-0.9853-3.8972c0-1.8625,0.3273-3.1245,0.9819-3.9174C12.6705,35.853,13.6727,35.4683,15.1539,35.4683
17
- z M18.4977,31.561h-3.6779c-2.3923,0-4.3729,0.7254-5.7462,2.2438c-1.3733,1.5116-2.1122,3.7622-2.1122,6.7416
18
- s0.7389,5.2367,2.1122,6.745c1.38,1.5184,3.3539,2.2438,5.7462,2.2438h3.6779c2.3754,0,4.3527-0.7254,5.7361-2.2438
19
- c1.38-1.5116,2.1257-3.7656,2.1257-6.7484s-0.7457-5.2367-2.1257-6.7484c-1.38-1.515-3.3607-2.2438-5.7361-2.2438V31.561z
20
- M0.0106,49.127c0,0.2261,0.1822,0.4083,0.4083,0.4083h3.2325c0.2261,0,0.4083-0.1822,0.4083-0.4083V31.9592
21
- c0-0.2261-0.1822-0.4083-0.4083-0.4083H0.4189c-0.2261,0-0.4083,0.1822-0.4083,0.4083C0.0106,31.9592,0.0106,49.127,0.0106,49.127z
22
- M147.2327,35.4514h8.4624c0.2598,0,0.4724-0.2126,0.4724-0.4724v-2.9693c0-0.2598-0.2126-0.4724-0.4724-0.4724h-8.7931
23
- c-2.3889,0-4.3628,0.7322-5.7361,2.2472c-1.3699,1.5116-2.1089,3.769-2.1089,6.7517c0,2.9827,0.7389,5.2401,2.1089,6.7517
24
- c1.3767,1.5184,3.3472,2.2472,5.7361,2.2472h8.7931c0.2598,0,0.4724-0.2126,0.4724-0.4724v-2.9996
25
- c0-0.2598-0.2126-0.4724-0.4724-0.4724h-8.4658c-1.4779,0-2.4733-0.3779-3.1144-1.1506c-0.6478-0.7862-0.9785-2.0414-0.9785-3.9039
26
- s0.3307-3.1245,0.9819-3.9208c0.6411-0.7828,1.6398-1.1675,3.1143-1.1675L147.2327,35.4514L147.2327,35.4514z M43.939,31.1291
27
- h8.4287c0.2598,0,0.4724-0.2126,0.4724-0.4724v-3.4956c0-0.2598-0.2126-0.4724-0.4724-0.4724H43.939
28
- c-3.2932,0-5.8947,0.9346-7.6729,2.8613c-1.7714,1.9233-2.6825,4.7947-2.6825,8.5873c0,3.7757,0.9009,6.6404,2.6757,8.5535
29
- c1.7714,1.9233,4.3763,2.8579,7.683,2.8579h8.4287c0.2598,0,0.4724-0.2126,0.4724-0.4724v-3.4956
30
- c0-0.2598-0.2126-0.4724-0.4724-0.4724h-8.4287c-2.1257,0-3.58-0.5264-4.5113-1.6162c-0.9414-1.1-1.4037-2.8309-1.4037-5.3548
31
- c0-2.5408,0.469-4.2818,1.4138-5.3852c0.9346-1.0932,2.3889-1.6196,4.4978-1.6196v-0.0034H43.939z M62.5645,35.4649h3.0098
32
- c1.4576,0,2.4564,0.3847,3.1042,1.1675c0.6546,0.7963,0.992,2.0582,0.992,3.9208c0,1.8625-0.3374,3.1144-0.992,3.9039
33
- c-0.6445,0.7761-1.6432,1.1506-3.1042,1.1506h-3.0098c-1.4779,0-2.4733-0.3779-3.1144-1.1506
34
- c-0.6512-0.7862-0.9785-2.038-0.9785-3.9039c0-1.8625,0.3307-3.1245,0.9819-3.9208C60.0912,35.8462,61.09,35.4649,62.5645,35.4649z
35
- M65.9049,31.5509h-3.6711c-2.3889,0-4.3594,0.7288-5.7361,2.2472c-1.3699,1.5116-2.1089,3.769-2.1089,6.7517
36
- c0,2.9827,0.7389,5.2401,2.1089,6.7517c1.3733,1.515,3.3472,2.2472,5.7361,2.2472h3.6711c2.372,0,4.3459-0.7288,5.7226-2.2472
37
- c1.3733-1.5116,2.119-3.769,2.119-6.7551s-0.7457-5.2401-2.119-6.7551C70.2475,32.2797,68.277,31.5509,65.9049,31.5509z
38
- M90.4048,49.0629c0,0.2598,0.2126,0.4724,0.4724,0.4724h3.1312c0.2598,0,0.4724-0.2126,0.4724-0.4724v-9.6164
39
- c0-2.4665-0.7356-4.4607-2.2674-5.8306c-1.5285-1.3665-3.7993-2.0785-6.799-2.0785H78.747c-0.9009,0-1.6095,0.1653-2.0785,0.6715
40
- c-0.4656,0.4994-0.6377,1.2653-0.6377,2.3079v14.5461c0,0.2598,0.2126,0.4724,0.4724,0.4724h3.1009
41
- c0.2598,0,0.4724-0.2126,0.4724-0.4724V35.6708c0-0.135,0.0304-0.1822,0.0405-0.1957c0.0034-0.0034,0.0236-0.027,0.1215-0.027
42
- h5.1794c1.8018,0,3.0435,0.3745,3.8297,1.0392c0.7794,0.658,1.1573,1.6365,1.1573,2.9558L90.4048,49.0629L90.4048,49.0629z
43
- M111.4934,49.0629c0,0.2598,0.2126,0.4724,0.4724,0.4724h3.1312c0.2598,0,0.4724-0.2126,0.4724-0.4724v-9.6164
44
- c0-2.4665-0.7356-4.4607-2.2674-5.8306c-1.5285-1.3665-3.7993-2.0785-6.799-2.0785h-6.6674c-0.9009,0-1.6095,0.1653-2.0785,0.6715
45
- c-0.4656,0.4994-0.6377,1.2653-0.6377,2.3079v14.5461c0,0.2598,0.2126,0.4724,0.4724,0.4724h3.1009
46
- c0.2598,0,0.4724-0.2126,0.4724-0.4724V35.6708c0-0.135,0.0304-0.1822,0.0405-0.1957c0.0034-0.0034,0.0236-0.027,0.1215-0.027
47
- h5.1794c1.8018,0,3.0435,0.3745,3.8297,1.0392c0.7794,0.658,1.1573,1.6365,1.1573,2.9558L111.4934,49.0629L111.4934,49.0629z
48
- M169.4145,35.4143c0.2598,0,0.4724-0.2126,0.4724-0.4724v-2.9693c0-0.2598-0.2126-0.4724-0.4724-0.4724h-3.8837
49
- c-0.2598,0-0.4724-0.2126-0.4724-0.4724v-3.1886c0-0.2598-0.2126-0.4724-0.4724-0.4724h-3.1346
50
- c-0.2598,0-0.4724,0.2126-0.4724,0.4724v3.1886c0,0.2598-0.2126,0.4724-0.4724,0.4724h-1.4374
51
- c-0.2598,0-0.4724,0.2126-0.4724,0.4724v2.9693c0,0.2598,0.2126,0.4724,0.4724,0.4724h1.4374c0.2598,0,0.4724,0.2126,0.4724,0.4724
52
- v7.3287c0,2.2978,0.388,3.8871,1.2957,4.8993c0.9144,1.019,2.3012,1.3868,4.13,1.3868h2.9389c0.2598,0,0.4724-0.2126,0.4724-0.4724
53
- v-2.8039c0-0.2598-0.2126-0.4724-0.4724-0.4724h-2.2101c-0.7997,0-1.2923-0.162-1.596-0.4893
54
- c-0.3104-0.3307-0.4825-0.8975-0.4825-1.8524v-7.5244c0-0.2598,0.2126-0.4724,0.4724-0.4724
55
- C165.5274,35.4143,169.4145,35.4143,169.4145,35.4143z M130.3483,39.1563h-7.4569c-0.2598,0-0.4724-0.2126-0.4724-0.4724v-1.1101
56
- c0-0.6276,0.1755-1.1573,0.5432-1.5251c0.3644-0.3678,0.9549-0.6175,1.8659-0.6175h5.6214c0.8166,0,1.3632,0.2058,1.7006,0.523
57
- c0.3374,0.3138,0.5095,0.7794,0.5095,1.3902c0,0.5972-0.1586,1.0325-0.4926,1.3227
58
- C131.8296,38.964,131.2594,39.1563,130.3483,39.1563z M135.7774,46.043c0-0.2598-0.2126-0.4724-0.4724-0.4724h-10.4768
59
- c-0.911,0-1.5049-0.2429-1.8659-0.6074c-0.3644-0.3644-0.5399-0.8908-0.5399-1.5352v-0.5129c0-0.2598,0.2126-0.4724,0.4724-0.4724
60
- h7.5582c2.1797,0,3.7386-0.4589,4.7542-1.38c1.019-0.9245,1.4374-2.2708,1.4374-3.9174c0-1.731-0.4488-3.1515-1.4745-4.1367
61
- c-1.0224-0.9853-2.5745-1.488-4.68-1.488h-5.6551c-2.2337,0-3.8331,0.6276-4.8757,1.7208
62
- c-1.0393,1.0899-1.4779,2.6049-1.4779,4.3021v5.952c0,1.6972,0.442,3.2122,1.4779,4.3021c1.0426,1.0932,2.642,1.7208,4.8757,1.7208
63
- h10.4768c0.2598,0,0.4724-0.2126,0.4724-0.4724v-3.003C135.7842,46.043,135.7774,46.043,135.7774,46.043z M98.3071,65.4782
64
- c0,0.1215,0.0709,0.1755,0.1923,0.1755h3.8769c2.8478,0,4.2447-1.5015,4.2447-4.8217c0-3.3371-1.3969-4.8386-4.2447-4.8386h-3.8769
65
- c-0.1215,0-0.1923,0.054-0.1923,0.1923V65.4782z M102.3798,54.9272c3.4585,0,5.311,1.9199,5.311,5.9048s-1.8356,5.8879-5.311,5.8879
66
- h-4.4202c-0.4724,0-0.7153-0.2261-0.7153-0.6985V55.629c0-0.4724,0.2429-0.6985,0.7153-0.6985h4.4202V54.9272z M110.5048,62.1243
67
- h5.2941c1.5184,0,2.0954-0.5939,2.0954-1.6601c0-1.0831-0.6107-1.7478-2.0616-1.7478h-3.0739c-1.623,0-2.254,0.857-2.254,2.0076
68
- V62.1243z M115.8326,57.7581c2.1325,0,3.0233,0.9954,3.0233,2.6723c0,1.6061-0.8199,2.4969-3.0401,2.4969h-5.311v0.8199
69
- c0,1.154,0.6276,2.0279,2.254,2.0279h5.6416v0.9448h-5.6416c-2.3046,0-3.2156-1.2417-3.2156-2.9524v-3.057
70
- c0-1.677,0.9077-2.9524,3.2156-2.9524H115.8326z M129.1269,57.7547h-5.2907c-2.0279,0-2.8309,0.9448-2.8309,2.4463
71
- c0,1.3092,0.6107,2.4632,3.003,2.4632h2.5171c1.6061,0,2.0076,0.7018,2.0076,1.5386c0,0.9616-0.523,1.5724-1.8693,1.5724h-5.5539
72
- V66.72h5.5539c2.0279,0,2.8309-0.9988,2.8309-2.5171c0-1.2923-0.5939-2.4092-3.003-2.4092h-2.5171
73
- c-1.5892,0-2.0076-0.6782-2.0076-1.5184c0-0.9616,0.5399-1.5555,1.8862-1.5555h5.2738v-0.9616V57.7547z M131.9949,53.4965v13.2166
74
- h0.9785v-4.0693h0.9448c2.3923,0,2.7601,0.1923,3.6509,1.5386l1.677,2.534h1.1169l-1.7984-2.7061
75
- c-0.7356-1.1-1.2079-1.5892-2.2371-1.8153c0.8908-0.2429,1.3429-0.7524,2.0076-1.7816l1.7107-2.6555h-1.1l-1.5892,2.48
76
- c-0.9448,1.4846-1.2215,1.5724-3.4417,1.5724h-0.9448v-8.314h-0.9752V53.4965z M141.7598,57.7581v0.9448h1.2586v5.1861
77
- c0,2.1493,0.7491,2.8309,2.4969,2.8309h1.3969v-0.9077h-1.2417c-1.1709,0-1.677-0.4555-1.677-1.8693v-5.2401h2.9524V57.758h-2.9524
78
- v-2.1122h-0.9785v2.1122h-1.2552V57.7581z M152.3851,58.7198c-1.9739,0-3.0907,1.1169-3.0907,3.5294
79
- c0,2.4294,1.1169,3.5294,3.0907,3.5294h1.7984c1.9739,0,3.0908-1.1,3.0908-3.5294c0-2.4092-1.1169-3.5294-3.0908-3.5294H152.3851z
80
- M154.2544,57.7581c2.4463,0,4.0018,1.4846,4.0018,4.491c0,3.0233-1.5555,4.4708-4.0018,4.4708h-1.9401
81
- c-2.4632,0-4.0018-1.4509-4.0018-4.4708c0-3.003,1.5386-4.491,4.0018-4.491H154.2544z M161.1478,65.7752h4.8925
82
- c1.9739,0,3.0739-1.1169,3.0739-3.5463c0-2.4092-1.1-3.5125-3.0739-3.5125h-2.2539c-1.7816,0-2.6386,0.9077-2.6386,2.9187V65.7752z
83
- M166.1078,57.7581c2.4463,0,3.9815,1.4678,3.9815,4.4708c0,3.0233-1.5386,4.491-3.9815,4.491h-4.96v3.7015h-0.9785v-8.8235
84
- c0-2.5846,1.1708-3.8432,3.3877-3.8432h2.5509L166.1078,57.7581L166.1078,57.7581z"/>
85
- </svg>
@@ -1,149 +0,0 @@
1
- @font-face {
2
- font-weight: 400;
3
- font-family: "PTSans";
4
- font-style: normal;
5
- src: url("../fonts/PTSans-Regular.ttf") format("truetype");
6
- }
7
-
8
- body {
9
- font-size: 100%;
10
- font-weight: 400;
11
- color: #ffffff;
12
- margin: 0;
13
- padding: 0;
14
- clear: both;
15
- overflow: hidden;
16
- user-select: none;
17
- font-family: "PTSans", "Poppins", Arial, Helvetica, sans-serif;
18
- }
19
-
20
- .splash-wrapper {
21
- width: 21.875rem;
22
- height: 14.563rem;
23
- box-sizing: border-box;
24
- display: flex;
25
- flex-flow: column;
26
- justify-content: center;
27
- align-items: center;
28
- overflow: hidden;
29
- text-align: center;
30
- background: url("../images/splash-bg.png");
31
- background-size: cover;
32
- }
33
- .splash-wrapper > div {
34
- width: 14rem;
35
- }
36
- .splash-wrapper > div.loader {
37
- width: 11rem;
38
- }
39
-
40
- .logo-wrapper {
41
- margin-bottom: 1.5rem;
42
- }
43
-
44
- .logo {
45
- filter: drop-shadow(0 4px 6px rgba(0, 0, 0, 0.5));
46
- }
47
-
48
- .version {
49
- font-size: 0.875rem;
50
- margin-bottom: 0.313rem;
51
- }
52
-
53
- .status {
54
- font-size: 13px;
55
- margin-bottom: 1rem;
56
- }
57
-
58
- .copyright {
59
- font-size: 13px;
60
- }
61
-
62
- .loader {
63
- height: 1px;
64
- display: flex;
65
- transform: translateZ(0);
66
- margin-bottom: 1rem;
67
- -webkit-mask-image: -webkit-gradient(
68
- linear,
69
- left 0%,
70
- right 100%,
71
- from(#000),
72
- to(#0000)
73
- );
74
- }
75
- .loader div {
76
- flex: 1;
77
- background: #1c89ea;
78
- animation: go 1.1s infinite alternate ease;
79
- box-shadow: 0 0 10px #1c89ea;
80
- }
81
- .loader div:nth-child(1) {
82
- animation-delay: -1.045s;
83
- }
84
- .loader div:nth-child(2) {
85
- animation-delay: -0.99s;
86
- }
87
- .loader div:nth-child(3) {
88
- animation-delay: -0.935s;
89
- }
90
- .loader div:nth-child(4) {
91
- animation-delay: -0.88s;
92
- }
93
- .loader div:nth-child(5) {
94
- animation-delay: -0.825s;
95
- }
96
- .loader div:nth-child(6) {
97
- animation-delay: -0.77s;
98
- }
99
- .loader div:nth-child(7) {
100
- animation-delay: -0.715s;
101
- }
102
- .loader div:nth-child(8) {
103
- animation-delay: -0.66s;
104
- }
105
- .loader div:nth-child(9) {
106
- animation-delay: -0.605s;
107
- }
108
- .loader div:nth-child(10) {
109
- animation-delay: -0.55s;
110
- }
111
- .loader div:nth-child(11) {
112
- animation-delay: -0.495s;
113
- }
114
- .loader div:nth-child(12) {
115
- animation-delay: -0.44s;
116
- }
117
- .loader div:nth-child(13) {
118
- animation-delay: -0.385s;
119
- }
120
- .loader div:nth-child(14) {
121
- animation-delay: -0.33s;
122
- }
123
- .loader div:nth-child(15) {
124
- animation-delay: -0.275s;
125
- }
126
- .loader div:nth-child(16) {
127
- animation-delay: -0.22s;
128
- }
129
- .loader div:nth-child(17) {
130
- animation-delay: -0.165s;
131
- }
132
- .loader div:nth-child(18) {
133
- animation-delay: -0.11s;
134
- }
135
- .loader div:nth-child(19) {
136
- animation-delay: -0.055s;
137
- }
138
- .loader div:nth-child(20) {
139
- animation-delay: 0s;
140
- }
141
- @keyframes go {
142
- 100% {
143
- background: transparent;
144
- flex: 10;
145
- box-shadow: 0 0 0 transparent;
146
- }
147
- }
148
-
149
- /*# sourceMappingURL=style.css.map */
@@ -1,90 +0,0 @@
1
- @font-face {
2
- font-weight: 400;
3
- font-family: "PTSans";
4
- font-style: normal;
5
- src: url("../fonts/PTSans-Regular.ttf") format("truetype");
6
- }
7
-
8
- body {
9
- font-size: 100%;
10
- font-weight: 400;
11
- color: #ffffff;
12
- margin: 0;
13
- padding: 0;
14
- clear: both;
15
- overflow: hidden;
16
- user-select: none;
17
- font-family: "PTSans", Arial, Helvetica, sans-serif;
18
- }
19
- .splash-wrapper {
20
- width: 21.875rem;
21
- height: 14.563rem;
22
- box-sizing: border-box;
23
- display: flex;
24
- flex-flow: column;
25
- justify-content: center;
26
- align-items: center;
27
- overflow: hidden;
28
- text-align: center;
29
- background: url("../images/splash-bg.png");
30
- background-size: cover;
31
- > div {
32
- width: 14rem;
33
- &.loader {
34
- width: 11.5rem;
35
- }
36
- }
37
- }
38
- .logo-wrapper {
39
- margin-bottom: 1.5rem;
40
- }
41
- .version {
42
- font-size: 0.875rem;
43
- margin-bottom: 0.313rem;
44
- }
45
- .status {
46
- font-size: 13px;
47
- margin-bottom: 1rem;
48
- }
49
- .copyright {
50
- font-size: 13px;
51
- }
52
-
53
- // Loader
54
- $boxes: 20;
55
- $durationAll: 1.1s;
56
- $duration: -$durationAll / $boxes;
57
- $color: #1c89ea;
58
-
59
- .loader {
60
- height: 1px;
61
- display: flex;
62
- transform: translateZ(0);
63
- margin-bottom: 1rem;
64
- -webkit-mask-image: -webkit-gradient(
65
- linear,
66
- left 0%,
67
- right 100%,
68
- from(#000),
69
- to(#0000)
70
- );
71
- div {
72
- flex: 1;
73
- background: #{$color};
74
- animation: go #{$durationAll} infinite alternate ease;
75
- box-shadow: 0 0 10px #{$color};
76
-
77
- @for $i from 1 through $boxes {
78
- &:nth-child(#{$i}) {
79
- animation-delay: $duration * ($boxes - $i);
80
- }
81
- }
82
- }
83
- @keyframes go {
84
- 100% {
85
- background: transparent;
86
- flex: 10;
87
- box-shadow: 0 0 0 transparent;
88
- }
89
- }
90
- }
@@ -1,93 +0,0 @@
1
- import type { StatusUpdateEvent, PingGWEvent } from './types';
2
-
3
- // Main splash screen functionality
4
- class SplashScreen {
5
- private statusElement: HTMLElement;
6
- private versionElement: HTMLElement;
7
- private copyrightElement: HTMLElement;
8
-
9
- constructor() {
10
- this.statusElement = document.getElementById('status')!;
11
- this.versionElement = document.getElementById('version')!;
12
- this.copyrightElement = document.getElementById('copyright')!;
13
-
14
- this.init();
15
- }
16
-
17
- private init(): void {
18
- this.setupGlue42Listeners();
19
- this.setupUI();
20
- }
21
-
22
- private setupGlue42Listeners(): void {
23
- // Listen for status updates from the main process
24
- if (window.glue42splash) {
25
- window.glue42splash.on("updateStatus", (arg: StatusUpdateEvent) => {
26
- this.updateStatus(arg.text);
27
- });
28
-
29
- window.glue42splash.on("pingGW", (arg: PingGWEvent) => {
30
- this.testGatewayConnection(arg.gwURL);
31
- });
32
- }
33
- }
34
-
35
- private setupUI(): void {
36
- // Update copyright with current year
37
- const year = new Date().getFullYear();
38
- this.copyrightElement.innerHTML = `&copy; ${year} ${this.copyrightElement.innerHTML}`;
39
-
40
- // Parse URL parameters for initial setup
41
- this.parseUrlParams();
42
- }
43
-
44
- private parseUrlParams(): void {
45
- // Parse url params - splash.html?message=Starting&env=DEMO&region=INTEROP.IO&version=9.0.0.25
46
- const urlParams = new URLSearchParams(window.location.search);
47
-
48
- const message = urlParams.get("message");
49
- if (message) {
50
- this.updateStatus(message);
51
- }
52
-
53
- const version = urlParams.get("version");
54
- if (version) {
55
- const env = urlParams.get("env");
56
- const region = urlParams.get("region");
57
- this.versionElement.innerHTML = `${version} (${env}) - ${region}`;
58
- }
59
- }
60
-
61
- private updateStatus(message: string): void {
62
- console.log(`updating status to ${message}`);
63
- this.statusElement.innerHTML = message + "...";
64
- }
65
-
66
- private testGatewayConnection(gwURL: string): void {
67
- const retry = () => {
68
- console.log(`testing connectivity to ${gwURL}`);
69
-
70
- const webSocket = new WebSocket(gwURL);
71
- console.log(webSocket);
72
-
73
- webSocket.onopen = () => {
74
- console.log(`received open from GW on ${gwURL} - resolving...`);
75
- webSocket.close();
76
- };
77
-
78
- webSocket.onerror = (err) => {
79
- console.log(`received error from GW on ${gwURL} - will retry`, err);
80
- setTimeout(() => {
81
- retry();
82
- }, 500);
83
- };
84
- };
85
-
86
- retry();
87
- }
88
- }
89
-
90
- // Initialize the splash screen when the DOM is loaded
91
- document.addEventListener("DOMContentLoaded", () => {
92
- new SplashScreen();
93
- });
@@ -1,28 +0,0 @@
1
- // Type definitions for the splash screen application
2
-
3
- export interface Glue42SplashApi {
4
- on: (event: string, callback: (arg: any) => void) => void;
5
- }
6
-
7
- export interface StatusUpdateEvent {
8
- text: string;
9
- }
10
-
11
- export interface PingGWEvent {
12
- gwURL: string;
13
- }
14
-
15
- export interface URLParams {
16
- message?: string;
17
- version?: string;
18
- env?: string;
19
- region?: string;
20
- }
21
-
22
- declare global {
23
- interface Window {
24
- glue42splash: {
25
- on: (event: string, callback: (arg: any) => void) => void;
26
- };
27
- }
28
- }
@@ -1,25 +0,0 @@
1
- {
2
- "compilerOptions": {
3
- "target": "ES2022",
4
- "useDefineForClassFields": true,
5
- "module": "ESNext",
6
- "lib": ["ES2022", "DOM", "DOM.Iterable"],
7
- "skipLibCheck": true,
8
-
9
- /* Bundler mode */
10
- "moduleResolution": "bundler",
11
- "allowImportingTsExtensions": true,
12
- "verbatimModuleSyntax": true,
13
- "moduleDetection": "force",
14
- "noEmit": true,
15
-
16
- /* Linting */
17
- "strict": true,
18
- "noUnusedLocals": true,
19
- "noUnusedParameters": true,
20
- "erasableSyntaxOnly": true,
21
- "noFallthroughCasesInSwitch": true,
22
- "noUncheckedSideEffectImports": true
23
- },
24
- "include": ["src"]
25
- }
@@ -1,27 +0,0 @@
1
- import { defineConfig } from 'vite'
2
-
3
- export default defineConfig({
4
- // Ensure assets are properly copied and referenced
5
- build: {
6
- // Use default esbuild minifier (faster and built-in)
7
- minify: 'esbuild',
8
- // Keep the original structure for easier integration
9
- rollupOptions: {
10
- output: {
11
- // Maintain clean asset naming
12
- assetFileNames: 'assets/[name].[hash].[ext]',
13
- chunkFileNames: 'assets/[name].[hash].js',
14
- entryFileNames: 'assets/[name].[hash].js'
15
- }
16
- }
17
- },
18
- // Configure dev server
19
- server: {
20
- port: 3000,
21
- open: true
22
- },
23
- // Handle file extensions
24
- resolve: {
25
- extensions: ['.ts', '.js', '.json']
26
- }
27
- })