Plugin Directory

Changeset 3350883


Ignore:
Timestamp:
08/27/2025 06:57:01 AM (6 months ago)
Author:
codoc
Message:

0.9.55

Location:
codoc
Files:
12 edited
29 copied

Legend:

Unmodified
Added
Removed
  • codoc/tags/0.9.55/codoc.php

    r3341929 r3350883  
    66Author:      codoc.jp
    77Author URI:  https://codoc.jp
    8 Version:     0.9.54.3
     8Version:     0.9.55
    99License:     GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 const CODOC_PLUGIN_VERSION        = '0.9.54.3';
     16const CODOC_PLUGIN_VERSION        = '0.9.55';
    1717const CODOC_URL                   = 'https://codoc.jp';
    1818const CODOC_USERCODE_OPTION_NAME  = 'codoc_usercode';
  • codoc/tags/0.9.55/dist/blocks.build.js

    r3304552 r3350883  
    1 !function(e){function t(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return e[o].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=n(2),a=(n.n(r),n(3)),s=(n.n(a),n(4)),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=wp.keycodes.ENTER,__=wp.i18n.__,p=wp.element.Component,d=wp.blocks.registerBlockType,f=wp.editor,b=f.InspectorControls,m=f.RichText,h=wp.components,w=h.SelectControl,y=h.PanelBody,v=h.ToggleControl,C=h.CheckboxControl,g=h.RangeControl,k=wp.blocks,E=k.getDefaultBlockName,S=k.createBlock,P=wp.compose.withState,_=OPTIONS.codoc_url,O=OPTIONS.codoc_usercode,x=OPTIONS.codoc_plugin_version,T=OPTIONS.codoc_account_is_pro,A=OPTIONS.codoc_currency_code,j=OPTIONS.codoc_currency_decimal_places,N=function(e){function t(e){o(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.subscriptionsFetched=[],n.fetchSubscriptions(),n}return i(t,e),c(t,[{key:"fetchSubscriptions",value:function(){var e=this,t=this.props,n=t.setAttributes;if(!t.attributes.fetching){n({fetching:!0});var o=_+"/api/v1/cms/"+O+"/subscriptions?without_token=1";fetch(o).then(function(e){return e.json()}).then(function(t){var o=[];if(t.status&&t.subscriptions)for(var l=0;l<t.subscriptions.length;l++){var i={value:t.subscriptions[l].code,label:t.subscriptions[l].title};o[l]=i}o.length&&(e.subscriptionsFetched=o),n({fetching:!1})})}}},{key:"getShowPriceHelp",value:function(e){return e?__("Enable","codoc"):__("Disable","codoc")}},{key:"getShowSupportHelp",value:function(e){return e?__("Accept","codoc"):__("Do not accept","codoc")}},{key:"getShowPaywalledSupportHelp",value:function(e){return e?__('The paid part will be hidden upon access, but will be displayed after tapping "Pay to Read". Viewers can freely specify the amount to purchase based on the content. Please note that there may be cases where it is not purchased.',"codoc"):__(" ")}},{key:"getStatusLimitedHelp",value:function(e){return e?__("Unlisted","codoc"):__("Published","codoc")}},{key:"render",value:function(){var e=this,t=this.props,n=t.setAttributes,o=t.attributes,l=o.showPrice,i=o.price,r=o.limited,a=o.limitedCount,s=o.affiliateMode,c=o.affiliateRate,u=o.showSupport,p=o.showPaywalledSupport,d=o.statusLimited,f=o.subscriptions,m=function(){return n({showPrice:!l})},h=function(){return n({limited:!r})},k=function(){return n({showPaywalledSupport:!p})},E=function(){return n({statusLimited:!d})},S=function(){return n({affiliateMode:!s})},O=function(){return n({showSupport:!u})},x=P({checked_obj:Object.assign({},f)})(function(t){var o=t.checked_obj,l=t.setState;return wp.element.createElement("ul",null,e.subscriptionsFetched.map(function(e){var t=!!o[e.value],i=Object.keys(o).length;return wp.element.createElement("li",{key:e.value},wp.element.createElement(C,{className:"check_items",label:e.label,checked:t,onChange:function(t){if(!(t&&i>=5)){var r=Object.assign({},o);t?r[e.value]=!0:delete r[e.value],n({subscriptions:r}),l({checked_obj:r})}}}))}))}),N=[{value:"0.0500",label:"5%"},{value:"0.1000",label:"10%"},{value:"0.1500",label:"15%"},{value:"0.2000",label:"20%"},{value:"0.2500",label:"25%"},{value:"0.3000",label:"30%"},{value:"0.3500",label:"35%"},{value:"0.4000",label:"40%"},{value:"0.4500",label:"45%"},{value:"0.5000",label:"50%"}];return wp.element.createElement(b,{key:"CodocControls"},wp.element.createElement(y,null,wp.element.createElement(v,{label:__("individual sale","codoc"),checked:!!l,help:this.getShowPriceHelp,ref:"showPrice",onChange:m}),wp.element.createElement("div",{style:{display:l?"initial":"none"}},wp.element.createElement(g,{label:__("price","codoc")+" "+(j>0?(i/100).toFixed(j):i)+" "+__(A)+__(p?"\u3010"+__("Displayed as the your suggested price","codoc")+"\u3011":""),value:i,initialPosition:i,onChange:function(e){n({price:e})},min:"100",max:1==T?1e5:5e4}),wp.element.createElement("br",null),wp.element.createElement(v,{label:__("Pay-what-you-want","codoc"),checked:!!p,help:this.getShowPaywalledSupportHelp,onChange:k}),wp.element.createElement("div",{style:{display:p?"none":"initial"}},wp.element.createElement(v,{label:__("Limited quantity sale","codoc"),checked:!!r,onChange:h}),wp.element.createElement("div",{style:{display:r?"initial":"none"}},wp.element.createElement(g,{label:__("Limited quantity","codoc"),value:a,onChange:function(e){n({limitedCount:e})},initialPosition:a,min:"0",max:"100"}),wp.element.createElement("br",null)),wp.element.createElement(v,{label:__("Affiliate","codoc"),checked:!!s,onChange:S}),wp.element.createElement("div",{style:{display:s?"initial":"none"}},wp.element.createElement(w,{label:__("Rate","codoc"),description:__("You can offer affiliate marketing at a specified rate for purchasers.","codoc"),options:N,value:c,onChange:function(e){n({affiliateRate:e})}}),wp.element.createElement("br",null)))),wp.element.createElement("div",{style:{display:p?"none":"initial"}},wp.element.createElement(v,{label:__("Tipping","codoc"),checked:!!u,value:"1",onChange:O,help:this.getShowSupportHelp})),wp.element.createElement("div",{style:{display:"initial"}},wp.element.createElement(v,{label:__("Unlisted","codoc"),checked:!!d,value:"1",onChange:E,help:this.getStatusLimitedHelp})),wp.element.createElement("div",{class:"codoc-subscription-title"},wp.element.createElement("label",null,__("Subscriptions","codoc")),wp.element.createElement("a",{href:_+"/me/subscriptions",target:"_blank",class:"codoc-subscription-add"},__("Add","codoc"))),wp.element.createElement(x,null)))}}]),t}(p),R=function(e){function t(){o(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.props.setAttributes({version:x}),e.props.setAttributes({showPrice:null==e.props.attributes.showPrice||e.props.attributes.showPrice}),e.props.setAttributes({price:null==e.props.attributes.price?500:e.props.attributes.price}),e.props.setAttributes({limited:null!=e.props.attributes.limited&&e.props.attributes.limited}),e.props.setAttributes({limitedCount:null==e.props.attributes.limitedCount?10:e.props.attributes.limitedCount}),e.props.setAttributes({affiliateMode:null!=e.props.attributes.affiliateMode&&e.props.attributes.affiliateMode}),e.props.setAttributes({affiliateRate:null==e.props.attributes.affiliateRate?"0.0500":e.props.attributes.affiliateRate}),e.props.setAttributes({showSupport:null!=e.props.attributes.showSupport&&e.props.attributes.showSupport}),e.props.setAttributes({showPaywalledSupport:null!=e.props.attributes.showPaywalledSupport&&e.props.attributes.showPaywalledSupport}),e.props.setAttributes({statusLimited:null!=e.props.attributes.statusLimited&&e.props.attributes.statusLimited}),e.props.setAttributes({subscriptions:null==e.props.attributes.subscriptions?{}:e.props.attributes.subscriptions}),e.onChangeInput=e.onChangeInput.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.state={defaultText:__("To continue reading, ...","codoc")},e}return i(t,e),c(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===u&&n([S(E())])}},{key:"render",value:function(){var e=this.props,t=e.attributes.customText,n=e.setAttributes,o=this.state.defaultText,l=t||o,i=l.length+10;return[wp.element.createElement(N,Object.assign({setAttributes:n},this.props)),wp.element.createElement("div",{className:"wp-block-more"},wp.element.createElement("input",{type:"text",value:l,size:i,onChange:this.onChangeInput,onKeyDown:this.onKeyDown}))]}}]),t}(p);d("codoc/codoc-block",{title:__("codoc","codoc"),description:__("The area from this block down is a paid area that only authenticated codoc users can view.","codoc"),icon:s.a,category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},keywords:[__("codoc Block","codoc"),__("plugin for codoc","codoc"),__("codoc-block","codoc")],attributes:{showPrice:{type:"boolean",default:null},price:{type:"number",default:null},limited:{type:"boolean",default:null},limitedCount:{type:"number",default:null},affiliateMode:{type:"boolean",default:null},affiliateRate:{type:"string",default:null},showSupport:{type:"boolean",default:null},showPaywalledSupport:{type:"boolean",default:null},statusLimited:{type:"boolean",default:null},subscriptions:{type:"object",default:null},customText:{type:"string",default:""},version:{type:"string",default:null}},edit:R,save:function(e){var t=(e.setAttributes,e.attributes.customText);return wp.element.createElement("div",{"data-id":"codoc-tag",className:"codoc-entries"},t&&!!t.length&&wp.element.createElement(m.Content,{value:t}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var o=n(5);n.n(o);t.a=wp.element.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"100%",viewBox:"0 0 256 256","enable-background":"new 0 0 256 256",xmlSpace:"preserve"},wp.element.createElement("path",{fill:"#ffffff",opacity:"1.000000",stroke:"none",d:"M141.000000,257.000000 C94.000000,257.000000 47.500004,257.000000 1.000006,257.000000 C1.000004,171.666672 1.000004,86.333351 1.000002,1.000018 C86.333321,1.000012 171.666641,1.000012 257.000000,1.000006 C257.000000,86.333313 257.000000,171.666626 257.000000,256.999969 C218.500000,257.000000 180.000000,257.000000 141.000000,257.000000 M146.503082,23.000164 C116.907616,22.080397 90.932098,31.832527 69.273537,51.527222 C43.720821,74.762970 31.318863,103.869339 33.861893,138.920883 C35.131977,156.427002 39.715271,172.783020 49.613323,187.221390 C76.307907,226.160965 114.954926,238.329178 159.853943,234.326080 C182.543427,232.303101 202.167206,222.083160 219.314758,207.096619 C222.639465,204.190887 222.785080,201.958481 219.541718,198.996063 C210.086426,190.359756 200.699310,181.646790 191.392899,172.850220 C185.639374,167.411880 185.677856,167.315521 179.461136,172.079407 C160.475082,186.628571 135.524796,187.942444 115.371788,175.056778 C97.697929,163.756256 89.467148,146.957764 90.253334,126.395493 C91.060989,105.271385 101.350311,89.188896 120.515396,79.896317 C141.850464,69.551582 162.308594,73.002220 181.405899,86.137695 C185.054901,88.647537 187.582901,89.016609 190.896500,85.704330 C199.132141,77.471970 207.729889,69.603195 216.037704,61.441307 C224.548111,53.080330 224.348465,52.176884 214.913849,44.925365 C195.019623,29.634516 172.687103,21.958462 146.503082,23.000164 z"}),wp.element.createElement("path",{fill:"#1B1D1F",opacity:"1.000000",stroke:"none",d:"M147.001526,23.000149 C172.687103,21.958462 195.019623,29.634516 214.913849,44.925365 C224.348465,52.176884 224.548111,53.080330 216.037704,61.441307 C207.729889,69.603195 199.132141,77.471970 190.896500,85.704330 C187.582901,89.016609 185.054901,88.647537 181.405899,86.137695 C162.308594,73.002220 141.850464,69.551582 120.515396,79.896317 C101.350311,89.188896 91.060989,105.271385 90.253334,126.395493 C89.467148,146.957764 97.697929,163.756256 115.371788,175.056778 C135.524796,187.942444 160.475082,186.628571 179.461136,172.079407 C185.677856,167.315521 185.639374,167.411880 191.392899,172.850220 C200.699310,181.646790 210.086426,190.359756 219.541718,198.996063 C222.785080,201.958481 222.639465,204.190887 219.314758,207.096619 C202.167206,222.083160 182.543427,232.303101 159.853943,234.326080 C114.954926,238.329178 76.307907,226.160965 49.613323,187.221390 C39.715271,172.783020 35.131977,156.427002 33.861893,138.920883 C31.318863,103.869339 43.720821,74.762970 69.273537,51.527222 C90.932098,31.832527 116.907616,22.080397 147.001526,23.000149 z"}))},function(e,t){e.exports=wp.components}]);
     1!function(e){function t(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return e[o].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=n(2),a=(n.n(r),n(3)),s=(n.n(a),n(4)),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=wp.keycodes.ENTER,__=wp.i18n.__,p=wp.element.Component,d=wp.blocks.registerBlockType,f=wp.editor,b=f.InspectorControls,m=f.RichText,h=wp.components,w=h.SelectControl,y=h.PanelBody,v=h.ToggleControl,C=h.CheckboxControl,g=h.RangeControl,k=wp.blocks,E=k.getDefaultBlockName,P=k.createBlock,S=wp.compose.withState,_=OPTIONS.codoc_url,O=OPTIONS.codoc_usercode,x=OPTIONS.codoc_plugin_version,T=OPTIONS.codoc_account_is_pro,A=OPTIONS.codoc_currency_code,j=OPTIONS.codoc_currency_decimal_places,N=function(e){function t(e){o(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.subscriptionsFetched=[],n.fetchSubscriptions(),n}return i(t,e),c(t,[{key:"fetchSubscriptions",value:function(){var e=this,t=this.props,n=t.setAttributes;if(!t.attributes.fetching){n({fetching:!0});var o=_+"/api/v1/cms/"+O+"/subscriptions?without_token=1";fetch(o).then(function(e){return e.json()}).then(function(t){var o=[];if(t.status&&t.subscriptions)for(var l=0;l<t.subscriptions.length;l++){var i={value:t.subscriptions[l].code,label:t.subscriptions[l].title};o[l]=i}o.length&&(e.subscriptionsFetched=o),n({fetching:!1})})}}},{key:"getShowPriceHelp",value:function(e){return e?__("Enable","codoc"):__("Disable","codoc")}},{key:"getShowSupportHelp",value:function(e){return e?__("Accept","codoc"):__("Do not accept","codoc")}},{key:"getShowPaywalledSupportHelp",value:function(e){return e?__('The paid part will be hidden upon access, but will be displayed after tapping "Pay to Read". Viewers can freely specify the amount to purchase based on the content. Please note that there may be cases where it is not purchased.',"codoc"):__(" ")}},{key:"getStatusLimitedHelp",value:function(e){return e?__("Unlisted","codoc"):__("Published","codoc")}},{key:"render",value:function(){var e=this,t=this.props,n=t.setAttributes,o=t.attributes,l=o.showPrice,i=o.price,r=o.limited,a=o.limitedCount,s=o.affiliateMode,c=o.affiliateRate,u=o.showSupport,p=o.showPaywalledSupport,d=o.statusLimited,f=o.subscriptions,m=function(){return n({showPrice:!l})},h=function(){return n({limited:!r})},k=function(){return n({showPaywalledSupport:!p})},E=function(){return n({statusLimited:!d})},P=function(){return n({affiliateMode:!s})},O=function(){return n({showSupport:!u})},x=S({checked_obj:Object.assign({},f)})(function(t){var o=t.checked_obj,l=t.setState;return wp.element.createElement("ul",null,e.subscriptionsFetched.map(function(e){var t=!!o[e.value],i=Object.keys(o).length;return wp.element.createElement("li",{key:e.value},wp.element.createElement(C,{className:"check_items",label:e.label,checked:t,onChange:function(t){if(!(t&&i>=5)){var r=Object.assign({},o);t?r[e.value]=!0:delete r[e.value],n({subscriptions:r}),l({checked_obj:r})}}}))}))}),N=[{value:"0.0500",label:"5%"},{value:"0.1000",label:"10%"},{value:"0.1500",label:"15%"},{value:"0.2000",label:"20%"},{value:"0.2500",label:"25%"},{value:"0.3000",label:"30%"},{value:"0.3500",label:"35%"},{value:"0.4000",label:"40%"},{value:"0.4500",label:"45%"},{value:"0.5000",label:"50%"}];return wp.element.createElement(b,{key:"CodocControls"},wp.element.createElement(y,null,wp.element.createElement(v,{label:__("individual sale","codoc"),checked:!!l,help:this.getShowPriceHelp,ref:"showPrice",onChange:m}),wp.element.createElement("div",{style:{display:l?"initial":"none"}},wp.element.createElement(g,{label:__("price","codoc")+" "+(j>0?(i/100).toFixed(j):i)+" "+__(A)+__(p?"\u3010"+__("Displayed as the your suggested price","codoc")+"\u3011":""),value:i,initialPosition:i,onChange:function(e){n({price:e})},min:"100",max:1==T?1e5:5e4}),wp.element.createElement("br",null),wp.element.createElement(v,{label:__("Pay-what-you-want","codoc"),checked:!!p,help:this.getShowPaywalledSupportHelp,onChange:k}),wp.element.createElement("div",{style:{display:p?"none":"initial"}},wp.element.createElement(v,{label:__("Limited quantity sale","codoc"),checked:!!r,onChange:h}),wp.element.createElement("div",{style:{display:r?"initial":"none"}},wp.element.createElement(g,{label:__("Limited quantity","codoc"),value:a,onChange:function(e){n({limitedCount:e})},initialPosition:a,min:"0",max:"100"}),wp.element.createElement("br",null)),wp.element.createElement(v,{label:__("Affiliate","codoc"),checked:!!s,onChange:P}),wp.element.createElement("div",{style:{display:s?"initial":"none"}},wp.element.createElement(w,{label:__("Rate","codoc"),description:__("You can offer affiliate marketing at a specified rate for purchasers.","codoc"),options:N,value:c,onChange:function(e){n({affiliateRate:e})}}),wp.element.createElement("br",null)))),wp.element.createElement("div",{style:{display:p?"none":"initial"}},wp.element.createElement(v,{label:__("Tipping","codoc"),checked:!!u,value:"1",onChange:O,help:this.getShowSupportHelp})),wp.element.createElement("div",{style:{display:"initial"}},wp.element.createElement(v,{label:__("Unlisted","codoc"),checked:!!d,value:"1",onChange:E,help:this.getStatusLimitedHelp})),wp.element.createElement("div",{class:"codoc-subscription-title"},wp.element.createElement("label",null,__("Reader Plans","codoc")),wp.element.createElement("a",{href:_+"/me/subscriptions",target:"_blank",class:"codoc-subscription-add"},__("Add","codoc"))),wp.element.createElement(x,null)))}}]),t}(p),R=function(e){function t(){o(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.props.setAttributes({version:x}),e.props.setAttributes({showPrice:null==e.props.attributes.showPrice||e.props.attributes.showPrice}),e.props.setAttributes({price:null==e.props.attributes.price?500:e.props.attributes.price}),e.props.setAttributes({limited:null!=e.props.attributes.limited&&e.props.attributes.limited}),e.props.setAttributes({limitedCount:null==e.props.attributes.limitedCount?10:e.props.attributes.limitedCount}),e.props.setAttributes({affiliateMode:null!=e.props.attributes.affiliateMode&&e.props.attributes.affiliateMode}),e.props.setAttributes({affiliateRate:null==e.props.attributes.affiliateRate?"0.0500":e.props.attributes.affiliateRate}),e.props.setAttributes({showSupport:null!=e.props.attributes.showSupport&&e.props.attributes.showSupport}),e.props.setAttributes({showPaywalledSupport:null!=e.props.attributes.showPaywalledSupport&&e.props.attributes.showPaywalledSupport}),e.props.setAttributes({statusLimited:null!=e.props.attributes.statusLimited&&e.props.attributes.statusLimited}),e.props.setAttributes({subscriptions:null==e.props.attributes.subscriptions?{}:e.props.attributes.subscriptions}),e.onChangeInput=e.onChangeInput.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.state={defaultText:__("To continue reading, ...","codoc")},e}return i(t,e),c(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===u&&n([P(E())])}},{key:"render",value:function(){var e=this.props,t=e.attributes.customText,n=e.setAttributes,o=this.state.defaultText,l=t||o,i=l.length+10;return[wp.element.createElement(N,Object.assign({setAttributes:n},this.props)),wp.element.createElement("div",{className:"wp-block-more"},wp.element.createElement("input",{type:"text",value:l,size:i,onChange:this.onChangeInput,onKeyDown:this.onKeyDown}))]}}]),t}(p);d("codoc/codoc-block",{title:__("codoc","codoc"),description:__("The area from this block down is a paid area that only authenticated codoc users can view.","codoc"),icon:s.a,category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},keywords:[__("codoc Block","codoc"),__("plugin for codoc","codoc"),__("codoc-block","codoc")],attributes:{showPrice:{type:"boolean",default:null},price:{type:"number",default:null},limited:{type:"boolean",default:null},limitedCount:{type:"number",default:null},affiliateMode:{type:"boolean",default:null},affiliateRate:{type:"string",default:null},showSupport:{type:"boolean",default:null},showPaywalledSupport:{type:"boolean",default:null},statusLimited:{type:"boolean",default:null},subscriptions:{type:"object",default:null},customText:{type:"string",default:""},version:{type:"string",default:null}},edit:R,save:function(e){var t=(e.setAttributes,e.attributes.customText);return wp.element.createElement("div",{"data-id":"codoc-tag",className:"codoc-entries"},t&&!!t.length&&wp.element.createElement(m.Content,{value:t}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var o=n(5);n.n(o);t.a=wp.element.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"100%",viewBox:"0 0 256 256","enable-background":"new 0 0 256 256",xmlSpace:"preserve"},wp.element.createElement("path",{fill:"#ffffff",opacity:"1.000000",stroke:"none",d:"M141.000000,257.000000 C94.000000,257.000000 47.500004,257.000000 1.000006,257.000000 C1.000004,171.666672 1.000004,86.333351 1.000002,1.000018 C86.333321,1.000012 171.666641,1.000012 257.000000,1.000006 C257.000000,86.333313 257.000000,171.666626 257.000000,256.999969 C218.500000,257.000000 180.000000,257.000000 141.000000,257.000000 M146.503082,23.000164 C116.907616,22.080397 90.932098,31.832527 69.273537,51.527222 C43.720821,74.762970 31.318863,103.869339 33.861893,138.920883 C35.131977,156.427002 39.715271,172.783020 49.613323,187.221390 C76.307907,226.160965 114.954926,238.329178 159.853943,234.326080 C182.543427,232.303101 202.167206,222.083160 219.314758,207.096619 C222.639465,204.190887 222.785080,201.958481 219.541718,198.996063 C210.086426,190.359756 200.699310,181.646790 191.392899,172.850220 C185.639374,167.411880 185.677856,167.315521 179.461136,172.079407 C160.475082,186.628571 135.524796,187.942444 115.371788,175.056778 C97.697929,163.756256 89.467148,146.957764 90.253334,126.395493 C91.060989,105.271385 101.350311,89.188896 120.515396,79.896317 C141.850464,69.551582 162.308594,73.002220 181.405899,86.137695 C185.054901,88.647537 187.582901,89.016609 190.896500,85.704330 C199.132141,77.471970 207.729889,69.603195 216.037704,61.441307 C224.548111,53.080330 224.348465,52.176884 214.913849,44.925365 C195.019623,29.634516 172.687103,21.958462 146.503082,23.000164 z"}),wp.element.createElement("path",{fill:"#1B1D1F",opacity:"1.000000",stroke:"none",d:"M147.001526,23.000149 C172.687103,21.958462 195.019623,29.634516 214.913849,44.925365 C224.348465,52.176884 224.548111,53.080330 216.037704,61.441307 C207.729889,69.603195 199.132141,77.471970 190.896500,85.704330 C187.582901,89.016609 185.054901,88.647537 181.405899,86.137695 C162.308594,73.002220 141.850464,69.551582 120.515396,79.896317 C101.350311,89.188896 91.060989,105.271385 90.253334,126.395493 C89.467148,146.957764 97.697929,163.756256 115.371788,175.056778 C135.524796,187.942444 160.475082,186.628571 179.461136,172.079407 C185.677856,167.315521 185.639374,167.411880 191.392899,172.850220 C200.699310,181.646790 210.086426,190.359756 219.541718,198.996063 C222.785080,201.958481 222.639465,204.190887 219.314758,207.096619 C202.167206,222.083160 182.543427,232.303101 159.853943,234.326080 C114.954926,238.329178 76.307907,226.160965 49.613323,187.221390 C39.715271,172.783020 35.131977,156.427002 33.861893,138.920883 C31.318863,103.869339 43.720821,74.762970 69.273537,51.527222 C90.932098,31.832527 116.907616,22.080397 147.001526,23.000149 z"}))},function(e,t){e.exports=wp.components}]);
  • codoc/tags/0.9.55/dist/blocks.editor.build.css

    r2413012 r3350883  
    1 .wp-block-cgb-block-wordpress{background:#bada55;border:0.2rem solid #292929;color:#292929;margin:0 auto;max-width:740px;padding:2rem}.wp-block-codoc-border{background:#bada55;border:0.2rem solid #292929;color:#292929;text-align:center;padding:2rem}.components-range-control__number{width:70px}.codoc-subscription-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.codoc-subscription-add{position:relative;display:inline-block;padding:2px 10px 2px 23px;margin-left:10px;background:#0073aa;color:#fff;font-size:11px;text-decoration:none;border-radius:3px}.codoc-subscription-add:hover{background:#0070a7;color:#efefef}.codoc-subscription-add:before{position:absolute;top:50%;left:7px;display:block;content:"";width:10px;height:1px;margin-top:-1px;background:#fff}.codoc-subscription-add:after{position:absolute;top:50%;left:7px;display:block;content:"";width:10px;height:1px;margin-top:-1px;background:#fff;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}
     1/**
     2 * #.# Common SCSS
     3 *
     4 * Can include things like variables and mixins
     5 * that are used across the project.
     6*/
     7/**
     8 * #.# Editor Styles
     9 *
     10 * CSS for just Backend enqueued after style.scss
     11 * which makes it higher in priority.
     12 */
     13.wp-block-cgb-block-wordpress {
     14  background: #bada55;
     15  border: 0.2rem solid rgb(41, 41, 41);
     16  color: rgb(41, 41, 41);
     17  margin: 0 auto;
     18  max-width: 740px;
     19  padding: 2rem;
     20}
     21
     22.wp-block-codoc-border {
     23  background: #bada55;
     24  border: 0.2rem solid rgb(41, 41, 41);
     25  color: rgb(41, 41, 41);
     26  text-align: center;
     27  padding: 2rem;
     28}
     29
     30.components-range-control__number {
     31  width: 70px;
     32}
     33
     34.codoc-subscription-title {
     35  display: -ms-flexbox;
     36  display: flex;
     37  -ms-flex-pack: justify;
     38      justify-content: space-between;
     39}
     40
     41.codoc-subscription-add {
     42  position: relative;
     43  display: inline-block;
     44  padding: 2px 10px 2px 23px;
     45  margin-left: 10px;
     46  background: #0073aa;
     47  color: #fff;
     48  font-size: 11px;
     49  text-decoration: none;
     50  border-radius: 3px;
     51}
     52
     53.codoc-subscription-add:hover {
     54  background: #0070a7;
     55  color: #efefef;
     56}
     57
     58.codoc-subscription-add:before {
     59  position: absolute;
     60  top: 50%;
     61  left: 7px;
     62  display: block;
     63  content: "";
     64  width: 10px;
     65  height: 1px;
     66  margin-top: -1px;
     67  background: #fff;
     68}
     69
     70.codoc-subscription-add:after {
     71  position: absolute;
     72  top: 50%;
     73  left: 7px;
     74  display: block;
     75  content: "";
     76  width: 10px;
     77  height: 1px;
     78  margin-top: -1px;
     79  background: #fff;
     80  -webkit-transform: rotate(90deg);
     81      -ms-transform: rotate(90deg);
     82          transform: rotate(90deg);
     83}
  • codoc/tags/0.9.55/dist/blocks.style.build.css

    r2141582 r3350883  
    1 .wp-block-cgb-block-wordpress{background:#ff4500;border:0.2rem solid #292929;color:#292929;margin:0 auto;max-width:740px;padding:2rem}
     1/**
     2 * #.# Common SCSS
     3 *
     4 * Can include things like variables and mixins
     5 * that are used across the project.
     6*/
     7/**
     8 * #.# Styles
     9 *
     10 * CSS for both Frontend+Backend.
     11 */
     12.wp-block-cgb-block-wordpress {
     13  background: orangered;
     14  border: 0.2rem solid rgb(41, 41, 41);
     15  color: rgb(41, 41, 41);
     16  margin: 0 auto;
     17  max-width: 740px;
     18  padding: 2rem;
     19}
  • codoc/tags/0.9.55/languages/codoc-ja-codoc-block-js.json

    r3298415 r3350883  
    1 {"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja"},"codoc Settings":["codoc設定"],"Theme":["テーマ"],"You can change the design of the paywall by specifying a theme.<br />You can also specify CSS directly by selecting \"Path Specification\"":["テーマを変更するとペイウォールのデザインを変更できます。<br />「パス指定」を選択してCSSを直接指定することもできます。"],"Rainbow colors":["レインボーカラー"],"Blue":["青"],"Red":["赤"],"Green":["緑"],"Black":["黒"],"Dark mode":["ダークモード"],"Rainbow Colors / Square design":["レインボーカラー / スクエアデザイン"],"Blue / Square design":["ブルー / スクエアデザイン"],"Red / Square design":["レッド / スクエアデザイン"],"Green / Square design":["グリーン / スクエアデザイン"],"Black / Square design":["ブラック / スクエアデザイン"],"Dark mode / Square design":["ダークモード / スクエアデザイン"],"Path Specification":["パス指定"],"Please note that the theme for dark mode has white text color, and depending on the background color, the text may not be visible.":["ダークモードはテキストの色が白となります。背景色によってはテキストが表示されない場合がありますのでご注意ください。"],"Texts in paywall":["ペイウォールのテキスト"],"You can change, show and hide texts in your paywall.":["ペイウォールのテキストを変更、表示、非表示にすることができます。"],"Display of likes":["いいねの表示"],"Enable":["有効"],"Disable":["無効"],"Display of PoweredBy":["Powered byの表示"],"Only PRO accounts can be disabled.":["無効にできるのは PRO アカウントのみです。"],"\"Purchase Article\" button text":["「購入」ボタンのテキスト"],"\"Purchase Subscription\" button text.":["サブスクリプション「購入」ボタンのテキスト。"],"Support button text":["サポートボタンのテキスト"],"Text for \"Articles Included in Subscription\".":["「購読に含まれる記事」のテキスト"],"Text for support description":["サポートの説明のテキスト"],"Attributes for codoc tag":["codoc タグの属性"],"You can add specific attributes to codoc tags.":["codoc タグに特定の属性を追加できます。"],"Attributes for codoc script tag":["codoc スクリプトタグの属性"],"You can add specific attributes to codoc script tags.":["codoc スクリプトタグに特定の属性を追加できます。"],"Permalink":["パーマリンク"],"You can replace the part of permalink registered on the codoc.":["codocに登録されているパーマリンクの一部を置換できます。"],"HTML insertion":["HTML の挿入"],"You can insert HTML before and after the codoc tag.":["codoc タグの前後に HTML を挿入できます。"],"Before HTML":["HTML の前"],"After HTML":["HTML の後"],"Automatic support insertion":["サポートの自動挿入"],"It adds support functions to the post without inserting a codoc block.":["codoc ブロックの挿入をしなくても投稿へサポート機能を追加できます。"],"Automatic insertion":["自動挿入"],"Position":["位置"],"TOP":["上"],"Bottom":["下"],"Description":["説明"],"You can customize the description of the support.":["サポートの説明をカスタマイズできます。"],"Category names":["カテゴリ名"],"Inserted into articles of categories, divided by &quot;|&quot;":["&quot;|&quot; 区切りのカテゴリ名"],"Disable plugin filter":["プラグインフィルターを無効にする"],"You can disable filter processing that includes shortcodes from other plugins that interfere with the operation of codoc. Please use this only if codoc is not functioning properly.":["codoc の動作を妨げる他のプラグインからの (ショートコードを含む) フィルタ処理を無効にすることができます。codoc が正しく機能していない場合にのみ使用してください。"],"Shortcode evacuation":["ショートコードの待避"],"The execution results of shortcodes written in the paid part are moved to the free part, and are used and displayed on the HTML during viewing of the paid part. Please use this if the shortcode does not work as expected in the paid part. Please note that the execution results of shortcodes in the paid part will be written in the source code.":["有料部分に記述されたショートコードの実行結果を無料部分に退避、有料部分の閲覧時に HTML 上で使用・表示されます。有料部分でショートコードが期待通りに機能しない場合は、こちらをご利用ください。有料部分のショートコードの実行結果はソースコードに書き込まれますのでご注意ください。"],"Debug Parameters":["デバックパラメーター"],"You can specify parameters for debugging. Please use this only upon request from codoc support.":["デバック用のパラメーターを指定できます。codoc サポートからの要求がある場合にのみ使用してください。"],"Creator's Information":["クリエイター情報"],"Please save changes to update the information.":["変更を保存して情報を更新してください。"],"Extensions integration completed (Extensions code: %1$s) %2$s":["拡張機能の連携完了 (拡張機能コード: %1$s) %2$s"],"Set the audience as a private account.":["オーディエンスをプライベートアカウントとして設定します。"],"Update creator's Information":["クリエイター情報の更新"],"Please update each time if you change the logo or cover image on the codoc side.":["codoc 側でロゴや表紙画像を変更した場合は、その都度更新してください。"],"codoc authentication has been completed.":["codoc の認証が完了しました。"],"Authentication":["認証"],"Please save changes to complete the unbinding.":["変更を保存して連携解除を完了してください。"],"Authorized as %s":["%sとして認証"],"Unbind authorization":["連携解除"],"The authentication information has been obtained. Please click the confirmation button to complete the setup.":["認証情報を取得しました。設定を完了させるために確認ボタンを押下してください。"],"Confirm authentication":["認証を確認"],"Authentication is required to use codoc on WordPress.":["codocを使うには認証が必要です。"],"You can authenticate by directly entering the user code and API token, or by logging in and registering with codoc.":["ユーザーコードと API トークンを直接入力するか、ログインもしくは登録を行うことで認証を行えます。"],"Authenticate by direct input":["直接入力して認証"],"Login and authenticate":["ログインして認証"],"Register and authenticate":["登録して認証"],"Please enable %s and enable &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; on the settings screen.":["%sを有効にし、設定画面にて &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; を有効にしてください。"],"Please enable &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; on the %s settings screen.":["%sの設定画面にて &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; を有効にしてください。"],"Accept":["受け付ける"],"Do not accept":["受け付けない"],"The paid part will be hidden upon access, but will be displayed after tapping \"Pay to Read\". Viewers can freely specify the amount to purchase based on the content. Please note that there may be cases where it is not purchased.":["このブロックから下のブロックは認証された codoc ユーザーのみが閲覧できる有料エリアとなります。"]," ":[""],"Unlisted":["限定公開"],"Published":["公開"],"individual sale":["単体販売"],"price":["価格"],"Displayed as the your suggested price":["希望価格として標示"],"【":[""],"Pay-what-you-want":["自由課金"],"Limited quantity sale":["限定販売"],"Limited quantity":["限定数"],"Affiliate":["アフィリエイト"],"Rate":["料率"],"You can offer affiliate marketing at a specified rate for purchasers.":["購入者を対象に指定した料率でアフィリエイトをオファーできます。"],"Tipping":["サポート"],"Subscriptions":["サブスクリプション"],"Add":["追加"],"To continue reading, ...":["この続きをみるには"],"codoc":["codoc"],"The area from this block down is a paid area that only authenticated codoc users can view.":["このブロックから下のブロックは認証された codoc ユーザーのみが閲覧できる有料エリアとなります。"],"codoc Block":["codoc ブロック"],"plugin for codoc":["codoc プラグイン"],"codoc-block":[""],"https://plugins.svn.wordpress.org/codoc/":["https://plugins.svn.wordpress.org/codoc/"],"A WordPress plugin for monetizing websites by enabling paid articles, subscriptions(memberships), and tipping.":["有料記事、サブスクリプション (マガジン・メンバーシップ)、投げ銭を導入できる WordPress プラグイン。"],"codoc.jp":["codoc.jp"],"https://codoc.jp":["https://codoc.jp"]}}}
     1{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja"},"codoc Settings":["codoc設定"],"Theme":["テーマ"],"You can change the design of the paywall by specifying a theme.<br />You can also specify CSS directly by selecting \"Path Specification\"":["テーマを変更するとペイウォールのデザインを変更できます。<br />「パス指定」を選択してCSSを直接指定することもできます。"],"Rainbow colors":["レインボーカラー"],"Blue":["青"],"Red":["赤"],"Green":["緑"],"Black":["黒"],"Dark mode":["ダークモード"],"Rainbow Colors / Square design":["レインボーカラー / スクエアデザイン"],"Blue / Square design":["ブルー / スクエアデザイン"],"Red / Square design":["レッド / スクエアデザイン"],"Green / Square design":["グリーン / スクエアデザイン"],"Black / Square design":["ブラック / スクエアデザイン"],"Dark mode / Square design":["ダークモード / スクエアデザイン"],"Path Specification":["パス指定"],"Please note that the theme for dark mode has white text color, and depending on the background color, the text may not be visible.":["ダークモードはテキストの色が白となります。背景色によってはテキストが表示されない場合がありますのでご注意ください。"],"Texts in paywall":["ペイウォールのテキスト"],"You can change, show and hide texts in your paywall.":["ペイウォールのテキストを変更、表示、非表示にすることができます。"],"Display of likes":["いいねの表示"],"Enable":["有効"],"Disable":["無効"],"Display of PoweredBy":["Powered byの表示"],"Only PRO accounts can be disabled.":["無効にできるのは PRO アカウントのみです。"],"\"Purchase Article\" button text":["「購入」ボタンのテキスト"],"\"Purchase Subscription\" button text.":["サブスクリプション「購入」ボタンのテキスト。"],"Support button text":["サポートボタンのテキスト"],"Text for \"Articles Included in Subscription\".":["「購読に含まれる記事」のテキスト"],"Text for support description":["サポートの説明のテキスト"],"Attributes for codoc tag":["codoc タグの属性"],"You can add specific attributes to codoc tags.":["codoc タグに特定の属性を追加できます。"],"Attributes for codoc script tag":["codoc スクリプトタグの属性"],"You can add specific attributes to codoc script tags.":["codoc スクリプトタグに特定の属性を追加できます。"],"Permalink":["パーマリンク"],"You can replace the part of permalink registered on the codoc.":["codocに登録されているパーマリンクの一部を置換できます。"],"HTML insertion":["HTML の挿入"],"You can insert HTML before and after the codoc tag.":["codoc タグの前後に HTML を挿入できます。"],"Before HTML":["HTML の前"],"After HTML":["HTML の後"],"Automatic support insertion":["サポートの自動挿入"],"It adds support functions to the post without inserting a codoc block.":["codoc ブロックの挿入をしなくても投稿へサポート機能を追加できます。"],"Automatic insertion":["自動挿入"],"Position":["位置"],"TOP":["上"],"Bottom":["下"],"Description":["説明"],"You can customize the description of the support.":["サポートの説明をカスタマイズできます。"],"Category names":["カテゴリ名"],"Inserted into articles of categories, divided by &quot;|&quot;":["&quot;|&quot; 区切りのカテゴリ名"],"Disable plugin filter":["プラグインフィルターを無効にする"],"You can disable filter processing that includes shortcodes from other plugins that interfere with the operation of codoc. Please use this only if codoc is not functioning properly.":["codoc の動作を妨げる他のプラグインからの (ショートコードを含む) フィルタ処理を無効にすることができます。codoc が正しく機能していない場合にのみ使用してください。"],"Shortcode evacuation":["ショートコードの待避"],"The execution results of shortcodes written in the paid part are moved to the free part, and are used and displayed on the HTML during viewing of the paid part. Please use this if the shortcode does not work as expected in the paid part. Please note that the execution results of shortcodes in the paid part will be written in the source code.":["有料部分に記述されたショートコードの実行結果を無料部分に退避、有料部分の閲覧時に HTML 上で使用・表示されます。有料部分でショートコードが期待通りに機能しない場合は、こちらをご利用ください。有料部分のショートコードの実行結果はソースコードに書き込まれますのでご注意ください。"],"Debug Parameters":["デバックパラメーター"],"You can specify parameters for debugging. Please use this only upon request from codoc support.":["デバック用のパラメーターを指定できます。codoc サポートからの要求がある場合にのみ使用してください。"],"Creator's Information":["クリエイター情報"],"Please save changes to update the information.":["変更を保存して情報を更新してください。"],"Extensions integration completed (Extensions code: %1$s) %2$s":["拡張機能の連携完了 (拡張機能コード: %1$s) %2$s"],"Set the audience as a private account.":["オーディエンスをプライベートアカウントとして設定します。"],"Update creator's Information":["クリエイター情報の更新"],"Please update each time if you change the logo or cover image on the codoc side.":["codoc 側でロゴや表紙画像を変更した場合は、その都度更新してください。"],"codoc authentication has been completed.":["codoc の認証が完了しました。"],"Authentication":["認証"],"Please save changes to complete the unbinding.":["変更を保存して連携解除を完了してください。"],"Authorized as %s":["%sとして認証"],"Unbind authorization":["連携解除"],"The authentication information has been obtained. Please click the confirmation button to complete the setup.":["認証情報を取得しました。設定を完了させるために確認ボタンを押下してください。"],"Confirm authentication":["認証を確認"],"Authentication is required to use codoc on WordPress.":["codocを使うには認証が必要です。"],"You can authenticate by directly entering the user code and API token, or by logging in and registering with codoc.":["ユーザーコードと API トークンを直接入力するか、ログインもしくは登録を行うことで認証を行えます。"],"Authenticate by direct input":["直接入力して認証"],"Login and authenticate":["ログインして認証"],"Register and authenticate":["登録して認証"],"Please enable %s and enable &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; on the settings screen.":["%sを有効にし、設定画面にて &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; を有効にしてください。"],"Please enable &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; on the %s settings screen.":["%sの設定画面にて &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; を有効にしてください。"],"Accept":["受け付ける"],"Do not accept":["受け付けない"],"The paid part will be hidden upon access, but will be displayed after tapping \"Pay to Read\". Viewers can freely specify the amount to purchase based on the content. Please note that there may be cases where it is not purchased.":["このブロックから下のブロックは認証された codoc ユーザーのみが閲覧できる有料エリアとなります。"]," ":[""],"Unlisted":["限定公開"],"Published":["公開"],"individual sale":["単体販売"],"price":["価格"],"Displayed as the your suggested price":["希望価格として標示"],"【":[""],"Pay-what-you-want":["自由課金"],"Limited quantity sale":["限定販売"],"Limited quantity":["限定数"],"Affiliate":["アフィリエイト"],"Rate":["料率"],"You can offer affiliate marketing at a specified rate for purchasers.":["購入者を対象に指定した料率でアフィリエイトをオファーできます。"],"Tipping":["チップ"],"Reader Plans":["購読プラン"],"Add":["追加"],"To continue reading, ...":["この続きをみるには"],"codoc":["codoc"],"The area from this block down is a paid area that only authenticated codoc users can view.":["このブロックから下のブロックは認証された codoc ユーザーのみが閲覧できる有料エリアとなります。"],"codoc Block":["codoc ブロック"],"plugin for codoc":["codoc プラグイン"],"codoc-block":[""],"https://plugins.svn.wordpress.org/codoc/":["https://plugins.svn.wordpress.org/codoc/"],"A WordPress plugin for monetizing websites by enabling paid articles, subscriptions(memberships), and tipping.":["有料記事、サブスクリプション (マガジン・メンバーシップ)、投げ銭を導入できる WordPress プラグイン。"],"codoc.jp":["codoc.jp"],"https://codoc.jp":["https://codoc.jp"]}}}
  • codoc/tags/0.9.55/languages/codoc-ja.po

    r3298415 r3350883  
    33"Project-Id-Version: Codestar Framework 2.2.1\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-05-22 12:24+0900\n"
     5"POT-Creation-Date: 2025-08-27 15:01+0900\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: \n"
     
    1515"X-Generator: Poedit 3.5\n"
    1616
    17 #: class-codoc.php:320
     17#: class-codoc.php:171 class-codoc.php:320
    1818msgid "codoc Settings"
    1919msgstr "codoc設定"
     
    347347msgstr "登録して認証"
    348348
     349#: class-codoc.php:772
     350#, fuzzy
     351#| msgid "codoc Settings"
     352msgid "Settings"
     353msgstr "codoc設定"
     354
    349355#: class-codoc.php:1095
    350356#, php-format
     
    387393msgstr ""
    388394
    389 #: src/block/block.js:108 src/block/block.js:258
     395#: src/block/block.js:108 src/block/block.js:276
    390396msgid "Unlisted"
    391397msgstr "限定公開"
     
    395401msgstr "公開"
    396402
    397 #: src/block/block.js:178
     403#: src/block/block.js:196
    398404msgid "individual sale"
    399405msgstr "単体販売"
    400406
    401 #: src/block/block.js:187
     407#: src/block/block.js:205
    402408msgid "price"
    403409msgstr "価格"
    404410
    405 #: src/block/block.js:187
     411#: src/block/block.js:205
    406412msgid "Displayed as the your suggested price"
    407413msgstr "希望価格として標示"
    408414
    409 #: src/block/block.js:187
     415#: src/block/block.js:205
    410416msgid "【"
    411417msgstr ""
    412418
    413 #: src/block/block.js:199
     419#: src/block/block.js:217
    414420msgid "Pay-what-you-want"
    415421msgstr "自由課金"
    416422
    417 #: src/block/block.js:207
     423#: src/block/block.js:225
    418424msgid "Limited quantity sale"
    419425msgstr "限定販売"
    420426
    421 #: src/block/block.js:214
     427#: src/block/block.js:232
    422428msgid "Limited quantity"
    423429msgstr "限定数"
    424430
    425 #: src/block/block.js:227
     431#: src/block/block.js:245
    426432msgid "Affiliate"
    427433msgstr "アフィリエイト"
    428434
    429 #: src/block/block.js:234
     435#: src/block/block.js:252
    430436msgid "Rate"
    431437msgstr "料率"
    432438
    433 #: src/block/block.js:235
     439#: src/block/block.js:253
    434440msgid "You can offer affiliate marketing at a specified rate for purchasers."
    435441msgstr "購入者を対象に指定した料率でアフィリエイトをオファーできます。"
    436442
    437 #: src/block/block.js:248
     443#: src/block/block.js:266
    438444msgid "Tipping"
    439 msgstr "サポート"
    440 
    441 #: src/block/block.js:268
    442 msgid "Subscriptions"
    443 msgstr "サブスクリプション"
    444 
    445 #: src/block/block.js:274
     445msgstr "チップ"
     446
     447#: src/block/block.js:286
     448msgid "Reader Plans"
     449msgstr "購読プラン"
     450
     451#: src/block/block.js:292
    446452msgid "Add"
    447453msgstr "追加"
    448454
    449 #: src/block/block.js:306
     455#: src/block/block.js:324
    450456msgid "To continue reading, ..."
    451457msgstr "この続きをみるには"
    452458
    453459#. Plugin Name of the plugin/theme
    454 #: src/block/block.js:358
     460#: src/block/block.js:376
    455461msgid "codoc"
    456462msgstr "codoc"
    457463
    458 #: src/block/block.js:359
     464#: src/block/block.js:377
    459465msgid ""
    460466"The area from this block down is a paid area that only authenticated codoc "
     
    464470"リアとなります。"
    465471
    466 #: src/block/block.js:369
     472#: src/block/block.js:387
    467473msgid "codoc Block"
    468474msgstr "codoc ブロック"
    469475
    470 #: src/block/block.js:370
     476#: src/block/block.js:388
    471477msgid "plugin for codoc"
    472478msgstr "codoc プラグイン"
    473479
    474 #: src/block/block.js:371
     480#: src/block/block.js:389
    475481msgid "codoc-block"
    476482msgstr ""
     
    495501msgid "https://codoc.jp"
    496502msgstr "https://codoc.jp"
     503
     504#~ msgid "Subscriptions"
     505#~ msgstr "サブスクリプション"
    497506
    498507#~ msgid ""
  • codoc/tags/0.9.55/languages/codoc.pot

    r3298415 r3350883  
    33msgstr ""
    44"Project-Id-Version: codoc\n"
    5 "POT-Creation-Date: 2025-05-22 12:24+0900\n"
     5"POT-Creation-Date: 2025-08-27 15:01+0900\n"
    66"PO-Revision-Date: 2023-04-30 17:49+0900\n"
    77"Last-Translator: \n"
     
    2323"X-Poedit-SearchPathExcluded-1: node_modules\n"
    2424
    25 #: class-codoc.php:320
     25#: class-codoc.php:171 class-codoc.php:320
    2626msgid "codoc Settings"
    2727msgstr ""
     
    340340msgstr ""
    341341
     342#: class-codoc.php:772
     343msgid "Settings"
     344msgstr ""
     345
    342346#: class-codoc.php:1095
    343347#, php-format
     
    374378msgstr ""
    375379
    376 #: src/block/block.js:108 src/block/block.js:258
     380#: src/block/block.js:108 src/block/block.js:276
    377381msgid "Unlisted"
    378382msgstr ""
     
    382386msgstr ""
    383387
    384 #: src/block/block.js:178
     388#: src/block/block.js:196
    385389msgid "individual sale"
    386390msgstr ""
    387391
    388 #: src/block/block.js:187
     392#: src/block/block.js:205
    389393msgid "price"
    390394msgstr ""
    391395
    392 #: src/block/block.js:187
     396#: src/block/block.js:205
    393397msgid "Displayed as the your suggested price"
    394398msgstr ""
    395399
    396 #: src/block/block.js:187
     400#: src/block/block.js:205
    397401msgid "【"
    398402msgstr ""
    399403
    400 #: src/block/block.js:199
     404#: src/block/block.js:217
    401405msgid "Pay-what-you-want"
    402406msgstr ""
    403407
    404 #: src/block/block.js:207
     408#: src/block/block.js:225
    405409msgid "Limited quantity sale"
    406410msgstr ""
    407411
    408 #: src/block/block.js:214
     412#: src/block/block.js:232
    409413msgid "Limited quantity"
    410414msgstr ""
    411415
    412 #: src/block/block.js:227
     416#: src/block/block.js:245
    413417msgid "Affiliate"
    414418msgstr ""
    415419
    416 #: src/block/block.js:234
     420#: src/block/block.js:252
    417421msgid "Rate"
    418422msgstr ""
    419423
    420 #: src/block/block.js:235
     424#: src/block/block.js:253
    421425msgid "You can offer affiliate marketing at a specified rate for purchasers."
    422426msgstr ""
    423427
    424 #: src/block/block.js:248
     428#: src/block/block.js:266
    425429msgid "Tipping"
    426430msgstr ""
    427431
    428 #: src/block/block.js:268
    429 msgid "Subscriptions"
    430 msgstr ""
    431 
    432 #: src/block/block.js:274
     432#: src/block/block.js:286
     433msgid "Reader Plans"
     434msgstr ""
     435
     436#: src/block/block.js:292
    433437msgid "Add"
    434438msgstr ""
    435439
    436 #: src/block/block.js:306
     440#: src/block/block.js:324
    437441msgid "To continue reading, ..."
    438442msgstr ""
    439443
    440444#. Plugin Name of the plugin/theme
    441 #: src/block/block.js:358
     445#: src/block/block.js:376
    442446msgid "codoc"
    443447msgstr ""
    444448
    445 #: src/block/block.js:359
     449#: src/block/block.js:377
    446450msgid ""
    447451"The area from this block down is a paid area that only authenticated codoc "
     
    449453msgstr ""
    450454
    451 #: src/block/block.js:369
     455#: src/block/block.js:387
    452456msgid "codoc Block"
    453457msgstr ""
    454458
    455 #: src/block/block.js:370
     459#: src/block/block.js:388
    456460msgid "plugin for codoc"
    457461msgstr ""
    458462
    459 #: src/block/block.js:371
     463#: src/block/block.js:389
    460464msgid "codoc-block"
    461465msgstr ""
  • codoc/tags/0.9.55/package.json

    r2923260 r3350883  
    1010  "dependencies": {
    1111    "@wordpress/i18n": "^4.34.0",
    12     "cgb-scripts": "1.18.1",
     12    "cgb-scripts": "1.23.1",
     13    "sass": "^1.90.0",
    1314    "jed": "^1.1.1",
    1415    "po2json": "1.0.0-beta-3",
    1516    "universal-cookie": "^4.0.0"
     17  },
     18  "resolutions": {
     19    "**/node-sass": "file:./src/node-sass-compat"
    1620  }
    1721}
  • codoc/tags/0.9.55/readme.txt

    r3341929 r3350883  
    55Requires at least: 4.6
    66Tested up to: 6.8.2
    7 Stable tag: 0.9.54.3
     7Stable tag: 0.9.55
    88Requires PHP: 5.4
    99License: GPLv2 or later
     
    2525== Installation ==
    2626
    27 1. Search for the "codoc" plugin from "Plugins → Add New" in your WordPress dashboard.
     271. Search for the "codoc" plugin from "Plugins → Add Plugin" in your WordPress dashboard.
    2828
    29292. Install and activate the codoc plugin.
  • codoc/tags/0.9.55/src/block/block.js

    r3304552 r3350883  
    284284          <div class="codoc-subscription-title">
    285285            <label>
    286             { __('Subscriptions','codoc') }
     286            { __('Reader Plans','codoc') }
    287287            </label>
    288288            <a
  • codoc/trunk/codoc.php

    r3341929 r3350883  
    66Author:      codoc.jp
    77Author URI:  https://codoc.jp
    8 Version:     0.9.54.3
     8Version:     0.9.55
    99License:     GPLv2
    1010License URI: http://www.gnu.org/licenses/gpl-2.0.html
     
    1414defined( 'ABSPATH' ) || exit;
    1515
    16 const CODOC_PLUGIN_VERSION        = '0.9.54.3';
     16const CODOC_PLUGIN_VERSION        = '0.9.55';
    1717const CODOC_URL                   = 'https://codoc.jp';
    1818const CODOC_USERCODE_OPTION_NAME  = 'codoc_usercode';
  • codoc/trunk/dist/blocks.build.js

    r3304552 r3350883  
    1 !function(e){function t(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return e[o].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=n(2),a=(n.n(r),n(3)),s=(n.n(a),n(4)),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=wp.keycodes.ENTER,__=wp.i18n.__,p=wp.element.Component,d=wp.blocks.registerBlockType,f=wp.editor,b=f.InspectorControls,m=f.RichText,h=wp.components,w=h.SelectControl,y=h.PanelBody,v=h.ToggleControl,C=h.CheckboxControl,g=h.RangeControl,k=wp.blocks,E=k.getDefaultBlockName,S=k.createBlock,P=wp.compose.withState,_=OPTIONS.codoc_url,O=OPTIONS.codoc_usercode,x=OPTIONS.codoc_plugin_version,T=OPTIONS.codoc_account_is_pro,A=OPTIONS.codoc_currency_code,j=OPTIONS.codoc_currency_decimal_places,N=function(e){function t(e){o(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.subscriptionsFetched=[],n.fetchSubscriptions(),n}return i(t,e),c(t,[{key:"fetchSubscriptions",value:function(){var e=this,t=this.props,n=t.setAttributes;if(!t.attributes.fetching){n({fetching:!0});var o=_+"/api/v1/cms/"+O+"/subscriptions?without_token=1";fetch(o).then(function(e){return e.json()}).then(function(t){var o=[];if(t.status&&t.subscriptions)for(var l=0;l<t.subscriptions.length;l++){var i={value:t.subscriptions[l].code,label:t.subscriptions[l].title};o[l]=i}o.length&&(e.subscriptionsFetched=o),n({fetching:!1})})}}},{key:"getShowPriceHelp",value:function(e){return e?__("Enable","codoc"):__("Disable","codoc")}},{key:"getShowSupportHelp",value:function(e){return e?__("Accept","codoc"):__("Do not accept","codoc")}},{key:"getShowPaywalledSupportHelp",value:function(e){return e?__('The paid part will be hidden upon access, but will be displayed after tapping "Pay to Read". Viewers can freely specify the amount to purchase based on the content. Please note that there may be cases where it is not purchased.',"codoc"):__(" ")}},{key:"getStatusLimitedHelp",value:function(e){return e?__("Unlisted","codoc"):__("Published","codoc")}},{key:"render",value:function(){var e=this,t=this.props,n=t.setAttributes,o=t.attributes,l=o.showPrice,i=o.price,r=o.limited,a=o.limitedCount,s=o.affiliateMode,c=o.affiliateRate,u=o.showSupport,p=o.showPaywalledSupport,d=o.statusLimited,f=o.subscriptions,m=function(){return n({showPrice:!l})},h=function(){return n({limited:!r})},k=function(){return n({showPaywalledSupport:!p})},E=function(){return n({statusLimited:!d})},S=function(){return n({affiliateMode:!s})},O=function(){return n({showSupport:!u})},x=P({checked_obj:Object.assign({},f)})(function(t){var o=t.checked_obj,l=t.setState;return wp.element.createElement("ul",null,e.subscriptionsFetched.map(function(e){var t=!!o[e.value],i=Object.keys(o).length;return wp.element.createElement("li",{key:e.value},wp.element.createElement(C,{className:"check_items",label:e.label,checked:t,onChange:function(t){if(!(t&&i>=5)){var r=Object.assign({},o);t?r[e.value]=!0:delete r[e.value],n({subscriptions:r}),l({checked_obj:r})}}}))}))}),N=[{value:"0.0500",label:"5%"},{value:"0.1000",label:"10%"},{value:"0.1500",label:"15%"},{value:"0.2000",label:"20%"},{value:"0.2500",label:"25%"},{value:"0.3000",label:"30%"},{value:"0.3500",label:"35%"},{value:"0.4000",label:"40%"},{value:"0.4500",label:"45%"},{value:"0.5000",label:"50%"}];return wp.element.createElement(b,{key:"CodocControls"},wp.element.createElement(y,null,wp.element.createElement(v,{label:__("individual sale","codoc"),checked:!!l,help:this.getShowPriceHelp,ref:"showPrice",onChange:m}),wp.element.createElement("div",{style:{display:l?"initial":"none"}},wp.element.createElement(g,{label:__("price","codoc")+" "+(j>0?(i/100).toFixed(j):i)+" "+__(A)+__(p?"\u3010"+__("Displayed as the your suggested price","codoc")+"\u3011":""),value:i,initialPosition:i,onChange:function(e){n({price:e})},min:"100",max:1==T?1e5:5e4}),wp.element.createElement("br",null),wp.element.createElement(v,{label:__("Pay-what-you-want","codoc"),checked:!!p,help:this.getShowPaywalledSupportHelp,onChange:k}),wp.element.createElement("div",{style:{display:p?"none":"initial"}},wp.element.createElement(v,{label:__("Limited quantity sale","codoc"),checked:!!r,onChange:h}),wp.element.createElement("div",{style:{display:r?"initial":"none"}},wp.element.createElement(g,{label:__("Limited quantity","codoc"),value:a,onChange:function(e){n({limitedCount:e})},initialPosition:a,min:"0",max:"100"}),wp.element.createElement("br",null)),wp.element.createElement(v,{label:__("Affiliate","codoc"),checked:!!s,onChange:S}),wp.element.createElement("div",{style:{display:s?"initial":"none"}},wp.element.createElement(w,{label:__("Rate","codoc"),description:__("You can offer affiliate marketing at a specified rate for purchasers.","codoc"),options:N,value:c,onChange:function(e){n({affiliateRate:e})}}),wp.element.createElement("br",null)))),wp.element.createElement("div",{style:{display:p?"none":"initial"}},wp.element.createElement(v,{label:__("Tipping","codoc"),checked:!!u,value:"1",onChange:O,help:this.getShowSupportHelp})),wp.element.createElement("div",{style:{display:"initial"}},wp.element.createElement(v,{label:__("Unlisted","codoc"),checked:!!d,value:"1",onChange:E,help:this.getStatusLimitedHelp})),wp.element.createElement("div",{class:"codoc-subscription-title"},wp.element.createElement("label",null,__("Subscriptions","codoc")),wp.element.createElement("a",{href:_+"/me/subscriptions",target:"_blank",class:"codoc-subscription-add"},__("Add","codoc"))),wp.element.createElement(x,null)))}}]),t}(p),R=function(e){function t(){o(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.props.setAttributes({version:x}),e.props.setAttributes({showPrice:null==e.props.attributes.showPrice||e.props.attributes.showPrice}),e.props.setAttributes({price:null==e.props.attributes.price?500:e.props.attributes.price}),e.props.setAttributes({limited:null!=e.props.attributes.limited&&e.props.attributes.limited}),e.props.setAttributes({limitedCount:null==e.props.attributes.limitedCount?10:e.props.attributes.limitedCount}),e.props.setAttributes({affiliateMode:null!=e.props.attributes.affiliateMode&&e.props.attributes.affiliateMode}),e.props.setAttributes({affiliateRate:null==e.props.attributes.affiliateRate?"0.0500":e.props.attributes.affiliateRate}),e.props.setAttributes({showSupport:null!=e.props.attributes.showSupport&&e.props.attributes.showSupport}),e.props.setAttributes({showPaywalledSupport:null!=e.props.attributes.showPaywalledSupport&&e.props.attributes.showPaywalledSupport}),e.props.setAttributes({statusLimited:null!=e.props.attributes.statusLimited&&e.props.attributes.statusLimited}),e.props.setAttributes({subscriptions:null==e.props.attributes.subscriptions?{}:e.props.attributes.subscriptions}),e.onChangeInput=e.onChangeInput.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.state={defaultText:__("To continue reading, ...","codoc")},e}return i(t,e),c(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===u&&n([S(E())])}},{key:"render",value:function(){var e=this.props,t=e.attributes.customText,n=e.setAttributes,o=this.state.defaultText,l=t||o,i=l.length+10;return[wp.element.createElement(N,Object.assign({setAttributes:n},this.props)),wp.element.createElement("div",{className:"wp-block-more"},wp.element.createElement("input",{type:"text",value:l,size:i,onChange:this.onChangeInput,onKeyDown:this.onKeyDown}))]}}]),t}(p);d("codoc/codoc-block",{title:__("codoc","codoc"),description:__("The area from this block down is a paid area that only authenticated codoc users can view.","codoc"),icon:s.a,category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},keywords:[__("codoc Block","codoc"),__("plugin for codoc","codoc"),__("codoc-block","codoc")],attributes:{showPrice:{type:"boolean",default:null},price:{type:"number",default:null},limited:{type:"boolean",default:null},limitedCount:{type:"number",default:null},affiliateMode:{type:"boolean",default:null},affiliateRate:{type:"string",default:null},showSupport:{type:"boolean",default:null},showPaywalledSupport:{type:"boolean",default:null},statusLimited:{type:"boolean",default:null},subscriptions:{type:"object",default:null},customText:{type:"string",default:""},version:{type:"string",default:null}},edit:R,save:function(e){var t=(e.setAttributes,e.attributes.customText);return wp.element.createElement("div",{"data-id":"codoc-tag",className:"codoc-entries"},t&&!!t.length&&wp.element.createElement(m.Content,{value:t}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var o=n(5);n.n(o);t.a=wp.element.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"100%",viewBox:"0 0 256 256","enable-background":"new 0 0 256 256",xmlSpace:"preserve"},wp.element.createElement("path",{fill:"#ffffff",opacity:"1.000000",stroke:"none",d:"M141.000000,257.000000 C94.000000,257.000000 47.500004,257.000000 1.000006,257.000000 C1.000004,171.666672 1.000004,86.333351 1.000002,1.000018 C86.333321,1.000012 171.666641,1.000012 257.000000,1.000006 C257.000000,86.333313 257.000000,171.666626 257.000000,256.999969 C218.500000,257.000000 180.000000,257.000000 141.000000,257.000000 M146.503082,23.000164 C116.907616,22.080397 90.932098,31.832527 69.273537,51.527222 C43.720821,74.762970 31.318863,103.869339 33.861893,138.920883 C35.131977,156.427002 39.715271,172.783020 49.613323,187.221390 C76.307907,226.160965 114.954926,238.329178 159.853943,234.326080 C182.543427,232.303101 202.167206,222.083160 219.314758,207.096619 C222.639465,204.190887 222.785080,201.958481 219.541718,198.996063 C210.086426,190.359756 200.699310,181.646790 191.392899,172.850220 C185.639374,167.411880 185.677856,167.315521 179.461136,172.079407 C160.475082,186.628571 135.524796,187.942444 115.371788,175.056778 C97.697929,163.756256 89.467148,146.957764 90.253334,126.395493 C91.060989,105.271385 101.350311,89.188896 120.515396,79.896317 C141.850464,69.551582 162.308594,73.002220 181.405899,86.137695 C185.054901,88.647537 187.582901,89.016609 190.896500,85.704330 C199.132141,77.471970 207.729889,69.603195 216.037704,61.441307 C224.548111,53.080330 224.348465,52.176884 214.913849,44.925365 C195.019623,29.634516 172.687103,21.958462 146.503082,23.000164 z"}),wp.element.createElement("path",{fill:"#1B1D1F",opacity:"1.000000",stroke:"none",d:"M147.001526,23.000149 C172.687103,21.958462 195.019623,29.634516 214.913849,44.925365 C224.348465,52.176884 224.548111,53.080330 216.037704,61.441307 C207.729889,69.603195 199.132141,77.471970 190.896500,85.704330 C187.582901,89.016609 185.054901,88.647537 181.405899,86.137695 C162.308594,73.002220 141.850464,69.551582 120.515396,79.896317 C101.350311,89.188896 91.060989,105.271385 90.253334,126.395493 C89.467148,146.957764 97.697929,163.756256 115.371788,175.056778 C135.524796,187.942444 160.475082,186.628571 179.461136,172.079407 C185.677856,167.315521 185.639374,167.411880 191.392899,172.850220 C200.699310,181.646790 210.086426,190.359756 219.541718,198.996063 C222.785080,201.958481 222.639465,204.190887 219.314758,207.096619 C202.167206,222.083160 182.543427,232.303101 159.853943,234.326080 C114.954926,238.329178 76.307907,226.160965 49.613323,187.221390 C39.715271,172.783020 35.131977,156.427002 33.861893,138.920883 C31.318863,103.869339 43.720821,74.762970 69.273537,51.527222 C90.932098,31.832527 116.907616,22.080397 147.001526,23.000149 z"}))},function(e,t){e.exports=wp.components}]);
     1!function(e){function t(o){if(n[o])return n[o].exports;var l=n[o]={i:o,l:!1,exports:{}};return e[o].call(l.exports,l,l.exports,t),l.l=!0,l.exports}var n={};t.m=e,t.c=n,t.d=function(e,n,o){t.o(e,n)||Object.defineProperty(e,n,{configurable:!1,enumerable:!0,get:o})},t.n=function(e){var n=e&&e.__esModule?function(){return e.default}:function(){return e};return t.d(n,"a",n),n},t.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},t.p="",t(t.s=0)}([function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});n(1)},function(e,t,n){"use strict";function o(e,t){if(!(e instanceof t))throw new TypeError("Cannot call a class as a function")}function l(e,t){if(!e)throw new ReferenceError("this hasn't been initialised - super() hasn't been called");return!t||"object"!==typeof t&&"function"!==typeof t?e:t}function i(e,t){if("function"!==typeof t&&null!==t)throw new TypeError("Super expression must either be null or a function, not "+typeof t);e.prototype=Object.create(t&&t.prototype,{constructor:{value:e,enumerable:!1,writable:!0,configurable:!0}}),t&&(Object.setPrototypeOf?Object.setPrototypeOf(e,t):e.__proto__=t)}var r=n(2),a=(n.n(r),n(3)),s=(n.n(a),n(4)),c=function(){function e(e,t){for(var n=0;n<t.length;n++){var o=t[n];o.enumerable=o.enumerable||!1,o.configurable=!0,"value"in o&&(o.writable=!0),Object.defineProperty(e,o.key,o)}}return function(t,n,o){return n&&e(t.prototype,n),o&&e(t,o),t}}(),u=wp.keycodes.ENTER,__=wp.i18n.__,p=wp.element.Component,d=wp.blocks.registerBlockType,f=wp.editor,b=f.InspectorControls,m=f.RichText,h=wp.components,w=h.SelectControl,y=h.PanelBody,v=h.ToggleControl,C=h.CheckboxControl,g=h.RangeControl,k=wp.blocks,E=k.getDefaultBlockName,P=k.createBlock,S=wp.compose.withState,_=OPTIONS.codoc_url,O=OPTIONS.codoc_usercode,x=OPTIONS.codoc_plugin_version,T=OPTIONS.codoc_account_is_pro,A=OPTIONS.codoc_currency_code,j=OPTIONS.codoc_currency_decimal_places,N=function(e){function t(e){o(this,t);var n=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return n.subscriptionsFetched=[],n.fetchSubscriptions(),n}return i(t,e),c(t,[{key:"fetchSubscriptions",value:function(){var e=this,t=this.props,n=t.setAttributes;if(!t.attributes.fetching){n({fetching:!0});var o=_+"/api/v1/cms/"+O+"/subscriptions?without_token=1";fetch(o).then(function(e){return e.json()}).then(function(t){var o=[];if(t.status&&t.subscriptions)for(var l=0;l<t.subscriptions.length;l++){var i={value:t.subscriptions[l].code,label:t.subscriptions[l].title};o[l]=i}o.length&&(e.subscriptionsFetched=o),n({fetching:!1})})}}},{key:"getShowPriceHelp",value:function(e){return e?__("Enable","codoc"):__("Disable","codoc")}},{key:"getShowSupportHelp",value:function(e){return e?__("Accept","codoc"):__("Do not accept","codoc")}},{key:"getShowPaywalledSupportHelp",value:function(e){return e?__('The paid part will be hidden upon access, but will be displayed after tapping "Pay to Read". Viewers can freely specify the amount to purchase based on the content. Please note that there may be cases where it is not purchased.',"codoc"):__(" ")}},{key:"getStatusLimitedHelp",value:function(e){return e?__("Unlisted","codoc"):__("Published","codoc")}},{key:"render",value:function(){var e=this,t=this.props,n=t.setAttributes,o=t.attributes,l=o.showPrice,i=o.price,r=o.limited,a=o.limitedCount,s=o.affiliateMode,c=o.affiliateRate,u=o.showSupport,p=o.showPaywalledSupport,d=o.statusLimited,f=o.subscriptions,m=function(){return n({showPrice:!l})},h=function(){return n({limited:!r})},k=function(){return n({showPaywalledSupport:!p})},E=function(){return n({statusLimited:!d})},P=function(){return n({affiliateMode:!s})},O=function(){return n({showSupport:!u})},x=S({checked_obj:Object.assign({},f)})(function(t){var o=t.checked_obj,l=t.setState;return wp.element.createElement("ul",null,e.subscriptionsFetched.map(function(e){var t=!!o[e.value],i=Object.keys(o).length;return wp.element.createElement("li",{key:e.value},wp.element.createElement(C,{className:"check_items",label:e.label,checked:t,onChange:function(t){if(!(t&&i>=5)){var r=Object.assign({},o);t?r[e.value]=!0:delete r[e.value],n({subscriptions:r}),l({checked_obj:r})}}}))}))}),N=[{value:"0.0500",label:"5%"},{value:"0.1000",label:"10%"},{value:"0.1500",label:"15%"},{value:"0.2000",label:"20%"},{value:"0.2500",label:"25%"},{value:"0.3000",label:"30%"},{value:"0.3500",label:"35%"},{value:"0.4000",label:"40%"},{value:"0.4500",label:"45%"},{value:"0.5000",label:"50%"}];return wp.element.createElement(b,{key:"CodocControls"},wp.element.createElement(y,null,wp.element.createElement(v,{label:__("individual sale","codoc"),checked:!!l,help:this.getShowPriceHelp,ref:"showPrice",onChange:m}),wp.element.createElement("div",{style:{display:l?"initial":"none"}},wp.element.createElement(g,{label:__("price","codoc")+" "+(j>0?(i/100).toFixed(j):i)+" "+__(A)+__(p?"\u3010"+__("Displayed as the your suggested price","codoc")+"\u3011":""),value:i,initialPosition:i,onChange:function(e){n({price:e})},min:"100",max:1==T?1e5:5e4}),wp.element.createElement("br",null),wp.element.createElement(v,{label:__("Pay-what-you-want","codoc"),checked:!!p,help:this.getShowPaywalledSupportHelp,onChange:k}),wp.element.createElement("div",{style:{display:p?"none":"initial"}},wp.element.createElement(v,{label:__("Limited quantity sale","codoc"),checked:!!r,onChange:h}),wp.element.createElement("div",{style:{display:r?"initial":"none"}},wp.element.createElement(g,{label:__("Limited quantity","codoc"),value:a,onChange:function(e){n({limitedCount:e})},initialPosition:a,min:"0",max:"100"}),wp.element.createElement("br",null)),wp.element.createElement(v,{label:__("Affiliate","codoc"),checked:!!s,onChange:P}),wp.element.createElement("div",{style:{display:s?"initial":"none"}},wp.element.createElement(w,{label:__("Rate","codoc"),description:__("You can offer affiliate marketing at a specified rate for purchasers.","codoc"),options:N,value:c,onChange:function(e){n({affiliateRate:e})}}),wp.element.createElement("br",null)))),wp.element.createElement("div",{style:{display:p?"none":"initial"}},wp.element.createElement(v,{label:__("Tipping","codoc"),checked:!!u,value:"1",onChange:O,help:this.getShowSupportHelp})),wp.element.createElement("div",{style:{display:"initial"}},wp.element.createElement(v,{label:__("Unlisted","codoc"),checked:!!d,value:"1",onChange:E,help:this.getStatusLimitedHelp})),wp.element.createElement("div",{class:"codoc-subscription-title"},wp.element.createElement("label",null,__("Reader Plans","codoc")),wp.element.createElement("a",{href:_+"/me/subscriptions",target:"_blank",class:"codoc-subscription-add"},__("Add","codoc"))),wp.element.createElement(x,null)))}}]),t}(p),R=function(e){function t(){o(this,t);var e=l(this,(t.__proto__||Object.getPrototypeOf(t)).apply(this,arguments));return e.props.setAttributes({version:x}),e.props.setAttributes({showPrice:null==e.props.attributes.showPrice||e.props.attributes.showPrice}),e.props.setAttributes({price:null==e.props.attributes.price?500:e.props.attributes.price}),e.props.setAttributes({limited:null!=e.props.attributes.limited&&e.props.attributes.limited}),e.props.setAttributes({limitedCount:null==e.props.attributes.limitedCount?10:e.props.attributes.limitedCount}),e.props.setAttributes({affiliateMode:null!=e.props.attributes.affiliateMode&&e.props.attributes.affiliateMode}),e.props.setAttributes({affiliateRate:null==e.props.attributes.affiliateRate?"0.0500":e.props.attributes.affiliateRate}),e.props.setAttributes({showSupport:null!=e.props.attributes.showSupport&&e.props.attributes.showSupport}),e.props.setAttributes({showPaywalledSupport:null!=e.props.attributes.showPaywalledSupport&&e.props.attributes.showPaywalledSupport}),e.props.setAttributes({statusLimited:null!=e.props.attributes.statusLimited&&e.props.attributes.statusLimited}),e.props.setAttributes({subscriptions:null==e.props.attributes.subscriptions?{}:e.props.attributes.subscriptions}),e.onChangeInput=e.onChangeInput.bind(e),e.onKeyDown=e.onKeyDown.bind(e),e.state={defaultText:__("To continue reading, ...","codoc")},e}return i(t,e),c(t,[{key:"onChangeInput",value:function(e){this.setState({defaultText:""});var t=0===e.target.value.length?void 0:e.target.value;this.props.setAttributes({customText:t})}},{key:"onKeyDown",value:function(e){var t=e.keyCode,n=this.props.insertBlocksAfter;t===u&&n([P(E())])}},{key:"render",value:function(){var e=this.props,t=e.attributes.customText,n=e.setAttributes,o=this.state.defaultText,l=t||o,i=l.length+10;return[wp.element.createElement(N,Object.assign({setAttributes:n},this.props)),wp.element.createElement("div",{className:"wp-block-more"},wp.element.createElement("input",{type:"text",value:l,size:i,onChange:this.onChangeInput,onKeyDown:this.onKeyDown}))]}}]),t}(p);d("codoc/codoc-block",{title:__("codoc","codoc"),description:__("The area from this block down is a paid area that only authenticated codoc users can view.","codoc"),icon:s.a,category:"layout",supports:{customClassName:!1,className:!1,html:!1,multiple:!1},keywords:[__("codoc Block","codoc"),__("plugin for codoc","codoc"),__("codoc-block","codoc")],attributes:{showPrice:{type:"boolean",default:null},price:{type:"number",default:null},limited:{type:"boolean",default:null},limitedCount:{type:"number",default:null},affiliateMode:{type:"boolean",default:null},affiliateRate:{type:"string",default:null},showSupport:{type:"boolean",default:null},showPaywalledSupport:{type:"boolean",default:null},statusLimited:{type:"boolean",default:null},subscriptions:{type:"object",default:null},customText:{type:"string",default:""},version:{type:"string",default:null}},edit:R,save:function(e){var t=(e.setAttributes,e.attributes.customText);return wp.element.createElement("div",{"data-id":"codoc-tag",className:"codoc-entries"},t&&!!t.length&&wp.element.createElement(m.Content,{value:t}))}})},function(e,t){},function(e,t){},function(e,t,n){"use strict";var o=n(5);n.n(o);t.a=wp.element.createElement("svg",{version:"1.1",id:"Layer_1",xmlns:"http://www.w3.org/2000/svg",xmlnsXlink:"http://www.w3.org/1999/xlink",x:"0px",y:"0px",width:"100%",viewBox:"0 0 256 256","enable-background":"new 0 0 256 256",xmlSpace:"preserve"},wp.element.createElement("path",{fill:"#ffffff",opacity:"1.000000",stroke:"none",d:"M141.000000,257.000000 C94.000000,257.000000 47.500004,257.000000 1.000006,257.000000 C1.000004,171.666672 1.000004,86.333351 1.000002,1.000018 C86.333321,1.000012 171.666641,1.000012 257.000000,1.000006 C257.000000,86.333313 257.000000,171.666626 257.000000,256.999969 C218.500000,257.000000 180.000000,257.000000 141.000000,257.000000 M146.503082,23.000164 C116.907616,22.080397 90.932098,31.832527 69.273537,51.527222 C43.720821,74.762970 31.318863,103.869339 33.861893,138.920883 C35.131977,156.427002 39.715271,172.783020 49.613323,187.221390 C76.307907,226.160965 114.954926,238.329178 159.853943,234.326080 C182.543427,232.303101 202.167206,222.083160 219.314758,207.096619 C222.639465,204.190887 222.785080,201.958481 219.541718,198.996063 C210.086426,190.359756 200.699310,181.646790 191.392899,172.850220 C185.639374,167.411880 185.677856,167.315521 179.461136,172.079407 C160.475082,186.628571 135.524796,187.942444 115.371788,175.056778 C97.697929,163.756256 89.467148,146.957764 90.253334,126.395493 C91.060989,105.271385 101.350311,89.188896 120.515396,79.896317 C141.850464,69.551582 162.308594,73.002220 181.405899,86.137695 C185.054901,88.647537 187.582901,89.016609 190.896500,85.704330 C199.132141,77.471970 207.729889,69.603195 216.037704,61.441307 C224.548111,53.080330 224.348465,52.176884 214.913849,44.925365 C195.019623,29.634516 172.687103,21.958462 146.503082,23.000164 z"}),wp.element.createElement("path",{fill:"#1B1D1F",opacity:"1.000000",stroke:"none",d:"M147.001526,23.000149 C172.687103,21.958462 195.019623,29.634516 214.913849,44.925365 C224.348465,52.176884 224.548111,53.080330 216.037704,61.441307 C207.729889,69.603195 199.132141,77.471970 190.896500,85.704330 C187.582901,89.016609 185.054901,88.647537 181.405899,86.137695 C162.308594,73.002220 141.850464,69.551582 120.515396,79.896317 C101.350311,89.188896 91.060989,105.271385 90.253334,126.395493 C89.467148,146.957764 97.697929,163.756256 115.371788,175.056778 C135.524796,187.942444 160.475082,186.628571 179.461136,172.079407 C185.677856,167.315521 185.639374,167.411880 191.392899,172.850220 C200.699310,181.646790 210.086426,190.359756 219.541718,198.996063 C222.785080,201.958481 222.639465,204.190887 219.314758,207.096619 C202.167206,222.083160 182.543427,232.303101 159.853943,234.326080 C114.954926,238.329178 76.307907,226.160965 49.613323,187.221390 C39.715271,172.783020 35.131977,156.427002 33.861893,138.920883 C31.318863,103.869339 43.720821,74.762970 69.273537,51.527222 C90.932098,31.832527 116.907616,22.080397 147.001526,23.000149 z"}))},function(e,t){e.exports=wp.components}]);
  • codoc/trunk/dist/blocks.editor.build.css

    r2413012 r3350883  
    1 .wp-block-cgb-block-wordpress{background:#bada55;border:0.2rem solid #292929;color:#292929;margin:0 auto;max-width:740px;padding:2rem}.wp-block-codoc-border{background:#bada55;border:0.2rem solid #292929;color:#292929;text-align:center;padding:2rem}.components-range-control__number{width:70px}.codoc-subscription-title{display:-ms-flexbox;display:flex;-ms-flex-pack:justify;justify-content:space-between}.codoc-subscription-add{position:relative;display:inline-block;padding:2px 10px 2px 23px;margin-left:10px;background:#0073aa;color:#fff;font-size:11px;text-decoration:none;border-radius:3px}.codoc-subscription-add:hover{background:#0070a7;color:#efefef}.codoc-subscription-add:before{position:absolute;top:50%;left:7px;display:block;content:"";width:10px;height:1px;margin-top:-1px;background:#fff}.codoc-subscription-add:after{position:absolute;top:50%;left:7px;display:block;content:"";width:10px;height:1px;margin-top:-1px;background:#fff;-webkit-transform:rotate(90deg);-ms-transform:rotate(90deg);transform:rotate(90deg)}
     1/**
     2 * #.# Common SCSS
     3 *
     4 * Can include things like variables and mixins
     5 * that are used across the project.
     6*/
     7/**
     8 * #.# Editor Styles
     9 *
     10 * CSS for just Backend enqueued after style.scss
     11 * which makes it higher in priority.
     12 */
     13.wp-block-cgb-block-wordpress {
     14  background: #bada55;
     15  border: 0.2rem solid rgb(41, 41, 41);
     16  color: rgb(41, 41, 41);
     17  margin: 0 auto;
     18  max-width: 740px;
     19  padding: 2rem;
     20}
     21
     22.wp-block-codoc-border {
     23  background: #bada55;
     24  border: 0.2rem solid rgb(41, 41, 41);
     25  color: rgb(41, 41, 41);
     26  text-align: center;
     27  padding: 2rem;
     28}
     29
     30.components-range-control__number {
     31  width: 70px;
     32}
     33
     34.codoc-subscription-title {
     35  display: -ms-flexbox;
     36  display: flex;
     37  -ms-flex-pack: justify;
     38      justify-content: space-between;
     39}
     40
     41.codoc-subscription-add {
     42  position: relative;
     43  display: inline-block;
     44  padding: 2px 10px 2px 23px;
     45  margin-left: 10px;
     46  background: #0073aa;
     47  color: #fff;
     48  font-size: 11px;
     49  text-decoration: none;
     50  border-radius: 3px;
     51}
     52
     53.codoc-subscription-add:hover {
     54  background: #0070a7;
     55  color: #efefef;
     56}
     57
     58.codoc-subscription-add:before {
     59  position: absolute;
     60  top: 50%;
     61  left: 7px;
     62  display: block;
     63  content: "";
     64  width: 10px;
     65  height: 1px;
     66  margin-top: -1px;
     67  background: #fff;
     68}
     69
     70.codoc-subscription-add:after {
     71  position: absolute;
     72  top: 50%;
     73  left: 7px;
     74  display: block;
     75  content: "";
     76  width: 10px;
     77  height: 1px;
     78  margin-top: -1px;
     79  background: #fff;
     80  -webkit-transform: rotate(90deg);
     81      -ms-transform: rotate(90deg);
     82          transform: rotate(90deg);
     83}
  • codoc/trunk/dist/blocks.style.build.css

    r2141582 r3350883  
    1 .wp-block-cgb-block-wordpress{background:#ff4500;border:0.2rem solid #292929;color:#292929;margin:0 auto;max-width:740px;padding:2rem}
     1/**
     2 * #.# Common SCSS
     3 *
     4 * Can include things like variables and mixins
     5 * that are used across the project.
     6*/
     7/**
     8 * #.# Styles
     9 *
     10 * CSS for both Frontend+Backend.
     11 */
     12.wp-block-cgb-block-wordpress {
     13  background: orangered;
     14  border: 0.2rem solid rgb(41, 41, 41);
     15  color: rgb(41, 41, 41);
     16  margin: 0 auto;
     17  max-width: 740px;
     18  padding: 2rem;
     19}
  • codoc/trunk/languages/codoc-ja-codoc-block-js.json

    r3298415 r3350883  
    1 {"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja"},"codoc Settings":["codoc設定"],"Theme":["テーマ"],"You can change the design of the paywall by specifying a theme.<br />You can also specify CSS directly by selecting \"Path Specification\"":["テーマを変更するとペイウォールのデザインを変更できます。<br />「パス指定」を選択してCSSを直接指定することもできます。"],"Rainbow colors":["レインボーカラー"],"Blue":["青"],"Red":["赤"],"Green":["緑"],"Black":["黒"],"Dark mode":["ダークモード"],"Rainbow Colors / Square design":["レインボーカラー / スクエアデザイン"],"Blue / Square design":["ブルー / スクエアデザイン"],"Red / Square design":["レッド / スクエアデザイン"],"Green / Square design":["グリーン / スクエアデザイン"],"Black / Square design":["ブラック / スクエアデザイン"],"Dark mode / Square design":["ダークモード / スクエアデザイン"],"Path Specification":["パス指定"],"Please note that the theme for dark mode has white text color, and depending on the background color, the text may not be visible.":["ダークモードはテキストの色が白となります。背景色によってはテキストが表示されない場合がありますのでご注意ください。"],"Texts in paywall":["ペイウォールのテキスト"],"You can change, show and hide texts in your paywall.":["ペイウォールのテキストを変更、表示、非表示にすることができます。"],"Display of likes":["いいねの表示"],"Enable":["有効"],"Disable":["無効"],"Display of PoweredBy":["Powered byの表示"],"Only PRO accounts can be disabled.":["無効にできるのは PRO アカウントのみです。"],"\"Purchase Article\" button text":["「購入」ボタンのテキスト"],"\"Purchase Subscription\" button text.":["サブスクリプション「購入」ボタンのテキスト。"],"Support button text":["サポートボタンのテキスト"],"Text for \"Articles Included in Subscription\".":["「購読に含まれる記事」のテキスト"],"Text for support description":["サポートの説明のテキスト"],"Attributes for codoc tag":["codoc タグの属性"],"You can add specific attributes to codoc tags.":["codoc タグに特定の属性を追加できます。"],"Attributes for codoc script tag":["codoc スクリプトタグの属性"],"You can add specific attributes to codoc script tags.":["codoc スクリプトタグに特定の属性を追加できます。"],"Permalink":["パーマリンク"],"You can replace the part of permalink registered on the codoc.":["codocに登録されているパーマリンクの一部を置換できます。"],"HTML insertion":["HTML の挿入"],"You can insert HTML before and after the codoc tag.":["codoc タグの前後に HTML を挿入できます。"],"Before HTML":["HTML の前"],"After HTML":["HTML の後"],"Automatic support insertion":["サポートの自動挿入"],"It adds support functions to the post without inserting a codoc block.":["codoc ブロックの挿入をしなくても投稿へサポート機能を追加できます。"],"Automatic insertion":["自動挿入"],"Position":["位置"],"TOP":["上"],"Bottom":["下"],"Description":["説明"],"You can customize the description of the support.":["サポートの説明をカスタマイズできます。"],"Category names":["カテゴリ名"],"Inserted into articles of categories, divided by &quot;|&quot;":["&quot;|&quot; 区切りのカテゴリ名"],"Disable plugin filter":["プラグインフィルターを無効にする"],"You can disable filter processing that includes shortcodes from other plugins that interfere with the operation of codoc. Please use this only if codoc is not functioning properly.":["codoc の動作を妨げる他のプラグインからの (ショートコードを含む) フィルタ処理を無効にすることができます。codoc が正しく機能していない場合にのみ使用してください。"],"Shortcode evacuation":["ショートコードの待避"],"The execution results of shortcodes written in the paid part are moved to the free part, and are used and displayed on the HTML during viewing of the paid part. Please use this if the shortcode does not work as expected in the paid part. Please note that the execution results of shortcodes in the paid part will be written in the source code.":["有料部分に記述されたショートコードの実行結果を無料部分に退避、有料部分の閲覧時に HTML 上で使用・表示されます。有料部分でショートコードが期待通りに機能しない場合は、こちらをご利用ください。有料部分のショートコードの実行結果はソースコードに書き込まれますのでご注意ください。"],"Debug Parameters":["デバックパラメーター"],"You can specify parameters for debugging. Please use this only upon request from codoc support.":["デバック用のパラメーターを指定できます。codoc サポートからの要求がある場合にのみ使用してください。"],"Creator's Information":["クリエイター情報"],"Please save changes to update the information.":["変更を保存して情報を更新してください。"],"Extensions integration completed (Extensions code: %1$s) %2$s":["拡張機能の連携完了 (拡張機能コード: %1$s) %2$s"],"Set the audience as a private account.":["オーディエンスをプライベートアカウントとして設定します。"],"Update creator's Information":["クリエイター情報の更新"],"Please update each time if you change the logo or cover image on the codoc side.":["codoc 側でロゴや表紙画像を変更した場合は、その都度更新してください。"],"codoc authentication has been completed.":["codoc の認証が完了しました。"],"Authentication":["認証"],"Please save changes to complete the unbinding.":["変更を保存して連携解除を完了してください。"],"Authorized as %s":["%sとして認証"],"Unbind authorization":["連携解除"],"The authentication information has been obtained. Please click the confirmation button to complete the setup.":["認証情報を取得しました。設定を完了させるために確認ボタンを押下してください。"],"Confirm authentication":["認証を確認"],"Authentication is required to use codoc on WordPress.":["codocを使うには認証が必要です。"],"You can authenticate by directly entering the user code and API token, or by logging in and registering with codoc.":["ユーザーコードと API トークンを直接入力するか、ログインもしくは登録を行うことで認証を行えます。"],"Authenticate by direct input":["直接入力して認証"],"Login and authenticate":["ログインして認証"],"Register and authenticate":["登録して認証"],"Please enable %s and enable &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; on the settings screen.":["%sを有効にし、設定画面にて &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; を有効にしてください。"],"Please enable &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; on the %s settings screen.":["%sの設定画面にて &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; を有効にしてください。"],"Accept":["受け付ける"],"Do not accept":["受け付けない"],"The paid part will be hidden upon access, but will be displayed after tapping \"Pay to Read\". Viewers can freely specify the amount to purchase based on the content. Please note that there may be cases where it is not purchased.":["このブロックから下のブロックは認証された codoc ユーザーのみが閲覧できる有料エリアとなります。"]," ":[""],"Unlisted":["限定公開"],"Published":["公開"],"individual sale":["単体販売"],"price":["価格"],"Displayed as the your suggested price":["希望価格として標示"],"【":[""],"Pay-what-you-want":["自由課金"],"Limited quantity sale":["限定販売"],"Limited quantity":["限定数"],"Affiliate":["アフィリエイト"],"Rate":["料率"],"You can offer affiliate marketing at a specified rate for purchasers.":["購入者を対象に指定した料率でアフィリエイトをオファーできます。"],"Tipping":["サポート"],"Subscriptions":["サブスクリプション"],"Add":["追加"],"To continue reading, ...":["この続きをみるには"],"codoc":["codoc"],"The area from this block down is a paid area that only authenticated codoc users can view.":["このブロックから下のブロックは認証された codoc ユーザーのみが閲覧できる有料エリアとなります。"],"codoc Block":["codoc ブロック"],"plugin for codoc":["codoc プラグイン"],"codoc-block":[""],"https://plugins.svn.wordpress.org/codoc/":["https://plugins.svn.wordpress.org/codoc/"],"A WordPress plugin for monetizing websites by enabling paid articles, subscriptions(memberships), and tipping.":["有料記事、サブスクリプション (マガジン・メンバーシップ)、投げ銭を導入できる WordPress プラグイン。"],"codoc.jp":["codoc.jp"],"https://codoc.jp":["https://codoc.jp"]}}}
     1{"domain":"messages","locale_data":{"messages":{"":{"domain":"messages","plural_forms":"nplurals=1; plural=0;","lang":"ja"},"codoc Settings":["codoc設定"],"Theme":["テーマ"],"You can change the design of the paywall by specifying a theme.<br />You can also specify CSS directly by selecting \"Path Specification\"":["テーマを変更するとペイウォールのデザインを変更できます。<br />「パス指定」を選択してCSSを直接指定することもできます。"],"Rainbow colors":["レインボーカラー"],"Blue":["青"],"Red":["赤"],"Green":["緑"],"Black":["黒"],"Dark mode":["ダークモード"],"Rainbow Colors / Square design":["レインボーカラー / スクエアデザイン"],"Blue / Square design":["ブルー / スクエアデザイン"],"Red / Square design":["レッド / スクエアデザイン"],"Green / Square design":["グリーン / スクエアデザイン"],"Black / Square design":["ブラック / スクエアデザイン"],"Dark mode / Square design":["ダークモード / スクエアデザイン"],"Path Specification":["パス指定"],"Please note that the theme for dark mode has white text color, and depending on the background color, the text may not be visible.":["ダークモードはテキストの色が白となります。背景色によってはテキストが表示されない場合がありますのでご注意ください。"],"Texts in paywall":["ペイウォールのテキスト"],"You can change, show and hide texts in your paywall.":["ペイウォールのテキストを変更、表示、非表示にすることができます。"],"Display of likes":["いいねの表示"],"Enable":["有効"],"Disable":["無効"],"Display of PoweredBy":["Powered byの表示"],"Only PRO accounts can be disabled.":["無効にできるのは PRO アカウントのみです。"],"\"Purchase Article\" button text":["「購入」ボタンのテキスト"],"\"Purchase Subscription\" button text.":["サブスクリプション「購入」ボタンのテキスト。"],"Support button text":["サポートボタンのテキスト"],"Text for \"Articles Included in Subscription\".":["「購読に含まれる記事」のテキスト"],"Text for support description":["サポートの説明のテキスト"],"Attributes for codoc tag":["codoc タグの属性"],"You can add specific attributes to codoc tags.":["codoc タグに特定の属性を追加できます。"],"Attributes for codoc script tag":["codoc スクリプトタグの属性"],"You can add specific attributes to codoc script tags.":["codoc スクリプトタグに特定の属性を追加できます。"],"Permalink":["パーマリンク"],"You can replace the part of permalink registered on the codoc.":["codocに登録されているパーマリンクの一部を置換できます。"],"HTML insertion":["HTML の挿入"],"You can insert HTML before and after the codoc tag.":["codoc タグの前後に HTML を挿入できます。"],"Before HTML":["HTML の前"],"After HTML":["HTML の後"],"Automatic support insertion":["サポートの自動挿入"],"It adds support functions to the post without inserting a codoc block.":["codoc ブロックの挿入をしなくても投稿へサポート機能を追加できます。"],"Automatic insertion":["自動挿入"],"Position":["位置"],"TOP":["上"],"Bottom":["下"],"Description":["説明"],"You can customize the description of the support.":["サポートの説明をカスタマイズできます。"],"Category names":["カテゴリ名"],"Inserted into articles of categories, divided by &quot;|&quot;":["&quot;|&quot; 区切りのカテゴリ名"],"Disable plugin filter":["プラグインフィルターを無効にする"],"You can disable filter processing that includes shortcodes from other plugins that interfere with the operation of codoc. Please use this only if codoc is not functioning properly.":["codoc の動作を妨げる他のプラグインからの (ショートコードを含む) フィルタ処理を無効にすることができます。codoc が正しく機能していない場合にのみ使用してください。"],"Shortcode evacuation":["ショートコードの待避"],"The execution results of shortcodes written in the paid part are moved to the free part, and are used and displayed on the HTML during viewing of the paid part. Please use this if the shortcode does not work as expected in the paid part. Please note that the execution results of shortcodes in the paid part will be written in the source code.":["有料部分に記述されたショートコードの実行結果を無料部分に退避、有料部分の閲覧時に HTML 上で使用・表示されます。有料部分でショートコードが期待通りに機能しない場合は、こちらをご利用ください。有料部分のショートコードの実行結果はソースコードに書き込まれますのでご注意ください。"],"Debug Parameters":["デバックパラメーター"],"You can specify parameters for debugging. Please use this only upon request from codoc support.":["デバック用のパラメーターを指定できます。codoc サポートからの要求がある場合にのみ使用してください。"],"Creator's Information":["クリエイター情報"],"Please save changes to update the information.":["変更を保存して情報を更新してください。"],"Extensions integration completed (Extensions code: %1$s) %2$s":["拡張機能の連携完了 (拡張機能コード: %1$s) %2$s"],"Set the audience as a private account.":["オーディエンスをプライベートアカウントとして設定します。"],"Update creator's Information":["クリエイター情報の更新"],"Please update each time if you change the logo or cover image on the codoc side.":["codoc 側でロゴや表紙画像を変更した場合は、その都度更新してください。"],"codoc authentication has been completed.":["codoc の認証が完了しました。"],"Authentication":["認証"],"Please save changes to complete the unbinding.":["変更を保存して連携解除を完了してください。"],"Authorized as %s":["%sとして認証"],"Unbind authorization":["連携解除"],"The authentication information has been obtained. Please click the confirmation button to complete the setup.":["認証情報を取得しました。設定を完了させるために確認ボタンを押下してください。"],"Confirm authentication":["認証を確認"],"Authentication is required to use codoc on WordPress.":["codocを使うには認証が必要です。"],"You can authenticate by directly entering the user code and API token, or by logging in and registering with codoc.":["ユーザーコードと API トークンを直接入力するか、ログインもしくは登録を行うことで認証を行えます。"],"Authenticate by direct input":["直接入力して認証"],"Login and authenticate":["ログインして認証"],"Register and authenticate":["登録して認証"],"Please enable %s and enable &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; on the settings screen.":["%sを有効にし、設定画面にて &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; を有効にしてください。"],"Please enable &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; on the %s settings screen.":["%sの設定画面にて &quot;Keep paragraph tags in the Classic block and the Classic Editor&quot; を有効にしてください。"],"Accept":["受け付ける"],"Do not accept":["受け付けない"],"The paid part will be hidden upon access, but will be displayed after tapping \"Pay to Read\". Viewers can freely specify the amount to purchase based on the content. Please note that there may be cases where it is not purchased.":["このブロックから下のブロックは認証された codoc ユーザーのみが閲覧できる有料エリアとなります。"]," ":[""],"Unlisted":["限定公開"],"Published":["公開"],"individual sale":["単体販売"],"price":["価格"],"Displayed as the your suggested price":["希望価格として標示"],"【":[""],"Pay-what-you-want":["自由課金"],"Limited quantity sale":["限定販売"],"Limited quantity":["限定数"],"Affiliate":["アフィリエイト"],"Rate":["料率"],"You can offer affiliate marketing at a specified rate for purchasers.":["購入者を対象に指定した料率でアフィリエイトをオファーできます。"],"Tipping":["チップ"],"Reader Plans":["購読プラン"],"Add":["追加"],"To continue reading, ...":["この続きをみるには"],"codoc":["codoc"],"The area from this block down is a paid area that only authenticated codoc users can view.":["このブロックから下のブロックは認証された codoc ユーザーのみが閲覧できる有料エリアとなります。"],"codoc Block":["codoc ブロック"],"plugin for codoc":["codoc プラグイン"],"codoc-block":[""],"https://plugins.svn.wordpress.org/codoc/":["https://plugins.svn.wordpress.org/codoc/"],"A WordPress plugin for monetizing websites by enabling paid articles, subscriptions(memberships), and tipping.":["有料記事、サブスクリプション (マガジン・メンバーシップ)、投げ銭を導入できる WordPress プラグイン。"],"codoc.jp":["codoc.jp"],"https://codoc.jp":["https://codoc.jp"]}}}
  • codoc/trunk/languages/codoc-ja.po

    r3298415 r3350883  
    33"Project-Id-Version: Codestar Framework 2.2.1\n"
    44"Report-Msgid-Bugs-To: \n"
    5 "POT-Creation-Date: 2025-05-22 12:24+0900\n"
     5"POT-Creation-Date: 2025-08-27 15:01+0900\n"
    66"PO-Revision-Date: \n"
    77"Last-Translator: \n"
     
    1515"X-Generator: Poedit 3.5\n"
    1616
    17 #: class-codoc.php:320
     17#: class-codoc.php:171 class-codoc.php:320
    1818msgid "codoc Settings"
    1919msgstr "codoc設定"
     
    347347msgstr "登録して認証"
    348348
     349#: class-codoc.php:772
     350#, fuzzy
     351#| msgid "codoc Settings"
     352msgid "Settings"
     353msgstr "codoc設定"
     354
    349355#: class-codoc.php:1095
    350356#, php-format
     
    387393msgstr ""
    388394
    389 #: src/block/block.js:108 src/block/block.js:258
     395#: src/block/block.js:108 src/block/block.js:276
    390396msgid "Unlisted"
    391397msgstr "限定公開"
     
    395401msgstr "公開"
    396402
    397 #: src/block/block.js:178
     403#: src/block/block.js:196
    398404msgid "individual sale"
    399405msgstr "単体販売"
    400406
    401 #: src/block/block.js:187
     407#: src/block/block.js:205
    402408msgid "price"
    403409msgstr "価格"
    404410
    405 #: src/block/block.js:187
     411#: src/block/block.js:205
    406412msgid "Displayed as the your suggested price"
    407413msgstr "希望価格として標示"
    408414
    409 #: src/block/block.js:187
     415#: src/block/block.js:205
    410416msgid "【"
    411417msgstr ""
    412418
    413 #: src/block/block.js:199
     419#: src/block/block.js:217
    414420msgid "Pay-what-you-want"
    415421msgstr "自由課金"
    416422
    417 #: src/block/block.js:207
     423#: src/block/block.js:225
    418424msgid "Limited quantity sale"
    419425msgstr "限定販売"
    420426
    421 #: src/block/block.js:214
     427#: src/block/block.js:232
    422428msgid "Limited quantity"
    423429msgstr "限定数"
    424430
    425 #: src/block/block.js:227
     431#: src/block/block.js:245
    426432msgid "Affiliate"
    427433msgstr "アフィリエイト"
    428434
    429 #: src/block/block.js:234
     435#: src/block/block.js:252
    430436msgid "Rate"
    431437msgstr "料率"
    432438
    433 #: src/block/block.js:235
     439#: src/block/block.js:253
    434440msgid "You can offer affiliate marketing at a specified rate for purchasers."
    435441msgstr "購入者を対象に指定した料率でアフィリエイトをオファーできます。"
    436442
    437 #: src/block/block.js:248
     443#: src/block/block.js:266
    438444msgid "Tipping"
    439 msgstr "サポート"
    440 
    441 #: src/block/block.js:268
    442 msgid "Subscriptions"
    443 msgstr "サブスクリプション"
    444 
    445 #: src/block/block.js:274
     445msgstr "チップ"
     446
     447#: src/block/block.js:286
     448msgid "Reader Plans"
     449msgstr "購読プラン"
     450
     451#: src/block/block.js:292
    446452msgid "Add"
    447453msgstr "追加"
    448454
    449 #: src/block/block.js:306
     455#: src/block/block.js:324
    450456msgid "To continue reading, ..."
    451457msgstr "この続きをみるには"
    452458
    453459#. Plugin Name of the plugin/theme
    454 #: src/block/block.js:358
     460#: src/block/block.js:376
    455461msgid "codoc"
    456462msgstr "codoc"
    457463
    458 #: src/block/block.js:359
     464#: src/block/block.js:377
    459465msgid ""
    460466"The area from this block down is a paid area that only authenticated codoc "
     
    464470"リアとなります。"
    465471
    466 #: src/block/block.js:369
     472#: src/block/block.js:387
    467473msgid "codoc Block"
    468474msgstr "codoc ブロック"
    469475
    470 #: src/block/block.js:370
     476#: src/block/block.js:388
    471477msgid "plugin for codoc"
    472478msgstr "codoc プラグイン"
    473479
    474 #: src/block/block.js:371
     480#: src/block/block.js:389
    475481msgid "codoc-block"
    476482msgstr ""
     
    495501msgid "https://codoc.jp"
    496502msgstr "https://codoc.jp"
     503
     504#~ msgid "Subscriptions"
     505#~ msgstr "サブスクリプション"
    497506
    498507#~ msgid ""
  • codoc/trunk/languages/codoc.pot

    r3298415 r3350883  
    33msgstr ""
    44"Project-Id-Version: codoc\n"
    5 "POT-Creation-Date: 2025-05-22 12:24+0900\n"
     5"POT-Creation-Date: 2025-08-27 15:01+0900\n"
    66"PO-Revision-Date: 2023-04-30 17:49+0900\n"
    77"Last-Translator: \n"
     
    2323"X-Poedit-SearchPathExcluded-1: node_modules\n"
    2424
    25 #: class-codoc.php:320
     25#: class-codoc.php:171 class-codoc.php:320
    2626msgid "codoc Settings"
    2727msgstr ""
     
    340340msgstr ""
    341341
     342#: class-codoc.php:772
     343msgid "Settings"
     344msgstr ""
     345
    342346#: class-codoc.php:1095
    343347#, php-format
     
    374378msgstr ""
    375379
    376 #: src/block/block.js:108 src/block/block.js:258
     380#: src/block/block.js:108 src/block/block.js:276
    377381msgid "Unlisted"
    378382msgstr ""
     
    382386msgstr ""
    383387
    384 #: src/block/block.js:178
     388#: src/block/block.js:196
    385389msgid "individual sale"
    386390msgstr ""
    387391
    388 #: src/block/block.js:187
     392#: src/block/block.js:205
    389393msgid "price"
    390394msgstr ""
    391395
    392 #: src/block/block.js:187
     396#: src/block/block.js:205
    393397msgid "Displayed as the your suggested price"
    394398msgstr ""
    395399
    396 #: src/block/block.js:187
     400#: src/block/block.js:205
    397401msgid "【"
    398402msgstr ""
    399403
    400 #: src/block/block.js:199
     404#: src/block/block.js:217
    401405msgid "Pay-what-you-want"
    402406msgstr ""
    403407
    404 #: src/block/block.js:207
     408#: src/block/block.js:225
    405409msgid "Limited quantity sale"
    406410msgstr ""
    407411
    408 #: src/block/block.js:214
     412#: src/block/block.js:232
    409413msgid "Limited quantity"
    410414msgstr ""
    411415
    412 #: src/block/block.js:227
     416#: src/block/block.js:245
    413417msgid "Affiliate"
    414418msgstr ""
    415419
    416 #: src/block/block.js:234
     420#: src/block/block.js:252
    417421msgid "Rate"
    418422msgstr ""
    419423
    420 #: src/block/block.js:235
     424#: src/block/block.js:253
    421425msgid "You can offer affiliate marketing at a specified rate for purchasers."
    422426msgstr ""
    423427
    424 #: src/block/block.js:248
     428#: src/block/block.js:266
    425429msgid "Tipping"
    426430msgstr ""
    427431
    428 #: src/block/block.js:268
    429 msgid "Subscriptions"
    430 msgstr ""
    431 
    432 #: src/block/block.js:274
     432#: src/block/block.js:286
     433msgid "Reader Plans"
     434msgstr ""
     435
     436#: src/block/block.js:292
    433437msgid "Add"
    434438msgstr ""
    435439
    436 #: src/block/block.js:306
     440#: src/block/block.js:324
    437441msgid "To continue reading, ..."
    438442msgstr ""
    439443
    440444#. Plugin Name of the plugin/theme
    441 #: src/block/block.js:358
     445#: src/block/block.js:376
    442446msgid "codoc"
    443447msgstr ""
    444448
    445 #: src/block/block.js:359
     449#: src/block/block.js:377
    446450msgid ""
    447451"The area from this block down is a paid area that only authenticated codoc "
     
    449453msgstr ""
    450454
    451 #: src/block/block.js:369
     455#: src/block/block.js:387
    452456msgid "codoc Block"
    453457msgstr ""
    454458
    455 #: src/block/block.js:370
     459#: src/block/block.js:388
    456460msgid "plugin for codoc"
    457461msgstr ""
    458462
    459 #: src/block/block.js:371
     463#: src/block/block.js:389
    460464msgid "codoc-block"
    461465msgstr ""
  • codoc/trunk/package.json

    r2923260 r3350883  
    1010  "dependencies": {
    1111    "@wordpress/i18n": "^4.34.0",
    12     "cgb-scripts": "1.18.1",
     12    "cgb-scripts": "1.23.1",
     13    "sass": "^1.90.0",
    1314    "jed": "^1.1.1",
    1415    "po2json": "1.0.0-beta-3",
    1516    "universal-cookie": "^4.0.0"
     17  },
     18  "resolutions": {
     19    "**/node-sass": "file:./src/node-sass-compat"
    1620  }
    1721}
  • codoc/trunk/readme.txt

    r3341929 r3350883  
    55Requires at least: 4.6
    66Tested up to: 6.8.2
    7 Stable tag: 0.9.54.3
     7Stable tag: 0.9.55
    88Requires PHP: 5.4
    99License: GPLv2 or later
     
    2525== Installation ==
    2626
    27 1. Search for the "codoc" plugin from "Plugins → Add New" in your WordPress dashboard.
     271. Search for the "codoc" plugin from "Plugins → Add Plugin" in your WordPress dashboard.
    2828
    29292. Install and activate the codoc plugin.
  • codoc/trunk/src/block/block.js

    r3304552 r3350883  
    284284          <div class="codoc-subscription-title">
    285285            <label>
    286             { __('Subscriptions','codoc') }
     286            { __('Reader Plans','codoc') }
    287287            </label>
    288288            <a
Note: See TracChangeset for help on using the changeset viewer.