-
-
Notifications
You must be signed in to change notification settings - Fork 13
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge remote-tracking branch 'upstream/main' into work
- Loading branch information
Showing
17 changed files
with
126 additions
and
112 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
import { routesById } from "data/routeData"; | ||
import { PARAMS } from "./paramsData"; | ||
|
||
interface MapDetail { | ||
from: string; | ||
to: string; | ||
} | ||
|
||
interface QueryParamDetail { | ||
map: MapDetail; | ||
} | ||
|
||
interface BeamDetail { | ||
name: string; | ||
url: string; | ||
queryParams: QueryParamDetail[]; | ||
} | ||
|
||
interface Beam { | ||
[key: string]: BeamDetail[]; | ||
} | ||
|
||
const BEAM: Beam = { | ||
[routesById.colorpicker.id]: [ | ||
{ | ||
name: routesById.shadesandtints.title, | ||
url: routesById.shadesandtints.path, | ||
queryParams: [{ map: { from: PARAMS.color, to: PARAMS.color } }], | ||
}, | ||
], | ||
[routesById.shadesandtints.id]: [ | ||
{ | ||
name: routesById.colorpicker.title, | ||
url: routesById.colorpicker.path, | ||
queryParams: [{ map: { from: PARAMS.color, to: PARAMS.color } }], | ||
}, | ||
], | ||
}; | ||
|
||
export type { BeamDetail, Beam, QueryParamDetail }; | ||
export { BEAM }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
import { routesById } from "data/routeData"; | ||
|
||
type HelpEntry = { | ||
description: string; | ||
}; | ||
|
||
interface Help { | ||
[key: string]: HelpEntry; | ||
} | ||
|
||
const HELP: Help = { | ||
[routesById.colorpicker.id]: { | ||
description: "Color generator tool", | ||
}, | ||
[routesById.shadesandtints.id]: { | ||
description: "Color generator tool", | ||
}, | ||
}; | ||
|
||
export type { HelpEntry }; | ||
export { HELP }; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
export const PARAMS = { | ||
color: "color", | ||
format: "format", | ||
percentage: "percentage", | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.