It runs now, wont let me connect to instances though
Signed-off-by: Scott Gould <greysilly7@gmail.com>
This commit is contained in:
parent
dbbba430b7
commit
69c151162e
5 changed files with 1772 additions and 2833 deletions
|
@ -16,6 +16,7 @@ export default tseslint.config(
|
|||
},
|
||||
},
|
||||
files: ["**/*.ts", "**/*.html"],
|
||||
ignores: ["dist/**/*", "node_modules/**/*"],
|
||||
rules: {
|
||||
"array-callback-return": 2,
|
||||
"block-scoped-var": 2,
|
||||
|
|
1074
package-lock.json
generated
1074
package-lock.json
generated
File diff suppressed because it is too large
Load diff
11
package.json
11
package.json
|
@ -12,23 +12,24 @@
|
|||
"author": "MathMan05",
|
||||
"license": "GPL-3.0",
|
||||
"dependencies": {
|
||||
"@html-eslint/parser": "^0.27.0",
|
||||
"compression": "^1.7.4",
|
||||
"express": "^4.19.2",
|
||||
"node-fetch": "^3.3.2",
|
||||
"ts-to-jsdoc": "^2.2.0"
|
||||
},
|
||||
"devDependencies": {
|
||||
"typescript": "^5.6.2",
|
||||
"eslint": "^8.57.1",
|
||||
"@eslint/js": "^9.10.0",
|
||||
"@types/eslint__js": "^8.42.3",
|
||||
"typescript-eslint": "^7.18.0",
|
||||
"@html-eslint/eslint-plugin": "^0.25.0",
|
||||
"@types/compression": "^1.7.5",
|
||||
"@types/eslint__js": "^8.42.3",
|
||||
"@types/express": "^4.17.21",
|
||||
"@types/node-fetch": "^2.6.11",
|
||||
"eslint": "^8.57.1",
|
||||
"gulp": "^5.0.0",
|
||||
"gulp-copy": "^5.0.0",
|
||||
"gulp-typescript": "^6.0.0-alpha.1"
|
||||
"gulp-typescript": "^6.0.0-alpha.1",
|
||||
"typescript": "^5.6.2",
|
||||
"typescript-eslint": "^7.18.0"
|
||||
}
|
||||
}
|
|
@ -6,14 +6,14 @@ import { User } from "./user.js";
|
|||
import { Dialog } from "./dialog.js";
|
||||
import { getapiurls, getBulkInfo, setTheme, Specialuser } from "./login.js";
|
||||
import {
|
||||
channeljson,
|
||||
guildjson,
|
||||
memberjson,
|
||||
messageCreateJson,
|
||||
presencejson,
|
||||
readyjson,
|
||||
startTypingjson,
|
||||
wsjson,
|
||||
channeljson,
|
||||
guildjson,
|
||||
memberjson,
|
||||
messageCreateJson,
|
||||
presencejson,
|
||||
readyjson,
|
||||
startTypingjson,
|
||||
wsjson,
|
||||
} from "./jsontypes.js";
|
||||
import { Member } from "./member.js";
|
||||
import { FormError, Settings } from "./settings.js";
|
||||
|
@ -22,22 +22,22 @@ import { MarkDown } from "./markdown.js";
|
|||
const wsCodesRetry = new Set([4000, 4003, 4005, 4007, 4008, 4009]);
|
||||
|
||||
class Localuser {
|
||||
badges: Map<
|
||||
string,
|
||||
{ id: string; description: string; icon: string; link: string }
|
||||
> = new Map();
|
||||
lastSequence: number | null = null;
|
||||
token!: string;
|
||||
userinfo!: Specialuser;
|
||||
serverurls!: Specialuser["serverurls"];
|
||||
initialized!: boolean;
|
||||
info!: Specialuser["serverurls"];
|
||||
headers!: { "Content-type": string; Authorization: string };
|
||||
userConnections!: Dialog;
|
||||
devPortal!: Dialog;
|
||||
ready!: readyjson;
|
||||
guilds!: Guild[];
|
||||
guildids: Map<string, Guild> = new Map();
|
||||
badges: Map<
|
||||
string,
|
||||
{ id: string; description: string; icon: string; link: string }
|
||||
> = new Map();
|
||||
lastSequence: number | null = null;
|
||||
token!: string;
|
||||
userinfo!: Specialuser;
|
||||
serverurls!: Specialuser["serverurls"];
|
||||
initialized!: boolean;
|
||||
info!: Specialuser["serverurls"];
|
||||
headers!: { "Content-type": string; Authorization: string };
|
||||
userConnections!: Dialog;
|
||||
devPortal!: Dialog;
|
||||
ready!: readyjson;
|
||||
guilds!: Guild[];
|
||||
guildids: Map<string, Guild> = new Map();
|
||||
user!: User;
|
||||
status!: string;
|
||||
channelfocus: Channel | undefined;
|
||||
|
@ -1634,7 +1634,7 @@ guildids: Map<string, Guild> = new Map();
|
|||
//---------- resolving members code -----------
|
||||
readonly waitingmembers: Map<
|
||||
string,
|
||||
Map<string, (returns: memberjson | undefined)> void>
|
||||
Map<string, (returns: memberjson | undefined) => void>
|
||||
> = new Map();
|
||||
readonly presences: Map<string, presencejson> = new Map();
|
||||
async resolvemember(
|
||||
|
@ -1675,7 +1675,7 @@ guildids: Map<string, Guild> = new Map();
|
|||
return await promise;
|
||||
}
|
||||
fetchingmembers: Map<string, boolean> = new Map();
|
||||
noncemap: Map<string, (r: [memberjson[], string[]])> void> = new Map();
|
||||
noncemap: Map<string, (r: [memberjson[], string[]]) => void> = new Map();
|
||||
noncebuild: Map<string, [memberjson[], string[], number[]]> = new Map();
|
||||
async gotChunk(chunk: {
|
||||
chunk_index: number;
|
||||
|
@ -1820,5 +1820,5 @@ guildids: Map<string, Guild> = new Map();
|
|||
]);
|
||||
dialog.show();
|
||||
}
|
||||
}
|
||||
export { Localuser };
|
||||
}
|
||||
export { Localuser };
|
||||
|
|
|
@ -28,6 +28,7 @@
|
|||
"target": "ESNext",
|
||||
"useDefineForClassFields": true,
|
||||
"resolvePackageJsonImports": true,
|
||||
"skipLibCheck": true,
|
||||
"outDir": "./dist",
|
||||
},
|
||||
"include": [
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue