From 4133ae9e8e9abd6849bba8c77f0dda8112b8261b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=E6=A3=AE=E6=9C=AC=E9=9B=85=E4=B9=9F?= Date: Thu, 14 Nov 2024 17:40:35 +0900 Subject: [PATCH 1/9] Edit and delete deprecated files --- .../card-item/deprecated/0.20.2/component.js | 240 --------------- .../_pro/card-item/deprecated/0.20.2/save.js | 5 - .../card-item/deprecated/0.20.3/component.js | 242 ---------------- .../_pro/card-item/deprecated/0.20.3/save.js | 5 - .../card-item/deprecated/0.20.4/component.js | 250 ---------------- .../_pro/card-item/deprecated/0.20.4/save.js | 5 - .../card-item/deprecated/0.20.5/component.js | 255 ---------------- .../_pro/card-item/deprecated/0.20.5/save.js | 5 - .../card-item/deprecated/0.20.6/component.js | 267 ----------------- .../_pro/card-item/deprecated/0.20.6/save.js | 5 - .../card-item/deprecated/0.60.1/component.js | 274 ------------------ .../_pro/card-item/deprecated/0.60.1/save.js | 5 - src/blocks/_pro/card-item/deprecated/index.js | 30 -- .../_pro/card/deprecated/hooks/0.0.1/index.js | 3 - .../_pro/card/deprecated/hooks/index.js | 4 - .../card/deprecated/save/0.0.0/component.js | 52 ---- .../_pro/card/deprecated/save/0.0.0/save.js | 11 - .../card/deprecated/save/0.37.4/component.js | 53 ---- .../_pro/card/deprecated/save/0.37.4/save.js | 11 - .../card/deprecated/save/0.40.0/component.js | 72 ----- .../_pro/card/deprecated/save/0.40.0/save.js | 11 - .../card/deprecated/save/0.60.1/component.js | 64 ---- .../_pro/card/deprecated/save/0.60.1/save.js | 5 - src/blocks/_pro/card/deprecated/save/index.js | 20 -- .../vk-blocks__card__deprecated-0-60-1.html | 20 -- ...cated-0-60-1__button-linkTarget-blank.html | 20 -- 26 files changed, 1934 deletions(-) delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.2/component.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.2/save.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.3/component.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.3/save.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.4/component.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.4/save.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.5/component.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.5/save.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.6/component.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.20.6/save.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.60.1/component.js delete mode 100644 src/blocks/_pro/card-item/deprecated/0.60.1/save.js delete mode 100644 src/blocks/_pro/card/deprecated/hooks/0.0.1/index.js delete mode 100644 src/blocks/_pro/card/deprecated/save/0.0.0/component.js delete mode 100644 src/blocks/_pro/card/deprecated/save/0.0.0/save.js delete mode 100644 src/blocks/_pro/card/deprecated/save/0.37.4/component.js delete mode 100644 src/blocks/_pro/card/deprecated/save/0.37.4/save.js delete mode 100644 src/blocks/_pro/card/deprecated/save/0.40.0/component.js delete mode 100644 src/blocks/_pro/card/deprecated/save/0.40.0/save.js delete mode 100644 src/blocks/_pro/card/deprecated/save/0.60.1/component.js delete mode 100644 src/blocks/_pro/card/deprecated/save/0.60.1/save.js delete mode 100644 test/e2e-tests/fixtures/blocks/vk-blocks__card__deprecated-0-60-1.html delete mode 100644 test/e2e-tests/fixtures/blocks/vk-blocks__card__deprecated-0-60-1__button-linkTarget-blank.html diff --git a/src/blocks/_pro/card-item/deprecated/0.20.2/component.js b/src/blocks/_pro/card-item/deprecated/0.20.2/component.js deleted file mode 100644 index df99d3e62..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.2/component.js +++ /dev/null @@ -1,240 +0,0 @@ -import { __ } from '@wordpress/i18n'; -import { fixBrokenUnicode } from '@vkblocks/utils/depModules'; -import { RichText, MediaUpload } from '@wordpress/block-editor'; -import { Button } from '@wordpress/components'; -import { Component } from '@wordpress/element'; -import { dispatch } from '@wordpress/data'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; - -export class CardItem extends Component { - render() { - const { setAttributes, attributes, clientId } = this.props.value; - let { - layout, - // eslint-disable-next-line camelcase - col_xs, - // eslint-disable-next-line camelcase - col_sm, - // eslint-disable-next-line camelcase - col_md, - // eslint-disable-next-line camelcase - col_lg, - // eslint-disable-next-line camelcase - col_xl, - // eslint-disable-next-line camelcase - display_image, - // eslint-disable-next-line camelcase - display_btn, - // eslint-disable-next-line camelcase - btn_text, - title, - // eslint-disable-next-line camelcase - excerpt_text, - image, - url, - activeControl, - linkTarget, - rel, - } = attributes; - - const align = JSON.parse(fixBrokenUnicode(activeControl)); - const for_ = this.props.for_; - - const isEdit = () => { - if (for_ === 'edit') { - return true; - } else if ('save') { - return false; - } - }; - - let imgContainerClass; - if (layout === 'card-horizontal') { - } else if (layout === 'media') { - imgContainerClass = 'vk_post_imgOuter media-img'; - } else if (layout === 'card') { - layout = layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-noborder') { - layout = 'card ' + layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } - - const deleteImgBtn = () => { - dispatch('core/block-editor').updateBlockAttributes(clientId, { - image: null, - }); - }; - - const uploadImgBtn = image => { - const imageParsed = JSON.parse( fixBrokenUnicode(image) ); - return ( - setAttributes({ image: JSON.stringify(value) })} - type="image" - className={"vk_post_imgOuter_img card-img-top"} - value={image} - render={({ open }) => ( - <> - {!imageParsed ? ( - - ) : ( - <> - {imageParsed.alt} - - - )} - - )} - /> - ); - }; - - const renderImage = display_image => { - if (display_image) { - if (isEdit(for_)) { - return ( - <> -
-
- {uploadImgBtn(image)} -
- - ); - } else { - return ( -
- {switchAddUrltoImage(url)} -
- ); - } - } - }; - - const switchAddUrltoImage = (url) => { - const overlay =
; - if (url) { - return ( - - {overlay} - - ); - } - return overlay; - }; - - const renderExcerpt = (align) => { - const titleTag = 'p'; - const titleClass = `vk_post_excerpt card-text text-${align.text}`; - if (isEdit(for_)) { - return ( - - setAttributes({ excerpt_text: value }) - } - placeholder={__( - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ', - 'vk-blocks-pro' - )} - /> - ); - } - return ( - - ); - }; - - const renderButton = (display_btn) => { - if (display_btn) { - return ( - - {btn_text} - - ); - } - }; - - const renderTitle = (align) => { - const titleTag = 'h5'; - const titleClass = `vk_post_title card-title text-${align.title}`; - if (isEdit(for_)) { - return ( - setAttributes({ title: value })} - placeholder={__('Title', 'vk-blocks-pro')} - /> - ); - } - return ( - - - - ); - }; - - let imageStyle; - if (image) { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - imageStyle = { - backgroundImage: `url(${imageParsed.sizes.full.url})`, - }; - } else { - imageStyle = {}; - } - - const btnClass = display_btn ? 'vk_post-btn-display' : ''; - - return ( -
- {renderImage(display_image)} -
- {renderTitle(align)} - {renderExcerpt(align)} -
- {renderButton(display_btn)} -
-
-
- ); - } -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.2/save.js b/src/blocks/_pro/card-item/deprecated/0.20.2/save.js deleted file mode 100644 index 1a1058146..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.2/save.js +++ /dev/null @@ -1,5 +0,0 @@ -import { CardItem } from './component'; - -export default function save(props) { - return ; -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.3/component.js b/src/blocks/_pro/card-item/deprecated/0.20.3/component.js deleted file mode 100644 index 60a92a087..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.3/component.js +++ /dev/null @@ -1,242 +0,0 @@ -import { __ } from '@wordpress/i18n'; -import { fixBrokenUnicode } from '@vkblocks/utils/depModules'; -import { RichText, MediaUpload } from '@wordpress/block-editor'; -import { Button } from '@wordpress/components'; -import { Fragment, Component } from '@wordpress/element'; -import { dispatch } from '@wordpress/data'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; - -export class DepComponent extends Component { - render() { - const { setAttributes, attributes, clientId } = this.props.value; - let { - layout, - col_xs, - col_sm, - col_md, - col_lg, - col_xl, - display_image, - display_btn, - btn_text, - title, - excerpt_text, - image, - url, - activeControl, - linkTarget, - rel, - } = attributes; - - const align = JSON.parse(fixBrokenUnicode(activeControl)); - const for_ = this.props.for_; - - const isEdit = () => { - if (for_ === 'edit') { - return true; - } else if ('save') { - return false; - } - }; - - let imgContainerClass; - if (layout === 'card-horizontal') { - } else if (layout === 'media') { - imgContainerClass = 'vk_post_imgOuter media-img'; - } else if (layout === 'card') { - layout = layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-noborder') { - layout = 'card ' + layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } - - const deleteImgBtn = () => { - dispatch('core/block-editor').updateBlockAttributes(clientId, { - image: null, - }); - }; - - const uploadImgBtn = (image) => { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - return ( - - setAttributes({ image: JSON.stringify(value) }) - } - type="image" - className={'vk_post_imgOuter_img card-img-top'} - value={image} - render={({ open }) => ( - - {!imageParsed ? ( - - ) : ( - - {imageParsed.alt} - - - )} - - )} - /> - ); - }; - - const renderImage = (display_image) => { - if (display_image) { - if (isEdit(for_)) { - return ( - -
-
- {uploadImgBtn(image)} -
-
- ); - } - return ( -
- {switchAddUrltoImage(url)} -
- ); - } - }; - - const switchAddUrltoImage = (url) => { - const overlay =
; - if (url) { - return ( - - {overlay} - - ); - } - return overlay; - }; - - const renderExcerpt = (align) => { - const titleTag = 'p'; - const titleClass = `vk_post_excerpt card-text text-${align.text}`; - if (isEdit(for_)) { - return ( - - setAttributes({ excerpt_text: value }) - } - placeholder={__( - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ', - 'vk-blocks-pro' - )} - /> - ); - } - return ( - - ); - }; - - const renderButton = (display_btn, align) => { - if (display_btn) { - return ( - - ); - } - }; - - const renderTitle = (align) => { - const titleTag = 'h5'; - const titleClass = `vk_post_title card-title text-${align.title}`; - if (isEdit(for_)) { - return ( - setAttributes({ title: value })} - placeholder={__('Title', 'vk-blocks-pro')} - /> - ); - } - return ( - - - - ); - }; - - let imageStyle; - if (image) { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - imageStyle = { - backgroundImage: `url(${imageParsed.sizes.full.url})`, - }; - } else { - imageStyle = {}; - } - - const btnClass = display_btn ? 'vk_post-btn-display' : ''; - - return ( -
- {renderImage(display_image)} -
- {renderTitle(align)} - {renderExcerpt(align)} - {renderButton(display_btn, align)} -
-
- ); - } -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.3/save.js b/src/blocks/_pro/card-item/deprecated/0.20.3/save.js deleted file mode 100644 index 7111bb197..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.3/save.js +++ /dev/null @@ -1,5 +0,0 @@ -import { DepComponent } from './component'; - -export default function save(props) { - return ; -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.4/component.js b/src/blocks/_pro/card-item/deprecated/0.20.4/component.js deleted file mode 100644 index 9c2e9b094..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.4/component.js +++ /dev/null @@ -1,250 +0,0 @@ -import { __ } from '@wordpress/i18n'; -import { fixBrokenUnicode } from '@vkblocks/utils/depModules'; -import { RichText, MediaUpload } from '@wordpress/block-editor'; -import { Button } from '@wordpress/components'; -import { Component } from '@wordpress/element'; -import { dispatch } from '@wordpress/data'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; - -export class DepComponent2 extends Component { - render() { - const { setAttributes, attributes, clientId } = this.props.value; - - let { - className, - layout, - col_xs, - col_sm, - col_md, - col_lg, - col_xl, - display_image, - display_btn, - btn_text, - title, - excerpt_text, - image, - url, - activeControl, - linkTarget, - rel, - } = attributes; - - const align = JSON.parse(fixBrokenUnicode(activeControl)); - const for_ = this.props.for_; - - const isEdit = () => { - if (for_ === 'edit') { - return true; - } else if ('save') { - return false; - } - }; - - let imgContainerClass; - if (layout === 'card-horizontal') { - } else if (layout === 'media') { - imgContainerClass = 'vk_post_imgOuter media-img'; - } else if (layout === 'card') { - layout = layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-noborder') { - layout = 'card ' + layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-imageRound') { - layout = 'card card-noborder ' + layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } - - const deleteImgBtn = () => { - dispatch('core/block-editor').updateBlockAttributes(clientId, { - image: null, - }); - }; - - const uploadImgBtn = (image) => { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - return ( - - setAttributes({ image: JSON.stringify(value) }) - } - type="image" - className={'vk_post_imgOuter_img card-img-top'} - value={image} - render={({ open }) => ( - <> - {!imageParsed ? ( - - ) : ( - <> - {imageParsed.alt} - - - )} - - )} - /> - ); - }; - - const renderImage = (display_image) => { - if (display_image) { - if (isEdit(for_)) { - return ( - <> -
-
- {uploadImgBtn(image)} -
- - ); - } - return ( -
- {switchAddUrltoImage(url)} -
- ); - } - }; - - const switchAddUrltoImage = (url) => { - const overlay =
; - if (url) { - return ( - - {overlay} - - ); - } - return overlay; - }; - - const renderExcerpt = (align) => { - const titleTag = 'p'; - const titleClass = `vk_post_excerpt card-text has-text-align-${align.text}`; - if (isEdit(for_)) { - return ( - - setAttributes({ excerpt_text: value }) - } - placeholder={__( - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ', - 'vk-blocks-pro' - )} - /> - ); - } - return ( - - ); - }; - - const renderButton = (display_btn, align) => { - if (display_btn) { - return ( - - ); - } - }; - - const renderTitle = (align) => { - const titleTag = 'h5'; - const titleClass = `vk_post_title card-title has-text-align-${align.title}`; - if (isEdit(for_)) { - return ( - setAttributes({ title: value })} - placeholder={__('Title', 'vk-blocks-pro')} - /> - ); - } - return ( - - - - ); - }; - - let imageStyle; - if (image) { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - imageStyle = { - backgroundImage: `url(${imageParsed.sizes.full.url})`, - }; - } else { - imageStyle = {}; - } - - const btnClass = display_btn ? 'vk_post-btn-display' : ''; - - return ( -
- {renderImage(display_image)} -
- {renderTitle(align)} - {renderExcerpt(align)} - - {renderButton(display_btn, align)} -
-
- ); - } -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.4/save.js b/src/blocks/_pro/card-item/deprecated/0.20.4/save.js deleted file mode 100644 index 84f84c046..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.4/save.js +++ /dev/null @@ -1,5 +0,0 @@ -import { DepComponent2 } from './component'; - -export default function save(props) { - return ; -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.5/component.js b/src/blocks/_pro/card-item/deprecated/0.20.5/component.js deleted file mode 100644 index 625abb45f..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.5/component.js +++ /dev/null @@ -1,255 +0,0 @@ -import { __ } from '@wordpress/i18n'; -import { fixBrokenUnicode } from '@vkblocks/utils/depModules'; -import { RichText, MediaUpload } from '@wordpress/block-editor'; -import { Button } from '@wordpress/components'; -import { Component } from '@wordpress/element'; -import { dispatch } from '@wordpress/data'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; - -export class DepComponent3 extends Component { - render() { - const { setAttributes, attributes, className, clientId } = this.props; - let { - layout, - col_xs, - col_sm, - col_md, - col_lg, - col_xl, - display_image, - display_btn, - btn_text, - title, - excerpt_text, - image, - url, - activeControl, - linkTarget, - rel, - } = attributes; - - const align = JSON.parse(fixBrokenUnicode(activeControl)); - const for_ = this.props.for_; - - const isEdit = () => { - if (for_ === 'edit') { - return true; - } else if ('save') { - return false; - } - }; - - let imgContainerClass; - if (layout === 'card-horizontal') { - } else if (layout === 'media') { - imgContainerClass = 'vk_post_imgOuter media-img'; - } else if (layout === 'card') { - layout = layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-noborder') { - layout = 'card ' + layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-imageRound') { - layout = 'card card-noborder ' + layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } - - const deleteImgBtn = () => { - dispatch('core/block-editor').updateBlockAttributes(clientId, { - image: null, - }); - }; - - const uploadImgBtn = (image) => { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - return ( - - setAttributes({ image: JSON.stringify(value) }) - } - type="image" - className={'vk_post_imgOuter_img card-img-top'} - value={image} - render={({ open }) => ( - <> - {!imageParsed ? ( - - ) : ( - <> - {imageParsed.alt} - - - )} - - )} - /> - ); - }; - - const renderImage = (display_image) => { - if (display_image) { - if (isEdit(for_)) { - return ( - <> -
-
- {uploadImgBtn(image)} -
- - ); - } - return ( -
- {switchAddUrltoImage(url)} -
- ); - } - }; - - const switchAddUrltoImage = (url) => { - const overlay =
; - if (url) { - return ( - - {overlay} - - ); - } - return overlay; - }; - - const renderExcerpt = (align) => { - const titleTag = 'p'; - const titleClass = `vk_post_excerpt card-text has-text-align-${align.text}`; - if (isEdit(for_)) { - return ( - - setAttributes({ excerpt_text: value }) - } - placeholder={__( - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ', - 'vk-blocks-pro' - )} - /> - ); - } - return ( - - ); - }; - - const renderButton = (display_btn, align) => { - if (display_btn) { - return ( - - ); - } - }; - - const renderTitle = (align) => { - const titleTag = 'h5'; - const titleClass = `vk_post_title card-title has-text-align-${align.title}`; - if (isEdit(for_)) { - return ( - setAttributes({ title: value })} - placeholder={__('Title', 'vk-blocks-pro')} - /> - ); - } else if (!isEdit(for_) && !url) { - return ( - - ); - } - return ( - - - - ); - }; - - let imageStyle; - if (image) { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - imageStyle = { - backgroundImage: `url(${imageParsed.sizes.full.url})`, - }; - } else { - imageStyle = {}; - } - - const btnClass = display_btn ? 'vk_post-btn-display' : ''; - - return ( -
- {renderImage(display_image)} -
- {renderTitle(align)} - {renderExcerpt(align)} - {renderButton(display_btn, align)} -
-
- ); - } -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.5/save.js b/src/blocks/_pro/card-item/deprecated/0.20.5/save.js deleted file mode 100644 index d225fd6c2..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.5/save.js +++ /dev/null @@ -1,5 +0,0 @@ -import { DepComponent3 } from './component'; - -export default function save(props) { - return ; -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.6/component.js b/src/blocks/_pro/card-item/deprecated/0.20.6/component.js deleted file mode 100644 index 706e58cc8..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.6/component.js +++ /dev/null @@ -1,267 +0,0 @@ -import { __ } from '@wordpress/i18n'; -import { fixBrokenUnicode } from '@vkblocks/utils/depModules'; -import { RichText, MediaUpload, InnerBlocks } from '@wordpress/block-editor'; -import { Button } from '@wordpress/components'; -import { Component } from '@wordpress/element'; -import { dispatch } from '@wordpress/data'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; - -export class DepComponentXxlAdd extends Component { - render() { - const { setAttributes, attributes, className, clientId } = this.props; - let { - layout, - col_xs, - col_sm, - col_md, - col_lg, - col_xl, - display_title, - display_excerpt, - display_image, - display_btn, - btn_text, - title, - excerpt_text, - image, - url, - activeControl, - linkTarget, - rel, - } = attributes; - - const align = JSON.parse(fixBrokenUnicode(activeControl)); - const for_ = this.props.for_; - - const isEdit = () => { - if (for_ === 'edit') { - return true; - } else if ('save') { - return false; - } - }; - - let imgContainerClass; - if (layout === 'card-horizontal') { - } else if (layout === 'media') { - imgContainerClass = 'vk_post_imgOuter media-img'; - } else if (layout === 'card') { - layout = layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-noborder') { - layout = 'card ' + layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-imageRound') { - layout = 'card card-noborder ' + layout + ' card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } - - const deleteImgBtn = () => { - dispatch('core/block-editor').updateBlockAttributes(clientId, { - image: null, - }); - }; - - const uploadImgBtn = (image) => { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - return ( - - setAttributes({ image: JSON.stringify(value) }) - } - type="image" - className={'vk_post_imgOuter_img card-img-top'} - value={image} - render={({ open }) => ( - <> - {!imageParsed ? ( - - ) : ( - <> - {imageParsed.alt} - - - )} - - )} - /> - ); - }; - - const renderImage = (display_image) => { - if (display_image) { - if (isEdit(for_)) { - return ( - <> -
-
- {uploadImgBtn(image)} -
- - ); - } - return ( -
- {switchAddUrltoImage(url)} -
- ); - } - }; - - const switchAddUrltoImage = (url) => { - const overlay =
; - if (url) { - return ( - - {overlay} - - ); - } - return overlay; - }; - - const renderExcerpt = (align, display_excerpt) => { - if (display_excerpt) { - const titleTag = 'p'; - const titleClass = `vk_post_excerpt card-text has-text-align-${align.text}`; - if (isEdit(for_)) { - return ( - - setAttributes({ excerpt_text: value }) - } - placeholder={__( - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ', - 'vk-blocks-pro' - )} - /> - ); - } - return ( - - ); - } - }; - - const renderButton = (display_btn, align) => { - if (display_btn) { - return ( - - ); - } - }; - - const renderTitle = (align, display_title) => { - if (display_title) { - const titleTag = 'h5'; - const titleClass = `vk_post_title card-title has-text-align-${align.title}`; - if (isEdit(for_)) { - return ( - - setAttributes({ title: value }) - } - placeholder={__('Title', 'vk-blocks-pro')} - /> - ); - } else if (!isEdit(for_) && !url) { - return ( - - ); - } - return ( - - - - ); - } - }; - - let imageStyle; - if (image) { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - imageStyle = { - backgroundImage: `url(${imageParsed.sizes.full.url})`, - }; - } else { - imageStyle = {}; - } - - const btnClass = display_btn ? 'vk_post-btn-display' : ''; - return ( -
- {renderImage(display_image)} -
- {renderTitle(align, display_title)} - {renderExcerpt(align, display_excerpt)} - {for_ === 'edit' ? ( - - ) : ( - - )} - {renderButton(display_btn, align)} -
-
- ); - } -} diff --git a/src/blocks/_pro/card-item/deprecated/0.20.6/save.js b/src/blocks/_pro/card-item/deprecated/0.20.6/save.js deleted file mode 100644 index ddf25a400..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.20.6/save.js +++ /dev/null @@ -1,5 +0,0 @@ -import { DepComponentXxlAdd } from './component'; - -export default function save(props) { - return ; -} diff --git a/src/blocks/_pro/card-item/deprecated/0.60.1/component.js b/src/blocks/_pro/card-item/deprecated/0.60.1/component.js deleted file mode 100644 index 3ea99bbec..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.60.1/component.js +++ /dev/null @@ -1,274 +0,0 @@ -import { __ } from '@wordpress/i18n'; -import { fixBrokenUnicode } from '@vkblocks/utils/depModules'; -import { RichText, MediaUpload, InnerBlocks } from '@wordpress/block-editor'; -import { Button } from '@wordpress/components'; -import { Component } from '@wordpress/element'; -import { dispatch } from '@wordpress/data'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; - -export class CardItem extends Component { - render() { - const { setAttributes, attributes, className, clientId } = this.props; - const { - layout, - col_xs, - col_sm, - col_md, - col_lg, - col_xl, - col_xxl, - display_title, - display_excerpt, - display_image, - display_btn, - btn_text, - title, - excerpt_text, - image, - url, - activeControl, - linkTarget, - rel, - } = attributes; - - //ユニコード文字がエスケープされている対策 - const align = JSON.parse(fixBrokenUnicode(activeControl)); - const for_ = this.props.for_; - - const isEdit = () => { - if (for_ === 'edit') { - return true; - } else if ('save') { - return false; - } - }; - - let imgContainerClass; - let layoutClass; - if (layout === 'card-horizontal') { - } else if (layout === 'media') { - layoutClass = 'media'; - imgContainerClass = 'vk_post_imgOuter media-img'; - } else if (layout === 'card') { - layoutClass = 'card card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-noborder') { - layoutClass = 'card card-noborder card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } else if (layout === 'card-imageRound') { - layoutClass = 'card card-noborder card-imageRound card-post'; - imgContainerClass = 'vk_post_imgOuter'; - } - - const deleteImgBtn = () => { - dispatch('core/block-editor').updateBlockAttributes(clientId, { - image: null, - }); - }; - - const uploadImgBtn = (image) => { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - return ( - - setAttributes({ image: JSON.stringify(value) }) - } - type="image" - className={'vk_post_imgOuter_img card-img-top'} - value={image} - render={({ open }) => ( - <> - {!imageParsed ? ( - - ) : ( - <> - {imageParsed.alt} - - - )} - - )} - /> - ); - }; - - const renderImage = (display_image) => { - if (display_image) { - if (isEdit(for_)) { - return ( - <> -
-
- {uploadImgBtn(image)} -
- - ); - } - return ( -
- {switchAddUrltoImage(url)} -
- ); - } - }; - - const switchAddUrltoImage = (url) => { - const overlay =
; - if (url) { - return ( - - {overlay} - - ); - } - return overlay; - }; - - const renderExcerpt = (align, display_excerpt) => { - if (display_excerpt) { - const titleTag = 'p'; - const titleClass = `vk_post_excerpt card-text has-text-align-${align.text}`; - if (isEdit(for_)) { - return ( - - setAttributes({ excerpt_text: value }) - } - placeholder={__( - 'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. ', - 'vk-blocks-pro' - )} - /> - ); - } - return ( - - ); - } - }; - - const renderButton = (display_btn, align) => { - if (display_btn) { - return ( - - ); - } - }; - - const renderTitle = (align, display_title) => { - if (display_title) { - const titleTag = 'h5'; - const titleClass = `vk_post_title card-title has-text-align-${align.title}`; - if (isEdit(for_)) { - return ( - - setAttributes({ title: value }) - } - placeholder={__('Title', 'vk-blocks-pro')} - /> - ); - } else if (!isEdit(for_) && !url) { - return ( - - ); - } - return ( - - - - ); - } - }; - - let imageStyle; - if (image) { - const imageParsed = JSON.parse(fixBrokenUnicode(image)); - imageStyle = { - backgroundImage: `url(${imageParsed.sizes.full.url})`, - }; - } else { - imageStyle = {}; - } - - const btnClass = display_btn ? 'vk_post-btn-display' : ''; - return ( -
- {renderImage(display_image)} -
- {renderTitle(align, display_title)} - {renderExcerpt(align, display_excerpt)} - {for_ === 'edit' ? ( - - ) : ( - - )} - {renderButton(display_btn, align)} -
-
- ); - } -} diff --git a/src/blocks/_pro/card-item/deprecated/0.60.1/save.js b/src/blocks/_pro/card-item/deprecated/0.60.1/save.js deleted file mode 100644 index 762d6a066..000000000 --- a/src/blocks/_pro/card-item/deprecated/0.60.1/save.js +++ /dev/null @@ -1,5 +0,0 @@ -import { CardItem } from './component'; - -export default function save(props) { - return ; -} diff --git a/src/blocks/_pro/card-item/deprecated/index.js b/src/blocks/_pro/card-item/deprecated/index.js index 9a632a53d..497b17fff 100644 --- a/src/blocks/_pro/card-item/deprecated/index.js +++ b/src/blocks/_pro/card-item/deprecated/index.js @@ -1,9 +1,3 @@ -import save0_20_2 from './0.20.2/save'; -import save0_20_3 from './0.20.3/save'; -import save0_20_4 from './0.20.4/save'; -import save0_20_5 from './0.20.5/save'; -import save0_20_6 from './0.20.6/save'; -import save0_60_1 from './0.60.1/save'; import save1_2_4 from './1.2.4/save'; const blockAttributes = { @@ -125,30 +119,6 @@ const deprecated = [ attributes: blockAttributes3, save: save1_2_4, }, - { - attributes: blockAttributes3, - save: save0_60_1, - }, - { - attributes: blockAttributes2, - save: save0_20_6, - }, - { - attributes: blockAttributes2, - save: save0_20_5, - }, - { - attributes: blockAttributes2, - save: save0_20_4, - }, - { - attributes: blockAttributes2, - save: save0_20_3, - }, - { - attributes: blockAttributes, - save: save0_20_2, - }, ]; export default deprecated; diff --git a/src/blocks/_pro/card/deprecated/hooks/0.0.1/index.js b/src/blocks/_pro/card/deprecated/hooks/0.0.1/index.js deleted file mode 100644 index bfccaaeb4..000000000 --- a/src/blocks/_pro/card/deprecated/hooks/0.0.1/index.js +++ /dev/null @@ -1,3 +0,0 @@ -export default function CardHook({el,attributes}) { - return el -} diff --git a/src/blocks/_pro/card/deprecated/hooks/index.js b/src/blocks/_pro/card/deprecated/hooks/index.js index b8d65723b..80c5c2f95 100644 --- a/src/blocks/_pro/card/deprecated/hooks/index.js +++ b/src/blocks/_pro/card/deprecated/hooks/index.js @@ -1,7 +1,6 @@ import CardHook1_34_1 from './1.34.1' import CardHook1_23_0 from './1.23.0' import CardHook1_0_4 from './1.0.4' -import CardHook0_0_1 from './0.0.1' // saveの数分必要 export default [ @@ -11,7 +10,4 @@ export default [ CardHook1_0_4, CardHook1_0_4, CardHook1_0_4, - // Fix: https://github.com/vektor-inc/vk-blocks-pro/issues/376 - // 存在不明なバージョンの後方互換 - CardHook0_0_1, ]; diff --git a/src/blocks/_pro/card/deprecated/save/0.0.0/component.js b/src/blocks/_pro/card/deprecated/save/0.0.0/component.js deleted file mode 100644 index eabc049d4..000000000 --- a/src/blocks/_pro/card/deprecated/save/0.0.0/component.js +++ /dev/null @@ -1,52 +0,0 @@ -import { InnerBlocks } from '@wordpress/block-editor'; -import { Component } from '@wordpress/element'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; - -export class DeprecatedComponent extends Component { - render() { - const for_ = this.props.for_; - const attributes = this.props.attributes; - let innerClass = ''; - let elm; - const ALLOWED_BLOCKS = ['vk-blocks/card-item']; - const TEMPLATE = [ALLOWED_BLOCKS]; - - //編集画面とサイト上の切り替え - if (for_ === 'edit') { - innerClass = 'editting'; - innerClass = innerClass + ' vk_posts-edit'; - innerClass = - innerClass + - ' vk_posts-edit-col-xs-' + - convertToGrid(attributes.col_xs); - innerClass = - innerClass + - ' vk_posts-edit-col-sm-' + - convertToGrid(attributes.col_sm); - innerClass = - innerClass + - ' vk_posts-edit-col-md-' + - convertToGrid(attributes.col_md); - innerClass = - innerClass + - ' vk_posts-edit-col-lg-' + - convertToGrid(attributes.col_lg); - innerClass = - innerClass + - ' vk_posts-edit-col-xl-' + - convertToGrid(attributes.col_xl); - - elm = ( -
- -
- ); - } else if ('save') { - elm = ; - } - return
{elm}
; - } -} diff --git a/src/blocks/_pro/card/deprecated/save/0.0.0/save.js b/src/blocks/_pro/card/deprecated/save/0.0.0/save.js deleted file mode 100644 index c0e8f86b6..000000000 --- a/src/blocks/_pro/card/deprecated/save/0.0.0/save.js +++ /dev/null @@ -1,11 +0,0 @@ -import { DeprecatedComponent } from './component'; - -export default function save({ attributes, className }) { - return ( - - ); -} diff --git a/src/blocks/_pro/card/deprecated/save/0.37.4/component.js b/src/blocks/_pro/card/deprecated/save/0.37.4/component.js deleted file mode 100644 index ed1962767..000000000 --- a/src/blocks/_pro/card/deprecated/save/0.37.4/component.js +++ /dev/null @@ -1,53 +0,0 @@ -import { InnerBlocks } from '@wordpress/block-editor'; -import { Component } from '@wordpress/element'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; - -export class Component0374 extends Component { - render() { - const for_ = this.props.for_; - const attributes = this.props.attributes; - let innerClass = ''; - const className = this.props.className; - let elm; - const ALLOWED_BLOCKS = ['vk-blocks/card-item']; - const TEMPLATE = [ALLOWED_BLOCKS]; - - //編集画面とサイト上の切り替え - if (for_ === 'edit') { - innerClass = 'editting'; - innerClass = innerClass + ' vk_posts-edit'; - innerClass = - innerClass + - ' vk_posts-edit-col-xs-' + - convertToGrid(attributes.col_xs); - innerClass = - innerClass + - ' vk_posts-edit-col-sm-' + - convertToGrid(attributes.col_sm); - innerClass = - innerClass + - ' vk_posts-edit-col-md-' + - convertToGrid(attributes.col_md); - innerClass = - innerClass + - ' vk_posts-edit-col-lg-' + - convertToGrid(attributes.col_lg); - innerClass = - innerClass + - ' vk_posts-edit-col-xl-' + - convertToGrid(attributes.col_xl); - - elm = ( -
- -
- ); - } else if ('save') { - elm = ; - } - return
{elm}
; - } -} diff --git a/src/blocks/_pro/card/deprecated/save/0.37.4/save.js b/src/blocks/_pro/card/deprecated/save/0.37.4/save.js deleted file mode 100644 index 632489fb8..000000000 --- a/src/blocks/_pro/card/deprecated/save/0.37.4/save.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Component0374 } from './component'; - -export default function save({ attributes, className }) { - return ( - - ); -} diff --git a/src/blocks/_pro/card/deprecated/save/0.40.0/component.js b/src/blocks/_pro/card/deprecated/save/0.40.0/component.js deleted file mode 100644 index f55f40acd..000000000 --- a/src/blocks/_pro/card/deprecated/save/0.40.0/component.js +++ /dev/null @@ -1,72 +0,0 @@ -import { InnerBlocks } from '@wordpress/block-editor'; -import { Component } from '@wordpress/element'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; -import classNames from 'classnames'; - -const prefix = 'vk_card_'; - -export class Component0400 extends Component { - render() { - const for_ = this.props.for_; - const attributes = this.props.attributes; - const { clientId } = attributes; - let innerClass = ''; - let className = this.props.className; - let elm; - const ALLOWED_BLOCKS = ['vk-blocks/card-item']; - const TEMPLATE = [ALLOWED_BLOCKS]; - - //編集画面とサイト上の切り替え - if (for_ === 'edit') { - innerClass = 'editting'; - innerClass = innerClass + ' vk_posts-edit'; - innerClass = - innerClass + - ' vk_posts-edit-col-xs-' + - convertToGrid(attributes.col_xs); - innerClass = - innerClass + - ' vk_posts-edit-col-sm-' + - convertToGrid(attributes.col_sm); - innerClass = - innerClass + - ' vk_posts-edit-col-md-' + - convertToGrid(attributes.col_md); - innerClass = - innerClass + - ' vk_posts-edit-col-lg-' + - convertToGrid(attributes.col_lg); - innerClass = - innerClass + - ' vk_posts-edit-col-xl-' + - convertToGrid(attributes.col_xl); - - elm = ( -
- -
- ); - } else if ('save') { - elm = ; - } - - if (className) { - className = className.replace(/vk_card_undefined/g, ''); - } - - return ( -
- {elm} -
- ); - } -} diff --git a/src/blocks/_pro/card/deprecated/save/0.40.0/save.js b/src/blocks/_pro/card/deprecated/save/0.40.0/save.js deleted file mode 100644 index aa9c40ba1..000000000 --- a/src/blocks/_pro/card/deprecated/save/0.40.0/save.js +++ /dev/null @@ -1,11 +0,0 @@ -import { Component0400 } from './component'; - -export default function save({ attributes, className }) { - return ( - - ); -} diff --git a/src/blocks/_pro/card/deprecated/save/0.60.1/component.js b/src/blocks/_pro/card/deprecated/save/0.60.1/component.js deleted file mode 100644 index 32aa023dc..000000000 --- a/src/blocks/_pro/card/deprecated/save/0.60.1/component.js +++ /dev/null @@ -1,64 +0,0 @@ -import { InnerBlocks } from '@wordpress/block-editor'; -import { convertToGrid } from '@vkblocks/utils/convert-to-grid'; -import { Component } from '@wordpress/element'; -import classNames from 'classnames'; - -const prefix = 'vk_card_'; - -export class Card extends Component { - render() { - const for_ = this.props.for_; - const attributes = this.props.attributes; - const { clientId } = attributes; - let innerClass = ''; - let className = this.props.className; - let elm; - const ALLOWED_BLOCKS = ['vk-blocks/card-item']; - const TEMPLATE = [ALLOWED_BLOCKS]; - - //編集画面とサイト上の切り替え - if (for_ === 'edit') { - innerClass = 'editting'; - innerClass += innerClass + ' vk_posts-edit'; - innerClass += - ' vk_posts-edit-col-xs-' + convertToGrid(attributes.col_xs); - innerClass += - ' vk_posts-edit-col-sm-' + convertToGrid(attributes.col_sm); - innerClass += - ' vk_posts-edit-col-md-' + convertToGrid(attributes.col_md); - innerClass += - ' vk_posts-edit-col-lg-' + convertToGrid(attributes.col_lg); - innerClass += - ' vk_posts-edit-col-xl-' + convertToGrid(attributes.col_xl); - innerClass += - ' vk_posts-edit-col-xxl-' + convertToGrid(attributes.col_xxl); - - elm = ( -
- -
- ); - } else if ('save') { - elm = ; - } - - if (className) { - className = className.replace(/vk_card_undefined/g, ''); - } - - return ( -
- {elm} -
- ); - } -} diff --git a/src/blocks/_pro/card/deprecated/save/0.60.1/save.js b/src/blocks/_pro/card/deprecated/save/0.60.1/save.js deleted file mode 100644 index 88b3cf6e0..000000000 --- a/src/blocks/_pro/card/deprecated/save/0.60.1/save.js +++ /dev/null @@ -1,5 +0,0 @@ -import { Card } from './component'; - -export default function save({ attributes }) { - return ; -} diff --git a/src/blocks/_pro/card/deprecated/save/index.js b/src/blocks/_pro/card/deprecated/save/index.js index 685a58711..d8783a46d 100644 --- a/src/blocks/_pro/card/deprecated/save/index.js +++ b/src/blocks/_pro/card/deprecated/save/index.js @@ -1,7 +1,3 @@ -import save000 from './0.0.0/save'; -import save0374 from './0.37.4/save'; -import save0400 from './0.40.0/save'; -import save0601 from './0.60.1/save'; import save1_0_4 from './1.0.4/save'; import save1_23_0 from './1.23.0/save'; import save1_34_1 from './1.34.1/save'; @@ -166,21 +162,5 @@ const deprecated = [ attributes:blockAttributes3, save: save1_0_4 }, - { - attributes: blockAttributes2, - save: save0601, - }, - { - attributes: blockAttributes2, - save: save0400, - }, - { - attributes: blockAttributes, - save: save0374, - }, - { - attributes: blockAttributes, - save: save000, - }, ]; export default deprecated; diff --git a/test/e2e-tests/fixtures/blocks/vk-blocks__card__deprecated-0-60-1.html b/test/e2e-tests/fixtures/blocks/vk-blocks__card__deprecated-0-60-1.html deleted file mode 100644 index 4eada990f..000000000 --- a/test/e2e-tests/fixtures/blocks/vk-blocks__card__deprecated-0-60-1.html +++ /dev/null @@ -1,20 +0,0 @@ - -
-
タイトル

本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文

Read more
-
- \ No newline at end of file diff --git a/test/e2e-tests/fixtures/blocks/vk-blocks__card__deprecated-0-60-1__button-linkTarget-blank.html b/test/e2e-tests/fixtures/blocks/vk-blocks__card__deprecated-0-60-1__button-linkTarget-blank.html deleted file mode 100644 index 172f56c7c..000000000 --- a/test/e2e-tests/fixtures/blocks/vk-blocks__card__deprecated-0-60-1__button-linkTarget-blank.html +++ /dev/null @@ -1,20 +0,0 @@ - -
-
タイトル

本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文本文

Read more
-
- \ No newline at end of file From a06591e767e05d60bcb5de2a4eb2b148b8c58ca2 Mon Sep 17 00:00:00 2001 From: Taichi Maruyama Date: Thu, 14 Nov 2024 18:26:25 +0900 Subject: [PATCH 2/9] fix: checkbox misalignment in the admin panel. --- options-css/_admin-block-manager.scss | 7 ++++++- readme.txt | 2 ++ 2 files changed, 8 insertions(+), 1 deletion(-) diff --git a/options-css/_admin-block-manager.scss b/options-css/_admin-block-manager.scss index 0141e0334..f5611cdd3 100644 --- a/options-css/_admin-block-manager.scss +++ b/options-css/_admin-block-manager.scss @@ -6,6 +6,7 @@ display: flex; flex-wrap: wrap; margin-left: calc(1.5em - 2em); + margin-top: 4px; } .block-manager__checklist-item { @@ -22,7 +23,11 @@ display: flex; margin: 0; } - + + .components-checkbox-control__input-container { + align-self: center; + } + .components-checkbox-control__label { display: flex; align-items: center; diff --git a/readme.txt b/readme.txt index 55dec11a4..f8c47b1e5 100644 --- a/readme.txt +++ b/readme.txt @@ -106,6 +106,8 @@ e.g. == Changelog == +[ Bug fix ] Fix checkbox misalignment in the admin panel. + = 1.91.0 = [ Specification change ] Adjusted translation file loading to comply with changes in WordPress 6.7. [ Bug fix ][ Table of Contents (Pro) ] Fixed "CLOSE" label not appearing after clicking the "OPEN" button when the initial state is set to "CLOSE". From 6bbb8fc70f1fc609733ecb2325b977407f9e8630 Mon Sep 17 00:00:00 2001 From: drill-lancer Date: Fri, 15 Nov 2024 11:28:39 +0900 Subject: [PATCH 3/9] fix: deprecated --- src/blocks/_pro/card/deprecated/hooks/index.js | 3 --- 1 file changed, 3 deletions(-) diff --git a/src/blocks/_pro/card/deprecated/hooks/index.js b/src/blocks/_pro/card/deprecated/hooks/index.js index 80c5c2f95..67d967c29 100644 --- a/src/blocks/_pro/card/deprecated/hooks/index.js +++ b/src/blocks/_pro/card/deprecated/hooks/index.js @@ -7,7 +7,4 @@ export default [ CardHook1_34_1, CardHook1_23_0, CardHook1_0_4, - CardHook1_0_4, - CardHook1_0_4, - CardHook1_0_4, ]; From 5fbab8ad4c39051aaa75ffb0504593182ef9053d Mon Sep 17 00:00:00 2001 From: Taichi Maruyama Date: Fri, 15 Nov 2024 19:19:31 +0900 Subject: [PATCH 4/9] =?UTF-8?q?fix:=206.7=E3=81=A7=E3=81=AE=E7=BF=BB?= =?UTF-8?q?=E8=A8=B3=E3=82=A8=E3=83=A9=E3=83=BC=E5=AF=BE=E5=BF=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/vk-css-optimize/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/vk-css-optimize/config.php b/inc/vk-css-optimize/config.php index b04889868..bbd931643 100644 --- a/inc/vk-css-optimize/config.php +++ b/inc/vk-css-optimize/config.php @@ -9,7 +9,7 @@ new VkCssOptimize(); global $prefix_customize_panel; - $prefix_customize_panel = __( 'VK Blocks ', 'vk-blocks-pro' ); + $prefix_customize_panel = 'VK Blocks '; /** * CSS Tree Shaking Array From 6b5dc1322783a62b26a4b19571e76e7366e8063b Mon Sep 17 00:00:00 2001 From: Taichi Maruyama Date: Fri, 15 Nov 2024 19:27:40 +0900 Subject: [PATCH 5/9] fix: translation error --- inc/vk-css-optimize/config.php | 2 +- readme.txt | 1 + 2 files changed, 2 insertions(+), 1 deletion(-) diff --git a/inc/vk-css-optimize/config.php b/inc/vk-css-optimize/config.php index bbd931643..b04889868 100644 --- a/inc/vk-css-optimize/config.php +++ b/inc/vk-css-optimize/config.php @@ -9,7 +9,7 @@ new VkCssOptimize(); global $prefix_customize_panel; - $prefix_customize_panel = 'VK Blocks '; + $prefix_customize_panel = __( 'VK Blocks ', 'vk-blocks-pro' ); /** * CSS Tree Shaking Array diff --git a/readme.txt b/readme.txt index f8c47b1e5..7ecfe683e 100644 --- a/readme.txt +++ b/readme.txt @@ -106,6 +106,7 @@ e.g. == Changelog == +[ Bug fix ] Avoiding translation errors in WordPress 6.7 [ Bug fix ] Fix checkbox misalignment in the admin panel. = 1.91.0 = From d721cc269fb50318a9e82fddbd4471786489070f Mon Sep 17 00:00:00 2001 From: Taichi Maruyama Date: Fri, 15 Nov 2024 19:32:28 +0900 Subject: [PATCH 6/9] fix: translation error --- inc/vk-css-optimize/config.php | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/inc/vk-css-optimize/config.php b/inc/vk-css-optimize/config.php index b04889868..bbd931643 100644 --- a/inc/vk-css-optimize/config.php +++ b/inc/vk-css-optimize/config.php @@ -9,7 +9,7 @@ new VkCssOptimize(); global $prefix_customize_panel; - $prefix_customize_panel = __( 'VK Blocks ', 'vk-blocks-pro' ); + $prefix_customize_panel = 'VK Blocks '; /** * CSS Tree Shaking Array From 8f1bc35e52b45ca17d5601e80b8c766195ec0c5a Mon Sep 17 00:00:00 2001 From: Taichi Maruyama Date: Fri, 15 Nov 2024 19:48:53 +0900 Subject: [PATCH 7/9] =?UTF-8?q?fix:=20after=5Fsetup=5Ftheme=E3=81=A7=20=5F?= =?UTF-8?q?=5F=E3=82=92=E5=91=BC=E3=81=B3=E5=87=BA=E3=81=99=E3=82=88?= =?UTF-8?q?=E3=81=86=E3=81=AB=E4=BF=AE=E6=AD=A3?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- inc/vk-css-optimize/config.php | 6 ++++-- 1 file changed, 4 insertions(+), 2 deletions(-) diff --git a/inc/vk-css-optimize/config.php b/inc/vk-css-optimize/config.php index bbd931643..b2fae3e4e 100644 --- a/inc/vk-css-optimize/config.php +++ b/inc/vk-css-optimize/config.php @@ -8,8 +8,10 @@ use VektorInc\VK_CSS_Optimize\VkCssOptimize; new VkCssOptimize(); - global $prefix_customize_panel; - $prefix_customize_panel = 'VK Blocks '; + add_action('after_setup_theme', function() { + global $prefix_customize_panel; + $prefix_customize_panel = __( 'VK Blocks ', 'vk-blocks-pro' ); +}); /** * CSS Tree Shaking Array From 910ab65eb9d758a799ea5e1831df3cb0586ca342 Mon Sep 17 00:00:00 2001 From: kurudrive Date: Sat, 16 Nov 2024 15:17:36 +0900 Subject: [PATCH 8/9] [ Change version ] 1.91.2.0 --- readme.txt | 7 +++++-- vk-blocks.php | 4 ++-- 2 files changed, 7 insertions(+), 4 deletions(-) diff --git a/readme.txt b/readme.txt index 7ecfe683e..bcff43124 100644 --- a/readme.txt +++ b/readme.txt @@ -4,7 +4,7 @@ Donate link: Tags: Gutenberg,FAQ,alert Requires at least: 6.4 Tested up to: 6.7 -Stable tag: 1.90.1.1 +Stable tag: 1.91.1.1 Requires PHP: 7.4 License: GPLv2 or later License URI: https://www.gnu.org/licenses/gpl-2.0.html @@ -106,9 +106,12 @@ e.g. == Changelog == -[ Bug fix ] Avoiding translation errors in WordPress 6.7 += 1.91.2 = [ Bug fix ] Fix checkbox misalignment in the admin panel. += 1.91.1 = +[ Bug fix ] Avoiding translation errors in WordPress 6.7 + = 1.91.0 = [ Specification change ] Adjusted translation file loading to comply with changes in WordPress 6.7. [ Bug fix ][ Table of Contents (Pro) ] Fixed "CLOSE" label not appearing after clicking the "OPEN" button when the initial state is set to "CLOSE". diff --git a/vk-blocks.php b/vk-blocks.php index da42a1d15..8682558ef 100644 --- a/vk-blocks.php +++ b/vk-blocks.php @@ -3,8 +3,8 @@ * Plugin Name: VK Blocks Pro * Plugin URI: https://github.com/vektor-inc/vk-blocks * Description: This is a plugin that extends Block Editor. - * Version: 1.91.0.1 - * Stable tag: 1.90.1.1 + * Version: 1.91.2.0 + * Stable tag: 1.91.1.1 * Requires at least: 6.3 * Author: Vektor,Inc. * Author URI: https://vektor-inc.co.jp From 592b15e46e25621b6d2496f5029a625eaaa088fb Mon Sep 17 00:00:00 2001 From: kurudrive Date: Sat, 16 Nov 2024 16:01:47 +0900 Subject: [PATCH 9/9] Change Test WordPress versions --- .github/workflows/develop-test.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.github/workflows/develop-test.yml b/.github/workflows/develop-test.yml index 1d4b53efe..73db0f423 100644 --- a/.github/workflows/develop-test.yml +++ b/.github/workflows/develop-test.yml @@ -13,7 +13,7 @@ jobs: strategy: matrix: php-versions: ['7.4', '8.0', '8.1'] - wp-versions: ['6.6','6.5','6.4'] + wp-versions: ['6.7','6.6','6.5'] name: PHP Unit test ${{ matrix.php-versions }} / WP ${{ matrix.wp-versions }} Test services: mysql: