Skip to content

Commit 07a45ef

Browse files
committed
v1.0.2 - Update
1 parent 6939c28 commit 07a45ef

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

45 files changed

+580
-618
lines changed

.babelrc

-22
This file was deleted.

.browserslistrc

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
> 1%
2+
last 2 versions
3+
not ie <= 8

.editorconfig

-9
This file was deleted.

.eslintignore

-2
This file was deleted.

.eslintrc.js

+10-11
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,14 @@
1-
// http://eslint.org/docs/user-guide/configuring
2-
31
module.exports = {
4-
"extends": [
5-
'plugin:vue/essential',
6-
'@vue/standard'
7-
],
8-
"parserOptions": {
9-
"parser": "babel-eslint"
2+
root: true,
3+
env: {
4+
node: true
105
},
11-
"root": true,
12-
"env": {
13-
"node": true
6+
extends: ["plugin:vue/essential", "@vue/prettier"],
7+
rules: {
8+
"no-console": process.env.NODE_ENV === "production" ? "error" : "off",
9+
"no-debugger": process.env.NODE_ENV === "production" ? "error" : "off"
1410
},
11+
parserOptions: {
12+
parser: "babel-eslint"
13+
}
1514
};

babel.config.js

+3
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
module.exports = {
2+
presets: ["@vue/app"]
3+
};

package.json

+18-41
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,32 @@
11
{
22
"name": "vue-material-dashboard",
3-
"version": "1.0.1",
3+
"version": "1.0.2",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve --open",
7+
"dev": "npm run serve",
78
"build": "vue-cli-service build",
8-
"lint": "vue-cli-service lint",
9-
"dev": "npm run serve"
9+
"lint": "vue-cli-service lint"
1010
},
1111
"dependencies": {
12-
"chartist": "0.11.0",
13-
"google-maps": "3.2.1",
14-
"vue": "2.5.16",
12+
"chartist": "^0.11.0",
13+
"google-maps": "^3.3.0",
14+
"vue": "^2.5.17",
1515
"vue-clickaway": "2.2.2",
1616
"vue-material": "1.0.0-beta-8",
17-
"vue-router": "3.0.1"
17+
"vue-router": "^3.0.1"
1818
},
1919
"devDependencies": {
20-
"@vue/cli-plugin-babel": "3.0.0-beta.15",
21-
"@vue/cli-plugin-eslint": "3.0.0-beta.15",
22-
"@vue/cli-service": "3.0.0-beta.15",
23-
"@vue/eslint-config-standard": "3.0.0-rc.3",
24-
"babel-plugin-component": "1.1.1",
25-
"babel-plugin-module-resolver": "3.1.1",
26-
"babel-plugin-transform-runtime": "6.23.0",
27-
"es6-promise": "4.2.4",
28-
"lint-staged": "7.2.0",
29-
"node-sass": "4.9.2",
30-
"sass-loader": "7.0.3",
31-
"vue-template-compiler": "2.5.16"
32-
},
33-
"postcss": {
34-
"plugins": {
35-
"autoprefixer": {}
36-
}
37-
},
38-
"browserslist": [
39-
"> 1%",
40-
"last 2 versions",
41-
"not ie <= 8"
42-
],
43-
"author": "dragosct <[email protected]>",
44-
"description": "Vue Material Dashboard",
45-
"lint-staged": {
46-
"*.js": [
47-
"vue-cli-service lint",
48-
"git add"
49-
],
50-
"*.vue": [
51-
"vue-cli-service lint",
52-
"git add"
53-
]
20+
"@vue/cli-plugin-babel": "^3.0.1",
21+
"@vue/cli-plugin-eslint": "^3.0.1",
22+
"@vue/cli-service": "^3.0.1",
23+
"@vue/eslint-config-prettier": "^4.0.1",
24+
"babel-eslint": "^10.0.1",
25+
"es6-promise": "^4.2.5",
26+
"eslint": "^5.9.0",
27+
"eslint-plugin-vue": "^5.0.0-beta.4",
28+
"node-sass": "^4.10.0",
29+
"sass-loader": "^7.1.0",
30+
"vue-template-compiler": "^2.5.17"
5431
}
5532
}

postcss.config.js

+5
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
module.exports = {
2+
plugins: {
3+
autoprefixer: {}
4+
}
5+
};

src/App.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -3,5 +3,5 @@
33
</template>
44

55
<script>
6-
export default{}
6+
export default {};
77
</script>

src/components/Cards/ChartCard.vue

+28-24
Original file line numberDiff line numberDiff line change
@@ -15,30 +15,30 @@
1515
</template>
1616
<script>
1717
export default {
18-
name: 'chart-card',
18+
name: "chart-card",
1919
props: {
2020
footerText: {
2121
type: String,
22-
default: ''
22+
default: ""
2323
},
2424
headerTitle: {
2525
type: String,
26-
default: 'Chart title'
26+
default: "Chart title"
2727
},
2828
chartType: {
2929
type: String,
30-
default: 'Line' // Line | Pie | Bar
30+
default: "Line" // Line | Pie | Bar
3131
},
3232
chartOptions: {
3333
type: Object,
3434
default: () => {
35-
return {}
35+
return {};
3636
}
3737
},
3838
chartResponsiveOptions: {
3939
type: Array,
4040
default: () => {
41-
return []
41+
return [];
4242
}
4343
},
4444
chartData: {
@@ -47,42 +47,46 @@ export default {
4747
return {
4848
labels: [],
4949
series: []
50-
}
50+
};
5151
}
5252
},
5353
dataBackgroundColor: {
5454
type: String,
55-
default: ''
55+
default: ""
5656
}
5757
},
58-
data () {
58+
data() {
5959
return {
60-
chartId: 'no-id'
61-
}
60+
chartId: "no-id"
61+
};
6262
},
6363
methods: {
6464
/***
6565
* Initializes the chart by merging the chart options sent via props and the default chart options
6666
*/
67-
initChart () {
68-
var chartIdQuery = `#${this.chartId}`
69-
this.$Chartist[this.chartType](chartIdQuery, this.chartData, this.chartOptions)
67+
initChart() {
68+
var chartIdQuery = `#${this.chartId}`;
69+
this.$Chartist[this.chartType](
70+
chartIdQuery,
71+
this.chartData,
72+
this.chartOptions
73+
);
7074
},
7175
/***
7276
* Assigns a random id to the chart
7377
*/
74-
updateChartId () {
75-
var currentTime = new Date().getTime().toString()
76-
var randomInt = this.getRandomInt(0, currentTime)
77-
this.chartId = `div_${randomInt}`
78+
updateChartId() {
79+
var currentTime = new Date().getTime().toString();
80+
var randomInt = this.getRandomInt(0, currentTime);
81+
this.chartId = `div_${randomInt}`;
7882
},
79-
getRandomInt (min, max) {
80-
return Math.floor(Math.random() * (max - min + 1)) + min
83+
getRandomInt(min, max) {
84+
return Math.floor(Math.random() * (max - min + 1)) + min;
8185
}
8286
},
83-
mounted () {
84-
this.updateChartId()
85-
this.$nextTick(this.initChart)
87+
mounted() {
88+
this.updateChartId();
89+
this.$nextTick(this.initChart);
8690
}
87-
}
91+
};
8892
</script>

src/components/Cards/NavTabsCard.vue

+2-3
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88

99
<script>
1010
export default {
11-
name: 'nav-tabs-card'
12-
}
13-
11+
name: "nav-tabs-card"
12+
};
1413
</script>

src/components/Cards/StatsCard.vue

+3-3
Original file line numberDiff line numberDiff line change
@@ -15,12 +15,12 @@
1515
</template>
1616
<script>
1717
export default {
18-
name: 'stats-card',
18+
name: "stats-card",
1919
props: {
2020
dataBackgroundColor: {
2121
type: String,
22-
default: ''
22+
default: ""
2323
}
2424
}
25-
}
25+
};
2626
</script>

src/components/Dropdown.vue

+9-9
Original file line numberDiff line numberDiff line change
@@ -12,24 +12,24 @@
1212
</div>
1313
</template>
1414
<script>
15-
export default{
16-
name: 'drop-down',
15+
export default {
16+
name: "drop-down",
1717
props: {
1818
title: String,
1919
icon: String
2020
},
21-
data () {
21+
data() {
2222
return {
2323
isOpen: false
24-
}
24+
};
2525
},
2626
methods: {
27-
toggleDropDown () {
28-
this.isOpen = !this.isOpen
27+
toggleDropDown() {
28+
this.isOpen = !this.isOpen;
2929
},
30-
closeDropDown () {
31-
this.isOpen = false
30+
closeDropDown() {
31+
this.isOpen = false;
3232
}
3333
}
34-
}
34+
};
3535
</script>

0 commit comments

Comments
 (0)