-
Notifications
You must be signed in to change notification settings - Fork 58
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat - add "clone" note functionality
- Loading branch information
Showing
8 changed files
with
127 additions
and
29 deletions.
There are no files selected for viewing
5 changes: 5 additions & 0 deletions
5
apps/codever-ui/src/app/my-notes/clone-note/clone-note.component.html
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<app-note-editor | ||
[note]="note" | ||
[isEditMode]="false" | ||
[cloneNote]="true" | ||
></app-note-editor> |
35 changes: 35 additions & 0 deletions
35
apps/codever-ui/src/app/my-notes/clone-note/clone-note.component.scss
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,35 @@ | ||
label { | ||
display: inline-block; | ||
margin: 0.5em 0; | ||
color: #607d8b; | ||
font-weight: bold; | ||
} | ||
input { | ||
height: 2em; | ||
font-size: 1em; | ||
padding-left: 0.4em; | ||
} | ||
|
||
input[type='checkbox'], | ||
input[type='radio'] { | ||
vertical-align: middle; | ||
position: relative; | ||
bottom: 1px; | ||
} | ||
|
||
#shared_label { | ||
width: 100%; | ||
} | ||
|
||
mat-chip { | ||
max-width: 200px; | ||
} | ||
|
||
.demo-chip-list { | ||
width: 100%; | ||
} | ||
|
||
.markdown-link { | ||
font-weight: normal; | ||
margin-left: 0.15rem; | ||
} |
15 changes: 15 additions & 0 deletions
15
apps/codever-ui/src/app/my-notes/clone-note/clone-note.component.ts
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,15 @@ | ||
import { Component, OnInit } from '@angular/core'; | ||
import { Note } from '../../core/model/note'; | ||
|
||
@Component({ | ||
selector: 'app-clone-note', | ||
templateUrl: './clone-note.component.html', | ||
styleUrls: ['./clone-note.component.scss'], | ||
}) | ||
export class CloneNoteComponent implements OnInit { | ||
note: Note; | ||
|
||
ngOnInit(): void { | ||
this.note = window.history.state.note; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters