feat(oci): add support to helm exports history and use material symbols

This commit is contained in:
Joxit
2024-09-08 01:20:30 +02:00
parent 079f35976f
commit b7f732a606
7 changed files with 31 additions and 10 deletions

View File

@@ -253,8 +253,14 @@ along with this program. If not, see <http://www.gnu.org/licenses/>.
'author',
'id',
'ExposedPorts',
'name',
'appVersion',
'kubeVersion',
'keywords',
'home',
'sources'
].reduce(function (acc, e) {
const value = blobs[e] || blobs.config[e];
const value = blobs[e] || (blobs.config && blobs.config[e]);
if (value && e === 'architecture' && blobs.variant) {
acc[e] = value + blobs.variant;
} else if (value) {

Binary file not shown.

Binary file not shown.

Binary file not shown.

View File

@@ -1,20 +1,18 @@
@font-face {
font-family: 'Material Icons';
font-family: 'Material Symbols Rounded';
font-style: normal;
font-weight: 400;
src: url(fonts/MaterialIcons-Regular.eot); /* For IE6-8 */
src: local('Material Icons'),
local('MaterialIcons-Regular'),
url(fonts/MaterialIcons-Regular.woff2) format('woff2'),
url(fonts/MaterialIcons-Regular.woff) format('woff'),
url(fonts/MaterialIcons-Regular.ttf) format('truetype');
src: local('Material Symbols Rounded'),
url(fonts/material-symbols-rounded.woff2) format('woff2'),
url(fonts/material-symbols-rounded.woff) format('woff'),
url(fonts/material-symbols-rounded.ttf) format('truetype');
}
material-button .content i.material-icons,
material-button[rounded=true] .content i.material-icons,
i.material-icons {
font-family: 'Material Icons';
font-family: 'Material Symbols Rounded';
font-weight: normal;
font-style: normal;
font-size: 24px; /* Preferred icon size */
@@ -38,6 +36,12 @@ i.material-icons {
/* Support for IE. */
font-feature-settings: 'liga';
user-select: none;
-moz-user-select: none;
-khtml-user-select: none;
-webkit-user-select: none;
-o-user-select: none;
}
material-button .content i.material-icons,

View File

@@ -82,6 +82,17 @@ export function getHistoryIcon(attribute) {
return 'router';
case 'comment':
return 'chat';
case 'home':
return 'home';
case 'sources':
return 'link';
case 'keywords':
return 'receipt';
case 'name':
return 'abc';
case 'kubeVersion':
case 'appVersion':
return '123';
default:
if (attribute.startsWith('custom-label-')) {
return 'label';

View File

@@ -29,7 +29,7 @@
@import 'riot-mui/src/material-elements/material-switch/material-switch.scss';
@import './roboto.scss';
@import './material-icons.scss';
@import './material-symbols.scss';
html > body {
font-family: 'Roboto', 'Helvetica', 'Arial', sans-serif !important;