-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathprogram.js
More file actions
75 lines (67 loc) · 5.25 KB
/
program.js
File metadata and controls
75 lines (67 loc) · 5.25 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
// import { HtaConsole } from './wwwsys/app/js/S2.Framework/DevTools/HtaConsole.js'; // Import HtaConsole instance from HtaConsole.js
// Import of needed graphic components
//import { NavBar } from './wwwsys/app/js/S2.Framework/Components/NavBar.js';
import { ChannelLink } from './wwwsys/app/js/S2.Framework/Components/ChannelLink.js';
import { AppContext, HttpClient, SpaHelper } from './wwwsys/app/js/S2.Framework/Core2.js';
// Inizializzazione della console
HtaConsole.render();
AppContext.setProperty("landingPageUrl" , "wwwsys/pages/index.html");
AppContext.setProperty("name" , "My application");
AppContext.setProperty("contentContainerDomName" , "#content");
AppContext.setProperty("isLocalContent" , "true");
AppContext.setProperty("guiMessageQueue" , "{sender: '', x: 0, y: 0, btn: 'none', evt: '', msg: ''}");
/* 🛠️ DEBUG PURPOSE ONLY
console.log("applicationName = " + oHta.applicationName + "<br>" +
"border = " + oHta.border + "<br>" +
"borderStyle = " + oHta.borderStyle + "<br>" +
"caption = " + oHta.caption + "<br>" +
"commandLine = " + oHta.commandLine + "<br>" +
"icon = " + oHta.icon + "<br>" +
"maximizeButton = " + oHta.maximizeButton + "<br>" +
"minimizeButton = " + oHta.minimizeButton + "<br>" +
"showInTaskBar = " + oHta.showInTaskbar + "<br>" +
"singleInstance = " + oHta.singleInstance + "<br>" +
"sysMenu = " + oHta.sysMenu + "<br>" +
"version = " + oHta.version + "<br>" +
"windowState = " + oHta.windowState + "<br>" );
*/
console.log("# Created by S2DesignsTeam © 2035 (Phobetor1999 AKA ㊙️anonimo㊙️). " + "</BR>" +
"# " + "</BR>" +
"# Licensed under the Apache License, Version 2.0 (the 'License'); " + "</BR>" +
"# you may not use this file except in compliance with the License. " + "</BR>" +
"# You may obtain a copy of the License at " + "</BR>" +
"# " + "</BR>" +
"# http://www.apache.org/licenses/LICENSE-2.0 " + "</BR>" +
"# " + "</BR>" +
"# Unless required by applicable law or agreed to in writing, software " + "</BR>" +
"# distributed under the License is distributed on an 'AS IS' BASIS, " + "</BR>" +
"# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. " + "</BR>" +
"# See the License for the specific language governing permissions and " + "</BR>" +
"# limitations under the License. " + "</BR>" +
"# " + "</BR>" +
"# Symbol legend: " + "</BR>" +
"# 🛠️ DEBUG PURPOSE ONLY " + "</BR>" +
"# ⚙️ SETUP " + "</BR>" +
"# 🧪 EXPERIMENTAL " + "</BR>" +
"# 💻 SYSTEM FUNCTION " + "</BR>" +
"# 🔍 TO INVESTIGATE " + "</BR>" +
"# 💡 BRILLIANT IDEA " + "</BR>" +
"# 📜 STEP EXPLANATION " + "</BR>" +
"# 📎 DOCUMENTATION COMMENT " + "</BR>" +
"# ⏰ USED AS DELEGATE TRIGGERED ELSEWHERE " + "</BR>" +
"# ⏱️ ASYNCHRONISM " + "</BR>" +
"# ⌚ TIMER LOOP " + "</BR>" +
"###########################################################################");
console.info(AppContext.isHTA() ? System.getJavascriptVersion() + " | " + System.getJScriptVersion() + "." :
System.getJavascriptVersion() + "." );
console.info("Application Start.");
console.info(AppContext.isLocallyHosted(window.location.href) ? "Web app running locally from " + AppContext.getStartPath() + "</BR>" :
"Web app running remotely at " + AppContext.getBaseUrl() + "</BR>");
// Export the singleton instance
const appHttpClient = new HttpClient();
SpaHelper.wrapAllRoutes();
console.info("Redirecting to the landing page....");
SpaHelper.loadUrl(AppContext.props["landingPageUrl"]);
// Istanze dei componenti grafici
//NavBar.render();
//component1.render("content");