Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion .distignore
Original file line number Diff line number Diff line change
Expand Up @@ -7,12 +7,14 @@
.gitignore
.node-version
.stylelintrc.json
.wordpress_org
.wordpress-org
.wp-env.json
node_modules
composer.lock
package-lock.json
phpcs.ruleset.xml
phpstan.neon
phpstan-baseline.neon
phpunit.xml.dist
README.md
webpack.config.js
Expand Down
6 changes: 0 additions & 6 deletions .eslintrc
Original file line number Diff line number Diff line change
@@ -1,5 +1,4 @@
{
"parser": "babel-eslint",
"env": {
"browser": true,
"jquery": true
Expand All @@ -26,10 +25,5 @@
"object-property-newline": "off",
"yoda": "off",
"strict": "off"
},
"settings": {
"react": {
"version": "16.9.0"
}
}
}
2 changes: 1 addition & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,5 +3,5 @@
/vendor/
/wordpress/
composer.lock
package-lock.json
*.cache
wp-dependencies.json
13 changes: 6 additions & 7 deletions .stylelintrc.json
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
{
"extends": [
"stylelint-config-wordpress/scss"
],
"extends": "@wordpress/stylelint-config",
"rules": {
"value-keyword-case": [ "lower", {
"ignoreProperties": [ "font-family" ]
} ],
"number-leading-zero": null,
"rule-empty-line-before": null,
"declaration-property-unit-whitelist": null,
"selector-class-pattern": null,
"selector-class-pattern": null,
"at-rule-empty-line-before": null,
"no-descending-specificity": null
"no-descending-specificity": null,
"at-rule-no-unknown": [ true, {
"ignoreAtRules": [ "at-root" ]
} ]
}
}
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ Taro Clockwork Post

Contributors: tarosky,Takahashi_Fumiki
Tags: post, media, expiration
Tested up to: 6.8
Tested up to: 6.9
Stable tag: nightly
License: GPLv3 or later
License URI: http://www.gnu.org/licenses/gpl-3.0.txt
Expand Down
1 change: 1 addition & 0 deletions assets/js/editor-input.js
Original file line number Diff line number Diff line change
Expand Up @@ -95,6 +95,7 @@ const TscpPostExpireBox = () => {
notify( res.message, 'error' );
} );
}
// eslint-disable-next-line react-hooks/exhaustive-deps
}, [] );

return (
Expand Down
5 changes: 4 additions & 1 deletion assets/scss/admin.scss
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@

/*!
* Admin helper style
* @handle tscp-admin-helper
*/
.tscp {

&-toggler {
Expand Down
1 change: 1 addition & 0 deletions assets/scss/editor-input.scss
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
/*!
* Editor helper
*
* @handle tscp-editor-input
* @deps wp-components
*/
Expand Down
111 changes: 0 additions & 111 deletions gulpfile.js

This file was deleted.

6 changes: 2 additions & 4 deletions includes/block-editor.php
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,8 @@
*/
add_action( 'enqueue_block_editor_assets', function () {
// Register script
wp_enqueue_script( 'tscp-editor-input', tscp_asset_url( 'js/editor-input.js' ), [ 'wp-plugins', 'wp-edit-post', 'wp-components', 'wp-data', 'wp-i18n', 'wp-compose', 'wp-element', 'wp-api-fetch' ], tscp_version(), true );
wp_enqueue_style( 'tscp-editor-input', tscp_asset_url( 'css/editor-input.css' ), [ 'wp-components' ], tscp_version() );
// translations.
wp_set_script_translations( 'tscp-editor-input', 'tscp' );
wp_enqueue_script( 'tscp-editor-input' );
wp_enqueue_style( 'tscp-editor-input' );
// Register variables.
wp_localize_script( 'tscp-editor-input', 'TscpEditorInput', [
'postTypes' => tscp_post_types(),
Expand Down
2 changes: 1 addition & 1 deletion includes/meta-box.php
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
*/

add_action( 'admin_enqueue_scripts', function () {
wp_enqueue_style( 'tscp-admin-helper', tscp_asset_url( 'css/admin.css' ), [], tscp_version() );
wp_enqueue_style( 'tscp-admin-helper' );
} );

// Register meta box for specified posts
Expand Down
Binary file removed languages/tscp-ja.mo
Binary file not shown.
123 changes: 0 additions & 123 deletions languages/tscp-ja.po

This file was deleted.

Loading
Loading