From a3f8f08d50601981d2db4d8aaa7692c2626776a2 Mon Sep 17 00:00:00 2001
From: Valdnet <47037905+Valdnet@users.noreply.github.com>
Date: Mon, 31 Jan 2022 15:59:07 +0100
Subject: [PATCH] Correct code
Signed-off-by: Valdnet <47037905+Valdnet@users.noreply.github.com>
---
core/js/setupchecks.js | 34 +++++++++++++++++-----------------
1 file changed, 17 insertions(+), 17 deletions(-)
diff --git a/core/js/setupchecks.js b/core/js/setupchecks.js
index e2a65d6e7b4..b7345ff1f73 100644
--- a/core/js/setupchecks.js
+++ b/core/js/setupchecks.js
@@ -240,14 +240,14 @@
if (data.cronErrors.length > 0) {
var listOfCronErrors = "";
data.cronErrors.forEach(function(element){
- listOfCronErrors += "
";
+ listOfCronErrors += '';
listOfCronErrors += element.error;
listOfCronErrors += ' ';
listOfCronErrors += element.hint;
- listOfCronErrors += "";
+ listOfCronErrors += '';
});
messages.push({
- msg: t('core', 'It was not possible to execute the cron job via CLI. The following technical errors have appeared:') + "",
+ msg: t('core', 'It was not possible to execute the cron job via CLI. The following technical errors have appeared:') + '',
type: OC.SetupChecks.MESSAGE_TYPE_ERROR
})
}
@@ -336,7 +336,7 @@
if(data.OpcacheSetupRecommendations.length > 0) {
var listOfOPcacheRecommendations = "";
data.OpcacheSetupRecommendations.forEach(function(element){
- listOfOPcacheRecommendations += "" + element + "";
+ listOfOPcacheRecommendations += '' + element + '';
});
messages.push({
msg: t('core', 'The PHP OPcache module is not properly configured. See the {linkstart}documentation â{linkend} for more information.')
@@ -360,46 +360,46 @@
if (data.missingIndexes.length > 0) {
var listOfMissingIndexes = "";
data.missingIndexes.forEach(function(element){
- listOfMissingIndexes += "";
+ listOfMissingIndexes += '';
listOfMissingIndexes += t('core', 'Missing index "{indexName}" in table "{tableName}".', element);
- listOfMissingIndexes += "";
+ listOfMissingIndexes += '';
});
messages.push({
- msg: t('core', 'The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running \'occ db:add-missing-indices\' those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.') + "" + listOfMissingIndexes + "
",
+ msg: t('core', 'The database is missing some indexes. Due to the fact that adding indexes on big tables could take some time they were not added automatically. By running \'occ db:add-missing-indices\' those missing indexes could be added manually while the instance keeps running. Once the indexes are added queries to those tables are usually much faster.') + '' + listOfMissingIndexes + '
',
type: OC.SetupChecks.MESSAGE_TYPE_INFO
})
}
if (data.missingPrimaryKeys.length > 0) {
var listOfMissingPrimaryKeys = "";
data.missingPrimaryKeys.forEach(function(element){
- listOfMissingPrimaryKeys += "";
+ listOfMissingPrimaryKeys += '';
listOfMissingPrimaryKeys += t('core', 'Missing primary key on table "{tableName}".', element);
- listOfMissingPrimaryKeys += "";
+ listOfMissingPrimaryKeys += '';
});
messages.push({
- msg: t('core', 'The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running \'occ db:add-missing-primary-keys\' those missing primary keys could be added manually while the instance keeps running.') + "" + listOfMissingPrimaryKeys + "
",
+ msg: t('core', 'The database is missing some primary keys. Due to the fact that adding primary keys on big tables could take some time they were not added automatically. By running \'occ db:add-missing-primary-keys\' those missing primary keys could be added manually while the instance keeps running.') + '' + listOfMissingPrimaryKeys + '
',
type: OC.SetupChecks.MESSAGE_TYPE_INFO
})
}
if (data.missingColumns.length > 0) {
var listOfMissingColumns = "";
data.missingColumns.forEach(function(element){
- listOfMissingColumns += "";
+ listOfMissingColumns += '';
listOfMissingColumns += t('core', 'Missing optional column "{columnName}" in table "{tableName}".', element);
- listOfMissingColumns += "";
+ listOfMissingColumns += '';
});
messages.push({
- msg: t('core', 'The database is missing some optional columns. Due to the fact that adding columns on big tables could take some time they were not added automatically when they can be optional. By running \'occ db:add-missing-columns\' those missing columns could be added manually while the instance keeps running. Once the columns are added some features might improve responsiveness or usability.') + "" + listOfMissingColumns + "
",
+ msg: t('core', 'The database is missing some optional columns. Due to the fact that adding columns on big tables could take some time they were not added automatically when they can be optional. By running \'occ db:add-missing-columns\' those missing columns could be added manually while the instance keeps running. Once the columns are added some features might improve responsiveness or usability.') + '' + listOfMissingColumns + '
',
type: OC.SetupChecks.MESSAGE_TYPE_INFO
})
}
if (data.recommendedPHPModules.length > 0) {
var listOfRecommendedPHPModules = "";
data.recommendedPHPModules.forEach(function(element){
- listOfRecommendedPHPModules += "" + element + "";
+ listOfRecommendedPHPModules += '' + element + '';
});
messages.push({
- msg: t('core', 'This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.') + "" + listOfRecommendedPHPModules + "
",
+ msg: t('core', 'This instance is missing some recommended PHP modules. For improved performance and better compatibility it is highly recommended to install them.') + '' + listOfRecommendedPHPModules + '
',
type: OC.SetupChecks.MESSAGE_TYPE_INFO
})
}
@@ -430,12 +430,12 @@
if (data.pendingBigIntConversionColumns.length > 0) {
var listOfPendingBigIntConversionColumns = "";
data.pendingBigIntConversionColumns.forEach(function(element){
- listOfPendingBigIntConversionColumns += "" + element + "";
+ listOfPendingBigIntConversionColumns += '' + element + '';
});
messages.push({
msg: t('core', 'Some columns in the database are missing a conversion to big int. Due to the fact that changing column types on big tables could take some time they were not changed automatically. By running \'occ db:convert-filecache-bigint\' those pending changes could be applied manually. This operation needs to be made while the instance is offline. For further details read {linkstart}the documentation page about this â{linkend}.')
.replace('{linkstart}', '')
- .replace('{linkend}', '') + "" + listOfPendingBigIntConversionColumns + "
",
+ .replace('{linkend}', '') + '' + listOfPendingBigIntConversionColumns + '
',
type: OC.SetupChecks.MESSAGE_TYPE_INFO
})
}
--
2.39.5