Skip to content

Commit

Permalink
Rename collections since it refers to by release date to "new"
Browse files Browse the repository at this point in the history
  • Loading branch information
ddxv committed Nov 7, 2023
1 parent 4353284 commit fa31476
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 7 deletions.
14 changes: 7 additions & 7 deletions frontend/src/lib/SideBar.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -63,28 +63,28 @@
{#if $page.url.pathname == '/' || $page.url.pathname.startsWith('/collections')}
<div class="p-1 md:p-2">
<div class="card variant-glass-surface p-4">
<h3 class="h3">Collections</h3>
<h3 class="h3">Top New Apps</h3>
<nav class="list-nav">
<ul>
<li>
<a href="/collections/top" class={classesActive('/collections/top')}>Alltime Top</a>
</li>
<li>
<a href="/collections/new_yearly" class={classesActive('/collections/new_yearly')}
>New this Year by Downloads</a
>New this Year</a
>
</li>
<li>
<a href="/collections/new_monthly" class={classesActive('/collections/new_monthly')}
>New this Month by Downloads</a
>New this Month</a
>
</li>

<li>
<a href="/collections/new_weekly" class={classesActive('/collections/new_weekly')}
>New this Week by Downloads</a
>New this Week</a
>
</li>
<li>
<a href="/collections/top" class={classesActive('/collections/top')}>Alltime Top</a>
</li>
</ul>
</nav>
</div>
Expand Down
4 changes: 4 additions & 0 deletions frontend/src/routes/+layout.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,10 @@ export const load: PageServerLoad = async () => {
console.log(`load categories start`);
const res = fetch(`http://localhost:8000/api/categories`);

// setHeaders({
// 'cache-control': 'max-age=40000'
// });

return {
mycats: {
streamed: res
Expand Down

0 comments on commit fa31476

Please sign in to comment.