Skip to content

Commit

Permalink
run lint
Browse files Browse the repository at this point in the history
  • Loading branch information
StackSurfer committed Dec 28, 2023
1 parent c245503 commit 642f8fe
Show file tree
Hide file tree
Showing 9 changed files with 394 additions and 394 deletions.
6 changes: 3 additions & 3 deletions components/Reported-Tasks/Matching.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,11 +19,11 @@
</template>

<script setup lang="ts">
import { useI18n } from "vue-i18n";
import { useI18n } from "vue-i18n";
const reportedMatching = useMatching();
const reportedMatching = useMatching();
const { t } = useI18n();
const { t } = useI18n();
</script>

<style scoped></style>
10 changes: 5 additions & 5 deletions components/Reported-Tasks/QuizInfo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -27,14 +27,14 @@
</template>

<script lang="ts" setup>
import type { IconXMark } from "#build/components";
import { ExclamationCircleIcon } from "@heroicons/vue/24/outline";
import { useI18n } from "vue-i18n";
import type { IconXMark } from "#build/components";
import { ExclamationCircleIcon } from "@heroicons/vue/24/outline";
import { useI18n } from "vue-i18n";
defineProps<{
defineProps<{
mcq: any;
}>();
const { t } = useI18n();
const { t } = useI18n();
</script>

<style scoped></style>
138 changes: 69 additions & 69 deletions components/Reported-Tasks/Table.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,83 +52,83 @@
</template>

<script lang="ts">
import { EyeIcon } from "@heroicons/vue/24/outline/index.js";
import { computed } from "vue";
import type { PropType } from "vue";
import { EyeIcon } from "@heroicons/vue/24/outline/index.js";
import { computed } from "vue";
import type { PropType } from "vue";
import { useI18n } from "vue-i18n";
import type { ReportBase } from "~/types/reportedTaskTypes";
import {
useReportReason,
useReportSubtaskType,
} from "~~/composables/reportedSubtasks";
export default {
props: {
data: { type: Array as PropType<any[]>, default: [] },
loading: { type: Boolean, default: true },
},
import type { ReportBase } from "~/types/reportedTaskTypes";
import {
useReportReason,
useReportSubtaskType,
} from "~~/composables/reportedSubtasks";
export default {
props: {
data: { type: Array as PropType<any[]>, default: [] },
loading: { type: Boolean, default: true },
},
components: {
EyeIcon,
},
setup(props) {
const isLoading = computed(() => {
return props.loading ;
});
components: {
EyeIcon,
},
setup(props) {
const isLoading = computed(() => {
return props.loading ;
});
const { t } = useI18n()
const { t } = useI18n()
const headers = computed(() => {
let arrHeaders = [
{
label: "Headings.ReportedBy",
key: "userName",
},
{
label: "Headings.TaskOwner",
key: "creatorName",
},
{
label: "Headings.Reason",
key: "reason",
},
{
label: "Headings.Comment",
key: "comment",
},
{
label: "Headings.ReportedAt",
key: "timestamp",
},
{
label: "Headings.Actions",
key: "actions",
class: "text-center",
},
];
const headers = computed(() => {
let arrHeaders = [
{
label: "Headings.ReportedBy",
key: "userName",
},
{
label: "Headings.TaskOwner",
key: "creatorName",
},
{
label: "Headings.Reason",
key: "reason",
},
{
label: "Headings.Comment",
key: "comment",
},
{
label: "Headings.ReportedAt",
key: "timestamp",
},
{
label: "Headings.Actions",
key: "actions",
class: "text-center",
},
];
return arrHeaders;
});
return arrHeaders;
});
const router = useRouter();
const reportedTask = useReportedSubtask()
const router = useRouter();
const reportedTask = useReportedSubtask()
function onclickEditItem(item: ReportBase) {
reportedTask.value = item;
if (Boolean(!item) || Boolean(!item.id)) return;
router.push(
`/dashboard/reported-tasks/${item.id}?taskId=${item.task_id}&subtaskId=${item.subtask_id}`
);
}
function onclickEditItem(item: ReportBase) {
reportedTask.value = item;
if (Boolean(!item) || Boolean(!item.id)) return;
router.push(
`/dashboard/reported-tasks/${item.id}?taskId=${item.task_id}&subtaskId=${item.subtask_id}`
);
}
return {
headers,
onclickEditItem,
isLoading,
EyeIcon,
t,
};
},
};
return {
headers,
onclickEditItem,
isLoading,
EyeIcon,
t,
};
},
};
</script>

<style scoped></style>
2 changes: 1 addition & 1 deletion components/icon/Check.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
</template>

<script setup lang="ts">
defineProps<{
defineProps<{
color?: string;
size?: string;
}>();
Expand Down
2 changes: 1 addition & 1 deletion components/icon/XMark.vue
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
</template>

<script setup lang="ts">
defineProps<{
defineProps<{
color?: string;
size?: string;
}>();
Expand Down
2 changes: 1 addition & 1 deletion composables/helpers.ts
Original file line number Diff line number Diff line change
Expand Up @@ -182,5 +182,5 @@ export function getTheme(type: string) {
}

export function capitalizeFirstLetter(string: string) {
return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
return string.charAt(0).toUpperCase() + string.slice(1).toLowerCase();
}
Loading

0 comments on commit 642f8fe

Please sign in to comment.