Commit Graph

42 Commits

Author SHA1 Message Date
Arpit Jalan 2a49856404
Add holiday definitions for India (#156) 2021-07-15 11:24:21 +05:30
Osama Sayegh 25b20670ad
Add upcoming Saudi holidays (#155) 2021-07-13 15:07:28 +10:00
Rafael dos Santos Silva db358d7a8f
FIX: Fix constants task and run update it (#153)
Task was broken due to https://github.com/discourse/discourse/pull/10649
and I had to run it due to https://github.com/discourse/discourse-calendar/pull/152
2021-07-08 14:39:26 -03:00
Krzysztof Kotlarek 69076dc559
Revert "FIX: use allowList helper (#82)" (#83)
This reverts commit c677e02a83.
2020-12-22 17:38:07 +11:00
Krzysztof Kotlarek c677e02a83
FIX: use allowList helper (#82)
`whiteList` helper is deprecated and should be replaced with `allowList`
2020-12-14 15:32:59 +11:00
Joffrey JAFFEUX 3fa8f6eb32
DEV: ignores NYSE (new york stock exchange) (#79) 2020-12-06 17:59:53 +01:00
Joffrey JAFFEUX 42c728a949
DEV: enforces no-var (#65) 2020-10-13 12:34:19 +02:00
Joffrey JAFFEUX 9560350108
FEATURE: more dynamic event dates in topic titles (#61)
- always auto updated
- correctly computed, based on past/current/future event
- displays a green indicator when an event is on going
2020-09-27 14:25:27 +02:00
jjaffeux bad7f03968 DEV: removes supefluous arguments 2020-09-22 16:27:10 +02:00
jjaffeux 45712d30b9 FIX: keeps initial key of the custom field
Custom fields can be defined with dashes or underscores, both should work and be returned using this format in the json.

Although, in the raw of the post, the format will be camelcase as this is only what's supported by bbode.
2020-09-14 17:05:38 +02:00
jjaffeux 57f12f3604 FIX: ensures custom fields work when using _ in the name 2020-09-10 17:10:14 +02:00
jjaffeux 258ec90a65 FIX: custom fields could be in an incorrect state 2020-09-04 15:08:35 +02:00
Joffrey JAFFEUX 9b0aac2100
DEV: apply coding standards (#59) 2020-09-04 13:22:32 +02:00
jjaffeux ae6f7c9d25 FIX: custom fields are now part of markdown 2020-08-25 13:22:09 +02:00
jjaffeux 019847948c FEATURE: intoduces recurrence support
For now: every_week/every_day/every_month/every_weekday (monday to friday)
2020-08-13 10:19:13 +02:00
jjaffeux ab9e2bbd7f UX: simplify setting reminders 2020-08-12 13:16:54 +02:00
jjaffeux e024729322 FIX: always force tl0 for public 2020-08-10 23:55:30 +02:00
jjaffeux ad57efb6fe REFACTOR: makes reminders to be in raw 2020-08-10 23:38:04 +02:00
jjaffeux 519f52238e FEATURE: allows to manually close an event 2020-08-07 21:43:55 +02:00
Joffrey JAFFEUX c6b531d741
FEATURE: allows to add a url to an event (#52) 2020-08-03 08:58:52 +02:00
Dan Ungureanu f81dbca358
FIX: Add overrides for non-standard country codes used by holidays gem 2020-06-18 13:35:54 +03:00
Dan Ungureanu 0e36e420c7
DEV: Update definitions 2020-06-18 13:29:50 +03:00
Dan Ungureanu 922e445e80
DEV: Fix lint 2020-06-18 12:17:13 +03:00
Dan Ungureanu b832232268
FEATURE: Add user preferences field to select region (#44) 2020-06-18 11:29:08 +03:00
jjaffeux 90edefff0a FEATURE: allows to hide add to calendar links 2020-04-23 14:09:15 +02:00
jjaffeux 0cf857af02 UX: replaces [wrap] by [event]
Syntax is now:

```
[event start="date"]
[/event]
```
2020-04-23 13:23:59 +02:00
jjaffeux 0a78f039b1 UX: uses listNextYear as default view on mobile 2020-04-23 09:02:22 +02:00
jjaffeux c4db9f2583 FEATURE: display event's starts_at on topic title 2020-04-12 14:18:55 +02:00
Joffrey JAFFEUX 3a9b218b3b
FEATURE: display upcoming events in a calendar (#33) 2020-04-10 11:35:53 +02:00
jjaffeux fe6c2e6102 FEATURE: uses post_event date in op to decorate topic title 2020-03-27 21:37:38 +01:00
Vinoth Kannan 7c4ee027b4 Make eslint happy. 2020-02-06 20:16:22 +05:30
Vinoth Kannan eff4de06ae
FEATURE: display group members by timezone in posts. (#19) 2020-02-06 19:05:06 +05:30
Sam Saffron dcb167b160 lint file 2019-12-31 12:15:44 +11:00
Martin Brennan 3561c3919b
FEATURE: Add timezone picker and options (#11)
Added these options for the markdown block, which utilise fullcalendar's inbuilt timezone functionality:

* `defaultTimezone` - Provide a default timezone to display the calendar dates in. If this is null we fall back to the current user timezone, and if that is null (or the current user is null) we fall back to moment.tz.guess(). This value is validated.
* `tzPicker` - If set to true, show a dropdown list allowing the user to pick the timezone the calendar displays in. The selected value is based on the rules described in tzdefault. If this is not turned on we show the text of the timezone in the header. The options for the picker come from moment.tz.names() and are rendered into the select at runtime, so we are not storing huge amounts of <option> HTML elements in the DB for no real reason.

I also hid the fullcalendar title because the title is now up in the header of the calendar
2019-12-31 07:52:12 +10:00
jjaffeux 095d7ab9de FEATURE: allows to have set a defaultView
```
[calendar defaultView="listNextYear"]
[/calendar]
```

Possible values:  `month,basicWeek,listNextYear`

Defaults to `month`
2019-12-13 17:41:15 +01:00
romanrizzi cef545301a Fix prettier 2019-08-26 10:45:37 -03:00
Joffrey JAFFEUX d7e77f978e FIX: do not markdownify calendar if plugin is not enabled 2019-08-26 08:15:05 -05:00
Penar Musaraj d51f8a6708 fix prettier offences 2018-11-12 13:35:17 -05:00
Vinoth Kannan 196cd6450f FIX: Rename plugin in remaining missed places 2018-09-17 20:05:23 +05:30
Vinoth Kannan e86497a3a4 Rename discourse-simple-calendar to discourse-calendar 2018-09-17 17:19:46 +05:30
Vinoth Kannan 28a6631287 FEATURE: Add weekends and hidden days markdown attributes 2018-09-12 22:33:10 +05:30
Joffrey JAFFEUX 3d311d8860 first commit 2018-06-06 15:24:56 +02:00