diff --git a/.travis.yml b/.travis.yml index 0cde988b1..1a6796d4a 100644 --- a/.travis.yml +++ b/.travis.yml @@ -45,21 +45,6 @@ install: - echo 'if ( php -v|grep -q --only-matching --perl-regexp "5\.\\d+\.\\d+" );then /usr/local/bin/phpunit-5 $@;else /usr/local/bin/phpunit-6 $@;fi;exit $?' |sudo tee -a /usr/local/bin/phpunit > /dev/null - sudo chmod +x /usr/local/bin/phpunit script: /usr/local/bin/phpunit # phpunit -before_deploy: -- echo "Seção executada antes do deploy!" -- openssl aes-256-cbc -K $encrypted_cb93ef43fcd2_key -iv $encrypted_cb93ef43fcd2_iv - -in deploy_rsa.enc -out /tmp/deploy_rsa -d -- eval "$(ssh-agent -s)" -- chmod 600 /tmp/deploy_rsa -- ssh-add /tmp/deploy_rsa -- echo -e "Host $ssh_host\n\tStrictHostKeyChecking no\n" >> ~/.ssh/config -- ssh-add -l -deploy: -- provider: script - script: sshpass -p '$ssh_password' ssh $ssh_user@$ssh_host sh /home/l3p/atualiza_git/atualiza_todos.sh #MECHI AQUI!! #ssh $ssh_user@$ssh_host $script_deploy_tainacan - skip_cleanup: true - on: - branch: develop cache: directories: - vendor diff --git a/build.sh b/build.sh index 25d42b5be..57c66af03 100755 --- a/build.sh +++ b/build.sh @@ -72,6 +72,8 @@ rsync -axz --exclude='vendor/bin/phpc*' --exclude='vendor/squizlabs' --exclude=' --exclude='vendor/respect/validation/docs' --exclude='vendor/respect/validation/tests' \ --exclude='pdf-viewer/pdfjs-dist/web/compressed.tracemonkey-pldi-09.pdf' \ --exclude='vendor/tecnickcom/tcpdf/fonts' \ + --exclude='vendor/smalot/pdfparser/src/Smalot/PdfParser/Tests/' \ + --exclude='vendor/tecnickcom/tcpdf/examples' \ src/* $wp_plugin_dir/ rm -rf $wp_plugin_dir/scss diff --git a/compile-sass.sh b/compile-sass.sh index 92369e83c..08d2bbea9 100644 --- a/compile-sass.sh +++ b/compile-sass.sh @@ -31,5 +31,7 @@ sass -E 'UTF-8' --cache-location .tmp/sass-cache-10 src/gutenberg-blocks/tainaca sass -E 'UTF-8' --cache-location .tmp/sass-cache-11 src/gutenberg-blocks/tainacan-facets/facets-list/facets-list.scss:src/assets/css/tainacan-gutenberg-block-facets-list.css +sass -E 'UTF-8' --cache-location .tmp/sass-cache-12 src/gutenberg-blocks/tainacan-terms/carousel-terms-list/carousel-terms-list.scss:src/assets/css/tainacan-gutenberg-block-carousel-terms-list.css + echo "Compilação do Sass Concluído!" exit 0 diff --git a/package-lock.json b/package-lock.json index 128b22f63..9e6ec88b6 100644 --- a/package-lock.json +++ b/package-lock.json @@ -1951,9 +1951,9 @@ } }, "buefy": { - "version": "0.8.3", - "resolved": "https://registry.npmjs.org/buefy/-/buefy-0.8.3.tgz", - "integrity": "sha512-01aHoCy4LAD08MmUahXC8mVqtGK/kzJ45ysXskwLWILAhyLMqkZ5fvdMKD9Ky6iDsMttPHdwUe2csmdnIx9caw==", + "version": "0.8.6", + "resolved": "https://registry.npmjs.org/buefy/-/buefy-0.8.6.tgz", + "integrity": "sha512-7woxrdwANcnJbe7lofPxkJLGRRGIVwFXOo0kzEpiNB6alQj18NV6UrdAKse+LWCOADz+AeHe5gyc6qdgRjG5mw==", "requires": { "bulma": "0.7.5" } diff --git a/package.json b/package.json index 8ddcd0e23..9adf8c99c 100644 --- a/package.json +++ b/package.json @@ -8,7 +8,7 @@ }, "dependencies": { "axios": "^0.19.0", - "buefy": "^0.8.3", + "buefy": "^0.8.6", "bulma": "^0.7.5", "mdi": "^2.2.43", "moment": "^2.22.2", diff --git a/src/admin/class-tainacan-admin.php b/src/admin/class-tainacan-admin.php index 8f9527454..a692af8af 100644 --- a/src/admin/class-tainacan-admin.php +++ b/src/admin/class-tainacan-admin.php @@ -41,14 +41,14 @@ class Admin { array( &$this, 'admin_page' ), plugin_dir_url( __FILE__ ) . 'images/tainacan_logo_symbol.svg' ); - - add_submenu_page( - $this->menu_slug, - __('System check', 'tainacan'), - __('System check', 'tainacan'), - 'manage_options', - 'tainacan_systemcheck', - array( &$this, 'systemcheck_page' ) + + add_submenu_page( + $this->menu_slug, + __('System check', 'tainacan'), + __('System check', 'tainacan'), + 'manage_options', + 'tainacan_systemcheck', + array( &$this, 'systemcheck_page' ) ); add_action( 'load-' . $page_suffix, array( &$this, 'load_admin_page' ) ); @@ -57,6 +57,7 @@ class Admin { function load_admin_page() { add_action( 'admin_enqueue_scripts', array( &$this, 'add_admin_css' ), 90 ); add_action( 'admin_enqueue_scripts', array( &$this, 'add_admin_js' ), 90 ); + add_action( 'admin_enqueue_scripts', array(&$this, 'add_theme_files') ); } @@ -74,18 +75,18 @@ class Admin { function add_theme_files() { global $TAINACAN_BASE_URL; - + // wp_enqueue_style( 'style', $TAINACAN_BASE_URL . '/assets/css/fonts/materialdesignicons.css' ); wp_enqueue_style( 'tainacan-fonts', $TAINACAN_BASE_URL . '/assets/css/fonts/tainacanicons.css', [], TAINACAN_VERSION ); wp_enqueue_style( 'roboto-fonts', 'https://fonts.googleapis.com/css?family=Roboto:400,400i,500,500i,700,700i', [], TAINACAN_VERSION ); wp_enqueue_script('underscore'); } - + function add_admin_css() { global $TAINACAN_BASE_URL; - + wp_enqueue_style( 'tainacan-admin-page', $TAINACAN_BASE_URL . '/assets/css/tainacan-admin.css', [], TAINACAN_VERSION ); - + // $undesired_wp_styles = [ // 'admin-menu', // 'admin-bar', @@ -119,14 +120,14 @@ class Admin { // // wp_dequeue_style( $undesired_wp_styles ); // wp_deregister_style( $undesired_wp_styles ); - + } - + function add_admin_js() { global $TAINACAN_BASE_URL; wp_enqueue_script( 'tainacan-user-admin', $TAINACAN_BASE_URL . '/assets/user_admin-components.js', ['underscore', 'media-editor', 'media-views', 'customize-controls'], TAINACAN_VERSION, true ); - + $settings = $this->get_admin_js_localization_params(); wp_localize_script( 'tainacan-user-admin', 'tainacan_plugin', $settings ); @@ -134,23 +135,23 @@ class Admin { wp_enqueue_script('underscore'); wp_enqueue_script('jcrop'); wp_enqueue_script( 'customize-controls' ); - + do_action('tainacan-enqueue-admin-scripts'); - + } - + /** * Also used by DevInterface */ function get_admin_js_localization_params() { global $TAINACAN_BASE_URL, $TAINACAN_API_MAX_ITEMS_PER_PAGE; - + $Tainacan_Collections = \Tainacan\Repositories\Collections::get_instance(); $Tainacan_Metadata = \Tainacan\Repositories\Metadata::get_instance(); $Tainacan_Filters = \Tainacan\Repositories\Filters::get_instance(); $Tainacan_Items = \Tainacan\Repositories\Items::get_instance(); $Tainacan_Taxonomies = \Tainacan\Repositories\Taxonomies::get_instance(); - + $tainacan_admin_i18n = require( 'tainacan-admin-i18n.php' ); $entities_labels = [ @@ -222,33 +223,33 @@ class Admin { } $filter_types = $Tainacan_Filters->fetch_filter_types(); - + foreach ( $filter_types as $index => $filter_type){ $class = new $filter_type; $settings['i18n']['helpers_label'][$class->get_component()] = $class->get_form_labels(); } - + $settings['form_hooks'] = Admin_Hooks::get_instance()->get_registered_hooks(); - + $wp_post_types = get_post_types(['show_ui' => true], 'objects'); if (isset($wp_post_types['attachment'])) { unset($wp_post_types['attachment']); } - + $wp_post_types = array_map(function($i) { return [ 'slug' => $i->name, 'label' => $i->label ]; }, $wp_post_types); - + $settings['wp_post_types'] = $wp_post_types; - + // add an alternative to enable select all items in all pages while we temporarly disable bulk edit for all (see #199) - $settings['enable_select_all_items_pages'] = defined('TAINACAN_ENABLE_SELECT_ALL_ITEMS_PAGES') ? TAINACAN_ENABLE_SELECT_ALL_ITEMS_PAGES : false; - + $settings['enable_select_all_items_pages'] = defined('TAINACAN_ENABLE_SELECT_ALL_ITEMS_PAGES') ? TAINACAN_ENABLE_SELECT_ALL_ITEMS_PAGES : false; + return $settings; - + } function admin_body_class( $classes ) { @@ -334,7 +335,7 @@ class Admin { wp_die(); } - + public function systemcheck_page() { require_once('system-check/class-tainacan-system-check.php'); $check = new System_Check(); diff --git a/src/admin/components/bulk-edition/bulk-edition-modal.vue b/src/admin/components/bulk-edition/bulk-edition-modal.vue index fa3cdd9f9..f12fb76f8 100644 --- a/src/admin/components/bulk-edition/bulk-edition-modal.vue +++ b/src/admin/components/bulk-edition/bulk-edition-modal.vue @@ -1,5 +1,12 @@ diff --git a/src/admin/components/lists/filters-list.vue b/src/admin/components/lists/filters-list.vue index da180a040..e8585add0 100644 --- a/src/admin/components/lists/filters-list.vue +++ b/src/admin/components/lists/filters-list.vue @@ -96,7 +96,7 @@ - ({{ $i18n.get(filter.filter_type_object.component) }}) + ({{ filter.filter_type_object.name }}) @@ -117,7 +117,7 @@ @input="onChangeEnable($event, index)"/> + @click.prevent="toggleFilterEdition(filter.id)"> + :active.sync="isSelectingFilterType" + trap-focus + aria-modal + aria-role="dialog"> - +
-
+
+ :active.sync="isMapperMetadataCreating" + trap-focus + aria-modal + aria-role="dialog">
diff --git a/src/admin/components/navigation/tainacan-header.vue b/src/admin/components/navigation/tainacan-header.vue index 62c07f6ff..6056a2357 100644 --- a/src/admin/components/navigation/tainacan-header.vue +++ b/src/admin/components/navigation/tainacan-header.vue @@ -61,7 +61,8 @@ ref="advancedSearchShortcut" class="advanced-search-header-dropdown" position="is-bottom-left" - aria-role="list"> + aria-role="list" + trap-focus>
diff --git a/src/admin/components/navigation/tainacan-repository-subheader.vue b/src/admin/components/navigation/tainacan-repository-subheader.vue index 1a9b4fae3..d6e3710c2 100644 --- a/src/admin/components/navigation/tainacan-repository-subheader.vue +++ b/src/admin/components/navigation/tainacan-repository-subheader.vue @@ -130,7 +130,8 @@ export default { props: { sourceCollection: this.collectionId, hideWhenManualCollection: true - } + }, + trapFocus: true }); } } diff --git a/src/admin/components/other/activity-details-modal.vue b/src/admin/components/other/activity-details-modal.vue new file mode 100644 index 000000000..b9e624167 --- /dev/null +++ b/src/admin/components/other/activity-details-modal.vue @@ -0,0 +1,790 @@ + + + + + \ No newline at end of file diff --git a/src/admin/components/other/activity/activity-details-modal.vue b/src/admin/components/other/activity/activity-details-modal.vue deleted file mode 100644 index a39eb5fe0..000000000 --- a/src/admin/components/other/activity/activity-details-modal.vue +++ /dev/null @@ -1,401 +0,0 @@ - - - - - \ No newline at end of file diff --git a/src/admin/components/other/available-exporters-modal.vue b/src/admin/components/other/available-exporters-modal.vue index 509ad676d..dcd175aa9 100644 --- a/src/admin/components/other/available-exporters-modal.vue +++ b/src/admin/components/other/available-exporters-modal.vue @@ -1,5 +1,12 @@