-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: topic managment logic implemented
- Loading branch information
Showing
9 changed files
with
78 additions
and
12 deletions.
There are no files selected for viewing
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
36 changes: 35 additions & 1 deletion
36
front/src/app/admin/components/manage-topics/manage-topics.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 |
---|---|---|
@@ -1 +1,35 @@ | ||
<p>manage-topics works!</p> | ||
<p>manage-topics works!</p> | ||
<div class="feature col flex-grow-1"> | ||
<a href="#collapseTopics" data-bs-toggle="collapse" data-bs-target="#collapseTopics" role="button" | ||
aria-expanded="true" aria-controls="collapseTopics"> | ||
<div class="feature-icon d-inline-flex align-items-center justify-content-center fs-2 mb-3"> | ||
<i class="fa-regular fa-solid fa-at fa-xl"></i> | ||
</div> | ||
<h3 class="fs-2">Manage Topics</h3> | ||
</a> | ||
<p> | ||
Type in a new topic to create it, or click on an already existing one to delete it. | ||
</p> | ||
<div class="collapse" id="collapseTopics"> | ||
|
||
<form class="m-auto" action="/addTopic"> | ||
<div class="form-floating mb-2"> | ||
<input type="text" class="form-control h-100" id="newTopic" placeholder="Type new topic..." name="topicName"> | ||
<label for="newTopic" class="text-muted">Type new topic...</label> | ||
</div> | ||
<button class="w-100 btn btn-lg btn-light" type="submit">Add topic</button> | ||
</form> | ||
|
||
|
||
<input type="text" #topicName> | ||
|
||
<button class="btn btn-primary mt-2" (click)="getTopic(topicName.value)"> | ||
Search | ||
</button> | ||
<div *ngIf="topic"> | ||
<a (click)="deleteTopic(topic.name)" class="listItem btn btn-primary mt-2"> | ||
{{topic.name}} | ||
</a> | ||
</div> | ||
</div> | ||
</div> |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,8 @@ | ||
.listItem, form{ | ||
width: 100%; | ||
} | ||
|
||
.listItemLocked{ | ||
width: 100%; | ||
background-color: rgb(126, 64, 64); | ||
} |
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
Empty file.
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