Skip to content

Commit 205459d

Browse files
authored
Merge pull request #44 from t-hamano/wp5.9
WordPress5.9対応
2 parents cdba117 + 1fc04b3 commit 205459d

Some content is hidden

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

48 files changed

+1799
-3189
lines changed

.eslintrc.js

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
module.exports = {
22
extends: [ 'plugin:@wordpress/eslint-plugin/recommended' ],
3+
parser: '@babel/eslint-parser',
34
globals: {
45
chbeObj: true,
56
Blob: true,
@@ -9,6 +10,7 @@ module.exports = {
910
rules: {
1011
'import/no-extraneous-dependencies': 'off',
1112
'import/no-unresolved': 'off',
13+
'no-nested-ternary': 'off',
1214
'@wordpress/no-unsafe-wp-apis': 'off',
1315
'jsdoc/require-param-type': 0,
1416
'prettier/prettier': [
@@ -23,4 +25,10 @@ module.exports = {
2325
},
2426
],
2527
},
28+
parserOptions: {
29+
requireConfigFile: false,
30+
babelOptions: {
31+
presets: [ '@babel/preset-react' ],
32+
},
33+
},
2634
};

.stylelintrc.js

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
11
module.exports = {
22
extends: [
3-
"@wordpress/stylelint-config/scss",
4-
"stylelint-config-rational-order"
3+
'@wordpress/stylelint-config/scss',
4+
'stylelint-config-recess-order',
55
],
66
ignoreFiles: [
7-
"build/**/*.css",
8-
"node_modules/**/*.css",
9-
"vendor/**/*.css",
10-
"**/*.js",
11-
"**/*.svg"
7+
'build/**/*.css',
8+
'node_modules/**/*.css',
9+
'vendor/**/*.css',
10+
'**/*.js',
11+
'**/*.svg'
1212
],
1313
rules: {
1414
'no-descending-specificity': null,

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ Supports the classic editor, the theme/plugin editor, import/export editor setti
3131

3232
## Note
3333

34-
This plugin will not work on the "**Block Template**" editor, which is a new feature in WordPress 5.8.
34+
The code editor is disabled in the full site editor, mobile / tablet device preview, and block template editor.
3535

3636
## Add custom fonts
3737

assets/css/anonymous-pro-italic.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
@font-face {
2-
font-weight: 300;
32
font-family: "Anonymous Pro Italic";
43
font-style: normal;
4+
font-weight: 300;
55
font-stretch: normal;
66
src: url(../fonts/AnonymousPro-lt.woff2) format("woff2");
77
}
88

99
@font-face {
10-
font-weight: 700;
1110
font-family: "Anonymous Pro Italic";
1211
font-style: normal;
12+
font-weight: 700;
1313
font-stretch: normal;
1414
src: url(../fonts/AnonymousPro-Boldlt.woff2) format("woff2");
1515
}

assets/css/anonymous-pro.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
@font-face {
2-
font-weight: 300;
32
font-family: "Anonymous Pro";
43
font-style: normal;
4+
font-weight: 300;
55
font-stretch: normal;
66
src: url(../fonts/AnonymousPro-Regular.woff2) format("woff2");
77
}
88

99
@font-face {
10-
font-weight: 700;
1110
font-family: "Anonymous Pro";
1211
font-style: normal;
12+
font-weight: 700;
1313
font-stretch: normal;
1414
src: url(../fonts/AnonymousPro-Bold.woff2) format("woff2");
1515
}

assets/css/fira-code.css

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,34 +1,34 @@
11
@font-face {
2-
font-weight: 300;
32
font-family: "Fira Code";
43
font-style: normal;
4+
font-weight: 300;
55
src: url(../fonts/FiraCode-Light.woff2) format("woff2");
66
}
77

88
@font-face {
9-
font-weight: 400;
109
font-family: "Fira Code";
1110
font-style: normal;
11+
font-weight: 400;
1212
src: url(../fonts/FiraCode-Regular.woff2) format("woff2");
1313
}
1414

1515
@font-face {
16-
font-weight: 500;
1716
font-family: "Fira Code";
1817
font-style: normal;
18+
font-weight: 500;
1919
src: url(../fonts/FiraCode-Medium.woff2) format("woff2");
2020
}
2121

2222
@font-face {
23-
font-weight: 600;
2423
font-family: "Fira Code";
2524
font-style: normal;
25+
font-weight: 600;
2626
src: url(../fonts/FiraCode-SemiBold.woff2) format("woff2");
2727
}
2828

2929
@font-face {
30-
font-weight: 700;
3130
font-family: "Fira Code";
3231
font-style: normal;
32+
font-weight: 700;
3333
src: url(../fonts/FiraCode-Bold.woff2) format("woff2");
3434
}

assets/css/source-code-pro-italic.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
@font-face {
2-
font-weight: 200;
32
font-family: "Source Code Pro Italic";
43
font-style: normal;
4+
font-weight: 200;
55
font-stretch: normal;
66
src: url(../fonts/SourceCodePro-ExtraLightIt.woff2) format("woff2");
77
}
88

99
@font-face {
10-
font-weight: 300;
1110
font-family: "Source Code Pro Italic";
1211
font-style: normal;
12+
font-weight: 300;
1313
font-stretch: normal;
1414
src: url(../fonts/SourceCodePro-LightIt.woff2) format("woff2");
1515
}
1616

1717
@font-face {
18-
font-weight: 400;
1918
font-family: "Source Code Pro Italic";
2019
font-style: normal;
20+
font-weight: 400;
2121
font-stretch: normal;
2222
src: url(../fonts/SourceCodePro-It.woff2) format("woff2");
2323
}
2424

2525
@font-face {
26-
font-weight: 500;
2726
font-family: "Source Code Pro Italic";
2827
font-style: normal;
28+
font-weight: 500;
2929
font-stretch: normal;
3030
src: url(../fonts/SourceCodePro-MediumIt.woff2) format("woff2");
3131
}
3232

3333
@font-face {
34-
font-weight: 600;
3534
font-family: "Source Code Pro Italic";
3635
font-style: normal;
36+
font-weight: 600;
3737
font-stretch: normal;
3838
src: url(../fonts/SourceCodePro-SemiboldIt.woff2) format("woff2");
3939
}
4040

4141
@font-face {
42-
font-weight: 700;
4342
font-family: "Source Code Pro Italic";
4443
font-style: normal;
44+
font-weight: 700;
4545
font-stretch: normal;
4646
src: url(../fonts/SourceCodePro-BoldIt.woff2) format("woff2");
4747
}
4848

4949
@font-face {
50-
font-weight: 900;
5150
font-family: "Source Code Pro Italic";
5251
font-style: normal;
52+
font-weight: 900;
5353
font-stretch: normal;
5454
src: url(../fonts/SourceCodePro-BlackIt.woff2) format("woff2");
5555
}

assets/css/source-code-pro.css

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -1,55 +1,55 @@
11
@font-face {
2-
font-weight: 200;
32
font-family: "Source Code Pro";
43
font-style: normal;
4+
font-weight: 200;
55
font-stretch: normal;
66
src: url(../fonts/SourceCodePro-ExtraLight.woff2) format("woff2");
77
}
88

99
@font-face {
10-
font-weight: 300;
1110
font-family: "Source Code Pro";
1211
font-style: normal;
12+
font-weight: 300;
1313
font-stretch: normal;
1414
src: url(../fonts/SourceCodePro-Light.woff2) format("woff2");
1515
}
1616

1717
@font-face {
18-
font-weight: 400;
1918
font-family: "Source Code Pro";
2019
font-style: normal;
20+
font-weight: 400;
2121
font-stretch: normal;
2222
src: url(../fonts/SourceCodePro-Regular.woff2) format("woff2");
2323
}
2424

2525
@font-face {
26-
font-weight: 500;
2726
font-family: "Source Code Pro";
2827
font-style: normal;
28+
font-weight: 500;
2929
font-stretch: normal;
3030
src: url(../fonts/SourceCodePro-Medium.woff2) format("woff2");
3131
}
3232

3333
@font-face {
34-
font-weight: 600;
3534
font-family: "Source Code Pro";
3635
font-style: normal;
36+
font-weight: 600;
3737
font-stretch: normal;
3838
src: url(../fonts/SourceCodePro-Semibold.woff2) format("woff2");
3939
}
4040

4141
@font-face {
42-
font-weight: 700;
4342
font-family: "Source Code Pro";
4443
font-style: normal;
44+
font-weight: 700;
4545
font-stretch: normal;
4646
src: url(../fonts/SourceCodePro-Bold.woff2) format("woff2");
4747
}
4848

4949
@font-face {
50-
font-weight: 900;
5150
font-family: "Source Code Pro";
5251
font-style: normal;
52+
font-weight: 900;
5353
font-stretch: normal;
5454
src: url(../fonts/SourceCodePro-Black.woff2) format("woff2");
5555
}

assets/css/ubuntu-mono-italic.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
@font-face {
2-
font-weight: 300;
32
font-family: "Ubuntu Mono Italic";
43
font-style: normal;
4+
font-weight: 300;
55
font-stretch: normal;
66
src: url(../fonts/UbuntuMono-lt.woff2) format("woff2");
77
}
88

99
@font-face {
10-
font-weight: 700;
1110
font-family: "Ubuntu Mono Italic";
1211
font-style: normal;
12+
font-weight: 700;
1313
font-stretch: normal;
1414
src: url(../fonts/UbuntuMono-Boldlt.woff2) format("woff2");
1515
}

assets/css/ubuntu-mono.css

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
@font-face {
2-
font-weight: 300;
32
font-family: "Ubuntu Mono";
43
font-style: normal;
4+
font-weight: 300;
55
font-stretch: normal;
66
src: url(../fonts/UbuntuMono-Regular.woff2) format("woff2");
77
}
88

99
@font-face {
10-
font-weight: 700;
1110
font-family: "Ubuntu Mono";
1211
font-style: normal;
12+
font-weight: 700;
1313
font-stretch: normal;
1414
src: url(../fonts/UbuntuMono-Bold.woff2) format("woff2");
1515
}

0 commit comments

Comments
 (0)