From 3095684a37be5990b9730fd43ac57aa684cc545a Mon Sep 17 00:00:00 2001 From: Jakub Juszczak Date: Sun, 3 Jul 2016 12:36:38 +0200 Subject: [PATCH] Refactor basic structure --- README.md | 12 ++++++------ {src/assets => assets}/bar.png | Bin {src/assets => assets}/doughnut.png | Bin {src/assets => assets}/line.png | Bin {src/assets => assets}/logo.png | Bin {src/assets => assets}/pie.png | Bin {src/assets => assets}/polar.png | Bin {src/assets => assets}/radar.png | Bin build/webpack.base.conf.js | 4 +--- {src => examples}/App.vue | 0 {src/examples => examples}/BarExample.js | 0 {src/examples => examples}/DoughnutExample.js | 0 {src/examples => examples}/LineExample.js | 0 {src/examples => examples}/PieExample.js | 0 {src/examples => examples}/PolarAreaExample.js | 0 {src/examples => examples}/RadarExample.js | 0 package.json | 10 ++++++++++ src/main.js | 8 -------- static/.gitkeep | 0 19 files changed, 17 insertions(+), 17 deletions(-) rename {src/assets => assets}/bar.png (100%) rename {src/assets => assets}/doughnut.png (100%) rename {src/assets => assets}/line.png (100%) rename {src/assets => assets}/logo.png (100%) rename {src/assets => assets}/pie.png (100%) rename {src/assets => assets}/polar.png (100%) rename {src/assets => assets}/radar.png (100%) rename {src => examples}/App.vue (100%) rename {src/examples => examples}/BarExample.js (100%) rename {src/examples => examples}/DoughnutExample.js (100%) rename {src/examples => examples}/LineExample.js (100%) rename {src/examples => examples}/PieExample.js (100%) rename {src/examples => examples}/PolarAreaExample.js (100%) rename {src/examples => examples}/RadarExample.js (100%) delete mode 100644 src/main.js delete mode 100644 static/.gitkeep diff --git a/README.md b/README.md index 5b65028d..61e8a077 100644 --- a/README.md +++ b/README.md @@ -72,27 +72,27 @@ export default { ### Bar Chart -![Bar](src/assets/bar.png) +![Bar](assets/bar.png) ### Line Chart -![Line](src/assets/line.png) +![Line](assets/line.png) ### Doughnut -![Doughnut](src/assets/doughnut.png) +![Doughnut](assets/doughnut.png) ### Pie -![Pie](src/assets/pie.png) +![Pie](assets/pie.png) ### Radar -![Pie](src/assets/radar.png) +![Pie](assets/radar.png) ### Polar Area -![Pie](src/assets/polar.png) +![Pie](assets/polar.png) ## Todo diff --git a/src/assets/bar.png b/assets/bar.png similarity index 100% rename from src/assets/bar.png rename to assets/bar.png diff --git a/src/assets/doughnut.png b/assets/doughnut.png similarity index 100% rename from src/assets/doughnut.png rename to assets/doughnut.png diff --git a/src/assets/line.png b/assets/line.png similarity index 100% rename from src/assets/line.png rename to assets/line.png diff --git a/src/assets/logo.png b/assets/logo.png similarity index 100% rename from src/assets/logo.png rename to assets/logo.png diff --git a/src/assets/pie.png b/assets/pie.png similarity index 100% rename from src/assets/pie.png rename to assets/pie.png diff --git a/src/assets/polar.png b/assets/polar.png similarity index 100% rename from src/assets/polar.png rename to assets/polar.png diff --git a/src/assets/radar.png b/assets/radar.png similarity index 100% rename from src/assets/radar.png rename to assets/radar.png diff --git a/build/webpack.base.conf.js b/build/webpack.base.conf.js index 0a11d740..3b76eefb 100644 --- a/build/webpack.base.conf.js +++ b/build/webpack.base.conf.js @@ -5,7 +5,7 @@ var projectRoot = path.resolve(__dirname, '../') module.exports = { entry: { - app: './src/main.js' + app: './src/index.js' }, output: { path: config.build.assetsRoot, @@ -17,8 +17,6 @@ module.exports = { fallback: [path.join(__dirname, '../node_modules')], alias: { 'src': path.resolve(__dirname, '../src'), - 'assets': path.resolve(__dirname, '../src/assets'), - 'components': path.resolve(__dirname, '../src/components'), 'BaseCharts': path.resolve(__dirname, '../src/BaseCharts') } }, diff --git a/src/App.vue b/examples/App.vue similarity index 100% rename from src/App.vue rename to examples/App.vue diff --git a/src/examples/BarExample.js b/examples/BarExample.js similarity index 100% rename from src/examples/BarExample.js rename to examples/BarExample.js diff --git a/src/examples/DoughnutExample.js b/examples/DoughnutExample.js similarity index 100% rename from src/examples/DoughnutExample.js rename to examples/DoughnutExample.js diff --git a/src/examples/LineExample.js b/examples/LineExample.js similarity index 100% rename from src/examples/LineExample.js rename to examples/LineExample.js diff --git a/src/examples/PieExample.js b/examples/PieExample.js similarity index 100% rename from src/examples/PieExample.js rename to examples/PieExample.js diff --git a/src/examples/PolarAreaExample.js b/examples/PolarAreaExample.js similarity index 100% rename from src/examples/PolarAreaExample.js rename to examples/PolarAreaExample.js diff --git a/src/examples/RadarExample.js b/examples/RadarExample.js similarity index 100% rename from src/examples/RadarExample.js rename to examples/RadarExample.js diff --git a/package.json b/package.json index ff047c7c..7cec502e 100644 --- a/package.json +++ b/package.json @@ -3,6 +3,16 @@ "version": "1.0.0", "description": "Vue wrapper for chart.js", "author": "Jakub Juszczak ", + "repository": { + "type": "git", + "url": "git+ssh://git@github.com:apertureless/vue-chartjs.git" + }, + "keywords": [ + "ChartJs", + "Vue", + "Visualisation", + "Wrapper" + ], "private": true, "main": "src/index.js", "scripts": { diff --git a/src/main.js b/src/main.js deleted file mode 100644 index 4ae1185e..00000000 --- a/src/main.js +++ /dev/null @@ -1,8 +0,0 @@ -import Vue from 'vue' -import App from './App' - -/* eslint-disable no-new */ -new Vue({ - el: 'body', - components: { App } -}) diff --git a/static/.gitkeep b/static/.gitkeep deleted file mode 100644 index e69de29b..00000000