Skip to content

Commit

Permalink
Merge pull request #146 from inab/login_branch
Browse files Browse the repository at this point in the history
Login branch
  • Loading branch information
JessicaFM authored Jan 9, 2025
2 parents f5033cb + 25cd328 commit d08c49b
Show file tree
Hide file tree
Showing 24 changed files with 1,401 additions and 98 deletions.
16 changes: 6 additions & 10 deletions components/Dashboard/entries/CommunityEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -491,19 +491,16 @@
<script setup lang="ts">
import { computed, ref, nextTick, onMounted, useTemplateRef, watch } from "vue";
import { useUser } from "@/stores/user.ts";
import type { Community } from "@/types/communities";
import {
CommunityStatusLabels,
CommunityStatusColors,
} from "@/constants/community_const";
import type { FormErrorEvent, FormSubmitEvent } from "#ui/types";
import type { CommunityPrivilegeActions } from "@/constants/privileges";
import type { Event } from "@/types/events";
import EventsList from "@/components/Dashboard/entries/EventsList.vue";
import CommunitySummary from "@/components/Dashboard/entries/CommunitySummary.vue";
import CustomSubtitle from "@/components/Common/CustomSubtitle.vue";
import type { CommunityPrivilegeActions } from "@/constants/privileges";
import { useRouter } from "vue-router";
import type { FormErrorEvent, FormSubmitEvent } from "#ui/types";
import CustomDialog from "@/components/Common/CustomDialog.vue";
import type { Event } from "@/types/events";
import { object, string, array, safeParse, optional } from "valibot";
import CustomBorder from "@/components/Common/CustomBorder.vue";
import CustomTab from "@/components/Common/CustomTab.vue";
Expand Down Expand Up @@ -971,8 +968,7 @@ watch(
);
watchEffect(() => {
communityData.value; // Acceso a `communityData` para desencadenar su cálculo
// Realiza aquí cualquier otra operación que necesites cada vez que `communityData` cambie.
communityData.value;
});
</script>

Expand Down
2 changes: 0 additions & 2 deletions components/Dashboard/entries/events/CommunityEvent.vue
Original file line number Diff line number Diff line change
Expand Up @@ -402,8 +402,6 @@ const props = defineProps<{
tabIndex: string;
}>();
console.log("props", props.eventPrivileges);
const dialogTitle = ref("");
const dialogType = ref("yesno");
const isDialogOpened = ref(false);
Expand Down
8 changes: 0 additions & 8 deletions components/Dashboard/entries/events/EventChallengesList.vue
Original file line number Diff line number Diff line change
Expand Up @@ -181,13 +181,9 @@ const challengesData = computed(() => {
});
});
console.log("props.commmunityPrivileges", props.commmunityPrivileges.challenge);
const filteredRows = computed(() => {
if (!props.challenges) return [];
console.log("props.challenges", props.challenges);
if (!search.value) {
_total.value = props.challenges.length;
return props.challenges.slice(
Expand All @@ -204,16 +200,12 @@ const filteredRows = computed(() => {
_total.value = filteredSearcher.length;
console.log(filteredSearcher);
return filteredSearcher.slice(
(Number(page.value) - 1) * Number(pageCount.value),
Number(page.value) * Number(pageCount.value),
);
});
console.log("filteredRows", filteredRows.value);
const totalPages = computed(() => {
return Math.ceil(Number(_total.value) / Number(pageCount.value));
});
Expand Down
Loading

0 comments on commit d08c49b

Please sign in to comment.