Skip to content

Commit

Permalink
🎨 Improve category and format name
Browse files Browse the repository at this point in the history
  • Loading branch information
HubM committed Sep 1, 2024
1 parent 7ec9c7e commit 42a15c9
Show file tree
Hide file tree
Showing 3 changed files with 18 additions and 5 deletions.
4 changes: 2 additions & 2 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"editor.codeActionsOnSave": {
"source.fixAll": "always",
"source.fixAll.eslint": "always"
"source.fixAll": "never",
"source.fixAll.eslint": "explicit"
},
"typescript.tsdk": "node_modules/typescript/lib",
}
10 changes: 8 additions & 2 deletions types/Category.ts
Original file line number Diff line number Diff line change
@@ -1,8 +1,14 @@
import type { HEX } from "./Color";
import type { Talk } from "./Talk";

type CategoryName = "Design & UX" | "Cloud & DevSecOps" | "Backend" | "Frontend" |
"Big Data & I.A." | "Méthodo & Architecture" | "Hors-piste";
type CategoryName =
| "Design & UX"
| "Cloud & DevSecOps"
| "Backend"
| "Frontend"
| "Big Data & I.A."
| "Méthodo & Architecture"
| "Hors-piste";

export type Category = {
id: number;
Expand Down
9 changes: 8 additions & 1 deletion types/Format.ts
Original file line number Diff line number Diff line change
@@ -1,9 +1,16 @@
import type { Talk } from "./Talk";

type FormatName =
| "Quickie"
| "Conférence"
| "Hands on lab"
| "Keynote de fermeture"
| "Keynote d'ouverture";

export type Format = {
id: number;
conferenceHallId?: string;
name?: string;
name: FormatName;
description?: string;
duration: string;
talks?: Talk[];
Expand Down

0 comments on commit 42a15c9

Please sign in to comment.