Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
W
Web-CoreX
Project
Project
Details
Activity
Releases
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Hendrik Garske
Web-CoreX
Commits
629ab9a4
Commit
629ab9a4
authored
Dec 27, 2025
by
Hendrik Garske
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix: ESLint Fehler behoben
parent
0ad3cb94
Pipeline
#11
failed with stages
in 1 minute and 37 seconds
Changes
10
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
24 additions
and
16 deletions
+24
-16
route.ts
app/api/customers/route.ts
+1
-1
route.ts
app/api/test/route.ts
+5
-3
page.tsx
app/kunden/[id]/page.tsx
+1
-1
page.tsx
app/kunden/page.tsx
+2
-2
page.tsx
app/page.tsx
+0
-1
page.tsx
app/zeiterfassung/page.tsx
+5
-5
Logo.tsx
components/Logo.tsx
+6
-1
select.tsx
components/ui/select.tsx
+1
-1
middleware.ts
middleware.ts
+1
-1
.gitkeep
prisma/migrations/.gitkeep
+2
-0
No files found.
app/api/customers/route.ts
View file @
629ab9a4
...
@@ -76,7 +76,7 @@ export async function POST(request: NextRequest) {
...
@@ -76,7 +76,7 @@ export async function POST(request: NextRequest) {
return
NextResponse
.
json
(
return
NextResponse
.
json
(
{
{
error
:
errorMessage
,
error
:
errorMessage
,
details
:
process
.
env
.
NODE_ENV
===
'development'
?
error
?
.
stack
:
undefined
details
:
process
.
env
.
NODE_ENV
===
'development'
&&
error
instanceof
Error
?
error
.
stack
:
undefined
},
},
{
status
:
500
}
{
status
:
500
}
)
)
...
...
app/api/test/route.ts
View file @
629ab9a4
...
@@ -12,12 +12,14 @@ export async function GET() {
...
@@ -12,12 +12,14 @@ export async function GET() {
message
:
"Prisma connection successful"
,
message
:
"Prisma connection successful"
,
customerCount
customerCount
})
})
}
catch
(
error
:
any
)
{
}
catch
(
error
:
unknown
)
{
console
.
error
(
"Test error:"
,
error
)
console
.
error
(
"Test error:"
,
error
)
const
errorMessage
=
error
instanceof
Error
?
error
.
message
:
"Unknown error"
const
errorStack
=
process
.
env
.
NODE_ENV
===
'development'
&&
error
instanceof
Error
?
error
.
stack
:
undefined
return
NextResponse
.
json
({
return
NextResponse
.
json
({
success
:
false
,
success
:
false
,
error
:
error
?.
message
||
"Unknown error"
,
error
:
error
Message
,
stack
:
process
.
env
.
NODE_ENV
===
'development'
?
error
?.
stack
:
undefined
stack
:
errorStack
},
{
status
:
500
})
},
{
status
:
500
})
}
}
}
}
...
...
app/kunden/[id]/page.tsx
View file @
629ab9a4
...
@@ -45,7 +45,7 @@ export default function CustomerDetail() {
...
@@ -45,7 +45,7 @@ export default function CustomerDetail() {
if
(
params
.
id
)
{
if
(
params
.
id
)
{
fetchCustomer
()
fetchCustomer
()
}
}
},
[
params
.
id
])
},
[
params
.
id
])
// eslint-disable-line react-hooks/exhaustive-deps
const
fetchCustomer
=
async
()
=>
{
const
fetchCustomer
=
async
()
=>
{
try
{
try
{
...
...
app/kunden/page.tsx
View file @
629ab9a4
...
@@ -8,7 +8,7 @@ import { Button } from "@/components/ui/button"
...
@@ -8,7 +8,7 @@ import { Button } from "@/components/ui/button"
import
{
Input
}
from
"@/components/ui/input"
import
{
Input
}
from
"@/components/ui/input"
import
{
Label
}
from
"@/components/ui/label"
import
{
Label
}
from
"@/components/ui/label"
import
{
Textarea
}
from
"@/components/ui/textarea"
import
{
Textarea
}
from
"@/components/ui/textarea"
import
{
Plus
,
Search
,
Edit
,
Trash2
,
Clock
,
User
,
Building
,
Mail
,
Phone
,
MapPin
}
from
"lucide-react"
import
{
Plus
,
Search
,
Edit
,
Trash2
,
Clock
,
Building
,
Mail
,
Phone
,
MapPin
}
from
"lucide-react"
import
Link
from
"next/link"
import
Link
from
"next/link"
interface
Customer
{
interface
Customer
{
...
@@ -96,7 +96,7 @@ export default function Kunden() {
...
@@ -96,7 +96,7 @@ export default function Kunden() {
try
{
try
{
const
errorData
=
await
response
.
json
()
const
errorData
=
await
response
.
json
()
errorMessage
=
errorData
.
error
||
errorMessage
errorMessage
=
errorData
.
error
||
errorMessage
}
catch
(
e
)
{
}
catch
{
errorMessage
=
`Server-Fehler (Status
${
response
.
status
}
)`
errorMessage
=
`Server-Fehler (Status
${
response
.
status
}
)`
}
}
}
else
{
}
else
{
...
...
app/page.tsx
View file @
629ab9a4
...
@@ -2,7 +2,6 @@
...
@@ -2,7 +2,6 @@
import
{
Logo
}
from
"@/components/Logo"
import
{
Logo
}
from
"@/components/Logo"
import
{
ThemeToggle
}
from
"@/components/theme-toggle"
import
{
ThemeToggle
}
from
"@/components/theme-toggle"
import
{
Button
}
from
"@/components/ui/button"
import
Link
from
"next/link"
import
Link
from
"next/link"
import
{
Clock
,
User
}
from
"lucide-react"
import
{
Clock
,
User
}
from
"lucide-react"
...
...
app/zeiterfassung/page.tsx
View file @
629ab9a4
...
@@ -67,7 +67,7 @@ export default function Zeiterfassung() {
...
@@ -67,7 +67,7 @@ export default function Zeiterfassung() {
const
ensureCurrentUser
=
async
()
=>
{
const
ensureCurrentUser
=
async
()
=>
{
try
{
try
{
const
response
=
await
fetch
(
"/api/users"
,
{
await
fetch
(
"/api/users"
,
{
method
:
"POST"
,
method
:
"POST"
,
headers
:
{
"Content-Type"
:
"application/json"
},
headers
:
{
"Content-Type"
:
"application/json"
},
body
:
JSON
.
stringify
({
body
:
JSON
.
stringify
({
...
@@ -174,8 +174,8 @@ export default function Zeiterfassung() {
...
@@ -174,8 +174,8 @@ export default function Zeiterfassung() {
try
{
try
{
// Get user ID first
// Get user ID first
const
usersResponse
=
await
fetch
(
"/api/users"
)
const
usersResponse
=
await
fetch
(
"/api/users"
)
const
users
=
await
usersResponse
.
json
()
const
users
=
await
usersResponse
.
json
()
as
Array
<
{
id
:
string
;
email
:
string
}
>
const
userId
=
users
.
find
((
u
:
any
)
=>
u
.
email
===
"temp@corexmanagement.de"
)?.
id
||
CURRENT_USER_ID
const
userId
=
users
.
find
((
u
)
=>
u
.
email
===
"temp@corexmanagement.de"
)?.
id
||
CURRENT_USER_ID
const
response
=
await
fetch
(
"/api/time-entries"
,
{
const
response
=
await
fetch
(
"/api/time-entries"
,
{
method
:
"POST"
,
method
:
"POST"
,
...
@@ -221,8 +221,8 @@ export default function Zeiterfassung() {
...
@@ -221,8 +221,8 @@ export default function Zeiterfassung() {
try
{
try
{
const
usersResponse
=
await
fetch
(
"/api/users"
)
const
usersResponse
=
await
fetch
(
"/api/users"
)
const
users
=
await
usersResponse
.
json
()
const
users
=
await
usersResponse
.
json
()
as
Array
<
{
id
:
string
;
email
:
string
}
>
const
userId
=
users
.
find
((
u
:
any
)
=>
u
.
email
===
"temp@corexmanagement.de"
)?.
id
||
CURRENT_USER_ID
const
userId
=
users
.
find
((
u
)
=>
u
.
email
===
"temp@corexmanagement.de"
)?.
id
||
CURRENT_USER_ID
const
response
=
await
fetch
(
"/api/time-entries"
,
{
const
response
=
await
fetch
(
"/api/time-entries"
,
{
method
:
"POST"
,
method
:
"POST"
,
...
...
components/Logo.tsx
View file @
629ab9a4
import
Image
from
"next/image"
export
function
Logo
({
className
=
"h-5 md:h-6 w-auto"
}:
{
className
?:
string
})
{
export
function
Logo
({
className
=
"h-5 md:h-6 w-auto"
}:
{
className
?:
string
})
{
return
(
return
(
<
div
className=
{
className
}
>
<
div
className=
{
className
}
>
<
img
<
Image
src=
"/logo.png"
src=
"/logo.png"
alt=
"CoreX Management"
alt=
"CoreX Management"
width=
{
200
}
height=
{
40
}
className=
"h-full w-auto object-contain dark:invert-0 invert"
className=
"h-full w-auto object-contain dark:invert-0 invert"
priority
/>
/>
</
div
>
</
div
>
)
)
...
...
components/ui/select.tsx
View file @
629ab9a4
import
*
as
React
from
"react"
import
*
as
React
from
"react"
import
{
cn
}
from
"@/lib/utils"
import
{
cn
}
from
"@/lib/utils"
interface
SelectProps
extends
React
.
SelectHTMLAttributes
<
HTMLSelectElement
>
{}
type
SelectProps
=
React
.
SelectHTMLAttributes
<
HTMLSelectElement
>
const
Select
=
React
.
forwardRef
<
HTMLSelectElement
,
SelectProps
>
(
const
Select
=
React
.
forwardRef
<
HTMLSelectElement
,
SelectProps
>
(
({
className
,
children
,
...
props
},
ref
)
=>
{
({
className
,
children
,
...
props
},
ref
)
=>
{
...
...
middleware.ts
View file @
629ab9a4
...
@@ -3,7 +3,7 @@ import type { NextRequest } from 'next/server'
...
@@ -3,7 +3,7 @@ import type { NextRequest } from 'next/server'
// TODO: Implement SSO authentication here
// TODO: Implement SSO authentication here
// For now, this is a placeholder that allows all requests
// For now, this is a placeholder that allows all requests
export
function
middleware
(
request
:
NextRequest
)
{
export
function
middleware
(
_
request
:
NextRequest
)
{
// SSO authentication logic will be added here
// SSO authentication logic will be added here
// Example: Check for authentication token, redirect to login if not authenticated
// Example: Check for authentication token, redirect to login if not authenticated
...
...
prisma/migrations/.gitkeep
0 → 100644
View file @
629ab9a4
# Migrations werden hier gespeichert
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment