-
Notifications
You must be signed in to change notification settings - Fork 67
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'main' of https://github.com/MeetDOD/StyleShare into iss…
…ue-576
- Loading branch information
Showing
16 changed files
with
353 additions
and
128 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 |
---|---|---|
@@ -0,0 +1,7 @@ | ||
FROM node:alpine | ||
WORKDIR /app | ||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
COPY . . | ||
EXPOSE 5173 | ||
CMD ["npm", "run" , "dev"] |
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,10 @@ | ||
FROM node:alpine | ||
WORKDIR /app | ||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
COPY . . | ||
RUN npm run backend-build | ||
|
||
|
||
EXPOSE 8000 | ||
CMD ["npm", "run" , "dev"] |
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 |
---|---|---|
@@ -0,0 +1,40 @@ | ||
|
||
services: | ||
|
||
admin: | ||
build: | ||
context: ./admin | ||
container_name: styleshare-admin | ||
ports: | ||
- '5173:5173' | ||
|
||
frontend: | ||
build: | ||
context: ./frontend | ||
container_name: styleshare-frontend | ||
ports: | ||
- '3000:3000' | ||
|
||
backend: | ||
build: | ||
context: ./backend | ||
container_name: styleshare-backend | ||
depends_on: | ||
- db | ||
environment: | ||
- DATABASE_URL=${DATABASE_URL} | ||
|
||
ports: | ||
- '8000:8000' | ||
|
||
db: | ||
image: mongo:latest | ||
container_name: styleshare-db | ||
restart: always | ||
ports: | ||
- '27017:27017' | ||
volumes: | ||
- mongodb_data:/data/db | ||
|
||
volumes: | ||
mongodb_data: |
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,7 @@ | ||
FROM node:alpine | ||
WORKDIR /app | ||
COPY package.json package-lock.json ./ | ||
RUN npm install | ||
COPY . . | ||
EXPOSE 3000 | ||
CMD ["npm", "run" , "dev"] |
Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.
Oops, something went wrong.
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,59 @@ | ||
import Skeleton from 'react-loading-skeleton'; | ||
import 'react-loading-skeleton/dist/skeleton.css'; | ||
|
||
const LeaderboardSkeleton = () => { | ||
const skeletonArray = Array(5).fill(0); // Adjust the number of skeleton rows as needed | ||
|
||
return ( | ||
<div className="overflow-x-auto"> | ||
<table className="min-w-full divide-y divide-gray-200"> | ||
<thead className="text-center text-sm font-medium text-[#000435] bg-white dark:text-white dark:bg-[#5f67de] border-b-2 border-sky-600"> | ||
<tr> | ||
<th scope="col" className="px-2 py-3 sm:px-6 text-[#5f67de] bg-white dark:text-white dark:bg-[#000435] uppercase tracking-wider"> | ||
<Skeleton width={60} height={20} className=" rounded dark:bg-white" /> | ||
</th> | ||
<th scope="col" className="px-2 py-3 sm:px-6 text-[#5f67de] bg-white dark:text-white dark:bg-[#000435] uppercase tracking-wider"> | ||
<Skeleton width={80} height={20} className=" rounded dark:bg-white" /> | ||
</th> | ||
<th scope="col" className="px-2 py-3 sm:px-6 mx-12 text-[#5f67de] bg-white dark:text-white dark:bg-[#000435] uppercase tracking-wider"> | ||
<Skeleton width={120} height={20} className=" rounded dark:bg-white" /> | ||
</th> | ||
<th scope="col" className="px-2 py-3 sm:px-6 text-[#5f67de] bg-white dark:text-white dark:bg-[#000435] uppercase tracking-wider"> | ||
<Skeleton width={60} height={20} className=" rounded dark:bg-white" /> | ||
</th> | ||
<th scope="col" className="px-2 py-3 sm:px-6 text-[#5f67de] bg-white dark:text-white dark:bg-[#000435] uppercase tracking-wider"> | ||
<Skeleton width={60} height={20} className=" rounded dark:bg-white" /> | ||
</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
{skeletonArray.map((_, index) => ( | ||
<tr key={index} className="text-center text-[#000435] dark:text-gray-50 border-b-2 border-sky-900"> | ||
<td className="px-2 py-4 sm:px-6"> | ||
<div className="flex flex-col items-center"> | ||
<Skeleton width={40} height={40} circle={true} className=" rounded-full dark:bg-white" /> | ||
</div> | ||
</td> | ||
<td className="px-2 py-4 sm:px-6"> | ||
<div className="flex flex-col items-center"> | ||
<Skeleton width={40} height={40} circle={true} className=" rounded-full dark:bg-white" /> | ||
</div> | ||
</td> | ||
<td className="px-2 py-4 sm:px-6"> | ||
<Skeleton width={120} height={20} className=" rounded dark:bg-white" /> | ||
</td> | ||
<td className="px-2 py-4 sm:px-6"> | ||
<Skeleton width={60} height={20} className=" rounded dark:bg-white" /> | ||
</td> | ||
<td className="px-2 py-4 sm:px-6"> | ||
<Skeleton width={60} height={20} className=" rounded dark:bg-white" /> | ||
</td> | ||
</tr> | ||
))} | ||
</tbody> | ||
</table> | ||
</div> | ||
); | ||
}; | ||
|
||
export default LeaderboardSkeleton; |
Oops, something went wrong.