@zthun/romulator-web 1.5.0 → 1.6.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/CHANGELOG.md
CHANGED
|
@@ -3,6 +3,15 @@
|
|
|
3
3
|
All notable changes to this project will be documented in this file.
|
|
4
4
|
See [Conventional Commits](https://conventionalcommits.org) for commit guidelines.
|
|
5
5
|
|
|
6
|
+
## [1.6.0](https://github.com/zthun/romulator/compare/v1.5.0...v1.6.0) (2025-10-20)
|
|
7
|
+
|
|
8
|
+
|
|
9
|
+
### Bug Fixes
|
|
10
|
+
|
|
11
|
+
* system page tiles are now centered ([1ee902e](https://github.com/zthun/romulator/commit/1ee902e1df48351c384384f2af2a3e64fc0a501f))
|
|
12
|
+
|
|
13
|
+
|
|
14
|
+
|
|
6
15
|
## [1.5.0](https://github.com/zthun/romulator/compare/v1.4.0...v1.5.0) (2025-10-14)
|
|
7
16
|
|
|
8
17
|
|
|
@@ -11839,6 +11839,12 @@ function _object_spread$4$1(target) {
|
|
|
11839
11839
|
/**
|
|
11840
11840
|
* Like (Contains)
|
|
11841
11841
|
*/ ZOperatorBinary["Like"] = "like";
|
|
11842
|
+
/**
|
|
11843
|
+
* Starts with
|
|
11844
|
+
*/ ZOperatorBinary["StartsWith"] = "sw";
|
|
11845
|
+
/**
|
|
11846
|
+
* Ends with
|
|
11847
|
+
*/ ZOperatorBinary["EndsWith"] = "ew";
|
|
11842
11848
|
return ZOperatorBinary;
|
|
11843
11849
|
}({});
|
|
11844
11850
|
/**
|
|
@@ -11881,14 +11887,26 @@ function _object_spread$4$1(target) {
|
|
|
11881
11887
|
* Constructs a greater than or equal to filter.
|
|
11882
11888
|
*
|
|
11883
11889
|
* @returns
|
|
11884
|
-
*
|
|
11890
|
+
* This object.
|
|
11885
11891
|
*/ _define_property$c$1(this, "greaterThanEqualTo", this.operator.bind(this, "gteq"));
|
|
11886
11892
|
/**
|
|
11887
11893
|
* Constructs a like filter.
|
|
11888
11894
|
*
|
|
11889
11895
|
* @returns
|
|
11890
|
-
*
|
|
11896
|
+
* This object.
|
|
11891
11897
|
*/ _define_property$c$1(this, "like", this.operator.bind(this, "like"));
|
|
11898
|
+
/**
|
|
11899
|
+
* Constructs a starts with filter.
|
|
11900
|
+
*
|
|
11901
|
+
* @returns
|
|
11902
|
+
* This object.
|
|
11903
|
+
*/ _define_property$c$1(this, "startsWith", this.operator.bind(this, "sw"));
|
|
11904
|
+
/**
|
|
11905
|
+
* Constructs an ends with filter.
|
|
11906
|
+
*
|
|
11907
|
+
* @returns
|
|
11908
|
+
* This object.
|
|
11909
|
+
*/ _define_property$c$1(this, "endsWith", this.operator.bind(this, "ew"));
|
|
11892
11910
|
this._filter = {
|
|
11893
11911
|
subject: "",
|
|
11894
11912
|
value: null,
|
|
@@ -12000,6 +12018,10 @@ var _obj$2$1;
|
|
|
12000
12018
|
return d <= v;
|
|
12001
12019
|
}), _define_property$c$1(_obj$2$1, "like", function(d, v) {
|
|
12002
12020
|
return "".concat(d).indexOf("".concat(v)) >= 0;
|
|
12021
|
+
}), _define_property$c$1(_obj$2$1, "sw", function(d, v) {
|
|
12022
|
+
return "".concat(d).startsWith("".concat(v));
|
|
12023
|
+
}), _define_property$c$1(_obj$2$1, "ew", function(d, v) {
|
|
12024
|
+
return "".concat(d).endsWith("".concat(v));
|
|
12003
12025
|
}), _obj$2$1);
|
|
12004
12026
|
|
|
12005
12027
|
function _class_call_check$i$1(instance, Constructor) {
|
|
@@ -52386,13 +52408,8 @@ const DefaultSystemRequest = new ZDataRequestBuilder().sort(DefaultSystemSortOrd
|
|
|
52386
52408
|
function ZRomulatorSystemsPage() {
|
|
52387
52409
|
const { body } = useFashionTheme();
|
|
52388
52410
|
const navigate = useNavigate();
|
|
52389
|
-
const
|
|
52411
|
+
const systems = useSystemsService();
|
|
52390
52412
|
const [request, setRequest] = reactExports.useState(DefaultSystemRequest);
|
|
52391
|
-
const tile = useCss(css$1`
|
|
52392
|
-
& {
|
|
52393
|
-
height: 100%;
|
|
52394
|
-
}
|
|
52395
|
-
`);
|
|
52396
52413
|
const renderTile = (system)=>{
|
|
52397
52414
|
const { api } = new ZRomulatorEnvironmentBuilder().build();
|
|
52398
52415
|
const id = `${system.id}-wheel`;
|
|
@@ -52406,21 +52423,16 @@ function ZRomulatorSystemsPage() {
|
|
|
52406
52423
|
"data-name": system.id,
|
|
52407
52424
|
onClick: ()=>navigate(system.id),
|
|
52408
52425
|
children: /*#__PURE__*/ jsxRuntimeExports.jsx(ZStack, {
|
|
52409
|
-
className: cssJoinDefined(tile),
|
|
52410
|
-
gap: ZSizeFixed.Medium,
|
|
52411
|
-
orientation: ZOrientation.Horizontal,
|
|
52412
52426
|
justify: {
|
|
52413
52427
|
content: "center"
|
|
52414
52428
|
},
|
|
52415
52429
|
align: {
|
|
52416
52430
|
items: "center"
|
|
52417
52431
|
},
|
|
52418
|
-
|
|
52419
|
-
|
|
52420
|
-
|
|
52421
|
-
|
|
52422
|
-
width: ZSizeVaried.Full
|
|
52423
|
-
})
|
|
52432
|
+
height: ZSizeVaried.Full,
|
|
52433
|
+
children: /*#__PURE__*/ jsxRuntimeExports.jsx(ZImageSource, {
|
|
52434
|
+
src: wheel,
|
|
52435
|
+
width: ZSizeVaried.Full
|
|
52424
52436
|
})
|
|
52425
52437
|
})
|
|
52426
52438
|
}, system.id);
|
|
@@ -52450,10 +52462,10 @@ function ZRomulatorSystemsPage() {
|
|
|
52450
52462
|
},
|
|
52451
52463
|
gap: ZSizeFixed.Medium
|
|
52452
52464
|
},
|
|
52465
|
+
dataSource: systems,
|
|
52466
|
+
renderItem: renderTile,
|
|
52453
52467
|
value: request,
|
|
52454
|
-
onValueChange: setRequest
|
|
52455
|
-
dataSource: source,
|
|
52456
|
-
renderItem: renderTile
|
|
52468
|
+
onValueChange: setRequest
|
|
52457
52469
|
})
|
|
52458
52470
|
})
|
|
52459
52471
|
]
|
package/dist/index.html
CHANGED
|
@@ -4,7 +4,7 @@
|
|
|
4
4
|
<meta charset="UTF-8" />
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
|
|
6
6
|
<title>Romulator: Organize your Games</title>
|
|
7
|
-
<script type="module" crossorigin src="/assets/index-
|
|
7
|
+
<script type="module" crossorigin src="/assets/index-DUOIpN_h.js"></script>
|
|
8
8
|
</head>
|
|
9
9
|
<body>
|
|
10
10
|
<div id="zthunworks-romulator"></div>
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@zthun/romulator-web",
|
|
3
|
-
"version": "1.
|
|
3
|
+
"version": "1.6.0",
|
|
4
4
|
"description": "Romulator frontend",
|
|
5
5
|
"author": "Anthony Bonta",
|
|
6
6
|
"license": "MIT",
|
|
@@ -18,20 +18,20 @@
|
|
|
18
18
|
"access": "public"
|
|
19
19
|
},
|
|
20
20
|
"devDependencies": {
|
|
21
|
-
"@types/node": "^24.
|
|
21
|
+
"@types/node": "^24.8.1",
|
|
22
22
|
"@zthun/cirque": "^7.1.10",
|
|
23
23
|
"@zthun/cirque-du-react": "^7.1.10",
|
|
24
|
-
"@zthun/fashion-boutique": "^11.0.
|
|
25
|
-
"@zthun/fashion-tailor": "^11.0.
|
|
26
|
-
"@zthun/fashion-theme": "^11.0.
|
|
24
|
+
"@zthun/fashion-boutique": "^11.0.1",
|
|
25
|
+
"@zthun/fashion-tailor": "^11.0.1",
|
|
26
|
+
"@zthun/fashion-theme": "^11.0.1",
|
|
27
27
|
"@zthun/helpful-fn": "^9.6.0",
|
|
28
|
-
"@zthun/helpful-query": "^9.
|
|
29
|
-
"@zthun/helpful-react": "^9.
|
|
28
|
+
"@zthun/helpful-query": "^9.7.1",
|
|
29
|
+
"@zthun/helpful-react": "^9.7.1",
|
|
30
30
|
"@zthun/janitor-build-config": "^19.3.6",
|
|
31
|
-
"@zthun/romulator-client": "^1.
|
|
32
|
-
"@zthun/webigail-http": "^4.0.
|
|
33
|
-
"@zthun/webigail-rest": "^4.0.
|
|
34
|
-
"@zthun/webigail-url": "^4.0.
|
|
31
|
+
"@zthun/romulator-client": "^1.6.0",
|
|
32
|
+
"@zthun/webigail-http": "^4.0.9",
|
|
33
|
+
"@zthun/webigail-rest": "^4.0.9",
|
|
34
|
+
"@zthun/webigail-url": "^4.0.9",
|
|
35
35
|
"history": "^5.3.0",
|
|
36
36
|
"lodash-es": "^4.17.21",
|
|
37
37
|
"react": "^19.2.0",
|
|
@@ -42,5 +42,5 @@
|
|
|
42
42
|
"vitest": "^3.2.4",
|
|
43
43
|
"vitest-mock-extended": "^3.1.0"
|
|
44
44
|
},
|
|
45
|
-
"gitHead": "
|
|
45
|
+
"gitHead": "9f3e9d22ba3ef2561e18c72a11b8c85f45052438"
|
|
46
46
|
}
|
|
@@ -1,18 +1,15 @@
|
|
|
1
1
|
import {
|
|
2
|
-
useCss,
|
|
3
2
|
useFashionTheme,
|
|
4
3
|
useNavigate,
|
|
5
4
|
ZBox,
|
|
6
5
|
ZBreadcrumbsLocation,
|
|
7
6
|
ZCard,
|
|
8
|
-
ZContentTitle,
|
|
9
7
|
ZGridView,
|
|
10
8
|
ZIconFontAwesome,
|
|
11
9
|
ZImageSource,
|
|
12
10
|
ZStack,
|
|
13
11
|
} from "@zthun/fashion-boutique";
|
|
14
12
|
import { ZSizeFixed, ZSizeVaried } from "@zthun/fashion-tailor";
|
|
15
|
-
import { css, cssJoinDefined, ZOrientation } from "@zthun/helpful-fn";
|
|
16
13
|
import { ZDataRequestBuilder, ZSortBuilder } from "@zthun/helpful-query";
|
|
17
14
|
import type { IZRomulatorSystem } from "@zthun/romulator-client";
|
|
18
15
|
import { useState } from "react";
|
|
@@ -31,15 +28,9 @@ const DefaultSystemRequest = new ZDataRequestBuilder()
|
|
|
31
28
|
export function ZRomulatorSystemsPage() {
|
|
32
29
|
const { body } = useFashionTheme();
|
|
33
30
|
const navigate = useNavigate();
|
|
34
|
-
const
|
|
31
|
+
const systems = useSystemsService();
|
|
35
32
|
const [request, setRequest] = useState(DefaultSystemRequest);
|
|
36
33
|
|
|
37
|
-
const tile = useCss(css`
|
|
38
|
-
& {
|
|
39
|
-
height: 100%;
|
|
40
|
-
}
|
|
41
|
-
`);
|
|
42
|
-
|
|
43
34
|
const renderTile = (system: IZRomulatorSystem) => {
|
|
44
35
|
const { api } = new ZRomulatorEnvironmentBuilder().build();
|
|
45
36
|
const id = `${system.id}-wheel`;
|
|
@@ -57,21 +48,11 @@ export function ZRomulatorSystemsPage() {
|
|
|
57
48
|
onClick={() => navigate(system.id)}
|
|
58
49
|
>
|
|
59
50
|
<ZStack
|
|
60
|
-
className={cssJoinDefined(tile)}
|
|
61
|
-
gap={ZSizeFixed.Medium}
|
|
62
|
-
orientation={ZOrientation.Horizontal}
|
|
63
51
|
justify={{ content: "center" }}
|
|
64
52
|
align={{ items: "center" }}
|
|
53
|
+
height={ZSizeVaried.Full}
|
|
65
54
|
>
|
|
66
|
-
<
|
|
67
|
-
avatar={
|
|
68
|
-
<ZImageSource
|
|
69
|
-
src={wheel}
|
|
70
|
-
height={ZSizeVaried.Full}
|
|
71
|
-
width={ZSizeVaried.Full}
|
|
72
|
-
/>
|
|
73
|
-
}
|
|
74
|
-
/>
|
|
55
|
+
<ZImageSource src={wheel} width={ZSizeVaried.Full} />
|
|
75
56
|
</ZStack>
|
|
76
57
|
</ZBox>
|
|
77
58
|
);
|
|
@@ -101,10 +82,10 @@ export function ZRomulatorSystemsPage() {
|
|
|
101
82
|
},
|
|
102
83
|
gap: ZSizeFixed.Medium,
|
|
103
84
|
}}
|
|
85
|
+
dataSource={systems}
|
|
86
|
+
renderItem={renderTile}
|
|
104
87
|
value={request}
|
|
105
88
|
onValueChange={setRequest}
|
|
106
|
-
dataSource={source}
|
|
107
|
-
renderItem={renderTile}
|
|
108
89
|
/>
|
|
109
90
|
</ZCard>
|
|
110
91
|
</ZStack>
|