generated from WildCodeSchool/create-js-monorepo
-
Notifications
You must be signed in to change notification settings - Fork 4
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #139 from WildCodeSchool/responsiv_dash
Responsiv dash
- Loading branch information
Showing
14 changed files
with
191 additions
and
89 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,32 @@ | ||
#syntax=docker/dockerfile:1.4 | ||
FROM node:20-alpine | ||
|
||
# Check https://github.com/nodejs/docker-node/tree/b4117f9333da4138b03a546ec926ef50a31506c3#nodealpine to understand why libc6-compat might be needed. | ||
# hadolint ignore=DL3018 | ||
RUN apk add --no-cache libc6-compat | ||
|
||
WORKDIR /usr/src/app | ||
COPY --link ./package.json ./package-lock.json ./ | ||
COPY --link ./backend/package.json ./backend/package-lock.json ./backend/ | ||
COPY --link ./frontend/package.json ./frontend/package-lock.json ./frontend/ | ||
|
||
RUN npm install | ||
RUN corepack enable && \ | ||
corepack prepare --activate pnpm@latest && \ | ||
pnpm config -g set store-dir /.pnpm-store | ||
|
||
COPY --link ./backend/package.json ./backend/ | ||
COPY --link ./frontend/package.json ./frontend/ | ||
|
||
RUN cd frontend && \ | ||
pnpm fetch && \ | ||
pnpm install | ||
RUN cd backend && \ | ||
pnpm fetch && \ | ||
pnpm install | ||
|
||
COPY ./frontend ./frontend | ||
|
||
RUN cd frontend && \ | ||
pnpm run build | ||
|
||
COPY ./backend ./backend | ||
COPY docker-entry.sh . | ||
|
||
COPY ./ . | ||
CMD ["sh","./docker-entry.sh"] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -419,23 +419,16 @@ CREATE TABLE `user` ( | |
-- | ||
|
||
LOCK TABLES `user` WRITE; | ||
/*!40000 ALTER TABLE `user` DISABLE KEYS */ | ||
; | ||
|
||
INSERT INTO | ||
`user` | ||
VALUES ( | ||
1, 'johny', 'demo', '06 87 27 48 94', '[email protected]', '45 rue des cocotiers, Perpignan, 66100', '$2b$05$qmUzhYqnfbiQyfY0NZXaueKkDbInhO4pzZGuLnTT5JAUq5BJgdbeK', 0, 'loremipsul-mdolor' | ||
), | ||
( | ||
28, 'erftgyhuj', 'rfghj', 'rftgyhuj', '[email protected]', 'dcfvgbh', '$2b$05$8K8lbcHYqN5jZqO8mFzLW.YC8n4yVcIjk8fyz18Ud/vgkMVmfhR/i', 0, '' | ||
), | ||
( | ||
29, 'cass', 'cassiergegr', '098320498', '[email protected]', 'ç!\"\'(è rye àéç\"!àçé', '$2b$05$AnyuQBLohvbHr79KdBOj9OWmJfpu8ulSY2G2LQgqz/whDlSy1qKbq', 0, 'uploads/05d0d336a101ed3b078b4153b7378bf8.avif' | ||
/*!40000 ALTER TABLE `user` DISABLE KEYS */; | ||
INSERT INTO `user` VALUES (1,'johny','demo','06 87 27 48 94','[email protected]','45 rue des cocotiers, Perpignan, 66100','$2b$05$qmUzhYqnfbiQyfY0NZXaueKkDbInhO4pzZGuLnTT5JAUq5BJgdbeK',0,'loremipsul-mdolor' | ||
),( | ||
28,'erftgyhuj','rfghj','rftgyhuj','[email protected]','dcfvgbh','$2b$05$8K8lbcHYqN5jZqO8mFzLW.YC8n4yVcIjk8fyz18Ud/vgkMVmfhR/i',0,'' | ||
),( | ||
29,'cass','cassiergegr','098320498','[email protected]','ç!\"\'(è rye àéç\"!àçé','$2b$05$AnyuQBLohvbHr79KdBOj9OWmJfpu8ulSY2G2LQgqz/whDlSy1qKbq',0,'uploads/05d0d336a101ed3b078b4153b7378bf8.avif' | ||
),( | ||
44, "John", "Doe", "0606060606", "[email protected]", "06 Ure", "$2b$05$P3w2mRO1X1DPbrVsQocyfupP20xBlgEZGrNfimpoAFCzf4f.mTqTS", 1, 'uploads/05d0d336a101ed3b078b4153b7378bf8.avif' | ||
); | ||
/*!40000 ALTER TABLE `user` ENABLE KEYS */ | ||
; | ||
|
||
/*!40000 ALTER TABLE `user` ENABLE KEYS */; | ||
UNLOCK TABLES; | ||
|
||
-- | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,3 @@ | ||
#!/usr/bin/env sh | ||
|
||
sleep 5 | ||
npm install | ||
npm run build | ||
npm run start | ||
cd /usr/src/app/backend && node migrate.js && node index.js |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,25 +1,50 @@ | ||
.offerDash-item { | ||
display: flex; | ||
justify-content: space-between; | ||
box-shadow: 5px 5px 15px 8px rgba(217, 217, 217, 0.53); | ||
padding: 10px 35px; | ||
margin-bottom: 20px; | ||
} | ||
.array-box, | ||
.bigArray-box { | ||
margin-inline: 5px; | ||
margin: 25px 0; | ||
|
||
.offerDash-item { | ||
display: flex; | ||
background-color: var(--background-input); | ||
margin-block: 10px; | ||
padding: 5px 10px; | ||
border-radius: 10px; | ||
align-items: center; | ||
} | ||
.array-box { | ||
width: 12%; | ||
|
||
.offerDash-item > p { | ||
font-size: 14px; | ||
} | ||
.bigArray-box { | ||
width: 32%; | ||
|
||
.offerDash-item > p:nth-child(2) { | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
max-width: 70px; | ||
} | ||
|
||
.icon-dash { | ||
display: flex; | ||
justify-content: space-between; | ||
margin: 25px 0; | ||
width: 100px; | ||
color: var(--second-color); | ||
flex-direction: column; | ||
} | ||
|
||
@media screen and (min-width: 1200px) { | ||
.offerDash-item > p { | ||
font-size: 20px; | ||
margin-block: 10px; | ||
} | ||
|
||
.offerDash-item > p:nth-child(2) { | ||
white-space: initial; | ||
max-width: 100px; | ||
} | ||
|
||
.icon-dash { | ||
flex-direction: row; | ||
} | ||
|
||
.icon-dash > button > i { | ||
font-size: 20px; | ||
margin-right: 20px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,56 @@ | ||
.offerDash-item { | ||
display: flex; | ||
justify-content: space-between; | ||
} | ||
|
||
.offerDash-item { | ||
display: flex; | ||
background-color: var(--background-input); | ||
margin-block: 10px; | ||
padding: 5px 10px; | ||
border-radius: 10px; | ||
/* justify-content: center; */ | ||
align-items: center; | ||
} | ||
|
||
.offerDash-item > p { | ||
font-size: 14px; | ||
} | ||
|
||
.offerDash-item > p:nth-child(2) { | ||
white-space: nowrap; | ||
overflow: hidden; | ||
text-overflow: ellipsis; | ||
max-width: 70px; | ||
} | ||
|
||
.icon-dash { | ||
display: flex; | ||
flex-direction: column; | ||
} | ||
|
||
@media screen and (min-width: 1200px) { | ||
.offerDash-item > p { | ||
font-size: 20px; | ||
margin-block: 10px; | ||
} | ||
|
||
.offerDash-item > p:nth-child(1) { | ||
white-space: initial; | ||
min-width: 25px; | ||
} | ||
|
||
.offerDash-item > p:nth-child(2) { | ||
white-space: initial; | ||
max-width: 100px; | ||
} | ||
|
||
.icon-dash { | ||
flex-direction: row; | ||
} | ||
|
||
.icon-dash > button > i { | ||
font-size: 20px; | ||
margin-right: 20px; | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.