feat(skin): add v3 declarative plugin components

This commit is contained in:
illusia committed 2026-10-10 15:53:48 +08:00
1 parent 02441410a0
commit eabc78f36a
30 files changed
+2483 -308

No files matched your search

@@ -0,0 +1,31 @@
{
"schemaVersion": 1,
"components": [
{
"id": "illusia-now-playing",
"name": "ILLUSIA 当前频道 / current channel",
"page": "voice",
"accessibleName": "当前语音频道 / Current voice channel",
"permissions": ["session.status.read"],
"actions": {},
"root": {
"tag": "aside",
"part": "room-card",
"className": "illusia-now-playing",
"attributes": { "role": "status" },
"children": [
{
"tag": "small",
"part": "eyebrow",
"children": [{ "text": "ILLUSIA · 当前频道 / NOW IN" }]
},
{
"tag": "strong",
"part": "channel-name",
"children": [{ "text": "{{session.status.channelName}}" }]
}
]
}
}
]
}
-4
View File
@@ -1,4 +0,0 @@
{
"schemaVersion": 1,
"pages": {}
}
+5 -6
View File
@@ -1,15 +1,14 @@
{
"schemaVersion": 2,
"packageType": "layout-skin",
"schemaVersion": 3,
"packageType": "open-skin",
"id": "community.illusia-voice",
"name": "ILLUSIA风",
"version": "1.0.29",
"version": "2.0.0",
"author": "WebSpeak Project",
"license": "All rights reserved",
"description": "A bright original-character art skin for the home, voice room, and demo pages.",
"description": "A bright original-character art skin with a safe declarative live-channel badge.",
"entry": "skin.css",
"layout": "layout.json",
"permissions": [],
"components": "components.json",
"preview": "assets/background-composite.webp",
"minAppVersion": "0.2.7-preview"
}
+51
View File
@@ -271,6 +271,57 @@
}
}
/* Open-skin compatibility sample: a small, non-interactive live-channel card. */
[data-ws-page="voice"] .ws-plugin-component[data-ws-plugin-part="illusia-now-playing"] {
position: fixed;
z-index: 5;
top: 66px;
right: 18px;
display: grid;
gap: 3px;
width: min(236px, calc(100vw - 36px));
min-height: 58px;
padding: 10px 56px 10px 14px;
overflow: hidden;
color: #15545b;
border: 1px solid rgba(71, 201, 212, .52);
border-radius: 17px;
background-image: linear-gradient(110deg, rgba(255, 255, 255, .95), rgba(219, 249, 250, .8)), url("assets/banner-mascot-blob.webp");
background-repeat: no-repeat;
background-position: center, right 8px center;
background-size: auto, 42px 42px;
box-shadow: 0 12px 30px rgba(7, 55, 65, .16), inset 0 1px rgba(255, 255, 255, .9);
backdrop-filter: blur(12px);
pointer-events: none;
}
[data-ws-page="voice"] [data-ws-plugin-part="illusia-now-playing.eyebrow"] {
color: #168f99;
font-size: 9px;
font-weight: 800;
letter-spacing: .08em;
}
[data-ws-page="voice"] [data-ws-plugin-part="illusia-now-playing.channel-name"] {
overflow: hidden;
color: #173f48;
font-size: 13px;
font-weight: 750;
text-overflow: ellipsis;
white-space: nowrap;
}
@media (max-width: 740px) {
[data-ws-page="voice"] .ws-plugin-component[data-ws-plugin-part="illusia-now-playing"] {
top: 62px;
right: 10px;
width: min(218px, calc(100vw - 20px));
min-height: 52px;
padding-block: 8px;
border-radius: 14px;
}
}
[data-ws-part="home.join-title"] {
color: var(--skin-illusia-ink);
}