From 04225e74fb3e43173556ce9718ec7ef9f0b04ecf Mon Sep 17 00:00:00 2001 From: Xuan Sang LE Date: Thu, 21 May 2020 17:28:02 +0200 Subject: [PATCH] update some package --- ShowCase/build/debug/main.js | 11 +++++ ShowCase/build/debug/package.json | 2 +- ShowCase/build/release/ShowCase.zip | Bin 17089 -> 17393 bytes ShowCase/coffees/main.coffee | 11 ++++- ShowCase/package.json | 2 +- packages.json | 4 +- wTerm/build/debug/main.css | 3 -- wTerm/build/debug/main.js | 61 +++++----------------------- wTerm/build/debug/package.json | 2 +- wTerm/build/release/wTerm.zip | Bin 605905 -> 604596 bytes wTerm/main.coffee | 43 +++----------------- wTerm/main.css | 3 -- wTerm/package.json | 2 +- 13 files changed, 43 insertions(+), 101 deletions(-) diff --git a/ShowCase/build/debug/main.js b/ShowCase/build/debug/main.js index 7d3c200..3f9f803 100644 --- a/ShowCase/build/debug/main.js +++ b/ShowCase/build/debug/main.js @@ -349,6 +349,10 @@ { text: "File dialog", id: "file" + }, + { + text: "Text dialog", + id: "text" } ]); return btrun.set("onbtclick", (e) => { @@ -419,6 +423,13 @@ }).then((f, name) => { return this.notify(f, name); }); + case "text": + return this.openDialog("TextDialog", { + title: "Text dialog review", + value: "txt data" + }).then((d) => { + return this.notify(d); + }); } }); } diff --git a/ShowCase/build/debug/package.json b/ShowCase/build/debug/package.json index 232d2c8..cf86e25 100644 --- a/ShowCase/build/debug/package.json +++ b/ShowCase/build/debug/package.json @@ -7,7 +7,7 @@ "email": "xsang.le@gmail.com", "licences": "GPLv3" }, - "version":"0.0.1-a", + "version":"0.0.2-a", "category":"Other", "mimes":["none"], "iconclass": "fa fa-delicious", diff --git a/ShowCase/build/release/ShowCase.zip b/ShowCase/build/release/ShowCase.zip index 86dff9576b342159405c828efd026da2288419db..e76ded7e73146ea8c71ebcae956db3c3484463d2 100644 GIT binary patch delta 241 zcmX@u%J{LJkvG7bnT3l11emM0ZsdKz!3?A)|KO+t)0Lbmd_aD{n)~Zc6qqwG6qs*b z&1o$+xtmv(B_y??Wb!_BNtO~IWAklwcFxIj^f|!1$$HxA5cz6dMQ)Hng_O+1oc#33 zvYMKcg>*zG*K4|Meq^A)&jB+1^Z8jTH*+~~FftlV7Iy3h+q~4#3{2m1Gy&71PR3|1 hnH=V%t^m_s!pOh?!aQKFzz7Y;$#b3L*p4}Y1OWQvOb-A6 delta 181 zcmey^&UmnukvG7bnT3l11Qs`J*~t5XgBeIq{=rcPrYkvB_<;NXvu9D$9n2UQ9LzSa z=CqcZ9Ht_;*+Jtq$7UfT1%3{Yio=ekdYi2rIT#rYCp$a!gLPkZG6U0m&L&{m)!7)$ iw8?GG>IyLJC5#LVAj|`H4vhF=Kl!Y)9NRQUkN^M;G&tb^ diff --git a/ShowCase/coffees/main.coffee b/ShowCase/coffees/main.coffee index 261c5ea..0d80357 100644 --- a/ShowCase/coffees/main.coffee +++ b/ShowCase/coffees/main.coffee @@ -153,7 +153,8 @@ class ShowCase extends this.OS.GUI.BaseApplication { text: "YesNo dialog", id: "yesno" }, { text: "Selection dialog", id: "selection" }, { text: "About dialog", id: "about" }, - { text: "File dialog", id: "file" } + { text: "File dialog", id: "file" }, + { text: "Text dialog", id: "text" } ] btrun.set "onbtclick", (e) => @@ -216,6 +217,14 @@ class ShowCase extends this.OS.GUI.BaseApplication }) .then (f, name) => @notify f, name + + when "text" + @openDialog("TextDialog", { + title: "Text dialog review", + value: "txt data" + }) + .then (d) => + @notify d else return diff --git a/ShowCase/package.json b/ShowCase/package.json index 232d2c8..cf86e25 100644 --- a/ShowCase/package.json +++ b/ShowCase/package.json @@ -7,7 +7,7 @@ "email": "xsang.le@gmail.com", "licences": "GPLv3" }, - "version":"0.0.1-a", + "version":"0.0.2-a", "category":"Other", "mimes":["none"], "iconclass": "fa fa-delicious", diff --git a/packages.json b/packages.json index 7084f9a..33232c8 100644 --- a/packages.json +++ b/packages.json @@ -41,7 +41,7 @@ "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/ShowCase/README.md", "category": "Other", "author": "Xuan Sang LE", - "version": "0.0.1-a", + "version": "0.0.2-a", "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/ShowCase/build/release/ShowCase.zip" }, { @@ -50,7 +50,7 @@ "description": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/wTerm/README.md", "category": "System", "author": "Xuan Sang LE", - "version": "0.0.1-a", + "version": "0.0.2-a", "download": "https://raw.githubusercontent.com/lxsang/antosdk-apps/master/wTerm/build/release/wTerm.zip" } diff --git a/wTerm/build/debug/main.css b/wTerm/build/debug/main.css index e7c59c2..5855f5b 100644 --- a/wTerm/build/debug/main.css +++ b/wTerm/build/debug/main.css @@ -171,6 +171,3 @@ text-decoration: underline; } -afx-app-window[data-id="ClipboardDialog"] textarea { - resize: none -} diff --git a/wTerm/build/debug/main.js b/wTerm/build/debug/main.js index cb0003d..b3abec8 100644 --- a/wTerm/build/debug/main.js +++ b/wTerm/build/debug/main.js @@ -1,6 +1,6 @@ (function() { void 0; - var ClipboardDialog, wTerm; + var wTerm; // Copyright 2017-2018 Xuan Sang LE @@ -18,50 +18,7 @@ // General Public License for more details. // You should have received a copy of the GNU General Public License - //along with this program. If not, see https://www.gnu.org/licenses/. - ClipboardDialog = class ClipboardDialog extends this.OS.GUI.BasicDialog { - constructor() { - super("ClipboardDialog", ClipboardDialog.scheme); - } - - init() { - this.find("btnOk").set("onbtclick", (e) => { - var value; - value = $(this.find("txtInput")).val(); - if (!(value && value !== "")) { - return; - } - if (this.handle) { - this.handle(value); - } - return this.quit(); - }); - return this.find("btnCancel").set("onbtclick", (e) => { - return this.quit(); - }); - } - - }; - - ClipboardDialog.scheme = ` - - -
- -
-