Compare commits
3
Commits
fd6735ba93
...
81271544c6
| Author | SHA1 | Date | |
|---|---|---|---|
|
|
81271544c6 | ||
|
|
f932ecb060 | ||
|
|
2a5954e8e9 |
No files matched your search
@@ -67,7 +67,7 @@ Ou avec les commandes Docker :
|
|||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker build -t notes .
|
docker build -t notes .
|
||||||
docker run -d --name notes -p 8080:80 notes
|
docker run -d --rm --name notes -p 8080:80 notes
|
||||||
```
|
```
|
||||||
|
|
||||||
L'app sera accessible sur http://localhost:8080.
|
L'app sera accessible sur http://localhost:8080.
|
||||||
|
|||||||
@@ -18,7 +18,7 @@ L'image est servie par nginx et exposée sur le port 80.
|
|||||||
### Docker
|
### Docker
|
||||||
|
|
||||||
```bash
|
```bash
|
||||||
docker run -d --name notes -p 8080:80 devcodetools/notes:latest
|
docker run -d --rm --name notes -p 8080:80 devcodetools/notes:latest
|
||||||
```
|
```
|
||||||
|
|
||||||
Accédez ensuite à l'application sur http://localhost:8080.
|
Accédez ensuite à l'application sur http://localhost:8080.
|
||||||
|
|||||||
+1
-1
@@ -39,7 +39,7 @@ function App() {
|
|||||||
}
|
}
|
||||||
|
|
||||||
return (
|
return (
|
||||||
<main className="mx-auto flex w-full max-w-2xl min-h-dvh flex-col pb-[calc(env(safe-area-inset-bottom)+7rem)]">
|
<main className="mx-auto flex w-full max-w-3xl min-h-dvh flex-col pb-[calc(env(safe-area-inset-bottom)+7rem)]">
|
||||||
<header className="sticky top-0 z-10 border-b border-gray-200 bg-white/95 px-4 pb-3 pt-[calc(env(safe-area-inset-top)+0.75rem)] backdrop-blur">
|
<header className="sticky top-0 z-10 border-b border-gray-200 bg-white/95 px-4 pb-3 pt-[calc(env(safe-area-inset-top)+0.75rem)] backdrop-blur">
|
||||||
<div className="flex h-11 items-center gap-1">
|
<div className="flex h-11 items-center gap-1">
|
||||||
{creating || selectedNote ? (
|
{creating || selectedNote ? (
|
||||||
|
|||||||
@@ -6,7 +6,7 @@ function ErrorPage({
|
|||||||
message = "Désolé, la page que vous cherchez n'existe pas.",
|
message = "Désolé, la page que vous cherchez n'existe pas.",
|
||||||
}: ErrorPageProps) {
|
}: ErrorPageProps) {
|
||||||
return (
|
return (
|
||||||
<main className="mx-auto flex w-full max-w-2xl min-h-dvh flex-col items-center justify-center gap-6 px-4 text-center">
|
<main className="mx-auto flex w-full max-w-3xl min-h-dvh flex-col items-center justify-center gap-6 px-4 text-center">
|
||||||
<p className="text-6xl font-bold text-blue-700">{code}</p>
|
<p className="text-6xl font-bold text-blue-700">{code}</p>
|
||||||
<div>
|
<div>
|
||||||
<h1 className="text-2xl font-semibold">{title}</h1>
|
<h1 className="text-2xl font-semibold">{title}</h1>
|
||||||
|
|||||||
@@ -13,7 +13,7 @@ describe('RgpdInfo', () => {
|
|||||||
render(<RgpdInfo open onClose={vi.fn()} />)
|
render(<RgpdInfo open onClose={vi.fn()} />)
|
||||||
|
|
||||||
expect(screen.getByRole('dialog', { name: 'Protection des données (RGPD)' })).toBeInTheDocument()
|
expect(screen.getByRole('dialog', { name: 'Protection des données (RGPD)' })).toBeInTheDocument()
|
||||||
expect(screen.getByText('localStorage', { exact: false })).toBeInTheDocument()
|
expect(screen.getByText(/stockage local/i)).toBeInTheDocument()
|
||||||
expect(
|
expect(
|
||||||
screen.getByText(/ne sont jamais partagées avec des tiers/i),
|
screen.getByText(/ne sont jamais partagées avec des tiers/i),
|
||||||
).toBeInTheDocument()
|
).toBeInTheDocument()
|
||||||
|
|||||||
Reference in new issue
Block a user