style: format with prettier

This commit is contained in:
EnixCoda 2018-09-13 00:35:39 +08:00
parent 7041e17b78
commit 5c1e714b18
2 changed files with 14 additions and 8 deletions

View file

@ -19,12 +19,16 @@ export function withErrorLog(method, args) {
}
function encodeParams(params) {
return Object.keys(params).map(key => `${key}=${encodeURIComponent(JSON.stringify(params[key]))}`).join('&')
return Object.keys(params)
.map(key => `${key}=${encodeURIComponent(JSON.stringify(params[key]))}`)
.join('&')
}
function reportError(error) {
return fetch(`${LOG_ENDPOINT}?${encodeParams({
error: error && error.message || error,
path: window.location.href,
})}`)
return fetch(
`${LOG_ENDPOINT}?${encodeParams({
error: (error && error.message) || error,
path: window.location.href,
})}`
)
}

View file

@ -310,7 +310,8 @@
&-title {
border-top: 1px solid #eaecef;
padding: 6px 10px;
box-shadow: 0 1px 8px 0 rgba(0,0,0,.2), 0 3px 4px 0 rgba(0,0,0,.14), 0 3px 3px -2px rgba(0,0,0,.12);
box-shadow: 0 1px 8px 0 rgba(0, 0, 0, 0.2), 0 3px 4px 0 rgba(0, 0, 0, 0.14),
0 3px 3px -2px rgba(0, 0, 0, 0.12);
z-index: 1;
}
&-content {
@ -318,7 +319,7 @@
flex: 1;
overflow: auto;
position: relative;
.shadow-shelter {
position: absolute;
width: 100%;
@ -396,7 +397,8 @@
@keyframes rotate {
from {
transform: rotateZ(0);
} to {
}
to {
transform: rotateZ(360deg);
}
}