mirror of
https://github.com/dwaxweiler/connector-mobilizon
synced 2025-05-20 21:34:45 +02:00
Merge branch 'main' into display-picture
This commit is contained in:
commit
fb1fe56970
@ -1,2 +1,2 @@
|
||||
npm test
|
||||
npx lint-staged
|
||||
lint-staged
|
||||
|
9544
package-lock.json
generated
9544
package-lock.json
generated
File diff suppressed because it is too large
Load Diff
34
package.json
34
package.json
@ -1,6 +1,6 @@
|
||||
{
|
||||
"name": "connector-mobilizon",
|
||||
"version": "1.0.0-next",
|
||||
"version": "1.1.0-next",
|
||||
"description": "Display Mobilizon events in WordPress.",
|
||||
"private": true,
|
||||
"type": "module",
|
||||
@ -24,32 +24,32 @@
|
||||
},
|
||||
"license": "Apache-2.0",
|
||||
"dependencies": {
|
||||
"graphql": "16.8.1",
|
||||
"graphql": "16.9.0",
|
||||
"luxon": "3.4.4"
|
||||
},
|
||||
"devDependencies": {
|
||||
"@babel/core": "7.24.4",
|
||||
"@babel/eslint-parser": "7.24.1",
|
||||
"@babel/preset-env": "7.24.4",
|
||||
"@babel/preset-react": "7.24.1",
|
||||
"@wordpress/eslint-plugin": "17.12.0",
|
||||
"ava": "6.1.2",
|
||||
"@babel/core": "7.24.9",
|
||||
"@babel/eslint-parser": "7.24.8",
|
||||
"@babel/preset-env": "7.24.8",
|
||||
"@babel/preset-react": "7.24.7",
|
||||
"@wordpress/eslint-plugin": "20.0.0",
|
||||
"ava": "6.1.3",
|
||||
"babel-loader": "9.1.3",
|
||||
"browser-env": "3.3.0",
|
||||
"c8": "9.1.0",
|
||||
"c8": "10.1.2",
|
||||
"copy-webpack-plugin": "12.0.2",
|
||||
"eslint": "8.57.0",
|
||||
"eslint-plugin-ava": "14.0.0",
|
||||
"eslint-plugin-jsx": "0.1.0",
|
||||
"eslint-plugin-react": "7.34.1",
|
||||
"eslint-plugin-react": "7.34.4",
|
||||
"esm": "3.2.25",
|
||||
"gulp": "4.0.2",
|
||||
"gulp": "5.0.0",
|
||||
"gulp-replace": "1.1.4",
|
||||
"husky": "9.0.11",
|
||||
"lint-staged": "15.2.2",
|
||||
"prettier": "3.2.5",
|
||||
"rimraf": "5.0.5",
|
||||
"webpack": "5.91.0",
|
||||
"husky": "9.1.1",
|
||||
"lint-staged": "15.2.7",
|
||||
"prettier": "3.3.3",
|
||||
"rimraf": "5.0.9",
|
||||
"webpack": "5.93.0",
|
||||
"webpack-cli": "5.1.4"
|
||||
},
|
||||
"ava": {
|
||||
@ -61,7 +61,7 @@
|
||||
"niceName": "Connector for Mobilizon",
|
||||
"phpMinimumVersion": 7.4,
|
||||
"wordpressMinimumVersion": 5.6,
|
||||
"wordpressTestedUpToVersion": "6.5"
|
||||
"wordpressTestedUpToVersion": "6.6"
|
||||
},
|
||||
"lint-staged": {
|
||||
"source/**/*.js": "eslint",
|
||||
|
@ -6,6 +6,15 @@
|
||||
#### Fixed
|
||||
#### Security
|
||||
|
||||
### [1.1.0]
|
||||
#### Added
|
||||
- Add some spacing between event items
|
||||
#### Changed
|
||||
- Update dependencies
|
||||
- Confirm compatibility with WordPress 6.6
|
||||
#### Fixed
|
||||
- Fix undefined variable $classNamePrefix for both error views
|
||||
|
||||
### [1.0.0]
|
||||
#### Added
|
||||
- Display name of group when it cannot be found
|
||||
|
@ -39,6 +39,7 @@ class EventsListBlock {
|
||||
$url = Settings::getUrl();
|
||||
$eventsCount = $block_attributes['eventsCount'];
|
||||
$groupName = isset($block_attributes['groupName']) ? $block_attributes['groupName'] : '';
|
||||
$classNamePrefix = NAME;
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
@ -48,7 +49,6 @@ class EventsListBlock {
|
||||
$events = GraphQlClient::get_upcoming_events($url, (int) $eventsCount);
|
||||
}
|
||||
|
||||
$classNamePrefix = NAME;
|
||||
$locale = get_locale();
|
||||
$isShortOffsetNameShown = Settings::isShortOffsetNameShown();
|
||||
$timeZone = wp_timezone_string();
|
||||
|
@ -22,6 +22,7 @@ class EventsListShortcut {
|
||||
$url = Settings::getUrl();
|
||||
$eventsCount = $atts_with_overriden_defaults['events-count'];
|
||||
$groupName = $atts_with_overriden_defaults['group-name'];
|
||||
$classNamePrefix = NAME;
|
||||
|
||||
ob_start();
|
||||
try {
|
||||
@ -31,7 +32,6 @@ class EventsListShortcut {
|
||||
$events = GraphQlClient::get_upcoming_events($url, (int) $eventsCount);
|
||||
}
|
||||
|
||||
$classNamePrefix = NAME;
|
||||
$locale = get_locale();
|
||||
$isShortOffsetNameShown = Settings::isShortOffsetNameShown();
|
||||
$timeZone = wp_timezone_string();
|
||||
|
@ -23,6 +23,7 @@ class EventsListWidget extends \WP_Widget {
|
||||
$url = Settings::getUrl();
|
||||
$eventsCount = $options['eventsCount'];
|
||||
$groupName = isset($options['groupName']) ? $options['groupName'] : '';
|
||||
$classNamePrefix = NAME;
|
||||
|
||||
try {
|
||||
if ($groupName) {
|
||||
@ -31,7 +32,6 @@ class EventsListWidget extends \WP_Widget {
|
||||
$events = GraphQlClient::get_upcoming_events($url, (int) $eventsCount);
|
||||
}
|
||||
|
||||
$classNamePrefix = NAME;
|
||||
$locale = get_locale();
|
||||
$isShortOffsetNameShown = Settings::isShortOffsetNameShown();
|
||||
$timeZone = wp_timezone_string();
|
||||
|
@ -23,6 +23,8 @@ Features
|
||||
- Set the URL of the Mobilizon instance in the settings
|
||||
- Toggle adding named offset in brackets after the time in the settings
|
||||
|
||||
This plugin requests the events via Mobilizon's GraphQL API.
|
||||
|
||||
The source code is available on [Github](https://github.com/dwaxweiler/connector-mobilizon).
|
||||
|
||||
## Installation
|
||||
@ -41,6 +43,15 @@ You have to use their username, e.g. `@nosliensvivants`, and append the name of
|
||||
|
||||
## Changelog
|
||||
|
||||
### [1.1.0]
|
||||
#### Added
|
||||
- Add some spacing between event items
|
||||
#### Changed
|
||||
- Update dependencies
|
||||
- Confirm compatibility with WordPress 6.6
|
||||
#### Fixed
|
||||
- Fix undefined variable $classNamePrefix for both error views
|
||||
|
||||
### [1.0.0]
|
||||
#### Added
|
||||
- Display name of group when it cannot be found
|
||||
|
Loading…
x
Reference in New Issue
Block a user