You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by lo...@apache.org on 2020/07/29 13:36:16 UTC

[myfaces-tobago] 01/03: TOBAGO-1843: Demo * commenting a todo

This is an automated email from the ASF dual-hosted git repository.

lofwyr pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/myfaces-tobago.git

commit 1a7cfae2b776f38ff07e38a4c9098da7087a5abc
Author: Udo Schnurpfeil <ud...@irian.eu>
AuthorDate: Fri Jul 17 08:10:14 2020 +0200

    TOBAGO-1843: Demo
    * commenting a todo
---
 .../src/main/webapp/content/10-intro/20-docker/Docker.xhtml |  1 +
 .../src/main/webapp/content/10-intro/20-docker/docker.js    | 13 +++++++------
 .../src/main/webapp/content/10-intro/20-docker/docker.ts    |  2 ++
 3 files changed, 10 insertions(+), 6 deletions(-)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/Docker.xhtml b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/Docker.xhtml
index def4754..5e6d2c4 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/Docker.xhtml
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/Docker.xhtml
@@ -28,6 +28,7 @@
     just run it in Docker.
   </p>
 
+<!-- XXX TODO: <tc:script file="docker.js" type="module"/>-->
   <tc:script file="docker.js"/>
 
   <tc:section id="cli" label="Command Line Configurator">
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/docker.js b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/docker.js
index 6c6b579..f4bc7be 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/docker.js
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/docker.js
@@ -1,3 +1,4 @@
+"use strict";
 /*
  * Licensed to the Apache Software Foundation (ASF) under one or more
  * contributor license agreements.  See the NOTICE file distributed with
@@ -14,9 +15,10 @@
  * See the License for the specific language governing permissions and
  * limitations under the License.
  */
-
-import {Listener, Phase} from "../tobago/standard/tobago-bootstrap/5.0.0-SNAPSHOT/js/tobago-listener";
-
+exports.__esModule = true;
+// fixme: better don't use Listener and Phase?
+// import {Listener, Phase} from "../tobago/standard/5.0.0-SNAPSHOT/js/bundle";
+var tobago_listener_1 = require("../tobago/standard/5.0.0-SNAPSHOT/js/tobago-listener");
 var Demo;
 (function (Demo) {
     var ToClipboardButton;
@@ -52,8 +54,7 @@ var Demo;
         var init = function () {
             document.querySelectorAll("[data-copy-clipboard-from]").forEach(function (value) { return new ToClipboardButton(value); });
         };
-        Listener.register(init, Phase.DOCUMENT_READY);
-        Listener.register(init, Phase.AFTER_UPDATE);
+        tobago_listener_1.Listener.register(init, tobago_listener_1.Phase.DOCUMENT_READY);
+        tobago_listener_1.Listener.register(init, tobago_listener_1.Phase.AFTER_UPDATE);
     })(ToClipboardButton = Demo.ToClipboardButton || (Demo.ToClipboardButton = {}));
 })(Demo || (Demo = {}));
-//# sourceMappingURL=docker.js.map
\ No newline at end of file
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/docker.ts b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/docker.ts
index 5207143..87e6fa8 100644
--- a/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/docker.ts
+++ b/tobago-example/tobago-example-demo/src/main/webapp/content/10-intro/20-docker/docker.ts
@@ -15,6 +15,8 @@
  * limitations under the License.
  */
 
+// fixme: better don't use Listener and Phase?
+// import {Listener, Phase} from "../tobago/standard/5.0.0-SNAPSHOT/js/bundle";
 import {Listener, Phase} from "../tobago/standard/5.0.0-SNAPSHOT/js/tobago-listener";
 
 module Demo.ToClipboardButton {