Skip to content

Commit 457276f

Browse files
committed
chore: clean codes
1 parent 0c0a2ac commit 457276f

23 files changed

+321
-130
lines changed

ui/.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,4 +43,5 @@ Thumbs.db
4343

4444
.angular
4545

46-
.nx/cache
46+
.nx/cache
47+
.nx/workspace-data

ui/.prettierignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,4 +3,5 @@
33
/dist
44
/coverage
55

6-
/.nx/cache
6+
/.nx/cache
7+
/.nx/workspace-data

ui/apps/todolist/src/app/app.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,9 +10,10 @@ import { User } from './core/user.model';
1010
import { Observable } from 'rxjs';
1111

1212
@Component({
13-
selector: 'app-root',
14-
templateUrl: './app.component.html',
15-
styleUrls: ['./app.component.css'],
13+
selector: 'app-root',
14+
templateUrl: './app.component.html',
15+
styleUrls: ['./app.component.css'],
16+
standalone: false
1617
})
1718
export class AppComponent implements OnInit {
1819
title = 'todolist';

ui/apps/todolist/src/app/auth/signin/signin.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { Router } from '@angular/router';
44
import { Subscription } from 'rxjs';
55

66
@Component({
7-
selector: 'app-signin',
8-
templateUrl: './signin.component.html',
9-
styleUrls: ['./signin.component.css'],
7+
selector: 'app-signin',
8+
templateUrl: './signin.component.html',
9+
styleUrls: ['./signin.component.css'],
10+
standalone: false
1011
})
1112
export class SigninComponent implements OnInit {
1213
username = '';

ui/apps/todolist/src/app/dialog/dialog.component.ts

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,8 @@ import { Component, OnInit } from '@angular/core';
22
import { MatDialogRef } from '@angular/material/dialog';
33

44
@Component({
5-
templateUrl: 'dialog.component.html'
5+
templateUrl: 'dialog.component.html',
6+
standalone: false
67
})
78
export class DialogComponent {
89
avatars = new Array(16).fill(0).map((_, i) => `svg-${i + 1}`);

ui/apps/todolist/src/app/home/home.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,10 @@
11
import { Component, OnInit } from '@angular/core';
22

33
@Component({
4-
selector: 'app-home',
5-
templateUrl: './home.component.html',
6-
styleUrls: ['./home.component.css']
4+
selector: 'app-home',
5+
templateUrl: './home.component.html',
6+
styleUrls: ['./home.component.css'],
7+
standalone: false
78
})
89
export class HomeComponent implements OnInit {
910
constructor() {}

ui/apps/todolist/src/app/post/edit-post/edit-post.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { Post } from '../shared/post.model';
55
import { PostService } from '../shared/post.service';
66

77
@Component({
8-
selector: 'app-edit-post',
9-
templateUrl: './edit-post.component.html',
10-
styleUrls: ['./edit-post.component.css']
8+
selector: 'app-edit-post',
9+
templateUrl: './edit-post.component.html',
10+
styleUrls: ['./edit-post.component.css'],
11+
standalone: false
1112
})
1213
export class EditPostComponent implements OnInit, OnDestroy {
1314
post: Post = { title: '', content: '' };

ui/apps/todolist/src/app/post/new-post/new-post.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -5,9 +5,10 @@ import { Post } from '../shared/post.model';
55
import { PostService } from '../shared/post.service';
66

77
@Component({
8-
selector: 'app-new-post',
9-
templateUrl: './new-post.component.html',
10-
styleUrls: ['./new-post.component.css']
8+
selector: 'app-new-post',
9+
templateUrl: './new-post.component.html',
10+
styleUrls: ['./new-post.component.css'],
11+
standalone: false
1112
})
1213
export class NewPostComponent implements OnInit, OnDestroy {
1314
post: Post = { title: '', content: '' };

ui/apps/todolist/src/app/post/post-details/comment/comment-form.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,10 @@ import { Post } from '../../shared/post.model';
44
import { PostService } from '../../shared/post.service';
55

66
@Component({
7-
selector: 'app-comment-form',
8-
templateUrl: './comment-form.component.html',
9-
styleUrls: ['./comment-form.component.css'],
7+
selector: 'app-comment-form',
8+
templateUrl: './comment-form.component.html',
9+
styleUrls: ['./comment-form.component.css'],
10+
standalone: false
1011
})
1112
export class CommentFormComponent implements OnInit {
1213
@Input() post: Post;

ui/apps/todolist/src/app/post/post-details/comment/comment-list-item.component.ts

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -3,9 +3,10 @@ import { Component, OnInit, Input } from '@angular/core';
33
import { Comment } from '../../shared/comment.model';
44

55
@Component({
6-
selector: 'app-comment-list-item',
7-
templateUrl: './comment-list-item.component.html',
8-
styleUrls: ['./comment-list-item.component.css']
6+
selector: 'app-comment-list-item',
7+
templateUrl: './comment-list-item.component.html',
8+
styleUrls: ['./comment-list-item.component.css'],
9+
standalone: false
910
})
1011
export class CommentListItemComponent implements OnInit {
1112

0 commit comments

Comments
 (0)