Skip to content

Commit

Permalink
open:mdi7
Browse files Browse the repository at this point in the history
  • Loading branch information
getrebuild committed Dec 27, 2024
1 parent c61d554 commit 17e3324
Show file tree
Hide file tree
Showing 2 changed files with 57 additions and 7 deletions.
52 changes: 52 additions & 0 deletions src/main/resources/web/assets/js/mdi7-icons.js
Original file line number Diff line number Diff line change
Expand Up @@ -6728,4 +6728,56 @@ const MDI7_ICONS_IGNORE = [
'mdi-regex',
'mdi-page-first',
'mdi-page-last',
'mdi-abjad-arabic',
'mdi-apple-keyboard-control',
'mdi-arrow-bottom-left-thin',
'mdi-arrow-bottom-right-thin',
'mdi-arrow-projectile',
'mdi-brightness-3',
'mdi-bulma',
'mdi-call-merge',
'mdi-call-missed',
'mdi-cellphone-basic',
'mdi-decimal',
'mdi-decimal-comma',
'mdi-decimal-comma-decrease',
'mdi-decimal-decrease',
'mdi-decimal-increase',
'mdi-dots-horizontal',
'mdi-drag-horizontal',
'mdi-drag-horizontal-variant',
'mdi-drag-vertical',
'mdi-drag-vertical-variant',
'mdi-eject-outline',
'mdi-electric-switch',
'mdi-electric-switch-closed',
'mdi-epsilon',
'mdi-exclamation',
'mdi-goodreads',
'mdi-loading',
'mdi-math-integral',
'mdi-math-norm',
'mdi-middleware',
'mdi-middleware-outline',
'mdi-midi',
'mdi-minus',
'mdi-minus-thick',
'mdi-oar',
'mdi-ocarina',
'mdi-rake',
'mdi-record',
'mdi-rivet',
'mdi-window-close',
'mdi-unfold-more-vertical',
'mdi-train-car-flatbed',
'mdi-tilde',
'mdi-tilde-off',
'mdi-texture',
'mdi-texture-box',
'mdi-soundbar',
'mdi-soundcloud',
'mdi-sign-pole',
'mdi-plus',
'mdi-pan-vertical',
'mdi-music-accidental-flat',
]
12 changes: 5 additions & 7 deletions src/main/resources/web/common/search-icon.html
Original file line number Diff line number Diff line change
Expand Up @@ -48,20 +48,18 @@
<script th:src="@{/assets/js/mdi7-icons.js}"></script>
<script type="text/babel">
const cb = function (icon) {
(parent && parent.clickIcon ? parent.clickIcon : console.log)(icon)
;(parent && parent.clickIcon ? parent.clickIcon : console.log)(icon)
}
$(document).ready(() => {
if ($urlp('mdi7')) renderMdi7()
else renderZmdi()
renderMdi7()
parent && parent.RbModal && parent.RbModal.resize()

window.bosskeyTrigger = function () {
$('#icons').empty()
$('#icons').text('MDI7 Loading')

$('#icons').text('ZMDI Loading')
setTimeout(() => {
$('#icons').empty()
renderMdi7()
renderZmdi()
parent && parent.RbModal && parent.RbModal.resize()
}, 666)
}
Expand Down Expand Up @@ -100,7 +98,7 @@
}
})
}
// V2
// V2-4.0
function renderMdi7() {
MDI7_ICONS.forEach((icon) => {
if (MDI7_ICONS_IGNORE.includes(icon)) return
Expand Down

0 comments on commit 17e3324

Please sign in to comment.