Adds the ability to create a dynamic calendar in the first post of a topic.
Go to file
Krzysztof Kotlarek 71b45a9a04
FIX: prevent holiday duplicates when username is changed (#488)
When username was changed, system was creating duplicated holidays.

In addition to fix, migration was added to remove duplicated and
incorrect records.
2023-11-23 16:38:03 -08:00
.github/workflows DEV: Update CI workflows (#376) 2023-01-10 18:03:55 +00:00
app FIX: Show sub category events (#478) 2023-11-11 00:16:15 +08:00
assets FIX: regional public holidays day early (#486) 2023-11-22 14:44:42 +11:00
config Update translations (#469) 2023-11-07 21:31:15 +01:00
db/migrate FIX: prevent holiday duplicates when username is changed (#488) 2023-11-23 16:38:03 -08:00
jobs FIX: prevent holiday duplicates when username is changed (#488) 2023-11-23 16:38:03 -08:00
lib FIX: skip html escaping event urls (#473) 2023-11-08 17:43:11 -03:00
public/javascripts DEV: more explicit filename 2018-12-27 19:48:30 +01:00
spec FIX: prevent holiday duplicates when username is changed (#488) 2023-11-23 16:38:03 -08:00
test/javascripts DEV: pass url when simulating page:changed on test (#487) 2023-11-23 15:31:34 -03:00
vendor/holidays Add missing Rajasthan public holidays (#439) 2023-09-26 16:54:15 +05:30
.discourse-compatibility Ensure compatibility (#449) 2023-11-03 19:24:17 +04: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 DEV: Clean up the plugin (#426) 2023-08-01 22:32:30 +02:00
.template-lintrc.js DEV: update eslint, prettier and template-lint (#465) 2023-10-30 16:39:54 -03:00
Gemfile DEV: Clean up the plugin (#426) 2023-08-01 22:32:30 +02:00
Gemfile.lock DEV: Clean up the plugin (#426) 2023-08-01 22:32:30 +02:00
LICENSE first commit 2018-06-06 15:24:56 +02:00
README.md DEV: Clean up the plugin (#426) 2023-08-01 22:32:30 +02:00
package.json DEV: update eslint, prettier and template-lint (#465) 2023-10-30 16:39:54 -03:00
plugin.rb FIX: regional public holidays day early (#486) 2023-11-22 14:44:42 +11:00
translator.yml DEV: Add Crowdin support (#84) 2020-12-22 13:08:54 +01:00
yarn.lock DEV: update eslint, prettier and template-lint (#465) 2023-10-30 16:39:54 -03: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
bin/rails 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