Make a home for reviewing sites
This commit is contained in:
parent
c4c22f6733
commit
671397ba81
3 changed files with 16 additions and 2 deletions
|
|
@ -167,6 +167,12 @@ const routes: RouteRecordRaw[] = [
|
|||
component: ReviewPool,
|
||||
meta: { requiresAuth: true, showSidebar: true },
|
||||
},
|
||||
{
|
||||
path: "/_/review/site",
|
||||
name: "Site Review",
|
||||
component: ReviewSite,
|
||||
meta: { requiresAuth: true, showSidebar: true },
|
||||
},
|
||||
{
|
||||
path: "/_/signin",
|
||||
name: "Signin",
|
||||
|
|
|
|||
|
|
@ -557,6 +557,10 @@ export interface ReviewTaskListResponse {
|
|||
tasks: ReviewTask[];
|
||||
total: number;
|
||||
}
|
||||
export interface SiteListResponse {
|
||||
sites: Site[];
|
||||
total: number;
|
||||
}
|
||||
export interface UploadDTO {
|
||||
created: string;
|
||||
error: string;
|
||||
|
|
@ -768,6 +772,7 @@ interface URLsAPI {
|
|||
review_task: string;
|
||||
service_request: string;
|
||||
signal: string;
|
||||
site: string;
|
||||
sync: string;
|
||||
upload: string;
|
||||
user: string;
|
||||
|
|
|
|||
|
|
@ -74,7 +74,7 @@ body {
|
|||
|
||||
<script setup lang="ts">
|
||||
import { computed, onMounted, ref, watch } from "vue";
|
||||
import { useStoreReviewTask } from "@/store/review-task";
|
||||
import { useStoreSite } from "@/store/site";
|
||||
import { useSessionStore } from "@/store/session";
|
||||
import maplibregl from "maplibre-gl";
|
||||
import ThreeColumn from "@/components/layout/ThreeColumn.vue";
|
||||
|
|
@ -92,6 +92,9 @@ interface Props {}
|
|||
|
||||
const props = withDefaults(defineProps<Props>(), {});
|
||||
|
||||
const storeSite = useStoreSite();
|
||||
// Lifecycle
|
||||
onMounted(async () => {});
|
||||
onMounted(async () => {
|
||||
storeSite.fetchAll();
|
||||
});
|
||||
</script>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue