@wwawing/page-generator 3.6.0-alpha.4 → 3.6.2

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.
@@ -1,7 +1,4 @@
1
1
  export interface Page {
2
2
  title?: string;
3
3
  additionalCssFiles?: string[];
4
- varDumpElement?: {
5
- id: string;
6
- };
7
4
  }
@@ -7,6 +7,9 @@ export interface GameOption {
7
7
  intervalSteps: number;
8
8
  };
9
9
  useLookingAround?: boolean;
10
+ varDump?: {
11
+ elementId: string;
12
+ };
10
13
  }
11
14
  export interface Resources {
12
15
  mapData: string;
package/lib/index.js CHANGED
@@ -24,7 +24,7 @@ var pug = __importStar(require("pug"));
24
24
  var path = __importStar(require("path"));
25
25
  var Helper = __importStar(require("./helper"));
26
26
  function generateTemplateValues(_a) {
27
- var _b, _c, _d, _e, _f, _g, _h, _j;
27
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
28
28
  var page = _a.page, wwa = _a.wwa, copyrights = _a.copyrights;
29
29
  return {
30
30
  head: {
@@ -43,12 +43,12 @@ function generateTemplateValues(_a) {
43
43
  "data-wwa-item-effect-enable": Helper.toStringBooleanOptional((_d = wwa.gameOption) === null || _d === void 0 ? void 0 : _d.isItemEffectEnabled),
44
44
  "data-wwa-use-go-to-wwa": Helper.toStringBooleanOptional((_e = wwa.gameOption) === null || _e === void 0 ? void 0 : _e.useGoToWWA),
45
45
  "data-wwa-looking-around": Helper.toStringBooleanOptional((_f = wwa.gameOption) === null || _f === void 0 ? void 0 : _f.useLookingAround),
46
- "data-wwa-autosave": "" + ((_j = (_h = (_g = wwa.gameOption) === null || _g === void 0 ? void 0 : _g.autoSave) === null || _h === void 0 ? void 0 : _h.intervalSteps) !== null && _j !== void 0 ? _j : "0"),
46
+ "data-wwa-autosave": "".concat((_j = (_h = (_g = wwa.gameOption) === null || _g === void 0 ? void 0 : _g.autoSave) === null || _h === void 0 ? void 0 : _h.intervalSteps) !== null && _j !== void 0 ? _j : "0"),
47
47
  "data-wwa-resume-savedata": wwa.resumeSaveData,
48
- "data-wwa-var-dump-elm": (page === null || page === void 0 ? void 0 : page.varDumpElement) ? "#" + page.varDumpElement.id : undefined
48
+ "data-wwa-var-dump-elm": ((_l = (_k = wwa.gameOption) === null || _k === void 0 ? void 0 : _k.varDump) === null || _l === void 0 ? void 0 : _l.elementId) ? "#".concat(wwa.gameOption.varDump.elementId) : undefined
49
49
  }
50
50
  },
51
- varDumpElement: (page === null || page === void 0 ? void 0 : page.varDumpElement) ? { id: page.varDumpElement.id } : undefined,
51
+ varDumpElement: ((_o = (_m = wwa.gameOption) === null || _m === void 0 ? void 0 : _m.varDump) === null || _o === void 0 ? void 0 : _o.elementId) ? { id: wwa.gameOption.varDump.elementId } : undefined,
52
52
  footer: {
53
53
  copyrights: Helper.generateCopyrights(copyrights)
54
54
  }
package/lib/wwa.pug CHANGED
@@ -27,6 +27,7 @@ html(lang="ja")
27
27
  )
28
28
 
29
29
  if varDumpElement
30
+ // 下記 div 要素内に変数一覧が出ます。実際に公開する WWA では、変数一覧を表示させないよう、次の行は消してください。
30
31
  div(id=varDumpElement.id)
31
32
 
32
33
  if footer.copyrights
@@ -1,7 +1,4 @@
1
1
  export interface Page {
2
2
  title?: string;
3
3
  additionalCssFiles?: string[];
4
- varDumpElement?: {
5
- id: string;
6
- };
7
4
  }
@@ -7,6 +7,9 @@ export interface GameOption {
7
7
  intervalSteps: number;
8
8
  };
9
9
  useLookingAround?: boolean;
10
+ varDump?: {
11
+ elementId: string;
12
+ };
10
13
  }
11
14
  export interface Resources {
12
15
  mapData: string;
package/module/index.js CHANGED
@@ -2,7 +2,7 @@ import * as pug from "pug";
2
2
  import * as path from "path";
3
3
  import * as Helper from "./helper";
4
4
  function generateTemplateValues(_a) {
5
- var _b, _c, _d, _e, _f, _g, _h, _j;
5
+ var _b, _c, _d, _e, _f, _g, _h, _j, _k, _l, _m, _o;
6
6
  var page = _a.page, wwa = _a.wwa, copyrights = _a.copyrights;
7
7
  return {
8
8
  head: {
@@ -21,12 +21,12 @@ function generateTemplateValues(_a) {
21
21
  "data-wwa-item-effect-enable": Helper.toStringBooleanOptional((_d = wwa.gameOption) === null || _d === void 0 ? void 0 : _d.isItemEffectEnabled),
22
22
  "data-wwa-use-go-to-wwa": Helper.toStringBooleanOptional((_e = wwa.gameOption) === null || _e === void 0 ? void 0 : _e.useGoToWWA),
23
23
  "data-wwa-looking-around": Helper.toStringBooleanOptional((_f = wwa.gameOption) === null || _f === void 0 ? void 0 : _f.useLookingAround),
24
- "data-wwa-autosave": "" + ((_j = (_h = (_g = wwa.gameOption) === null || _g === void 0 ? void 0 : _g.autoSave) === null || _h === void 0 ? void 0 : _h.intervalSteps) !== null && _j !== void 0 ? _j : "0"),
24
+ "data-wwa-autosave": "".concat((_j = (_h = (_g = wwa.gameOption) === null || _g === void 0 ? void 0 : _g.autoSave) === null || _h === void 0 ? void 0 : _h.intervalSteps) !== null && _j !== void 0 ? _j : "0"),
25
25
  "data-wwa-resume-savedata": wwa.resumeSaveData,
26
- "data-wwa-var-dump-elm": (page === null || page === void 0 ? void 0 : page.varDumpElement) ? "#" + page.varDumpElement.id : undefined
26
+ "data-wwa-var-dump-elm": ((_l = (_k = wwa.gameOption) === null || _k === void 0 ? void 0 : _k.varDump) === null || _l === void 0 ? void 0 : _l.elementId) ? "#".concat(wwa.gameOption.varDump.elementId) : undefined
27
27
  }
28
28
  },
29
- varDumpElement: (page === null || page === void 0 ? void 0 : page.varDumpElement) ? { id: page.varDumpElement.id } : undefined,
29
+ varDumpElement: ((_o = (_m = wwa.gameOption) === null || _m === void 0 ? void 0 : _m.varDump) === null || _o === void 0 ? void 0 : _o.elementId) ? { id: wwa.gameOption.varDump.elementId } : undefined,
30
30
  footer: {
31
31
  copyrights: Helper.generateCopyrights(copyrights)
32
32
  }
package/module/wwa.pug CHANGED
@@ -27,6 +27,7 @@ html(lang="ja")
27
27
  )
28
28
 
29
29
  if varDumpElement
30
+ // 下記 div 要素内に変数一覧が出ます。実際に公開する WWA では、変数一覧を表示させないよう、次の行は消してください。
30
31
  div(id=varDumpElement.id)
31
32
 
32
33
  if footer.copyrights
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "@wwawing/page-generator",
3
- "version": "3.6.0-alpha.4",
3
+ "version": "3.6.2",
4
4
  "description": "a HTML file generator for WWA Wing",
5
5
  "main": "lib/index.js",
6
6
  "types": "lib/index.d.ts",
@@ -33,7 +33,7 @@
33
33
  "pug-cli": "^1.0.0-alpha6",
34
34
  "shelljs": "^0.8.4",
35
35
  "shx": "^0.3.3",
36
- "typescript": "^4.2.4"
36
+ "typescript": "^4.5.4"
37
37
  },
38
38
  "dependencies": {
39
39
  "pug": "^3.0.2"
@@ -45,5 +45,5 @@
45
45
  "node": ">=14",
46
46
  "npm": ">=6"
47
47
  },
48
- "gitHead": "2b0de15c24d353c71ef97d133570311d37e7d0d1"
48
+ "gitHead": "0b9f1acd00d0ec0dc7b681c35870f28ef93d72a7"
49
49
  }