Skip to content

Commit

Permalink
Merge branch '4' into 5
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed May 9, 2024
2 parents 2a37e3a + 72be484 commit 96ffe5e
Show file tree
Hide file tree
Showing 23 changed files with 2,815 additions and 2,989 deletions.
11 changes: 11 additions & 0 deletions .github/workflows/ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
name: CI

on:
push:
pull_request:
workflow_dispatch:

jobs:
ci:
name: CI
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
178 changes: 0 additions & 178 deletions .sass-lint.yml

This file was deleted.

2 changes: 2 additions & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
client/src/styles/legacy/*
admin/client/src/styles/legacy/*
1 change: 1 addition & 0 deletions .stylelintrc.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
module.exports = require('@silverstripe/eslint-config/.stylelintrc');
26 changes: 6 additions & 20 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,36 +1,22 @@
: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:
# GridField Bulk Editing Tools

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)

Set of SilverStripe 4 GridField components to facilitate bulk file upload & record editing.

Set of SilverStripe CMS GridField components to facilitate bulk file upload & record editing.

## 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

## Requirements
* SilverStripe 4.0 (master / 3.+)
* SilverStripe 3.1 (version 2.+ / 1.+)
* Silverstripe 3.0 (version 0.5)

## Installation
`composer require colymba/gridfield-bulk-editing-tools`

## 3.0.0 deprecations
The 3.x versions of this module require SilverStripe 4.x+, and PHP 5.5 or above:

* Namespaces are implemented, and some class names have changed (see `.upgrade.yml` for mapping)

## 2.0.0 deprecations
Major deprections in latest 2.0.0 release:
* The `GridFieldBulkImageUpload` has been renamed to `GridFieldBulkUpload`.
* `onBulkImageUpload` callback has been renamed to `onBulkUpload`
```sh
composer require colymba/gridfield-bulk-editing-tools
```

## Bulk Upload
Upload multiple images or files at once into DataObjects. Perfect for galleries and the like.
Expand Down
2 changes: 1 addition & 1 deletion client/dist/js/main.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions client/src/js/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -175,12 +175,14 @@ jQuery.entwine('colymba', ($) => {
const inputData = { records: ids };

if (ids.length <= 0) {
// eslint-disable-next-line no-alert
alert(i18n._t('GRIDFIELD_BULK_MANAGER.BULKACTION_EMPTY_SELECT'));
return false;
}

// if ( $btn.hasClass('ss-ui-action-destructive') )
if (config[action].destructive) {
// eslint-disable-next-line no-alert
if (!confirm(i18n._t('GRIDFIELD_BULK_MANAGER.CONFIRM_DESTRUCTIVE_ACTION'))) {
return false;
}
Expand Down
14 changes: 7 additions & 7 deletions lang/cs.yml
Original file line number Diff line number Diff line change
@@ -1,10 +1,10 @@
cs:
GRIDFIELD_BULK_MANAGER:
EDIT_SELECT_LABEL: Upravit
UNLINK_SELECT_LABEL: Odstranit vazbu
DELETE_SELECT_LABEL: Smazat
ACTION_BTN_LABEL: Provést
SELECT_ALL_LABEL: Vybrat vše
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
SAVE_BTN_LABEL: Uložit vše
CANCEL_BTN_LABEL: Storno
SAVE_BTN_LABEL: 'Uložit vše'
GRIDFIELD_BULK_MANAGER:
ACTION_BTN_LABEL: Provést
DELETE_SELECT_LABEL: Smazat
EDIT_SELECT_LABEL: Upravit
SELECT_ALL_LABEL: 'Vybrat vše'
UNLINK_SELECT_LABEL: 'Odstranit vazbu'
Loading

0 comments on commit 96ffe5e

Please sign in to comment.