Skip to content

Commit

Permalink
no message
Browse files Browse the repository at this point in the history
  • Loading branch information
Soltus committed Dec 6, 2022
1 parent 917d172 commit 4ad8109
Show file tree
Hide file tree
Showing 4 changed files with 43 additions and 9 deletions.
4 changes: 2 additions & 2 deletions script/VS.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,9 +15,9 @@ nblist.then((result) => {
}).then(async (NBList) => {
for(let j=0,len=NBList.length;j<len;j++) {
if (NBList[j].closed){
//API.openNotebook(NBList[j].id); 需等待
// API.openNotebook(NBList[j].id); 需等待
} else {
API.closeNotebook(NBList[j].id);
// API.closeNotebook(NBList[j].id);
}
}
});
Expand Down
21 changes: 14 additions & 7 deletions script/kernel.js
Original file line number Diff line number Diff line change
Expand Up @@ -49,12 +49,19 @@ setTimeout(async () => {
}).onclick = () => console.log("Notification clicked!");
} else {
let ready = await winsayKernel(`${winsay_ROOT}theme.js`);
ready
? window.funs.loadScript(
window.funs.addURLParam("/appearance/themes/Sofill=/script/VS.js"),
undefined,
true
)
: console.error("no ready");
if (ready) {
window.funs.loadScript(
window.funs.addURLParam("/appearance/themes/Sofill=/script/VS.js"),
undefined,
true
);
window.funs.loadScript(
window.funs.addURLParam("/appearance/themes/Sofill=/script/module/CPext.js"),
undefined,
true
);
} else {
console.error("no ready");
}
}
});
23 changes: 23 additions & 0 deletions script/module/CPext.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,23 @@
import { CP_container_extension } from "./XML/extend_CPDialog_container_extension.js";
setTimeout(() => {
document.querySelector("#SC-CP #sc-custom-container-extension").innerHTML =
CP_container_extension;
document
.querySelector("#SC-CP #sc-custom-container-extension")
.addEventListener("click", (e) => {
console.log(e);
let xyz = [e.target, e.target.parentNode, e.target.parentNode.parentNode];
xyz.forEach((i) => {
i.attributes["data-type"] && i.attributes["data-type"].value == "goBack"
? (document.querySelector("#SC-CP #configBazaarReadme").style.right =
"-100%")
: null;
});
xyz.forEach((i) => {
i.classList.contains("b3-card")
? (document.querySelector("#SC-CP #configBazaarReadme").style.right =
"0px")
: null;
});
});
}, 3000);
4 changes: 4 additions & 0 deletions script/module/XML/extend_CPDialog_container_extension.js

Large diffs are not rendered by default.

0 comments on commit 4ad8109

Please sign in to comment.