Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix missing import #276

Closed
wants to merge 9 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 0 additions & 5 deletions .github/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,13 +4,8 @@ on:
push:
pull_request:
workflow_dispatch:
# Every Wednesday at 1:00pm UTC
schedule:
- cron: '0 13 * * 3'

jobs:
ci:
name: CI
# Only run cron on the colymba account
if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule')
uses: silverstripe/gha-ci/.github/workflows/ci.yml@v1
16 changes: 16 additions & 0 deletions .github/dispatch-ci.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
name: Dispatch CI

on:
# At 4:10 PM UTC, only on Sunday and Monday
schedule:
- cron: '10 16 * * 0,1'

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')
runs-on: ubuntu-latest
steps:
- name: Dispatch CI
uses: silverstripe/gha-dispatch-ci@v1
17 changes: 17 additions & 0 deletions .github/workflows/keepalive.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Keepalive

on:
# At 11:55 PM UTC, on day 20 of the month
schedule:
- cron: '55 23 20 * *'
workflow_dispatch:

jobs:
keepalive:
name: Keepalive
# Only run cron on the colymba account
if: (github.event_name == 'schedule' && github.repository_owner == 'colymba') || (github.event_name != 'schedule')
runs-on: ubuntu-latest
steps:
- name: Keepalive
uses: silverstripe/gha-keepalive@v1
17 changes: 17 additions & 0 deletions .github/workflows/merge-up.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Merge-up

on:
# At 11:55 PM UTC, only on Friday
schedule:
- cron: '55 23 * * 5'
workflow_dispatch:

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')
runs-on: ubuntu-latest
steps:
- name: Merge-up
uses: silverstripe/gha-merge-up@v1
17 changes: 17 additions & 0 deletions .github/workflows/update-js.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
name: Update JS

on:
workflow_dispatch:
# Run on a schedule of once per quarter
schedule:
- cron: '55 23 1 */3 *'

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')
runs-on: ubuntu-latest
steps:
- name: Update JS
uses: silverstripe/gha-update-js@v1
69 changes: 0 additions & 69 deletions .scrutinizer.yml

This file was deleted.

11 changes: 4 additions & 7 deletions .tx/config
Original file line number Diff line number Diff line change
@@ -1,17 +1,14 @@
[main]
host = https://www.transifex.com

[gridfieldbulkeditingtools.yml]
[o:silverstripe:p:silverstripe-gridfield-bulk-editing-tools:r:master]
file_filter = lang/<lang>.yml
minimum_perc = 0
source_file = lang/en.yml
source_lang = en
type = YML
type = YML

[gridfieldbulkeditingtools.js]
[o:silverstripe:p:silverstripe-gridfield-bulk-editing-tools:r:master-js]
file_filter = client/src/lang/<lang>.json
minimum_perc = 0
source_file = client/src/lang/en.json
source_lang = en
type = JSON

type = KEYVALUEJSON
10 changes: 0 additions & 10 deletions .upgrade.yml

This file was deleted.

4 changes: 0 additions & 4 deletions client/src/js/manager.js
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,6 @@ jQuery.entwine('colymba', ($) => {
},
});


/**
* Bulkselect table cell behaviours
*/
Expand Down Expand Up @@ -91,7 +90,6 @@ jQuery.entwine('colymba', ($) => {
}
});


/**
* Bulk action dropdown behaviours
*/
Expand Down Expand Up @@ -129,7 +127,6 @@ jQuery.entwine('colymba', ($) => {
$btn.find('img').remove();
}


if (config[value].destructive) {
$btn.addClass('btn-outline-danger');
} else {
Expand All @@ -138,7 +135,6 @@ jQuery.entwine('colymba', ($) => {
}
});


/**
* bulk action button behaviours
*/
Expand Down
1 change: 0 additions & 1 deletion client/src/js/managerBulkEditingForm.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,6 @@ jQuery.entwine('colymba', ($) => {
}
});


/**
* Contains each rocrds editing fields,
* tracks changes and updates...
Expand Down
11 changes: 10 additions & 1 deletion composer.json
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,12 @@
"type": "silverstripe-vendormodule",
"description": "SilverStripe GridField component to upload images/files and edit records in bulk",
"homepage": "https://github.com/colymba/GridFieldBulkEditingTools",
"keywords": ["silverstripe", "bulk upload", "image upload", "gridfield bulk upload"],
"keywords": [
"silverstripe",
"bulk upload",
"image upload",
"gridfield bulk upload"
],
"license": "BSD-3-Clause",
"authors": [
{
Expand Down Expand Up @@ -34,5 +39,9 @@
"Colymba\\BulkManager\\": "src/BulkManager/",
"Colymba\\BulkUpload\\": "src/BulkUploader/"
}
},
"require-dev": {
"silverstripe/standards": "^1",
"phpstan/extension-installer": "^1.3"
}
}
36 changes: 18 additions & 18 deletions lang/en.yml
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
en:
GRIDFIELD_BULK_UPLOAD:
GRIDFIELD_BULK_MANAGER:
COMPONENT_TITLE: Modify one or more entry at a time.
EDIT_SELECT_LABEL: Edit
UNLINK_SELECT_LABEL: Unlink
DELETE_SELECT_LABEL: Delete
ACTION_BTN_LABEL: Go
SELECT_ALL_LABEL: Select all
PUBLISH_SELECT_LABEL: Publish
UNPUBLISH_SELECT_LABEL: UnPublish
ARCHIVE_SELECT_LABEL: Archive
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
HEADER_TEXT: Editing {count} {class}
TOGGLE_ALL_LINK: Show/Hide all
SAVE_BTN_LABEL: Save all
CANCEL_BTN_LABEL: Cancel
SAVE_RESULT_TEXT: '{count} {class} saved successfully.'
en:
GRIDFIELD_BULKMANAGER_EDIT_HANDLER:
CANCEL_BTN_LABEL: Cancel
HEADER_TEXT: 'Editing {count} {class}'
SAVE_BTN_LABEL: 'Save all'
SAVE_RESULT_TEXT: '{count} {class} saved successfully.'
TOGGLE_ALL_LINK: 'Show/Hide all'
GRIDFIELD_BULK_MANAGER:
ACTION_BTN_LABEL: Go
ARCHIVE_SELECT_LABEL: Archive
COMPONENT_TITLE: 'Modify one or more entry at a time.'
DELETE_SELECT_LABEL: Delete
EDIT_SELECT_LABEL: Edit
PUBLISH_SELECT_LABEL: Publish
SELECT_ALL_LABEL: 'Select all'
UNLINK_SELECT_LABEL: Unlink
UNPUBLISH_SELECT_LABEL: UnPublish
GRIDFIELD_BULK_UPLOAD: null
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,8 @@
"core-js": "^3.26.0"
},
"devDependencies": {
"@silverstripe/eslint-config": "^1.0.0-alpha6",
"@silverstripe/webpack-config": "^2.0.0-alpha5",
"@silverstripe/eslint-config": "^1.0.0",
"@silverstripe/webpack-config": "^2.0.0",
"webpack": "^5.74.0",
"webpack-cli": "^5.0.0"
},
Expand Down
3 changes: 3 additions & 0 deletions phpstan.neon.dist
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
parameters:
paths:
- src
1 change: 1 addition & 0 deletions src/BulkManager/BulkAction/Handler.php
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,7 @@
use SilverStripe\Forms\GridField\GridFieldDetailForm_ItemRequest;
use SilverStripe\ORM\DataList;
use SilverStripe\View\ArrayData;
use SilverStripe\Forms\GridField\GridField;

/**
* Base class to extend for all custom bulk action handlers
Expand Down
16 changes: 8 additions & 8 deletions yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -1261,10 +1261,10 @@
resolved "https://registry.yarnpkg.com/@sect/modernizr-loader/-/modernizr-loader-1.0.3.tgz#7fd8cec372426c53f113f3cfd9344cb29e959825"
integrity sha512-47zKwv4/1I0CYptZz8s4aSYSe0awmuyqa+HFKxN89/75h2q8hr6V752TZ9VjhGDhQ4gU0EU7Plew7b+7bf2crg==

"@silverstripe/eslint-config@^1.0.0-alpha6":
version "1.0.0-alpha6"
resolved "https://registry.yarnpkg.com/@silverstripe/eslint-config/-/eslint-config-1.0.0-alpha6.tgz#1f243b003fddf3503a4abea37f35a8a5968cc96e"
integrity sha512-+P7UzhMRSmc7UlRYCiSXwjauLFYU11oBPwHl/bpacJ7xUcFY3Jt3CgcDt6d+XLvAJO8zMRsG9RcOm5MnxsyCsg==
"@silverstripe/eslint-config@^1.0.0":
version "1.1.0"
resolved "https://registry.yarnpkg.com/@silverstripe/eslint-config/-/eslint-config-1.1.0.tgz#3bf3d233b4ccfec4eeca362a621968ba2f70af59"
integrity sha512-7Y3zjAQzNyWceDDvd+cK0NdeI7MP0LJdL7JeF+JUBOmT14hOaBWvGrmcQLmYhZb2sTwh6JEgQI0+9ExVr/60nQ==
dependencies:
eslint "^8.26.0"
eslint-config-airbnb "^19.0.4"
Expand All @@ -1274,10 +1274,10 @@
eslint-plugin-react "^7.31.10"
eslint-webpack-plugin "^3.2.0"

"@silverstripe/webpack-config@^2.0.0-alpha5":
version "2.0.0-alpha6"
resolved "https://registry.yarnpkg.com/@silverstripe/webpack-config/-/webpack-config-2.0.0-alpha6.tgz#4a781f600344c3604169de08244ca11cacbd46f7"
integrity sha512-cPux01Z6EGwnSg5EezaJZ1S2x4ThfA3TbpTWTsqmW2jvr1VM/7Xu8B3j2HFH+2fNP0dvdmu+fScCD6VPNVQNWw==
"@silverstripe/webpack-config@^2.0.0":
version "2.0.0"
resolved "https://registry.yarnpkg.com/@silverstripe/webpack-config/-/webpack-config-2.0.0.tgz#278a72a1adbc6fa2362497d60424c78fba58e8e1"
integrity sha512-m1qGRxlsdhWL567cWe7IZNBUCzeyg3T1Y9yY9Y6XClwAqlg1oIO9uLfvfauA4dbtECrzU5n1AkaaU6kMRtN6Aw==
dependencies:
"@babel/core" "^7.19.6"
"@babel/preset-env" "^7.19.4"
Expand Down