Skip to content

Commit

Permalink
chore(demo): set screenshot-github-bot page as standalone (#6575)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Feb 2, 2024
1 parent 54a15ca commit d4f9ff2
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 25 deletions.
10 changes: 4 additions & 6 deletions projects/demo/src/modules/app/app.routes.ts
Original file line number Diff line number Diff line change
Expand Up @@ -71,12 +71,10 @@ export const ROUTES: Routes = [
},
{
path: 'testing/screenshot-bot',
loadChildren: async () =>
(
await import(
'../info/testing/screenshot-github-bot/screenshot-github-bot.module'
)
).ScreenshotGithubBotModule,
loadComponent: async () =>
import(
'../info/testing/screenshot-github-bot/screenshot-github-bot.component'
),
data: {
title: 'Our screenshot bot',
},
Expand Down
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
import {ChangeDetectionStrategy, Component} from '@angular/core';
import {TuiDocPageModule} from '@taiga-ui/addon-doc';
import {TuiLinkModule} from '@taiga-ui/core';

export const SCREENSHOT_BOT_NAME = 'Lumberjack';
export const SCREENSHOT_BOT_LINK = 'https://github.com/apps/lumberjack-bot';

@Component({
standalone: true,
selector: 'screenshot-github-bot',
imports: [TuiDocPageModule, TuiLinkModule],
templateUrl: './screenshot-github-bot.template.html',
styleUrls: ['./screenshot-github-bot.style.less'],
changeDetection: ChangeDetectionStrategy.OnPush,
})
export class ScreenshotGithubBotComponent {
export default class ScreenshotGithubBotComponent {
readonly botName = SCREENSHOT_BOT_NAME;
readonly botAppLink = SCREENSHOT_BOT_LINK;
readonly botRepoLink = 'https://github.com/taiga-family/argus';
Expand Down

This file was deleted.

0 comments on commit d4f9ff2

Please sign in to comment.