feat(web): add lint (#875)

* feat: add lint

* feat: fix lint error

* chore: add ignore file

* chore: close indent
This commit is contained in:
キリサメ qianxi
2022-07-10 15:45:55 +08:00
committed by GitHub
parent 475b6da35a
commit 503d244166
121 changed files with 17023 additions and 16815 deletions

View File

@ -39,7 +39,7 @@ export function renderMessage(msg) {
}
/>
</div>
)
);
} else {
return null;
}
@ -69,26 +69,26 @@ export function renderMessageLarge(ths, msg) {
>
</Result>
</div>
)
);
} else {
return null;
}
}
function getRefinedValue(value){
return (value === null)? "" : value
function getRefinedValue(value) {
return (value === null)? "" : value;
}
export function getCasParameters(params){
export function getCasParameters(params) {
const queries = (params !== undefined) ? params : new URLSearchParams(window.location.search);
const service = getRefinedValue(queries.get("service"))
const renew = getRefinedValue(queries.get("renew"))
const gateway = getRefinedValue(queries.get("gateway"))
const service = getRefinedValue(queries.get("service"));
const renew = getRefinedValue(queries.get("renew"));
const gateway = getRefinedValue(queries.get("gateway"));
return {
service: service,
renew: renew,
gateway: gateway,
}
};
}
export function getOAuthGetParameters(params) {