From a550fce9925afee52bf899c7f22653b5b71b56be Mon Sep 17 00:00:00 2001 From: Mateus Machado Luna Date: Mon, 13 Jan 2020 15:35:38 -0300 Subject: [PATCH] Renames 'admin' folder to 'front' --- .gitignore | 2 +- build.sh | 4 +-- compile-sass.sh | 4 +-- .../filter-types/checkbox/Checkbox.vue | 2 +- .../date-interval/DateInterval.vue | 2 +- src/classes/filter-types/date/Date.vue | 2 +- src/classes/filter-types/numeric/Numeric.vue | 2 +- .../filter-types/tainacan-filter-item.vue | 2 +- .../filter-types/taxonomy/Checkbox.vue | 2 +- src/classes/metadata-types/date/Date.vue | 2 +- .../metadata-types/tainacan-form-item.vue | 2 +- .../taxonomy/TaxonomyCheckbox.vue | 2 +- .../metadata-types/taxonomy/TaxonomyRadio.vue | 2 +- src/classes/tainacan-creator.php | 6 ++-- .../admin-hooks-functions.php | 0 src/{admin => front}/admin.vue | 0 .../class-tainacan-admin-hooks.php | 0 src/{admin => front}/class-tainacan-admin.php | 0 .../advanced-search/advanced-search.vue | 0 .../bulk-edition/bulk-edition-modal.vue | 0 .../edition/collection-edition-form.vue | 0 .../edition/exporter-edition-form.vue | 0 .../edition/filter-edition-form.vue | 0 .../edition/importer-edition-form.vue | 0 .../edition/importer-mapping-form.vue | 0 .../edition/item-bulk-edition-form.vue | 0 .../components/edition/item-edition-form.vue | 0 .../edition/metadatum-edition-form.vue | 0 .../edition/taxonomy-edition-form.vue | 0 .../components/edition/term-edition-form.vue | 0 .../components/lists/activities-list.vue | 0 .../components/lists/attachments-list.vue | 0 .../components/lists/basic-term-item.vue | 0 .../components/lists/capabilities-list.vue | 0 .../lists/collections-home-list.vue | 0 .../components/lists/collections-list.vue | 0 .../components/lists/filters-list.vue | 0 .../components/lists/items-list.vue | 2 +- .../components/lists/metadata-list.vue | 0 .../components/lists/processes-list.vue | 0 .../components/lists/recursive-term-item.vue | 0 .../components/lists/taxonomies-list.vue | 0 .../components/lists/terms-list.vue | 0 .../components/navigation/primary-menu.vue | 0 .../tainacan-collection-subheader.vue | 0 .../components/navigation/tainacan-header.vue | 0 .../tainacan-repository-subheader.vue | 0 .../components/navigation/tainacan-title.vue | 0 .../other/activity-details-modal.vue | 0 .../other/available-exporters-modal.vue | 0 .../other/available-importers-modal.vue | 0 .../other/capability-edition-modal.vue | 0 .../components/other/checkbox-radio-modal.vue | 0 .../components/other/circular-counter.vue | 0 .../components/other/collections-modal.vue | 0 .../components/other/custom-dialog.vue | 0 .../components/other/document-item.vue | 0 .../components/other/exposers-modal.vue | 0 .../components/other/file-item.vue | 0 .../components/other/help-button.vue | 0 .../components/other/item-copy-dialog.vue | 0 .../components/other/processes-popup.vue | 0 .../other/three-state-toggle-button.vue | 0 .../collection-filter/collection-filter.vue | 0 .../components/search/filters-items-list.vue | 0 .../components/search/filters-tags-list.vue | 0 .../components/search/pagination.vue | 0 src/{admin => front}/js/main.js | 0 src/{admin => front}/js/mixins.js | 0 src/{admin => front}/js/roles-main.js | 0 src/{admin => front}/js/roles-router.js | 0 src/{admin => front}/js/router.js | 0 src/{admin => front}/js/terms-list-bus.js | 0 src/{admin => front}/js/theme-main.js | 0 src/{admin => front}/js/theme-router.js | 0 src/{admin => front}/js/utilities.js | 0 src/{admin => front}/js/wp-i18n-plugin.js | 0 src/{admin => front}/js/wp-media-frames.js | 0 src/{admin => front}/pages/home-page.vue | 0 .../pages/lists/activities-page.vue | 2 +- .../pages/lists/available-exporters-page.vue | 0 .../pages/lists/available-importers-page.vue | 0 .../pages/lists/capabilities-page.vue | 0 .../pages/lists/collections-page.vue | 0 .../pages/lists/filters-page.vue | 0 .../pages/lists/items-page.vue | 0 .../pages/lists/metadata-page.vue | 0 .../pages/lists/taxonomies-page.vue | 0 .../pages/lists/term-items-page.vue | 0 .../pages/singles/collection-page.vue | 0 .../pages/singles/item-page.vue | 0 src/{admin => front}/roles.vue | 0 .../roles/role-edition-form.vue | 0 src/{admin => front}/roles/roles-list.vue | 0 src/{admin => front}/scss/_buttons.scss | 0 src/{admin => front}/scss/_checkboxes.scss | 0 .../scss/_collection-home-cards.scss | 0 .../scss/_dropdown-and-autocomplete.scss | 0 .../scss/_filters-menu-modal.scss | 0 .../scss/_iframe_read_mode_overrides.scss | 0 src/{admin => front}/scss/_inputs.scss | 0 src/{admin => front}/scss/_modals.scss | 0 src/{admin => front}/scss/_notices.scss | 0 src/{admin => front}/scss/_pagination.scss | 0 src/{admin => front}/scss/_radios.scss | 0 .../scss/_repository-level-overrides.scss | 0 src/{admin => front}/scss/_selects.scss | 0 src/{admin => front}/scss/_switches.scss | 0 src/{admin => front}/scss/_tables.scss | 0 src/{admin => front}/scss/_tabs.scss | 0 src/{admin => front}/scss/_tags.scss | 0 src/{admin => front}/scss/_tainacan-form.scss | 0 src/{admin => front}/scss/_tooltips.scss | 0 src/{admin => front}/scss/_upload.scss | 0 src/{admin => front}/scss/_variables.scss | 0 .../scss/_view-mode-cards.scss | 0 .../scss/_view-mode-grid.scss | 0 .../scss/_view-mode-masonry.scss | 0 .../scss/_view-mode-records.scss | 0 .../scss/_view-mode-slideshow.scss | 0 src/{admin => front}/scss/tainacan-admin.scss | 0 src/{admin => front}/scss/tainacan-roles.scss | 0 src/{admin => front}/scss/theme-basics.sass | 0 .../system-check/admin-page.php | 0 .../class-tainacan-system-check.php | 0 src/{admin => front}/tainacan-admin-i18n.php | 0 src/{admin => front}/theme-items-list.vue | 28 +++++++++---------- src/theme-helper/view-mode-cards.vue | 2 +- src/theme-helper/view-mode-masonry.vue | 2 +- src/theme-helper/view-mode-records.vue | 2 +- src/theme-helper/view-mode-slideshow.vue | 4 +-- tests/test-api-roles.php | 2 +- webpack.config.js | 8 +++--- 133 files changed, 44 insertions(+), 44 deletions(-) rename src/{admin => front}/admin-hooks-functions.php (100%) rename src/{admin => front}/admin.vue (100%) rename src/{admin => front}/class-tainacan-admin-hooks.php (100%) rename src/{admin => front}/class-tainacan-admin.php (100%) rename src/{admin => front}/components/advanced-search/advanced-search.vue (100%) rename src/{admin => front}/components/bulk-edition/bulk-edition-modal.vue (100%) rename src/{admin => front}/components/edition/collection-edition-form.vue (100%) rename src/{admin => front}/components/edition/exporter-edition-form.vue (100%) rename src/{admin => front}/components/edition/filter-edition-form.vue (100%) rename src/{admin => front}/components/edition/importer-edition-form.vue (100%) rename src/{admin => front}/components/edition/importer-mapping-form.vue (100%) rename src/{admin => front}/components/edition/item-bulk-edition-form.vue (100%) rename src/{admin => front}/components/edition/item-edition-form.vue (100%) rename src/{admin => front}/components/edition/metadatum-edition-form.vue (100%) rename src/{admin => front}/components/edition/taxonomy-edition-form.vue (100%) rename src/{admin => front}/components/edition/term-edition-form.vue (100%) rename src/{admin => front}/components/lists/activities-list.vue (100%) rename src/{admin => front}/components/lists/attachments-list.vue (100%) rename src/{admin => front}/components/lists/basic-term-item.vue (100%) rename src/{admin => front}/components/lists/capabilities-list.vue (100%) rename src/{admin => front}/components/lists/collections-home-list.vue (100%) rename src/{admin => front}/components/lists/collections-list.vue (100%) rename src/{admin => front}/components/lists/filters-list.vue (100%) rename src/{admin => front}/components/lists/items-list.vue (99%) rename src/{admin => front}/components/lists/metadata-list.vue (100%) rename src/{admin => front}/components/lists/processes-list.vue (100%) rename src/{admin => front}/components/lists/recursive-term-item.vue (100%) rename src/{admin => front}/components/lists/taxonomies-list.vue (100%) rename src/{admin => front}/components/lists/terms-list.vue (100%) rename src/{admin => front}/components/navigation/primary-menu.vue (100%) rename src/{admin => front}/components/navigation/tainacan-collection-subheader.vue (100%) rename src/{admin => front}/components/navigation/tainacan-header.vue (100%) rename src/{admin => front}/components/navigation/tainacan-repository-subheader.vue (100%) rename src/{admin => front}/components/navigation/tainacan-title.vue (100%) rename src/{admin => front}/components/other/activity-details-modal.vue (100%) rename src/{admin => front}/components/other/available-exporters-modal.vue (100%) rename src/{admin => front}/components/other/available-importers-modal.vue (100%) rename src/{admin => front}/components/other/capability-edition-modal.vue (100%) rename src/{admin => front}/components/other/checkbox-radio-modal.vue (100%) rename src/{admin => front}/components/other/circular-counter.vue (100%) rename src/{admin => front}/components/other/collections-modal.vue (100%) rename src/{admin => front}/components/other/custom-dialog.vue (100%) rename src/{admin => front}/components/other/document-item.vue (100%) rename src/{admin => front}/components/other/exposers-modal.vue (100%) rename src/{admin => front}/components/other/file-item.vue (100%) rename src/{admin => front}/components/other/help-button.vue (100%) rename src/{admin => front}/components/other/item-copy-dialog.vue (100%) rename src/{admin => front}/components/other/processes-popup.vue (100%) rename src/{admin => front}/components/other/three-state-toggle-button.vue (100%) rename src/{admin => front}/components/repository/collection-filter/collection-filter.vue (100%) rename src/{admin => front}/components/search/filters-items-list.vue (100%) rename src/{admin => front}/components/search/filters-tags-list.vue (100%) rename src/{admin => front}/components/search/pagination.vue (100%) rename src/{admin => front}/js/main.js (100%) rename src/{admin => front}/js/mixins.js (100%) rename src/{admin => front}/js/roles-main.js (100%) rename src/{admin => front}/js/roles-router.js (100%) rename src/{admin => front}/js/router.js (100%) rename src/{admin => front}/js/terms-list-bus.js (100%) rename src/{admin => front}/js/theme-main.js (100%) rename src/{admin => front}/js/theme-router.js (100%) rename src/{admin => front}/js/utilities.js (100%) rename src/{admin => front}/js/wp-i18n-plugin.js (100%) rename src/{admin => front}/js/wp-media-frames.js (100%) rename src/{admin => front}/pages/home-page.vue (100%) rename src/{admin => front}/pages/lists/activities-page.vue (99%) rename src/{admin => front}/pages/lists/available-exporters-page.vue (100%) rename src/{admin => front}/pages/lists/available-importers-page.vue (100%) rename src/{admin => front}/pages/lists/capabilities-page.vue (100%) rename src/{admin => front}/pages/lists/collections-page.vue (100%) rename src/{admin => front}/pages/lists/filters-page.vue (100%) rename src/{admin => front}/pages/lists/items-page.vue (100%) rename src/{admin => front}/pages/lists/metadata-page.vue (100%) rename src/{admin => front}/pages/lists/taxonomies-page.vue (100%) rename src/{admin => front}/pages/lists/term-items-page.vue (100%) rename src/{admin => front}/pages/singles/collection-page.vue (100%) rename src/{admin => front}/pages/singles/item-page.vue (100%) rename src/{admin => front}/roles.vue (100%) rename src/{admin => front}/roles/role-edition-form.vue (100%) rename src/{admin => front}/roles/roles-list.vue (100%) rename src/{admin => front}/scss/_buttons.scss (100%) rename src/{admin => front}/scss/_checkboxes.scss (100%) rename src/{admin => front}/scss/_collection-home-cards.scss (100%) rename src/{admin => front}/scss/_dropdown-and-autocomplete.scss (100%) rename src/{admin => front}/scss/_filters-menu-modal.scss (100%) rename src/{admin => front}/scss/_iframe_read_mode_overrides.scss (100%) rename src/{admin => front}/scss/_inputs.scss (100%) rename src/{admin => front}/scss/_modals.scss (100%) rename src/{admin => front}/scss/_notices.scss (100%) rename src/{admin => front}/scss/_pagination.scss (100%) rename src/{admin => front}/scss/_radios.scss (100%) rename src/{admin => front}/scss/_repository-level-overrides.scss (100%) rename src/{admin => front}/scss/_selects.scss (100%) rename src/{admin => front}/scss/_switches.scss (100%) rename src/{admin => front}/scss/_tables.scss (100%) rename src/{admin => front}/scss/_tabs.scss (100%) rename src/{admin => front}/scss/_tags.scss (100%) rename src/{admin => front}/scss/_tainacan-form.scss (100%) rename src/{admin => front}/scss/_tooltips.scss (100%) rename src/{admin => front}/scss/_upload.scss (100%) rename src/{admin => front}/scss/_variables.scss (100%) rename src/{admin => front}/scss/_view-mode-cards.scss (100%) rename src/{admin => front}/scss/_view-mode-grid.scss (100%) rename src/{admin => front}/scss/_view-mode-masonry.scss (100%) rename src/{admin => front}/scss/_view-mode-records.scss (100%) rename src/{admin => front}/scss/_view-mode-slideshow.scss (100%) rename src/{admin => front}/scss/tainacan-admin.scss (100%) rename src/{admin => front}/scss/tainacan-roles.scss (100%) rename src/{admin => front}/scss/theme-basics.sass (100%) rename src/{admin => front}/system-check/admin-page.php (100%) rename src/{admin => front}/system-check/class-tainacan-system-check.php (100%) rename src/{admin => front}/tainacan-admin-i18n.php (100%) rename src/{admin => front}/theme-items-list.vue (92%) diff --git a/.gitignore b/.gitignore index e9c4dc086..7641967b6 100644 --- a/.gitignore +++ b/.gitignore @@ -16,7 +16,7 @@ last-js-build.md5 last-sass-build.md5 last-composer-build.md5 last-package-build.md5 -src/admin/scss/.sass-cache +src/front/scss/.sass-cache src/assets/css/tainacan-admin.css src/assets/css/tainacan-admin.css.map src/assets/report.html diff --git a/build.sh b/build.sh index 57c66af03..622d0fd0c 100755 --- a/build.sh +++ b/build.sh @@ -13,12 +13,12 @@ current_OS=`uname` # For macOS (Darwin) if [ $current_OS == "Darwin" ]; then find src ./webpack.config.js -type f \( -name "*.js" -or -name "*.vue" -or -name "webpack.config.js" \) -exec md5 {} \; | sort -k 2 | md5 > last-js-build.md5 - find ./src/scss/ ./src/admin/scss/ ./src/gutenberg-blocks/ ./src/gutenberg-blocks/tainacan-collections/collections-list ./src/gutenberg-blocks/tainacan-facets/facets-list ./src/gutenberg-blocks/tainacan-items/dynamic-items-list ./src/gutenberg-blocks/tainacan-items/items-list ./src/gutenberg-blocks/tainacan-terms/terms-list -type f \( -name "*.scss" \) -exec md5 {} \; | sort -k 2 | md5 > last-sass-build.md5 + find ./src/scss/ ./src/front/scss/ ./src/gutenberg-blocks/ ./src/gutenberg-blocks/tainacan-collections/collections-list ./src/gutenberg-blocks/tainacan-facets/facets-list ./src/gutenberg-blocks/tainacan-items/dynamic-items-list ./src/gutenberg-blocks/tainacan-items/items-list ./src/gutenberg-blocks/tainacan-terms/terms-list -type f \( -name "*.scss" \) -exec md5 {} \; | sort -k 2 | md5 > last-sass-build.md5 find ./composer.json -type f \( -name "composer.json" \) -exec md5 {} \; | sort -k 2 | md5 > last-composer-build.md5 find ./package.json -type f \( -name "package.json" -or -name "package-lock.json" \) -exec md5 {} \; | sort -k 2 | md5 > last-package-build.md5 else find src ./webpack.config.js -type f \( -name "*.js" -or -name "*.vue" -or -name "webpack.config.js" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-js-build.md5 - find ./src/scss/ ./src/admin/scss/ ./src/gutenberg-blocks ./src/gutenberg-blocks/tainacan-collections/collections-list ./src/gutenberg-blocks/tainacan-facets/facets-list ./src/gutenberg-blocks/tainacan-items/dynamic-items-list ./src/gutenberg-blocks/tainacan-items/items-list ./src/gutenberg-blocks/tainacan-terms/terms-list -type f \( -name "*.scss" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-sass-build.md5 + find ./src/scss/ ./src/front/scss/ ./src/gutenberg-blocks ./src/gutenberg-blocks/tainacan-collections/collections-list ./src/gutenberg-blocks/tainacan-facets/facets-list ./src/gutenberg-blocks/tainacan-items/dynamic-items-list ./src/gutenberg-blocks/tainacan-items/items-list ./src/gutenberg-blocks/tainacan-terms/terms-list -type f \( -name "*.scss" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-sass-build.md5 find ./composer.json -type f \( -name "composer.json" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-composer-build.md5 find ./package.json -type f \( -name "package.json" -or -name "package-lock.json" \) -exec md5sum {} \; | sort -k 2 | md5sum > last-package-build.md5 fi diff --git a/compile-sass.sh b/compile-sass.sh index 0e43f246c..d6d60212e 100644 --- a/compile-sass.sh +++ b/compile-sass.sh @@ -11,9 +11,9 @@ echo "Compilando Sass..." sass -E 'UTF-8' --cache-location .tmp/sass-cache-1 src/scss/tainacan-embeds.scss:src/assets/css/tainacan-embeds.css -sass -E 'UTF-8' --cache-location .tmp/sass-cache-2 src/admin/scss/tainacan-admin.scss:src/assets/css/tainacan-admin.css +sass -E 'UTF-8' --cache-location .tmp/sass-cache-2 src/front/scss/tainacan-admin.scss:src/assets/css/tainacan-admin.css -sass -E 'UTF-8' --cache-location .tmp/sass-cache-3 src/admin/scss/tainacan-roles.scss:src/assets/css/tainacan-roles.css +sass -E 'UTF-8' --cache-location .tmp/sass-cache-3 src/front/scss/tainacan-roles.scss:src/assets/css/tainacan-roles.css sass -E 'UTF-8' --cache-location .tmp/sass-cache-4 src/gutenberg-blocks/tainacan-collections/collections-list/collections-list.scss:src/assets/css/tainacan-gutenberg-block-collections-list.css diff --git a/src/classes/filter-types/checkbox/Checkbox.vue b/src/classes/filter-types/checkbox/Checkbox.vue index a0a006b50..845fabea3 100644 --- a/src/classes/filter-types/checkbox/Checkbox.vue +++ b/src/classes/filter-types/checkbox/Checkbox.vue @@ -41,7 +41,7 @@