Skip to content

Commit

Permalink
restructure project
Browse files Browse the repository at this point in the history
  • Loading branch information
FelixTJDietrich committed Sep 15, 2024
1 parent 7425aa3 commit 4be0370
Show file tree
Hide file tree
Showing 13 changed files with 33 additions and 15 deletions.
2 changes: 1 addition & 1 deletion webapp/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { Component, isDevMode } from '@angular/core';
import { AngularQueryDevtools } from '@tanstack/angular-query-devtools-experimental';
import { RouterLink, RouterLinkActive, RouterOutlet } from '@angular/router';
import { LucideAngularModule, Hammer } from 'lucide-angular';
import { ThemeSwitcherComponent } from './components/theme-switcher/theme-switcher.component';
import { ThemeSwitcherComponent } from 'app/core/theme/theme-switcher.component';

@Component({
selector: 'app-root',
Expand Down
4 changes: 2 additions & 2 deletions webapp/src/app/app.routes.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
import { Routes } from '@angular/router';
import { AboutComponent } from 'app/about/about.component';
import { MainComponent } from 'app/main/main.component';
import { HomeComponent } from 'app/home/home.component';

export const routes: Routes = [
{ path: '', component: MainComponent },
{ path: '', component: HomeComponent },
{ path: 'about', component: AboutComponent }
];
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ import { BrowserAnimationsModule } from '@angular/platform-browser/animations';

// More on how to set up stories at: https://storybook.js.org/docs/writing-stories
const meta: Meta<ThemeSwitcherComponent> = {
title: 'Components/ThemeSwitcher',
title: 'Components/Core/ThemeSwitcher',
component: ThemeSwitcherComponent,
tags: ['autodocs'],
decorators: [
Expand Down
File renamed without changes.
10 changes: 10 additions & 0 deletions webapp/src/app/home/home.component.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import { Component } from '@angular/core';
import { LeaderboardComponent } from 'app/home/leaderboard/leaderboard.component';

@Component({
selector: 'app-home',
standalone: true,
imports: [LeaderboardComponent],
templateUrl: './home.component.html'
})
export class HomeComponent {}
18 changes: 18 additions & 0 deletions webapp/src/app/home/home.stories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
import { type Meta, type StoryObj } from '@storybook/angular';
import { HomeComponent } from './home.component';

const meta: Meta<HomeComponent> = {
title: 'Pages/Home',
component: HomeComponent,
tags: ['autodocs']
};

export default meta;
type Story = StoryObj<HomeComponent>;

export const Default: Story = {
render: (args) => ({
props: args,
template: `<app-home />`
})
};
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import { type Meta, type StoryObj } from '@storybook/angular';
import { LeaderboardComponent } from './leaderboard.component';

const meta: Meta<LeaderboardComponent> = {
title: 'Components/Leaderboard',
title: 'Components/Home/Leaderboard',
component: LeaderboardComponent,
tags: ['autodocs']
};
Expand Down
10 changes: 0 additions & 10 deletions webapp/src/app/main/main.component.ts

This file was deleted.

0 comments on commit 4be0370

Please sign in to comment.