Skip to content

Commit 6ba3ecb

Browse files
committed
Refactor - gitignore updated
1 parent 46e5dbf commit 6ba3ecb

File tree

8 files changed

+36
-42
lines changed

8 files changed

+36
-42
lines changed

.gitignore

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,3 @@
11

22
server/.env
3-
*.js
3+
client/.vscode/launch.json

client/.gitignore

+1-24
Original file line numberDiff line numberDiff line change
@@ -1,25 +1,2 @@
1-
# Logs
2-
logs
3-
*.log
4-
npm-debug.log*
5-
yarn-debug.log*
6-
yarn-error.log*
7-
pnpm-debug.log*
8-
lerna-debug.log*
9-
101
node_modules
11-
dist
12-
dist-ssr
13-
*.local
14-
15-
# Editor directories and files
16-
.vscode/*
17-
!.vscode/extensions.json
18-
.idea
19-
.DS_Store
20-
*.suo
21-
*.ntvs*
22-
*.njsproj
23-
*.sln
24-
*.sw?
25-
coverage/
2+
dist

client/.vscode/settings.json

+4
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"alias-resolver.type": "custom",
3+
"alias-resolver.accessPath": ""
4+
}

client/postcss.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
export default {
2+
plugins: {
3+
tailwindcss: {},
4+
autoprefixer: {},
5+
},
6+
};

client/src/components/navbar/Authenticated.tsx

+3-10
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
import { Dropdown } from "flowbite-react";
22
import { useNavigate } from "react-router-dom";
33
import { useAuthStore } from "../../store/store";
4-
import { Avatar } from "flowbite-react";
54

65
export const Authenticated = () => {
76
const { email, firstName, lastName } = useAuthStore((state) => state.session);
@@ -20,21 +19,15 @@ export const Authenticated = () => {
2019
arrowIcon={false}
2120
inline
2221
label={
23-
<Avatar
24-
alt="User settings"
25-
img="https://flowbite.com/docs/images/people/profile-picture-5.jpg"
26-
rounded
27-
/>
22+
<div className="relative w-10 h-10 overflow-hidden bg-gray-100 rounded-full dark:bg-gray-600">
23+
<svg className="absolute w-12 h-12 text-gray-400 -left-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd"></path></svg>
24+
</div>
2825
}
2926
>
3027
<Dropdown.Header>
3128
<span className="block text-sm">{firstName + " " + lastName}</span>
3229
<span className="block truncate text-sm font-medium">{email}</span>
3330
</Dropdown.Header>
34-
{/* <Dropdown.Item>Movies</Dropdown.Item> */}
35-
{/* <Dropdown.Item>Modify Movies</Dropdown.Item>
36-
<Dropdown.Item>Delete Account</Dropdown.Item> */}
37-
<Dropdown.Divider />
3831
<Dropdown.Item onClick={HandleLogout}>Logout</Dropdown.Item>
3932
</Dropdown>
4033
);

client/src/components/navbar/UnAuthenticated.tsx

+3-7
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,17 @@
11
import { Dropdown } from "flowbite-react";
22
import { useNavigate } from "react-router-dom";
3-
import { Avatar } from "flowbite-react";
43

54
export const UnAuthenticated = () => {
65
const navigate = useNavigate();
7-
/** CHECK IF LABEL CAN BE REPLACED */
86
return (
97
<Dropdown
108
data-testid="unauthenticated"
119
arrowIcon={false}
1210
inline
1311
label={
14-
<Avatar
15-
alt="User settings"
16-
img="https://flowbite.com/docs/images/people/profile-picture-5.jpg"
17-
rounded
18-
/>
12+
<div className="relative w-10 h-10 overflow-hidden bg-gray-100 rounded-full dark:bg-gray-600">
13+
<svg className="absolute w-12 h-12 text-gray-400 -left-1" fill="currentColor" viewBox="0 0 20 20" xmlns="http://www.w3.org/2000/svg"><path fill-rule="evenodd" d="M10 9a3 3 0 100-6 3 3 0 000 6zm-7 9a7 7 0 1114 0H3z" clip-rule="evenodd"></path></svg>
14+
</div>
1915
}
2016
>
2117
<Dropdown.Item onClick={() => navigate("/login")}>Login</Dropdown.Item>

client/tailwind.config.js

+12
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
/* eslint-disable no-undef */
2+
/** @type {import('tailwindcss').Config} */
3+
export default {
4+
content: [
5+
"./src/**/*.{js,jsx,ts,tsx}",
6+
"node_modules/flowbite-react/lib/esm/**/*.js",
7+
],
8+
theme: {
9+
extend: {},
10+
},
11+
plugins: [require("flowbite/plugin")],
12+
};

server/jest.config.js

+6
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,6 @@
1+
/* eslint-disable no-undef */
2+
/** @type {import('ts-jest').JestConfigWithTsJest} */
3+
module.exports = {
4+
preset: "ts-jest",
5+
testEnvironment: "node",
6+
};

0 commit comments

Comments
 (0)