From 219d091a6f7e43be2fa280c0fbf1b411550867f6 Mon Sep 17 00:00:00 2001 From: Steve Boyd Date: Wed, 6 Nov 2024 12:27:03 +1300 Subject: [PATCH 1/3] TLN Update translations --- lang/eo.yml | 17 +++++++++++++++++ lang/ru.yml | 1 + lang/sl.yml | 17 +++++++++++++++++ 3 files changed, 35 insertions(+) create mode 100644 lang/eo.yml create mode 100644 lang/sl.yml diff --git a/lang/eo.yml b/lang/eo.yml new file mode 100644 index 0000000..824070a --- /dev/null +++ b/lang/eo.yml @@ -0,0 +1,17 @@ +eo: + GRIDFIELD_BULKMANAGER_EDIT_HANDLER: + CANCEL_BTN_LABEL: Nuligi + HEADER_TEXT: 'Redaktas {count} {class}' + SAVE_BTN_LABEL: 'Konservi ĉion' + SAVE_RESULT_TEXT: '{count} {class} sukcese konservita.' + TOGGLE_ALL_LINK: 'Vidigi/kaŝi ĉion' + GRIDFIELD_BULK_MANAGER: + ACTION_BTN_LABEL: Iri + ARCHIVE_SELECT_LABEL: Enarkivigi + COMPONENT_TITLE: 'Ŝanĝi elementojn unuope aŭ pliope.' + DELETE_SELECT_LABEL: Forigi + EDIT_SELECT_LABEL: Redakti + PUBLISH_SELECT_LABEL: Publikigi + SELECT_ALL_LABEL: 'Elekti ĉiujn' + UNLINK_SELECT_LABEL: Malligi + UNPUBLISH_SELECT_LABEL: Malpublikigi diff --git a/lang/ru.yml b/lang/ru.yml index bd2e4bd..4d456f7 100644 --- a/lang/ru.yml +++ b/lang/ru.yml @@ -10,4 +10,5 @@ ru: COMPONENT_TITLE: 'Редактировать одну или несколько записей одновременно' DELETE_SELECT_LABEL: Удалить EDIT_SELECT_LABEL: Редактировать + SELECT_ALL_LABEL: 'Выбрать все' UNLINK_SELECT_LABEL: Отвязать diff --git a/lang/sl.yml b/lang/sl.yml new file mode 100644 index 0000000..76e8bcd --- /dev/null +++ b/lang/sl.yml @@ -0,0 +1,17 @@ +sl: + GRIDFIELD_BULKMANAGER_EDIT_HANDLER: + CANCEL_BTN_LABEL: Prekliči + HEADER_TEXT: 'Urejanje {count} iz {class}' + SAVE_BTN_LABEL: 'Shrani vse' + SAVE_RESULT_TEXT: 'Uspešno shranjeno {count} iz {class} ' + TOGGLE_ALL_LINK: 'Prikaži/skrij vse' + GRIDFIELD_BULK_MANAGER: + ACTION_BTN_LABEL: Sproži + ARCHIVE_SELECT_LABEL: Arhiviraj + COMPONENT_TITLE: 'Uredi enega ali več vnosov hkrati.' + DELETE_SELECT_LABEL: Izbriši + EDIT_SELECT_LABEL: Uredi + PUBLISH_SELECT_LABEL: Objavi + SELECT_ALL_LABEL: 'Izberi vse' + UNLINK_SELECT_LABEL: Odpni + UNPUBLISH_SELECT_LABEL: 'Umakni iz objave' From d2c91c640e57640ebea95410c6809d74007cf5f1 Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Wed, 13 Nov 2024 13:25:35 +1300 Subject: [PATCH 2/3] MNT Update meta files after migrating repo to silverstripe org (#311) --- README.md | 30 ++++++++++-------------------- composer.json | 11 +++++++---- package.json | 4 ---- 3 files changed, 17 insertions(+), 28 deletions(-) diff --git a/README.md b/README.md index a8acafc..ca81ac9 100644 --- a/README.md +++ b/README.md @@ -1,14 +1,12 @@ # GridField Bulk Editing Tools -:warning: I haven't been able to give as much love as I would like to these repos as they deserve. If you have time and are interested to help maintain them, give me a shout. :rotating_light: - -[![Latest Stable Version](https://poser.pugx.org/colymba/gridfield-bulk-editing-tools/v/stable.svg)](https://github.com/colymba/GridFieldBulkEditingTools/releases) -[![Latest Unstable Version](https://poser.pugx.org/colymba/gridfield-bulk-editing-tools/v/unstable.svg)](https://github.com/colymba/GridFieldBulkEditingTools/tree/master) -[![License](https://poser.pugx.org/colymba/gridfield-bulk-editing-tools/license.svg)](#license-and-copyright) +[![CI](https://github.com/silverstripe/silverstripe-gridfield-bulk-editing-tools/actions/workflows/ci.yml/badge.svg)](https://github.com/silverstripe/silverstripe-gridfield-bulk-editing-tools/actions/workflows/ci.yml) +[![Silverstripe supported module](https://img.shields.io/badge/silverstripe-supported-0071C4.svg)](https://www.silverstripe.org/software/addons/silverstripe-commercially-supported-module-list/) Set of SilverStripe CMS GridField components to facilitate bulk file upload & record editing. -## Components: +## Components + * [Bulk Upload](#bulk-upload): Upload multiple images or files at once into DataObjects * [Bulk Manager](#bulk-manager): Delete, Unlink, Edit (and more) multiple records at once @@ -19,6 +17,7 @@ composer require colymba/gridfield-bulk-editing-tools ``` ## Bulk Upload + Upload multiple images or files at once into DataObjects. Perfect for galleries and the like. ```php @@ -26,11 +25,15 @@ $config->addComponent(new \Colymba\BulkUpload\BulkUploader()); ``` ### Versioned + By default `BulkUploader` will write to the current stage (most likely Draft). To auto publish your `DataObject`, use the following param or config: + ```php $config->addComponent(new \Colymba\BulkUpload\BulkUploader(null, null, true)); ``` + OR + ```php $config->getComponentByType('Colymba\\BulkUpload\\BulkUploader')->setAutoPublishDataObject(true); ``` @@ -40,6 +43,7 @@ Your `DataObject` should `own` the `Image`/`File` relation so it is published at See [BULK_UPLOAD.md](docs/en/BULK_UPLOAD.md) for detailed configuration. ## Bulk Manager + Perform actions on multiple records straight from the GridField ```php @@ -47,17 +51,3 @@ $config->addComponent(new \Colymba\BulkManager\BulkManager()); ``` See [BULK_MANAGER.md](docs/en//BULK_MANAGER.md) for detailed configuration. - -## Tooling -* `npm run watch` for development -* `npm run dist` before pushing to the repo - -## Translations - -Translations of the natural language strings are managed through a third party translation interface, transifex.com. - -Please use [https://www.transifex.com/projects/p/gridfieldbulkeditingtools/](https://www.transifex.com/projects/p/gridfieldbulkeditingtools/) to contribute translations, rather than sending pull requests with YAML/JS files. - -## License and Copyright - -[BSD 3-clause license](LICENSE) diff --git a/composer.json b/composer.json index 22004fb..f4c2845 100644 --- a/composer.json +++ b/composer.json @@ -1,8 +1,7 @@ { "name": "colymba/gridfield-bulk-editing-tools", "type": "silverstripe-vendormodule", - "description": "SilverStripe GridField component to upload images/files and edit records in bulk", - "homepage": "https://github.com/colymba/GridFieldBulkEditingTools", + "description": "Silverstripe CMS GridField component to upload images/files and edit records in bulk", "keywords": [ "silverstripe", "bulk upload", @@ -16,8 +15,12 @@ "homepage": "http://t-f.io" }, { - "name": "GitHub contributors", - "homepage": "https://github.com/colymba/GridFieldBulkEditingTools/contributors" + "name": "SilverStripe", + "homepage": "http://silverstripe.com" + }, + { + "name": "The SilverStripe Community", + "homepage": "http://silverstripe.org" } ], "require": { diff --git a/package.json b/package.json index bcab92f..1bed776 100644 --- a/package.json +++ b/package.json @@ -27,10 +27,6 @@ ], "author": "Thierry Francois", "license": "BSD-3-Clause", - "bugs": { - "url": "https://github.com/colymba/GridFieldBulkEditingTools/issues" - }, - "homepage": "https://github.com/colymba/GridFieldBulkEditingTools", "dependencies": { "core-js": "^3.26.0" }, From da29c317d9d5bb708ccbdd3175ba548d632b732b Mon Sep 17 00:00:00 2001 From: Guy Sartorelli <36352093+GuySartorelli@users.noreply.github.com> Date: Thu, 14 Nov 2024 09:44:28 +1300 Subject: [PATCH 3/3] MNT Run module-standardiser (#313) --- .github/workflows/add-prs-to-project.yml | 22 ++++++++++++++++++++++ .github/workflows/dispatch-ci.yml | 8 ++++---- .github/workflows/keepalive.yml | 8 ++++---- .github/workflows/merge-up.yml | 8 ++++---- .github/workflows/tag-patch-release.yml | 4 ++-- .github/workflows/update-js.yml | 8 ++++---- 6 files changed, 40 insertions(+), 18 deletions(-) create mode 100644 .github/workflows/add-prs-to-project.yml diff --git a/.github/workflows/add-prs-to-project.yml b/.github/workflows/add-prs-to-project.yml new file mode 100644 index 0000000..2d3f41a --- /dev/null +++ b/.github/workflows/add-prs-to-project.yml @@ -0,0 +1,22 @@ +name: Add new PRs to github project + +on: + pull_request_target: + types: + - opened + - ready_for_review + +permissions: {} + +jobs: + addprtoproject: + name: Add PR to GitHub Project + # Only run on the silverstripe account + if: github.repository_owner == 'silverstripe' + runs-on: ubuntu-latest + steps: + - name: Add PR to github project + uses: silverstripe/gha-add-pr-to-project@v1 + with: + app_id: ${{ vars.PROJECT_PERMISSIONS_APP_ID }} + private_key: ${{ secrets.PROJECT_PERMISSIONS_APP_PRIVATE_KEY }} diff --git a/.github/workflows/dispatch-ci.yml b/.github/workflows/dispatch-ci.yml index 4706965..4b1c72c 100644 --- a/.github/workflows/dispatch-ci.yml +++ b/.github/workflows/dispatch-ci.yml @@ -1,17 +1,17 @@ name: Dispatch CI on: - # At 6:30 AM UTC, only on Monday and Tuesday + # At 2:10 PM UTC, only on Saturday and Sunday schedule: - - cron: '30 6 * * 1,2' + - cron: '10 14 * * 6,0' permissions: {} jobs: dispatch-ci: name: Dispatch CI - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: contents: read diff --git a/.github/workflows/keepalive.yml b/.github/workflows/keepalive.yml index 0550cda..ca54f71 100644 --- a/.github/workflows/keepalive.yml +++ b/.github/workflows/keepalive.yml @@ -1,9 +1,9 @@ name: Keepalive on: - # At 3:15 AM UTC, on day 16 of the month + # At 11:55 AM UTC, on day 28 of the month schedule: - - cron: '15 3 16 * *' + - cron: '55 11 28 * *' workflow_dispatch: permissions: {} @@ -11,8 +11,8 @@ permissions: {} jobs: keepalive: name: Keepalive - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: actions: write diff --git a/.github/workflows/merge-up.yml b/.github/workflows/merge-up.yml index fe80cb5..4bdb1fa 100644 --- a/.github/workflows/merge-up.yml +++ b/.github/workflows/merge-up.yml @@ -1,9 +1,9 @@ name: Merge-up on: - # At 6:30 AM UTC, only on Friday + # At 2:10 PM UTC, only on Wednesday schedule: - - cron: '30 6 * * 5' + - cron: '10 14 * * 3' workflow_dispatch: permissions: {} @@ -11,8 +11,8 @@ permissions: {} jobs: merge-up: name: Merge-up - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/tag-patch-release.yml b/.github/workflows/tag-patch-release.yml index 388ee98..dc2db2b 100644 --- a/.github/workflows/tag-patch-release.yml +++ b/.github/workflows/tag-patch-release.yml @@ -14,8 +14,8 @@ permissions: {} jobs: tagpatchrelease: name: Tag patch release - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: contents: write diff --git a/.github/workflows/update-js.yml b/.github/workflows/update-js.yml index 296712a..9e9f991 100644 --- a/.github/workflows/update-js.yml +++ b/.github/workflows/update-js.yml @@ -2,17 +2,17 @@ name: Update JS on: workflow_dispatch: - # At 10:50 AM UTC, on day 1 of the month, only in March and September + # At 6:30 PM UTC, on day 1 of the month, only in March and September schedule: - - cron: '50 10 1 3,9 *' + - cron: '30 18 1 3,9 *' permissions: {} jobs: update-js: name: Update JS - # Only run cron on the colymba account - if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule') + # Only run cron on the silverstripe account + if: (github.event_name == 'schedule' && github.repository_owner == 'silverstripe') || (github.event_name != 'schedule') runs-on: ubuntu-latest permissions: contents: write