mirror of
https://github.com/mauriceboe/TREK.git
synced 2026-10-22 23:16:46 +00:00
chore: update repo url
This commit is contained in:
@@ -26,7 +26,7 @@ import semver from 'semver';
|
||||
|
||||
const REGISTRY_URL =
|
||||
process.env.TREK_PLUGIN_REGISTRY_URL ||
|
||||
'https://raw.githubusercontent.com/iiketrek/TREK-Plugins/main/dist/index.json';
|
||||
'https://raw.githubusercontent.com/liketrek/TREK-Plugins/main/dist/index.json';
|
||||
const CACHE_TTL = 30 * 60 * 1000;
|
||||
const MANIFEST_MAX_BYTES = 256 * 1024;
|
||||
// Sideload upload ceiling — matches the SDK `pack` limit (50 MB) plus zip overhead.
|
||||
@@ -176,9 +176,7 @@ export class PluginRegistryService {
|
||||
* `authorPublicKey` is exposed in full — it is a public key, and the re-trust
|
||||
* round-trip compares it exactly (a truncated fingerprint would be a weak check).
|
||||
*/
|
||||
async browse(
|
||||
force = false,
|
||||
): Promise<
|
||||
async browse(force = false): Promise<
|
||||
Array<
|
||||
Omit<RegistryEntry, 'versions'> & {
|
||||
latest: string | null;
|
||||
|
||||
@@ -366,7 +366,7 @@ export function saveDemoBaseline(): { error?: string; status?: number; message?:
|
||||
|
||||
export async function getGithubReleases(perPage: string = '10', page: string = '1') {
|
||||
try {
|
||||
const resp = await fetch(`https://api.github.com/repos/iiketrek/TREK/releases?per_page=${perPage}&page=${page}`, {
|
||||
const resp = await fetch(`https://api.github.com/repos/liketrek/TREK/releases?per_page=${perPage}&page=${page}`, {
|
||||
headers: { Accept: 'application/vnd.github.v3+json', 'User-Agent': 'TREK-Server' },
|
||||
});
|
||||
if (!resp.ok) return [];
|
||||
@@ -412,7 +412,7 @@ export async function checkVersion(): Promise<VersionInfo> {
|
||||
try {
|
||||
if (isPrerelease) {
|
||||
// Fetch release list and find the newest prerelease
|
||||
const resp = await fetch('https://api.github.com/repos/iiketrek/TREK/releases?per_page=100', {
|
||||
const resp = await fetch('https://api.github.com/repos/liketrek/TREK/releases?per_page=100', {
|
||||
headers: { Accept: 'application/vnd.github.v3+json', 'User-Agent': 'TREK-Server' },
|
||||
});
|
||||
if (!resp.ok) {
|
||||
@@ -437,7 +437,7 @@ export async function checkVersion(): Promise<VersionInfo> {
|
||||
is_prerelease: true,
|
||||
};
|
||||
} else {
|
||||
const resp = await fetch('https://api.github.com/repos/iiketrek/TREK/releases/latest', {
|
||||
const resp = await fetch('https://api.github.com/repos/liketrek/TREK/releases/latest', {
|
||||
headers: { Accept: 'application/vnd.github.v3+json', 'User-Agent': 'TREK-Server' },
|
||||
});
|
||||
if (!resp.ok) {
|
||||
|
||||
@@ -13,7 +13,7 @@ import path from 'path';
|
||||
* GitHub directly either way; images are proxied through /api/help/asset.
|
||||
*/
|
||||
|
||||
const REPO = 'iiketrek/TREK';
|
||||
const REPO = 'liketrek/TREK';
|
||||
const RAW_BASE = `https://raw.githubusercontent.com/${REPO}/main/wiki`;
|
||||
const TTL_MS = 60 * 60 * 1000; // remote fallback only: refresh from GitHub at most hourly
|
||||
const SLUG_RE = /^[A-Za-z0-9][A-Za-z0-9._-]*$/;
|
||||
|
||||
Reference in New Issue
Block a user