@basthon/gui-base 0.36.5 → 0.36.6
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/lib/main.d.ts +1 -1
- package/lib/main.js +3 -3
- package/package.json +4 -4
package/lib/main.d.ts
CHANGED
package/lib/main.js
CHANGED
|
@@ -37,7 +37,7 @@ export class GUIBase {
|
|
|
37
37
|
/**
|
|
38
38
|
* Notify the user with an error.
|
|
39
39
|
*/
|
|
40
|
-
error(message) { }
|
|
40
|
+
error(title, message) { }
|
|
41
41
|
/**
|
|
42
42
|
* Ask the user to confirm or cancel.
|
|
43
43
|
*/
|
|
@@ -58,7 +58,7 @@ export class GUIBase {
|
|
|
58
58
|
if (message == null)
|
|
59
59
|
message = error.toString();
|
|
60
60
|
message = message.split('\n').join('<br>');
|
|
61
|
-
this.error(`Erreur : ${message}`);
|
|
61
|
+
this.error("Erreur", `Erreur : ${message}`);
|
|
62
62
|
// In case of error, force loader hiding.
|
|
63
63
|
try {
|
|
64
64
|
this._loader.hideLoader();
|
|
@@ -138,7 +138,7 @@ export class GUIBase {
|
|
|
138
138
|
reader.onload = async (event) => {
|
|
139
139
|
var _a, _b;
|
|
140
140
|
(_a = this.kernel) === null || _a === void 0 ? void 0 : _a.putRessource(file.name, reader.result);
|
|
141
|
-
this.info("Fichier utilisable depuis
|
|
141
|
+
this.info("Fichier utilisable depuis ${this.kernel?.languageName()", `${file.name} est maintenant utilisable depuis ${(_b = this.kernel) === null || _b === void 0 ? void 0 : _b.languageName()}`);
|
|
142
142
|
resolve();
|
|
143
143
|
};
|
|
144
144
|
reader.onerror = reject;
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@basthon/gui-base",
|
|
3
|
-
"version": "0.36.
|
|
3
|
+
"version": "0.36.6",
|
|
4
4
|
"description": "Basthon - Base GUI",
|
|
5
5
|
"homepage": "https://basthon.fr",
|
|
6
6
|
"bugs": {
|
|
@@ -25,8 +25,8 @@
|
|
|
25
25
|
"clean": "rm -rf lib/"
|
|
26
26
|
},
|
|
27
27
|
"dependencies": {
|
|
28
|
-
"@basthon/kernel-base": "^0.36.
|
|
29
|
-
"@basthon/kernel-loader": "^0.36.
|
|
28
|
+
"@basthon/kernel-base": "^0.36.6",
|
|
29
|
+
"@basthon/kernel-loader": "^0.36.6",
|
|
30
30
|
"js-base64": "^3.7.2",
|
|
31
31
|
"pako": "^2.0.4",
|
|
32
32
|
"promise-delegate": "^1.0.1"
|
|
@@ -40,5 +40,5 @@
|
|
|
40
40
|
"publishConfig": {
|
|
41
41
|
"access": "public"
|
|
42
42
|
},
|
|
43
|
-
"gitHead": "
|
|
43
|
+
"gitHead": "fb7ba80accf982becc0fd5f5d64e09b4e4c2096c"
|
|
44
44
|
}
|