mirror of
https://github.com/casdoor/casdoor.git
synced 2025-07-05 05:50:19 +08:00
feat(web): add lint (#875)
* feat: add lint * feat: fix lint error * chore: add ignore file * chore: close indent
This commit is contained in:
@ -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) {
|
||||
|
Reference in New Issue
Block a user