You can not select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
36 lines
1.3 KiB
36 lines
1.3 KiB
const path = require('path');
|
|
const data_path = "/home/kylin/tcop/TIS_ZDFWGK_CPP/data/app/xmlx.json";
|
|
const fs = require("fs");
|
|
let data = null;
|
|
exports.MANUAL_CREATED_FLAG = Symbol("MANUAL_CREATED");
|
|
exports.MAIN_WINDOW_FLAG = Symbol("MAIN_WINDOW");
|
|
|
|
exports.SUSPENSION_WINDOW_FLAG = Symbol("SUSPENSION_WINDOW_FLAG");
|
|
|
|
// exports.MAIN_WINDOW_URL = "file://" + path.resolve(__dirname, '../renderer/pages/main/index.html')
|
|
// exports.APP_WINDOW_URL = "file://" + path.resolve(__dirname, '../renderer/pages/main/index.html?view=application')
|
|
// exports.LOGIN_WINDOW_URL = "file://" + path.resolve(__dirname, '../renderer/pages/main/index.html?view=login')
|
|
|
|
try {
|
|
data = JSON.parse(fs.readFileSync(data_path,'utf-8'));
|
|
}catch (e) {
|
|
data = {schema:"QB"}
|
|
}
|
|
const schema = data.schema;
|
|
let url = "";
|
|
switch (schema) {
|
|
case 'KT':
|
|
url = 'http://localhost:8080/';
|
|
break;
|
|
case 'QB':
|
|
url = 'http://localhost:8080/TIS_PLATFORM/';
|
|
break;
|
|
default:
|
|
url = 'http://localhost:8080/TIS_PLATFORM/';
|
|
break;
|
|
}
|
|
exports.MAIN_WINDOW_URL = url;
|
|
exports.SUSPENSION_WINDOW_URL = "file://" + path.resolve(__dirname, '../renderer/pages/suspension/index.html')
|
|
|
|
// exports.APP_WINDOW_URL = 'http://localhost:8080/?view=application'
|
|
// exports.LOGIN_WINDOW_URL = 'http://localhost:8080/?view=login'
|