Skip to content

Commit 6268362

Browse files
authoredMar 26, 2022
Upgrade all packages and reinit project. (#25)
1 parent 5ea8f86 commit 6268362

15 files changed

+20461
-8864
lines changed
 

‎.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ node_modules
1010
npm-debug.log*
1111
yarn-debug.log*
1212
yarn-error.log*
13+
pnpm-debug.log*
1314

1415
# Editor directories and files
1516
.idea

‎.prettierrc.js

-10
This file was deleted.

‎LICENSE ‎LICENSE.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
MIT License
1+
# MIT License
22

3-
Copyright (c) 2019 MTGJSON
3+
Copyright © 2019 - Eric Lakatos
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎README.md

+16-8
Original file line numberDiff line numberDiff line change
@@ -3,21 +3,29 @@
33
This Vue/Chart.js-based data visualization fetches Magic: The Gathering JSON data and charts the various card "types" present on cards for a single MTG set.
44

55
## Project setup
6-
```
7-
yarn
6+
7+
```sh
8+
npm install
89
```
910

1011
### Compiles and hot-reloads for development
11-
```
12-
yarn serve
12+
13+
```sh
14+
npm run serve
1315
```
1416

1517
### Compiles and minifies for production
16-
```
17-
yarn build
18+
19+
```sh
20+
npm run build
1821
```
1922

2023
### Lints and fixes files
24+
25+
```sh
26+
npm run lint
2127
```
22-
yarn lint
23-
```
28+
29+
### Customize configuration
30+
31+
See [Configuration Reference](https://cli.vuejs.org/config/).

‎babel.config.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
module.exports = {
22
presets: [
3-
'@vue/app'
3+
'@vue/cli-plugin-babel/preset'
44
]
55
}

‎jsconfig.json

+19
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
{
2+
"compilerOptions": {
3+
"target": "es5",
4+
"module": "esnext",
5+
"baseUrl": "./",
6+
"moduleResolution": "node",
7+
"paths": {
8+
"@/*": [
9+
"src/*"
10+
]
11+
},
12+
"lib": [
13+
"esnext",
14+
"dom",
15+
"dom.iterable",
16+
"scripthost"
17+
]
18+
}
19+
}

‎package-lock.json

+20,394
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

‎package.json

+13-12
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "mtgjson-graphs",
3-
"version": "1.0.0",
3+
"version": "1.1.0",
44
"private": true,
55
"scripts": {
66
"serve": "vue-cli-service serve --mode development",
@@ -9,23 +9,24 @@
99
},
1010
"dependencies": {
1111
"chart.js": "^2.9.3",
12-
"core-js": "^3.5.0",
13-
"node-fetch": "^3.1.1",
14-
"sass": "^1.32.11",
15-
"vue": "^2.6.11",
12+
"core-js": "^3.8.3",
13+
"vue": "^2.6.14",
1614
"vuex": "^3.1.2"
1715
},
1816
"devDependencies": {
19-
"@vue/cli-plugin-babel": "^4.1.1",
20-
"@vue/cli-plugin-eslint": "^4.1.1",
21-
"@vue/cli-service": "^4.5.12",
22-
"babel-eslint": "^10.0.3",
23-
"eslint": "^6.7.2",
24-
"eslint-plugin-vue": "^6.0.1",
17+
"@babel/core": "^7.12.16",
18+
"@babel/eslint-parser": "^7.12.16",
19+
"@vue/cli-plugin-babel": "~5.0.0",
20+
"@vue/cli-plugin-eslint": "~5.0.0",
21+
"@vue/cli-service": "~5.0.0",
22+
"babel-eslint": "^10.1.0",
23+
"eslint": "^7.32.0",
24+
"eslint-plugin-vue": "^8.0.3",
2525
"pug": "^3.0.1",
2626
"pug-plain-loader": "^1.0.0",
27+
"sass": "^1.32.11",
2728
"sass-loader": "^8.0.0",
28-
"vue-template-compiler": "^2.6.11"
29+
"vue-template-compiler": "^2.6.14"
2930
},
3031
"eslintConfig": {
3132
"root": true,

‎src/components/Graph.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ import Loader from './Loader';
3030
import Header from './Header';
3131
3232
export default {
33-
name: 'Graph',
33+
name: 'GraphComponent',
3434
components: { Loader, Header },
3535
data() {
3636
return {

‎src/components/Header.vue

+7-1
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,7 @@
44
img(class="mtg-icon" src="../assets/images/mtg-pw-icon.svg")
55
span Magic: The Gathering Card Graph
66
p.intro
7-
strong This Vue/Chart.js-based data visualization fetches and charts Magic: The Gathering JSON data for a single set of cards.
7+
strong This Vue.js/Chart.js-based data visualization fetches and charts Magic: The Gathering JSON data for a single set of cards.
88
p
99
strong How to Use:
1010
span Select a set from the options below to update the chart with a new data set. You can also select a chart type to visualize the data differently.
@@ -14,6 +14,12 @@
1414

1515
</template>
1616

17+
<script>
18+
export default {
19+
name: 'HeaderComponent'
20+
};
21+
</script>
22+
1723
<style lang="scss" scoped>
1824
@import '../assets/styles/includes/variables';
1925

‎src/components/Loader.vue

+1-1
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55

66
<script>
77
export default {
8-
name: "Loader",
8+
name: "LoaderComponent",
99
computed: {
1010
isLoading() {
1111
return this.$store.getters.isLoading;

‎src/components/Page.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -9,10 +9,10 @@
99

1010
<script>
1111
import Header from './Header';
12-
import Graph from './Graph.vue';
12+
import Graph from './Graph';
1313
1414
export default {
15-
name: 'Page',
15+
name: 'PageComponent',
1616
components: { Header, Graph }
1717
}
1818
</script>

‎src/store.js

-2
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,6 @@
11
import Vue from 'vue';
22
import Vuex from 'vuex';
33

4-
import fetch from 'node-fetch';
5-
64
Vue.use(Vuex);
75

86
export const store = new Vuex.Store({

‎vue.config.js

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
const { defineConfig } = require('@vue/cli-service')
2+
module.exports = defineConfig({
3+
transpileDependencies: true
4+
})

‎yarn.lock

-8,824
This file was deleted.

0 commit comments

Comments
 (0)
Please sign in to comment.