From 7da306047fedbcf73c6f1e329ee8e07393776b84 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Tue, 7 Aug 2018 13:19:18 -0400 Subject: [PATCH 01/10] Add back app root --- templates/base.html | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/templates/base.html b/templates/base.html index 185cd205..8416032f 100644 --- a/templates/base.html +++ b/templates/base.html @@ -16,6 +16,7 @@
+ {% block template_vars %}{% endblock %} {% include 'navigation/topbar.html' %} @@ -33,7 +34,6 @@
{% include 'footer.html' %} - {% block modal %}{% endblock %} From 3f752280f267f70b7610506fae101fb2271e2bf6 Mon Sep 17 00:00:00 2001 From: Andrew Croce Date: Tue, 7 Aug 2018 13:42:29 -0400 Subject: [PATCH 02/10] trying to add a textinput component --- js/components/text_input.js | 3 +++ js/index.js | 9 ++++++++- templates/styleguide.html | 20 +++++++++++--------- 3 files changed, 22 insertions(+), 10 deletions(-) create mode 100644 js/components/text_input.js diff --git a/js/components/text_input.js b/js/components/text_input.js new file mode 100644 index 00000000..8baf14b8 --- /dev/null +++ b/js/components/text_input.js @@ -0,0 +1,3 @@ +export default { + name: 'textinput' +} diff --git a/js/index.js b/js/index.js index 72dbda3d..b1d81898 100644 --- a/js/index.js +++ b/js/index.js @@ -1,6 +1,12 @@ import classes from '../styles/atat.scss' import Vue from 'vue/dist/vue' +import TextInput from './components/text_input' + +const components = { + TextInput +} + const app = new Vue({ el: '#app-root', methods: { @@ -17,5 +23,6 @@ const app = new Vue({ styleguideModal: false, } } - } + }, + components: components }) diff --git a/templates/styleguide.html b/templates/styleguide.html index b57e45ac..dd313184 100644 --- a/templates/styleguide.html +++ b/templates/styleguide.html @@ -130,15 +130,17 @@
-
- - -
+ +
+ + +
+