From 2f372c9644f221ff3d300ef56c09a420c9eec50f Mon Sep 17 00:00:00 2001 From: Ademola Adegbuyi Date: Sat, 2 Dec 2017 04:47:55 +0100 Subject: [PATCH] Add Vue Material Example --- examples/with-vue-material/README.md | 7 ++ examples/with-vue-material/nuxt.config.js | 25 +++++ examples/with-vue-material/package.json | 13 +++ examples/with-vue-material/pages/index.vue | 106 ++++++++++++++++++ .../with-vue-material/plugins/vue-material.js | 4 + 5 files changed, 155 insertions(+) create mode 100644 examples/with-vue-material/README.md create mode 100644 examples/with-vue-material/nuxt.config.js create mode 100644 examples/with-vue-material/package.json create mode 100644 examples/with-vue-material/pages/index.vue create mode 100644 examples/with-vue-material/plugins/vue-material.js diff --git a/examples/with-vue-material/README.md b/examples/with-vue-material/README.md new file mode 100644 index 0000000000..2cd080e524 --- /dev/null +++ b/examples/with-vue-material/README.md @@ -0,0 +1,7 @@ +# Nuxt With Vue-Material + +## Compatibility + +Vue-Material >= 1.0.0beta + +[View Demo](https://nuxt-vue-material.now.sh) diff --git a/examples/with-vue-material/nuxt.config.js b/examples/with-vue-material/nuxt.config.js new file mode 100644 index 0000000000..38d84fe8c0 --- /dev/null +++ b/examples/with-vue-material/nuxt.config.js @@ -0,0 +1,25 @@ +module.exports = { + head: { + meta: [ + { + name: 'viewport', + content: 'width=device-width, initial-scale=1, minimal-ui' + } + ], + link: [ + { + rel: 'stylesheet', + href: 'https://fonts.googleapis.com/css?family=Roboto:300,400,500,700,400italic|Material+Icons' + }, + { + rel: 'stylesheet', + href: 'https://unpkg.com/vue-material@beta/dist/vue-material.min.css' + }, + { + rel: 'stylesheet', + href: 'https://unpkg.com/vue-material@beta/dist/theme/default.css' + } + ] + }, + plugins: ['~/plugins/vue-material'] +} diff --git a/examples/with-vue-material/package.json b/examples/with-vue-material/package.json new file mode 100644 index 0000000000..4a59a31a2d --- /dev/null +++ b/examples/with-vue-material/package.json @@ -0,0 +1,13 @@ +{ + "name": "with-vue-material", + "version": "1.0.0", + "dependencies": { + "nuxt": "latest", + "vue-material": "^1.0.0-beta-6" + }, + "scripts": { + "dev": "nuxt", + "build": "nuxt build", + "start": "nuxt start" + } +} diff --git a/examples/with-vue-material/pages/index.vue b/examples/with-vue-material/pages/index.vue new file mode 100644 index 0000000000..fd278fadf0 --- /dev/null +++ b/examples/with-vue-material/pages/index.vue @@ -0,0 +1,106 @@ + + + + + \ No newline at end of file diff --git a/examples/with-vue-material/plugins/vue-material.js b/examples/with-vue-material/plugins/vue-material.js new file mode 100644 index 0000000000..3f64c62cc1 --- /dev/null +++ b/examples/with-vue-material/plugins/vue-material.js @@ -0,0 +1,4 @@ +import Vue from 'vue' +import VueMaterial from 'vue-material' + +Vue.use(VueMaterial)