@kobalab/liulian 1.1.12 → 1.1.14
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 +29 -0
- package/css/liulian.css +1 -1
- package/lib/module/paiga.js +9 -48
- package/package.json +8 -8
package/ChangeLog.md
CHANGED
|
@@ -1,3 +1,32 @@
|
|
|
1
|
+
### v1.1.14 / 2026-03-14
|
|
2
|
+
|
|
3
|
+
- 編集画面の高さを調整
|
|
4
|
+
- パッケージを最新化
|
|
5
|
+
- express 4.21.2 → 4.22.1
|
|
6
|
+
- express-session 1.18.2 → 1.19.0
|
|
7
|
+
- multer 1.4.5-lts.1 → 2.1.1
|
|
8
|
+
- passport 0.6.0 → 0.7.0
|
|
9
|
+
- mocha 11.7.1 → 11.7.5
|
|
10
|
+
- nyc 15.1.0 → 18.0.0
|
|
11
|
+
- 脆弱性警告に対処
|
|
12
|
+
- glob 10.4.5 → 10.5.0
|
|
13
|
+
- js-yaml 3.13.1, 4.1.0 → 3.14.2, 4.1.1
|
|
14
|
+
- minimatch 9.0.5 → 9.0.9
|
|
15
|
+
- qs 6.13.0 → 6.14.2
|
|
16
|
+
|
|
17
|
+
### v1.1.13 / 2025-07-27
|
|
18
|
+
|
|
19
|
+
- モジュール paiga の画像を変更
|
|
20
|
+
- パッケージを最新化
|
|
21
|
+
- mocha 11.5.0 → 11.7.1
|
|
22
|
+
- express 4.21.0 → 4.21.2
|
|
23
|
+
- express-session 1.17.3 → 1.18.2
|
|
24
|
+
- yargs 17.6.2 → 17.7.2
|
|
25
|
+
- 脆弱性警告に対処
|
|
26
|
+
- brace-expansion 1.1.11, 2.0.2 → 1.1.12, 2.0.2
|
|
27
|
+
- on-headers 1.0.2 → 1.1.0
|
|
28
|
+
- express-session 1.18.1 → 1.18.2
|
|
29
|
+
|
|
1
30
|
### v1.1.12 / 2025-05-25
|
|
2
31
|
|
|
3
32
|
- パッケージを最新化
|
package/css/liulian.css
CHANGED
package/lib/module/paiga.js
CHANGED
|
@@ -3,46 +3,7 @@
|
|
|
3
3
|
*/
|
|
4
4
|
"use strict";
|
|
5
5
|
|
|
6
|
-
const imgbase = '//kobalab.github.io/paiga/';
|
|
7
|
-
const img = {
|
|
8
|
-
_: 'ura.gif',
|
|
9
|
-
|
|
10
|
-
m0: 'man5red.gif',
|
|
11
|
-
m1: 'man1.gif', m2: 'man2.gif', m3: 'man3.gif',
|
|
12
|
-
m4: 'man4.gif', m5: 'man5.gif', m6: 'man6.gif',
|
|
13
|
-
m7: 'man7.gif', m8: 'man8.gif', m9: 'man9.gif',
|
|
14
|
-
|
|
15
|
-
p0: 'pin5red.gif',
|
|
16
|
-
p1: 'pin1.gif', p2: 'pin2.gif', p3: 'pin3.gif',
|
|
17
|
-
p4: 'pin4.gif', p5: 'pin5.gif', p6: 'pin6.gif',
|
|
18
|
-
p7: 'pin7.gif', p8: 'pin8.gif', p9: 'pin9.gif',
|
|
19
|
-
|
|
20
|
-
s0: 'sou5red.gif',
|
|
21
|
-
s1: 'sou1.gif', s2: 'sou2.gif', s3: 'sou3.gif',
|
|
22
|
-
s4: 'sou4.gif', s5: 'sou5.gif', s6: 'sou6.gif',
|
|
23
|
-
s7: 'sou7.gif', s8: 'sou8.gif', s9: 'sou9.gif',
|
|
24
|
-
|
|
25
|
-
z1: 'ton.gif', z2: 'nan.gif', z3: 'sha.gif', z4: 'pei.gif',
|
|
26
|
-
z5: 'haku.gif', z6: 'hatu.gif', z7: 'tyun.gif',
|
|
27
|
-
|
|
28
|
-
m0_: 'yman5red.gif',
|
|
29
|
-
m1_: 'yman1.gif', m2_: 'yman2.gif', m3_: 'yman3.gif',
|
|
30
|
-
m4_: 'yman4.gif', m5_: 'yman5.gif', m6_: 'yman6.gif',
|
|
31
|
-
m7_: 'yman7.gif', m8_: 'yman8.gif', m9_: 'yman9.gif',
|
|
32
|
-
|
|
33
|
-
p0_: 'ypin5red.gif',
|
|
34
|
-
p1_: 'ypin1.gif', p2_: 'ypin2.gif', p3_: 'ypin3.gif',
|
|
35
|
-
p4_: 'ypin4.gif', p5_: 'ypin5.gif', p6_: 'ypin6.gif',
|
|
36
|
-
p7_: 'ypin7.gif', p8_: 'ypin8.gif', p9_: 'ypin9.gif',
|
|
37
|
-
|
|
38
|
-
s0_: 'ysou5red.gif',
|
|
39
|
-
s1_: 'ysou1.gif', s2_: 'ysou2.gif', s3_: 'ysou3.gif',
|
|
40
|
-
s4_: 'ysou4.gif', s5_: 'ysou5.gif', s6_: 'ysou6.gif',
|
|
41
|
-
s7_: 'ysou7.gif', s8_: 'ysou8.gif', s9_: 'ysou9.gif',
|
|
42
|
-
|
|
43
|
-
z1_: 'yton.gif', z2_: 'ynan.gif', z3_: 'ysha.gif', z4_: 'ypei.gif',
|
|
44
|
-
z5_: 'yhaku.gif', z6_: 'yhatu.gif', z7_: 'ytyun.gif'
|
|
45
|
-
};
|
|
6
|
+
const imgbase = '//kobalab.github.io/paiga/2/';
|
|
46
7
|
|
|
47
8
|
function markup(paistr, w, h) {
|
|
48
9
|
|
|
@@ -55,7 +16,7 @@ function markup(paistr, w, h) {
|
|
|
55
16
|
html += ' ';
|
|
56
17
|
}
|
|
57
18
|
else if (pai == '_') {
|
|
58
|
-
url = imgbase +
|
|
19
|
+
url = imgbase + 'pai.png';
|
|
59
20
|
html += `<img src="${url}" width="${w}" height="${h}"`
|
|
60
21
|
+ ` alt="${pai}">`;
|
|
61
22
|
}
|
|
@@ -68,7 +29,7 @@ function markup(paistr, w, h) {
|
|
|
68
29
|
v = 1;
|
|
69
30
|
}
|
|
70
31
|
if (d || v) {
|
|
71
|
-
url = imgbase +
|
|
32
|
+
url = imgbase + s+n+'_.png';
|
|
72
33
|
if (d == '=') {
|
|
73
34
|
html += `<img src="${url}" width="${h}" height="${w}"`
|
|
74
35
|
+ ` style="vertical-align:bottom;display:block"`
|
|
@@ -80,7 +41,7 @@ function markup(paistr, w, h) {
|
|
|
80
41
|
}
|
|
81
42
|
}
|
|
82
43
|
else {
|
|
83
|
-
url = imgbase +
|
|
44
|
+
url = imgbase + s+n+'.png';
|
|
84
45
|
html += `<img src="${url}" width="${w}" height="${h}"`
|
|
85
46
|
+ ` alt="${s+n}">`;
|
|
86
47
|
}
|
|
@@ -111,11 +72,11 @@ module.exports = class Paiga {
|
|
|
111
72
|
}
|
|
112
73
|
|
|
113
74
|
paiga(type, param, value) {
|
|
114
|
-
let w = 24, h =
|
|
115
|
-
if (! param) { w = 24; h =
|
|
116
|
-
else if (param == 'L') { w = 24; h =
|
|
117
|
-
else if (param == 'M') { w =
|
|
118
|
-
else if (param == 'S') { w =
|
|
75
|
+
let w = 24, h = 32;
|
|
76
|
+
if (! param) { w = 24; h = 32 }
|
|
77
|
+
else if (param == 'L') { w = 24; h = 32 }
|
|
78
|
+
else if (param == 'M') { w = 18; h = 24 }
|
|
79
|
+
else if (param == 'S') { w = 15; h = 20 }
|
|
119
80
|
else if (param.match(/^\d+x\d+$/)) {
|
|
120
81
|
[ w, h ] = param.split(/x/);
|
|
121
82
|
}
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@kobalab/liulian",
|
|
3
|
-
"version": "1.1.
|
|
3
|
+
"version": "1.1.14",
|
|
4
4
|
"description": "Node.jsで動作するWebサイト作成ツール",
|
|
5
5
|
"publishConfig": {
|
|
6
6
|
"access": "public"
|
|
@@ -27,20 +27,20 @@
|
|
|
27
27
|
},
|
|
28
28
|
"homepage": "https://kobalab.net/liulian/",
|
|
29
29
|
"devDependencies": {
|
|
30
|
-
"mocha": "^11.5
|
|
31
|
-
"nyc": "^
|
|
30
|
+
"mocha": "^11.7.5",
|
|
31
|
+
"nyc": "^18.0.0"
|
|
32
32
|
},
|
|
33
33
|
"dependencies": {
|
|
34
|
-
"express": "^4.
|
|
35
|
-
"express-session": "^1.
|
|
34
|
+
"express": "^4.22.1",
|
|
35
|
+
"express-session": "^1.19.0",
|
|
36
36
|
"highlight.js": "^10.7.3",
|
|
37
37
|
"markdown-it": "^12.3.2",
|
|
38
38
|
"markdown-it-footnote": "^3.0.3",
|
|
39
39
|
"mime": "^2.6.0",
|
|
40
|
-
"multer": "^1.
|
|
41
|
-
"passport": "^0.
|
|
40
|
+
"multer": "^2.1.1",
|
|
41
|
+
"passport": "^0.7.0",
|
|
42
42
|
"passport-local": "^1.0.0",
|
|
43
43
|
"session-file-store": "^1.5.0",
|
|
44
|
-
"yargs": "^17.
|
|
44
|
+
"yargs": "^17.7.2"
|
|
45
45
|
}
|
|
46
46
|
}
|