From 95b02a49665e5e3a590e857ef0d8b6f09f7e3ea9 Mon Sep 17 00:00:00 2001 From: sombriks Date: Wed, 19 Dec 2018 19:44:49 -0300 Subject: [PATCH] structure to generate SideDrawer screenshots --- app/app.js | 7 +++++-- app/elements/components/SideDrawer.js | 20 ++++++++++++++++++++ generate-screenshots.js | 13 +++++++------ package.json | 1 + 4 files changed, 33 insertions(+), 8 deletions(-) create mode 100644 app/elements/components/SideDrawer.js diff --git a/app/app.js b/app/app.js index 8fba8ff..5a58162 100644 --- a/app/app.js +++ b/app/app.js @@ -2,8 +2,7 @@ const Vue = require('nativescript-vue'); new Vue({ data: { - elements: [ - { + elements: [{ name: 'ActivityIndicator', component: () => require('./elements/components/ActivityIndicator') }, @@ -99,6 +98,10 @@ new Vue({ name: 'PromptDialog', component: () => require('./elements/dialogs/Prompt') }, + { + name: 'SideDrawer', + component: () => require('./elements/components/SideDrawer') + } ] }, diff --git a/app/elements/components/SideDrawer.js b/app/elements/components/SideDrawer.js new file mode 100644 index 0000000..06b667f --- /dev/null +++ b/app/elements/components/SideDrawer.js @@ -0,0 +1,20 @@ +module.exports = { + template: ` + + + + + +