-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
dashboard: fix and improve build (#986)
* fix deps not built before building dashboard Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * cleanup old config; make adminTab and customTab optional Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * allow authenticator to be tree shaked; rudimetry way to have runtime args Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * allow custom tabs and admin tags to be tree shaken Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * actually tree shake out admin tab Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * put all build time config in separate object Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * fallback to test config Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * add base url to build config Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * add __init__.py so older setuptools sees ros_pydantic Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> * use header logo in login page Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com> --------- Signed-off-by: Teo Koon Peng <teokoonpeng@gmail.com>
- Loading branch information
Showing
13 changed files
with
204 additions
and
79 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
Empty file.
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,56 @@ | ||
export interface RobotResource { | ||
icon?: string; | ||
scale?: number; | ||
} | ||
|
||
export interface FleetResource { | ||
default: RobotResource; | ||
} | ||
|
||
export interface LogoResource { | ||
header: string; | ||
} | ||
|
||
export interface Resources { | ||
fleets: Record<string, FleetResource>; | ||
logos: LogoResource; | ||
} | ||
|
||
export interface TaskResource { | ||
taskDefinitionId: string; | ||
displayName?: string; | ||
} | ||
|
||
export interface StubAuthConfig { | ||
provider: 'stub'; | ||
config: null; | ||
} | ||
|
||
export interface KeycloakAuthConfig { | ||
provider: 'keycloak'; | ||
config: { | ||
url: string; | ||
realm: string; | ||
clientId: string; | ||
}; | ||
} | ||
|
||
export interface AppConfigInput { | ||
rmfServerUrl: string; | ||
trajectoryServerUrl: string; | ||
auth: KeycloakAuthConfig | StubAuthConfig; | ||
helpLink: string; | ||
reportIssue: string; | ||
pickupZones: string[]; | ||
defaultZoom: number; | ||
defaultRobotZoom: number; | ||
attributionPrefix: string; | ||
defaultMapLevel: string; | ||
allowedTasks: TaskResource[]; | ||
resources: Record<string, Resources> & Record<'default', Resources>; | ||
customTabs?: boolean; | ||
adminTab?: boolean; | ||
// FIXME(koonpeng): this is used for very specific tasks, should be removed when mission | ||
// system is implemented. | ||
cartIds: string[]; | ||
} |
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 |
---|---|---|
@@ -1,4 +1,4 @@ | ||
<!DOCTYPE html> | ||
<!doctype html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="utf-8" /> | ||
|
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 |
---|---|---|
@@ -1 +1,6 @@ | ||
/// <reference types="vite/client" /> | ||
|
||
declare const APP_CONFIG_BASE_URL: string; | ||
declare const APP_CONFIG_AUTH_PROVIDER: string; | ||
declare const APP_CONFIG_ENABLE_CUSTOM_TABS: boolean; | ||
declare const APP_CONFIG_ENABLE_ADMIN_TAB: boolean; |
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.