From 83a5d309c4d8f596204a31da1126448aa371cd1e Mon Sep 17 00:00:00 2001 From: domx4q Date: Sat, 15 Apr 2023 22:22:50 +0200 Subject: [PATCH] added current examples --- src/components/examples/Dynamic Button.vue | 36 +++++++++++ src/components/examples/HTML_Template.vue | 63 +++++++++++++++++++ src/components/examples/StaticButton.vue | 26 ++++++++ src/router/index.js | 11 ++-- src/views/extra/ExampleView.vue | 72 ++++++++++++++++++++++ 5 files changed, 203 insertions(+), 5 deletions(-) create mode 100644 src/components/examples/Dynamic Button.vue create mode 100644 src/components/examples/HTML_Template.vue create mode 100644 src/components/examples/StaticButton.vue create mode 100644 src/views/extra/ExampleView.vue diff --git a/src/components/examples/Dynamic Button.vue b/src/components/examples/Dynamic Button.vue new file mode 100644 index 00000000..cd831293 --- /dev/null +++ b/src/components/examples/Dynamic Button.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/src/components/examples/HTML_Template.vue b/src/components/examples/HTML_Template.vue new file mode 100644 index 00000000..cb4a9800 --- /dev/null +++ b/src/components/examples/HTML_Template.vue @@ -0,0 +1,63 @@ + + + + + diff --git a/src/components/examples/StaticButton.vue b/src/components/examples/StaticButton.vue new file mode 100644 index 00000000..b1fd91cc --- /dev/null +++ b/src/components/examples/StaticButton.vue @@ -0,0 +1,26 @@ + + + + + diff --git a/src/router/index.js b/src/router/index.js index 2723734d..7aec795e 100644 --- a/src/router/index.js +++ b/src/router/index.js @@ -8,10 +8,6 @@ const routes = [ component: HomeView }, { - // create a sub route folder so - // /easter/clock - // /easter/snake - path: "/easter", name: "easter", redirect: {name: "home"}, @@ -58,7 +54,12 @@ const routes = [ path: "stars", name: "stars", component: () => import("../views/extra/StarsView.vue") - } + }, + { + path: "example", + name: "example", + component: () => import("../views/extra/ExampleView.vue"), + }, ] } ] diff --git a/src/views/extra/ExampleView.vue b/src/views/extra/ExampleView.vue new file mode 100644 index 00000000..a3466f4c --- /dev/null +++ b/src/views/extra/ExampleView.vue @@ -0,0 +1,72 @@ + + + + +