refs #5557 Añadido apiSources
This commit is contained in:
parent
39d4710287
commit
866ca9498f
|
@ -1,6 +1,6 @@
|
||||||
|
|
||||||
#define MyAppName "Verdnatura"
|
#define MyAppName "Verdnatura"
|
||||||
#define MyAppVersion "5"
|
#define MyAppVersion "6"
|
||||||
#define MyAppPublisher "Verdnatura"
|
#define MyAppPublisher "Verdnatura"
|
||||||
#define MyAppURL "https://www.verdnatura.es/"
|
#define MyAppURL "https://www.verdnatura.es/"
|
||||||
|
|
||||||
|
|
12
src/main.js
12
src/main.js
|
@ -12,7 +12,7 @@ var Conf = {
|
||||||
maxCorruptSize: 600,
|
maxCorruptSize: 600,
|
||||||
odbcDriver: 'MySQL ODBC 8.0 Unicode Driver',
|
odbcDriver: 'MySQL ODBC 8.0 Unicode Driver',
|
||||||
driverPath: '\\MySQL\\Connector ODBC 8.0\\myodbc8w.dll',
|
driverPath: '\\MySQL\\Connector ODBC 8.0\\myodbc8w.dll',
|
||||||
version: 5,
|
version: 6,
|
||||||
cdnURL: 'https://cdn.verdnatura.es/vn-access',
|
cdnURL: 'https://cdn.verdnatura.es/vn-access',
|
||||||
identifier: '.vn',
|
identifier: '.vn',
|
||||||
productionDatasource: 'production.vn'
|
productionDatasource: 'production.vn'
|
||||||
|
@ -62,7 +62,7 @@ var App = {
|
||||||
this.disableUi(false);
|
this.disableUi(false);
|
||||||
},
|
},
|
||||||
onLoad: function() {
|
onLoad: function() {
|
||||||
|
|
||||||
// Initializes the global variables
|
// Initializes the global variables
|
||||||
var split = Verdnatura.commandLine.match(/(?:[^\s"]+|"[^"]*")+/g);
|
var split = Verdnatura.commandLine.match(/(?:[^\s"]+|"[^"]*")+/g);
|
||||||
if (split.length > 1)
|
if (split.length > 1)
|
||||||
|
@ -87,7 +87,7 @@ var App = {
|
||||||
|
|
||||||
if (!lastVersion || lastVersion != Conf.version) {
|
if (!lastVersion || lastVersion != Conf.version) {
|
||||||
var path = 'HKCU\\Software\\Microsoft\\Office\\11.0\\Access\\';
|
var path = 'HKCU\\Software\\Microsoft\\Office\\11.0\\Access\\';
|
||||||
|
|
||||||
// Creates the Access configuration entries
|
// Creates the Access configuration entries
|
||||||
this.regWrites(path +'Settings', {
|
this.regWrites(path +'Settings', {
|
||||||
'Confirm Document Deletions': false,
|
'Confirm Document Deletions': false,
|
||||||
|
@ -95,7 +95,7 @@ var App = {
|
||||||
'Confirm Record Changes': false
|
'Confirm Record Changes': false
|
||||||
});
|
});
|
||||||
this.regWrite(path + 'Security', 'Level', 1);
|
this.regWrite(path + 'Security', 'Level', 1);
|
||||||
|
|
||||||
// Creates the MySQL ODBC connection
|
// Creates the MySQL ODBC connection
|
||||||
this.createODBC(Conf.odbcPath,
|
this.createODBC(Conf.odbcPath,
|
||||||
Conf.defaultDatasource,
|
Conf.defaultDatasource,
|
||||||
|
@ -105,14 +105,14 @@ var App = {
|
||||||
|
|
||||||
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL);
|
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL);
|
||||||
this.regWrite(Conf.regPath, 'lastExecutedVersion', Conf.version);
|
this.regWrite(Conf.regPath, 'lastExecutedVersion', Conf.version);
|
||||||
|
this.regWrite(Conf.regPath + '\\apiSources', 'master', Conf.defaultRemoteURL + '/api/');
|
||||||
|
|
||||||
|
|
||||||
this.createODBC(Conf.odbcPath,
|
this.createODBC(Conf.odbcPath,
|
||||||
Conf.productionDatasource,
|
Conf.productionDatasource,
|
||||||
Conf.odbcDriver,
|
Conf.odbcDriver,
|
||||||
Conf.productionDatasource
|
Conf.productionDatasource
|
||||||
);
|
);
|
||||||
|
|
||||||
this.regDelete(Conf.regPath +'\\configured');
|
this.regDelete(Conf.regPath +'\\configured');
|
||||||
this.regDelete(Conf.regPath + '\\remember');
|
this.regDelete(Conf.regPath + '\\remember');
|
||||||
}
|
}
|
||||||
|
|
|
@ -2,7 +2,7 @@
|
||||||
<html>
|
<html>
|
||||||
<head>
|
<head>
|
||||||
<meta charset="UTF-8" http-equiv="X-UA-Compatible" content="IE=9"/>
|
<meta charset="UTF-8" http-equiv="X-UA-Compatible" content="IE=9"/>
|
||||||
<title>v5</title>
|
<title>v6</title>
|
||||||
<link rel="stylesheet" href="style.css"/>
|
<link rel="stylesheet" href="style.css"/>
|
||||||
<script type="text/javascript" src="main.js"></script>
|
<script type="text/javascript" src="main.js"></script>
|
||||||
<hta:application
|
<hta:application
|
||||||
|
|
Loading…
Reference in New Issue