Skip to content

Commit 0d03a47

Browse files
committed
Merge branch 'release/v2.3.0'
2 parents 57ddb1a + e6ab5f5 commit 0d03a47

42 files changed

Lines changed: 485 additions & 81 deletions

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

ChangeLog.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,11 @@
1+
## v2.3.0 / 2024-02-11
2+
3+
- #107 「ネット対戦」のページを追加
4+
- 全ページにTwitterカード用の情報を追加
5+
- @kobalab/majiang-core 1.1.2 → 1.2.0
6+
- @kobalab/majiang-ai 1.0.8 → 1.0.9
7+
- @kobalab/majiang-ui 1.0.8 → 1.1.0
8+
19
### v2.2.2 / 2023-12-31
210

311
- 「点数計算ドリル」の機能改善

README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,13 @@ AIは majiang-core のクラス Majiang.Player の具体的な実装になって
4747
## 関連パッケージ
4848
そのほかに以下の関連パッケージがあります。
4949

50+
### majiang-server
51+
- GitHub: https://github.com/kobalab/majiang-server
52+
- npm: @kobalab/majiang-server
53+
54+
WebSocketによる麻雀サーバーの実装です。
55+
電脳麻将のネット対戦は本サーバに接続して実現しています。
56+
5057
### majiang-analog
5158
- GitHub: https://github.com/kobalab/majiang-analog
5259
- npm: @kobalab/majiang-analog
@@ -61,6 +68,7 @@ AIは majiang-core のクラス Majiang.Player の具体的な実装になって
6168

6269
ネット麻雀 [天鳳](https://tenhou.net) の牌譜を電脳麻将形式に変換します。
6370
本パッケージを利用することで天鳳の牌譜を解析したり、再生したりすることが可能になります。
71+
電脳麻将 牌譜ビューアの天鳳牌譜再生は本サーバに接続して実現しています。
6472

6573
## 書籍
6674

dist/img/netplay.png

402 KB
Loading

package-lock.json

Lines changed: 29 additions & 29 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
{
22
"name": "majiang",
3-
"version": "2.2.2",
3+
"version": "2.3.0",
44
"description": "HTML5 + JavaScript で動作する麻雀アプリ「電脳麻将」",
55
"private": true,
66
"scripts": {
77
"build:html": "pug -o dist -P src/html/page/",
8-
"build:css": "stylus src/css/index.styl -o dist/css/majiang-2.2.2.css",
8+
"build:css": "stylus src/css/index.styl -o dist/css/majiang-2.3.0.css",
99
"build:js": "webpack --mode development --devtool inline-source-map",
1010
"build": "npm run build:html && npm run build:css && npm run build:js",
1111
"release": "npm run build:html && npm run build:css && webpack --mode production",
@@ -31,9 +31,9 @@
3131
"webpack-cli": "^5.1.4"
3232
},
3333
"dependencies": {
34-
"@kobalab/majiang-ai": "^1.0.8",
35-
"@kobalab/majiang-core": "^1.1.2",
36-
"@kobalab/majiang-ui": "^1.0.8",
34+
"@kobalab/majiang-ai": "^1.0.9",
35+
"@kobalab/majiang-core": "^1.2.0",
36+
"@kobalab/majiang-ui": "^1.1.0",
3737
"jquery": "^3.7.1"
3838
}
3939
}

src/css/base.styl

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,6 +22,10 @@ input[type="button"]
2222
color: black
2323
-webkit-appearance: none
2424

25+
input::placeholder
26+
color: #999
27+
opacity: 1
28+
2529
select
2630
border: solid 1px
2731
border-radius: 4px

src/css/board.styl

Lines changed: 17 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,7 @@ body.board
5656
&.shangjia
5757
text-align: left
5858
.player-button
59+
z-index: 1
5960
text-align: right
6061
white-space: nowrap
6162
.button
@@ -70,6 +71,7 @@ body.board
7071
background: #999
7172
outline: none
7273
.select-mianzi
74+
z-index: 1
7375
line-height: 1
7476
text-align: right
7577
white-space: nowrap
@@ -88,9 +90,12 @@ body.board
8890
white-space: nowrap
8991
overflow: hidden
9092
text-overflow: ellipsis
91-
cursor: pointer
92-
&:hover
93-
opacity: 1
93+
&.disconnect
94+
opacity: 0.1
95+
&.selectable
96+
cursor: pointer
97+
&:hover
98+
opacity: 1
9499
.say
95100
font-family: text-font
96101
color: white
@@ -165,6 +170,7 @@ body.board
165170
.minus
166171
color: #f00
167172
> .summary
173+
z-index: 1
168174
display: flex
169175
overflow: auto
170176
align-items: center
@@ -227,6 +233,10 @@ body.board
227233
background: rgba(256,256,256,0.4)
228234
cursor: pointer
229235
.kaiju
236+
&:focus
237+
outline: none
238+
.kaiju > div
239+
z-index: 1
230240
margin-top: 120px
231241
position: relative
232242
width: 580px
@@ -256,7 +266,10 @@ body.board
256266
white-space: nowrap
257267
overflow: hidden
258268
text-overflow: ellipsis
259-
cursor: pointer
269+
&.selectable
270+
cursor: pointer
271+
&:hover
272+
background: #999
260273
&.main
261274
transform: translate(140px, 96px)
262275
&.xiajia
@@ -265,8 +278,6 @@ body.board
265278
transform: translate(140px, 0px)
266279
&.shangjia
267280
transform: translate(0px, 48px)
268-
&:hover
269-
background: #999
270281

271282
#board
272283
.controller

src/css/desktop.styl

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -169,7 +169,10 @@
169169
.point
170170
font-size: 24px
171171
.kaiju
172-
margin-top: 120px
172+
width: 800px
173+
height: 680px
174+
> div
175+
margin-top: 120px
173176

174177
#board
175178
.controller

src/css/file.styl

Lines changed: 23 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ body.file
1010
display: none
1111

1212
#file
13+
#room
1314
display: none
1415
font-size: 14px
1516
font-family: menu-font
@@ -25,6 +26,7 @@ body.file
2526
font-size: 16px
2627
font-family: defen-font
2728
text-align: right
29+
#file
2830
.file
2931
margin: 10px 0
3032
.row
@@ -81,10 +83,30 @@ body.file
8183
vertical-align: bottom
8284
> .button
8385
float: right
84-
form
86+
form.tenhou
8587
float: right
8688
input[name="url"]
8789
width: 270px
90+
.netplay
91+
display: inline-block
92+
img
93+
width: 2em
94+
vertical-align: middle
95+
border-radius: 50%
96+
margin-right: 0.5em
97+
.name
98+
display: inline-block
99+
vertical-align: middle
100+
font-size: 120%
101+
width: 8em
102+
white-space: nowrap
103+
overflow: hidden
104+
text-overflow: ellipsis
105+
form
106+
margin-right: 0.5em
107+
display: inline-block
108+
input[name="room_no"]
109+
width: 3em
88110
.error
89111
transition: opacity 0.5s
90112
margin: 2px 0px

src/css/index.styl

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,6 @@
1313
@import "file"
1414
@import "stat"
1515
@import "analyzer"
16+
@import "room"
1617
@import "rule"
1718
@import "demo"

0 commit comments

Comments
 (0)