improve index.html interface with ninja template

This commit is contained in:
cowrie
2026-04-16 22:51:20 +08:00
parent 4530afde5f
commit 02a06ed434
1388 changed files with 533479 additions and 272 deletions

View File

@ -0,0 +1,16 @@
@function char($character-code) {
@if function-exists("selector-append") {
@return unquote("\"\\#{$character-code}\"");
}
@if "\\#{'x'}" == "\\x" {
@return str-slice("\x", 1, 1) + $character-code;
}
@else {
@return #{"\"\\"}#{$character-code + "\""};
}
}
@function mdi($name) {
@return char(map-get($mdi-icons, $name));
}