Skip to content

Commit

Permalink
Nova build, falta ajustar funcoes
Browse files Browse the repository at this point in the history
  • Loading branch information
MatheusTKoch committed Feb 13, 2025
1 parent 0726f65 commit 2aeaaa3
Show file tree
Hide file tree
Showing 5 changed files with 2,740 additions and 2,605 deletions.
2,730 changes: 2,730 additions & 0 deletions docs/assets/index-a7b28986.js

Large diffs are not rendered by default.

2,595 changes: 0 additions & 2,595 deletions docs/assets/index-c6e71290.js

This file was deleted.

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions docs/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,8 +6,8 @@

<title>Task Project</title>
<base href="task-project">
<script type="module" crossorigin src="/task-project/assets/index-c6e71290.js"></script>
<link rel="stylesheet" href="/task-project/assets/index-f197b109.css">
<script type="module" crossorigin src="/task-project/assets/index-a7b28986.js"></script>
<link rel="stylesheet" href="/task-project/assets/index-d5f8f849.css">
</head>
<body>
<div id="app"></div>
Expand Down
14 changes: 7 additions & 7 deletions src/components/TaskBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ import MainHeader from "./BodyHeader.vue";
import { ref, onUnmounted } from "vue";
import { getAuth } from "firebase/auth";
import { Icon } from "@iconify/vue";
import { getDatabase, ref as refFirebase } from "@firebase/database";
import { getDatabase, query, ref as refFirebase, orderByChild, equalTo, onValue } from "@firebase/database";
export default {
name: "TaskList",
Expand Down Expand Up @@ -61,14 +61,14 @@ export default {
if (tasksRefListener) {
refFirebase("tasks").off("value", tasksRefListener);
}
tasksRefListener =
refFirebase(db, "tasks")
.orderByChild("userUID")
.equalTo(loggedUser.value)
.on("value", (snapshot) => {
tasksRefListener = query(
refFirebase(db, "tasks"),
orderByChild("userUID"),
equalTo(loggedUser.value))
onValue("value", (snapshot) => {
taskArray.value = snapshot.val() || {};
isLoading.value = false;
});
})
}
function addTask() {
Expand Down

0 comments on commit 2aeaaa3

Please sign in to comment.