Skip to content

Commit

Permalink
Squashed commit of the following:
Browse files Browse the repository at this point in the history
commit ebd3585
Author: Garrett Ladley <[email protected]>
Date:   Fri Apr 26 19:08:39 2024 -0400

    chore: update swagger docs lol (#670)

commit 5e577b5
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:55:57 2024 -0400

    Chore(deps): Bump gorm.io/gorm from 1.25.9 to 1.25.10 in /backend (#651)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit dae8559
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:53:57 2024 -0400

    Chore(deps): Bump zod from 3.22.4 to 3.23.4 in /frontend/lib (#653)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit e783266
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:53:34 2024 -0400

    Chore(deps): Bump @react-native-menu/menu from 1.0.0 to 1.0.1 in /frontend/mobile (#654)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit 28b0601
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:53:13 2024 -0400

    Chore(deps-dev): Bump react-test-renderer from 18.2.0 to 18.3.1 in /frontend/mobile (#655)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit 8fb976f
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:52:50 2024 -0400

    Chore(deps): Bump zod from 3.22.4 to 3.23.4 in /frontend/mobile (#656)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit 91bd0fa
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:51:59 2024 -0400

    Chore(deps): Bump react-native-svg from 15.1.0 to 15.2.0 in /frontend/mobile (#657)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit 1c3af86
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:51:24 2024 -0400

    Chore(deps): Bump react-native-screens from 3.30.1 to 3.31.1 in /frontend/mobile (#658)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit 438543c
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:51:00 2024 -0400

    Chore(deps-dev): Bump eslint-config-next from 14.2.2 to 14.2.3 in /frontend/web (#659)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit d17a368
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:50:31 2024 -0400

    Chore(deps): Bump next from 14.2.2 to 14.2.3 in /frontend/web (#661)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit 0683f69
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:50:09 2024 -0400

    Chore(deps): Bump zod from 3.23.3 to 3.23.4 in /frontend/dashboard (#663)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit b37cac2
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:49:46 2024 -0400

    Chore(deps-dev): Bump eslint-config-next from 14.2.2 to 14.2.3 in /frontend/dashboard (#664)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit bc681d3
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:49:22 2024 -0400

    Chore(deps): Bump next from 14.2.2 to 14.2.3 in /frontend/dashboard (#666)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit 808fa7a
Author: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Date:   Fri Apr 26 18:49:01 2024 -0400

    Chore(deps): Bump github.com/aws/aws-sdk-go from 1.51.25 to 1.51.30 in /backend (#650)

    Signed-off-by: dependabot[bot] <[email protected]>
    Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
    Co-authored-by: Garrett Ladley <[email protected]>

commit e8e3859
Author: Garrett Ladley <[email protected]>
Date:   Fri Apr 26 18:48:32 2024 -0400

    feat: dashboard in cli (#665)

commit 5ae64c2
Author: Garrett Ladley <[email protected]>
Date:   Fri Apr 26 18:45:51 2024 -0400

    feat: fe lib ci (#652)

commit 0eb16da
Author: Garrett Ladley <[email protected]>
Date:   Fri Apr 26 17:30:51 2024 -0400

    feat: register dashboard and lib with dependabot (#648)

commit 5b38adc
Author: Garrett Ladley <[email protected]>
Date:   Fri Apr 26 17:28:51 2024 -0400

    fix: misc fe pathing with drop of 'sac-' fe dir prefix (#646)

commit e556197
Author: Garrett Ladley <[email protected]>
Date:   Thu Apr 25 18:00:07 2024 -0400

    chore: remove gorm in go structs (#641)

commit a0ed6d4
Author: David Oduneye <[email protected]>
Date:   Thu Apr 25 14:27:41 2024 -0400

    feat: move authentication route to user, club authorization  (#637)

    Co-authored-by: Garrett Ladley <[email protected]>

commit 25002d5
Author: Garrett Ladley <[email protected]>
Date:   Thu Apr 25 14:25:58 2024 -0400

    fix: frontend ci (#639)

commit a28089a
Author: Alder Whiteford <[email protected]>
Date:   Thu Apr 25 14:13:56 2024 -0400

    feat: frontend lib, rtk migration, & dashboard init (#632)

    Co-authored-by: David Oduneye <[email protected]>
    Co-authored-by: Alder Whiteford <[email protected]>
    Co-authored-by: garrettladley <[email protected]>
  • Loading branch information
DOOduneye committed Apr 27, 2024
1 parent 8ce3d9c commit 98be844
Show file tree
Hide file tree
Showing 6 changed files with 187 additions and 7 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,6 @@ import { UseQueryResult } from '@tanstack/react-query';

import BluePin from '@/assets/images/svg/blue-pin.svg';
import Pin from '@/assets/images/svg/pin.svg';
// import { useClub } from '@/hooks/use-club';
import { useEventTags } from '@/hooks/use-event';
import { isToday, randomEventColorData } from '@/lib/utils';
import { Event } from '@/types/event';
Expand Down
16 changes: 16 additions & 0 deletions frontend/mobile/data/categories.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
import { Category } from '@/types/category';

import { tags } from './tags';

export const categories: Category[] = [];

for (let i = 1; i <= 10; i++) {
const category: Category = {
id: i.toString(),
created_at: new Date(),
updated_at: new Date(),
name: `Tag${i}`,
tags: tags.slice(0, Math.floor(Math.random() * tags.length))
};
categories.push(category);
}
60 changes: 60 additions & 0 deletions frontend/mobile/data/clubs.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
import { Club } from '@/types/club';
import { Contact } from '@/types/contact';

export const clubs: Club[] = [];

for (let i = 1; i <= 10; i++) {
const club: Club = {
id: i.toString(),
updated_at: new Date(),
created_at: new Date(),
name: `Club ${i}`,
preview: `Preview ${i}`,
description: `Description ${i}`,
num_members: i * 10,
is_recruiting: i % 2 === 0,
recruitment_cycle:
i % 4 === 0
? 'always'
: i % 3 === 0
? 'fallSpring'
: i % 2 === 0
? 'spring'
: 'fall',
recruitment_type:
i % 3 === 0
? 'unrestricted'
: i % 2 === 0
? 'tryout'
: 'application',
application_link: `https://example.com/club${i}`,
logo: `https://example.com/club${i}.png`
};
clubs.push(club);
}

export const contacts: Contact[] = [];

for (let i = 1; i <= 10; i++) {
const contact: Contact = {
id: i.toString(),
created_at: new Date(),
updated_at: new Date(),
content: `Contact ${i}`,
type: Math.random() > 0.5 ? 'email' : 'slack'
};
contacts.push(contact);
}

export const clubContacts: { [key: string]: Contact[] } = {};

for (let i = 1; i <= 10; i++) {
const clubContactsArray: Contact[] = [];
const contactIndices: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].filter(
(index) => index % i === 0
);
contactIndices.slice(0, 2).forEach((index) => {
clubContactsArray.push(contacts[index]);
});
clubContacts[i.toString()] = clubContactsArray;
}
92 changes: 92 additions & 0 deletions frontend/mobile/data/events.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
import { Club } from '@/types/club';
import { Event } from '@/types/event';
import { Tag } from '@/types/tag';

import { clubs } from './clubs';
import { tags } from './tags';

const Locations = [
'2435 E. North St., Greenville, SC',
'1234 Main Rd., New York, NY',
'5678 Elm St., Los Angeles, CA',
'91011 Pine Ct., Chicago, IL',
'1213 Oak Ave., Houston, TX',
'1415 Maple Dr., Phoenix, AZ',
'1617 Birch Ln., Philadelphia, PA',
'1819 Cedar Rd., San Antonio, TX',
'2021 Spruce St., San Diego, CA',
'2223 Willow Dr., Dallas, TX'
];

const generateLoremIpsum = (paragraphs = 1, sentencesPerParagraph = 3) => {
const loremIpsumText =
'Lorem ipsum dolor sit amet, consectetur adipiscing elit, sed do eiusmod tempor incididunt ut labore et dolore magna aliqua. Ut enim ad minim veniam, quis nostrud exercitation ullamco laboris nisi ut aliquip ex ea commodo consequat. Duis aute irure dolor in reprehenderit in voluptate velit esse cillum dolore eu fugiat nulla pariatur. Excepteur sint occaecat cupidatat non proident, sunt in culpa qui officia deserunt mollit anim id est laborum.';
const sentences = loremIpsumText.split('. ');

const getRandomSentence = () => {
return sentences[Math.floor(Math.random() * sentences.length)];
};

let paragraphsText = '';
for (let i = 0; i < paragraphs; i++) {
let paragraph = '';
for (let j = 0; j < sentencesPerParagraph; j++) {
paragraph += getRandomSentence() + ' ';
}
paragraphsText += paragraph.trim() + '\n\n';
}

return paragraphsText.trim();
};

export const events: Event[] = [];

for (let i = 1; i <= 10; i++) {
events.push({
id: i.toString(),
updated_at: new Date(),
created_at: new Date(),
name: `Event ${i}`,
start_time: new Date(),
end_time: new Date(),
location: Locations[i - 1],
preview: `Preview ${i}`,
content: generateLoremIpsum(
Math.floor(Math.random() * 3) + 1,
Math.floor(Math.random() * 3) + 1
),
meeting_link: `http://www.example.com/event${i}`,
is_recurring: false,
event_type: 'open'
});
}

// Event Hosts

export const eventHosts: { [key: string]: Club[] } = {};

for (let i = 1; i <= 10; i++) {
const hostsArray: Club[] = [];
const hostIndices: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].filter(
(index) => index % i === 0
);
hostIndices.forEach((index) => {
hostsArray.push(clubs[index]);
});
eventHosts[i.toString()] = hostsArray;
}

// Event Tags

export const eventTags: { [key: string]: Tag[] } = {};

for (let i = 1; i <= 10; i++) {
const tagsArray: Tag[] = [];
const tagIndices: number[] = [0, 1, 2, 3, 4, 5, 6, 7, 8, 9].filter(
(index) => index % i === 0
);
tagIndices.forEach((index) => {
tagsArray.push(tags[index]);
});
eventTags[i.toString()] = tagsArray;
}
13 changes: 13 additions & 0 deletions frontend/mobile/data/tags.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import { Tag } from '@/types/tag';

export const tags: Tag[] = [];

for (let i = 1; i <= 10; i++) {
const tag: Tag = {
id: i.toString(),
created_at: new Date(),
updated_at: new Date(),
name: `Tag${i}`
};
tags.push(tag);
}
12 changes: 6 additions & 6 deletions frontend/web/app/page.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ export default function Home() {
target="_blank"
rel="noopener noreferrer"
>
By{' '}
By{" "}
<Image
src="/vercel.svg"
alt="Vercel Logo"
Expand Down Expand Up @@ -47,7 +47,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Docs{' '}
Docs{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand All @@ -65,7 +65,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Learn{' '}
Learn{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand All @@ -83,7 +83,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Templates{' '}
Templates{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand All @@ -100,7 +100,7 @@ export default function Home() {
rel="noopener noreferrer"
>
<h2 className={`mb-3 text-2xl font-semibold`}>
Deploy{' '}
Deploy{" "}
<span className="inline-block transition-transform group-hover:translate-x-1 motion-reduce:transform-none">
-&gt;
</span>
Expand All @@ -113,4 +113,4 @@ export default function Home() {
</div>
</main>
);
}
}

0 comments on commit 98be844

Please sign in to comment.