You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@myfaces.apache.org by bo...@apache.org on 2020/12/01 13:08:50 UTC

[myfaces-tobago] branch master updated: add unversioned demo files

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

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


The following commit(s) were added to refs/heads/master by this push:
     new 7c62812  add unversioned demo files
7c62812 is described below

commit 7c62812097b0364a71e7dc598f1f1c85324f2ba1
Author: Henning Nöth <hn...@apache.org>
AuthorDate: Tue Dec 1 13:58:07 2020 +0100

    add unversioned demo files
---
 .../src/main/webapp/css/demo.css.map               | 12 +++++
 .../src/main/webapp/css/demo.min.css               |  2 +
 .../src/main/webapp/css/demo.min.css.map           |  1 +
 .../src/main/webapp/js/demo-copy-to-clipboard.js   | 55 ++++++++++++++++++++++
 .../main/webapp/js/demo-copy-to-clipboard.js.map   |  1 +
 5 files changed, 71 insertions(+)

diff --git a/tobago-example/tobago-example-demo/src/main/webapp/css/demo.css.map b/tobago-example/tobago-example-demo/src/main/webapp/css/demo.css.map
new file mode 100644
index 0000000..2096b0c
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/css/demo.css.map
@@ -0,0 +1,12 @@
+{
+	"version": 3,
+	"file": "demo.css",
+	"sources": [
+		"../../../../npm/scss/demo.scss"
+	],
+	"sourcesContent": [
+		"/*\n * Licensed to the Apache Software Foundation (ASF) under one or more\n * contributor license agreements.  See the NOTICE file distributed with\n * this work for additional information regarding copyright ownership.\n * The ASF licenses this file to You under the Apache License, Version 2.0\n * (the \"License\"); you may not use this file except in compliance with\n * the License.  You may obtain a copy of the License at\n *\n *      http://www.apache.org/licenses/LICENSE-2.0\n *\ [...]
+	],
+	"names": [],
+	"mappings": "AAAA;;;;;;;;;;;;;;;GAeG;AAEH,AAAA,WAAW,CAAC;EACV,UAAU,EAAE,CAAC,CAAC,CAAC,CAAC,GAAG,CAAC,GAAG,CAAC,wBAAwB;CACjD;;AAED,AAAA,cAAc,CAAC;EACb,gBAAgB,EAAE,OAAO;CAC1B;;AAED,AAAA,iBAAiB,CAAC,cAAc,CAAC;EAC/B,MAAM,EAAE,iBAAiB;CAC1B;;AAED,AAAA,KAAK,CAAC;EACJ,gBAAgB,EAAE,OAAO;CAC1B;;AAED,AAAA,oBAAoB,CAAC;EACnB,MAAM,EAAE,KAAK;EACb,MAAM,EAAE,iBAAiB;EACzB,aAAa,EAAE,MAAM;CACtB;;AAED,AAAA,cAAc,CAAC;EACb,SAAS,EAAE,GAAG;CACf;;AAED;;;;EAIE;AAEF,2FAA2F;AAC3F,AAAA,gBAAgB,CAAC,MAAM,AAAA,IAAI,CAA [...]
+}
\ No newline at end of file
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/css/demo.min.css b/tobago-example/tobago-example-demo/src/main/webapp/css/demo.min.css
new file mode 100644
index 0000000..31f4fb8
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/css/demo.min.css
@@ -0,0 +1,2 @@
+.box-shadow{box-shadow:0 0 5px 5px rgba(200,200,200,.5)}.demo-selected{background-color:#fdf}#demo-view-source .demo-selected{border:1px solid #ccc}.blue{background-color:#2aabff}.demo-data-attribute{height:100px;border:1px solid #000;border-radius:.25rem}demo-highlight{font-size:75%}.language-markup .token.tag{font-weight:inherit;font-size:inherit;line-height:inherit;white-space:inherit;text-align:inherit;padding:inherit}.planet{background-color:#5cb85c}.old-planet{background-color:#b3d [...]
+/*# sourceMappingURL=demo.min.css.map */
\ No newline at end of file
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/css/demo.min.css.map b/tobago-example/tobago-example-demo/src/main/webapp/css/demo.min.css.map
new file mode 100644
index 0000000..c0dbab4
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/css/demo.min.css.map
@@ -0,0 +1 @@
+{"version":3,"sources":["../../../../npm/scss/demo.scss"],"names":[],"mappings":"AAiBA,YACE,WAAY,EAAE,EAAE,IAAI,IAAI,qBAG1B,eACE,iBAAkB,KAGF,iCAChB,OAAQ,IAAA,MAAA,KAGV,MACE,iBAAkB,QAGpB,qBACE,OAAQ,MACR,OAAQ,IAAA,MAAA,KACR,cAAe,OAGjB,eACE,UAAW,IAUU,4BACrB,YAAa,QACb,UAAW,QACX,YAAa,QAEb,YAAa,QACb,WAAY,QACZ,QAAS,QAGX,QACE,iBAAkB,QAGpB,YACE,iBAAkB,QAGpB,8BACE,iBAAkB,QAGpB,iCACE,iBAAkB,QAGpB,+BACE,iBAAkB,QAGpB,qCACE,iBAAkB,KAGpB,mCACE,iBAAkB,KAGpB,mBACE,QAAS,aACT,OAAQ,IAAA,MACR,WAAY,OACZ,cAAe" [...]
\ No newline at end of file
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/js/demo-copy-to-clipboard.js b/tobago-example/tobago-example-demo/src/main/webapp/js/demo-copy-to-clipboard.js
new file mode 100644
index 0000000..69c44c4
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/js/demo-copy-to-clipboard.js
@@ -0,0 +1,55 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one or more
+ * contributor license agreements.  See the NOTICE file distributed with
+ * this work for additional information regarding copyright ownership.
+ * The ASF licenses this file to You under the Apache License, Version 2.0
+ * (the "License"); you may not use this file except in compliance with
+ * the License.  You may obtain a copy of the License at
+ *
+ *      http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing, software
+ * distributed under the License is distributed on an "AS IS" BASIS,
+ * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
+ * See the License for the specific language governing permissions and
+ * limitations under the License.
+ */
+class DemoCopyToClipboard extends HTMLElement {
+    constructor() {
+        super();
+    }
+    connectedCallback() {
+        this.addEventListener("click", (event) => {
+            const sourceElement = document.getElementById(this.source);
+            if (window.getSelection) {
+                const selection = window.getSelection();
+                const range = document.createRange();
+                range.selectNodeContents(sourceElement);
+                selection.removeAllRanges();
+                selection.addRange(range);
+            }
+            else {
+                console.warn("Text select not possible: Unsupported browser.");
+            }
+            try {
+                const result = document.execCommand("copy");
+                console.debug("result: " + result);
+            }
+            catch (error) {
+                console.error("Copying text not possible");
+            }
+        });
+    }
+    get source() {
+        return this.getAttribute("source");
+    }
+    set source(name) {
+        this.setAttribute("source", name);
+    }
+}
+document.addEventListener("DOMContentLoaded", function (event) {
+    if (window.customElements.get("demo-copy-to-clipboard") == null) {
+        window.customElements.define("demo-copy-to-clipboard", DemoCopyToClipboard);
+    }
+});
+//# sourceMappingURL=demo-copy-to-clipboard.js.map
\ No newline at end of file
diff --git a/tobago-example/tobago-example-demo/src/main/webapp/js/demo-copy-to-clipboard.js.map b/tobago-example/tobago-example-demo/src/main/webapp/js/demo-copy-to-clipboard.js.map
new file mode 100644
index 0000000..655c877
--- /dev/null
+++ b/tobago-example/tobago-example-demo/src/main/webapp/js/demo-copy-to-clipboard.js.map
@@ -0,0 +1 @@
+{"version":3,"file":"demo-copy-to-clipboard.js","sourceRoot":"","sources":["../../../../npm/ts/demo-copy-to-clipboard.ts"],"names":[],"mappings":"AAAA;;;;;;;;;;;;;;;GAeG;AAEH,MAAM,mBAAoB,SAAQ,WAAW;IAE3C;QACE,KAAK,EAAE,CAAC;IACV,CAAC;IAED,iBAAiB;QACf,IAAI,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,KAAiB,EAAE,EAAE;YACnD,MAAM,aAAa,GAAG,QAAQ,CAAC,cAAc,CAAC,IAAI,CAAC,MAAM,CAAC,CAAC;YAE3D,IAAI,MAAM,CAAC,YAAY,EAAE;gBACvB,MAAM,SAAS,GAAG,MAAM,CAAC,YAAY,EAAE,CAAC;gBACxC,MAAM,KAAK,GAAG,QAAQ,CAAC,WAAW,EAAE,CAA [...]
\ No newline at end of file