-
-
Notifications
You must be signed in to change notification settings - Fork 23
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #588 from Badgerati/themes_new_and_custom
Renames Dark theme to Midnight, and replaces Dark theme with a new Dark theme; Adds new Sepia and Forest inbuilt themes; Adds support for building custom themes directly using Pode.Web functions
- Loading branch information
Showing
38 changed files
with
1,768 additions
and
1,114 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
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.
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.
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,25 @@ | ||
Import-Module Pode -MaximumVersion 2.99.99 -Force | ||
Import-Module ..\src\Pode.Web.psm1 -Force | ||
|
||
Start-PodeServer { | ||
# add a simple endpoint | ||
Add-PodeEndpoint -Address localhost -Port 8090 -Protocol Http | ||
New-PodeLoggingMethod -Terminal | Enable-PodeErrorLogging | ||
|
||
# set the use of templates, and set a login page | ||
Use-PodeWebTemplates -Title 'Badges' -Theme Dark | ||
|
||
# set the home page controls (just a simple paragraph) | ||
$card = New-PodeWebCard -Content @( | ||
New-PodeWebBadge -Value 'Primary' -Colour Blue | ||
New-PodeWebBadge -Value 'Secondary' -Colour Grey | ||
New-PodeWebBadge -Value 'Success' -Colour Green | ||
New-PodeWebBadge -Value 'Danger' -Colour Red | ||
New-PodeWebBadge -Value 'Warning' -Colour Yellow | ||
New-PodeWebBadge -Value 'Info' -Colour Cyan | ||
New-PodeWebBadge -Value 'Light' -Colour Light | ||
New-PodeWebBadge -Value 'Dark' -Colour Dark | ||
) | ||
|
||
Add-PodeWebPage -Name 'Home' -Path '/' -HomePage -Content $card -Title 'Badges' | ||
} |
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,35 @@ | ||
Import-Module Pode -MaximumVersion 2.99.99 -Force | ||
Import-Module ..\src\Pode.Web.psm1 -Force | ||
|
||
Start-PodeServer { | ||
# add a simple endpoint | ||
Add-PodeEndpoint -Address localhost -Port 8090 -Protocol Http | ||
New-PodeLoggingMethod -Terminal | Enable-PodeErrorLogging | ||
|
||
# set the use of templates, and set a login page | ||
Use-PodeWebTemplates -Title 'Buttons' -Theme Dark | ||
|
||
# set the home page controls (just a simple paragraph) | ||
$card = New-PodeWebCard -Content @( | ||
New-PodeWebButton -Name 'Primary' -Colour Blue -ScriptBlock {} | ||
New-PodeWebButton -Name 'Secondary' -Colour Grey -ScriptBlock {} | ||
New-PodeWebButton -Name 'Success' -Colour Green -ScriptBlock {} | ||
New-PodeWebButton -Name 'Danger' -Colour Red -ScriptBlock {} | ||
New-PodeWebButton -Name 'Warning' -Colour Yellow -ScriptBlock {} | ||
New-PodeWebButton -Name 'Info' -Colour Cyan -ScriptBlock {} | ||
New-PodeWebButton -Name 'Light' -Colour Light -ScriptBlock {} | ||
New-PodeWebButton -Name 'Dark' -Colour Dark -ScriptBlock {} | ||
) | ||
$card2 = New-PodeWebCard -Content @( | ||
New-PodeWebButton -Name 'Primary_O' -Colour Blue -ScriptBlock {} -Outline | ||
New-PodeWebButton -Name 'Secondary_O' -Colour Grey -ScriptBlock {} -Outline | ||
New-PodeWebButton -Name 'Success_O' -Colour Green -ScriptBlock {} -Outline | ||
New-PodeWebButton -Name 'Danger_O' -Colour Red -ScriptBlock {} -Outline | ||
New-PodeWebButton -Name 'Warning_O' -Colour Yellow -ScriptBlock {} -Outline | ||
New-PodeWebButton -Name 'Info_O' -Colour Cyan -ScriptBlock {} -Outline | ||
New-PodeWebButton -Name 'Light_O' -Colour Light -ScriptBlock {} -Outline | ||
New-PodeWebButton -Name 'Dark_O' -Colour Dark -ScriptBlock {} -Outline | ||
) | ||
|
||
Add-PodeWebPage -Name 'Home' -Path '/' -HomePage -Content $card, $card2 -Title 'Buttons' | ||
} |
Oops, something went wrong.