mirror of
https://github.com/chinchang/web-maker.git
synced 2025-07-09 16:06:21 +02:00
upgrade node on travis n eslint fixes
This commit is contained in:
@ -1,6 +1,6 @@
|
|||||||
language: node_js
|
language: node_js
|
||||||
node_js:
|
node_js:
|
||||||
- '6.0'
|
- '8.1.2'
|
||||||
install:
|
install:
|
||||||
- npm install -g eslint
|
- npm install -g eslint
|
||||||
- npm install -g babel-eslint
|
- npm install -g babel-eslint
|
||||||
|
@ -1121,7 +1121,7 @@ runBtn, searchInput, consoleEl, consoleLogEl, logCountEl, fontStyleTag, fontStyl
|
|||||||
function onImportFileChange(e) {
|
function onImportFileChange(e) {
|
||||||
var file = e.target.files[0];
|
var file = e.target.files[0];
|
||||||
// if (!f.type.match('image.*')) {
|
// if (!f.type.match('image.*')) {
|
||||||
// continue;
|
// continue;
|
||||||
// }
|
// }
|
||||||
|
|
||||||
var reader = new FileReader();
|
var reader = new FileReader();
|
||||||
|
@ -50,9 +50,9 @@
|
|||||||
getList(input) {
|
getList(input) {
|
||||||
var url = 'https://api.cdnjs.com/libraries?search=';
|
var url = 'https://api.cdnjs.com/libraries?search=';
|
||||||
return fetch(url + input)
|
return fetch(url + input)
|
||||||
.then((response) => {
|
.then((response) => {
|
||||||
return response.json().then((json) => json.results);
|
return response.json().then((json) => json.results);
|
||||||
});
|
});
|
||||||
}
|
}
|
||||||
replaceCurrentLine(val) {
|
replaceCurrentLine(val) {
|
||||||
var lines = this.t.value.split('\n');
|
var lines = this.t.value.split('\n');
|
||||||
|
Reference in New Issue
Block a user