Add some data

This commit is contained in:
Florian RICHER 2023-04-02 17:47:06 +02:00
parent 8d641bf598
commit 1825a0ffb7
3 changed files with 218 additions and 0 deletions

26
src/data/Organization.ts Normal file
View file

@ -0,0 +1,26 @@
interface Organization {
name: string,
siren: string,
site_web: string,
}
export default Organization
export const Limouzik: Organization = {
name: 'Limouzik',
siren: '824148738',
site_web: 'https://limouzik.com/'
}
export const Unova: Organization = {
name: 'Unova',
siren: '824505689',
site_web: 'https://www.unova.fr/'
}
export const Autoentreprise: Organization = {
name: 'Ma micro-entreprise',
siren: '852444964',
site_web: 'https://florianricher.fr/'
}

37
src/data/Project.ts Normal file
View file

@ -0,0 +1,37 @@
import Organization, {Limouzik} from "./Organization";
import Tool, {Symfony, React} from "./Tool";
interface Project {
organization: Organization,
name: string,
description: string,
tools: Array<Tool>
}
export const SiteWebLimouzik: Project = {
organization: Limouzik,
name: 'Site web Limouzik',
description: 'Site web Limouzik',
tools: [Symfony]
}
export const LimouzikV2: Project = {
organization: Limouzik,
name: 'Application V3',
description: 'Application V3',
tools: [React]
}
export const LimouzikV3: Project = {
organization: Limouzik,
name: 'Application V3',
description: 'Application V3',
tools: [React]
}
export const LimouzikV4: Project = {
organization: Limouzik,
name: 'Application V4',
description: 'Application V4',
tools: [React]
}

155
src/data/Tool.ts Normal file
View file

@ -0,0 +1,155 @@
enum ToolType {
LANGUAGE, FRAMEWORK, LIB_OR_PACKAGE, OTHER
}
enum ToolPlatform {
MOBILE, WEB_FRONT, WEB_BACK, SYSTEM, DESKTOP
}
interface Tool {
type: ToolType,
name: string,
version: string | null,
description: string | null,
icon: string | null,
url: string,
tools: Array<Tool>,
platforms: Array<ToolPlatform>
}
export default Tool
// RUBY
export const Ruby: Tool = {
type: ToolType.LANGUAGE,
name: 'Ruby',
version: '2.7 - 3.2',
icon: null,
description: null,
url: 'https://www.ruby-lang.org/',
tools: [],
platforms: [ToolPlatform.MOBILE, ToolPlatform.WEB_BACK]
}
export const Rails: Tool = {
type: ToolType.FRAMEWORK,
name: 'Ruby on rails',
version: '5.1 - 7.0',
icon: null,
description: null,
url: 'https://rubyonrails.org/',
tools: [Ruby],
platforms: [ToolPlatform.WEB_BACK]
}
// PHP
export const Php: Tool = {
type: ToolType.LANGUAGE,
name: 'PHP',
icon: null,
version: '5 et 7',
description: null,
url: 'https://www.php.net/',
tools: [],
platforms: [ToolPlatform.WEB_BACK]
}
export const Symfony: Tool = {
type: ToolType.FRAMEWORK,
name: 'Symfony',
version: '4.0 - 5.0',
icon: null,
description: null,
url: 'https://symfony.com/',
tools: [Php],
platforms: [ToolPlatform.WEB_BACK]
}
// JS
export const Javascript: Tool = {
type: ToolType.LANGUAGE,
name: 'Javascript',
version: null,
icon: null,
description: null,
url: 'https://www.javascript.com/',
tools: [],
platforms: [ToolPlatform.WEB_BACK, ToolPlatform.WEB_FRONT, ToolPlatform.MOBILE, ToolPlatform.DESKTOP]
}
export const Typescript: Tool = {
type: ToolType.LANGUAGE,
name: 'Typescript',
version: null,
icon: null,
description: null,
url: 'https://www.typescriptlang.org/',
tools: [],
platforms: Javascript.platforms
}
export const React: Tool = {
type: ToolType.FRAMEWORK,
name: 'React',
version: '14, 15, 16, 17, 18',
icon: null,
description: null,
url: 'https://react.dev/',
tools: [Javascript, Typescript],
platforms: [ToolPlatform.WEB_FRONT]
}
export const Hotwire: Tool = {
type: ToolType.FRAMEWORK,
name: 'Hotwire',
version: '2 - 3',
icon: null,
description: 'Turbo + Stimulus',
url: 'https://stimulus.hotwired.dev/',
tools: [Javascript, Typescript, Rails],
platforms: [ToolPlatform.WEB_FRONT]
}
// CSS
// FLUTTER
export const Dart: Tool = {
type: ToolType.LANGUAGE,
name: 'Dart',
version: '2 - 3',
icon: null,
description: null,
url: '',
tools: [],
platforms: [ToolPlatform.MOBILE, ToolPlatform.SYSTEM, ToolPlatform.WEB_FRONT, ToolPlatform.WEB_BACK, ToolPlatform.DESKTOP]
}
export const Flutter : Tool = {
type: ToolType.FRAMEWORK,
name: 'Flutter',
version: '2 - 3',
icon: null,
description: null,
url: '',
tools: [Dart],
platforms: [ToolPlatform.MOBILE, ToolPlatform.WEB_FRONT, ToolPlatform.WEB_BACK, ToolPlatform.DESKTOP]
}
// RUST
export const Rust : Tool = {
type: ToolType.LANGUAGE,
name: 'Rust',
version: 'Édition 2018, 2021',
icon: null,
description: null,
url: 'https://www.rust-lang.org/',
tools: [],
platforms: [ToolPlatform.SYSTEM, ToolPlatform.WEB_FRONT, ToolPlatform.WEB_BACK]
}
// OTHER