qiskit.org/types/events.ts

69 lines
1.6 KiB
TypeScript
Raw Normal View History

const WORLD_REGIONS = Object.freeze({
northAmerica: "North America",
southAmerica: "South America",
asiaPacific: "Asia Pacific",
europe: "Europe",
africa: "Africa",
online: "Online",
tbd: "TBD",
} as const);
type WorldRegion = (typeof WORLD_REGIONS)[keyof typeof WORLD_REGIONS];
refactor(events): migrate to Nuxt 3 (#3022) * refactor(index): use `useAsyncData` * refactor(index): migrate "hero" component * refactor(index): migrate "quick start" section * fix(cta): use functions instead of computed props We were using exported functions from another component that should have been doing those calculations as computed props. Since they have been refactored as computed props, we can't export them and reuse them externally as regular functions. Hence we need to recreate those computations here. * feat: update Carbon css classes * chore: move image assets * refactor: use `:deep` selector * feat: working typography * refactor(index): migrate "quick start" section * fix: move images to public folder Our current setup only works with images that were in the "static" (now "public") directory. * refactor(index): migrate "capabilities" section * refactor(index): migrate "learn" section * feat(app-cta): show icons * feat(index): "start locally" design adjustments * chore: remove since already migrated * style: some lint fixes * refactor(advocates): update "header" section * refactor(advocates): update "join" section * refactor(advocates): update "meet" section * refactor(advocates): update "meet" section * refactor(ecosystem): update "header" section * refactor(ecosystem): update "join" section * refactor(ecosystem): update "filter" section * refactor(ecosystem): update "results" section * refactor(ecosystem): update "test tables" * refactor(events): update "header" section * refactor(events): update "filters" section * refactor(events): update "results" section * refactor(events): update "extra info" section * refactor(events): update events tabs * style: lint * chore: update class names
2023-03-14 00:28:18 +08:00
const WORLD_REGION_OPTIONS = [
WORLD_REGIONS.northAmerica,
WORLD_REGIONS.southAmerica,
WORLD_REGIONS.asiaPacific,
WORLD_REGIONS.europe,
WORLD_REGIONS.africa,
WORLD_REGIONS.online,
refactor(events): migrate to Nuxt 3 (#3022) * refactor(index): use `useAsyncData` * refactor(index): migrate "hero" component * refactor(index): migrate "quick start" section * fix(cta): use functions instead of computed props We were using exported functions from another component that should have been doing those calculations as computed props. Since they have been refactored as computed props, we can't export them and reuse them externally as regular functions. Hence we need to recreate those computations here. * feat: update Carbon css classes * chore: move image assets * refactor: use `:deep` selector * feat: working typography * refactor(index): migrate "quick start" section * fix: move images to public folder Our current setup only works with images that were in the "static" (now "public") directory. * refactor(index): migrate "capabilities" section * refactor(index): migrate "learn" section * feat(app-cta): show icons * feat(index): "start locally" design adjustments * chore: remove since already migrated * style: some lint fixes * refactor(advocates): update "header" section * refactor(advocates): update "join" section * refactor(advocates): update "meet" section * refactor(advocates): update "meet" section * refactor(ecosystem): update "header" section * refactor(ecosystem): update "join" section * refactor(ecosystem): update "filter" section * refactor(ecosystem): update "results" section * refactor(ecosystem): update "test tables" * refactor(events): update "header" section * refactor(events): update "filters" section * refactor(events): update "results" section * refactor(events): update "extra info" section * refactor(events): update events tabs * style: lint * chore: update class names
2023-03-14 00:28:18 +08:00
];
const COMMUNITY_EVENT_TYPES = Object.freeze({
hackathon: "Hackathon",
camp: "Camp",
industryEvent: "Industry Event",
openSource: "Open Source",
workshop: "Workshop",
challenge: "Challenge",
networking: "Networking",
talks: "Talks",
} as const);
type CommunityEventType =
(typeof COMMUNITY_EVENT_TYPES)[keyof typeof COMMUNITY_EVENT_TYPES];
type CommunityEvent = {
types: CommunityEventType[];
title: string;
image: string;
// TODO: We need to clarify if region and place have default values and what
// these are. Place and region may seem mandatory but human error is
// possible. In that case, what's the value of place and region?
//
// See also:
// https://github.com/Qiskit/qiskit.org/issues/527
location: string;
speaker: string;
regions: WorldRegion[];
date: string;
startDate: string;
startDateAndTime: string | null;
endDate: string;
to: string;
Feat/include latest changes nuxt 3 (#3106) * fix: no events found typo (#2966) Co-Authored-By: Ryan Rogers <79115152+ryanrrogers@users.noreply.github.com> * feat(events): add description to EventCard (#2965) Co-Authored-By: Randy <6276074+techtolentino@users.noreply.github.com> * feat: Create SECURITIY.md (#2979) Co-Authored-By: Luciano Bello <lbello@gmail.com> Co-Authored-By: Yaiza <17231966+y4izus@users.noreply.github.com> Co-Authored-By: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> * chore: update labels to match the ones we have https: //github.com/Qiskit/qiskit.org/commit/627017d51ae6d5fa552273be56faf2c150969b94 Co-Authored-By: Yaiza <17231966+y4izus@users.noreply.github.com> * feat(events): Calendar added via Iframe (airtable) (#2995) Co-Authored-By: Esperanza Molina <108661074+memolina2323@users.noreply.github.com> Co-Authored-By: Yaiza <17231966+y4izus@users.noreply.github.com> * feat: update 'Entanglement in action' preview image (#3006) Co-Authored-By: Frank Harkins <frankharkins@hotmail.co.uk> * feat: update slack invite link (#3015) Co-Authored-By: Junye Huang <7631333+HuangJunye@users.noreply.github.com> * feat(events): Shows extra info on all the tabs (#3012) Co-Authored-By: Esperanza Molina <108661074+memolina2323@users.noreply.github.com> Co-Authored-By: Yaiza <17231966+y4izus@users.noreply.github.com> * ci: exclude ecosystem/ subdirectories from rclone sync (#3011) Co-Authored-By: Luciano Bello <lbello@gmail.com> * fix(code-cell): horizontal content overflow (#3040) * feat: Segment Tracking added to event tabs (#3060) Co-Authored-By: Esperanza Molina <108661074+memolina2323@users.noreply.github.com> * chore: update qiskit web components version (#3080) Co-Authored-By: Randy <6276074+techtolentino@users.noreply.github.com> * feat: replace StackExchange with Support Channels (#3067) Co-Authored-By: Junye Huang <7631333+HuangJunye@users.noreply.github.com> Co-Authored-By: Randy <6276074+techtolentino@users.noreply.github.com> * chore: fresh fetched content * feat: added Near Term Algorithm Design landing page (#3098) Co-Authored-By: Sanket Panda <6241840+pandasa123@users.noreply.github.com> Co-Authored-By: Frank Harkins <frankharkins@hotmail.co.uk> --------- Co-authored-by: Ryan Rogers <79115152+ryanrrogers@users.noreply.github.com> Co-authored-by: Randy <6276074+techtolentino@users.noreply.github.com> Co-authored-by: Luciano Bello <lbello@gmail.com> Co-authored-by: Yaiza <17231966+y4izus@users.noreply.github.com> Co-authored-by: Eric Arellano <14852634+Eric-Arellano@users.noreply.github.com> Co-authored-by: Esperanza Molina <108661074+memolina2323@users.noreply.github.com> Co-authored-by: Frank Harkins <frankharkins@hotmail.co.uk> Co-authored-by: Junye Huang <7631333+HuangJunye@users.noreply.github.com> Co-authored-by: Sanket Panda <6241840+pandasa123@users.noreply.github.com>
2023-04-06 21:16:04 +08:00
abstract?: string;
};
const COMMUNITY_EVENT_TYPE_OPTIONS = Object.values(
COMMUNITY_EVENT_TYPES,
).sort();
export {
COMMUNITY_EVENT_TYPES,
COMMUNITY_EVENT_TYPE_OPTIONS,
WORLD_REGIONS,
WORLD_REGION_OPTIONS,
};
export type { CommunityEvent, CommunityEventType, WorldRegion };