From f28f894b97a882fed5a9fe0ceb313a178e8d2493 Mon Sep 17 00:00:00 2001 From: Joffrey JAFFEUX Date: Fri, 3 Jan 2025 17:43:02 +0100 Subject: [PATCH] favorite tags/categories --- .../components/reports/favorite-categories.gjs | 12 ++++++++++-- .../discourse/components/reports/favorite-tags.gjs | 12 ++++++++++-- assets/javascripts/discourse/components/rewind.gjs | 4 ++++ assets/stylesheets/common/favorite-categories.scss | 2 ++ assets/stylesheets/common/favorite-tags.scss | 2 ++ assets/stylesheets/common/index.scss | 2 ++ 6 files changed, 30 insertions(+), 4 deletions(-) create mode 100644 assets/stylesheets/common/favorite-categories.scss create mode 100644 assets/stylesheets/common/favorite-tags.scss diff --git a/assets/javascripts/discourse/components/reports/favorite-categories.gjs b/assets/javascripts/discourse/components/reports/favorite-categories.gjs index 5d99af0..2efe9af 100644 --- a/assets/javascripts/discourse/components/reports/favorite-categories.gjs +++ b/assets/javascripts/discourse/components/reports/favorite-categories.gjs @@ -1,9 +1,17 @@ import Component from "@glimmer/component"; +import { concat } from "@ember/helper"; export default class FavoriteCategories extends Component { } diff --git a/assets/javascripts/discourse/components/reports/favorite-tags.gjs b/assets/javascripts/discourse/components/reports/favorite-tags.gjs index 26c1d4f..02e0e01 100644 --- a/assets/javascripts/discourse/components/reports/favorite-tags.gjs +++ b/assets/javascripts/discourse/components/reports/favorite-tags.gjs @@ -1,9 +1,17 @@ import Component from "@glimmer/component"; +import { concat } from "@ember/helper"; export default class FavoriteTags extends Component { } diff --git a/assets/javascripts/discourse/components/rewind.gjs b/assets/javascripts/discourse/components/rewind.gjs index 92411a0..1fa344a 100644 --- a/assets/javascripts/discourse/components/rewind.gjs +++ b/assets/javascripts/discourse/components/rewind.gjs @@ -121,6 +121,10 @@ export default class Rewind extends Component { {{else if (eq report.identifier "activity-calendar")}} + {{else if (eq report.identifier "favorite-tags")}} + + {{else if (eq report.identifier "favorite-categories")}} + {{/if}} {{!-- {{else if (eq report.identifier "fbff")}} diff --git a/assets/stylesheets/common/favorite-categories.scss b/assets/stylesheets/common/favorite-categories.scss new file mode 100644 index 0000000..742c59b --- /dev/null +++ b/assets/stylesheets/common/favorite-categories.scss @@ -0,0 +1,2 @@ +.-favorite-categories { +} diff --git a/assets/stylesheets/common/favorite-tags.scss b/assets/stylesheets/common/favorite-tags.scss new file mode 100644 index 0000000..ba55aa2 --- /dev/null +++ b/assets/stylesheets/common/favorite-tags.scss @@ -0,0 +1,2 @@ +.-favorite-tags { +} diff --git a/assets/stylesheets/common/index.scss b/assets/stylesheets/common/index.scss index e917869..a7ee3c3 100644 --- a/assets/stylesheets/common/index.scss +++ b/assets/stylesheets/common/index.scss @@ -6,4 +6,6 @@ @import "activity-calendar"; @import "best-posts"; @import "best-topics"; +@import "favorite-tags"; +@import "favorite-categories"; @import "blobs";