Skip to content

Commit e147bc4

Browse files
committed
restructoring components
1 parent 0caf7a4 commit e147bc4

14 files changed

+19
-20
lines changed

README.md

Lines changed: 4 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -28,11 +28,6 @@ A modern Angular application that helps you build complex shell commands through
2828
- Stored in browser's localStorage
2929
- Timestamp tracking with relative time display
3030

31-
🎨 **Modern UI**
32-
- Built with Tailwind CSS
33-
- Responsive design
34-
- Accessible interface (WCAG AA compliant)
35-
3631
## Project Structure
3732

3833
```
@@ -136,6 +131,10 @@ Build the project for production:
136131
npm run build
137132
```
138133

134+
### Docker Deployment
135+
136+
For Docker deployment instructions, see the [Docker README](docker/README.md).
137+
139138
## Usage
140139

141140
1. **Select a Command**: Click on a command in the navigation bar (e.g., `ls`, `grep`, `find`)

src/app/app.routes.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Routes } from '@angular/router';
2-
import { HomeComponent } from './components/home/home.component';
2+
import { HomeComponent } from './components/home.component';
33
import { CommandBuilderComponent } from './components/command-builder/command-builder.component';
44

55
export const routes: Routes = [

src/app/app.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import { Component, inject, OnInit } from '@angular/core';
22
import { RouterOutlet } from '@angular/router';
3-
import { NavbarComponent } from './components/navbar/navbar.component';
4-
import { FooterComponent } from './components/footer/footer.component';
3+
import { NavbarComponent } from './components/layout/navbar.component';
4+
import { FooterComponent } from './components/layout/footer.component';
55
import { CommandService } from './services/command.service';
66

77
@Component({

src/app/components/command-builder/command-builder.component.ts

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@ import { Title } from '@angular/platform-browser';
44
import { toSignal } from '@angular/core/rxjs-interop';
55
import { CommandService } from '../../services/command.service';
66
import { Command } from '../../models/command.model';
7-
import { CommandHistoryComponent } from '../command-history/command-history.component';
8-
import { LoadingSpinnerComponent } from './loading-spinner.component';
9-
import { CommandHeaderComponent } from './command-header.component';
10-
import { GeneratedCommandDisplayComponent } from './generated-command-display.component';
11-
import { FlagItemComponent } from './flag-item.component';
12-
import { OptionItemComponent } from './option-item.component';
13-
import { ExampleCardComponent, CommandExample } from './example-card.component';
7+
import { CommandHistoryComponent } from '../command-history.component';
8+
import { LoadingSpinnerComponent } from '../shared/loading-spinner.component';
9+
import { CommandHeaderComponent } from './components/command-header.component';
10+
import { GeneratedCommandDisplayComponent } from './components/generated-command-display.component';
11+
import { FlagItemComponent } from './components/flag-item.component';
12+
import { OptionItemComponent } from './components/option-item.component';
13+
import { ExampleCardComponent, CommandExample } from './components/example-card.component';
1414

1515
interface FlagState {
1616
id: string;

src/app/components/command-builder/command-header.component.ts renamed to src/app/components/command-builder/components/command-header.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, input } from '@angular/core';
2-
import { Command } from '../../models/command.model';
2+
import { Command } from '../../../models/command.model';
33

44
@Component({
55
selector: 'app-command-header',

src/app/components/command-builder/example-card.component.ts renamed to src/app/components/command-builder/components/example-card.component.ts

File renamed without changes.

src/app/components/command-builder/flag-item.component.ts renamed to src/app/components/command-builder/components/flag-item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
import { Component, input, output } from '@angular/core';
2-
import { Flag } from '../../models/command.model';
2+
import { Flag } from '../../../models/command.model';
33

44
@Component({
55
selector: 'app-flag-item',

src/app/components/command-builder/generated-command-display.component.ts renamed to src/app/components/command-builder/components/generated-command-display.component.ts

File renamed without changes.

src/app/components/command-builder/option-item.component.ts renamed to src/app/components/command-builder/components/option-item.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, input, output } from '@angular/core';
22
import { FormsModule } from '@angular/forms';
3-
import { Option } from '../../models/command.model';
3+
import { Option } from '../../../models/command.model';
44

55
@Component({
66
selector: 'app-option-item',

src/app/components/command-history/command-history.component.ts renamed to src/app/components/command-history.component.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { Component, input, signal, computed, inject, effect } from '@angular/core';
22
import { CommonModule } from '@angular/common';
3-
import { CommandService, CommandHistoryEntry } from '../../services/command.service';
3+
import { CommandService, CommandHistoryEntry } from '../services/command.service';
44

55
@Component({
66
selector: 'app-command-history',

0 commit comments

Comments
 (0)