This repository has been archived by the owner on Nov 2, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[+] 新增oreui配置文@XiaozhiSans [+] 添加icons及images库@XiaozhiSans [+] input库新增textarea及div[contenteditable]@XiaozhiSans [=] js部分逻辑更改@XiaozhiSans [=] 初始化方式改进@XiaozhiSans [=] 字体改进@XiaozhiSans
- Loading branch information
1 parent
734e716
commit 7881cd6
Showing
51 changed files
with
316 additions
and
101 deletions.
There are no files selected for viewing
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,6 @@ | ||
@import url(./libs/fonts.css); | ||
@import url(./libs/icons.css); | ||
@import url(./libs/images.css); | ||
@import url(./libs/main.css); | ||
@import url(./libs/buttons.css); | ||
@import url(./libs/input.css); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
/** | ||
* oreui-web all | ||
* license: cc by-nc-sa 4.0 | ||
* code by XiaozhiSans | ||
*/ | ||
import data from "./oreuicfg.json" with {type:"json"}; | ||
import {info} from "./libs/info.js"; | ||
import {sounds, playSound} from "./libs/sounds.js"; | ||
import {oreui} from "./libs/main.js"; | ||
const cfg = data; | ||
|
||
globalThis.playSound = playSound, globalThis.sounds = sounds; | ||
|
||
globalThis.oreui = { | ||
main: oreui, | ||
info: info | ||
} | ||
|
||
document.addEventListener("DOMContentLoaded", () => { | ||
try { | ||
let link = document.createElement("link"); | ||
link.rel = "stylesheet"; | ||
link.type= "text/css"; | ||
link.href= cfg.path + "all.init.css"; | ||
|
||
document.querySelector("head").appendChild(link); | ||
|
||
if(cfg.button_click_sound) | ||
for(let i of document.querySelectorAll("button:not(.--no-click-sound, .-nocs, header>button)")) i.addEventListener("click", () => {playSound(sounds.click);}); | ||
|
||
console.log(`[oreui] init oreui successful, version: ${info.version}(${info.date})`); | ||
} catch(error) { | ||
console.warn("[oreui] init oreui faild. ", error); | ||
} | ||
}); |
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
This file was deleted.
Oops, something went wrong.
File renamed without changes.
File renamed without changes.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Empty file.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,93 @@ | ||
@import url(../../assets/plugins/minecraft-fonts/main.css); | ||
@import url(https://cdn.jsdelivr.net/npm/[email protected]/all.min.css); | ||
@font-face { | ||
font-family: Minecraft Ten v2; | ||
src: url(../fonts/Minecraft-Ten-ed29a.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Minecraft Seven v2; | ||
src: url(../fonts/Minecraft-Seven-66398.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Minecraft Five v2; | ||
src: url(../fonts/Minecraft-Five-48bb3.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Minecraft Five v2; | ||
font-weight: 700; | ||
src: url(../fonts/Minecraft-Five-Bold-4ded8.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans; | ||
font-weight: 700; | ||
src: url(../fonts/NotoSans-Bold-14d47.ttf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans; | ||
font-style: italic; | ||
font-weight: 700; | ||
src: url(../fonts/NotoSans-BoldItalic-30174.ttf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans; | ||
font-style: italic; | ||
src: url(../fonts/NotoSans-Italic-11442.ttf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans JP; | ||
src: url(../fonts/NotoSansJP-Regular-aaed5.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans JP Regular; | ||
src: url(../fonts/NotoSansJP-Regular-aaed5.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans KR; | ||
src: url(../fonts/NotoSansKR-Regular-8625b.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans SC; | ||
src: url(../fonts/NotoSansSC-Regular-a4317.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans TC; | ||
src: url(../fonts/NotoSansTC-Regular-2eeaf.otf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans AR; | ||
src: url(../fonts/NotoSansArabic-Regular-9137a.ttf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans Mongolian; | ||
src: url(../fonts/NotoSansMongolian-Regular-f4200.ttf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans Syriac; | ||
src: url(../fonts/NotoSansSyriac-Regular-1bff6.ttf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans TamilSupplement; | ||
src: url(../fonts/NotoSansTamilSupplement-Regular-a407d.ttf); | ||
} | ||
|
||
@font-face { | ||
font-family: Noto Sans; | ||
src: url(../fonts/NotoSansMerged-Regular-5df70.ttf); | ||
} | ||
|
||
html { | ||
--oreui: Minecraft Seven v2, Noto Sans, Noto Sans SC, Noto Sans TC, Noto Sans JP, Noto Sans KR, Noto Sans Mongolian, Noto Sans Syriac, Noto Sans TamilSupplement; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,36 @@ | ||
.-icon { | ||
display: block; | ||
width: 32px; | ||
height: 32px; | ||
background-image: url(); | ||
background-size: cover; | ||
} | ||
|
||
.-icon.-loading { | ||
background-image: url(../res/animation-074ed.gif); | ||
position: relative; | ||
top: 50%; | ||
left: 50%; | ||
} | ||
|
||
.-icon.-copy { | ||
background-image: url(../res/Copy-9b6af.png); | ||
} | ||
.-icon.-clip { | ||
background-image: url(../res/Clipboard-bbbc0.png); | ||
} | ||
.-icon.-extlink { | ||
background-image: url(../res/externalLink-0e493.png); | ||
} | ||
.-icon.-extlink.-dark { | ||
background-image: url(../res/external-link-b22bb.png); | ||
} | ||
.-icon.-help { | ||
background-image: url(../res/help.png); | ||
} | ||
.-icon.-menu { | ||
background-image: url(../res/menu.png); | ||
} | ||
.-icon.-save { | ||
background-image: url(../res/Save-72f24.png); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
.-img { | ||
display: block; | ||
background-image: url(); | ||
background-size: cover; | ||
} | ||
|
||
.-img.-error { | ||
width: 260px; | ||
height: 90px; | ||
background-image: url(../res/error-1ee9c.png); | ||
} | ||
.-img.-indev { | ||
width: 260px; | ||
height: 128px; | ||
background-image: url(../res/empty-state-art-461d2.png); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,8 +1,4 @@ | ||
export const info = { | ||
version: "20240529", | ||
update: "2024/05/29 22:15", | ||
init: () => { | ||
document.querySelector("[version]").innerText = info.version; | ||
document.querySelector("[update]").innerText = info.update; | ||
} | ||
version: "20240604", | ||
date: "2024/06/04" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.