Skip to content

Commit b7f732a

Browse files
committed
feat(oci): add support to helm exports history and use material symbols
1 parent 079f359 commit b7f732a

7 files changed

+31
-10
lines changed

src/components/tag-history/tag-history.riot

+7-1
Original file line numberDiff line numberDiff line change
@@ -253,8 +253,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
253253
'author',
254254
'id',
255255
'ExposedPorts',
256+
'name',
257+
'appVersion',
258+
'kubeVersion',
259+
'keywords',
260+
'home',
261+
'sources'
256262
].reduce(function (acc, e) {
257-
const value = blobs[e] || blobs.config[e];
263+
const value = blobs[e] || (blobs.config && blobs.config[e]);
258264
if (value && e === 'architecture' && blobs.variant) {
259265
acc[e] = value + blobs.variant;
260266
} else if (value) {
1.62 MB
Binary file not shown.
611 KB
Binary file not shown.
447 KB
Binary file not shown.

src/material-icons.scss src/material-symbols.scss

+12-8
Original file line numberDiff line numberDiff line change
@@ -1,20 +1,18 @@
11

22
@font-face {
3-
font-family: 'Material Icons';
3+
font-family: 'Material Symbols Rounded';
44
font-style: normal;
55
font-weight: 400;
6-
src: url(fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
7-
src: local('Material Icons'),
8-
local('MaterialIcons-Regular'),
9-
url(fonts/MaterialIcons-Regular.woff2) format('woff2'),
10-
url(fonts/MaterialIcons-Regular.woff) format('woff'),
11-
url(fonts/MaterialIcons-Regular.ttf) format('truetype');
6+
src: local('Material Symbols Rounded'),
7+
url(fonts/material-symbols-rounded.woff2) format('woff2'),
8+
url(fonts/material-symbols-rounded.woff) format('woff'),
9+
url(fonts/material-symbols-rounded.ttf) format('truetype');
1210
}
1311

1412
material-button .content i.material-icons,
1513
material-button[rounded=true] .content i.material-icons,
1614
i.material-icons {
17-
font-family: 'Material Icons';
15+
font-family: 'Material Symbols Rounded';
1816
font-weight: normal;
1917
font-style: normal;
2018
font-size: 24px; /* Preferred icon size */
@@ -38,6 +36,12 @@ i.material-icons {
3836

3937
/* Support for IE. */
4038
font-feature-settings: 'liga';
39+
40+
user-select: none;
41+
-moz-user-select: none;
42+
-khtml-user-select: none;
43+
-webkit-user-select: none;
44+
-o-user-select: none;
4145
}
4246

4347
material-button .content i.material-icons,

src/scripts/utils.js

+11
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,17 @@ export function getHistoryIcon(attribute) {
8282
return 'router';
8383
case 'comment':
8484
return 'chat';
85+
case 'home':
86+
return 'home';
87+
case 'sources':
88+
return 'link';
89+
case 'keywords':
90+
return 'receipt';
91+
case 'name':
92+
return 'abc';
93+
case 'kubeVersion':
94+
case 'appVersion':
95+
return '123';
8596
default:
8697
if (attribute.startsWith('custom-label-')) {
8798
return 'label';

src/style.scss

+1-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,7 @@
2929
@import 'riot-mui/src/material-elements/material-switch/material-switch.scss';
3030

3131
@import './roboto.scss';
32-
@import './material-icons.scss';
32+
@import './material-symbols.scss';
3333

3434
html > body {
3535
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif !important;

0 commit comments

Comments
 (0)