Add src/config.ps1
This commit is contained in:
31
src/config.ps1
Normal file
31
src/config.ps1
Normal file
@@ -0,0 +1,31 @@
|
|||||||
|
function Initialize-SamyConfig {
|
||||||
|
[CmdletBinding()]
|
||||||
|
param()
|
||||||
|
|
||||||
|
# Listening port for HTTP UI
|
||||||
|
$Script:Port = 8082
|
||||||
|
|
||||||
|
# Configurable endpoints
|
||||||
|
$Global:DattoWebhookUrl = 'https://bananas.svstools.ca/dattormm'
|
||||||
|
|
||||||
|
# Repo values are already set by samy.ps1 bootstrap:
|
||||||
|
# $Script:SamyRepoBase
|
||||||
|
# $Script:SamyBranch
|
||||||
|
|
||||||
|
if (Get-Command Set-SvsPrinterRepoConfig -ErrorAction SilentlyContinue) {
|
||||||
|
Set-SvsPrinterRepoConfig -RepoBase $Script:SamyRepoBase -Branch $Script:SamyBranch
|
||||||
|
}
|
||||||
|
|
||||||
|
# Build all remote URLs
|
||||||
|
$Script:SamyTopLogoUrl = "$Script:SamyRepoBase/$Script:SamyBranch/SVS_logo.svg?raw=1"
|
||||||
|
$Script:SamyBgLogoUrl = "$Script:SamyRepoBase/$Script:SamyBranch/SAMY.png?raw=1"
|
||||||
|
$Script:SamyFaviconUrl = "$Script:SamyRepoBase/$Script:SamyBranch/SVS_Favicon.ico?raw=1"
|
||||||
|
$Script:SamyCssUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.css?raw=1"
|
||||||
|
$Script:SamyJsUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.js?raw=1"
|
||||||
|
$Script:SamyHtmlUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.html?raw=1"
|
||||||
|
$Script:SamyTasksUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.tasks.json?raw=1"
|
||||||
|
$Script:SamyFunctionsUrl = "$Script:SamyRepoBase/$Script:SamyBranch/samy.functions.ps1?raw=1"
|
||||||
|
|
||||||
|
# Misc
|
||||||
|
$Script:SamyHintText = ""
|
||||||
|
}
|
||||||
Reference in New Issue
Block a user