mirror of
https://github.com/PeWu/topola-viewer.git
synced 2026-05-26 23:26:15 +00:00
Run prettier
This commit is contained in:
@@ -141,10 +141,7 @@ interface Arguments {
|
|||||||
config: Config;
|
config: Config;
|
||||||
}
|
}
|
||||||
|
|
||||||
function getParamFromSearch(
|
function getParamFromSearch(name: string, search: queryString.ParsedQuery) {
|
||||||
name: string,
|
|
||||||
search: queryString.ParsedQuery,
|
|
||||||
) {
|
|
||||||
const value = search[name];
|
const value = search[name];
|
||||||
return typeof value === 'string' ? value : undefined;
|
return typeof value === 'string' ? value : undefined;
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -70,7 +70,7 @@ export function argsToConfig(args: ParsedQuery<unknown>): Config {
|
|||||||
export function configToArgs(config: Config): ParsedQuery {
|
export function configToArgs(config: Config): ParsedQuery {
|
||||||
const result: ParsedQuery = {};
|
const result: ParsedQuery = {};
|
||||||
const color = COLOR_ARG_INVERSE.get(config.color);
|
const color = COLOR_ARG_INVERSE.get(config.color);
|
||||||
if (color){
|
if (color) {
|
||||||
result.c = color;
|
result.c = color;
|
||||||
}
|
}
|
||||||
const id = ID_ARG_INVERSE.get(config.id);
|
const id = ID_ARG_INVERSE.get(config.id);
|
||||||
|
|||||||
Reference in New Issue
Block a user