-
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.
Updates // "projects" code refactor (functions split and clean up)
- Loading branch information
purplehepatica
committed
Nov 13, 2023
1 parent
edfee9b
commit 96438dc
Showing
24 changed files
with
184 additions
and
296 deletions.
There are no files selected for viewing
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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 was deleted.
Oops, something went wrong.
20 changes: 0 additions & 20 deletions
20
app/projekty/js/functionalities/addProject/addProjectElement.copy.js
This file was deleted.
Oops, something went wrong.
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
19 changes: 19 additions & 0 deletions
19
app/projekty/js/functionalities/addProjectJournal/addProjectJournalElement.js
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,19 @@ | ||
import {elements} from "../../elements.js"; | ||
import {appData} from "../../index.js"; | ||
|
||
export const addProjectJournalElement = (id) => { | ||
|
||
const projectID = elements.taskDialog.dataset.projectId; | ||
const { name, date} = appData.projects[projectID].journals[id]; | ||
console.log(name, date) | ||
const element = document.createElement("blockquote"); | ||
element.textContent = name; | ||
|
||
const quoteFooter = document.createElement("footer"); | ||
quoteFooter.innerHTML = `<cite>${date}</cite>`; | ||
|
||
element.append(quoteFooter); | ||
|
||
|
||
elements.journalsContainer.append(element); | ||
} |
Oops, something went wrong.