1
0
mirror of https://github.com/dwaxweiler/connector-mobilizon synced 2025-06-05 21:59:25 +02:00

14 Commits

5 changed files with 1587 additions and 1662 deletions

3184
package-lock.json generated

File diff suppressed because it is too large Load Diff

View File

@ -1,6 +1,6 @@
{ {
"name": "connector-mobilizon", "name": "connector-mobilizon",
"version": "0.8.0", "version": "0.9.1",
"description": "Display Mobilizon events in WordPress.", "description": "Display Mobilizon events in WordPress.",
"private": true, "private": true,
"type": "module", "type": "module",
@ -24,30 +24,30 @@
}, },
"license": "Apache-2.0", "license": "Apache-2.0",
"dependencies": { "dependencies": {
"graphql": "^16.2.0", "graphql": "16.5.0",
"graphql-request": "^3.7.0", "graphql-request": "4.2.0",
"luxon": "^2.3.0", "luxon": "2.4.0",
"object-hash": "^2.2.0" "object-hash": "3.0.0"
}, },
"devDependencies": { "devDependencies": {
"@babel/core": "^7.16.7", "@babel/core": "7.17.12",
"@babel/preset-env": "^7.16.7", "@babel/preset-env": "7.17.12",
"ava": "^4.0.1", "ava": "4.2.0",
"babel-loader": "^8.2.3", "babel-loader": "8.2.5",
"c8": "^7.11.0", "c8": "7.11.3",
"copy-webpack-plugin": "^10.2.0", "copy-webpack-plugin": "11.0.0",
"eslint": "^8.6.0", "eslint": "8.15.0",
"eslint-plugin-ava": "^13.2.0", "eslint-plugin-ava": "13.2.0",
"esm": "^3.2.25", "esm": "3.2.25",
"gulp": "^4.0.2", "gulp": "4.0.2",
"gulp-replace": "^1.1.3", "gulp-replace": "1.1.3",
"husky": "^7.0.4", "husky": "8.0.1",
"jsdom": "^19.0.0", "jsdom": "19.0.0",
"lint-staged": "^12.1.7", "lint-staged": "12.4.1",
"prettier": "2.5.1", "prettier": "2.6.2",
"rimraf": "^3.0.2", "rimraf": "3.0.2",
"webpack": "^5.65.0", "webpack": "5.72.1",
"webpack-cli": "^4.9.1" "webpack-cli": "4.9.2"
}, },
"ava": { "ava": {
"files": [ "files": [
@ -58,7 +58,7 @@
"niceName": "Connector for Mobilizon", "niceName": "Connector for Mobilizon",
"phpMinimumVersion": 7.4, "phpMinimumVersion": 7.4,
"wordpressMinimumVersion": 5.6, "wordpressMinimumVersion": 5.6,
"wordpressTestedUpToVersion": 5.9 "wordpressTestedUpToVersion": "6.0"
}, },
"lint-staged": { "lint-staged": {
"source/**/*.js": "eslint", "source/**/*.js": "eslint",

View File

@ -6,6 +6,19 @@
#### Fixed #### Fixed
#### Security #### Security
### [0.9.1] - 2020-05-19
#### Fixed
- Fix WordPress compatibility version number
### [0.9.0] - 2020-05-19
#### Added
- Improve explanation of group name filter
#### Changed
- Update dependencies
- Confirm compatibility with WordPress 6.0
#### Fixed
- Fix displaying error message for the case the group is not found
### [0.8.0] - 2022-01-09 ### [0.8.0] - 2022-01-09
#### Added #### Added
- Add support for older browsers using babel - Add support for older browsers using babel

View File

@ -37,7 +37,7 @@ export function getUpcomingEvents({ url, limit }) {
export function getUpcomingEventsByGroupName({ url, limit, groupName }) { export function getUpcomingEventsByGroupName({ url, limit, groupName }) {
const query = ` const query = `
query ($afterDatetime: DateTime, $groupName: String, $limit: Int) { query ($afterDatetime: DateTime, $groupName: String!, $limit: Int) {
group(preferredUsername: $groupName) { group(preferredUsername: $groupName) {
organizedEvents(afterDatetime: $afterDatetime, limit: $limit) { organizedEvents(afterDatetime: $afterDatetime, limit: $limit) {
elements { elements {

View File

@ -24,7 +24,9 @@ Features
- Toggle adding named offset in brackets after the time in the settings - Toggle adding named offset in brackets after the time in the settings
Shortcut format with limiting the number of events to show to 3 for example: `[<wordpress-name>-events-list events-count=3]` Shortcut format with limiting the number of events to show to 3 for example: `[<wordpress-name>-events-list events-count=3]`
Optionally, you can only show the events of a specific group by indicatings its name: `[<wordpress-name>-events-list events-count=3 group-name="mygroup"]` Optionally, you can only show the events of a specific group by indicatings its name: `[<wordpress-name>-events-list events-count=3 group-name="mygroup"]`
You have to use their username, e.g. `@nosliensvivants`, and append the name of their instance if they use a different one, e.g. `@yaam_berlin@mobilize.berlin`.
The source code is available on [Github](https://github.com/dwaxweiler/connector-mobilizon). The source code is available on [Github](https://github.com/dwaxweiler/connector-mobilizon).