Skip to content

Commit

Permalink
feat(oci): add support to helm exports history and use material symbols
Browse files Browse the repository at this point in the history
  • Loading branch information
Joxit committed Sep 13, 2024
1 parent 079f359 commit b7f732a
Show file tree
Hide file tree
Showing 7 changed files with 31 additions and 10 deletions.
8 changes: 7 additions & 1 deletion src/components/tag-history/tag-history.riot
Original file line number Diff line number Diff line change
Expand Up @@ -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) {
Expand Down
Binary file added src/fonts/material-symbols-rounded.ttf
Binary file not shown.
Binary file added src/fonts/material-symbols-rounded.woff
Binary file not shown.
Binary file added src/fonts/material-symbols-rounded.woff2
Binary file not shown.
20 changes: 12 additions & 8 deletions src/material-icons.scss → src/material-symbols.scss
Original file line number Diff line number Diff line change
@@ -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 */
Expand All @@ -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,
Expand Down
11 changes: 11 additions & 0 deletions src/scripts/utils.js
Original file line number Diff line number Diff line change
Expand Up @@ -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';
Expand Down
2 changes: 1 addition & 1 deletion src/style.scss
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit b7f732a

Please sign in to comment.