@@ -84,7 +84,7 @@ export default {
84
84
},
85
85
computed: {
86
86
licenseAttributes () {
87
- return this .calculateAttributes (this .$props .value .shortName )
87
+ return this .$shortToAttributes (this .$props .value .shortName )
88
88
}
89
89
},
90
90
methods: {
@@ -97,32 +97,27 @@ export default {
97
97
personalDetails: this .$props .value .personalDetails
98
98
})
99
99
},
100
- calculateAttributes (shortName ) {
101
- if (shortName .includes (' CC0' )) {
102
- return { BY : false , ND : false , NC : false , SA : false }
103
- } else {
104
- const by = true
105
- const nd = !! shortName .includes (' ND' )
106
- const nc = !! shortName .includes (' NC' )
107
- const sa = !! shortName .includes (' SA' )
108
- return { BY : by, ND : nd, NC : nc, SA : sa }
109
- }
110
- },
111
100
shortLicenseName (attr ) {
112
101
if (! attr .BY ) { return ' CC0 1.0' }
113
102
let base = ' CC BY'
114
103
if (attr .NC ) { base += ' -NC' }
115
- if (! attr .ND && attr .SA ) { base += ' -SA' } // eslint-disable-line brace-style
116
- else if (attr .ND ) { base += ' -ND' }
104
+ if (! attr .ND && attr .SA ) {
105
+ base += ' -SA'
106
+ } else if (attr .ND ) {
107
+ base += ' -ND'
108
+ }
117
109
base += ' 4.0'
118
110
return base
119
111
},
120
112
fullLicenseName (attr ) {
121
113
if (! attr .BY ) { return ' CC0 1.0 Universal' }
122
114
let base = ' Attribution'
123
115
if (attr .NC ) { base += ' -NonCommercial' }
124
- if (! attr .ND && attr .SA ) { base += ' -ShareAlike' } // eslint-disable-line brace-style
125
- else if (attr .ND ) { base += ' -NoDerivatives' }
116
+ if (! attr .ND && attr .SA ) {
117
+ base += ' -ShareAlike'
118
+ } else if (attr .ND ) {
119
+ base += ' -NoDerivatives'
120
+ }
126
121
base += ' 4.0 International'
127
122
return base
128
123
},
@@ -168,7 +163,6 @@ export default {
168
163
font-size :2rem ;
169
164
path {
170
165
fill : black ;
171
- /* opacity: 60%;*/
172
166
}
173
167
}
174
168
}
@@ -216,11 +210,10 @@ export default {
216
210
& .unselected {
217
211
a .step-link {
218
212
div .step-marker {
219
- /* background: #0e71de!important; */
220
- span > svg > path {
221
- opacity : 50 % !important ;
213
+ span > svg > path {
214
+ opacity : 50 % !important ;
215
+ }
222
216
}
223
- }
224
217
div .step-details span .step-title {
225
218
font-weight : 400 ;
226
219
opacity : 50% ;
0 commit comments