@wsl233/dsh-gomoku 0.3.1 → 0.3.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.
- package/client.js +11 -5
- package/package.json +3 -2
- package/preview.html +1 -1
- package/ui/gomoku-ui.js +1 -1
- package/ui/lan.html +2 -2
package/client.js
CHANGED
|
@@ -11,8 +11,13 @@
|
|
|
11
11
|
* Phase 1: no game logic, no network, no AI. The panel is a visual preview.
|
|
12
12
|
*/
|
|
13
13
|
|
|
14
|
-
|
|
15
|
-
|
|
14
|
+
// Guard against the client bundle being evaluated twice in one renderer.
|
|
15
|
+
// DSH may load a profile bundle both from the entry list and from the
|
|
16
|
+
// package client scan; registering the same factory twice aborts web boot.
|
|
17
|
+
if (!window.__dshGomokuClientLoaded) {
|
|
18
|
+
window.__dshGomokuClientLoaded = true;
|
|
19
|
+
window.__ModuleLoader__.load({
|
|
20
|
+
id: '@wsl233/dsh-gomoku',
|
|
16
21
|
factory(require) {
|
|
17
22
|
'use strict';
|
|
18
23
|
|
|
@@ -22,7 +27,7 @@ window.__ModuleLoader__.load({
|
|
|
22
27
|
const PANEL_ID = 'gomoku';
|
|
23
28
|
const UI_BASE = '/dsh-gomoku';
|
|
24
29
|
const STYLE_ID = 'dsh-gomoku-style';
|
|
25
|
-
const UI_VERSION = '0.2.0-
|
|
30
|
+
const UI_VERSION = '0.2.0-26';
|
|
26
31
|
const withVersion = (src) => src + '?v=' + UI_VERSION;
|
|
27
32
|
|
|
28
33
|
let scriptPromise = null;
|
|
@@ -207,6 +212,7 @@ window.__ModuleLoader__.load({
|
|
|
207
212
|
}
|
|
208
213
|
}
|
|
209
214
|
|
|
210
|
-
return { inject: ['slots'], apply, name: 'dsh-gomoku' };
|
|
215
|
+
return { inject: ['slots'], apply, name: '@wsl233/dsh-gomoku' };
|
|
211
216
|
},
|
|
212
|
-
});
|
|
217
|
+
});
|
|
218
|
+
}
|
package/package.json
CHANGED
|
@@ -1,7 +1,7 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@wsl233/dsh-gomoku",
|
|
3
|
-
"version": "0.3.
|
|
4
|
-
"description": "DSH
|
|
3
|
+
"version": "0.3.2",
|
|
4
|
+
"description": "DSH 浜斿瓙妫嬫彃浠讹細澶ц偉楸肩畻娉?/ DeepSeek / 灞€鍩熺綉 / 鏈湴鍙屼汉瀵规垬",
|
|
5
5
|
"type": "module",
|
|
6
6
|
"main": "index.js",
|
|
7
7
|
"exports": {
|
|
@@ -39,3 +39,4 @@
|
|
|
39
39
|
},
|
|
40
40
|
"license": "MIT"
|
|
41
41
|
}
|
|
42
|
+
|
package/preview.html
CHANGED
|
@@ -26,7 +26,7 @@
|
|
|
26
26
|
<script src="ui/engine/board.js"></script>
|
|
27
27
|
<script src="ui/engine/evaluate.js"></script>
|
|
28
28
|
<script src="ui/engine/ai.js"></script>
|
|
29
|
-
<script src="ui/gomoku-ui.js?v=0.2.0-
|
|
29
|
+
<script src="ui/gomoku-ui.js?v=0.2.0-26"></script>
|
|
30
30
|
<script>
|
|
31
31
|
(function () {
|
|
32
32
|
var params = new URLSearchParams(window.location.search);
|
package/ui/gomoku-ui.js
CHANGED
package/ui/lan.html
CHANGED
|
@@ -5,7 +5,7 @@
|
|
|
5
5
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
6
6
|
<meta name="color-scheme" content="light">
|
|
7
7
|
<title>五子棋 · 局域网加入</title>
|
|
8
|
-
<link rel="stylesheet" href="/ui/gomoku.css?v=0.2.0-
|
|
8
|
+
<link rel="stylesheet" href="/ui/gomoku.css?v=0.2.0-26">
|
|
9
9
|
<style>
|
|
10
10
|
html, body { margin: 0; min-height: 100%; background: #ffffff; }
|
|
11
11
|
body { min-height: 100vh; }
|
|
@@ -27,7 +27,7 @@
|
|
|
27
27
|
<script src="/ui/engine/board.js"></script>
|
|
28
28
|
<script src="/ui/engine/evaluate.js"></script>
|
|
29
29
|
<script src="/ui/engine/ai.js"></script>
|
|
30
|
-
<script src="/ui/gomoku-ui.js?v=0.2.0-
|
|
30
|
+
<script src="/ui/gomoku-ui.js?v=0.2.0-26"></script>
|
|
31
31
|
<script>
|
|
32
32
|
(function () {
|
|
33
33
|
var params = new URLSearchParams(window.location.search);
|