Merge pull request #877 from Tipx-L/PR-Branch

The URL update.
This commit is contained in:
Spmario233 2024-01-29 11:18:28 +08:00 committed by GitHub
commit f32c07763b
No known key found for this signature in database
GPG Key ID: B5690EEEBB952194
6 changed files with 16 additions and 14 deletions

1
.gitignore vendored
View File

@ -19,6 +19,7 @@ app
app.html
ehthumbs.db
extension
Home
jsconfig.json
localStorage.json
main.js

View File

@ -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:[],

View File

@ -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;

View File

@ -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;

View File

@ -0,0 +1,4 @@
export const updateURLs = {
coding: 'https://unitedrhythmized.club/libccy/noname',
github: 'https://raw.githubusercontent.com/libccy/noname'
};

View File

@ -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;