refs #5557 Añadido apiSources

This commit is contained in:
Guillermo Bonet 2023-04-17 09:11:57 +02:00
parent 39d4710287
commit 866ca9498f
3 changed files with 8 additions and 8 deletions

View File

@ -1,6 +1,6 @@
#define MyAppName "Verdnatura"
#define MyAppVersion "5"
#define MyAppVersion "6"
#define MyAppPublisher "Verdnatura"
#define MyAppURL "https://www.verdnatura.es/"

View File

@ -12,7 +12,7 @@ var Conf = {
maxCorruptSize: 600,
odbcDriver: 'MySQL ODBC 8.0 Unicode Driver',
driverPath: '\\MySQL\\Connector ODBC 8.0\\myodbc8w.dll',
version: 5,
version: 6,
cdnURL: 'https://cdn.verdnatura.es/vn-access',
identifier: '.vn',
productionDatasource: 'production.vn'
@ -62,7 +62,7 @@ var App = {
this.disableUi(false);
},
onLoad: function() {
// Initializes the global variables
var split = Verdnatura.commandLine.match(/(?:[^\s"]+|"[^"]*")+/g);
if (split.length > 1)
@ -87,7 +87,7 @@ var App = {
if (!lastVersion || lastVersion != Conf.version) {
var path = 'HKCU\\Software\\Microsoft\\Office\\11.0\\Access\\';
// Creates the Access configuration entries
this.regWrites(path +'Settings', {
'Confirm Document Deletions': false,
@ -95,7 +95,7 @@ var App = {
'Confirm Record Changes': false
});
this.regWrite(path + 'Security', 'Level', 1);
// Creates the MySQL ODBC connection
this.createODBC(Conf.odbcPath,
Conf.defaultDatasource,
@ -105,14 +105,14 @@ var App = {
this.regWrite(Conf.regPath, 'remoteURL', Conf.defaultRemoteURL);
this.regWrite(Conf.regPath, 'lastExecutedVersion', Conf.version);
this.regWrite(Conf.regPath + '\\apiSources', 'master', Conf.defaultRemoteURL + '/api/');
this.createODBC(Conf.odbcPath,
Conf.productionDatasource,
Conf.odbcDriver,
Conf.productionDatasource
);
this.regDelete(Conf.regPath +'\\configured');
this.regDelete(Conf.regPath + '\\remember');
}

View File

@ -2,7 +2,7 @@
<html>
<head>
<meta charset="UTF-8" http-equiv="X-UA-Compatible" content="IE=9"/>
<title>v5</title>
<title>v6</title>
<link rel="stylesheet" href="style.css"/>
<script type="text/javascript" src="main.js"></script>
<hta:application