chore: apply prettier

This commit is contained in:
Sonny
2024-05-26 20:08:43 +02:00
committed by Sonny
parent 202f70b010
commit 55cd973b1a
29 changed files with 36 additions and 43 deletions

View File

@@ -1,3 +1,4 @@
import { Visibility } from '#enums/visibility';
import type Collection from '#models/collection';
import { FormEvent } from 'react';
import { useTranslation } from 'react-i18next';
@@ -5,7 +6,6 @@ import Checkbox from '~/components/common/form/checkbox';
import TextBox from '~/components/common/form/textbox';
import BackToDashboard from '~/components/common/navigation/back_to_dashboard';
import FormLayout from '~/components/layouts/form_layout';
import { Visibility } from '../../../app/enums/visibility';
export type FormCollectionData = {
name: string;

View File

@@ -2,7 +2,7 @@ import styled from '@emotion/styled';
import { ReactNode } from 'react';
import Footer from '~/components/footer/footer';
import TransitionLayout from '~/components/layouts/_transition_layout';
import Navbar from '../navbar/navbar';
import Navbar from '~/components/navbar/navbar';
import BaseLayout from './_base_layout';
const ContentLayoutStyle = styled(TransitionLayout)(({ theme }) => ({

View File

@@ -1,3 +1,4 @@
import PATHS from '#constants/paths';
import styled from '@emotion/styled';
import { Link } from '@inertiajs/react';
import { route } from '@izzyjs/route/client';
@@ -13,7 +14,6 @@ import RoundedImage from '~/components/common/rounded_image';
import UnstyledList from '~/components/common/unstyled/unstyled_list';
import ModalSettings from '~/components/settings/modal';
import useUser from '~/hooks/use_user';
import PATHS from '../../../app/constants/paths';
type NavbarListDirection = {
right?: boolean;

View File

@@ -1,6 +1,6 @@
import { Visibility } from '#enums/visibility';
import styled from '@emotion/styled';
import { IoEarthOutline } from 'react-icons/io5';
import { Visibility } from '../../../app/enums/visibility';
const VisibilityStyle = styled.span(({ theme }) => ({
fontWeight: 300,

View File

@@ -29,4 +29,4 @@
},
"look-title": "Take a look",
"website-screenshot-alt": "A screenshot of MyLinks"
}
}

View File

@@ -55,4 +55,4 @@
"footer": {
"made_by": "Made with ❤\uFE0F by"
}
}
}

View File

@@ -2,4 +2,4 @@
"select-collection": "Please select a collection",
"or-create-one": "or create one",
"no-link": "No link for <b>{{name}}</b>"
}
}

View File

@@ -7,4 +7,4 @@
"changes": "We reserve the right to update these Terms and Conditions of Use. We encourage you to regularly check this page to stay informed of any changes.",
"thanks": "Thank you for using MyLinks!"
}
}
}

View File

@@ -3,4 +3,4 @@
"informative-text": "Authentication required to use MyLinks",
"continue-with": "Continue with {{provider}}",
"accept-terms": "By continuing, you accept the"
}
}

View File

@@ -11,13 +11,7 @@
"user": {
"title": "1.2 User Data",
"description": "To create personalized collections and links and associate them with their author, we collect the following information:",
"fields": [
"Google ID",
"Lastname",
"Firstname",
"Email",
"Avatar"
]
"fields": ["Google ID", "Lastname", "Firstname", "Email", "Avatar"]
}
},
"data_use": {
@@ -40,4 +34,4 @@
"title": "5. GDPR Compliance",
"description": "MyLinks complies with the General Data Protection Regulation (GDPR) of the European Union."
}
}
}

View File

@@ -51,4 +51,4 @@
"title": "6. Termination",
"description": "MyLinks reserves the right to terminate or suspend your access to the service, with or without notice, in case of violation of these Terms and Conditions of Use."
}
}
}

View File

@@ -29,4 +29,4 @@
},
"look-title": "Jetez un coup d'oeil",
"website-screenshot-alt": "Une capture d'écran de MyLinks"
}
}

View File

@@ -55,4 +55,4 @@
"footer": {
"made_by": "Fait avec ❤\uFE0F par"
}
}
}

View File

@@ -2,4 +2,4 @@
"select-collection": "Veuillez sélectionner une collection",
"or-create-one": "ou en créer une",
"no-link": "Aucun lien pour <b>{{name}}</b>"
}
}

View File

@@ -7,4 +7,4 @@
"changes": "Nous nous réservons le droit de mettre à jour ces Conditions Générales d'Utilisation. Nous vous encourageons à consulter régulièrement cette page pour rester informé des changements éventuels.",
"thanks": "Merci d'utiliser MyLinks !"
}
}
}

View File

@@ -3,4 +3,4 @@
"informative-text": "Authentification requise pour utiliser MyLinks",
"continue-with": "Continuer avec {{provider}}",
"accept-terms": "En poursuivant, vous acceptez les"
}
}

View File

@@ -40,4 +40,4 @@
"title": "5. Conformité au RGPD",
"description": "MyLinks est conforme au Règlement Général sur la Protection des Données (RGPD) de l'Union européenne."
}
}
}

View File

@@ -51,4 +51,4 @@
"title": "6. Résiliation",
"description": "MyLinks se réserve le droit de résilier ou de suspendre votre accès au service, avec ou sans préavis, en cas de violation de ces Conditions Générales d'Utilisation."
}
}
}

View File

@@ -1,3 +1,4 @@
import { Visibility } from '#enums/visibility';
import { useForm } from '@inertiajs/react';
import { route } from '@izzyjs/route/client';
import { useMemo } from 'react';
@@ -5,7 +6,6 @@ import { useTranslation } from 'react-i18next';
import FormCollection, {
FormCollectionData,
} from '~/components/form/form_collection';
import { Visibility } from '../../../app/enums/visibility';
export default function CreateCollectionPage({
disableHomeLink,

View File

@@ -14,7 +14,8 @@
"isolatedModules": true,
"noEmit": true,
"paths": {
"~/*": ["./*"]
"~/*": ["./*"],
"@/*": ["../*"]
},
"types": ["vite/client", "@emotion/styled", "@emotion/react"]
},