Skip to content

Commit

Permalink
feat: some data entry
Browse files Browse the repository at this point in the history
  • Loading branch information
bbtgnn committed Mar 1, 2024
1 parent 0572f98 commit a549b4a
Show file tree
Hide file tree
Showing 18 changed files with 155 additions and 45 deletions.
28 changes: 21 additions & 7 deletions src/_modules/database_index.ts
Original file line number Diff line number Diff line change
@@ -1,17 +1,25 @@
import { Type as T } from '@sinclair/typebox';

export const database_index_schema = T.Object({
organizations: T.Union([T.Literal('dyne'), T.Literal('ff3300'), T.Literal('freelance'), T.Literal('la-scuola-open-source')]),
education: T.Union([T.Literal('maturita-scientifica-sante-simone'), T.Literal('triennio-isia-urbino')]),
organizations: T.Union([T.Literal('axant'), T.Literal('dyne'), T.Literal('ff3300'), T.Literal('forkbomb'), T.Literal('freelance'), T.Literal('la-scuola-open-source'), T.Literal('studio-ardito')]),
projects: T.Union([T.Literal('join'), T.Literal('reaction-diffusion'), T.Literal('scabec'), T.Literal('signroom')]),
work_experiences: T.Union([T.Literal('2019-07_oggi_freelance_docente'), T.Literal('2021-05_oggi_sos'), T.Literal('2021-09_2022-03_sos'), T.Literal('2022-10_oggi_dyne')])
work_experiences: T.Union([T.Literal('axant-ui-designer.svelte'), T.Literal('developer-dyne'), T.Literal('developer-forkbomb'), T.Literal('developer-sos'), T.Literal('ff3300-developer'), T.Literal('freelance-multi'), T.Literal('freelance-teacher'), T.Literal('sos-information-manager'), T.Literal('sos-workshop-organizer'), T.Literal('studio-ardito-designer')])
})

export const database_index = {
"education": [
"maturita-scientifica-sante-simone",
"triennio-isia-urbino"
],
"organizations": [
"axant",
"dyne",
"ff3300",
"forkbomb",
"freelance",
"la-scuola-open-source"
"la-scuola-open-source",
"studio-ardito"
],
"projects": [
"join",
Expand All @@ -20,9 +28,15 @@ export const database_index = {
"signroom"
],
"work_experiences": [
"2019-07_oggi_freelance_docente",
"2021-05_oggi_sos",
"2021-09_2022-03_sos",
"2022-10_oggi_dyne"
"axant-ui-designer.svelte",
"developer-dyne",
"developer-forkbomb",
"developer-sos",
"ff3300-developer",
"freelance-multi",
"freelance-teacher",
"sos-information-manager",
"sos-workshop-organizer",
"studio-ardito-designer"
]
} as const
12 changes: 10 additions & 2 deletions src/routes/(database)/_config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,18 @@ export default database({
date_end: F.Optional(F.DateString('yyyy-MM')),
current: F.Optional(F.Boolean()),
employer: F.Relation('organizations'),
roles: F.Array(F.String())
roles: F.Array(F.String()),
description: F.Optional(F.String())
}),

education: F.Object({}),
education: F.Object({
date_start: F.DateString('yyyy-MM'),
date_end: F.Optional(F.DateString('yyyy-MM')),
current: F.Optional(F.Boolean()),
institution: F.Relation('organizations'),
title: F.String(),
description: F.Optional(F.String())
}),

projects: F.Object({})
});
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('education', {
date_start: '2008-09',
date_end: '2014-07',
institution: "Liceo Scientifico 'S. Simone'",
description: 'Diploma di maturità scientifica, 100/100 e Lode'
});
</script>
10 changes: 10 additions & 0 deletions src/routes/(database)/education/triennio-isia-urbino/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('education', {
date_start: '2016-09',
date_end: '2020-07',
institution: 'ISIA Urbino',
description: 'Laurea triennale in progettazione grafica e comunicazione visiva, 110/110 e Lode'
});
</script>
8 changes: 8 additions & 0 deletions src/routes/(database)/organizations/axant/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('organizations', {
name: 'Axant',
location: 'Milano, Italia'
});
</script>
8 changes: 8 additions & 0 deletions src/routes/(database)/organizations/forkbomb/+page.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('organizations', {
name: 'Forkbomb b.V.',
location: 'Amsterdam, Paesi Bassi'
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('organizations', {
name: 'Studio di Architettura Francesco Ardito',
location: 'Polignano a Mare, Italia'
});
</script>

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2021-07',
date_end: '2021-11',
employer: 'axant',
roles: ['UI/UX designer']
});
</script>
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2021-09',
date_end: '2022-03',
current: false,
organization: 'freelance'
date_start: '2022-10',
current: true,
employer: 'dyne',
roles: ['Sviluppatore web']
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2023-10',
current: true,
employer: 'forkbomb',
roles: ['Sviluppatore web']
});
</script>
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules/index';
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2021-05',
current: true,
organization: 'la-scuola-open-source'
employer: 'la-scuola-open-source',
roles: ['Sviluppatore web']
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2020-10',
date_end: '2021-04',
employer: 'ff3300',
roles: ['Sviluppatore web', 'Creative coder']
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts">
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2016-02',
current: true,
employer: 'freelance',
roles: ['Sviluppatore web', 'Information manager', 'UI/UX designer', 'Progettista grafico']
});
</script>
Original file line number Diff line number Diff line change
@@ -1,9 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules/index';
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2019-07',
current: true,
organization: 'freelance'
employer: 'freelance',
roles: ['Docente in workshop']
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2021-05',
date_end: '2022-02',
employer: 'la-scuola-open-source',
roles: ['Information manager', 'Project manager']
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2021-09',
date_end: '2021-03', // Note: This might be an error in the document, as the end date is before the start date.
employer: 'la-scuola-open-source',
roles: ['Organizzatore di workshop']
});
</script>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<script lang="ts" context="module">
import { db } from '$modules';
export const props = db.create('work_experiences', {
date_start: '2015-09',
date_end: '2016-10',
employer: 'studio-ardito',
roles: ['Progettista grafico specializzato in brand identity']
});
</script>

0 comments on commit a549b4a

Please sign in to comment.