Skip to content

Commit 124c299

Browse files
authored
Merge pull request #3 from mdgspace/kitu
Never Ending Bug Fixes
2 parents 96d6f6f + 5fb5aa2 commit 124c299

File tree

33 files changed

+631
-499
lines changed

33 files changed

+631
-499
lines changed

frontend/public/index.html

-1
Original file line numberDiff line numberDiff line change
@@ -29,7 +29,6 @@
2929
href="https://fonts.googleapis.com/css?family=Poppins"
3030
rel="stylesheet"
3131
/>
32-
3332

3433
<title>Tracer</title>
3534
</head>

frontend/public/site.webmanifest

+19-1
Original file line numberDiff line numberDiff line change
@@ -1 +1,19 @@
1-
{"name":"","short_name":"","icons":[{"src":"/android-chrome-192x192.png","sizes":"192x192","type":"image/png"},{"src":"/android-chrome-512x512.png","sizes":"512x512","type":"image/png"}],"theme_color":"#ffffff","background_color":"#ffffff","display":"standalone"}
1+
{
2+
"name": "",
3+
"short_name": "",
4+
"icons": [
5+
{
6+
"src": "/android-chrome-192x192.png",
7+
"sizes": "192x192",
8+
"type": "image/png"
9+
},
10+
{
11+
"src": "/android-chrome-512x512.png",
12+
"sizes": "512x512",
13+
"type": "image/png"
14+
}
15+
],
16+
"theme_color": "#ffffff",
17+
"background_color": "#ffffff",
18+
"display": "standalone"
19+
}

frontend/src/app/api/file.ts

-16
Original file line numberDiff line numberDiff line change
@@ -11,13 +11,6 @@ export interface IconNameRes {
1111
message: string;
1212
}
1313

14-
15-
16-
17-
18-
19-
20-
2114
export const uploadIcon = async (
2215
authorizationToken: string,
2316
orgName: string,
@@ -35,10 +28,6 @@ export const uploadIcon = async (
3528
return respnse;
3629
};
3730

38-
39-
40-
41-
4231
export const getIcon = async (authorizationToken: string, orgName: string) => {
4332
const url = BACKEND_URL + '/api/protected/file/getIcon/' + orgName;
4433
const response = await axios.get(
@@ -55,8 +44,6 @@ export const getIcon = async (authorizationToken: string, orgName: string) => {
5544
return response;
5645
};
5746

58-
59-
6047
export const deleteFile = async (
6148
authorizationToken: string,
6249
fileName: string
@@ -71,9 +58,6 @@ export const deleteFile = async (
7158
return respnse;
7259
};
7360

74-
75-
76-
7761
export const getIconName = async (
7862
authorizationToken: string,
7963
orgName: string

frontend/src/app/api/githubData.ts

-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,6 @@ export interface ProjectStats {
2525
contributors: Contributors;
2626
}
2727

28-
2928
export interface OrgProjectGithubData {
3029
projects: ProjectsGithubData;
3130
}
+3
Loading

frontend/src/app/components/search/index.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ import './index.scss';
66

77
const SearchBar = () => {
88
const dispatch = useDispatch();
9-
const [search,setSearch] = useState('')
9+
const [search, setSearch] = useState('');
1010
const handleInputChange = (e: React.ChangeEvent<HTMLInputElement>) => {
1111
setSearch(e.target.value);
1212
};

frontend/src/app/components/timeRangeSwitch/index.tsx

+1-3
Original file line numberDiff line numberDiff line change
@@ -13,9 +13,7 @@ interface Props {
1313
const TimeRangeSwitch: React.FC<Props> = ({ weekly, setWeekly }) => {
1414
// const dispatch = useDispatch();
1515
// const isWeekly = useSelector((state: timeRangeModel) => state.isWeekly.value);
16-
useEffect(()=>{
17-
18-
},[weekly, setWeekly])
16+
useEffect(() => {}, [weekly, setWeekly]);
1917
return (
2018
<div className='timerange-cont'>
2119
<button

frontend/src/app/context/user/userState.tsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import { FC, ReactNode, useState } from 'react';
22
import UserContext from './userContext';
3-
import { UserOrgs } from 'app/api/user';
3+
import { UserOrgs } from 'app/api/user';
44

55
interface Props {
66
children: ReactNode;

frontend/src/app/index.scss

+2-3
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,6 @@ a:hover {
3838
border: 1px solid white;
3939
}
4040

41-
42-
.pointer{
41+
.pointer {
4342
cursor: pointer;
44-
}
43+
}

frontend/src/app/routes/BasicRoutes.tsx

-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
21
import { Routes, Route } from 'react-router-dom';
32
import ProjectPage from 'features/project';
43
import AddProject from 'features/AddProject';

frontend/src/envConstants.ts

+3-4
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
export const CLIENT_ID =process.env.REACT_APP_CLIENT_ID;
2-
export const BACKEND_URL = process.env.REACT_APP_BACKEND_URL;
3-
export const AVATAR_API = process.env.REACT_APP_AVATAR_API;
4-
1+
export const CLIENT_ID = process.env.CLIENT_ID;
2+
export const BACKEND_URL = process.env.BACKEND_URL;
3+
export const AVATAR_API = process.env.AVATAR_API;
+31-25
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,25 @@
11
.add-project-container {
2-
width: 70vw;
3-
height: 76.5vh;
4-
margin: 60px auto;
2+
width: 80% !important;
3+
margin: 60px auto !important;
54
background: linear-gradient(110.51deg, #141432 0.9%, #2a2a4b 101.51%);
65
border-radius: 20px;
76
display: flex;
87
align-items: center;
98
justify-content: center;
109
position: relative;
10+
max-height: 60vh;
11+
}
12+
13+
.add-project-form {
14+
width: 100%;
15+
padding: 2rem 4rem;
16+
height: 100%;
17+
overflow-y: scroll;
1118
}
1219

1320
.add-project-form input {
1421
box-sizing: border-box;
15-
22+
width: 100%;
1623
/* Auto layout */
1724
border: 0.8px solid #402aa4;
1825
border-radius: 14px;
@@ -29,7 +36,10 @@
2936
line-height: 30px;
3037
/* identical to box height */
3138

32-
color: rgba(173, 173, 255, 0.75);
39+
color: rgba(173, 173, 255, 0.957);
40+
}
41+
.add-project-form input::placeholder {
42+
color: rgba(173, 173, 255, 0.957);
3343
}
3444

3545
.input-title {
@@ -43,33 +53,29 @@
4353
color: #8181ff;
4454
}
4555

46-
.add-project-btn {
56+
.add-project-btnn {
4757
position: absolute;
4858
right: 66px;
49-
bottom: 44px;
50-
font-family: 'Poppins';
51-
font-style: normal;
52-
font-weight: 400;
53-
font-size: 15px;
54-
line-height: 22px;
55-
/* identical to box height */
56-
57-
display: flex;
58-
align-items: center;
59-
display: flex;
60-
flex-direction: row;
61-
align-items: flex-start;
62-
padding: 10px 16px;
63-
gap: 2px;
64-
flex: none;
65-
order: 1;
66-
flex-grow: 0;
59+
bottom: 14px;
60+
outline: none;
61+
border: none;
62+
padding: 1rem;
63+
border-radius: 2rem;
64+
font-size: 1rem;
65+
padding: 1rem 2rem;
6766
background: #402aa4;
68-
border-radius: 14px;
6967
color: #ffffff;
7068
}
7169

7270
.add-project-btn img {
7371
padding-top: 3px;
7472
padding-right: 4px;
7573
}
74+
75+
.form-error {
76+
color: red;
77+
font-size: 14px; /* Adjust as necessary */
78+
word-wrap: break-word; /* Allows breaking long words */
79+
white-space: normal; /* Ensures normal word wrapping */
80+
margin-top: 5px; /* Adds some spacing above the error message */
81+
}

0 commit comments

Comments
 (0)