Skip to content
This repository was archived by the owner on Nov 2, 2024. It is now read-only.

Commit 7881cd6

Browse files
committed
v20240604
[+] 新增oreui配置文@XiaozhiSans [+] 添加icons及images库@XiaozhiSans [+] input库新增textarea及div[contenteditable]@XiaozhiSans [=] js部分逻辑更改@XiaozhiSans [=] 初始化方式改进@XiaozhiSans [=] 字体改进@XiaozhiSans
1 parent 734e716 commit 7881cd6

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

51 files changed

+316
-101
lines changed
-198 Bytes
Binary file not shown.
Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
@import url(./libs/fonts.css);
2+
@import url(./libs/icons.css);
3+
@import url(./libs/images.css);
24
@import url(./libs/main.css);
35
@import url(./libs/buttons.css);
46
@import url(./libs/input.css);

dist/all.init.js

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
/**
2+
* oreui-web all
3+
* license: cc by-nc-sa 4.0
4+
* code by XiaozhiSans
5+
*/
6+
import data from "./oreuicfg.json" with {type:"json"};
7+
import {info} from "./libs/info.js";
8+
import {sounds, playSound} from "./libs/sounds.js";
9+
import {oreui} from "./libs/main.js";
10+
const cfg = data;
11+
12+
globalThis.playSound = playSound, globalThis.sounds = sounds;
13+
14+
globalThis.oreui = {
15+
main: oreui,
16+
info: info
17+
}
18+
19+
document.addEventListener("DOMContentLoaded", () => {
20+
try {
21+
let link = document.createElement("link");
22+
link.rel = "stylesheet";
23+
link.type= "text/css";
24+
link.href= cfg.path + "all.init.css";
25+
26+
document.querySelector("head").appendChild(link);
27+
28+
if(cfg.button_click_sound)
29+
for(let i of document.querySelectorAll("button:not(.--no-click-sound, .-nocs, header>button)")) i.addEventListener("click", () => {playSound(sounds.click);});
30+
31+
console.log(`[oreui] init oreui successful, version: ${info.version}(${info.date})`);
32+
} catch(error) {
33+
console.warn("[oreui] init oreui faild. ", error);
34+
}
35+
});
20 KB
Binary file not shown.
20.8 KB
Binary file not shown.
30.1 KB
Binary file not shown.

dist/fonts/Minecraft-Ten-ed29a.otf

19.5 KB
Binary file not shown.

dist/fonts/NotoSans-Bold-14d47.ttf

659 KB
Binary file not shown.
460 KB
Binary file not shown.
459 KB
Binary file not shown.

0 commit comments

Comments
 (0)