This commit is contained in:
Jordan Vidrine 2025-01-03 10:50:18 -06:00
commit 72b5ab50c5
5 changed files with 28 additions and 4 deletions

View File

@ -1,9 +1,17 @@
import Component from "@glimmer/component";
import { concat } from "@ember/helper";
export default class FavoriteCategories extends Component {
<template>
<div class="rewind-report-page">
FavoriteCategories
<div class="rewind-report-page -favorite-categories">
<h3 class="rewind-report-title">Your favorite categories</h3>
<div class="rewind-report-container">
{{#each @report.data as |data|}}
<div class="rewind-card">
<a href={{concat "/c/-/" data.category_id}}>{{data.name}}</a>
</div>
{{/each}}
</div>
</div>
</template>
}

View File

@ -1,9 +1,17 @@
import Component from "@glimmer/component";
import { concat } from "@ember/helper";
export default class FavoriteTags extends Component {
<template>
<div class="rewind-report-page">
FavoriteTags
<div class="rewind-report-page -favorite-tags">
<h3 class="rewind-report-title">Your favorite tags</h3>
<div class="rewind-report-container">
{{#each @report.data as |data|}}
<div class="rewind-card">
<a href={{concat "/tag/-/" data.name}}>{{data.name}}</a>
</div>
{{/each}}
</div>
</div>
</template>
}

View File

@ -121,6 +121,10 @@ export default class Rewind extends Component {
<BestTopics @report={{report}} />
{{else if (eq report.identifier "activity-calendar")}}
<ActivityCalendar @report={{report}} />
{{else if (eq report.identifier "favorite-tags")}}
<FavoriteTags @report={{report}} />
{{else if (eq report.identifier "favorite-categories")}}
<FavoriteCategories @report={{report}} />
{{/if}}
{{!-- {{else if (eq report.identifier "fbff")}}
<FBFF @report={{report}} />

View File

@ -0,0 +1,2 @@
.-favorite-categories {
}

View File

@ -0,0 +1,2 @@
.-favorite-tags {
}