diff --git a/.gitignore b/.gitignore index 1dfc2e31e..966499c9c 100644 --- a/.gitignore +++ b/.gitignore @@ -19,6 +19,7 @@ app app.html ehthumbs.db extension +Home jsconfig.json localStorage.json main.js diff --git a/game/config.js b/game/config.js index b17b73a9c..c343c0109 100644 --- a/game/config.js +++ b/game/config.js @@ -4,7 +4,7 @@ window.config={ FastGit:'https://raw.fgit.cf/libccy/noname-extension/master/', GitHub:'https://raw.githubusercontent.com/libccy/noname-extension/master/' }, - extension_source:'Coding', + extension_source:'GitHub Proxy', forbidai:['ns_liuzhang'], forbidai_user:[], forbidall:[], diff --git a/noname/init/index.js b/noname/init/index.js index a3f9d8888..e380937c5 100644 --- a/noname/init/index.js +++ b/noname/init/index.js @@ -33,7 +33,7 @@ export function canUseHttpProtocol() { try { require('express'); return true; - } catch { + } catch { return false; } } @@ -530,7 +530,7 @@ export async function boot() { } // 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.${name}.onLoad`, void 0); }); @@ -895,9 +895,9 @@ async function setOnError() { } //解析parsex里的content fun内容(通常是技能content) // @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]; - if(stackSplit1){ + if (stackSplit1) { return stackSplit1.trim().startsWith(str); } return false; diff --git a/noname/library/index.js b/noname/library/index.js index f2aefe670..6422d05c9 100644 --- a/noname/library/index.js +++ b/noname/library/index.js @@ -22,17 +22,15 @@ import { Announce } from "./announce/index.js"; import { Channel } from "./channel/index.js"; import { Experimental } from "./experimental/index.js"; import * as Element from "./element/index.js"; +import { updateURLs } from "./update-urls.js"; export class Library extends Uninstantable { static configprefix = 'noname_0.9_'; static versionOL = 27; - static updateURLS = { - coding: 'https://gitcode.net/sinat_33405273/noname/-/raw/', - github: 'https://raw.githubusercontent.com/libccy/noname', - }; - static updateURL = 'https://raw.githubusercontent.com/libccy/noname'; - static mirrorURL = 'https://gitcode.net/sinat_33405273/noname/-/raw/'; + static updateURLS = updateURLs; + static updateURL = updateURLs.github; + static mirrorURL = updateURLs.coding; static hallURL = '47.99.105.222'; static assetURL = assetURL; static userAgent = userAgent; @@ -1124,7 +1122,7 @@ export class Library extends Uninstantable { init: 'coding', unfrequent: true, item: { - coding: 'CSDN', + coding: 'URC', github: 'GitHub', }, onclick: function (item) { @@ -11287,7 +11285,6 @@ export class Library extends Uninstantable { charlotte: true, priority: -100, lastDo: true, - silent: true, content: function () { player.removeSkill('counttrigger'); delete player.storage.counttrigger; diff --git a/noname/library/update-urls.js b/noname/library/update-urls.js new file mode 100644 index 000000000..d53fbb73d --- /dev/null +++ b/noname/library/update-urls.js @@ -0,0 +1,4 @@ +export const updateURLs = { + coding: 'https://unitedrhythmized.club/libccy/noname', + github: 'https://raw.githubusercontent.com/libccy/noname' +}; diff --git a/noname/ui/index.js b/noname/ui/index.js index 2a7f08e0b..2960b84ac 100644 --- a/noname/ui/index.js +++ b/noname/ui/index.js @@ -14732,6 +14732,6 @@ export class UI extends Uninstantable { static updateRoundNumber(roundNumber, cardPileNumber) { if (ui.cardPileNumber) ui.cardPileNumber.innerHTML = `${roundNumber}轮 剩余牌: ${cardPileNumber}`; } -}; +} export const ui = UI;