Skip to content

Commit

Permalink
chore: remove redundant imports (#7096)
Browse files Browse the repository at this point in the history
  • Loading branch information
splincode authored Apr 3, 2024
1 parent 66fa394 commit 6acc07c
Show file tree
Hide file tree
Showing 4 changed files with 4 additions and 81 deletions.

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import {TuiRootModule} from '@taiga-ui/core';
bootstrapApplication(AppComponent, {
providers: [
provideAnimations(),
provideRouter(routes),
importProvidersFrom(
TuiRootModule,
// ...
Expand Down
3 changes: 0 additions & 3 deletions projects/demo/src/modules/app/home/home.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -55,9 +55,6 @@ export class HomeComponent {
protected readonly nxMigrate = import('./examples/nx-migrate.md?raw');
protected readonly standalone = import('./examples/app-standalone.md?raw');
protected readonly standaloneMain = import('./examples/main-standalone.md?raw');
protected readonly standaloneMainOptional = import(
'./examples/main-standalone-optional.md?raw'
);

protected readonly customGlobalStyle = import(
'../../../../../styles/taiga-ui-global.less?raw'
Expand Down
63 changes: 4 additions & 59 deletions projects/demo/src/modules/app/home/home.template.html
Original file line number Diff line number Diff line change
Expand Up @@ -219,49 +219,6 @@ <h2 class="tui-space_top-10">Manual</h2>
3. Root component
</h2>

<h3 class="tui-space_top-5">Modules</h3>

<tui-tabs-with-more
#ngModules
class="tabs"
>
<button
*tuiItem
tuiTab
>
<tui-doc-tab src="assets/icons/ts.svg">app.module.ts</tui-doc-tab>
</button>

<button
*tuiItem
tuiTab
>
<tui-doc-tab src="assets/icons/html.svg">app.component.html</tui-doc-tab>
</button>
</tui-tabs-with-more>
<ng-container *ngIf="ngModules.activeItemIndex === 0">
<tui-doc-code [code]="appModule" />
<tui-accordion class="tui-space_top-3">
<tui-accordion-item>
Taiga UI also has optional modules for dialogs and notifications. If you need these features, add
modules into your app.module.ts

<ng-template tuiAccordionItemContent>
<tui-doc-code
filename="app.module.ts"
[code]="appModuleOptional"
/>
</ng-template>
</tui-accordion-item>
</tui-accordion>
</ng-container>
<tui-doc-code
*ngIf="ngModules.activeItemIndex === 1"
[code]="appTemplate"
/>

<h3 class="tui-space_top-10">Standalone</h3>

<tui-tabs-with-more
#ngStandalone
class="tabs"
Expand Down Expand Up @@ -289,22 +246,10 @@ <h3 class="tui-space_top-10">Standalone</h3>
*ngIf="ngStandalone.activeItemIndex === 0"
[code]="standalone"
/>
<ng-container *ngIf="ngStandalone.activeItemIndex === 1">
<tui-doc-code [code]="standaloneMain" />
<tui-accordion class="tui-space_top-3">
<tui-accordion-item>
Taiga UI also has optional modules for dialogs and notifications. If you need these features, add
modules into your main.ts

<ng-template tuiAccordionItemContent>
<tui-doc-code
filename="main.ts"
[code]="standaloneMainOptional"
/>
</ng-template>
</tui-accordion-item>
</tui-accordion>
</ng-container>
<tui-doc-code
*ngIf="ngStandalone.activeItemIndex === 1"
[code]="standaloneMain"
/>
<tui-doc-code
*ngIf="ngStandalone.activeItemIndex === 2"
[code]="appTemplate"
Expand Down

0 comments on commit 6acc07c

Please sign in to comment.