Skip to content

Commit

Permalink
Merge branch '2.2' into 2
Browse files Browse the repository at this point in the history
  • Loading branch information
emteknetnz committed Apr 30, 2024
2 parents d43e6dc + 3434873 commit a3aa41c
Show file tree
Hide file tree
Showing 8 changed files with 350 additions and 947 deletions.
177 changes: 0 additions & 177 deletions .sass-lint.yml

This file was deleted.

1 change: 1 addition & 0 deletions .stylelintignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
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');
2 changes: 1 addition & 1 deletion client/dist/js/bundle.js

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
Expand Up @@ -604,7 +604,7 @@ class TreeDropdownField extends Component {
type="button"
className="treedropdownfield__option-button fill-width"
onClick={handleNavigate}
onMouseDown={handleNavigate}
onKeyDown={(event) => this.handleKeyDown(event)}
onTouchStart={handleNavigate}
>
<span className="treedropdownfield__option-count-icon font-icon-right-open-big" />
Expand Down
10 changes: 9 additions & 1 deletion client/src/legacy/LeftAndMain.js
Original file line number Diff line number Diff line change
Expand Up @@ -111,7 +111,15 @@ $.entwine('ss', function($) {
// Determine action
switch(data.type) {
case 'event':
target.trigger(data.event, data.data);
let eventType = data.event;
let eventData = data.data;
if (!eventType) {
eventType = data.message.type;
}
if (!eventData) {
eventData = data.message.payload;
}
target.trigger(eventType, eventData);
break;
case 'callback':
target[data.callback].call(target, data.data);
Expand Down
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,7 +18,7 @@
"css": "WEBPACK_CHILD=css npm run build",
"test": "jest",
"coverage": "jest --coverage",
"lint": "eslint client/src && sass-lint -v",
"lint": "eslint client/src && stylelint client/src/**/*.scss",
"js-fix": "eslint client/src --fix",
"pattern-lib": "storybook dev -p 6006",
"static-pattern-lib": "storybook build"
Expand Down Expand Up @@ -90,8 +90,8 @@
},
"devDependencies": {
"@babel/runtime": "^7.20.0",
"@silverstripe/eslint-config": "^1.1.0",
"@silverstripe/webpack-config": "^2.0.0",
"@silverstripe/eslint-config": "^1.2.1",
"@silverstripe/webpack-config": "^2.1.0",
"@storybook/addon-actions": "^7.0.18",
"@storybook/addon-controls": "^7.0.18",
"@storybook/addon-essentials": "^7.0.18",
Expand Down
Loading

0 comments on commit a3aa41c

Please sign in to comment.