Merge branch 'develop' of https://github.com/tainacan/tainacan into develop

This commit is contained in:
vnmedeiros 2021-06-11 15:00:29 -03:00
commit d24cbba976
27 changed files with 547 additions and 496 deletions

133
package-lock.json generated
View File

@ -2373,15 +2373,36 @@
}
},
"browserslist": {
"version": "4.12.0",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.12.0.tgz",
"integrity": "sha512-UH2GkcEDSI0k/lRkuDSzFl9ZZ87skSy9w2XAn1MsZnL+4c4rqbBd3e82UWHbYDpztABrPBhZsTEeuxVfHppqDg==",
"version": "4.16.6",
"resolved": "https://registry.npmjs.org/browserslist/-/browserslist-4.16.6.tgz",
"integrity": "sha512-Wspk/PqO+4W9qp5iUTJsa1B/QrYn1keNCcEP5OvP7WBwT4KaDly0uONYmC6Xa3Z5IqnUgS0KcgLYu1l74x0ZXQ==",
"dev": true,
"requires": {
"caniuse-lite": "^1.0.30001043",
"electron-to-chromium": "^1.3.413",
"node-releases": "^1.1.53",
"pkg-up": "^2.0.0"
"caniuse-lite": "^1.0.30001219",
"colorette": "^1.2.2",
"electron-to-chromium": "^1.3.723",
"escalade": "^3.1.1",
"node-releases": "^1.1.71"
},
"dependencies": {
"caniuse-lite": {
"version": "1.0.30001228",
"resolved": "https://registry.npmjs.org/caniuse-lite/-/caniuse-lite-1.0.30001228.tgz",
"integrity": "sha512-QQmLOGJ3DEgokHbMSA8cj2a+geXqmnpyOFT0lhQV6P3/YOJvGDEwoedcwxEQ30gJIwIIunHIicunJ2rzK5gB2A==",
"dev": true
},
"electron-to-chromium": {
"version": "1.3.736",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.736.tgz",
"integrity": "sha512-DY8dA7gR51MSo66DqitEQoUMQ0Z+A2DSXFi7tK304bdTVqczCAfUuyQw6Wdg8hIoo5zIxkU1L24RQtUce1Ioig==",
"dev": true
},
"node-releases": {
"version": "1.1.72",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.72.tgz",
"integrity": "sha512-LLUo+PpH3dU6XizX3iVoubUNheF/owjXCZZ5yACDxNnPtgFuludV1ZL3ayK1kVep42Rmm0+R9/Y60NQbZ2bifw==",
"dev": true
}
}
},
"buefy": {
@ -2778,6 +2799,12 @@
"resolved": "https://registry.npmjs.org/color-name/-/color-name-1.1.3.tgz",
"integrity": "sha1-p9BVi9icQveV3UIyj3QIMcpTvCU="
},
"colorette": {
"version": "1.2.2",
"resolved": "https://registry.npmjs.org/colorette/-/colorette-1.2.2.tgz",
"integrity": "sha512-MKGMzyfeuutC/ZJ1cba9NqcNpfeqMUcYmyF1ZFY6/Cn7CNSAKx6a+s48sqLqyAiZuaP2TcqMhoo+dlwFnVxT9w==",
"dev": true
},
"combined-stream": {
"version": "1.0.8",
"resolved": "https://registry.npmjs.org/combined-stream/-/combined-stream-1.0.8.tgz",
@ -3444,9 +3471,9 @@
"dev": true
},
"dns-packet": {
"version": "1.3.1",
"resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.1.tgz",
"integrity": "sha512-0UxfQkMhYAUaZI+xrNZOz/as5KgDU0M/fQ9b6SpkyLbk3GEswDi6PADJVaYJradtRVsRIlF1zLyOodbcTCDzUg==",
"version": "1.3.4",
"resolved": "https://registry.npmjs.org/dns-packet/-/dns-packet-1.3.4.tgz",
"integrity": "sha512-BQ6F4vycLXBvdrJZ6S3gZewt6rcrks9KBgM9vrhW+knGRqc8uEdT7fuCwloc7nny5xNoMJ17HGH0R/6fpo8ECA==",
"dev": true,
"requires": {
"ip": "^1.1.0",
@ -3524,12 +3551,6 @@
"integrity": "sha512-7vmuyh5+kuUyJKePhQfRQBhXV5Ce+RnaeeQArKu1EAMpL3WbgMt5WG6uQZpEVvYSSsxMXRKOewtDk9RaTKXRlA==",
"dev": true
},
"electron-to-chromium": {
"version": "1.3.438",
"resolved": "https://registry.npmjs.org/electron-to-chromium/-/electron-to-chromium-1.3.438.tgz",
"integrity": "sha512-QKMcpfA/fCOnqFHsZvKr2haQQb3eXkDI17zT+4hHxJJThyN5nShcG6q1VR8vRiE/2GCJM+0p3PzinYknkdsBYg==",
"dev": true
},
"elliptic": {
"version": "6.5.4",
"resolved": "https://registry.npmjs.org/elliptic/-/elliptic-6.5.4.tgz",
@ -3613,6 +3634,12 @@
"is-arrayish": "^0.2.1"
}
},
"escalade": {
"version": "3.1.1",
"resolved": "https://registry.npmjs.org/escalade/-/escalade-3.1.1.tgz",
"integrity": "sha512-k0er2gUkLf8O0zKJiAhmkTnJlTvINGv7ygDNPbeIsX/TJjGJZHuh9B2UxbsaEkmlEo9MfhrSzmhIlhRlI2GXnw==",
"dev": true
},
"escape-html": {
"version": "1.0.3",
"resolved": "https://registry.npmjs.org/escape-html/-/escape-html-1.0.3.tgz",
@ -6440,24 +6467,6 @@
"json5": "^0.5.0"
}
},
"locate-path": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/locate-path/-/locate-path-2.0.0.tgz",
"integrity": "sha1-K1aLJl7slExtnA3pw9u7ygNUzY4=",
"dev": true,
"requires": {
"p-locate": "^2.0.0",
"path-exists": "^3.0.0"
},
"dependencies": {
"path-exists": {
"version": "3.0.0",
"resolved": "https://registry.npmjs.org/path-exists/-/path-exists-3.0.0.tgz",
"integrity": "sha1-zg6+ql94yxiSXqfYENe1mwEP1RU=",
"dev": true
}
}
},
"lodash": {
"version": "4.17.21",
"resolved": "https://registry.npmjs.org/lodash/-/lodash-4.17.21.tgz",
@ -7004,12 +7013,6 @@
"vm-browserify": "^1.0.1"
}
},
"node-releases": {
"version": "1.1.55",
"resolved": "https://registry.npmjs.org/node-releases/-/node-releases-1.1.55.tgz",
"integrity": "sha512-H3R3YR/8TjT5WPin/wOoHOUPHgvj8leuU/Keta/rwelEQN9pA/S2Dx8/se4pZ2LBxSd0nAGzsNzhqwa77v7F1w==",
"dev": true
},
"node-sass": {
"version": "4.14.1",
"resolved": "https://registry.npmjs.org/node-sass/-/node-sass-4.14.1.tgz",
@ -7405,24 +7408,6 @@
"integrity": "sha512-Y3W0wlRPK8ZMRbNq97l4M5otioeA5lm1z7bkNkxCka8HSPjR0xRWmpCmc9utiaLP9Jb1eD8BgeIxTW4AIF45Pg==",
"dev": true
},
"p-limit": {
"version": "1.3.0",
"resolved": "https://registry.npmjs.org/p-limit/-/p-limit-1.3.0.tgz",
"integrity": "sha512-vvcXsLAJ9Dr5rQOPk7toZQZJApBl2K4J6dANSsEuh6QI41JYcsS/qhTGa9ErIUUgK3WNQoJYvylxvjqmiqEA9Q==",
"dev": true,
"requires": {
"p-try": "^1.0.0"
}
},
"p-locate": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/p-locate/-/p-locate-2.0.0.tgz",
"integrity": "sha1-IKAQOyIqcMj9OcwuWAaA893l7EM=",
"dev": true,
"requires": {
"p-limit": "^1.1.0"
}
},
"p-map": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/p-map/-/p-map-2.1.0.tgz",
@ -7438,12 +7423,6 @@
"retry": "^0.12.0"
}
},
"p-try": {
"version": "1.0.0",
"resolved": "https://registry.npmjs.org/p-try/-/p-try-1.0.0.tgz",
"integrity": "sha1-y8ec26+P1CKOE/Yh8rGiN8GyB7M=",
"dev": true
},
"pako": {
"version": "1.0.11",
"resolved": "https://registry.npmjs.org/pako/-/pako-1.0.11.tgz",
@ -7669,26 +7648,6 @@
}
}
},
"pkg-up": {
"version": "2.0.0",
"resolved": "https://registry.npmjs.org/pkg-up/-/pkg-up-2.0.0.tgz",
"integrity": "sha1-yBmscoBZpGHKscOImivjxJoATX8=",
"dev": true,
"requires": {
"find-up": "^2.1.0"
},
"dependencies": {
"find-up": {
"version": "2.1.0",
"resolved": "https://registry.npmjs.org/find-up/-/find-up-2.1.0.tgz",
"integrity": "sha1-RdG35QbHF93UgndaK3eSCjwMV6c=",
"dev": true,
"requires": {
"locate-path": "^2.0.0"
}
}
}
},
"popper.js": {
"version": "1.16.1",
"resolved": "https://registry.npmjs.org/popper.js/-/popper.js-1.16.1.tgz",
@ -12064,9 +12023,9 @@
}
},
"ws": {
"version": "6.2.1",
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.1.tgz",
"integrity": "sha512-GIyAXC2cB7LjvpgMt9EKS2ldqr0MTrORaleiOno6TweZ6r3TKtoFQWay/2PceJ3RuBasOHzXNn5Lrw1X0bEjqA==",
"version": "6.2.2",
"resolved": "https://registry.npmjs.org/ws/-/ws-6.2.2.tgz",
"integrity": "sha512-zmhltoSR8u1cnDsD43TX59mzoMZsLKqUweyYBAIvTngR3shc0W6aOZylZmq/7hqyVxPdi+5Ud2QInblgyE72fw==",
"dev": true,
"requires": {
"async-limiter": "~1.0.0"

View File

@ -129,7 +129,7 @@
padding-left: 1px; }
.wp-block-tainacan-modal .modal-checkbox-list svg.components-checkbox-control__checked,
.wp-block-tainacan-modal .modal-radio-list .components-base-control__field svg.components-checkbox-control__checked {
fill: inherit; }
fill: black; }
.wp-block-tainacan-modal .modal-checkbox-list .modal-checkbox-list-item,
.wp-block-tainacan-modal .modal-checkbox-list .components-radio-control__option,
.wp-block-tainacan-modal .modal-radio-list .components-base-control__field .modal-checkbox-list-item,
@ -162,9 +162,6 @@
.wp-block-tainacan-modal .modal-radio-list .components-base-control__field .components-radio-control__option .components-radio-control__input {
min-width: 20px;
min-height: 20px; }
.wp-block-tainacan-modal .modal-checkbox-list .components-radio-control__option .components-radio-control__input::before,
.wp-block-tainacan-modal .modal-radio-list .components-base-control__field .components-radio-control__option .components-radio-control__input::before {
border-width: 0px; }
.wp-block-tainacan-modal .modal-loadmore-section {
display: flex;
align-items: baseline;

View File

@ -1,6 +1,6 @@
{
"version": 3,
"mappings": "AAIA,KAAM;EACF,sBAAsB,CAAC,QAAU;EACjC,sBAAsB,CAAC,QAAU;EACjC,sBAAsB,CAAC,QAAU;EACjC,sBAAsB,CAAC,QAAU;EACjC,sBAAsB,CAAC,QAAU;EACjC,sBAAsB,CAAC,QAAU;EACjC,wBAAwB,CAAC,QAAY;;AAIzC,kDAAmD;EAC/C,WAAW,EAAE,iBAAiB;E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AAI,EAAE,KAAK;IAGf;;;gHACkC;MAC9B,OAAO,EAAE,IAAI;MACb,eAAe,EAAE,UAAU;MAE3B;;;sHAAI;QACA,KAAK,EAAE,IAAI;QACX,MAAM,EAAE,IAAI;QACZ,YAAY,EAAE,IAAI;MAEtB;;;wHAAM;QACF,WAAW,EAAE,MAAM;QACnB,aAAa,EAAE,QAAQ;QACvB,QAAQ,EAAE,MAAM;QAChB,OAAO,EAAE,YAAY;QACrB,SAAS,EAAE,GAAG;QAEd,yCAA0C;UAP9C;;;4HAAM;YAO0C,SAAS,EAAE,GAAG;IAGlE;iJAAmE;MAC/D,SAAS,EAAE,IAAI;MACf,UAAU,EAAE,IAAI;EAGxB,gDAAwB;IACpB,OAAO,EAAE,IAAI;IACb,WAAW,EAAE,QAAQ;IACrB,eAAe,EAAE,MAAM;IAEvB,kDAAE;MACE,KAAK,EAAE,oCAAmC;MAC1C,YAAY,EAAE,IAAI;MAClB,UAAU,EAAE,GAAG;EAGvB,2CAAmB;IACf,UAAU,EAAE,iBAAiB;IAC7B,OAAO,EAAE,IAAI;IACb,WAAW,EAAE,QAAQ;IACrB,eAAe,EAAE,aAAa;IAC9B,OAAO,EAAE,gBAAgB;IACzB,MAAM,EAAE,OAAO;IAEf,6CAAE;MACE,OAAO,EAAE,MAAM;MACf,KAAK,EAAE,oCAAmC",
"sources": ["../../views/gutenberg-blocks/gutenberg-blocks-style.scss","../../views/gutenberg-blocks/gutenberg-blocks-variables.scss"],
"names": [],
"file": "tainacan-gutenberg-block-common-styles.css"

View File

@ -261,7 +261,7 @@ class Test_Importer extends Importer {
<h5><?php _e('Keyword Search', 'tainacan'); ?></h5>
</div>
<div class="help-tooltip-body">
<p><?php _e('Optionally ype one keyword which it will be used to find images in flickr (e.g. dogs, cat). Default is "kitten".', 'tainacan'); ?></p>
<p><?php _e('Optionally type one keyword which it will be used to find images in flickr (e.g. dogs, cat). Default is "kitten".', 'tainacan'); ?></p>
</div>
</div>
</span>

View File

@ -93,6 +93,10 @@
&nbsp;
<!-- nothing to show on header -->
</th>
<!-- Status icon -->
<th v-if="isOnAllCollectionsTab">
&nbsp;
</th>
<!-- Thumbnail -->
<th class="thumbnail-cell">
<div class="th-wrap">{{ $i18n.get('label_thumbnail') }}</div>
@ -137,6 +141,25 @@
class="checkbox-cell">
<b-checkbox v-model="selectedCollections[index]"/>
</td>
<!-- Status icon -->
<td
v-if="isOnAllCollectionsTab"
class="status-cell">
<span
v-if="$statusHelper.hasIcon(collection.status)"
class="icon has-text-gray"
v-tooltip="{
content: $i18n.get('status_' + collection.status),
autoHide: true,
classes: ['tooltip', 'repository-tooltip'],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(collection.status)"
/>
</span>
</td>
<!-- Thumbnail -->
<td
class="thumbnail-cell column-default-width"
@ -315,7 +338,7 @@ export default {
page: 1,
collectionsPerPage: 12,
collections: Array,
isOnTrash: false
status: ''
},
data(){
return {
@ -328,6 +351,14 @@ export default {
contextMenuCollection: null
}
},
computed: {
isOnTrash() {
return this.status == 'trash';
},
isOnAllCollectionsTab() {
return !this.status || (this.status.indexOf(',') > 0);
}
},
watch: {
collections() {
this.selectedCollections = [];
@ -357,7 +388,7 @@ export default {
this.selectedCollections.splice(i, 1, !this.allCollectionsOnPageSelected);
},
getTotalItems(total_items) {
return Number(total_items['publish']) + Number(total_items['private']);
return Number(total_items['publish']) + Number(total_items['private']) + Number(total_items['draft']);
},
deleteOneCollection(collectionId) {
this.$buefy.modal.open({

View File

@ -152,7 +152,7 @@
<!-- Title -->
<div
:style="{ 'padding-left': !collectionId || !($route.query.iframemode || collection && collection.current_user_can_bulk_edit) || $route.query.readmode ? '0.5em !important' : '2.75em' }"
:style="{ 'padding-left': !collectionId || !($route.query.iframemode || collection && collection.current_user_can_bulk_edit) || $route.query.readmode ? '0.5em !important' : (isOnAllItemsTabs ? '1.875em' : '2.75em') }"
class="metadata-title">
<p
v-tooltip="{
@ -167,6 +167,20 @@
}"
@click.left="onClickItem($event, item)"
@click.right="onRightClickItem($event, item)">
<span
v-if="isOnAllItemsTabs && $statusHelper.hasIcon(item.status)"
class="icon has-text-gray"
v-tooltip="{
content: $i18n.get('status_' + item.status),
autoHide: true,
classes: ['tooltip', isRepositoryLevel ? 'repository-tooltip' : ''],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(item.status)"
/>
</span>
{{ item.title != undefined ? item.title : '' }}
</p>
</div>
@ -281,12 +295,28 @@
<!-- Title -->
<div
:style="{
'padding-left': !collectionId || !($route.query.iframemode || collection && collection.current_user_can_bulk_edit) || $route.query.readmode ? '0 !important' : '1em'
'padding-left': !collectionId || !($route.query.iframemode || collection && collection.current_user_can_bulk_edit) || $route.query.readmode ? '0 !important' : (isOnAllItemsTabs ? '0.5em' : '1em')
}"
@click.left="onClickItem($event, item)"
@click.right="onRightClickItem($event, item)"
class="metadata-title">
<p>{{ item.title != undefined ? item.title : '' }}</p>
<p>
<span
v-if="isOnAllItemsTabs && $statusHelper.hasIcon(item.status)"
class="icon has-text-gray"
v-tooltip="{
content: $i18n.get('status_' + item.status),
autoHide: true,
classes: ['tooltip', isRepositoryLevel ? 'repository-tooltip' : ''],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(item.status)"
/>
</span>
{{ item.title != undefined ? item.title : '' }}
</p>
</div>
<!-- Thumbnail -->
@ -386,7 +416,7 @@
<!-- Title -->
<div
:style="{
'padding-left': !collectionId || $route.query.readmode || !($route.query.iframemode || collection && collection.current_user_can_bulk_edit) ? '0.5em !important' : '2.75em'
'padding-left': !collectionId || $route.query.readmode || !($route.query.iframemode || collection && collection.current_user_can_bulk_edit) ? '0.5em !important' : (isOnAllItemsTabs ? '2.125em' : '2.75em'),
}"
class="metadata-title">
<p
@ -402,6 +432,20 @@
}"
@click.left="onClickItem($event, item)"
@click.right="onRightClickItem($event, item)">
<span
v-if="isOnAllItemsTabs && $statusHelper.hasIcon(item.status)"
class="icon has-text-gray"
v-tooltip="{
content: $i18n.get('status_' + item.status),
autoHide: true,
classes: ['tooltip', isRepositoryLevel ? 'repository-tooltip' : ''],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(item.status)"
/>
</span>
{{ item.title != undefined ? item.title : '' }}
</p>
</div>
@ -569,6 +613,20 @@
:style="{
'padding-left': !collectionId || !($route.query.iframemode || collection && collection.current_user_can_bulk_edit) || $route.query.readmode ? '1.5em !important' : '2.75em'
}">
<span
v-if="isOnAllItemsTabs && $statusHelper.hasIcon(item.status)"
class="icon has-text-gray"
v-tooltip="{
content: $i18n.get('status_' + item.status),
autoHide: true,
classes: ['tooltip', isRepositoryLevel ? 'repository-tooltip' : ''],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(item.status)"
/>
</span>
<p
v-tooltip="{
delay: {
@ -725,6 +783,12 @@
&nbsp;
<!-- nothing to show on header for checkboxes -->
</th>
<!-- Status -->
<th v-if="isOnAllItemsTabs">
&nbsp;
</th>
<!-- Displayed Metadata -->
<th
v-for="(column, index) in displayedMetadata"
@ -771,7 +835,24 @@
:value="getSelectedItemChecked(item.id)"
@input="setSelectedItemChecked(item.id)"/>
</td>
<td
v-if="isOnAllItemsTabs"
class="status-cell">
<span
v-if="$statusHelper.hasIcon(item.status)"
class="icon has-text-gray"
v-tooltip="{
content: $i18n.get('status_' + item.status),
autoHide: true,
classes: ['tooltip', isRepositoryLevel ? 'repository-tooltip' : ''],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(item.status)"
/>
</span>
</td>
<!-- Item Displayed Metadata -->
<td
:key="columnIndex"
@ -978,7 +1059,25 @@
</div>
<!-- Title -->
<div class="metadata-title">
<div
:style="{
'padding-left': !collectionId || !($route.query.iframemode || collection && collection.current_user_can_bulk_edit) || $route.query.readmode ? '1.5em !important' : (isOnAllItemsTabs ? '2.0em' : '2.75em'),
}"
class="metadata-title">
<span
v-if="isOnAllItemsTabs && $statusHelper.hasIcon(item.status)"
class="icon has-text-gray"
v-tooltip="{
content: $i18n.get('status_' + item.status),
autoHide: true,
classes: ['tooltip', isRepositoryLevel ? 'repository-tooltip' : ''],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(item.status)"
/>
</span>
<p
v-tooltip="{
delay: {
@ -1162,6 +1261,10 @@ export default {
totalPages(){
return Math.ceil(Number(this.totalItems)/Number(this.itemsPerPage));
},
isOnAllItemsTabs() {
const currentStatus = this.getStatus();
return !currentStatus || (currentStatus.indexOf(',') > 0);
}
},
watch: {
isAllItemsSelected(value) {
@ -1212,6 +1315,7 @@ export default {
...mapGetters('search', [
'getOrder',
'getOrderBy',
'getStatus',
'getSelectedItems',
'getHighlightedItem',
'getItemsPerPage'

View File

@ -52,6 +52,10 @@
&nbsp;
<!-- nothing to show on header -->
</th>
<!-- Status icon -->
<th v-if="isOnAllTaxonomiesTab">
&nbsp;
</th>
<!-- Name -->
<th>
<div class="th-wrap">{{ $i18n.get('label_name') }}</div>
@ -86,6 +90,25 @@
<b-checkbox
v-model="selected[index]"/>
</td>
<!-- Status icon -->
<td
v-if="isOnAllTaxonomiesTab"
class="status-cell">
<span
v-if="$statusHelper.hasIcon(taxonomy.status)"
class="icon has-text-gray"
v-tooltip="{
content: $i18n.get('status_' + taxonomy.status),
autoHide: true,
classes: ['tooltip', 'repository-tooltip'],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(taxonomy.status)"
/>
</span>
</td>
<!-- Name -->
<td
class="column-default-width column-main-content"
@ -204,7 +227,7 @@
page: 1,
taxonomiesPerPage: 12,
taxonomies: Array,
isOnTrash: false
status: ''
},
data() {
return {
@ -214,6 +237,14 @@
adminUrl: tainacan_plugin.admin_url
}
},
computed: {
isOnTrash() {
return this.status == 'trash';
},
isOnAllTaxonomiesTab() {
return !this.status || (this.status.indexOf(',') > 0);
}
},
watch: {
taxonomies() {
this.selected = [];

View File

@ -295,7 +295,6 @@ export default {
if (currentParams.admin_view_mode != undefined)
delete currentParams.admin_view_mode;
// Handles pagination of this link
delete currentParams.paged;
if (this.itemId != null && this.itemId != undefined)

View File

@ -4,7 +4,26 @@
class="level secondary-page"
:class="{'is-menu-compressed': isMenuCompressed, 'is-repository-level' : isRepositoryLevel}">
<h1 v-if="isRepositoryLevel">{{ repositoryName }}</h1>
<h1 v-else>{{ $i18n.get('collection') + '' }} <span class="has-text-weight-bold">{{ collection && collection.name ? collection.name : '' }}</span></h1>
<h1 v-else>
{{ $i18n.get('collection') + '' }}
<span class="has-text-weight-bold">
{{ collection && collection.name ? collection.name : '' }}
<span
v-if="collection.status && $statusHelper.hasIcon(collection.status)"
class="icon has-text-white"
v-tooltip="{
content: $i18n.get('status_' + collection.status),
autoHide: true,
classes: ['tooltip'],
placement: 'auto-start'
}">
<i
class="tainacan-icon tainacan-icon-1em"
:class="$statusHelper.getIcon(collection.status)"
/>
</span>
</span>
</h1>
<ul class="repository-subheader-icons">
<li

View File

@ -3,15 +3,15 @@
<ul>
<li
@click="onChangeTab('')"
:class="{ 'is-active': status == undefined || status == ''}"
:class="{ 'is-active': status == undefined || status == '' || status == 'publish,private,draft' }"
v-tooltip="{
content: $i18n.get('info_items_tab_all'),
autoHide: true,
placement: 'auto',
}">
<a :style="{ fontWeight: 'bold', color: 'var(--tainacan-gray5) !important' }">
{{ $i18n.get('label_all_published_items') }}
<span class="has-text-gray">&nbsp;{{ (isRepositoryLevel && repositoryTotalItems) ? ` (${ repositoryTotalItems.private + repositoryTotalItems.publish })` : (collection && collection.total_items ? ` (${Number(collection.total_items.private) + Number(collection.total_items.publish)})` : '') }}</span>
{{ $i18n.get('label_all_items') }}
<span class="has-text-gray">&nbsp;{{ (isRepositoryLevel && repositoryTotalItems) ? ` (${ repositoryTotalItems.private + repositoryTotalItems.publish + repositoryTotalItems.draft })` : (collection && collection.total_items ? ` (${Number(collection.total_items.private) + Number(collection.total_items.publish) + Number(collection.total_items.draft)})` : '') }}</span>
</a>
</li>
<li
@ -20,7 +20,7 @@
:key="index"
@click="onChangeTab(statusOption.slug)"
:class="{ 'is-active': status == statusOption.slug}"
:style="{ marginRight: statusOption.slug == 'private' ? 'auto' : '', marginLeft: statusOption.slug == 'draft' ? 'auto' : '' }"
:style="{ marginRight: statusOption.slug == 'draft' ? 'auto' : '', marginLeft: statusOption.slug == 'trash' ? 'auto' : '' }"
v-tooltip="{
content: $i18n.getWithVariables('info_%s_tab_' + statusOption.slug,[$i18n.get('items')]),
autoHide: true,

View File

@ -38,24 +38,29 @@ export const fetchItems = ({ rootGetters, dispatch, commit }, { collectionId, is
if (postQueries.advancedSearch)
advancedSearchResults = postQueries.advancedSearch;
}
let query = qs.stringify(postQueries);
// Guarantees at least empty fetch_only are passed in case none is found
if (postQueries.fetch_only == ''){
dispatch('search/add_fetch_only', '', { root: true });
// Admin default tab should load publish, private and draft statuses
if (!isOnTheme && !postQueries.status) {
postQueries.status = 'publish,private,draft';
dispatch('search/setStatus', 'publish,private,draft', { root: true });
}
// Guarantees at least status is passed in case none is found
if (postQueries.fetch_only == '')
dispatch('search/add_fetch_only', 'status', { root: true });
else
postQueries.fetch_only += ',status';
if (postQueries.fetch_only_meta == ''){
if (postQueries.fetch_only_meta == '')
dispatch('search/add_fetch_only_meta', '', { root: true });
}
let query = qs.stringify(postQueries);
// Differentiates between repository level and collection level queries
let endpoint = '/collection/'+ collectionId +'/items?';
if (collectionId == undefined || collectionId == '' || collectionId == null){
if (collectionId == undefined || collectionId == '' || collectionId == null)
endpoint = '/items?';
}
if (!isOnTheme){
if (postQueries.view_mode != undefined)

View File

@ -49,8 +49,10 @@ export const fetch = ({ commit }, { page, taxonomiesPerPage, status, order, orde
return new Promise((resolve, reject) => {
let endpoint = `/taxonomies?paged=${page}&perpage=${taxonomiesPerPage}&context=edit`;
if (status != undefined && status != '')
if (status != undefined && status != '' && status != false)
endpoint = endpoint + '&status=' + status;
else
endpoint += '&status=publish,private,draft';
if (order != undefined && order != '' && orderby != undefined && orderby != '')
endpoint = endpoint + '&order=' + order + '&orderby=' + orderby;

View File

@ -41,7 +41,7 @@
<span class="icon is-medium">
<i class="tainacan-icon tainacan-icon-36px tainacan-icon-items"/>
</span>
<span class="menu-text">{{ $i18n.get('label_all_published_items') }}</span>
<span class="menu-text">{{ $i18n.get('label_all_items') }}</span>
</router-link>
</li> -->
<li v-if="$userCaps.hasCapability('tnc_rep_edit_metadata')">

View File

@ -192,7 +192,7 @@
:page="page"
:collections-per-page="collectionsPerPage"
:collections="collections"
:is-on-trash="status == 'trash'"/>
:status="status" />
<!-- Empty state image -->
<div v-if="collections.length <= 0 && !isLoading">
@ -403,6 +403,7 @@ export default {
'getMetadatumMappers'
]),
onChangeTab(status) {
this.page = 1;
this.status = status;
this.loadCollections();
},
@ -448,7 +449,7 @@ export default {
this.loadCollections();
},
loadCollections() {
this.cleanCollections();
this.cleanCollections();
this.isLoading = true;
this.fetchCollections({
page: this.page,

View File

@ -112,7 +112,7 @@
<ul>
<li
@click="onChangeTab('')"
:class="{ 'is-active': status == undefined || status == ''}"
:class="{ 'is-active': status == undefined || status == ''|| status == 'publish,private,draft'}"
v-tooltip="{
content: $i18n.get('info_taxonomies_tab_all'),
autoHide: true,
@ -120,7 +120,7 @@
}">
<a :style="{ fontWeight: 'bold', color: 'var(--tainacan-gray5) !important' }">
{{ `${$i18n.get('label_all_taxonomies')}` }}
<span class="has-text-gray">&nbsp;{{ repositoryTotalTaxonomies ? `(${Number(repositoryTotalTaxonomies.private) + Number(repositoryTotalTaxonomies.publish)})` : '' }}</span>
<span class="has-text-gray">&nbsp;{{ repositoryTotalTaxonomies ? `(${Number(repositoryTotalTaxonomies.private) + Number(repositoryTotalTaxonomies.publish) + Number(repositoryTotalTaxonomies.draft)})` : '' }}</span>
</a>
</li>
<li
@ -129,7 +129,7 @@
v-if="statusOption.slug != 'private' || (statusOption.slug == 'private' && $userCaps.hasCapability('tnc_rep_read_private_taxonomies'))"
@click="onChangeTab(statusOption.slug)"
:class="{ 'is-active': status == statusOption.slug}"
:style="{ marginRight: statusOption.slug == 'private' ? 'auto' : '', marginLeft: statusOption.slug == 'draft' ? 'auto' : '' }"
:style="{ marginRight: statusOption.slug == 'draft' ? 'auto' : '', marginLeft: statusOption.slug == 'trash' ? 'auto' : '' }"
v-tooltip="{
content: $i18n.getWithVariables('info_%s_tab_' + statusOption.slug,[$i18n.get('taxonomies')]),
autoHide: true,
@ -154,7 +154,7 @@
<taxonomies-list
:is-loading="isLoading"
:total="total"
:is-on-trash="status == 'trash'"
:status="status"
:page="page"
:taxonomies-per-page="taxonomiesPerPage"
:taxonomies="taxonomies"/>
@ -238,7 +238,6 @@
<script>
import TaxonomiesList from "../../components/lists/taxonomies-list.vue";
import { mapActions, mapGetters } from 'vuex';
//import moment from 'moment'
export default {
name: 'TaxonomyPage',
@ -306,6 +305,7 @@
'getRepositoryTotalTaxonomies'
]),
onChangeTab(status) {
this.page = 1;
this.status = status;
this.load();
},

View File

@ -87,7 +87,11 @@
width: 60px;
text-align: center;
}
.status-cell {
width: 2rem;
padding-left: 1px;
padding-right: 1px;
}
.column-small-width {
min-width: 80px;
max-width: 80px;

View File

@ -72,6 +72,7 @@
bottom: 0;
margin-bottom: -26px;
padding-right: 12px;
margin-top: -26px;
display: flex;
justify-content: space-between;
visibility: hidden;
@ -157,6 +158,10 @@
transform: scale(0.0);
transition: transform 0.2s ease;
}
.icon:not(.slideshow-icon) {
float: left;
margin-top: -1px;
}
}
&:hover,
&:focus {

View File

@ -108,6 +108,11 @@
text-align: left;
color: var(--tainacan-heading-color);
}
.icon:not(.slideshow-icon) {
float: left;
margin-top: -1px;
}
}
}

View File

@ -37,6 +37,7 @@
position: relative;
float: right;
top: calc(-1 * var(--tainacan-container-padding));
margin-top: -25px;
bottom: 0;
margin-bottom: -25px;
padding-right: 12px;
@ -125,6 +126,10 @@
transform: scale(0.0);
transition: transform 0.2s ease;
}
.icon:not(.slideshow-icon) {
float: left;
margin-top: -1px;
}
}
&:hover,
&:focus {

View File

@ -119,6 +119,10 @@
transform: scale(0.0);
transition: transform 0.2s ease;
}
.icon:not(.slideshow-icon){
float: left;
margin-top: 1px;
}
}
&:hover,
&:focus {

View File

@ -43,6 +43,7 @@
float: right;
top: calc(-1 * var(--tainacan-container-padding));
bottom: 0;
margin-top: -25px;
padding-right: 12px;
//width: 80px;
margin-bottom: -25px;
@ -120,6 +121,10 @@
transform: scale(0.0);
transition: transform 0.2s ease;
}
.icon:not(.slideshow-icon) {
float: left;
margin-top: -1px;
}
}
&:hover,
&:focus {

View File

@ -2,8 +2,24 @@
include_once( ABSPATH . 'wp-admin/includes/plugin.php' );
// Slugs and options for the 'generic' Tainacan Icons.
const TAINACAN_BLOCKS = [
'items-list' => [],
'collections-list' => [],
'search-bar' => [ 'has_theme_script' => true ],
'facets-list' => [ 'has_theme_script' => true ],
'dynamic-items-list' => [ 'has_theme_script' => true ],
'carousel-items-list' => [ 'has_theme_script' => true ],
'carousel-terms-list' => [ 'has_theme_script' => true ],
'carousel-collections-list' => [ 'has_theme_script' => true ],
'terms-list' => [ 'extra_editor_script_deps' => array('undescore') ],
];
tainacan_blocks_initialize();
/**
* Initialize the Gutenberg Blocks logic, only if possible
*/
function tainacan_blocks_initialize() {
global $wp_version;
@ -17,82 +33,119 @@ function tainacan_blocks_initialize() {
}
}
/**
* Calls the routines responsible for Registering the global style, category and
* both 'generic' and 'special' blocks
*/
function register_tainacan_blocks_add_gutenberg_blocks() {
tainacan_blocks_get_common_styles();
tainacan_blocks_register_category_icon();
tainacan_blocks_register_tainacan_terms_list();
tainacan_blocks_register_tainacan_search_bar();
tainacan_blocks_register_tainacan_items_list();
tainacan_blocks_register_tainacan_facets_list();
tainacan_blocks_register_tainacan_faceted_search();
tainacan_blocks_register_tainacan_collections_list();
tainacan_blocks_register_tainacan_dynamic_items_list();
tainacan_blocks_register_tainacan_carousel_items_list();
tainacan_blocks_register_tainacan_carousel_terms_list();
foreach(TAINACAN_BLOCKS as $block_slug => $block_options) {
tainacan_blocks_register_block($block_slug, $block_options);
}
tainacan_blocks_register_tainacan_item_submission_form();
tainacan_blocks_register_tainacan_carousel_collections_list();
tainacan_blocks_register_tainacan_faceted_search();
}
/**
* Un/Deregisters scripts and styles that are not necessary accordind to the current page
*/
function unregister_tainacan_blocks() {
global $post;
if(!$post) return;
$not_allowed = apply_filters('posts-names-to-unregister-tainacan-blocks', []);
// If we are outside the block editor, there are assets not necessary, so lets deregister them!
if ( !is_admin() ) {
// First, handle the generic blocks
foreach(TAINACAN_BLOCKS as $block_slug => $block_options) {
// No need for any of the editor-side scripts outside the block editor
wp_deregister_script($block_slug);
// If there is no instance of this block on this page, no need for styles and theme side scripts as well
if ( !has_block('tainacan/' . $block_slug) || !is_singular() ) {
wp_deregister_style($block_slug);
if ( isset($block_options['has_theme_script']) && $block_options['has_theme_script'] )
wp_deregister_script($block_slug . '-theme');
}
}
// No need for any editor side script of the special blocks
wp_deregister_script('faceted-search');
wp_deregister_style('item-submission-form');
// If there is no faceted search block, no need for its styles and theme side scripts
if ( !has_block('tainacan/faceted-search') || !is_singular() ) {
wp_deregister_style('faceted-search');
wp_deregister_script('tainacan-search');
}
// If there is no item submission block, no need for its styles and theme side scripts
if ( !has_block('tainacan/item-submission-form') || !is_singular() ) {
wp_deregister_style('item-submission-form');
wp_deregister_script('tainacan-item-submission');
wp_deregister_script('tainacan-google-recaptcha-script');
}
// No need for category assets outside the block editor
wp_deregister_script('tainacan-blocks-register-category-icon');
wp_deregister_style('tainacan-blocks-register-category-icon');
// If, however we are in the editor side, then no need to load theme side scripts!
} else {
// First, handle the generic blocks
foreach(TAINACAN_BLOCKS as $block_slug => $block_options) {
if ( isset($block_options['has_theme_script']) && $block_options['has_theme_script'] )
wp_deregister_script($block_slug . '-theme');
}
// Then the special ones
wp_deregister_script('tainacan-search');
wp_deregister_script('tainacan-item-submission');
wp_deregister_script('tainacan-google-recaptcha-script');
}
/* Now, lets check if the blocks had been removed by the filter */
if (!$post) return;
$not_allowed = apply_filters('posts-names-to-unregister-tainacan-blocks', []);
$current_page = $post->post_name;
if ( in_array($current_page, $not_allowed) ) {
wp_deregister_script('items-list');
wp_deregister_script('terms-list');
wp_deregister_script('facets-list');
wp_deregister_script('search-bar');
foreach(TAINACAN_BLOCKS as $block_slug => $block_options) {
wp_deregister_script($block_slug);
wp_deregister_style($block_slug);
if ( isset($block_options['has_theme_script']) && $block_options['has_theme_script'] )
wp_deregister_script($block_slug . '-theme');
if (function_exists('unregister_block_type'))
unregister_block_type('tainacan/' . $block_slug);
}
wp_deregister_script('faceted-search');
wp_deregister_script('tainacan-search');
wp_deregister_script('collections-list');
wp_deregister_script('facets-list-theme');
wp_deregister_script('dynamic-items-list');
wp_deregister_script('carousel-items-list');
wp_deregister_script('carousel-terms-list');
wp_deregister_script('item-submission-form');
wp_deregister_script('google-recaptcha-script');
wp_deregister_script('search-bar-theme-script');
wp_deregister_script('tainacan-item-submission');
wp_deregister_script('dynamic-items-list-theme');
wp_deregister_script('carousel-collections-list');
wp_deregister_script('carousel-items-list-theme');
wp_deregister_script('carousel-terms-list-theme');
wp_deregister_script('carousel-collections-list-theme');
wp_deregister_script('tainacan-google-recaptcha-script');
wp_deregister_script('tainacan-blocks-register-category-icon');
wp_deregister_style('terms-list');
wp_deregister_style('items-list');
wp_deregister_style('search-bar');
wp_deregister_style('facets-list');
wp_deregister_style('faceted-search');
wp_deregister_style('collections-list');
wp_deregister_style('dynamic-items-list');
wp_deregister_style('carousel-items-list');
wp_deregister_style('carousel-terms-list');
wp_deregister_style('item-submission-form');
wp_deregister_style('carousel-collections-list');
wp_deregister_style('tainacan-blocks-common-styles');
wp_deregister_style('tainacan-blocks-register-category-icon');
if (function_exists('unregister_block_type')) {
unregister_block_type('tainacan/terms-list');
unregister_block_type('tainacan/items-list');
unregister_block_type('tainacan/search-bar');
unregister_block_type('tainacan/facets-list');
unregister_block_type('tainacan/faceted-search');
unregister_block_type('tainacan/collections-list');
unregister_block_type('tainacan/dynamic-items-list');
unregister_block_type('tainacan/carousel-items-list');
unregister_block_type('tainacan/carousel-terms-list');
unregister_block_type('tainacan/item-submission-form');
unregister_block_type('tainacan/carousel-collections-list');
}
}
}
/**
* Registers the Taiancan category on the blocks inserter
*/
function tainacan_blocks_register_categories($categories, $post){
return array_merge(
@ -106,190 +159,96 @@ function tainacan_blocks_register_categories($categories, $post){
);
}
function tainacan_blocks_register_tainacan_terms_list(){
global $TAINACAN_BASE_URL;
wp_register_script(
'terms-list',
$TAINACAN_BASE_URL . '/assets/js/block_terms_list.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor', 'underscore')
);
wp_set_script_translations('terms-list', 'tainacan');
wp_register_style(
'terms-list',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-terms-list.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/terms-list', array(
'editor_script' => 'terms-list',
'style' => 'terms-list'
) );
}
}
function tainacan_blocks_register_tainacan_facets_list(){
global $TAINACAN_BASE_URL;
wp_enqueue_script(
'facets-list-theme',
$TAINACAN_BASE_URL . '/assets/js/block_facets_list_theme.js',
array('wp-components')
);
wp_set_script_translations('facets-list-theme', 'tainacan');
wp_register_script(
'facets-list',
$TAINACAN_BASE_URL . '/assets/js/block_facets_list.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
);
wp_set_script_translations('facets-list', 'tainacan');
wp_register_style(
'facets-list',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-facets-list.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/facets-list', array(
'editor_script' => 'facets-list',
'style' => 'facets-list',
'script' => 'facets-list-theme'
) );
}
}
function tainacan_blocks_register_tainacan_items_list(){
global $TAINACAN_BASE_URL;
wp_register_script(
'items-list',
$TAINACAN_BASE_URL . '/assets/js/block_items_list.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
);
wp_register_style(
'items-list',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-items-list.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
wp_set_script_translations('items-list', 'tainacan');
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/items-list', array(
'editor_script' => 'items-list',
'style' => 'items-list'
) );
}
}
function tainacan_blocks_register_tainacan_dynamic_items_list(){
global $TAINACAN_BASE_URL;
wp_enqueue_script(
'dynamic-items-list-theme',
$TAINACAN_BASE_URL . '/assets/js/block_dynamic_items_list_theme.js',
array('wp-components', 'wp-i18n')
);
wp_set_script_translations('dynamic-items-list-theme', 'tainacan');
wp_register_script(
'dynamic-items-list',
$TAINACAN_BASE_URL . '/assets/js/block_dynamic_items_list.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
);
wp_set_script_translations('dynamic-items-list', 'tainacan');
wp_register_style(
'dynamic-items-list',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-dynamic-items-list.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/dynamic-items-list', array(
'editor_script' => 'dynamic-items-list',
'style' => 'dynamic-items-list',
'script' => 'dynamic-items-list-theme'
) );
}
}
function tainacan_blocks_register_tainacan_item_submission_form(){
/**
* Registers a 'generic' Tainacan Block, according to the TAINACAN_BLOCKs array
*
* * @param array $options {
* Optional. Array of arguments.
* @type boolean $has_theme_script If true, informs that a theme-specific script must be registered
* @type array $extra_editor_script_deps Array of strings containing script dependencies of the editor side script
* }
*/
function tainacan_blocks_register_block($block_slug, $options = []) {
global $TAINACAN_BASE_URL;
global $TAINACAN_VERSION;
// Creates Register params based on registered scripts and styles
$register_params = [];
// Defines dependencies for editor script
$editor_script_deps = array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor');
if ( isset($options['extra_editor_script_deps']) )
array_merge($editor_script_deps, $options['extra_editor_script_deps']);
// Registers Editor Script
wp_register_script(
'tainacan-item-submission',
$TAINACAN_BASE_URL . '/assets/js/item_submission.js',
['underscore'],
TAINACAN_VERSION
$block_slug,
$TAINACAN_BASE_URL . '/assets/js/block_' . str_replace('-', '_' , $block_slug) . '.js',
$editor_script_deps,
$TAINACAN_VERSION
);
wp_set_script_translations($block_slug, 'tainacan');
$register_params['editor_script'] = $block_slug;
wp_register_script(
'item-submission-form',
$TAINACAN_BASE_URL . '/assets/js/block_item_submission_form.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor')
);
// Registers Google ReCAPTCHA
wp_register_script(
'google-recaptcha-script',
'https://www.google.com/recaptcha/api.js',
[], false, true
);
wp_enqueue_script('google-recaptcha-script');
// Registers extra metadata type forms
$theme_helper = \Tainacan\Metadata_Types\Metadata_Type_Helper::get_instance();
if (isset($theme_helper))
$theme_helper->register_metadata_type_compoment();
wp_register_style(
'item-submission-form',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-item-submission-form.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/item-submission-form', array(
'editor_script' => 'item-submission-form',
'style' => 'item-submission-form',
'script' => 'tainacan-item-submission'
) );
// Registers Theme-side Script, if necessary
if ( isset($options['has_theme_script']) && $options['has_theme_script'] ) {
wp_enqueue_script(
$block_slug . '-theme',
$TAINACAN_BASE_URL . '/assets/js/block_' . str_replace('-', '_' , $block_slug) . '_theme.js',
array('wp-i18n'),
$TAINACAN_VERSION
);
wp_set_script_translations($block_slug . '-theme', 'tainacan');
$register_params['script'] = $block_slug;
}
// Registers style (works for both editor and theme side)
wp_register_style(
$block_slug,
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-' . $block_slug . '.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles'),
$TAINACAN_VERSION
);
$register_params['style'] = $block_slug;
// Registers the new block
if (function_exists('register_block_type'))
register_block_type( 'tainacan/' . $block_slug, $register_params );
}
/**
* Registers the 'special' Tainacan Block for the Faceted Search (the complete items list)
*/
function tainacan_blocks_register_tainacan_faceted_search(){
global $TAINACAN_BASE_URL;
global $TAINACAN_VERSION;
// Theme side script
wp_register_script(
'tainacan-search',
$TAINACAN_BASE_URL . '/assets/js/theme_search.js',
['underscore'],
TAINACAN_VERSION
$TAINACAN_VERSION
);
// Editor side script
wp_register_script(
'faceted-search',
$TAINACAN_BASE_URL . '/assets/js/block_faceted_search.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor'),
$TAINACAN_VERSION
);
wp_set_script_translations('faceted-search', 'tainacan');
// Editor and theme side css
wp_register_style(
'faceted-search',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-faceted-search.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
array('wp-edit-blocks', 'tainacan-blocks-common-styles'),
$TAINACAN_VERSION
);
// Registers new block
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/faceted-search', array(
'editor_script' => 'faceted-search',
@ -299,158 +258,64 @@ function tainacan_blocks_register_tainacan_faceted_search(){
}
}
function tainacan_blocks_register_tainacan_carousel_items_list(){
/**
* Registers the 'special' Tainacan Block for the Items Submission
*/
function tainacan_blocks_register_tainacan_item_submission_form() {
global $TAINACAN_BASE_URL;
global $TAINACAN_VERSION;
wp_enqueue_script(
'carousel-items-list-theme',
$TAINACAN_BASE_URL . '/assets/js/block_carousel_items_list_theme.js',
array('wp-components')
);
wp_set_script_translations('carousel-items-list-theme', 'tainacan');
// Theme side script
wp_register_script(
'carousel-items-list',
$TAINACAN_BASE_URL . '/assets/js/block_carousel_items_list.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
'tainacan-item-submission',
$TAINACAN_BASE_URL . '/assets/js/item_submission.js',
['underscore'],
$TAINACAN_VERSION
);
wp_set_script_translations('carousel-items-list', 'tainacan');
// Editor side script
wp_register_script(
'item-submission-form',
$TAINACAN_BASE_URL . '/assets/js/block_item_submission_form.js',
array('wp-blocks', 'wp-element', 'wp-components', 'wp-editor'),
$TAINACAN_VERSION
);
// Registers extra script for Google ReCAPTCHA
wp_register_script(
'tainacan-google-recaptcha-script',
'https://www.google.com/recaptcha/api.js',
[], false, true
);
wp_enqueue_script('tainacan-google-recaptcha-script');
// Registers extra metadata type forms
$theme_helper = \Tainacan\Metadata_Types\Metadata_Type_Helper::get_instance();
if (isset($theme_helper))
$theme_helper->register_metadata_type_compoment();
// Editor and Theme side style
wp_register_style(
'carousel-items-list',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-carousel-items-list.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
'item-submission-form',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-item-submission-form.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles'),
$TAINACAN_VERSION
);
// Registers new block
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/carousel-items-list', array(
'editor_script' => 'carousel-items-list',
'style' => 'carousel-items-list',
'script' => 'carousel-items-list-theme'
) );
}
}
function tainacan_blocks_register_tainacan_carousel_terms_list(){
global $TAINACAN_BASE_URL;
wp_enqueue_script(
'carousel-terms-list-theme',
$TAINACAN_BASE_URL . '/assets/js/block_carousel_terms_list_theme.js',
array('wp-components')
);
wp_set_script_translations('carousel-terms-list-theme', 'tainacan');
wp_register_script(
'carousel-terms-list',
$TAINACAN_BASE_URL . '/assets/js/block_carousel_terms_list.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
);
wp_set_script_translations('carousel-terms-list', 'tainacan');
wp_register_style(
'carousel-terms-list',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-carousel-terms-list.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/carousel-terms-list', array(
'editor_script' => 'carousel-terms-list',
'style' => 'carousel-terms-list',
'script' => 'carousel-terms-list-theme'
) );
}
}
function tainacan_blocks_register_tainacan_search_bar(){
global $TAINACAN_BASE_URL;
wp_enqueue_script(
'search-bar-theme-script',
$TAINACAN_BASE_URL . '/assets/js/block_search_bar_script.js',
array('wp-components')
);
wp_register_script(
'search-bar',
$TAINACAN_BASE_URL . '/assets/js/block_search_bar.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
);
wp_set_script_translations('search-bar-list', 'tainacan');
wp_register_style(
'search-bar',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-search-bar.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/search-bar', array(
'editor_script' => 'search-bar',
'style' => 'search-bar'
) );
}
}
function tainacan_blocks_register_tainacan_collections_list(){
global $TAINACAN_BASE_URL;
wp_register_script(
'collections-list',
$TAINACAN_BASE_URL . '/assets/js/block_collections_list.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
);
wp_register_style(
'collections-list',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-collections-list.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
wp_set_script_translations('collections-list', 'tainacan');
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/collections-list', array(
'editor_script' => 'collections-list',
'style' => 'collections-list'
) );
}
}
function tainacan_blocks_register_tainacan_carousel_collections_list(){
global $TAINACAN_BASE_URL;
wp_enqueue_script(
'carousel-collections-list-theme',
$TAINACAN_BASE_URL . '/assets/js/block_carousel_collections_list_theme.js',
array('wp-components')
);
wp_set_script_translations('carousel-collections-list-theme', 'tainacan');
wp_register_script(
'carousel-collections-list',
$TAINACAN_BASE_URL . '/assets/js/block_carousel_collections_list.js',
array('wp-blocks', 'wp-i18n', 'wp-element', 'wp-components', 'wp-editor')
);
wp_set_script_translations('carousel-collections-list', 'tainacan');
wp_register_style(
'carousel-collections-list',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-carousel-collections-list.css',
array('wp-edit-blocks', 'tainacan-blocks-common-styles')
);
if (function_exists('register_block_type')) {
register_block_type( 'tainacan/carousel-collections-list', array(
'editor_script' => 'carousel-collections-list',
'style' => 'carousel-collections-list',
'script' => 'carousel-collections-list-theme'
register_block_type( 'tainacan/item-submission-form', array(
'editor_script' => 'item-submission-form',
'style' => 'item-submission-form',
'script' => 'tainacan-item-submission'
) );
}
}
/**
* Generates the global 'tainacan_blocks' that contain some info from PHP necessary
* to the blocks scripts in JS
*/
function tainacan_blocks_get_plugin_js_settings(){
global $TAINACAN_BASE_URL;
global $wp_version;
@ -468,46 +333,59 @@ function tainacan_blocks_get_plugin_js_settings(){
return $settings;
}
/**
* Makes the global 'tainacan_blocks' available to the blocks scripts
*/
function tainacan_blocks_add_plugin_settings() {
$settings = tainacan_blocks_get_plugin_js_settings();
wp_localize_script( 'terms-list', 'tainacan_blocks', $settings );
wp_localize_script( 'items-list', 'tainacan_blocks', $settings );
wp_localize_script( 'dynamic-items-list', 'tainacan_blocks', $settings );
wp_localize_script( 'carousel-items-list', 'tainacan_blocks', $settings );
wp_localize_script( 'carousel-terms-list', 'tainacan_blocks', $settings );
wp_localize_script( 'search-bar', 'tainacan_blocks', $settings );
foreach(TAINACAN_BLOCKS as $block_slug => $block_options) {
wp_localize_script( $block_slug, 'tainacan_blocks', $settings );
}
// The faceded search block also uses this settings for checking gutenberg version
wp_localize_script( 'faceted-search', 'tainacan_blocks', $settings );
wp_localize_script( 'collections-list', 'tainacan_blocks', $settings );
wp_localize_script( 'carousel-collections-list', 'tainacan_blocks', $settings );
wp_localize_script( 'facets-list', 'tainacan_blocks', $settings );
}
/**
* Makes the global 'tainacan_plugin' available to some spacial blocks that need it
*/
function tainacan_blocks_add_plugin_admin_settings() {
// The faceded search block uses a different settings object, the same used on the theme items list
wp_localize_script( 'tainacan-search', 'tainacan_plugin', \Tainacan\Admin::get_instance()->get_admin_js_localization_params() );
wp_localize_script( 'faceted-search', 'tainacan_plugin', \Tainacan\Admin::get_instance()->get_admin_js_localization_params() );
// The item submission search block uses a different settings object, the same used on the item submission component
wp_localize_script( 'tainacan-item-submission', 'tainacan_plugin', \Tainacan\Admin::get_instance()->get_admin_js_localization_params() );
}
/**
* Enqueues the global styles necessary for the majority of the blocks
*/
function tainacan_blocks_get_common_styles() {
global $TAINACAN_BASE_URL;
global $TAINACAN_VERSION;
wp_enqueue_style(
'tainacan-blocks-common-styles',
$TAINACAN_BASE_URL . '/assets/css/tainacan-gutenberg-block-common-styles.css',
array('wp-edit-blocks')
array('wp-edit-blocks'),
$TAINACAN_VERSION
);
}
/**
* Registers the script that inserts the Tainacan icon on the blocks category
*/
function tainacan_blocks_register_category_icon() {
global $TAINACAN_BASE_URL;
global $TAINACAN_VERSION;
wp_enqueue_script(
'tainacan-blocks-register-category-icon',
$TAINACAN_BASE_URL . '/assets/js/tainacan_blocks_category_icon.js',
array('wp-blocks')
array('wp-blocks'),
$TAINACAN_VERSION
);
}

View File

@ -166,7 +166,7 @@
}
svg.components-checkbox-control__checked {
fill: inherit;
fill: black;
}
.modal-checkbox-list-item,
@ -193,9 +193,6 @@
min-width: 20px;
min-height: 20px;
}
.components-radio-control__option .components-radio-control__input::before {
border-width: 0px;
}
}
.modal-loadmore-section {
display: flex;

View File

@ -3,47 +3,47 @@
var path4 = el( 'path', {
d: 'm 11.27478,8.73457 c 1.688519,0.44936 3.333166,1.08401 4.86423,1.92899 C 17.304261,9.35093 18.355283,7.77611 18.494128,5.97784 18.606604,4.68205 18.01681,3.38652 17.0326,2.55334 16.089243,1.69008 14.73247,1.35339 13.487742,1.61188 11.913591,1.91741 10.544771,2.85442 9.3686674,3.90688 10.203337,5.42539 10.830349,7.06078 11.27478,8.73457 Z',
fill: '#a5cdd7',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var path6 = el( 'path', {
d: 'm 3.5149247,13.04091 c -0.5624592,1.90814 -0.6353706,3.39919 -0.6353706,4.12908 0.7186979,0 2.2185893,-0.073 4.1351172,-0.63604 C 6.4105484,16.06473 5.7855936,15.5121 5.1606389,14.86563 4.5148523,14.24001 3.9732249,13.62482 3.5149247,13.04091 Z',
fill: '#7eb8c5',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var path8 = el( 'path', {
d: 'M 5.8168414,8.09852 C 6.8215597,6.56512 8.0188478,5.1569 9.3686674,3.91731 8.5297232,2.4271 7.4026813,0.96168 5.7810893,0.28584 4.58159,-0.22797 3.1675523,-0.04964 2.0663954,0.62209 0.92867872,1.26113 0.19971131,2.4895 0.06863414,3.77612 -0.13858888,5.62222 0.46606606,7.44579 1.23384,9.09951 1.0651187,8.75778 1.7833517,8.82097 2.0003231,8.67455 3.2414236,8.32179 4.5283868,8.14061 5.8168414,8.09852 Z',
fill: '#a5cdd7',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var path10 = el( 'path', {
d: 'm 16.13901,10.66356 c -1.249149,1.3653 -2.67355,2.5697 -4.218445,3.58688 -0.06202,1.5577 -0.310603,3.11914 -0.843688,4.58787 -0.37182,-0.15288 0.329219,0.15846 0.448759,0.20875 1.660074,0.69791 3.525206,1.21087 5.323239,0.78852 1.262782,-0.28388 2.330378,-1.22057 2.820096,-2.41411 0.535186,-1.16136 0.465064,-2.56242 -0.169187,-3.67073 -0.750803,-1.35882 -2.035466,-2.33364 -3.360774,-3.08718 z',
fill: '#a5cdd7',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var path12 = el( 'path', {
d: 'm 1.1817604,8.94311 c 0.5559379,1.47805 1.3636245,2.85447 2.3331643,4.0978 0.5011915,-1.75438 1.3032057,-3.41792 2.3019167,-4.94239 -1.5733879,0.0545 -3.1521005,0.3044 -4.635081,0.84459 z',
fill: '#7eb8c5',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var path14 = el( 'path', {
d: 'M 11.27478,8.73457 C 9.4936359,8.26776 7.6479688,8.03766 5.8064254,8.0881 4.8150842,9.6169 4.0070258,11.27568 3.5045088,13.03048 c 0.884194,1.1273 1.9090682,2.14007 2.990078,3.07711 0.2863716,0.30027 0.6037275,0.52578 1.000007,0.26756 1.5571457,-0.50924 3.0386822,-1.23846 4.4155572,-2.12471 0.07412,-1.8572 -0.162523,-3.72061 -0.635371,-5.51587 z',
fill: '#57a2b1',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var path16 = el( 'path', {
d: 'M 11.27478,8.73457 C 10.962303,7.53547 10.514417,6.26338 9.8894631,4.9183 9.7228085,4.56378 9.545738,4.21969 9.3686674,3.90688 9.1603492,4.09457 8.9624469,4.29268 8.7541286,4.49079 7.5458828,5.70032 6.577203,6.92028 5.8168414,8.0881 7.3583964,8.0464 9.2020128,8.19237 11.27478,8.73457 Z',
fill: '#7eb8c5',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var path18 = el( 'path', {
d: 'm 11.920565,14.25044 c -1.514496,0.987 -3.1645362,1.78138 -4.9058937,2.27308 1.2327086,0.96216 2.5971002,1.76354 4.0622057,2.31479 0.522219,-1.47166 0.784125,-3.02968 0.843688,-4.58787 z',
fill: '#7eb8c5',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var path20 = el( 'path', {
d: 'm 15.545303,11.28918 c 0.17414,-0.20567 0.492354,-0.44146 0.562428,-0.64318 -1.504933,-0.82786 -3.118912,-1.45272 -4.776742,-1.89667 -0.114463,0.006 0.05623,0.30009 0.05428,0.4239 0.398631,1.65875 0.593032,3.37096 0.524879,5.07721 1.318664,-0.84526 2.528852,-1.85373 3.635153,-2.96126 z',
fill: '#7eb8c5',
'stroke-width': '0.10421441'
'strokeWidth': '0.10421441'
} );
var g1 = el('g', { transform: 'translate(-85.490815,-209.14412)' });
var g2 = el('g', { transform: 'translate(-85.490815,-209.14412)' });

View File

@ -11,4 +11,4 @@ document.addEventListener("DOMContentLoaded",() => {
}
}));
}
}, false);
}, false);

View File

@ -285,7 +285,7 @@ return apply_filters( 'tainacan-admin-i18n', [
'label_collapse_all' => __( 'Collapse all', 'tainacan' ),
'label_view_term' => __( 'View Term', 'tainacan' ),
/* translators: 'Published' here refers to the sum of public and private items, not including draft or trashed ones. The are visible to those with permission */
'label_all_published_items' => __( 'All published items', 'tainacan' ),
'label_all_items' => __( 'All items', 'tainacan' ),
'label_all_collections' => __( 'All collections', 'tainacan' ),
'label_all_taxonomies' => __( 'All taxonomies', 'tainacan' ),
'label_bulk_actions' => __( 'Bulk actions', 'tainacan' ),
@ -651,7 +651,7 @@ return apply_filters( 'tainacan-admin-i18n', [
'instruction_click_to_see_%s_child_term' => __( 'Click to see %s child term', 'tainacan'),
// Info. Other feedback to user.
'info_items_tab_all' => __( 'Every published item, including those visible only to editors.', 'tainacan' ),
'info_items_tab_all' => __( 'Every item, except by those sent to trash.', 'tainacan' ),
'info_items_tab_publish' => __( 'Only items that are visible to everyone.', 'tainacan' ),
'info_items_tab_private' => __( 'Items visible only to editors.', 'tainacan' ),
'info_items_tab_draft' => __( 'Draft items, not published.', 'tainacan' ),
@ -663,7 +663,7 @@ return apply_filters( 'tainacan-admin-i18n', [
'info_collections_tab_draft' => __( 'Draft collections, not published.', 'tainacan' ),
'info_collections_tab_trash' => __( 'Collections that were sent to trash.', 'tainacan' ),
'info_taxonomies_tab_all' => __( 'Every published taxonomy, including those visible only to editors.', 'tainacan' ),
'info_taxonomies_tab_all' => __( 'Every taxonomy, except by those sent to trash.', 'tainacan' ),
'info_taxonomies_tab_publish' => __( 'Only taxonomies that are visible to everyone.', 'tainacan' ),
'info_taxonomies_tab_private' => __( 'Taxonomies visible only to editors.', 'tainacan' ),
'info_taxonomies_tab_draft' => __( 'Draft taxonomies, not published.', 'tainacan' ),

View File

@ -22,7 +22,7 @@ module.exports = {
block_carousel_items_list_theme: './src/views/gutenberg-blocks/tainacan-items/carousel-items-list/carousel-items-list-theme.js',
block_search_bar: './src/views/gutenberg-blocks/tainacan-items/search-bar/index.js',
block_search_bar_script: './src/views/gutenberg-blocks/tainacan-items/search-bar/search-bar-theme-script.js',
block_search_bar_theme: './src/views/gutenberg-blocks/tainacan-items/search-bar/search-bar-theme.js',
block_collections_list: './src/views/gutenberg-blocks/tainacan-collections/collections-list/index.js',