File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 5454import type { CommunityEntry } from " ~/utils/api" ;
5555import Button from " ../../../../packages/vue-ui/src/components/Button.vue" ;
5656
57- const props = defineProps <{
57+ defineProps <{
5858 communities: CommunityEntry [];
5959}>();
6060
Original file line number Diff line number Diff line change 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" >
5656import type { GetNetLogoEntry } from " ~/utils/api" ;
5757import Button from " ../../../../packages/vue-ui/src/components/Button.vue" ;
5858
59- const props = defineProps <{
59+ defineProps <{
6060 products: GetNetLogoEntry [];
6161}>();
6262
Original file line number Diff line number Diff 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 : () => [],
Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ import { computed, ref } from "vue";
9797import type { NewsEntry } from " ~/utils/api" ;
9898
9999interface Props {
100- newsData: NewsEntry [];
100+ newsData? : NewsEntry [];
101101}
102102
103103const props = withDefaults (defineProps <Props >(), {
Original file line number Diff line number Diff line change 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 >
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ import type { NewsEntry } from "~/utils/api";
2828
2929const props = withDefaults (
3030 defineProps <{
31- newsData: NewsEntry [];
31+ newsData? : NewsEntry [];
3232 }>(),
3333 {
3434 newsData : () => [],
Original file line number Diff line number Diff line change 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">
1517import { useWebsite } from " ~/composables/useWebsite" ;
1618import NetLogoAPI from " ~/utils/api" ;
1719
18- const meta = useWebsite ();
20+ const _meta = useWebsite ();
1921const config = useRuntimeConfig ();
2022
2123const { data : mainData } = await useAsyncData (" main-page-data" , async () => {
Original file line number Diff line number Diff 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
You can’t perform that action at this time.
0 commit comments