aboutsummaryrefslogtreecommitdiff
path: root/src/shared/property-defs.ts
diff options
context:
space:
mode:
authorShin'ya UEOKA <ueokande@i-beam.org>2019-10-05 02:06:02 +0000
committerShin'ya UEOKA <ueokande@i-beam.org>2019-10-06 12:58:59 +0000
commit574692551a27ea56660bf2061daeaa0d34beaff4 (patch)
tree414a7f1de8dfb24af45d7e392b72549bc67ad48a /src/shared/property-defs.ts
parent2116ac90a6dfdb0910d7ad2896f70a052aa635cc (diff)
Make Properties class
Diffstat (limited to 'src/shared/property-defs.ts')
-rw-r--r--src/shared/property-defs.ts56
1 files changed, 0 insertions, 56 deletions
diff --git a/src/shared/property-defs.ts b/src/shared/property-defs.ts
deleted file mode 100644
index fec9f80..0000000
--- a/src/shared/property-defs.ts
+++ /dev/null
@@ -1,56 +0,0 @@
-export type Type = string | number | boolean;
-
-export class Def {
- private name0: string;
-
- private description0: string;
-
- private defaultValue0: Type;
-
- constructor(
- name: string,
- description: string,
- defaultValue: Type,
- ) {
- this.name0 = name;
- this.description0 = description;
- this.defaultValue0 = defaultValue;
- }
-
- public get name(): string {
- return this.name0;
- }
-
- public get defaultValue(): Type {
- return this.defaultValue0;
- }
-
- public get description(): Type {
- return this.description0;
- }
-
- public get type(): string {
- return typeof this.defaultValue;
- }
-}
-
-export const defs: Def[] = [
- new Def(
- 'hintchars',
- 'hint characters on follow mode',
- 'abcdefghijklmnopqrstuvwxyz'),
- new Def(
- 'smoothscroll',
- 'smooth scroll',
- false),
- new Def(
- 'complete',
- 'which are completed at the open page',
- 'sbh'),
-];
-
-export const defaultValues = {
- hintchars: 'abcdefghijklmnopqrstuvwxyz',
- smoothscroll: false,
- complete: 'sbh',
-};