-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
225 additions
and
165 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,30 +1,28 @@ | ||
export const Gray1 = "#F1F6FE"; | ||
export const Gray2 = "#E3EBF7"; | ||
export const Gray3 = "#d0dae8"; | ||
export const Gray4 = "#ACBED5"; | ||
export const DarkGray = "#A9A9A9"; | ||
export const Gray1 = '#F1F6FE'; | ||
export const Gray2 = '#E3EBF7'; | ||
export const Gray3 = '#d0dae8'; | ||
export const Gray4 = '#ACBED5'; | ||
export const DarkGray = '#A9A9A9'; | ||
|
||
export const TextDark = "#0B1E58"; | ||
export const TextDark = '#0B1E58'; | ||
|
||
export const PrimaryBlue = "#3366FF"; | ||
export const PrimaryBlueDark = "#174BE6"; | ||
export const PrimaryBlue = '#3366FF'; | ||
export const PrimaryBlueDark = '#174BE6'; | ||
|
||
// https://colorhunt.co/palette/167893 | ||
export const DarkBlue = "#0f4c75"; | ||
export const MediumBlue = "#3282b8"; | ||
export const LightBlue = "#bbe1fa"; | ||
export const White = "#FFFFFF"; | ||
export const Red = "#fa1e0e"; | ||
export const DarkBlue = '#0f4c75'; | ||
export const MediumBlue = '#3282b8'; | ||
export const LightBlue = '#bbe1fa'; | ||
export const White = '#FFFFFF'; | ||
export const Red = '#fa1e0e'; | ||
|
||
export const LightGreen = "#52b788"; | ||
export const LightGreen = '#52b788'; | ||
|
||
export const Background = "#1b262c"; | ||
export const Background = '#1b262c'; | ||
export const Button = LightBlue; | ||
export const ButtonHover = LightGreen; | ||
export const Heading = MediumBlue; | ||
export const MainContent = Gray3; | ||
export const MainContentAlert = Red; | ||
export const Black = "#000000" | ||
export const Black = '#000000'; | ||
export const DisabledButton = DarkGray; | ||
|
||
|
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,24 +1,21 @@ | ||
import { executeCommandSync, executeCommandSyncReturnStdout } from "./ExecuteCommand"; | ||
import { | ||
executeCommandSync, | ||
executeCommandSyncReturnStdout, | ||
} from './ExecuteCommand'; | ||
|
||
const doesFileExist = (filename: string): boolean => { | ||
const cmd = "test -f " + filename; | ||
export const doesFileExist = (filename: string): boolean => { | ||
const cmd = 'test -f ' + filename; | ||
const result = executeCommandSync(cmd); | ||
return result == 0; | ||
}; | ||
|
||
//TODO: add error handling | ||
const readlink = (file: string): string => { | ||
return executeCommandSyncReturnStdout("readlink -f " + file).trim(); | ||
} | ||
// TODO: add error handling | ||
export const readlink = (file: string): string => { | ||
return executeCommandSyncReturnStdout('readlink -f ' + file).trim(); | ||
}; | ||
|
||
const which = (tool: string): boolean => { | ||
const cmd = "which " + tool; | ||
export const which = (tool: string): boolean => { | ||
const cmd = 'which ' + tool; | ||
const result = executeCommandSync(cmd); | ||
return result == 0; | ||
} | ||
|
||
export { | ||
doesFileExist, | ||
readlink, | ||
which | ||
}; | ||
}; |
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.