Skip to content
This repository was archived by the owner on Nov 22, 2020. It is now read-only.

Commit 3653672

Browse files
committed
Update Vue & dependencies
Fix #1
1 parent 6413326 commit 3653672

File tree

7 files changed

+2169
-10111
lines changed

7 files changed

+2169
-10111
lines changed

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
};

package-lock.json

+2,143-1,646
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

+17-17
Original file line numberDiff line numberDiff line change
@@ -1,23 +1,19 @@
11
{
22
"name": "dbots-website",
33
"version": "2.3.0",
4+
"private": true,
45
"description": "The website housing documentation for dbots",
56
"author": "Federico Grandi <[email protected]>",
6-
"contributors": [
7-
"Schuyler Cebulskie <[email protected]>",
8-
"Snazzah <[email protected]>"
9-
],
10-
"private": true,
117
"scripts": {
12-
"serve": "vue-cli-service serve",
13-
"serve:production": "vue-cli-service serve --mode production",
148
"build": "vue-cli-service build",
159
"dist": "echo Preparing for distribution... && npm i && npm run build && git add dist --force && git commit -m \"Update dist files\"",
16-
"lint": "vue-cli-service lint",
10+
"lint": "vue-cli-service lint --fix",
11+
"serve": "vue-cli-service serve",
12+
"serve:production": "vue-cli-service serve --mode production",
1713
"test": "if test \"$NODE_ENV\" = \"workflow\"; then echo ok; else echo no; fi"
1814
},
1915
"dependencies": {
20-
"core-js": "^2.6.5",
16+
"core-js": "^3.6.4",
2117
"fuse.js": "^3.4.5",
2218
"konami-code-js": "^0.8.1",
2319
"marked": "^0.7.0",
@@ -26,14 +22,18 @@
2622
"vue-router": "^3.0.3"
2723
},
2824
"devDependencies": {
29-
"@vue/cli-plugin-babel": "^3.11.0",
30-
"@vue/cli-plugin-eslint": "^3.11.0",
31-
"@vue/cli-service": "^3.11.0",
32-
"babel-eslint": "^10.0.1",
33-
"eslint": "^5.16.0",
34-
"eslint-plugin-vue": "^5.0.0",
35-
"sass": "^1.18.0",
25+
"@vue/cli-plugin-babel": "~4.3.1",
26+
"@vue/cli-plugin-eslint": "~4.3.1",
27+
"@vue/cli-service": "~4.3.1",
28+
"babel-eslint": "^10.1.0",
29+
"eslint": "^6.7.2",
30+
"eslint-plugin-vue": "^6.2.2",
31+
"sass": "^1.26.3",
3632
"sass-loader": "^7.1.0",
3733
"vue-template-compiler": "^2.6.10"
38-
}
34+
},
35+
"contributors": [
36+
"Schuyler Cebulskie <[email protected]>",
37+
"Snazzah <[email protected]>"
38+
]
3939
}

src/components/Stats.vue

+5-5
Original file line numberDiff line numberDiff line change
@@ -94,21 +94,21 @@ export default {
9494
usedBy,
9595
] = await Promise.all([
9696
fetch(
97-
'https://api.npmjs.org/downloads/range/2013-08-21:2100-08-21/dbots'
97+
'https://api.npmjs.org/downloads/range/2013-08-21:2100-08-21/dbots',
9898
).then(json, noop),
9999
fetch('https://api.github.com/repos/dbots-pkg/dbots.js').then(
100100
json,
101-
noop
101+
noop,
102102
),
103103
fetch(
104-
'https://api.github.com/repos/dbots-pkg/dbots.js/stats/contributors'
104+
'https://api.github.com/repos/dbots-pkg/dbots.js/stats/contributors',
105105
).then(json, noop),
106106
fetch(
107-
'https://api.github.com/repos/dbots-pkg/dbots.js/contributors'
107+
'https://api.github.com/repos/dbots-pkg/dbots.js/contributors',
108108
).then(json, noop),
109109
fetch('https://api.npms.io/v2/package/dbots').then(json, noop),
110110
fetch(
111-
'https://bundlephobia.com/api/size?package=dbots&record=true'
111+
'https://bundlephobia.com/api/size?package=dbots&record=true',
112112
).then(json, noop),
113113
fetch('https://api.snaz.in/v2/github/used-by/dbots-pkg/dbots.js').then(json, noop),
114114
]);

src/components/docs/class-viewer/ClassViewer.vue

+2-2
Original file line numberDiff line numberDiff line change
@@ -86,7 +86,7 @@ export default {
8686
if (this.showPrivate) props = this.clarse.props;
8787
else props = this.clarse.props.filter(p => p.access !== 'private');
8888
return props.sort((a, b) =>
89-
`${a.scope === 'static' ? 'ZZZ' : ''}${a.name}`.localeCompare(`${b.scope === 'static' ? 'ZZZ' : ''}${b.name}`)
89+
`${a.scope === 'static' ? 'ZZZ' : ''}${a.name}`.localeCompare(`${b.scope === 'static' ? 'ZZZ' : ''}${b.name}`),
9090
);
9191
},
9292
@@ -96,7 +96,7 @@ export default {
9696
if (this.showPrivate) methods = this.clarse.methods;
9797
else methods = this.clarse.methods.filter(p => p.access !== 'private');
9898
return methods.sort((a, b) =>
99-
`${a.scope === 'static' ? 'ZZZ' : ''}${a.name}`.localeCompare(`${b.scope === 'static' ? 'ZZZ' : ''}${b.name}`)
99+
`${a.scope === 'static' ? 'ZZZ' : ''}${a.name}`.localeCompare(`${b.scope === 'static' ? 'ZZZ' : ''}${b.name}`),
100100
);
101101
},
102102

src/main.js

+1-2
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
/* globals require */
21
import Vue from 'vue';
32
import marked from 'marked';
43

@@ -28,7 +27,7 @@ Vue.filter('marked', text => {
2827
if (!text) text = '**Documentation missing.**';
2928
text = text.replace(
3029
/<(info|warn)>([\s\S]+)<\/\1>/gi,
31-
'<div class="$1">$2</div>'
30+
'<div class="$1">$2</div>',
3231
);
3332
return marked(text);
3433
});

0 commit comments

Comments
 (0)