From 7417565fa54439499499a1f4c2154c98f4bbbf75 Mon Sep 17 00:00:00 2001 From: Jan Andrle Date: Tue, 26 Sep 2023 09:40:00 +0200 Subject: [PATCH] :bricks: move components, exports, and index files to examples directory --- {test => examples}/components/fullNameComponent.js | 8 +++++++- {test => examples}/components/todosComponent.js | 0 {test => examples}/components/webComponent.js | 0 {test => examples}/exports.js | 0 {test => examples}/index-nosignals.html | 0 {test => examples}/index.html | 0 {test => examples}/index.js | 0 7 files changed, 7 insertions(+), 1 deletion(-) rename {test => examples}/components/fullNameComponent.js (72%) rename {test => examples}/components/todosComponent.js (100%) rename {test => examples}/components/webComponent.js (100%) rename {test => examples}/exports.js (100%) rename {test => examples}/index-nosignals.html (100%) rename {test => examples}/index.html (100%) rename {test => examples}/index.js (100%) diff --git a/test/components/fullNameComponent.js b/examples/components/fullNameComponent.js similarity index 72% rename from test/components/fullNameComponent.js rename to examples/components/fullNameComponent.js index d9143d5..dfbf687 100644 --- a/test/components/fullNameComponent.js +++ b/examples/components/fullNameComponent.js @@ -1,4 +1,4 @@ -import { style, el, on, S } from '../exports.js'; +import { style, el, on, S, namespace } from '../exports.js'; const className= style.host(fullNameComponent).css` :host form{ display: flex; @@ -23,6 +23,12 @@ export function fullNameComponent(){ el("strong", "Full name"), ": ", el("#text", full_name) + ), + namespace("svg").append( + el("svg", { viewBox: "0 0 240 80", style: { height: "80px", display: "block" } }).append( + //el("style", { }) + el("text", { x: 20, y: 35, textContent: "Text" }) + ) ) ); } diff --git a/test/components/todosComponent.js b/examples/components/todosComponent.js similarity index 100% rename from test/components/todosComponent.js rename to examples/components/todosComponent.js diff --git a/test/components/webComponent.js b/examples/components/webComponent.js similarity index 100% rename from test/components/webComponent.js rename to examples/components/webComponent.js diff --git a/test/exports.js b/examples/exports.js similarity index 100% rename from test/exports.js rename to examples/exports.js diff --git a/test/index-nosignals.html b/examples/index-nosignals.html similarity index 100% rename from test/index-nosignals.html rename to examples/index-nosignals.html diff --git a/test/index.html b/examples/index.html similarity index 100% rename from test/index.html rename to examples/index.html diff --git a/test/index.js b/examples/index.js similarity index 100% rename from test/index.js rename to examples/index.js