Skip to content

Commit

Permalink
Merge pull request #250 from frontendmu/chore--fix-remaining-org-names
Browse files Browse the repository at this point in the history
fix remaining organization name
  • Loading branch information
MrSunshyne authored Nov 9, 2024
2 parents d123e46 + 2defd63 commit 44c54b4
Show file tree
Hide file tree
Showing 10 changed files with 140 additions and 226 deletions.
180 changes: 90 additions & 90 deletions CHANGELOG.md

Large diffs are not rendered by default.

Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from "fs";
import { execSync } from "child_process";

const owner = "Front-End-Coders-Mauritius";
const owner = "frontendmu";
const repo = "frontendmu-astro";
const branch = "main"; // Replace with the default branch of your repository

Expand Down
2 changes: 1 addition & 1 deletion packages/frontendmu-astro/scripts/directus-dump.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function loadSpeakersUncached() {
const loadSpeakers = Memoize(loadSpeakersUncached);

// Photo albums
const photoAlbumSource = "https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/";
const photoAlbumSource = "https://raw.githubusercontent.com/frontendmu/google-photos-sync/main/";
async function loadPhotosUncached() {
let albumsPhotos = await fetch(`${photoAlbumSource}index.json`);
albumsPhotos = await albumsPhotos.json();
Expand Down
170 changes: 42 additions & 128 deletions packages/frontendmu-astro/src/components/Meetup.vue
Original file line number Diff line number Diff line change
Expand Up @@ -83,7 +83,7 @@ function shareOnLinkedIn() {
// Google Photos Album Section
const source =
"https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/";
"https://raw.githubusercontent.com/frontendmu/google-photos-sync/main/";
// let currentAlbum = ref([])
// const { data: albumsPhotos, pending, error, refresh } = await useFetch(`${source}index.json`)
const albumsPhotos = ref("");
Expand Down Expand Up @@ -123,172 +123,102 @@ const viewMore = () => {
<div class="pt-8 pb-10 md:pt-16 md:pb-24">
<div class="lg:mx-auto overflow-hidden lg:max-w-[1400px] lg:px-4">
<div class="relative">
<div
aria-hidden="true"
class="hidden sm:block lg:inset-y-0 lg:right-0 lg:w-screen"
>
<div
class="inset-y-0 right-1/2 w-full rounded-r-3xl bg-gray-50 lg:right-72"
/>
<div aria-hidden="true" class="hidden sm:block lg:inset-y-0 lg:right-0 lg:w-screen">
<div class="inset-y-0 right-1/2 w-full rounded-r-3xl bg-gray-50 lg:right-72" />
<IconDots class="w-[600px] opacity-5 saturate-0" />
</div>
</div>

<div
class="relative mx-auto px-8 py-3 sm:max-w-4xl sm:px-6 md:px-0 md:mx-0 md:py-0"
>
<div class="relative mx-auto px-8 py-3 sm:max-w-4xl sm:px-6 md:px-0 md:mx-0 md:py-0">
<!-- Content area -->
<div>
<div class="flex w-full items-center justify-end">
<p
:class="[
isUpcoming
? 'tagStyle bg-yellow-100 text-yellow-800'
: 'tagStyle bg-green-100 text-green-800',
]"
>
<p :class="[
isUpcoming
? 'tagStyle bg-yellow-100 text-yellow-800'
: 'tagStyle bg-green-100 text-green-800',
]">
{{ isUpcoming ? "past" : "upcoming" }}
</p>
</div>
<h1
class="text-3xl font-extrabold font-mono tracking-tight text-gray-900 md:text-4xl lg:text-5xl"
>
<h1 class="text-3xl font-extrabold font-mono tracking-tight text-gray-900 md:text-4xl lg:text-5xl">
{{ props.getCurrentEvent?.title }}
</h1>
<div
v-if="props.getCurrentEvent.description"
class="mt-6 space-y-6 text-gray-500"
>
<div
class="text-md prose md:text-lg"
v-html="props.getCurrentEvent.description"
/>
<div v-if="props.getCurrentEvent.description" class="mt-6 space-y-6 text-gray-500">
<div class="text-md prose md:text-lg" v-html="props.getCurrentEvent.description" />
</div>
<div v-else class="text-md prose md:text-lg">
Please add a description.
</div>
</div>
<!-- Stats section -->
<div class="mt-10">
<dl
class="grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-4 md:gap-y-8"
>
<div
v-if="props.getCurrentEvent.Date"
class="border-t-2 border-gray-100 pt-6"
>
<dl class="grid grid-cols-1 md:grid-cols-2 gap-x-4 gap-y-4 md:gap-y-8">
<div v-if="props.getCurrentEvent.Date" class="border-t-2 border-gray-100 pt-6">
<dt class="text-base font-medium text-gray-500">Date</dt>
<dd
class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl"
>
<dd class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl">
{{ new Date(props.getCurrentEvent.Date).toDateString() }}
</dd>
</div>
<div
v-if="props.getCurrentEvent.Venue"
class="border-t-2 border-gray-100 pt-4 md:pt-6"
>
<div v-if="props.getCurrentEvent.Venue" class="border-t-2 border-gray-100 pt-4 md:pt-6">
<dt class="text-base font-medium text-gray-500">Venue</dt>
<dd
class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl"
>
<dd class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl">
{{ props.getCurrentEvent.Venue }}
</dd>
</div>
<div
v-if="props.getCurrentEvent.Time"
class="border-t-2 border-gray-100 pt-4 md:pt-6"
>
<div v-if="props.getCurrentEvent.Time" class="border-t-2 border-gray-100 pt-4 md:pt-6">
<dt class="text-base font-medium text-gray-500">Time</dt>
<dd
class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl"
>
<dd class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl">
{{ props.getCurrentEvent.Time }}
</dd>
</div>
<div
v-if="props.getCurrentEvent.Location"
class="border-t-2 border-gray-100 pt-4 md:pt-6"
>
<div v-if="props.getCurrentEvent.Location" class="border-t-2 border-gray-100 pt-4 md:pt-6">
<dt class="text-base font-medium text-gray-500">
Location
</dt>
<dd
class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl"
>
<dd class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl">
{{ props.getCurrentEvent.Location }}
</dd>
</div>
<div
v-if="props.getCurrentEvent.Attendees"
class="border-t-2 border-gray-100 pt-6"
>
<div v-if="props.getCurrentEvent.Attendees" class="border-t-2 border-gray-100 pt-6">
<dt class="text-base font-medium text-gray-500">
Seats Limit
</dt>
<dd
class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl"
>
<dd class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl">
{{ props.getCurrentEvent.Attendees }}
</dd>
</div>

<div class="border-y-2 border-gray-100 pt-4 md:pt-6">
<dt class="text-base font-medium text-gray-500">Share</dt>
<div class="flex gap-8 py-4">
<button
class="hover:text-[#4267B2]"
@click="shareOnFacebook"
>
<button class="hover:text-[#4267B2]" @click="shareOnFacebook">
<icon-facebook class="w-10 md:w-12" />
</button>
<button
class="hover:text-[#00acee]"
@click="shareOnTwitter"
>
<button class="hover:text-[#00acee]" @click="shareOnTwitter">
<icon-twitter class="w-10 md:w-12" />
</button>
<button
class="hover:text-[#007db1]"
@click="shareOnLinkedIn"
>
<button class="hover:text-[#007db1]" @click="shareOnLinkedIn">
<icon-linkedin class="w-10 md:w-12" />
</button>
</div>
<dd
class="flex justify-between rounded-md bg-gray-100 mt-2 px-2 py-1 lg:w-[450px]"
>
<input
id="myInput"
<dd class="flex justify-between rounded-md bg-gray-100 mt-2 px-2 py-1 lg:w-[450px]">
<input id="myInput"
class="text-md break-words bg-gray-100pr-2 tracking-tight bg-gray-100 text-gray-600 line-clamp-3 w-[500px]"
type="text"
:value="`https://frontend.mu/meetup/${props.routeId}/`"
/>
type="text" :value="`https://frontend.mu/meetup/${props.routeId}/`" />
<div class="cursor-pointer" @click="copy">
<svg
xmlns="http://www.w3.org/2000/svg"
class="h-5 w-5"
viewBox="0 0 20 20"
fill="currentColor"
>
<svg xmlns="http://www.w3.org/2000/svg" class="h-5 w-5" viewBox="0 0 20 20" fill="currentColor">
<path d="M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z" />
<path
d="M8 3a1 1 0 011-1h2a1 1 0 110 2H9a1 1 0 01-1-1z"
/>
<path
d="M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z"
/>
d="M6 3a2 2 0 00-2 2v11a2 2 0 002 2h8a2 2 0 002-2V5a2 2 0 00-2-2 3 3 0 01-3 3H9a3 3 0 01-3-3z" />
</svg>
</div>
</dd>
</div>

<div
v-if="!isUpcoming"
class="md:border-t-2 border-gray-100 pt-4 md:pt-8 flex flex-col justify-center items-center md:items-start gap-4"
>
<dd
class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl"
>
<div v-if="!isUpcoming"
class="md:border-t-2 border-gray-100 pt-4 md:pt-8 flex flex-col justify-center items-center md:items-start gap-4">
<dd class="text-2xl font-extrabold tracking-tight text-gray-900 md:text-3xl">
<!-- <a
class="flex gap-4 w-96 md:w-48 lg:w-56 items-center justify-center md:justify-left rounded-md border border-transparent bg-yellow-500 px-8 py-3 text-base tracking-wide font-extrabold text-white drop-shadow-2xl hover:bg-yellow-600 md:py-2 md:px-4 md:text-lg italic"
Expand All @@ -297,44 +227,28 @@ const viewMore = () => {
<icon-arrow-right class="md:animate-bounce" />
</a> -->
<fec-anchor
v-if="props.getCurrentEvent.rsvplink"
:href="props.getCurrentEvent.rsvplink"
target="_blank"
>Book my seat</fec-anchor
>
<fec-anchor v-if="props.getCurrentEvent.rsvplink" :href="props.getCurrentEvent.rsvplink"
target="_blank">Book my seat</fec-anchor>
</dd>
</div>
</dl>
</div>
</div>
</div>
<div class="lg:mx-auto lg:max-w-[1400px] px-4">
<div
v-if="props.getCurrentEvent.album"
class="flex flex-col items-center gap-8 py-20"
>
<div v-if="props.getCurrentEvent.album" class="flex flex-col items-center gap-8 py-20">
<!-- <pre>
{{ currentAlbum }}
</pre> -->

<div class="w-full grid grid-cols-4 gap-4">
<div
v-for="photo in currentAlbum"
:key="photo"
class="rounded-md overflow-hidden aspect-video"
>
<img
:src="`${source}/${photo}`"
class="object-cover w-full h-full object-center block"
/>
<div v-for="photo in currentAlbum" :key="photo" class="rounded-md overflow-hidden aspect-video">
<img :src="`${source}/${photo}`" class="object-cover w-full h-full object-center block" />
</div>
</div>
<div
v-if="limit < maxAlbumLength"
<div v-if="limit < maxAlbumLength"
class="cursor-pointer hover:opacity-90 transition-all text-md block w-48 rounded-md bg-verse-600 px-4 py-4 text-center font-medium text-white md:w-64 md:px-8 md:text-xl"
@click="viewMore()"
>
@click="viewMore()">
View more
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion packages/frontendmu-astro/src/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,4 @@ export const SITE_DESCRIPTION =
"Community of Front-End developers who share their passions for the web. Events, workshops and conferences occurs regularly.";

export const photoAlbumSource =
"https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/";
"https://raw.githubusercontent.com/frontendmu/google-photos-sync/main/";
2 changes: 1 addition & 1 deletion packages/frontendmu-data/data/meetups-raw.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/frontendmu-data/data/photos-raw.json

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion packages/frontendmu-data/scripts/directus-dump.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ async function loadSpeakersUncached() {
const loadSpeakers = Memoize(loadSpeakersUncached);

// Photo albums
const photoAlbumSource = "https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/";
const photoAlbumSource = "https://raw.githubusercontent.com/frontendmu/google-photos-sync/main/";
async function loadPhotosUncached() {
let albumsPhotos = await fetch(`${photoAlbumSource}index.json`);
albumsPhotos = await albumsPhotos.json();
Expand Down
2 changes: 1 addition & 1 deletion packages/frontendmu-data/scripts/update-contributors.js
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import fs from "fs";
import { execSync } from "child_process";

const owner = "Front-End-Coders-Mauritius";
const owner = "frontendmu";
const repo = "frontend.mu";
const branch = "main"; // Replace with the default branch of your repository

Expand Down
2 changes: 1 addition & 1 deletion packages/frontendmu-nuxt/app.config.ts
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
export default defineAppConfig({
photoAlbumSource:
'https://raw.githubusercontent.com/Front-End-Coders-Mauritius/google-photos-sync/main/',
'https://raw.githubusercontent.com/frontendmu/google-photos-sync/main/',
description: 'A community around front-end development based in Mauritius. We also organise monthly meetups free for anyone interested to attend.',
})

0 comments on commit 44c54b4

Please sign in to comment.