Skip to content

Commit

Permalink
Include and use block.json in build (pronamic/wp-pronamic-pay#185).
Browse files Browse the repository at this point in the history
  • Loading branch information
rvdsteege committed Sep 29, 2021
1 parent 68d90aa commit d158f44
Show file tree
Hide file tree
Showing 22 changed files with 289 additions and 143 deletions.
46 changes: 46 additions & 0 deletions js/dist/blocks/progress-bar/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "pronamic-pay/fundraising-progress-bar",
"title": "Fundraising Progress Bar",
"category": "pronamic-pay",
"attributes": {
"raisedLabel": {
"type": "string"
},
"raisedAmount": {
"type": "string",
"default": "0"
},
"targetLabel": {
"type": "string"
},
"targetAmount": {
"type": "string",
"default": "0"
},
"contributionsLabel": {
"type": "string"
},
"contributionsValue": {
"type": "string",
"default": "0"
},
"currencyCode": {
"type": "string",
"default": "EUR"
},
"currencyDecimals": {
"type": "string",
"default": "2"
},
"locale": {
"type": "string"
},
"color": {
"type": "string",
"default": "#f9461c"
}
},
"editorScript": "file:../../index.js",
"style": "pronamic-pay-fundraising",
"textdomain": "pronamic-pay-fundraising"
}
46 changes: 46 additions & 0 deletions js/dist/blocks/progress-circle/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "pronamic-pay/fundraising-progress-circle",
"title": "Fundraising Progress Circle",
"category": "pronamic-pay",
"attributes": {
"raisedLabel": {
"type": "string"
},
"raisedAmount": {
"type": "string",
"default": "0"
},
"targetLabel": {
"type": "string"
},
"targetAmount": {
"type": "string",
"default": "0"
},
"contributionsLabel": {
"type": "string"
},
"contributionsValue": {
"type": "string",
"default": "0"
},
"currencyCode": {
"type": "string",
"default": "EUR"
},
"currencyDecimals": {
"type": "string",
"default": "2"
},
"locale": {
"type": "string"
},
"color": {
"type": "string",
"default": "#f9461c"
}
},
"editorScript": "file:../../index.js",
"style": "pronamic-pay-fundraising",
"textdomain": "pronamic-pay-fundraising"
}
46 changes: 46 additions & 0 deletions js/dist/blocks/progress-text/block.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,46 @@
{
"name": "pronamic-pay/fundraising-progress-text",
"title": "Fundraising Progress",
"category": "pronamic-pay",
"attributes": {
"raisedLabel": {
"type": "string"
},
"raisedAmount": {
"type": "string",
"default": "0"
},
"targetLabel": {
"type": "string"
},
"targetAmount": {
"type": "string",
"default": "0"
},
"contributionsLabel": {
"type": "string"
},
"contributionsValue": {
"type": "string",
"default": "0"
},
"currencyCode": {
"type": "string",
"default": "EUR"
},
"currencyDecimals": {
"type": "string",
"default": "2"
},
"locale": {
"type": "string"
},
"color": {
"type": "string",
"default": "#f9461c"
}
},
"editorScript": "file:../../index.js",
"style": "pronamic-pay-fundraising",
"textdomain": "pronamic-pay-fundraising"
}
2 changes: 1 addition & 1 deletion js/dist/index.asset.php
Original file line number Diff line number Diff line change
@@ -1 +1 @@
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '25219edeefcdc46c94c6a3ec0b98dd50');
<?php return array('dependencies' => array('wp-block-editor', 'wp-blocks', 'wp-components', 'wp-element', 'wp-i18n', 'wp-polyfill'), 'version' => '64c9e4a710278e2a269c33a345d717e9');
2 changes: 1 addition & 1 deletion js/dist/index.js

Large diffs are not rendered by default.

6 changes: 5 additions & 1 deletion js/src/progress-bar/block.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "pronamic-pay/fundraising-progress-bar",
"title": "Fundraising Progress Bar",
"category": "pronamic-pay",
"attributes": {
"raisedLabel": {
Expand Down Expand Up @@ -38,5 +39,8 @@
"type": "string",
"default": "#f9461c"
}
}
},
"editorScript": "file:../index.js",
"style": "pronamic-pay-fundraising",
"textdomain": "pronamic-pay-fundraising"
}
6 changes: 5 additions & 1 deletion js/src/progress-circle/block.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "pronamic-pay/fundraising-progress-circle",
"title": "Fundraising Progress Circle",
"category": "pronamic-pay",
"attributes": {
"raisedLabel": {
Expand Down Expand Up @@ -38,5 +39,8 @@
"type": "string",
"default": "#f9461c"
}
}
},
"editorScript": "file:../index.js",
"style": "pronamic-pay-fundraising",
"textdomain": "pronamic-pay-fundraising"
}
6 changes: 5 additions & 1 deletion js/src/progress-text/block.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
{
"name": "pronamic-pay/fundraising-progress-text",
"title": "Fundraising Progress",
"category": "pronamic-pay",
"attributes": {
"raisedLabel": {
Expand Down Expand Up @@ -38,5 +39,8 @@
"type": "string",
"default": "#f9461c"
}
}
},
"editorScript": "file:../index.js",
"style": "pronamic-pay-fundraising",
"textdomain": "pronamic-pay-fundraising"
}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-12-17 13:04+0100","generator":"WP-CLI\/2.4.0","source":"js\/src\/progress-circle\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Fundraising Progress Circle":["Geldinzameling-voortgang (cirkel)"],"Displays fundraising information with circular progress chart.":["Toont informatie over geldinzameling met cirkeldiagram."]}}}
{"translation-revision-date":"2021-09-29 15:46+0200","generator":"WP-CLI\/2.5.0","source":"js\/src\/progress-circle\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Fundraising Progress Circle":["Geldinzameling-voortgang (cirkel)"],"Displays fundraising information with circular progress chart.":["Toont informatie over geldinzameling met cirkeldiagram."]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-12-17 13:04+0100","generator":"WP-CLI\/2.4.0","source":"js\/src\/progress-circle\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Raised":["Opbrengst"],"Target":["Doel"],"Contributions":["Bijdragen"]}}}
{"translation-revision-date":"2021-09-29 15:46+0200","generator":"WP-CLI\/2.5.0","source":"js\/src\/progress-circle\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Raised":["Opbrengst"],"Target":["Doel"],"Contributions":["Bijdragen"]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-12-17 13:04+0100","generator":"WP-CLI\/2.4.0","source":"js\/dist\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Raised":["Opbrengst"],"Target":["Doel"],"Contributions":["Bijdragen"],"Fundraising Progress Circle":["Geldinzameling-voortgang (cirkel)"],"Displays fundraising information with circular progress chart.":["Toont informatie over geldinzameling met cirkeldiagram."],"Raised:":["Opbrengst:"],"Target:":["Doel:"],"Fundraising Progress Bar":["Geldinzameling-voortgang (balk)"],"Displays fundraising raised and target amount with progress bar.":["Toont geldinzameling opbrengst en doelbedrag met voortgangsbalk."],"contributions":["bijdragen"],"Fundraising Progress":["Geldinzameling-voortgang"],"Displays fundraising raised amount and number of contributions.":["Toont opgehaald bedrag en het aantal bijdragen voor geldinzameling."]}}}
{"translation-revision-date":"2021-09-29 15:46+0200","generator":"WP-CLI\/2.5.0","source":"js\/dist\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Fundraising Progress Circle":["Geldinzameling-voortgang (cirkel)"],"Displays fundraising information with circular progress chart.":["Toont informatie over geldinzameling met cirkeldiagram."],"Raised":["Opbrengst"],"Target":["Doel"],"Contributions":["Bijdragen"],"Fundraising Progress Bar":["Geldinzameling-voortgang (balk)"],"Displays fundraising raised and target amount with progress bar.":["Toont geldinzameling opbrengst en doelbedrag met voortgangsbalk."],"Raised:":["Opbrengst:"],"Target:":["Doel:"],"Fundraising Progress":["Geldinzameling-voortgang"],"Displays fundraising raised amount and number of contributions.":["Toont opgehaald bedrag en het aantal bijdragen voor geldinzameling."],"contributions":["bijdragen"]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-12-17 13:04+0100","generator":"WP-CLI\/2.4.0","source":"js\/src\/progress-bar\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Fundraising Progress Bar":["Geldinzameling-voortgang (balk)"],"Displays fundraising raised and target amount with progress bar.":["Toont geldinzameling opbrengst en doelbedrag met voortgangsbalk."]}}}
{"translation-revision-date":"2021-09-29 15:46+0200","generator":"WP-CLI\/2.5.0","source":"js\/src\/progress-bar\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Fundraising Progress Bar":["Geldinzameling-voortgang (balk)"],"Displays fundraising raised and target amount with progress bar.":["Toont geldinzameling opbrengst en doelbedrag met voortgangsbalk."]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-12-17 13:04+0100","generator":"WP-CLI\/2.4.0","source":"js\/src\/progress-text\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Raised":["Opbrengst"],"Contributions":["Bijdragen"],"contributions":["bijdragen"]}}}
{"translation-revision-date":"2021-09-29 15:46+0200","generator":"WP-CLI\/2.5.0","source":"js\/src\/progress-text\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Raised":["Opbrengst"],"Contributions":["Bijdragen"],"contributions":["bijdragen"]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-12-17 13:04+0100","generator":"WP-CLI\/2.4.0","source":"js\/src\/progress-text\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Fundraising Progress":["Geldinzameling-voortgang"],"Displays fundraising raised amount and number of contributions.":["Toont opgehaald bedrag en het aantal bijdragen voor geldinzameling."]}}}
{"translation-revision-date":"2021-09-29 15:46+0200","generator":"WP-CLI\/2.5.0","source":"js\/src\/progress-text\/index.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Fundraising Progress":["Geldinzameling-voortgang"],"Displays fundraising raised amount and number of contributions.":["Toont opgehaald bedrag en het aantal bijdragen voor geldinzameling."]}}}
Original file line number Diff line number Diff line change
@@ -1 +1 @@
{"translation-revision-date":"2020-12-17 13:04+0100","generator":"WP-CLI\/2.4.0","source":"js\/src\/progress-bar\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Raised":["Opbrengst"],"Target":["Doel"],"Raised:":["Opbrengst:"],"Target:":["Doel:"]}}}
{"translation-revision-date":"2021-09-29 15:46+0200","generator":"WP-CLI\/2.5.0","source":"js\/src\/progress-bar\/edit.js","domain":"messages","locale_data":{"messages":{"":{"domain":"messages","lang":"nl","plural-forms":"nplurals=2; plural=(n != 1);"},"Raised":["Opbrengst"],"Target":["Doel"],"Raised:":["Opbrengst:"],"Target:":["Doel:"]}}}
Binary file modified languages/pronamic-pay-fundraising-nl_NL.mo
Binary file not shown.
69 changes: 44 additions & 25 deletions languages/pronamic-pay-fundraising-nl_NL.po
Original file line number Diff line number Diff line change
Expand Up @@ -5,15 +5,15 @@ msgstr ""
"Project-Id-Version: Pronamic Pay Fundraising Add-On 1.1.0\n"
"Report-Msgid-Bugs-To: https://wordpress.org/support/plugin/pronamic-pay-"
"fundraising\n"
"POT-Creation-Date: 2020-06-02T11:56:57+00:00\n"
"PO-Revision-Date: 2020-12-17 13:04+0100\n"
"POT-Creation-Date: 2021-09-29T13:45:59+00:00\n"
"PO-Revision-Date: 2021-09-29 15:46+0200\n"
"Last-Translator: Reüel van der Steege <reuel@pronamic.nl>\n"
"Language-Team: \n"
"Language: nl\n"
"MIME-Version: 1.0\n"
"Content-Type: text/plain; charset=UTF-8\n"
"Content-Transfer-Encoding: 8bit\n"
"X-Generator: Poedit 2.4.1\n"
"X-Generator: Poedit 2.4.2\n"
"X-Domain: pronamic-pay-fundraising\n"
"Plural-Forms: nplurals=2; plural=(n != 1);\n"

Expand All @@ -37,54 +37,73 @@ msgstr "Pronamic"
msgid "https://www.pronamic.eu/"
msgstr "https://www.pronamic.eu/"

#: js/dist/index.js:6 js/src/progress-bar/edit.js:51
#: js/dist/index.js:1 js/src/progress-circle/index.js:21
msgid "Fundraising Progress Circle"
msgstr "Geldinzameling-voortgang (cirkel)"

#: js/dist/index.js:1 js/src/progress-circle/index.js:22
msgid "Displays fundraising information with circular progress chart."
msgstr "Toont informatie over geldinzameling met cirkeldiagram."

#: js/dist/index.js:1 js/src/progress-bar/edit.js:51
#: js/src/progress-circle/edit.js:31 js/src/progress-circle/edit.js:58
#: js/src/progress-text/edit.js:23 js/src/progress-text/edit.js:38
msgid "Raised"
msgstr "Opbrengst"

#: js/dist/index.js:6 js/src/progress-bar/edit.js:44
#: js/dist/index.js:1 js/src/progress-bar/edit.js:44
#: js/src/progress-circle/edit.js:35 js/src/progress-circle/edit.js:51
msgid "Target"
msgstr "Doel"

#: js/dist/index.js:6 js/src/progress-circle/edit.js:39
#: js/dist/index.js:1 js/src/progress-circle/edit.js:39
#: js/src/progress-circle/edit.js:65 js/src/progress-text/edit.js:45
msgid "Contributions"
msgstr "Bijdragen"

#: js/dist/index.js:6 js/src/progress-circle/index.js:21
msgid "Fundraising Progress Circle"
msgstr "Geldinzameling-voortgang (cirkel)"
#: js/dist/index.js:1 js/src/progress-bar/index.js:21
msgid "Fundraising Progress Bar"
msgstr "Geldinzameling-voortgang (balk)"

#: js/dist/index.js:6 js/src/progress-circle/index.js:22
msgid "Displays fundraising information with circular progress chart."
msgstr "Toont informatie over geldinzameling met cirkeldiagram."
#: js/dist/index.js:1 js/src/progress-bar/index.js:22
msgid "Displays fundraising raised and target amount with progress bar."
msgstr "Toont geldinzameling opbrengst en doelbedrag met voortgangsbalk."

#: js/dist/index.js:6 js/src/progress-bar/edit.js:29
#: js/dist/index.js:1 js/src/progress-bar/edit.js:29
msgid "Raised:"
msgstr "Opbrengst:"

#: js/dist/index.js:6 js/src/progress-bar/edit.js:33
#: js/dist/index.js:1 js/src/progress-bar/edit.js:33
msgid "Target:"
msgstr "Doel:"

#: js/dist/index.js:6 js/src/progress-bar/index.js:21
msgid "Fundraising Progress Bar"
msgstr "Geldinzameling-voortgang (balk)"
#: js/dist/index.js:1 js/src/progress-text/index.js:21
msgid "Fundraising Progress"
msgstr "Geldinzameling-voortgang"

#: js/dist/index.js:6 js/src/progress-bar/index.js:22
msgid "Displays fundraising raised and target amount with progress bar."
msgstr "Toont geldinzameling opbrengst en doelbedrag met voortgangsbalk."
#: js/dist/index.js:1 js/src/progress-text/index.js:22
msgid "Displays fundraising raised amount and number of contributions."
msgstr "Toont opgehaald bedrag en het aantal bijdragen voor geldinzameling."

#: js/dist/index.js:6 js/src/progress-text/edit.js:27
#: js/dist/index.js:1 js/src/progress-text/edit.js:27
msgid "contributions"
msgstr "bijdragen"

#: js/dist/index.js:6 js/src/progress-text/index.js:21
#: js/dist/blocks/progress-bar/block.json js/src/progress-bar/block.json
msgctxt "block title"
msgid "Fundraising Progress Bar"
msgstr "Geldinzameling-voortgang (balk)"

#: js/dist/blocks/progress-circle/block.json js/src/progress-circle/block.json
msgctxt "block title"
msgid "Fundraising Progress Circle"
msgstr "Geldinzameling-voortgang (cirkel)"

#: js/dist/blocks/progress-text/block.json js/src/progress-text/block.json
msgctxt "block title"
msgid "Fundraising Progress"
msgstr "Geldinzameling-voortgang"

#: js/dist/index.js:6 js/src/progress-text/index.js:22
msgid "Displays fundraising raised amount and number of contributions."
msgstr "Toont opgehaald bedrag en het aantal bijdragen voor geldinzameling."
#~ msgctxt "block title"
#~ msgid "Fundraising Progresss"
#~ msgstr "Geldinzameling-voortgang"
Loading

0 comments on commit d158f44

Please sign in to comment.