tpmkms_4wp 7.12.8 → 8.0.0-beta.1
Sign up to get free protection for your applications and to get access to all the features.
- package/common/animals.instance.json +192 -406
- package/common/animals.js +1 -1
- package/common/avatar.js +7 -5
- package/common/characters.js +12 -6
- package/common/{pipboyTemplate.instance.json → colors.instance.json} +13784 -8900
- package/common/colors.js +71 -0
- package/common/colors.test.json +4860 -0
- package/common/concept.js +2 -2
- package/common/crew.instance.json +3945 -3636
- package/common/crew.js +5 -3
- package/common/currency.js +0 -2
- package/common/dialogues.js +152 -20
- package/common/dialogues.test.json +1053 -33
- package/common/dimension.instance.json +750 -86
- package/common/dimension.js +15 -7
- package/common/dimension.test.json +289 -312
- package/common/edible.instance.json +446 -578
- package/common/edible.js +1 -1
- package/common/emotions.instance.json +67 -39
- package/common/emotions.js +1 -1
- package/common/fastfood.instance.json +1769 -2136
- package/common/fastfood.js +2 -2
- package/common/fastfood.test.json +7941 -3647
- package/common/formulas.instance.json +996 -0
- package/common/formulas.js +19 -6
- package/common/formulas.test.json +504 -2896
- package/common/gdefaults.js +2 -0
- package/common/help.js +7 -2
- package/common/help.test.json +18 -10
- package/common/helpers/concept.js +29 -9
- package/common/helpers/dialogues.js +17 -1
- package/common/helpers/formulas.js +0 -14
- package/common/helpers/meta.js +0 -1
- package/common/helpers/properties.js +6 -13
- package/common/helpers.js +5 -0
- package/common/javascript.js +8 -6
- package/common/kirk.instance.json +5 -1
- package/common/kirk.js +1 -1
- package/common/length.instance.json +417 -811
- package/common/length.js +1 -1
- package/common/math.instance.json +1938 -1
- package/common/math.js +17 -5
- package/common/meta.instance.json +1 -1
- package/common/meta.js +33 -10
- package/common/numbers.js +28 -24
- package/common/ordering.instance.json +98 -138
- package/common/ordering.js +1 -1
- package/common/people.instance.json +68 -121
- package/common/people.js +1 -1
- package/common/pipboy.instance.json +23411 -1076
- package/common/pipboy.js +31 -4
- package/common/pipboy.test.json +13 -9
- package/common/pokemon.instance.json +172 -223
- package/common/pokemon.js +1 -1
- package/common/pressure.instance.json +131 -81
- package/common/pressure.js +1 -1
- package/common/properties.instance.json +25 -49
- package/common/properties.js +20 -15
- package/common/properties.test.json +17605 -4030
- package/common/punctuation.js +8 -0
- package/common/punctuation.test.json +233 -5
- package/common/reports.instance.json +33 -65
- package/common/reports.js +9 -9
- package/common/scorekeeper.instance.json +1 -1
- package/common/scorekeeper.js +9 -7
- package/common/sizeable.js +7 -2
- package/common/spock.instance.json +5 -1
- package/common/spock.js +1 -1
- package/common/stm.js +16 -5
- package/common/tell.js +4 -2
- package/common/temperature.instance.json +142 -252
- package/common/temperature.js +1 -1
- package/common/testing.js +0 -1
- package/common/time.js +36 -20
- package/common/time.test.json +66 -44
- package/common/tokenize.js +47 -0
- package/common/tokenize.test.json +87 -0
- package/common/ui.instance.json +13 -1
- package/common/ui.js +0 -1
- package/common/weight.instance.json +335 -228
- package/common/weight.js +1 -1
- package/common/weight.test.json +242 -238
- package/main.js +6 -8
- package/package.json +10 -18
- package/common/dimensionTemplate.instance.json +0 -582
- package/common/dimensionTemplate.js +0 -35
- package/common/dimensionTemplate.test.json +0 -2
- package/common/formulasTemplate.instance.json +0 -483
- package/common/formulasTemplate.js +0 -30
- package/common/formulasTemplate.test.json +0 -2
- package/common/mathTemplate.instance.json +0 -1635
- package/common/mathTemplate.js +0 -32
- package/common/mathTemplate.test.json +0 -1422
- package/common/pipboyTemplate.js +0 -48
- package/common/pipboyTemplate.test.json +0 -2
package/common/dimension.js
CHANGED
@@ -1,9 +1,10 @@
|
|
1
1
|
const { Config, knowledgeModule, where, Digraph } = require('./runtime').theprogrammablemind
|
2
2
|
const { defaultContextCheck } = require('./helpers')
|
3
|
-
const
|
3
|
+
const hierarchy = require('./hierarchy.js')
|
4
4
|
const formulas = require('./formulas.js')
|
5
5
|
const testing = require('./testing.js')
|
6
|
-
const
|
6
|
+
const tests = require('./dimension.test.json')
|
7
|
+
const instance = require('./dimension.instance.json')
|
7
8
|
|
8
9
|
/*
|
9
10
|
x celcius equals x*9/5 + 32 fahrenheit
|
@@ -166,10 +167,17 @@ let configStruct = {
|
|
166
167
|
]
|
167
168
|
};
|
168
169
|
|
170
|
+
const template = {
|
171
|
+
configs: [
|
172
|
+
"dimension and unit are concepts",
|
173
|
+
configStruct,
|
174
|
+
],
|
175
|
+
}
|
176
|
+
|
169
177
|
const createConfig = () => {
|
170
|
-
const config = new Config(
|
178
|
+
const config = new Config({ name: 'dimension' }, module)
|
171
179
|
config.stop_auto_rebuild()
|
172
|
-
config.add(
|
180
|
+
config.add(hierarchy(), formulas(), testing())
|
173
181
|
config.api = api
|
174
182
|
config.restart_auto_rebuild()
|
175
183
|
return config
|
@@ -179,15 +187,15 @@ knowledgeModule({
|
|
179
187
|
module,
|
180
188
|
description: 'Used to define numeric temperature such as currency, temperature or weight',
|
181
189
|
createConfig,
|
190
|
+
template: { template, instance },
|
182
191
|
test: {
|
183
192
|
name: './dimension.test.json',
|
184
|
-
contents:
|
193
|
+
contents: tests,
|
185
194
|
checks: {
|
186
195
|
objects: [{ km: 'properties' }],
|
187
196
|
checks: {
|
188
197
|
context: defaultContextCheck,
|
189
198
|
},
|
190
|
-
|
191
|
-
}
|
199
|
+
},
|
192
200
|
},
|
193
201
|
})
|