aboutsummaryrefslogtreecommitdiff
path: root/src/tol.ts
diff options
context:
space:
mode:
authorTerry Truong <terry06890@gmail.com>2022-05-04 01:17:06 +1000
committerTerry Truong <terry06890@gmail.com>2022-05-04 01:17:06 +1000
commit90a5e15bb824b84e5bb60337d6a57a1394090dc6 (patch)
tree661ea356c8d83b74d16f19d3555b0a1d3eb6eb56 /src/tol.ts
parentec29e5731136c74a1991e2f93b5e233747f2a230 (diff)
Add scripts for obtaining/sending/displaying wikipedia descriptions
Add backend/data/enwiki/ directory containing scripts and instructive READMEs. Adjust some other scripts to generate 'eol_ids' sqlite table separate from 'names'. Make server respond to /data/desc requests, and have client TileInfo component display response data. Also adjust .gitignore entries to be root-relative.
Diffstat (limited to 'src/tol.ts')
-rw-r--r--src/tol.ts2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/tol.ts b/src/tol.ts
index 46dccd7..77c401e 100644
--- a/src/tol.ts
+++ b/src/tol.ts
@@ -17,11 +17,13 @@ export class TolNode {
license: string,
copyrightOwner: string
};
+ desc: null | [string, boolean];
constructor(children: string[] = [], parent = null, tips = 0, pSupport = false){
this.children = children;
this.parent = parent;
this.tips = tips;
this.pSupport = pSupport;
this.img = null;
+ this.desc = null;
}
}