Skip to content

Commit

Permalink
3.8.1
Browse files Browse the repository at this point in the history
  • Loading branch information
Micke-K committed Jan 26, 2023
1 parent 897309e commit ece28a6
Show file tree
Hide file tree
Showing 41 changed files with 6,446 additions and 1,865 deletions.
2 changes: 1 addition & 1 deletion CloudAPIPowerShellManagement.psd1
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@
RootModule = 'CloudAPIPowerShellManagement.psm1'

# Version number of this module.
ModuleVersion = '3.7.4'
ModuleVersion = '3.8.1'

# Supported PSEditions
# CompatiblePSEditions = @()
Expand Down
34 changes: 31 additions & 3 deletions Core.psm1
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ This module handles the WPF UI

function Get-ModuleVersion
{
'3.7.1'
'3.8.1'
}

function Initialize-Window
Expand Down Expand Up @@ -415,15 +415,15 @@ function Set-XamlProperty

function Get-XamlProperty
{
param($xamlObj, $controlName, $propertyName, $defaultValue)
param($xamlObj, $controlName, $propertyName, $defaultValue = $null)

$obj = $xamlObj.FindName($controlName)

try
{
if($obj)
{
return (?? $obj."$propertyName" $null)
return (?? $obj."$propertyName" $defaultValue)
}
else
{
Expand Down Expand Up @@ -2666,6 +2666,34 @@ function Show-LogView
}
}

function Get-Base64ScriptContent
{
param($encodeContent, [switch]$RemoveSignature)

if(-not $encodeContent) { return }

try
{
$scriptContent = [System.Text.Encoding]::UTF8.GetString([System.Convert]::FromBase64String($encodeContent))

if($RemoveSignature -eq $true)
{
$x = $scriptContent.IndexOf("# SIG # Begin signature block")
if($x -gt 0)
{
$scriptContent = $scriptContent.SubString(0,$x)
$scriptContent = $scriptContent + "# SIG # Begin signature block`nSignature data excluded..."
}
}

$scriptContent
}
catch
{

}
}

New-Alias -Name ?? -value Invoke-Coalesce
New-Alias -Name ?: -value Invoke-IfTrue
Export-ModuleMember -alias * -function *
184 changes: 184 additions & 0 deletions Documentation/DefaultHTMLStyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,184 @@
<style type="text/css">

html { }

html,body {
margin:0;
padding:5px;
position:relative;
}

.header-level1 {
font-family:"Arial",sans-serif;
font-size: 18px;
margin-top: 0px;
margin-bottom: 0px;
}

.header-level2 {
font-family:"Arial",sans-serif;
font-size: 16px;
margin-top: 3px;
margin-bottom: 0px;
}

.header-level3 {
font-family:"Arial",sans-serif;
font-size: 14px;
margin-top: 3px;
margin-bottom: 0px;
}

.header-level4 {
font-family:"Arial",sans-serif;
font-size: 12px;
margin-top: 3px;
margin-bottom: 0px;
}

.header-level6 {
font-family:"Arial",sans-serif;
font-size: 10px;
margin-top: 3px;
}

.table-settings {
border: 1px solid #999999;
padding-right: 5px;
font-family:"Arial",sans-serif;
font-size: 11px;
}

.table-settings TR:nth-child(even) {
background-color: #FAFAFA
}

.table-settings th {
background-color: #D0D0D0;
padding: 0px;
text-align:left;
font-size: 12px;
padding-right: 10px;
padding-top: 3px;
font-weight: bold;
border-width: 5px;
padding: 5px;
border-style: none;
border-color: #F2F2F2;
}

.table-settings td {
text-align:left;
padding-right: 5px;
border-width: 5px;
padding: 5px;
border-style: none;
border-color: #F2F2F2;
border-bottom: 1px solid #ddd;
}

.code {
background: #f4f4f4;
border: 1px solid #ddd;
border-left: 3px solid #333333;
color: #666;
page-break-inside: avoid;
font-family: monospace;
font-size: 12px;
line-height: 1.6;
margin-bottom: 2px;
max-width: 100%;
overflow: auto;
padding: 1em 1.5em;
display: block;
word-wrap: break-word;
}

.description summary {
list-style: none;
cursor: pointer;
}

details.description[open] summary::after {
content: attr(data-open);
}

details.description:not([open]) summary::after {
content: attr(data-close);
}

.row-even {

}

.row-odd {

}

.category-level1 {
background-color: #E0E0E0;
font-size: 11px;
font-weight: bold;
}

.category-level2 {
background-color: #E0E0E0;
font-size: 11px;
}

.anchor-style {
font-family:"Arial",sans-serif;
font-size: 11px;
}

.anchor-level2 {

}

.anchor-level3 {
padding-left: 5px;
}

.anchor-level4 {
padding-left: 10px;
}

.anchor-level5 {
padding-left: 15px;
}

.table-value {
border: 0px;
width: 100%;
padding: 0px;
font-family:"Arial",sans-serif;
font-size: 11px;
}

.table-value th {
background-color: #F9F9F9;
padding: 0px;
text-align:left;
font-size: 11px;
padding-right: 0px;
padding-top: 3px;
padding-bottom: 3px;
font-weight: normal;
border-width: 0px;
border-style: none;
}

.table-value tr {
background-color: #FFFFFF;
}

.table-value td {
border-bottom: 0;
padding: 1px;
}

.row-new-property {
background-color: #E7E7E7 !important;
}

</style>
117 changes: 117 additions & 0 deletions Documentation/DefaultMDStyle.css
Original file line number Diff line number Diff line change
@@ -0,0 +1,117 @@
<style type="text/css">

html { }

html,body {
margin:0;
padding:0 px;
position:relative;
}

h6 {
margin-top: 2px !important;
}

.table-settings {
padding-right: 5px;
font-family:"Arial",sans-serif;
font-size: 11px;
margin-bottom: 0px !important;
}

.table-settings p {
margin-bottom: 0px !important;
}

.table-settings TR:nth-child(even) {
background-color: #FAFAFA
}

.table-settings td {
text-align:left;
border-width: 5px;
padding: 5px !important;
border-style: none;
border-color: #F2F2F2;
border-bottom: 1px solid #ddd;
}

.table-header1 td {
background-color: #D0D0D0;
text-align: left;
font-size: 12px;
font-weight: bold;
border-width: 5px;
padding: 5px;
border-style: none;
border-color: #F2F2F2;
}

.category-level1 {
background-color: #E0E0E0;
font-size: 11px;
font-weight: bold;
}

.category-level2 {
background-color: #E0E0E0;
font-size: 11px;
}

.anchor-style {
font-family:"Arial",sans-serif;
font-size: 11px;
}

.anchor-level2 {

}

.table-value {
border: 0px;
width: 100%;
padding: 0px;
font-family:"Arial",sans-serif;
font-size: 11px;
}

.table-value th {
background-color: #F9F9F9;
padding: 0px;
text-align:left;
font-size: 11px;
padding-right: 0px;
padding-top: 3px;
padding-bottom: 3px;
font-weight: normal;
border-width: 0px;
border-style: none;
}

.table-value tr {
background-color: #FFFFFF;
}

.table-value td {
border-bottom: 0;
padding: 1px;
}

.row-new-property {
background-color: #E7E7E7 !important;
}

.description summary {
list-style: none;
cursor: pointer;
}

details.description[open] summary::after {
content: attr(data-open);
}

details.description:not([open]) summary::after {
content: attr(data-close);
}

</style>
8 changes: 1 addition & 7 deletions Documentation/ObjectCategories.json
Original file line number Diff line number Diff line change
Expand Up @@ -1014,13 +1014,7 @@
"PolicyTypeLanguageId": "vpn",
"PlatformLanguageId": "Windows10",
"Categories": [
"vpn",
"vpnappsandtrafficrules",
"vpnconditionalaccess",
"vpndnstriggers",
"vpnproxy",
"vpnsplittunneling",
"vpntrustednetwork"
"vpn"
]
},
{
Expand Down
Loading

0 comments on commit ece28a6

Please sign in to comment.