Adds the ability to create a dynamic calendar in the first post of a topic.
Go to file
Martin Brennan 35d93e65f9
DEV: Add auto group refresh to specs (#542)
This is needed for the change in the core PR
https://github.com/discourse/discourse/pull/25602
2024-02-08 12:32:04 +10:00
.github/workflows DEV: Update CI workflows (#376) 2023-01-10 18:03:55 +00:00
app FIX: convert emoji to unicode on event title (#530) 2024-01-29 11:50:50 -03:00
assets FIX: SafeString conversion under latest Ember (#535) 2024-01-24 15:04:13 +00:00
config Update translations (#539) 2024-02-06 22:35:26 +01:00
db/migrate FIX: remove duplicated holidays because of timezone change (#489) 2023-11-24 14:48:47 +11:00
jobs DEV: merge discourse post event settings to calendar (#490) 2023-12-07 08:59:08 +11:00
lib FEATURE: support upcomingDays parameter on the upcoming events list (#524) 2024-01-17 21:54:39 -03:00
public/javascripts DEV: more explicit filename 2018-12-27 19:48:30 +01:00
spec DEV: Add auto group refresh to specs (#542) 2024-02-08 12:32:04 +10:00
test/javascripts FEATURE: support upcomingDays parameter on the upcoming events list (#524) 2024-01-17 21:54:39 -03:00
vendor/holidays Remove Lee-Jackson Day - generated definitions (#540) 2024-02-06 12:51:31 -05:00
.discourse-compatibility Backport custom field limit security fix (#519) 2024-01-08 16:20:21 -06:00
.eslintrc.cjs DEV: update eslint, prettier and template-lint (#465) 2023-10-30 16:39:54 -03:00
.gitignore DEV: Clean up the plugin (#426) 2023-08-01 22:32:30 +02:00
.prettierignore DEV: Update eslint-config-discourse, use prettier for hbs (#365) 2023-01-04 13:44:33 +01:00
.prettierrc.cjs DEV: update eslint, prettier and template-lint (#465) 2023-10-30 16:39:54 -03:00
.rubocop.yml DEV: Introduce syntax_tree for ruby formatting (#363) 2022-12-29 13:30:41 +01:00
.streerc FEATURE: customizable event colors by tags and adjustable max rows in calendar (#482) 2023-12-01 10:10:34 -04:00
.template-lintrc.cjs DEV: Update linting (#491) 2023-11-29 18:31:03 +01:00
Gemfile DEV: Update linting (#491) 2023-11-29 18:31:03 +01:00
Gemfile.lock DEV: Update linting (#503) 2024-01-15 11:24:00 +00:00
LICENSE first commit 2018-06-06 15:24:56 +02:00
README.md Remove Lee-Jackson Day - generated definitions (#540) 2024-02-06 12:51:31 -05:00
package.json DEV: Update linting (#503) 2024-01-15 11:24:00 +00:00
plugin.rb DEV: Exclude system users when serializing group timezones (#533) 2024-01-25 07:42:46 +08:00
translator.yml DEV: Add Crowdin support (#84) 2020-12-22 13:08:54 +01:00
yarn.lock DEV: Update linting (#503) 2024-01-15 11:24:00 +00:00

README.md

Discourse Calendar

Adds the ability to create a dynamic calendar in the first post of a topic.

Topic discussing the plugin itself can be found here: https://meta.discourse.org/t/discourse-calendar/97376

Customization

Events

  • discourse_post_event_event_will_start this DiscourseEvent will be triggered one hour before an event starts
  • discourse_post_event_event_started this DiscourseEvent will be triggered when an event starts
  • discourse_post_event_event_ended this DiscourseEvent will be triggered when an event ends

Custom Fields

Custom fields can be set in plugin settings. Once added a new form will appear on event UI. These custom fields are available when a plugin event is triggered.

Holidays

See an incorrect or missing holiday? Familiarize yourself with the holiday definition Syntax. Then make your updates in the vendor/holiday/definitions directory.

Generate updated holidays as follows.

cd vendor/holidays

# Generate holiday definitions
rake generate:definitions

Install the plugin and switch to the discourse root(not the plugin directory).

# Collect all holiday regions into assets/javascripts/lib/regions.js
bin/rails javascript:update_constants