Skip to content

Commit

Permalink
Merge branch 'release/v2.1.2'
Browse files Browse the repository at this point in the history
  • Loading branch information
kobalab committed Dec 18, 2023
2 parents 445c014 + 1b37f75 commit 9a3c640
Show file tree
Hide file tree
Showing 13 changed files with 63 additions and 54 deletions.
8 changes: 8 additions & 0 deletions ChangeLog.md
Original file line number Diff line number Diff line change
@@ -1,3 +1,11 @@
### v2.1.2 / 2023-12-19

- 何切る解答機で「赤牌なし」を選択したときに手牌の赤牌を通常の牌に変更するよう修正
- @kobalab/majiang-core 1.1.0 → 1.1.1
- @kobalab/majiang-ai 1.0.5 → 1.0.7
- @kobalab/majiang-ui 1.0.6 → 1.0.7
- 脆弱性警告に対処(@adobe/css-tools 4.0.1 → 4.3.2)

### v2.1.1 / 2023-04-10

- ダブロンの牌譜再生のUIが正しく動作しないバグを修正
Expand Down
70 changes: 35 additions & 35 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

10 changes: 5 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
{
"name": "majiang",
"version": "2.1.1",
"version": "2.1.2",
"description": "HTML5 + JavaScript で動作する麻雀アプリ「電脳麻将」",
"private": true,
"scripts": {
"build:html": "pug -o dist -P src/html/page/",
"build:css": "stylus src/css/index.styl -o dist/css/majiang-2.1.1.css",
"build:css": "stylus src/css/index.styl -o dist/css/majiang-2.1.2.css",
"build:js": "webpack --mode development --devtool inline-source-map",
"build": "npm run build:html && npm run build:css && npm run build:js",
"release": "npm run build:html && npm run build:css && webpack --mode production",
Expand All @@ -31,9 +31,9 @@
"webpack-cli": "^4.9.1"
},
"dependencies": {
"@kobalab/majiang-ai": "^1.0.5",
"@kobalab/majiang-core": "^1.1.0",
"@kobalab/majiang-ui": "^1.0.6",
"@kobalab/majiang-ai": "^1.0.7",
"@kobalab/majiang-core": "^1.1.1",
"@kobalab/majiang-ui": "^1.0.7",
"jquery": "^3.6.0"
}
}
2 changes: 1 addition & 1 deletion src/html/inc/version.pug
Original file line number Diff line number Diff line change
@@ -1 +1 @@
- var version = '2.1.1'
- var version = '2.1.2'
2 changes: 1 addition & 1 deletion src/js/autoplay.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将: 自動対戦 v2.1.1
* 電脳麻将: 自動対戦 v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand Down
9 changes: 5 additions & 4 deletions src/js/dapai.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将: 何切る解答機 v2.1.1
* 電脳麻将: 何切る解答機 v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand Down Expand Up @@ -73,15 +73,16 @@ function submit() {
let paistr = $('input[name="paistr"]').val();
if (! paistr) return false;

let shoupai = Majiang.Shoupai.fromString(paistr);
paistr = shoupai.toString();

let zhuangfeng = + $('select[name="zhuangfeng"]').val();
let menfeng = + $('select[name="menfeng"]').val();
let baopai = $.makeArray($('input[name="baopai"]'))
.map(n => $(n).val()).filter(p => p);
let hongpai = $('input[name="hongpai"]').prop('checked');

let shoupai = Majiang.Shoupai.fromString(paistr);
paistr = shoupai.toString();
if (! hongpai) paistr = paistr.replace(/0/,'5');

const analyzer = init_analyzer(paistr, zhuangfeng, menfeng, baopai, hongpai
? { m: 1, p: 1, s: 1 }
: { m: 0, p: 0, s: 0 });
Expand Down
2 changes: 1 addition & 1 deletion src/js/hule.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将: 和了点計算 v2.1.1
* 電脳麻将: 和了点計算 v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion src/js/index.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将 v2.1.1
* 電脳麻将 v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand Down
4 changes: 2 additions & 2 deletions src/js/majiang.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将 v2.1.1
* 電脳麻将 v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand All @@ -9,6 +9,6 @@
global.Majiang = require('@kobalab/majiang-core');
global.Majiang.AI = require('@kobalab/majiang-ai');
global.Majiang.UI = require('@kobalab/majiang-ui');
global.Majiang.VERSION = '2.1.1';
global.Majiang.VERSION = '2.1.2';
global.jQuery = require('jquery');
global.$ = jQuery;
2 changes: 1 addition & 1 deletion src/js/paiga.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将: 牌画入力 v2.1.1
* 電脳麻将: 牌画入力 v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion src/js/paili.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将: 牌理 v2.1.1
* 電脳麻将: 牌理 v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion src/js/paipu.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将: 牌譜ビューア v2.1.1
* 電脳麻将: 牌譜ビューア v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand Down
2 changes: 1 addition & 1 deletion src/js/rule.js
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
/*!
* 電脳麻将: ルール設定 v2.1.1
* 電脳麻将: ルール設定 v2.1.2
*
* Copyright(C) 2017 Satoshi Kobayashi
* Released under the MIT license
Expand Down

0 comments on commit 9a3c640

Please sign in to comment.