@mark1russell7/guidebook-preparedness 0.3.1 → 0.5.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +8 -1
- package/build/index.d.ts +14 -3
- package/build/index.d.ts.map +1 -1
- package/build/index.js +1897 -784
- package/build/index.js.map +1 -1
- package/package.json +2 -2
- package/src/data/chart.ts +16 -17
- package/src/data/coverage.ts +0 -25
- package/src/data/gaps.ts +1 -25
- package/src/data/hazards.ts +57 -0
- package/src/data/sources.ts +13 -0
- package/src/data/steps.ts +211 -101
- package/src/index.ts +24 -4
package/src/index.ts
CHANGED
|
@@ -1,14 +1,17 @@
|
|
|
1
1
|
// The preparedness content of the guidebook: the sources, the steps and the marked gaps of 12 cases and 12 cuts,
|
|
2
2
|
// the topics of 12 areas, and the catalog of offline bundles.
|
|
3
3
|
|
|
4
|
-
import
|
|
5
|
-
import {
|
|
4
|
+
import { GRAPH_SCHEMA, SOCIETY_STATES } from "@mark1russell7/guidebook-plans";
|
|
5
|
+
import type { HazardRow, MasterGraph, Tab } from "@mark1russell7/guidebook-plans";
|
|
6
|
+
import { CATALOG_TAB, MASTER, START_TAB, tabsOf } from "./data/chart.ts";
|
|
7
|
+
import { hazardsOf } from "./data/hazards.ts";
|
|
8
|
+
import { CASE_STEPS } from "./data/steps.ts";
|
|
6
9
|
export { CHECKED, SOURCES } from "./data/sources.ts";
|
|
7
10
|
export { CASE_STEPS, CUT_STEPS, STEPS } from "./data/steps.ts";
|
|
8
11
|
export { GAPS } from "./data/gaps.ts";
|
|
9
12
|
export { OPEN_CELLS } from "./data/coverage.ts";
|
|
10
13
|
export { RULES } from "./data/rules.ts";
|
|
11
|
-
export { MASTER, START_TAB } from "./data/chart.ts";
|
|
14
|
+
export { CATALOG_TAB, MASTER, START_TAB } from "./data/chart.ts";
|
|
12
15
|
export { AREAS, TOPICS } from "./data/topics.ts";
|
|
13
16
|
export { BUNDLES, BUNDLES_CHECKED, BUNDLE_LEVELS } from "./data/bundles.ts";
|
|
14
17
|
export { MEDIA_UNITS, MEDIUM_GAPS, MEDIUM_LOSSES } from "./data/media.ts";
|
|
@@ -45,4 +48,21 @@ export const CUTS = ["power.grid", "water.main", "road.local", "phone.network",
|
|
|
45
48
|
export const NEEDS = ["hydration.drink", "food.energy", "health.medicine", "power.electric"] as const;
|
|
46
49
|
|
|
47
50
|
/** The tabs of the printed plan, in the sequence of the binder. The master chart sends the reader to them. */
|
|
48
|
-
|
|
51
|
+
/** The key of the cut of all the services of society: help, shops, care and the law. Its steps are for a society with no service. */
|
|
52
|
+
export const SOCIETY_KEY = "society.services";
|
|
53
|
+
|
|
54
|
+
export const TABS: readonly Tab[] = tabsOf([...CASES, ...MORE_CASES], [...CUTS, SOCIETY_KEY]);
|
|
55
|
+
|
|
56
|
+
/** The rows of the hazard catalog: for each case, its signals, its entry node and its card. */
|
|
57
|
+
export const HAZARDS: readonly HazardRow[] = hazardsOf(CASE_STEPS);
|
|
58
|
+
|
|
59
|
+
/** The master graph: the one value that the printed binder and the app read. */
|
|
60
|
+
export const GRAPH: MasterGraph = {
|
|
61
|
+
schema: GRAPH_SCHEMA,
|
|
62
|
+
start: START_TAB,
|
|
63
|
+
catalog: CATALOG_TAB,
|
|
64
|
+
societies: SOCIETY_STATES,
|
|
65
|
+
nodes: MASTER,
|
|
66
|
+
tabs: TABS,
|
|
67
|
+
hazards: HAZARDS,
|
|
68
|
+
};
|