Skip to content

Commit 18dcf72

Browse files
authored
Merge pull request trungvose#48 from trungk18/phase1-bugs-fixing
Update README for ng-zorro, add popover for about
2 parents 8e40c49 + 171c9a0 commit 18dcf72

File tree

7 files changed

+37
-13
lines changed

7 files changed

+37
-13
lines changed

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -45,7 +45,7 @@ This piece of work is also part of our technical series [angular-vietnam/100-day
4545
- UI modules:
4646
- [TailwindCSS][tailwind]
4747
- Angular CDK [drag and drop][cdkdrag]
48-
- [ng-zorro][ng-zorro] UI component: `tooltip`, `dropdown`, `select`, `icon`
48+
- [ng-zorro][ng-zorro] UI component: `tooltip`, `modal`, `select`, `icon` and more.
4949
- [ngx-quill][quill]
5050
- [Netlify][netlify]
5151
- [Heroku][heroku]

backend/src/project/projects.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -156,7 +156,7 @@ export const Project = {
156156
id: '9584',
157157
title: 'What is Angular Jira clone application?',
158158
description:
159-
"<p>There have been a handful of cool Jira-cloned apps written in React/VueJS, which makes me wonder <strong>Why not Angular</strong>? And here you go.</p><p><br></p><p>This is <u>not only</u> a simplified Jira clone built with Angular 9, but also an example of a <u>modern, real-world</u> Angular codebase.</p><p><br></p><p><strong>Tech stack</strong></p><p><br></p><p><a href='https://raw.githubusercontent.com/trungk18/jira-clone-angular/master/frontend/src/assets/img/jira-clone-tech-stack.png' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214); background-color: rgb(255, 255, 255);'><img src='https://github.com/trungk18/jira-clone-angular/raw/master/frontend/src/assets/img/jira-clone-tech-stack.png' alt='Tech logos'></a></p><p><br></p><ul><li><a href='https://cli.angular.io/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>Angular CLI</a></li><li><a href='https://datorama.github.io/akita/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>Akita</a>&nbsp;state management</li><li><a href='https://nestjs.com/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>NestJS</a></li><li>UI modules:</li><li class='ql-indent-1'><a href='https://tailwindcss.com/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>TailwindCSS</a></li><li class='ql-indent-1'>Angular CDK&nbsp;<a href='https://material.angular.io/cdk/drag-drop/overview' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>drag and drop</a></li><li class='ql-indent-1'><a href='https://ng.ant.design/docs/introduce/en' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>ng-zorro</a>&nbsp;UI component:&nbsp;<code style='background-color: rgba(27, 31, 35, 0.05);'>tooltip</code>,&nbsp;<code style='background-color: rgba(27, 31, 35, 0.05);'>dropdown</code>,&nbsp;<code style='background-color: rgba(27, 31, 35, 0.05);'>select</code>,&nbsp;<code style='background-color: rgba(27, 31, 35, 0.05);'>icon</code></li><li class='ql-indent-1'><a href='https://github.com/KillerCodeMonkey/ngx-quill' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>ngx-quill</a></li><li><a href='https://www.netlify.com/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>Netlify</a></li><li><a href='https://www.heroku.com/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>Heroku</a></li></ul>",
159+
"<p>There have been a handful of cool Jira-cloned apps written in React/VueJS, which makes me wonder <strong>Why not Angular</strong>? And here you go.</p><p><br></p><p>This is <u>not only</u> a simplified Jira clone built with Angular 9, but also an example of a <u>modern, real-world</u> Angular codebase.</p><p><br></p><p><strong>Tech stack</strong></p><p><br></p><p><a href='https://raw.githubusercontent.com/trungk18/jira-clone-angular/master/frontend/src/assets/img/jira-clone-tech-stack.png' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214); background-color: rgb(255, 255, 255);'><img src='https://github.com/trungk18/jira-clone-angular/raw/master/frontend/src/assets/img/jira-clone-tech-stack.png' alt='Tech logos'></a></p><p><br></p><ul><li><a href='https://cli.angular.io/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>Angular CLI</a></li><li><a href='https://datorama.github.io/akita/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>Akita</a>&nbsp;state management</li><li><a href='https://nestjs.com/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>NestJS</a></li><li>UI modules:</li><li class='ql-indent-1'><a href='https://tailwindcss.com/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>TailwindCSS</a></li><li class='ql-indent-1'>Angular CDK&nbsp;<a href='https://material.angular.io/cdk/drag-drop/overview' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>drag and drop</a></li><li class='ql-indent-1'><a href='https://ng.ant.design/docs/introduce/en' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>ng-zorro</a>&nbsp;UI component:&nbsp;<code style='background-color: rgba(27, 31, 35, 0.05);'>tooltip</code>,&nbsp;<code style='background-color: rgba(27, 31, 35, 0.05);'>modal</code>,&nbsp;<code style='background-color: rgba(27, 31, 35, 0.05);'>select</code>,&nbsp;<code style='background-color: rgba(27, 31, 35, 0.05);'>icon</code> and more.</li><li class='ql-indent-1'><a href='https://github.com/KillerCodeMonkey/ngx-quill' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>ngx-quill</a></li><li><a href='https://www.netlify.com/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>Netlify</a></li><li><a href='https://www.heroku.com/' rel='noopener noreferrer' target='_blank' style='color: rgb(3, 102, 214);'>Heroku</a></li></ul>",
160160
type: 'Task',
161161
status: 'Backlog',
162162
priority: 'Medium',

frontend/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ The front end part of [Angular Jira clone][github] application built with.
99
- UI modules:
1010
- [TailwindCSS][tailwind]
1111
- Angular CDK [drag and drop][cdkdrag]
12-
- [ng-zorro][ng-zorro] UI component: `tooltip`, `dropdown`, `select`, `icon`
12+
- [ng-zorro][ng-zorro] UI component: `tooltip`, `modal`, `select`, `icon` and more.
1313
- [ngx-quill][quill]
1414

1515
[cli]: https://cli.angular.io/

frontend/src/app/project/components/navigation/navbar-left/navbar-left.component.html

Lines changed: 18 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -68,8 +68,10 @@
6868
</div>
6969
</div>
7070
<div class="item">
71-
<a target="_blank"
72-
href="https://github.com/trungk18/jira-clone-angular">
71+
<a nz-popover
72+
nzPopoverPlacement="rightBottom"
73+
[nzPopoverContent]="aboutPopoverTmpl"
74+
nzPopoverTrigger="click">
7375
<div nz-tooltip
7476
nzTooltipTitle="About"
7577
nzTooltipPlacement="right"
@@ -83,4 +85,17 @@
8385
</a>
8486
</div>
8587
</div>
86-
</aside>
88+
</aside>
89+
90+
<ng-template #aboutPopoverTmpl>
91+
<div class="about-popover">
92+
<p class="mb-2">This is a <strong>simplified</strong> Jira clone built with Angular 9, Akita and ng-zorro</p>
93+
<p class="mb-2">Thanks a bunch for stopping by and supporting me!</p>
94+
<p class="mb-3">Reach out to me via <a class="font-semibold"
95+
96+
<a href="https://trungk18.com/"
97+
target="_blank">
98+
<j-button className="btn-primary">Visit My Blog</j-button>
99+
</a>
100+
</div>
101+
</ng-template>

frontend/src/app/project/components/navigation/navbar-left/navbar-left.component.scss

Lines changed: 7 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,14 +11,20 @@ $light-blue: rgb(28, 99, 206);
1111
.item {
1212
@apply relative w-full flex items-center justify-center;
1313
min-height: 42px;
14-
14+
1515
.user-profile-photo {
1616
width: 26px;
1717
}
1818
}
19+
1920
.itemIcon {
2021
@apply w-8 h-8 rounded-full flex items-center justify-center flex-shrink-0 select-none transition-colors duration-100 cursor-pointer;
2122
}
23+
2224
.itemIcon:hover {
2325
background: $light-blue;
2426
}
27+
28+
.about-popover {
29+
max-width: 270px;
30+
}

frontend/src/app/project/project.module.ts

Lines changed: 8 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,26 @@ import { CommonModule } from '@angular/common';
44
import { NgModule } from '@angular/core';
55
import { FormsModule, ReactiveFormsModule } from '@angular/forms';
66
import { ContentLoaderModule } from '@ngneat/content-loader';
7+
import { AutofocusDirective } from '@trungk18/core/directives/autofocus.directive';
78
import { NzDrawerModule } from 'ng-zorro-antd/drawer';
89
import { NzDropDownModule } from 'ng-zorro-antd/dropdown';
910
import { NzIconModule } from 'ng-zorro-antd/icon';
1011
import { NzModalModule } from 'ng-zorro-antd/modal';
1112
import { NzNotificationModule } from 'ng-zorro-antd/notification';
13+
import { NzPopoverModule } from 'ng-zorro-antd/popover';
1214
import { NzSelectModule } from 'ng-zorro-antd/select';
1315
import { NzToolTipModule } from 'ng-zorro-antd/tooltip';
1416
import { QuillModule } from 'ngx-quill';
1517
import { JiraControlModule } from '../jira-control/jira-control.module';
1618
import { AddIssueModalComponent } from './components/add-issue-modal/add-issue-modal.component';
19+
import { IssueAssigneesSelectComponent } from './components/add-issue-modal/issue-assignees-select/issue-assignees-select.component';
20+
import { IssuePrioritySelectComponent } from './components/add-issue-modal/issue-priority-select/issue-priority-select.component';
21+
import { IssueReporterSelectComponent } from './components/add-issue-modal/issue-reporter-select/issue-reporter-select.component';
22+
import { IssueTypeSelectComponent } from './components/add-issue-modal/issue-type-select/issue-type-select.component';
1723
import { BoardPageComponents } from './components/board';
1824
import { IssueUtilComponents } from './components/issues';
1925
import { NavigationComponents } from './components/navigation';
26+
import { ResizerComponent } from './components/navigation/resizer/resizer.component';
2027
import { IssueResultComponent } from './components/search/issue-result/issue-result.component';
2128
import { SearchDrawerComponent } from './components/search/search-drawer/search-drawer.component';
2229
import { UserComponent } from './components/user/user.component';
@@ -26,12 +33,6 @@ import { FullIssueDetailComponent } from './pages/full-issue-detail/full-issue-d
2633
import { SettingsComponent } from './pages/settings/settings.component';
2734
import { ProjectRoutingModule } from './project-routing.module';
2835
import { ProjectComponent } from './project.component';
29-
import { IssueTypeSelectComponent } from './components/add-issue-modal/issue-type-select/issue-type-select.component';
30-
import { IssuePrioritySelectComponent } from './components/add-issue-modal/issue-priority-select/issue-priority-select.component';
31-
import { IssueReporterSelectComponent } from './components/add-issue-modal/issue-reporter-select/issue-reporter-select.component';
32-
import { IssueAssigneesSelectComponent } from './components/add-issue-modal/issue-assignees-select/issue-assignees-select.component';
33-
import { ResizerComponent } from './components/navigation/resizer/resizer.component';
34-
import { AutofocusDirective } from '@trungk18/core/directives/autofocus.directive';
3536

3637
@NgModule({
3738
declarations: [
@@ -63,6 +64,7 @@ import { AutofocusDirective } from '@trungk18/core/directives/autofocus.directiv
6364
NzSelectModule,
6465
NzNotificationModule,
6566
NzDrawerModule,
67+
NzPopoverModule,
6668
DragDropModule,
6769
TextFieldModule,
6870
FormsModule,

frontend/src/styles.scss

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@
66
@import 'ng-zorro-antd/select/style/index.min.css';
77
@import 'ng-zorro-antd/drawer/style/index.min.css';
88
@import 'ng-zorro-antd/notification/style/index.min.css';
9+
@import 'ng-zorro-antd/popover/style/index.min.css';
910

1011
@import 'tailwindcss/base';
1112
@import 'tailwindcss/components';

0 commit comments

Comments
 (0)