File tree Expand file tree Collapse file tree 3 files changed +39
-36
lines changed Expand file tree Collapse file tree 3 files changed +39
-36
lines changed Original file line number Diff line number Diff line change 1
- language : go
2
-
3
- go_import_path : github.com/UpdateHub/updatehub-ce
4
-
5
- addons :
6
- apt :
7
- sources :
8
- - sourceline : ' ppa:masterminds/glide'
9
- packages :
10
- - libarchive-dev
11
- - glide
12
-
13
1
matrix :
14
2
include :
15
- - go : " 1.10.x"
16
- install :
3
+ - language : go
4
+ go :
5
+ - " 1.11.x"
6
+ addons :
7
+ apt :
8
+ sources :
9
+ - sourceline : ' ppa:masterminds/glide'
10
+ packages :
11
+ - libarchive-dev
12
+ - glide
13
+ env :
14
+ - GO111MODULE=on
15
+ go_import_path : github.com/UpdateHub/updatehub-ce
16
+ install : true
17
+ before_install :
17
18
- glide install
18
19
script : go test -v ./...
19
- - go : " 1.11.x"
20
- script : go test -v ./...
21
- allow_failures :
22
- - go : master
23
-
24
- env :
25
- - GO111MODULE=on
26
-
27
- install : true
20
+ - language : node_js
21
+ node_js :
22
+ - " 12.0"
23
+ before_install :
24
+ - curl -o- -L https://yarnpkg.com/install.sh | bash -s -- --version "1.15.2"
25
+ - export PATH="$HOME/.yarn/bin:$PATH"
26
+ - cd ui
27
+ install :
28
+ - yarn install
29
+ script :
30
+ - yarn run lint --no-fix
Original file line number Diff line number Diff line change @@ -125,17 +125,17 @@ export default {
125
125
return this .$http
126
126
.get (' /api/packages/' + this .$route .params .uid )
127
127
.then (res => {
128
- return res .data ;
129
- });
128
+ return res .data
129
+ })
130
130
},
131
131
132
- deletePackage () {
132
+ deletePackage () {
133
133
this .$http
134
- .delete (" /api/packages/" + this .$route .params .uid + " /delete" )
135
- .then (res => {
136
- this .$router .push (" /packages" );
137
- });
138
- },
134
+ .delete (' /api/packages/' + this .$route .params .uid + ' /delete' )
135
+ .then (res => {
136
+ this .$router .push (' /packages' )
137
+ })
138
+ }
139
139
},
140
140
141
141
filters: {
Original file line number Diff line number Diff line change @@ -13,19 +13,19 @@ import RolloutList from './components/RolloutList'
13
13
import RolloutNew from './components/RolloutNew'
14
14
import RolloutDetails from './components/RolloutDetails'
15
15
16
- function errorResponseHandler ( error ) {
16
+ function errorResponseHandler ( error ) {
17
17
if ( error . response . status === 401 ) {
18
- app . currentUser = null ;
19
- router . push ( " /login?redirect=" + "/" )
18
+ app . currentUser = null
19
+ router . push ( ' /login?redirect=' + '/' )
20
20
}
21
21
}
22
22
23
23
Axios . interceptors . response . use (
24
24
response => response ,
25
25
errorResponseHandler
26
- ) ;
26
+ )
27
27
28
- Vue . config . productionTip = false ;
28
+ Vue . config . productionTip = false
29
29
30
30
Vue . prototype . $http = Axios
31
31
You can’t perform that action at this time.
0 commit comments