Skip to content

Commit e2d6f45

Browse files
authoredFeb 25, 2022
Merge pull request #269 from Badgerati/develop
v0.7.1
2 parents 57f8559 + 841ca93 commit e2d6f45

File tree

8 files changed

+36
-13
lines changed

8 files changed

+36
-13
lines changed
 

‎LICENSE.txt

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
The MIT License (MIT)
22

3-
Copyright (c) [2020-2021] [Matthew Kelly (Badgerati)]
3+
Copyright (c) [2020-2022] [Matthew Kelly (Badgerati)]
44

55
Permission is hereby granted, free of charge, to any person obtaining a copy
66
of this software and associated documentation files (the "Software"), to deal

‎docs/release-notes.md

+15
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,20 @@
11
# Release Notes
22

3+
## v0.7.1
4+
5+
```plain
6+
### Bugs
7+
* #254: Fix the colour of IconOnly buttons in the Light theme
8+
* #267: Fix icon positioning when used in table headers
9+
* #268: Fix the hover value of buttons to be the DisplayName
10+
11+
### Packaging
12+
* #257: Bump highlightjs to 11.4.0
13+
* #262: Bump monaco-editor to 0.32.1
14+
* #204: Bump jquery-ui to 1.13.1
15+
* #198: Bump chart.js to 3.7.1
16+
```
17+
318
## v0.7.0
419

520
```plain

‎package.json

+4-4
Original file line numberDiff line numberDiff line change
@@ -6,14 +6,14 @@
66
"license": "MIT",
77
"dependencies": {
88
"jquery": "3.6.0",
9-
"jquery-ui-dist": "1.12.1",
9+
"jquery-ui-dist": "1.13.1",
1010
"popper.js": "1.16.1",
1111
"bootstrap": "4.6.1",
1212
"bs-stepper": "1.7.0",
1313
"@mdi/font": "6.5.95",
14-
"chart.js": "3.6.2",
15-
"@highlightjs/cdn-assets": "11.3.1",
16-
"monaco-editor": "0.30.1",
14+
"chart.js": "3.7.1",
15+
"@highlightjs/cdn-assets": "11.4.0",
16+
"monaco-editor": "0.32.1",
1717
"moment": "2.29.1"
1818
}
1919
}

‎src/Pode.Web.psd1

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
RootModule = 'Pode.Web.psm1'
1212

1313
# Version number of this module.
14-
ModuleVersion = '0.7.0'
14+
ModuleVersion = '0.7.1'
1515

1616
# ID used to uniquely identify this module
1717
GUID = '5c6cae5a-8e62-48a4-c2e5-7511ffe2d439'
@@ -20,7 +20,7 @@
2020
Author = 'Matthew Kelly (Badgerati)'
2121

2222
# Copyright statement for this module
23-
Copyright = 'Copyright (c) 2020-2021 Matthew Kelly (Badgerati), licensed under the MIT License.'
23+
Copyright = 'Copyright (c) 2020-2022 Matthew Kelly (Badgerati), licensed under the MIT License.'
2424

2525
# Description of the functionality provided by this module
2626
Description = 'Web template framework for the Pode PowerShell web server'

‎src/Templates/Public/scripts/default.js

+3-3
Original file line numberDiff line numberDiff line change
@@ -2236,7 +2236,7 @@ function buildTableHeader(column, direction) {
22362236
value += `'>`;
22372237

22382238
if (column.Icon) {
2239-
value += `<span class='mdi mdi-${column.Icon.toLowerCase()} mRight02'></span>`;
2239+
value += `<span class='mdi mdi-${column.Icon.toLowerCase()} mRight04'></span>`;
22402240
}
22412241

22422242
value += `${column.Name}</th>`;
@@ -3600,12 +3600,12 @@ function buildButton(element) {
36003600
}
36013601

36023602
if (element.IconOnly) {
3603-
return `<button type='button' class='btn btn-icon-only pode-button' id='${element.ID}' pode-data-value='${element.DataValue}' title='${element.Name}' data-toggle='tooltip' pode-object='${element.ObjectType}'>${icon}</button>`;
3603+
return `<button type='button' class='btn btn-icon-only pode-button' id='${element.ID}' pode-data-value='${element.DataValue}' title='${element.DisplayName}' data-toggle='tooltip' pode-object='${element.ObjectType}'>${icon}</button>`;
36043604
}
36053605

36063606
return `<button type='button' class='btn btn-${element.ColourType} pode-button' id='${element.ID}' pode-data-value='${element.DataValue}' pode-object='${element.ObjectType}'>
36073607
<span class='spinner-border spinner-border-sm' role='status' aria-hidden='true' style='display: none'></span>
3608-
${icon}${element.Name}
3608+
${icon}${element.DisplayName}
36093609
</button>`;
36103610
}
36113611

‎src/Templates/Public/styles/default-light.css

+5-1
Original file line numberDiff line numberDiff line change
@@ -34,7 +34,11 @@ body, main[role="main"], body#login-page, body#normal-page {
3434
}
3535

3636
.btn-icon-only {
37-
color: #f5f5f5 !important;
37+
color: #777 !important;
38+
}
39+
40+
.btn-icon-only:hover {
41+
color: #333 !important;
3842
}
3943

4044
.card {

‎src/Templates/Public/styles/default.css

+4
Original file line numberDiff line numberDiff line change
@@ -831,6 +831,10 @@ iframe {
831831
line-height: 14px;
832832
}
833833

834+
th .mdi::before {
835+
vertical-align: sub;
836+
}
837+
834838
.btn:not(.btn-icon-only, .btn-no-text, .btn-block) .mdi::before {
835839
position: relative;
836840
top: 4px;

‎src/Templates/Views/elements/button.pode

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@
1616

1717
if ($data.IconOnly) {
1818
if ($data.IsDynamic) {
19-
"<button type='button' class='btn btn-icon-only pode-button $($data.CssClasses)' style='$($data.CssStyles)' id='$($data.ID)' pode-object='$($data.ObjectType)' pode-data-value='$($data.DataValue)' title='$($data.Name)' data-toggle='tooltip'>
19+
"<button type='button' class='btn btn-icon-only pode-button $($data.CssClasses)' style='$($data.CssStyles)' id='$($data.ID)' pode-object='$($data.ObjectType)' pode-data-value='$($data.DataValue)' title='$($data.DisplayName)' data-toggle='tooltip'>
2020
$($icon)
2121
</button>"
2222
}
2323
else {
24-
"<a id='$($data.ID)' class='btn btn-icon-only pode-link-button $($data.CssClasses)' style='$($data.CssStyles)' pode-object='$($data.ObjectType)' href='$($data.Url)' target='$($target)' role='button' title='$($data.Name)' data-toggle='tooltip'>
24+
"<a id='$($data.ID)' class='btn btn-icon-only pode-link-button $($data.CssClasses)' style='$($data.CssStyles)' pode-object='$($data.ObjectType)' href='$($data.Url)' target='$($target)' role='button' title='$($data.DisplayName)' data-toggle='tooltip'>
2525
$($icon)
2626
</a>"
2727
}

0 commit comments

Comments
 (0)