+
{{ lt("Log")}}
{{log()}}
@@ -9,15 +10,21 @@
//import lt from "../api/locale";
import store from "../store";
+import lt from "../api/locale";
export default {
data() {
return {};
},
- beforeMount() {},
+ beforeMount() {
+ lt.fetch(["Log"]);
+ },
mounted() {},
methods: {
log: function() {
return store.state.logArray;
+ },
+ lt: function(key) {
+ return lt.get(key);
}
}
};
diff --git a/devdocs/todo.txt b/devdocs/todo.txt
index fef87c96..2e5f7ae1 100644
--- a/devdocs/todo.txt
+++ b/devdocs/todo.txt
@@ -31,17 +31,13 @@ WEEK OF 2018-11-12 - RAVEN shell start work. YAY!
// eslint-disable-next-line
NEXT UP / CURRENTLY WORKING ON:
-
- - Do error handling properly!! Do some research about how to properly handle errors in vue app
- - Need a log that can be displayed in UI
- - Need to handled unexpected errors
- - window.onerror handler?
- - Vue error handler: https://vuejs.org/v2/api/#errorHandler ?
- - Send errors back to server?
- - some kind of trick with requesting an image but including the error stuff in the query parameter or something?
- - Add an error log view that a user can go to without logging in that shows the local error log
- - About page should show or have link to go to the local error log "Support information" view
+ - Clean up error log view so it displays correctly with copyable text box and scrollbars of some kind
+
+ - Centralize the lt function, find out how to move it into the top so can just call it from anywhere
+ - pre-fetch: noticed it's not pausing long enough to get teh fetched text at times (log view)
+ - Need everything to stay on hold until the fetch of localized text is completed for that view somehow
+ - fetch in router? or how can I hold things off in vue lifecycle until it's done with the fetch of the keys?
- Dummy form with all RAVEN required input controls on it for testing
diff --git a/server/AyaNova/resource/de.json b/server/AyaNova/resource/de.json
index 62df0734..92cb56cf 100644
--- a/server/AyaNova/resource/de.json
+++ b/server/AyaNova/resource/de.json
@@ -1428,5 +1428,6 @@
"LicenseSerial": "Seriennummer der Lizenz",
"LicenseExpiration": "Lizenziert bis",
"SupportedUntil":"Support- und Aktualisierungsdatum",
- "LicensedOptions":"Lizenzoptionen"
+ "LicensedOptions":"Lizenzoptionen",
+ "Log":"Protokoll"
}
diff --git a/server/AyaNova/resource/en.json b/server/AyaNova/resource/en.json
index 58f28a20..1b3fe28f 100644
--- a/server/AyaNova/resource/en.json
+++ b/server/AyaNova/resource/en.json
@@ -1427,7 +1427,8 @@
"LicenseSerial":"License serial number",
"LicenseExpiration":"License expiration date",
"SupportedUntil":"Support and updates expiration date",
- "LicensedOptions":"Licensed options"
+ "LicensedOptions":"Licensed options",
+ "Log":"Log"
}
\ No newline at end of file
diff --git a/server/AyaNova/resource/es.json b/server/AyaNova/resource/es.json
index a9fbfe6a..760e2265 100644
--- a/server/AyaNova/resource/es.json
+++ b/server/AyaNova/resource/es.json
@@ -1428,5 +1428,6 @@
"LicenseSerial":"Número de serie de licencia",
"LicenseExpiration":"Licencia hasta el",
"SupportedUntil":"Soporte y actualizaciones fecha de caducidad",
- "LicensedOptions":"Opciones de licencia"
+ "LicensedOptions":"Opciones de licencia",
+ "Log":"Registro"
}
\ No newline at end of file
diff --git a/server/AyaNova/resource/fr.json b/server/AyaNova/resource/fr.json
index 26b5523b..cc789043 100644
--- a/server/AyaNova/resource/fr.json
+++ b/server/AyaNova/resource/fr.json
@@ -1413,21 +1413,20 @@
"WorkorderSummaryTemplate": "Modèle de résumé d'élément de bon de travail",
"WorkorderSummaryWorkorderItem": "Infos de bon de travail à afficher",
-
"Dispatch": "Répartir",
"Accounting": "Comptabilité",
"Operations": "Console Opérateur",
- "ClientApp":"Client",
- "Version":"Version",
- "Server":"Serveur",
- "SchemaVersion":"Version du schéma",
- "ServerTime":"Heure du serveur",
- "TimeZone":"Fuseau horaire",
- "RegisteredUser":"Utilisateur inscrit",
- "DatabaseID":"ID base de données",
- "LicenseSerial":"Numéro de série de licence",
- "LicenseExpiration":"Accordée sous licence jusqu'au",
- "SupportedUntil":"Support et mises à jour date d'expiration",
- "LicensedOptions":"Options de licence"
-
+ "ClientApp": "Client",
+ "Version": "Version",
+ "Server": "Serveur",
+ "SchemaVersion": "Version du schéma",
+ "ServerTime": "Heure du serveur",
+ "TimeZone": "Fuseau horaire",
+ "RegisteredUser": "Utilisateur inscrit",
+ "DatabaseID": "ID base de données",
+ "LicenseSerial": "Numéro de série de licence",
+ "LicenseExpiration": "Accordée sous licence jusqu'au",
+ "SupportedUntil": "Support et mises à jour date d'expiration",
+ "LicensedOptions": "Options de licence",
+ "Log": "Enregistrement"
}