-
-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Added `dashtools gui` render.com deploy page
- Loading branch information
1 parent
04912b3
commit 9b64e3a
Showing
34 changed files
with
1,325 additions
and
186 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 |
---|---|---|
@@ -0,0 +1,3 @@ | ||
# Dashtools Dashboard | ||
|
||
Makes it easy for non CLI users to spin up the `dashtools gui` UI to deploy their dash apps. |
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,61 @@ | ||
import dash_mantine_components as dmc | ||
from dash_iconify import DashIconify | ||
|
||
# NOTIFICATION_DURATION_SECONDS = 8 | ||
|
||
|
||
def render(key: str): | ||
if key == 'FileNotFoundError': | ||
return dmc.Notification( | ||
message="The file path you provided does not exist. Please check your filepath and try again.", | ||
title="Warning", | ||
color='red', | ||
icon=[DashIconify(icon="ep:warning")], | ||
action='show', | ||
id='error-file-not-found' | ||
) | ||
elif key == 'PermissionError': | ||
return dmc.Notification( | ||
message="You do not have sufficient permission to access that file!", | ||
title="Warning", | ||
color='red', | ||
icon=[DashIconify(icon="ep:warning")], | ||
action='show', | ||
id='error-permissions' | ||
) | ||
elif key == 'FileRequiredError': | ||
return dmc.Notification( | ||
message="You must have an Open File in File Explorer to do this action!", | ||
title="Warning", | ||
color='red', | ||
icon=[DashIconify(icon="ep:warning")], | ||
action='show', | ||
id='error-permissions' | ||
) | ||
elif key == 'NameRequiredError': | ||
return dmc.Notification( | ||
message="A Render App Name is required to do this action!", | ||
title="Warning", | ||
color='red', | ||
icon=[DashIconify(icon="ep:warning")], | ||
action='show', | ||
id='error-permissions' | ||
) | ||
elif key == 'GitNotInstalledError': | ||
return dmc.Notification( | ||
message="Git must be installed on your system to deploy to Render.com!", | ||
title="Warning", | ||
color='red', | ||
icon=[DashIconify(icon="ep:warning")], | ||
action='show', | ||
id='error-permissions' | ||
) | ||
elif key == 'NotGitRepoError': | ||
return dmc.Notification( | ||
message="You must publish your project to Git before continuing!", | ||
title="Warning", | ||
color='red', | ||
icon=[DashIconify(icon="ep:warning")], | ||
action='show', | ||
id='error-permissions' | ||
) |
Binary file not shown.
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,6 @@ | ||
code { | ||
color: black; | ||
background:rgba(248, 249, 250, 0.65); | ||
padding: .1rem .3rem .2rem; | ||
border-radius: .2rem; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,10 @@ | ||
|
||
.dashtools-logo { | ||
-webkit-font-smoothing: antialiased; | ||
font-family: Inter, sans-serif; | ||
-webkit-tap-highlight-color: transparent; | ||
/* color: rgb(73, 80, 87); */ | ||
font-size: 50px; | ||
line-height: 1.55; | ||
text-decoration: none; | ||
} |
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Oops, something went wrong.