diff --git a/.vscode/settings.json b/.vscode/settings.json index 82cfe20..b7d34de 100644 --- a/.vscode/settings.json +++ b/.vscode/settings.json @@ -32,7 +32,7 @@ "lerna.json": true, "data": true, ".nvmrc": true -}, + }, // Editor "editor.quickSuggestions": { "strings": true diff --git a/packages/core/src/index.ts b/packages/core/src/index.ts index e303e9d..7518774 100644 --- a/packages/core/src/index.ts +++ b/packages/core/src/index.ts @@ -4,15 +4,15 @@ * @summary This is the Iniquity core bbs library. It's the foundation of any Iniquity application. * @example * ```typescript - * import BBS from "@iniquitybbs/core" + * import { IQ } from "@iniquitybbs/core" * - * const mybbs = new BBS() + * const iq = new IQ() * - * myIniquity.artwork({ filename: "./path/to/textfile.ans" }).render({ speed: 10 }) + * iq.artwork({ filename: "./path/to/textfile.ans" }).render({ speed: 10 }) * - * myIniquity.say("Pretty cool, right???".newlines(2).color("bright cyan").center()).pause() + * iq.say("Pretty cool, right???".newlines(2).color("bright cyan").center()).pause() * - * myIniquity.disconnect() + * iq.disconnect() * ``` */ @@ -1369,7 +1369,15 @@ interface ISBBSSystem { get_node(node: number): ISBBSSystemNodeListProperties name: string operator: string + + /** + * The node list. + */ node_list: ISBBSSystemNodeListProperties[] + + /** + * The bbs stats + */ stats: any } interface ISBBSSystemNodeListProperties { diff --git a/packages/templates/src/eternity/.vscode/settings.json b/packages/templates/src/eternity/.vscode/settings.json index 0a617bb..c1ea469 100644 --- a/packages/templates/src/eternity/.vscode/settings.json +++ b/packages/templates/src/eternity/.vscode/settings.json @@ -1,11 +1,18 @@ { "files.exclude": { - "**/.git": false, - "**/.vscode": false, - "**/.hg": false, - "**/CVS": false, - "**/.DS_Store": false, - "**/Thumbs.db": false, - "**/.iniquity": false + "**/.git": true, + "**/.vscode": true, + "**/.hg": true, + "**/CVS": true, + "**/.DS_Store": true, + "**/Thumbs.db": true, + "**/.iniquity": true + }, + "files.associations": { + "*.ts": "typescript", + "*.js": "typescript", + "*.html": "html", + "*.ans": "text", + "*.asc": "text" } } diff --git a/packages/templates/src/eternity/iniquity.ts b/packages/templates/src/eternity/iniquity.ts index ce19373..777b398 100644 --- a/packages/templates/src/eternity/iniquity.ts +++ b/packages/templates/src/eternity/iniquity.ts @@ -26,20 +26,22 @@ export class Eternity extends IQ { public start() { this.data.observe("alert", () => { const alert = this.data.model.alert as string - this.artwork().render({ filename: "as-ini.cp437.ans", clearScreenBefore: true }) + this.artwork().render({ filename: "as-ini.cp437.ans", mode: "reactive", clearScreenBefore: true }) alert.color("white").center() this.gotoxy(1, 1) + this.wait(2000) }) this.data.observe("message", () => { const message = this.data.model.message as string - this.artwork().render({ filename: "newuser.cp437.ans", mode: "@-codes", clearScreenBefore: true }) + this.artwork().render({ filename: "newuser.cp437.ans", mode: "reactive", clearScreenBefore: true }) message.color("background bright green").center() this.gotoxy(1, 1) + this.wait(2000) }) this.artwork().render({ filename: "iqascii.ans", clearScreenBefore: false }).colorReset() @@ -47,8 +49,6 @@ export class Eternity extends IQ { this.data.model.alert = "Loading iniquity..." - this.wait(2000) - "".color("reset") this.artwork().render({ filename: "cx-iqwfc.ans", mode: "character", speed: 40, clearScreenBefore: false }).colorReset() @@ -64,8 +64,6 @@ export class Eternity extends IQ { public welcome() { this.data.model.alert = "Welcome to eternity bbs ... " - this.wait(2000) - this.artwork().render({ filename: "we-iniq3.ans", clearScreenBefore: true }) this.ask("Would you like to come inside? (y/n)".gotoxy(40, 18).color("reset"), (answer: string) => { @@ -81,9 +79,7 @@ export class Eternity extends IQ { this.data.model.message = "welcome to eternity bbs ... please read the following if you are calling long distance you will be automatically validated now otherwise..." - this.wait(2000) this.data.model.message = "please read the following if you are calling long distance you will be automatically validated now otherwise..." - this.wait(3000) this.ask("Enter your handle".gotoxy(30, 15).color("reset"), (handle: string) => { if (handle !== "") { diff --git a/packages/templates/src/eternity/tsconfig.json b/packages/templates/src/eternity/tsconfig.json new file mode 100644 index 0000000..e1af8fb --- /dev/null +++ b/packages/templates/src/eternity/tsconfig.json @@ -0,0 +1,7 @@ +{ + "compilerOptions": { + "resolveJsonModule": true, + "esModuleInterop": true, + "strictNullChecks": true + } +} \ No newline at end of file