Skip to content

Commit

Permalink
fix tsconfig.
Browse files Browse the repository at this point in the history
  • Loading branch information
ispyhumanfly committed Nov 1, 2023
1 parent 9c79e94 commit 5c3df4e
Show file tree
Hide file tree
Showing 5 changed files with 39 additions and 21 deletions.
2 changes: 1 addition & 1 deletion .vscode/settings.json
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@
"lerna.json": true,
"data": true,
".nvmrc": true
},
},
// Editor
"editor.quickSuggestions": {
"strings": true
Expand Down
18 changes: 13 additions & 5 deletions packages/core/src/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -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()
* ```
*/

Expand Down Expand Up @@ -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 {
Expand Down
21 changes: 14 additions & 7 deletions packages/templates/src/eternity/.vscode/settings.json
Original file line number Diff line number Diff line change
@@ -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"
}
}
12 changes: 4 additions & 8 deletions packages/templates/src/eternity/iniquity.ts
Original file line number Diff line number Diff line change
Expand Up @@ -26,29 +26,29 @@ 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()
this.wait(2000)

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()
Expand All @@ -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) => {
Expand All @@ -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 !== "") {
Expand Down
7 changes: 7 additions & 0 deletions packages/templates/src/eternity/tsconfig.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
{
"compilerOptions": {
"resolveJsonModule": true,
"esModuleInterop": true,
"strictNullChecks": true
}
}

0 comments on commit 5c3df4e

Please sign in to comment.