commit
f32c07763b
|
@ -19,6 +19,7 @@ app
|
||||||
app.html
|
app.html
|
||||||
ehthumbs.db
|
ehthumbs.db
|
||||||
extension
|
extension
|
||||||
|
Home
|
||||||
jsconfig.json
|
jsconfig.json
|
||||||
localStorage.json
|
localStorage.json
|
||||||
main.js
|
main.js
|
||||||
|
|
|
@ -4,7 +4,7 @@ window.config={
|
||||||
FastGit:'https://raw.fgit.cf/libccy/noname-extension/master/',
|
FastGit:'https://raw.fgit.cf/libccy/noname-extension/master/',
|
||||||
GitHub:'https://raw.githubusercontent.com/libccy/noname-extension/master/'
|
GitHub:'https://raw.githubusercontent.com/libccy/noname-extension/master/'
|
||||||
},
|
},
|
||||||
extension_source:'Coding',
|
extension_source:'GitHub Proxy',
|
||||||
forbidai:['ns_liuzhang'],
|
forbidai:['ns_liuzhang'],
|
||||||
forbidai_user:[],
|
forbidai_user:[],
|
||||||
forbidall:[],
|
forbidall:[],
|
||||||
|
|
|
@ -33,7 +33,7 @@ export function canUseHttpProtocol() {
|
||||||
try {
|
try {
|
||||||
require('express');
|
require('express');
|
||||||
return true;
|
return true;
|
||||||
} catch {
|
} catch {
|
||||||
return false;
|
return false;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
@ -530,7 +530,7 @@ export async function boot() {
|
||||||
}
|
}
|
||||||
// await Promise.allSettled(_status.extensionLoading);
|
// await Promise.allSettled(_status.extensionLoading);
|
||||||
|
|
||||||
_status.extensionLoaded.filter(name=>game.hasExtension(name)).forEach((name) => {
|
_status.extensionLoaded.filter(name => game.hasExtension(name)).forEach((name) => {
|
||||||
lib.announce.publish("Noname.Init.Extension.onLoad", name);
|
lib.announce.publish("Noname.Init.Extension.onLoad", name);
|
||||||
lib.announce.publish(`Noname.Init.Extension.${name}.onLoad`, void 0);
|
lib.announce.publish(`Noname.Init.Extension.${name}.onLoad`, void 0);
|
||||||
});
|
});
|
||||||
|
@ -895,9 +895,9 @@ async function setOnError() {
|
||||||
}
|
}
|
||||||
//解析parsex里的content fun内容(通常是技能content)
|
//解析parsex里的content fun内容(通常是技能content)
|
||||||
// @ts-ignore
|
// @ts-ignore
|
||||||
else if (err && err.stack && ['at Object.eval [as content]', 'at Proxy.content'].some(str =>{
|
else if (err && err.stack && ['at Object.eval [as content]', 'at Proxy.content'].some(str => {
|
||||||
let stackSplit1 = err.stack.split('\n')[1];
|
let stackSplit1 = err.stack.split('\n')[1];
|
||||||
if(stackSplit1){
|
if (stackSplit1) {
|
||||||
return stackSplit1.trim().startsWith(str);
|
return stackSplit1.trim().startsWith(str);
|
||||||
}
|
}
|
||||||
return false;
|
return false;
|
||||||
|
|
|
@ -22,17 +22,15 @@ import { Announce } from "./announce/index.js";
|
||||||
import { Channel } from "./channel/index.js";
|
import { Channel } from "./channel/index.js";
|
||||||
import { Experimental } from "./experimental/index.js";
|
import { Experimental } from "./experimental/index.js";
|
||||||
import * as Element from "./element/index.js";
|
import * as Element from "./element/index.js";
|
||||||
|
import { updateURLs } from "./update-urls.js";
|
||||||
|
|
||||||
|
|
||||||
export class Library extends Uninstantable {
|
export class Library extends Uninstantable {
|
||||||
static configprefix = 'noname_0.9_';
|
static configprefix = 'noname_0.9_';
|
||||||
static versionOL = 27;
|
static versionOL = 27;
|
||||||
static updateURLS = {
|
static updateURLS = updateURLs;
|
||||||
coding: 'https://gitcode.net/sinat_33405273/noname/-/raw/',
|
static updateURL = updateURLs.github;
|
||||||
github: 'https://raw.githubusercontent.com/libccy/noname',
|
static mirrorURL = updateURLs.coding;
|
||||||
};
|
|
||||||
static updateURL = 'https://raw.githubusercontent.com/libccy/noname';
|
|
||||||
static mirrorURL = 'https://gitcode.net/sinat_33405273/noname/-/raw/';
|
|
||||||
static hallURL = '47.99.105.222';
|
static hallURL = '47.99.105.222';
|
||||||
static assetURL = assetURL;
|
static assetURL = assetURL;
|
||||||
static userAgent = userAgent;
|
static userAgent = userAgent;
|
||||||
|
@ -1124,7 +1122,7 @@ export class Library extends Uninstantable {
|
||||||
init: 'coding',
|
init: 'coding',
|
||||||
unfrequent: true,
|
unfrequent: true,
|
||||||
item: {
|
item: {
|
||||||
coding: 'CSDN',
|
coding: 'URC',
|
||||||
github: 'GitHub',
|
github: 'GitHub',
|
||||||
},
|
},
|
||||||
onclick: function (item) {
|
onclick: function (item) {
|
||||||
|
@ -11287,7 +11285,6 @@ export class Library extends Uninstantable {
|
||||||
charlotte: true,
|
charlotte: true,
|
||||||
priority: -100,
|
priority: -100,
|
||||||
lastDo: true,
|
lastDo: true,
|
||||||
silent: true,
|
|
||||||
content: function () {
|
content: function () {
|
||||||
player.removeSkill('counttrigger');
|
player.removeSkill('counttrigger');
|
||||||
delete player.storage.counttrigger;
|
delete player.storage.counttrigger;
|
||||||
|
|
|
@ -0,0 +1,4 @@
|
||||||
|
export const updateURLs = {
|
||||||
|
coding: 'https://unitedrhythmized.club/libccy/noname',
|
||||||
|
github: 'https://raw.githubusercontent.com/libccy/noname'
|
||||||
|
};
|
|
@ -14732,6 +14732,6 @@ export class UI extends Uninstantable {
|
||||||
static updateRoundNumber(roundNumber, cardPileNumber) {
|
static updateRoundNumber(roundNumber, cardPileNumber) {
|
||||||
if (ui.cardPileNumber) ui.cardPileNumber.innerHTML = `${roundNumber}轮 剩余牌: ${cardPileNumber}`;
|
if (ui.cardPileNumber) ui.cardPileNumber.innerHTML = `${roundNumber}轮 剩余牌: ${cardPileNumber}`;
|
||||||
}
|
}
|
||||||
};
|
}
|
||||||
|
|
||||||
export const ui = UI;
|
export const ui = UI;
|
||||||
|
|
Loading…
Reference in New Issue