From a1bf6d883a703af68c282b70c5e261ea806a2f6d Mon Sep 17 00:00:00 2001 From: Florian RICHER Date: Sun, 2 Apr 2023 20:24:29 +0200 Subject: [PATCH] Fix errors --- src/data/Project.ts | 12 ++++++------ src/data/Tool.ts | 33 +++++++++++++++++---------------- 2 files changed, 23 insertions(+), 22 deletions(-) diff --git a/src/data/Project.ts b/src/data/Project.ts index e1dc42b..49936c8 100644 --- a/src/data/Project.ts +++ b/src/data/Project.ts @@ -21,11 +21,6 @@ interface Project { tools: Tool[] } -export const PROJECTS: Project[] = [ - SiteWebLimouzik, LimouzikV2, LimouzikV3, LimouzikV4, - Itamelia, NWE, Doorsav, PerAnkh, Ubermed, SJLM, Scopema, StepReadyGo, Machoke -] - // LIMOUZIK export const SiteWebLimouzik: Project = { @@ -145,4 +140,9 @@ export const Machoke: Project = { start_date: new Date('2017-05-01'), end_date: new Date('2019-07-31'), tools: [Rust, Rails, Tailwind, Hotwire] -} \ No newline at end of file +} + +export const PROJECTS: Project[] = [ + SiteWebLimouzik, LimouzikV2, LimouzikV3, LimouzikV4, + Itamelia, NWE, Doorsav, PerAnkh, Ubermed, SJLM, Scopema, StepReadyGo, Machoke +] \ No newline at end of file diff --git a/src/data/Tool.ts b/src/data/Tool.ts index e72b75b..30b19c7 100644 --- a/src/data/Tool.ts +++ b/src/data/Tool.ts @@ -58,22 +58,6 @@ export default Tool // RUBY -export const TOOLS: Tool[] = [ - Ruby, Rails, Php, Symfony, Sylius, Javascript, Typescript, React, Hotwire, Dart, Flutter, Rust, - CSS, SASS, Tailwind, Bootstrap, - Webpack, RequireJS, Vite, - Java, OpenGL, LWJGL, CSharp, Unity3D, GodotEngine -] - -/** - * @param types - * @example - * filterToolByTypes(ToolType.FRAMEWORK | ToolType.LANGUAGE) - */ -export function filterToolByTypes(types: number) { - TOOLS.filter((t) => t.type.valueOf() & types > 0) -} - export const Ruby: Tool = { type: ToolType.LANGUAGE, name: 'Ruby', @@ -407,4 +391,21 @@ export const Electron: Tool = { url: 'https://www.electronjs.org/', depend_tools: [], developed_platforms: [ToolPlatform.DESKTOP] +} + + +export const TOOLS: Tool[] = [ + Ruby, Rails, Php, Symfony, Sylius, Javascript, Typescript, React, Hotwire, Dart, Flutter, Rust, + CSS, SASS, Tailwind, Bootstrap, + Webpack, RequireJS, Vite, + Java, OpenGL, LWJGL, CSharp, Unity3D, GodotEngine +] + +/** + * @param types + * @example + * filterToolByTypes(ToolType.FRAMEWORK | ToolType.LANGUAGE) + */ +export function filterToolByTypes(types: number) { + TOOLS.filter((t) => (t.type.valueOf() & types) > 0) } \ No newline at end of file