sort locales
This commit is contained in:
parent
6bc65ae80c
commit
10c6b0d242
2 changed files with 25 additions and 11 deletions
|
@ -1,12 +1,12 @@
|
|||
export default {
|
||||
it: 'Italiano',
|
||||
ca: 'Català',
|
||||
de: 'Deutsch',
|
||||
en: 'English',
|
||||
es: 'Español',
|
||||
ca: 'Català',
|
||||
pl: 'Polski',
|
||||
eu: 'Euskara',
|
||||
nb: 'Norwegian Bokmål',
|
||||
fr: 'Francais',
|
||||
de: 'Deutsch',
|
||||
gl: 'Galego'
|
||||
gl: 'Galego',
|
||||
it: 'Italiano',
|
||||
nb: 'Norwegian Bokmål',
|
||||
pl: 'Polski',
|
||||
}
|
||||
|
|
|
@ -80,10 +80,28 @@ if (config.status !== 'READY') {
|
|||
// update a place (modify address..)
|
||||
api.put('/place', isAdmin, eventController.updatePlace)
|
||||
|
||||
/**
|
||||
* Get events
|
||||
* @category Event
|
||||
* @name /api/events
|
||||
* @type GET
|
||||
* @param {integer} [start] - start timestamp (default: now)
|
||||
* @param {integer} [end] - end timestamp (optional)
|
||||
* @param {array} [tags] - List of tags
|
||||
* @param {array} [places] - List of places
|
||||
* @param {integer} [max] - Max events
|
||||
* @param {boolean} [show_recurrent] - Show also recurrent events (default: as choosen in admin settings)
|
||||
* @example ***Example***
|
||||
* [https://demo.gancio.org/api/events](https://demo.gancio.org/api/events)
|
||||
* [usage example](https://framagit.org/les/gancio/-/blob/master/webcomponents/src/GancioEvents.svelte#L18-42)
|
||||
*/
|
||||
|
||||
api.get('/events', cors, eventController.select)
|
||||
|
||||
/**
|
||||
* Add a new event
|
||||
* @category Event
|
||||
* @name /event
|
||||
* @name /api/event
|
||||
* @type POST
|
||||
* @info `Content-Type` has to be `multipart/form-data` to support image upload
|
||||
* @param {string} title - event's title
|
||||
|
@ -95,7 +113,6 @@ if (config.status !== 'READY') {
|
|||
* @param {array} tags - List of tags
|
||||
* @param {object} [recurrent] - Recurrent event details
|
||||
* @param {string} [recurrent.frequency] - could be `1w` or `2w`
|
||||
* @param {string} [recurrent.type] - not used
|
||||
* @param {array} [recurrent.days] - array of days
|
||||
* @param {image} [image] - Image
|
||||
*/
|
||||
|
@ -133,9 +150,6 @@ if (config.status !== 'READY') {
|
|||
// export events (rss/ics)
|
||||
api.get('/export/:type', cors, exportController.export)
|
||||
|
||||
// get events in this range
|
||||
api.get('/events', cors, eventController.select)
|
||||
|
||||
api.get('/instances', isAdmin, instanceController.getAll)
|
||||
api.get('/instances/:instance_domain', isAdmin, instanceController.get)
|
||||
api.post('/instances/toggle_block', isAdmin, instanceController.toggleBlock)
|
||||
|
|
Loading…
Reference in a new issue