Skip to content

Commit 2f87ec5

Browse files
danielwong0115omargfh
authored andcommitted
Resolve lint errors blocking test builds
1 parent 00401ba commit 2f87ec5

8 files changed

Lines changed: 21 additions & 16 deletions

File tree

apps/netlogo/app/components/Community.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@
5454
import type { CommunityEntry } from "~/utils/api";
5555
import Button from "../../../../packages/vue-ui/src/components/Button.vue";
5656
57-
const props = defineProps<{
57+
defineProps<{
5858
communities: CommunityEntry[];
5959
}>();
6060

apps/netlogo/app/components/GetNetLogo.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
<template>
2-
<section class="py-12" id="get-netlogo">
2+
<section id="get-netlogo" class="py-12">
33
<div class="mb-8">
44
<h1 class="font-bold text-4xl lg:text-5xl text-gray-600 mb-4">Get NetLogo</h1>
55
<p class="text-gray-600 dark:text-gray-400">
@@ -56,7 +56,7 @@
5656
import type { GetNetLogoEntry } from "~/utils/api";
5757
import Button from "../../../../packages/vue-ui/src/components/Button.vue";
5858
59-
const props = defineProps<{
59+
defineProps<{
6060
products: GetNetLogoEntry[];
6161
}>();
6262

apps/netlogo/app/components/Intro.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -67,7 +67,7 @@ interface Props {
6767
introSplashData?: IntroSplashEntry[];
6868
}
6969
70-
const props = withDefaults(defineProps<Props>(), {
70+
withDefaults(defineProps<Props>(), {
7171
description:
7272
"Powerful yet easy-to-learn environment for agent-based modeling in both research and education.",
7373
introSplashData: () => [],

apps/netlogo/app/components/Newsfeed.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -97,7 +97,7 @@ import { computed, ref } from "vue";
9797
import type { NewsEntry } from "~/utils/api";
9898
9999
interface Props {
100-
newsData: NewsEntry[];
100+
newsData?: NewsEntry[];
101101
}
102102
103103
const props = withDefaults(defineProps<Props>(), {

apps/netlogo/app/components/downloads/DownloadSection.vue

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,10 @@
1616
href="https://docs.netlogo.org/requirements.html"
1717
>system requirements</a
1818
>). If you would like to run NetLogo on a Chromebook or in a web browser, use
19-
<a class="underline text-blue-600" target="_blank" href="http://netlogoweb.org/"
19+
<a
20+
class="underline text-blue-600"
21+
target="_blank"
22+
href="http://netlogoweb.org/"
2023
>NetLogo Web</a
2124
>.
2225
</p>

apps/netlogo/app/components/news/NewsSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ import type { NewsEntry } from "~/utils/api";
2828
2929
const props = withDefaults(
3030
defineProps<{
31-
newsData: NewsEntry[];
31+
newsData?: NewsEntry[];
3232
}>(),
3333
{
3434
newsData: () => [],

apps/netlogo/app/pages/index.vue

Lines changed: 10 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,23 @@
11
<template>
2-
<Intro :description="introData?.description" :intro-splash-data="introSplashData" />
3-
<Newsfeed :news-data="newsData" />
4-
<div class="bg-zinc-200">
2+
<div>
3+
<Intro :description="introData?.description" :intro-splash-data="introSplashData" />
4+
<Newsfeed :news-data="newsData" />
5+
<div class="bg-zinc-200">
6+
<UContainer>
7+
<GetNetLogo :products="getNetLogoData" />
8+
</UContainer>
9+
</div>
510
<UContainer>
6-
<GetNetLogo :products="getNetLogoData" />
11+
<Community :communities="communityData" />
712
</UContainer>
813
</div>
9-
<UContainer>
10-
<Community :communities="communityData" />
11-
</UContainer>
1214
</template>
1315

1416
<script setup lang="ts">
1517
import { useWebsite } from "~/composables/useWebsite";
1618
import NetLogoAPI from "~/utils/api";
1719
18-
const meta = useWebsite();
20+
const _meta = useWebsite();
1921
const config = useRuntimeConfig();
2022
2123
const { data: mainData } = await useAsyncData("main-page-data", async () => {

apps/netlogo/app/utils/api.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -286,7 +286,7 @@ class NetLogoAPI {
286286
}>(queries.referenceData);
287287

288288
// ***new fix stores is ccl and the refrence not jsut ref
289-
let groupedReferences: Map<number, { reference: string; is_ccl: boolean }[]> = new Map();
289+
const groupedReferences: Map<number, { reference: string; is_ccl: boolean }[]> = new Map();
290290

291291
//let groupedReferences: Map<number, string[]> = new Map();
292292

0 commit comments

Comments
 (0)