Changeset 3167201
- Timestamp:
- 10/11/2024 02:01:44 PM (18 months ago)
- Location:
- for-your-eyes-only
- Files:
-
- 2 deleted
- 14 edited
- 1 copied
-
tags/1.1.3 (copied) (copied from for-your-eyes-only/trunk)
-
tags/1.1.3/app/Hametuha/ForYourEyesOnly.php (modified) (1 diff)
-
tags/1.1.3/assets/js/block.js (modified) (1 diff)
-
tags/1.1.3/for-your-eyes-only.php (modified) (1 diff)
-
tags/1.1.3/phpcs.ruleset.xml (deleted)
-
tags/1.1.3/readme.txt (modified) (1 diff)
-
tags/1.1.3/src/js/block.js (modified) (1 diff)
-
tags/1.1.3/vendor/composer/installed.php (modified) (2 diffs)
-
tags/1.1.3/wp-dependencies.json (modified) (1 diff)
-
trunk/app/Hametuha/ForYourEyesOnly.php (modified) (1 diff)
-
trunk/assets/js/block.js (modified) (1 diff)
-
trunk/for-your-eyes-only.php (modified) (1 diff)
-
trunk/phpcs.ruleset.xml (deleted)
-
trunk/readme.txt (modified) (1 diff)
-
trunk/src/js/block.js (modified) (1 diff)
-
trunk/vendor/composer/installed.php (modified) (2 diffs)
-
trunk/wp-dependencies.json (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
for-your-eyes-only/tags/1.1.3/app/Hametuha/ForYourEyesOnly.php
r3166983 r3167201 60 60 'capabilities' => $this->capability->capabilities_list(), 61 61 'default' => $this->capability->default_capability(), 62 'dynamic' => apply_filters( 'fyeo_default_render_style', '' ), 62 63 'placeholder' => $this->parser->tag_line(), 63 64 ] ); -
for-your-eyes-only/tags/1.1.3/assets/js/block.js
r3166983 r3167201 1 (()=>{"use strict";const e=window.wp.element,{registerBlockType:l}=wp.blocks,{__}=wp.i18n,{Fragment:t}=wp.element,{InnerBlocks:a,InspectorControls: i}=wp.blockEditor,{PanelBody:o,SelectControl:n,RadioControl:s,TextareaControl:c}=wp.components,r=[];let y="";for(const e in FyeoBlockVars.capabilities)if(FyeoBlockVars.capabilities.hasOwnProperty(e)){let l=FyeoBlockVars.capabilities[e];e===FyeoBlockVars.default&&(l+=__("(Default)","fyeo"),y=l),r.push({value:e,label:l})}l("fyeo/block",{title:__("Restricted Block","fyeo"),icon:"hidden",category:"common",keywords:[__("Restricted","fyeo"),__("For Your Eyes Only","fyeo")],description:__("This block will be displayed only for specified users.","fyeo"),attributes:{tag_line:{type:"string",default:""},capability:{type:"string",default:""},dynamic:{type:"string",default:""}},edit:({attributes:l,className:p,setAttributes:d})=>(0,e.createElement)(t,null,(0,e.createElement)(i,null,(0,e.createElement)(o,{title:__("Visibility Setting","fyeo"),icon:"admin-users",initialOpen:!0},(0,e.createElement)(n,{label:__("Capability","fyeo"),value:l.capability,options:r,onChange:e=>{d({capability:e})},help:__("This block will be displayed only for users specified above.","fyeo")}),(0,e.createElement)("hr",null),(0,e.createElement)(s,{label:__("Rendering Style","fyeo"),selected:l.dynamic,options:[{label:__("Asynchronous(JavaScript + REST API)","fyeo"),value:""},{label:__("Dynamic(PHP)","fyeo"),value:"dynamic"}],onChange:e=>{d({dynamic:e})},help:__("If WordPress is under cache, Asynchronous is recommended.","fyeo")}),(0,e.createElement)("hr",null),(0,e.createElement)(c,{label:__("Tagline","fyeo"),value:l.tag_line,rows:5,placeholder:"e.g."+FyeoBlockVars.placeholder,onChange:e=>d({tag_line:e}),help:__("This instruction will be displayed to users who have no capability. %s will be replaced with login URL.","fyeo")}))),(0,e.createElement)("div",{className:p},(0,e.createElement)("span",{className:"wp-block-fyeo-block__label"},l.capability?r.filter((e=>l.capability===e.value)).map((e=>e.label)).join(" "):y),(0,e.createElement)(a,null))),save:()=>(0,e.createElement)(a.Content,null)})})();1 (()=>{"use strict";const e=window.wp.element,{registerBlockType:l}=wp.blocks,{__}=wp.i18n,{Fragment:t}=wp.element,{InnerBlocks:a,InspectorControls:o}=wp.blockEditor,{PanelBody:i,SelectControl:n,RadioControl:c,TextareaControl:s}=wp.components,r=[];let y="";for(const e in FyeoBlockVars.capabilities)if(FyeoBlockVars.capabilities.hasOwnProperty(e)){let l=FyeoBlockVars.capabilities[e];e===FyeoBlockVars.default&&(l+=__("(Default)","fyeo"),y=l),r.push({value:e,label:l})}l("fyeo/block",{title:__("Restricted Block","fyeo"),icon:"hidden",category:"common",keywords:[__("Restricted","fyeo"),__("For Your Eyes Only","fyeo")],description:__("This block will be displayed only for specified users.","fyeo"),attributes:{tag_line:{type:"string",default:""},capability:{type:"string",default:FyeoBlockVars.default},dynamic:{type:"string",default:FyeoBlockVars.dynamic}},edit:({attributes:l,className:p,setAttributes:d})=>(0,e.createElement)(t,null,(0,e.createElement)(o,null,(0,e.createElement)(i,{title:__("Visibility Setting","fyeo"),icon:"admin-users",initialOpen:!0},(0,e.createElement)(n,{label:__("Capability","fyeo"),value:l.capability,options:r,onChange:e=>{d({capability:e})},help:__("This block will be displayed only for users specified above.","fyeo")}),(0,e.createElement)("hr",null),(0,e.createElement)(c,{label:__("Rendering Style","fyeo"),selected:l.dynamic,options:[{label:__("Asynchronous(JavaScript + REST API)","fyeo"),value:""},{label:__("Dynamic(PHP)","fyeo"),value:"dynamic"}],onChange:e=>{d({dynamic:e})},help:__("If WordPress is under cache, Asynchronous is recommended.","fyeo")}),(0,e.createElement)("hr",null),(0,e.createElement)(s,{label:__("Tagline","fyeo"),value:l.tag_line,rows:5,placeholder:"e.g."+FyeoBlockVars.placeholder,onChange:e=>d({tag_line:e}),help:__("This instruction will be displayed to users who have no capability. %s will be replaced with login URL.","fyeo")}))),(0,e.createElement)("div",{className:p},(0,e.createElement)("span",{className:"wp-block-fyeo-block__label"},l.capability?r.filter((e=>l.capability===e.value)).map((e=>e.label)).join(" "):y),(0,e.createElement)(a,null))),save:()=>(0,e.createElement)(a.Content,null)})})(); -
for-your-eyes-only/tags/1.1.3/for-your-eyes-only.php
r3167188 r3167201 6 6 Author: Tarosky INC. 7 7 Author URI: https://tarosky.co.jp 8 Version: 1.1. 28 Version: 1.1.3 9 9 Text Domain: fyeo 10 10 Domain Path: /languages/ -
for-your-eyes-only/tags/1.1.3/readme.txt
r3167188 r3167201 5 5 Requires at least: 6.1 6 6 Tested up to: 6.6 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 Requires PHP: 7.2 9 9 License: GPLv3 or later -
for-your-eyes-only/tags/1.1.3/src/js/block.js
r3166983 r3167201 52 52 capability: { 53 53 type: 'string', 54 default: '',54 default: FyeoBlockVars.default, 55 55 }, 56 56 dynamic: { 57 57 type: 'string', 58 default: '',58 default: FyeoBlockVars.dynamic, 59 59 }, 60 60 }, -
for-your-eyes-only/tags/1.1.3/vendor/composer/installed.php
r3167188 r3167201 2 2 'root' => array( 3 3 'name' => 'tarosky/for-your-eyes-only', 4 'pretty_version' => '1.1. 2',5 'version' => '1.1. 2.0',6 'reference' => ' f93d199afb54c6ccb8e017bbc0c5e54aba981a51',4 'pretty_version' => '1.1.3', 5 'version' => '1.1.3.0', 6 'reference' => '53862da51e1eaba29617b57585e8e9a86e1c10d4', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'tarosky/for-your-eyes-only' => array( 23 'pretty_version' => '1.1. 2',24 'version' => '1.1. 2.0',25 'reference' => ' f93d199afb54c6ccb8e017bbc0c5e54aba981a51',23 'pretty_version' => '1.1.3', 24 'version' => '1.1.3.0', 25 'reference' => '53862da51e1eaba29617b57585e8e9a86e1c10d4', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
for-your-eyes-only/tags/1.1.3/wp-dependencies.json
r3166983 r3167201 4 4 "path": "assets/js/block.js", 5 5 "ext": "js", 6 "hash": " bf51b2af331ab80d53c6bd15f6114b21",6 "hash": "a8c8d10210276250c6eeb764edbda151", 7 7 "version": "0.0.0", 8 8 "deps": [ -
for-your-eyes-only/trunk/app/Hametuha/ForYourEyesOnly.php
r3166983 r3167201 60 60 'capabilities' => $this->capability->capabilities_list(), 61 61 'default' => $this->capability->default_capability(), 62 'dynamic' => apply_filters( 'fyeo_default_render_style', '' ), 62 63 'placeholder' => $this->parser->tag_line(), 63 64 ] ); -
for-your-eyes-only/trunk/assets/js/block.js
r3166983 r3167201 1 (()=>{"use strict";const e=window.wp.element,{registerBlockType:l}=wp.blocks,{__}=wp.i18n,{Fragment:t}=wp.element,{InnerBlocks:a,InspectorControls: i}=wp.blockEditor,{PanelBody:o,SelectControl:n,RadioControl:s,TextareaControl:c}=wp.components,r=[];let y="";for(const e in FyeoBlockVars.capabilities)if(FyeoBlockVars.capabilities.hasOwnProperty(e)){let l=FyeoBlockVars.capabilities[e];e===FyeoBlockVars.default&&(l+=__("(Default)","fyeo"),y=l),r.push({value:e,label:l})}l("fyeo/block",{title:__("Restricted Block","fyeo"),icon:"hidden",category:"common",keywords:[__("Restricted","fyeo"),__("For Your Eyes Only","fyeo")],description:__("This block will be displayed only for specified users.","fyeo"),attributes:{tag_line:{type:"string",default:""},capability:{type:"string",default:""},dynamic:{type:"string",default:""}},edit:({attributes:l,className:p,setAttributes:d})=>(0,e.createElement)(t,null,(0,e.createElement)(i,null,(0,e.createElement)(o,{title:__("Visibility Setting","fyeo"),icon:"admin-users",initialOpen:!0},(0,e.createElement)(n,{label:__("Capability","fyeo"),value:l.capability,options:r,onChange:e=>{d({capability:e})},help:__("This block will be displayed only for users specified above.","fyeo")}),(0,e.createElement)("hr",null),(0,e.createElement)(s,{label:__("Rendering Style","fyeo"),selected:l.dynamic,options:[{label:__("Asynchronous(JavaScript + REST API)","fyeo"),value:""},{label:__("Dynamic(PHP)","fyeo"),value:"dynamic"}],onChange:e=>{d({dynamic:e})},help:__("If WordPress is under cache, Asynchronous is recommended.","fyeo")}),(0,e.createElement)("hr",null),(0,e.createElement)(c,{label:__("Tagline","fyeo"),value:l.tag_line,rows:5,placeholder:"e.g."+FyeoBlockVars.placeholder,onChange:e=>d({tag_line:e}),help:__("This instruction will be displayed to users who have no capability. %s will be replaced with login URL.","fyeo")}))),(0,e.createElement)("div",{className:p},(0,e.createElement)("span",{className:"wp-block-fyeo-block__label"},l.capability?r.filter((e=>l.capability===e.value)).map((e=>e.label)).join(" "):y),(0,e.createElement)(a,null))),save:()=>(0,e.createElement)(a.Content,null)})})();1 (()=>{"use strict";const e=window.wp.element,{registerBlockType:l}=wp.blocks,{__}=wp.i18n,{Fragment:t}=wp.element,{InnerBlocks:a,InspectorControls:o}=wp.blockEditor,{PanelBody:i,SelectControl:n,RadioControl:c,TextareaControl:s}=wp.components,r=[];let y="";for(const e in FyeoBlockVars.capabilities)if(FyeoBlockVars.capabilities.hasOwnProperty(e)){let l=FyeoBlockVars.capabilities[e];e===FyeoBlockVars.default&&(l+=__("(Default)","fyeo"),y=l),r.push({value:e,label:l})}l("fyeo/block",{title:__("Restricted Block","fyeo"),icon:"hidden",category:"common",keywords:[__("Restricted","fyeo"),__("For Your Eyes Only","fyeo")],description:__("This block will be displayed only for specified users.","fyeo"),attributes:{tag_line:{type:"string",default:""},capability:{type:"string",default:FyeoBlockVars.default},dynamic:{type:"string",default:FyeoBlockVars.dynamic}},edit:({attributes:l,className:p,setAttributes:d})=>(0,e.createElement)(t,null,(0,e.createElement)(o,null,(0,e.createElement)(i,{title:__("Visibility Setting","fyeo"),icon:"admin-users",initialOpen:!0},(0,e.createElement)(n,{label:__("Capability","fyeo"),value:l.capability,options:r,onChange:e=>{d({capability:e})},help:__("This block will be displayed only for users specified above.","fyeo")}),(0,e.createElement)("hr",null),(0,e.createElement)(c,{label:__("Rendering Style","fyeo"),selected:l.dynamic,options:[{label:__("Asynchronous(JavaScript + REST API)","fyeo"),value:""},{label:__("Dynamic(PHP)","fyeo"),value:"dynamic"}],onChange:e=>{d({dynamic:e})},help:__("If WordPress is under cache, Asynchronous is recommended.","fyeo")}),(0,e.createElement)("hr",null),(0,e.createElement)(s,{label:__("Tagline","fyeo"),value:l.tag_line,rows:5,placeholder:"e.g."+FyeoBlockVars.placeholder,onChange:e=>d({tag_line:e}),help:__("This instruction will be displayed to users who have no capability. %s will be replaced with login URL.","fyeo")}))),(0,e.createElement)("div",{className:p},(0,e.createElement)("span",{className:"wp-block-fyeo-block__label"},l.capability?r.filter((e=>l.capability===e.value)).map((e=>e.label)).join(" "):y),(0,e.createElement)(a,null))),save:()=>(0,e.createElement)(a.Content,null)})})(); -
for-your-eyes-only/trunk/for-your-eyes-only.php
r3167188 r3167201 6 6 Author: Tarosky INC. 7 7 Author URI: https://tarosky.co.jp 8 Version: 1.1. 28 Version: 1.1.3 9 9 Text Domain: fyeo 10 10 Domain Path: /languages/ -
for-your-eyes-only/trunk/readme.txt
r3167188 r3167201 5 5 Requires at least: 6.1 6 6 Tested up to: 6.6 7 Stable tag: 1.1. 27 Stable tag: 1.1.3 8 8 Requires PHP: 7.2 9 9 License: GPLv3 or later -
for-your-eyes-only/trunk/src/js/block.js
r3166983 r3167201 52 52 capability: { 53 53 type: 'string', 54 default: '',54 default: FyeoBlockVars.default, 55 55 }, 56 56 dynamic: { 57 57 type: 'string', 58 default: '',58 default: FyeoBlockVars.dynamic, 59 59 }, 60 60 }, -
for-your-eyes-only/trunk/vendor/composer/installed.php
r3167188 r3167201 2 2 'root' => array( 3 3 'name' => 'tarosky/for-your-eyes-only', 4 'pretty_version' => '1.1. 2',5 'version' => '1.1. 2.0',6 'reference' => ' f93d199afb54c6ccb8e017bbc0c5e54aba981a51',4 'pretty_version' => '1.1.3', 5 'version' => '1.1.3.0', 6 'reference' => '53862da51e1eaba29617b57585e8e9a86e1c10d4', 7 7 'type' => 'wordpress-plugin', 8 8 'install_path' => __DIR__ . '/../../', … … 21 21 ), 22 22 'tarosky/for-your-eyes-only' => array( 23 'pretty_version' => '1.1. 2',24 'version' => '1.1. 2.0',25 'reference' => ' f93d199afb54c6ccb8e017bbc0c5e54aba981a51',23 'pretty_version' => '1.1.3', 24 'version' => '1.1.3.0', 25 'reference' => '53862da51e1eaba29617b57585e8e9a86e1c10d4', 26 26 'type' => 'wordpress-plugin', 27 27 'install_path' => __DIR__ . '/../../', -
for-your-eyes-only/trunk/wp-dependencies.json
r3166983 r3167201 4 4 "path": "assets/js/block.js", 5 5 "ext": "js", 6 "hash": " bf51b2af331ab80d53c6bd15f6114b21",6 "hash": "a8c8d10210276250c6eeb764edbda151", 7 7 "version": "0.0.0", 8 8 "deps": [
Note: See TracChangeset
for help on using the changeset viewer.