Skip to content

Commit 3fcd9f9

Browse files
committed
Using default message
1 parent 2f6d0e7 commit 3fcd9f9

File tree

10 files changed

+207
-513
lines changed

10 files changed

+207
-513
lines changed

frontend/package.json

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -102,9 +102,7 @@
102102
"import-in-the-middle": "^1.14.2",
103103
"jest": "^29.7.0",
104104
"jest-axe": "^10.0.0",
105-
106-
"jest-environment-jsdom": "^30.1.1",
107-
105+
"jest-environment-jsdom": "^29.7.0",
108106
"open": "^10.2.0",
109107
"postcss": "^8.5.6",
110108
"prettier": "^3.6.2",

frontend/pnpm-lock.yaml

Lines changed: 102 additions & 390 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

frontend/scripts/generate-tailwind-config.ts

Lines changed: 0 additions & 22 deletions
This file was deleted.

frontend/src/app/globals.css

Lines changed: 47 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -41,7 +41,6 @@
4141
--chart-5: 27 87% 67%;
4242

4343
--radius: 0.5rem;
44-
4544
}
4645

4746
/* =========================
@@ -81,22 +80,30 @@
8180
--chart-3: 30 80% 55%;
8281
--chart-4: 280 65% 60%;
8382
--chart-5: 340 75% 55%;
84-
--map-tiles-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3) brightness(0.7);
85-
86-
83+
--map-tiles-filter: brightness(0.6) invert(1) contrast(3) hue-rotate(200deg) saturate(0.3)
84+
brightness(0.7);
8785
}
8886

8987
/* =========================
9088
Animations
9189
========================= */
9290
@keyframes spin {
93-
0% { transform: rotate(0deg); }
94-
100% { transform: rotate(360deg); }
91+
0% {
92+
transform: rotate(0deg);
93+
}
94+
100% {
95+
transform: rotate(360deg);
96+
}
9597
}
9698

9799
@keyframes fade-in-out {
98-
0%, 100% { opacity: 0; }
99-
50% { opacity: 1; }
100+
0%,
101+
100% {
102+
opacity: 0;
103+
}
104+
50% {
105+
opacity: 1;
106+
}
100107
}
101108

102109
.animate-fade-in-out {
@@ -128,23 +135,43 @@ a {
128135
More Animations
129136
========================= */
130137
@keyframes fadeIn {
131-
from { opacity: 0; }
132-
to { opacity: 1; }
138+
from {
139+
opacity: 0;
140+
}
141+
to {
142+
opacity: 1;
143+
}
133144
}
134145

135146
@keyframes scaleIn {
136-
from { opacity: 0; transform: scale(0.9); }
137-
to { opacity: 1; transform: scale(1); }
147+
from {
148+
opacity: 0;
149+
transform: scale(0.9);
150+
}
151+
to {
152+
opacity: 1;
153+
transform: scale(1);
154+
}
138155
}
139156

140157
@keyframes fadeOut {
141-
from { opacity: 1; }
142-
to { opacity: 0; }
158+
from {
159+
opacity: 1;
160+
}
161+
to {
162+
opacity: 0;
163+
}
143164
}
144165

145166
@keyframes scaleOut {
146-
from { opacity: 1; transform: scale(1); }
147-
to { opacity: 0; transform: scale(0.9); }
167+
from {
168+
opacity: 1;
169+
transform: scale(1);
170+
}
171+
to {
172+
opacity: 0;
173+
transform: scale(0.9);
174+
}
148175
}
149176

150177
.animate-spin {
@@ -182,10 +209,9 @@ a {
182209
Dark Theme - Map Tiles
183210
========================= */
184211

185-
.dark .map-tiles {
186-
filter: var(--map-tiles-filter, none);
187-
}
188-
212+
.dark .map-tiles {
213+
filter: var(--map-tiles-filter, none);
214+
}
189215

190216
.dark .leaflet-popup-content-wrapper {
191217
background-color: #2c3e50;
@@ -331,4 +357,4 @@ section {
331357
.dark ::selection {
332358
@apply bg-blue-500 text-white;
333359
}
334-
}
360+
}

frontend/src/app/layout.tsx

Lines changed: 1 addition & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,18 +1,4 @@
11

2-
import { GoogleAnalytics } from '@next/third-parties/google'
3-
import type { Metadata } from 'next'
4-
import { Geist, Geist_Mono } from 'next/font/google'
5-
import React from 'react'
6-
import { Providers } from 'wrappers/provider'
7-
import { GTM_ID } from 'utils/env.client'
8-
import { IS_GITHUB_AUTH_ENABLED } from 'utils/env.server'
9-
import AutoScrollToTop from 'components/AutoScrollToTop'
10-
import BreadCrumbs from 'components/BreadCrumbs'
11-
import Footer from 'components/Footer'
12-
import Header from 'components/Header'
13-
import ScrollToTop from 'components/ScrollToTop'
14-
15-
162
import { GoogleAnalytics } from '@next/third-parties/google';
173
import type { Metadata } from 'next';
184
import { Geist, Geist_Mono } from 'next/font/google';
@@ -73,9 +59,7 @@ export const metadata: Metadata = {
7359
},
7460
};
7561

76-
export default function RootLayout({
77-
children,
78-
}: Readonly<{ children: React.ReactNode }>) {
62+
export default function RootLayout({ children }: Readonly<{ children: React.ReactNode }>) {
7963
return (
8064
<html lang="en" suppressHydrationWarning>
8165
<body

frontend/src/components/IssueMetadata.tsx

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,21 @@
1-
import { faCalendar, faFolderOpen } from '@fortawesome/free-solid-svg-icons';
2-
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome';
3-
import { useRouter } from 'next/navigation';
4-
import React from 'react';
5-
import type { Issue } from 'types/issue';
6-
import { formatDate } from 'utils/dateFormatter';
7-
import { TruncatedText } from 'components/TruncatedText';
1+
import { faCalendar, faFolderOpen } from '@fortawesome/free-solid-svg-icons'
2+
import { FontAwesomeIcon } from '@fortawesome/react-fontawesome'
3+
import { useRouter } from 'next/navigation'
4+
import React from 'react'
5+
import type { Issue } from 'types/issue'
6+
import { formatDate } from 'utils/dateFormatter'
7+
import { TruncatedText } from 'components/TruncatedText'
88

99
// Props interface
1010
interface IssueMetadataProps {
11-
issue: Issue;
11+
issue: Issue
1212
}
1313

1414
/**
1515
* Reusable component to display issue metadata (created date and repository link)
1616
*/
1717
export const IssueMetadata: React.FC<IssueMetadataProps> = ({ issue }) => {
18-
const router = useRouter();
18+
const router = useRouter()
1919

2020
return (
2121
<div className="mt-2 flex flex-wrap items-center text-sm text-gray-600 dark:text-gray-400">
@@ -42,7 +42,7 @@ export const IssueMetadata: React.FC<IssueMetadataProps> = ({ issue }) => {
4242
</div>
4343
)}
4444
</div>
45-
);
46-
};
45+
)
46+
}
4747

48-
export default IssueMetadata;
48+
export default IssueMetadata

frontend/src/components/RecentIssues.tsx

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,6 @@ import type { Issue } from 'types/issue'
55
import AnchorTitle from 'components/AnchorTitle'
66
import { IssueMetadata } from 'components/IssueMetadata' // ← new reusable component
77
import ItemCardList from 'components/ItemCardList'
8-
import { IssueMetadata } from 'components/IssueMetadata' // ← new reusable component
98

109
interface RecentIssuesProps {
1110
data: Issue[]
@@ -29,4 +28,4 @@ const RecentIssues: React.FC<RecentIssuesProps> = ({ data, showAvatar = true })
2928
)
3029
}
3130

32-
export default RecentIssues
31+
export default RecentIssues

frontend/tailwind.config.cjs

Lines changed: 0 additions & 3 deletions
This file was deleted.

frontend/tailwind.config.ts

Lines changed: 39 additions & 39 deletions
Original file line numberDiff line numberDiff line change
@@ -1,76 +1,76 @@
1-
import type { Config } from "tailwindcss";
2-
import { heroui } from "@heroui/react";
3-
import animate from "tailwindcss-animate";
1+
import { heroui } from '@heroui/react';
2+
import type { Config } from 'tailwindcss';
3+
import animate from 'tailwindcss-animate';
44

55
const config: Config = {
66
content: [
7-
"./src/**/*.{js,ts,jsx,tsx,mdx}",
8-
"./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}",
7+
'./src/**/*.{js,ts,jsx,tsx,mdx}',
8+
'./node_modules/@heroui/theme/dist/**/*.{js,ts,jsx,tsx}',
99
],
10-
darkMode: "class",
10+
darkMode: 'class',
1111
theme: {
1212
extend: {
1313
colors: {
14-
background: "hsl(var(--background))",
15-
foreground: "hsl(var(--foreground))",
16-
border: "hsl(var(--border))",
17-
text: "hsl(var(--text))",
18-
"owasp-blue": "#98AFC7",
14+
background: 'hsl(var(--background))',
15+
foreground: 'hsl(var(--foreground))',
16+
border: 'hsl(var(--border))',
17+
text: 'hsl(var(--text))',
18+
'owasp-blue': '#98AFC7',
1919
card: {
20-
DEFAULT: "hsl(var(--card))",
21-
foreground: "hsl(var(--card-foreground))",
20+
DEFAULT: 'hsl(var(--card))',
21+
foreground: 'hsl(var(--card-foreground))',
2222
},
2323
popover: {
24-
DEFAULT: "hsl(var(--popover))",
25-
foreground: "hsl(var(--popover-foreground))",
24+
DEFAULT: 'hsl(var(--popover))',
25+
foreground: 'hsl(var(--popover-foreground))',
2626
},
2727
primary: {
28-
DEFAULT: "hsl(var(--primary))",
29-
foreground: "hsl(var(--primary-foreground))",
28+
DEFAULT: 'hsl(var(--primary))',
29+
foreground: 'hsl(var(--primary-foreground))',
3030
},
3131
secondary: {
32-
DEFAULT: "hsl(var(--secondary))",
33-
foreground: "hsl(var(--secondary-foreground))",
32+
DEFAULT: 'hsl(var(--secondary))',
33+
foreground: 'hsl(var(--secondary-foreground))',
3434
},
3535
muted: {
36-
DEFAULT: "hsl(var(--muted))",
37-
foreground: "hsl(var(--muted-foreground))",
36+
DEFAULT: 'hsl(var(--muted))',
37+
foreground: 'hsl(var(--muted-foreground))',
3838
},
3939
accent: {
40-
DEFAULT: "hsl(var(--accent))",
41-
foreground: "hsl(var(--accent-foreground))",
40+
DEFAULT: 'hsl(var(--accent))',
41+
foreground: 'hsl(var(--accent-foreground))',
4242
},
4343
destructive: {
44-
DEFAULT: "hsl(var(--destructive))",
45-
foreground: "hsl(var(--destructive-foreground))",
44+
DEFAULT: 'hsl(var(--destructive))',
45+
foreground: 'hsl(var(--destructive-foreground))',
4646
},
47-
input: "hsl(var(--input))",
48-
ring: "hsl(var(--ring))",
47+
input: 'hsl(var(--input))',
48+
ring: 'hsl(var(--ring))',
4949
chart: {
50-
1: "hsl(var(--chart-1))",
51-
2: "hsl(var(--chart-2))",
52-
3: "hsl(var(--chart-3))",
53-
4: "hsl(var(--chart-4))",
54-
5: "hsl(var(--chart-5))",
50+
1: 'hsl(var(--chart-1))',
51+
2: 'hsl(var(--chart-2))',
52+
3: 'hsl(var(--chart-3))',
53+
4: 'hsl(var(--chart-4))',
54+
5: 'hsl(var(--chart-5))',
5555
},
5656
},
5757
borderRadius: {
58-
lg: "var(--radius)",
59-
md: "calc(var(--radius) - 2px)",
60-
sm: "calc(var(--radius) - 4px)",
58+
lg: 'var(--radius)',
59+
md: 'calc(var(--radius) - 2px)',
60+
sm: 'calc(var(--radius) - 4px)',
6161
},
6262
keyframes: {
6363
scroll: {
64-
"0%": { transform: "translateX(0)" },
65-
"100%": { transform: "translateX(-500%)" },
64+
'0%': { transform: 'translateX(0)' },
65+
'100%': { transform: 'translateX(-500%)' },
6666
},
6767
},
6868
animation: {
69-
scroll: "scroll 0.5s linear infinite",
69+
scroll: 'scroll 0.5s linear infinite',
7070
},
7171
},
7272
},
7373
plugins: [heroui(), animate],
7474
};
7575

76-
export default config;
76+
export default config;

frontend/tsconfig.tsnode.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,10 +1,10 @@
11
{
22
"extends": "./tsconfig.json",
33
"compilerOptions": {
4+
"module": "CommonJS",
5+
"moduleResolution": "node",
46
"allowImportingTsExtensions": true,
57
"noEmit": true
68
},
7-
"include": [
8-
"scripts/generate-tailwind-config.ts"
9-
]
10-
}
9+
"include": ["scripts/generate-tailwind-config.ts"]
10+
}

0 commit comments

Comments
 (0)