Skip to content
Snippets Groups Projects
Verified Commit 9323bffb authored by Tim Bastin's avatar Tim Bastin :lemon:
Browse files

adds bg background, translates toast

parent a67a0be3
No related branches found
No related tags found
1 merge request!1Translation to de
Pipeline #138604 passed
// Copyright 2025 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH. // Copyright 2025 Zentrum für Digitale Souveränität der Öffentlichen Verwaltung (ZenDiS) GmbH.
// SPDX-License-Identifier: MIT // SPDX-License-Identifier: MIT
import React, { FunctionComponent, useTransition } from 'react' import { Loader2 } from 'lucide-react'
import { Form, FormItem } from './ui/form' import React, { FunctionComponent } from 'react'
import { Label } from './ui/label'
import { Input } from './ui/input'
import { Button } from './ui/button'
import { useToast } from '../hooks/use-toast'
import { useForm } from 'react-hook-form' import { useForm } from 'react-hook-form'
import { useToast } from '../hooks/use-toast'
import { apiCall, SarifApiResponse } from '../lib/apiClient' import { apiCall, SarifApiResponse } from '../lib/apiClient'
import { Loader2 } from 'lucide-react' import { Button } from './ui/button'
import { Form, FormItem } from './ui/form'
import { Input } from './ui/input'
import { Label } from './ui/label'
interface Props { interface Props {
onScanFinished: (response: SarifApiResponse) => void onScanFinished: (response: SarifApiResponse) => void
...@@ -50,9 +50,9 @@ const CheckRepoForm: FunctionComponent<Props> = ({ ...@@ -50,9 +50,9 @@ const CheckRepoForm: FunctionComponent<Props> = ({
} catch (e) { } catch (e) {
console.error(e) console.error(e)
toast({ toast({
title: 'Provided url is invalid', title: 'Die angegebene Url ist ungültig',
description: description:
'Please check if the url you provided has a typo. Make sure to include the whole url to the repo, without the .git ending.', 'Bitte überprüfen Sie, ob die von Ihnen angegebene URL einen Tippfehler enthält. Stellen Sie sicher, dass Sie die gesamte URL des Repos angeben, ohne die Endung .git.',
}) })
} finally { } finally {
setIsPending(false) setIsPending(false)
......
...@@ -22,12 +22,6 @@ export default { ...@@ -22,12 +22,6 @@ export default {
type: 'page', type: 'page',
href: '/#api-small-demo', href: '/#api-small-demo',
}, },
'about-opencode': {
title: 'Mehr zu openCode ↗',
type: 'page',
href: 'https://opencode.de/en',
newWindow: true,
},
'declaration-on-accessibility': { 'declaration-on-accessibility': {
display: 'hidden', display: 'hidden',
}, },
......
...@@ -15,6 +15,20 @@ module.exports = { ...@@ -15,6 +15,20 @@ module.exports = {
}, },
extend: { extend: {
colors: { colors: {
background: {
DEFAULT: '#f7f7f7',
50: '#ffffff',
100: '#ffffff',
200: '#ffffff',
300: '#ffffff',
400: '#ffffff',
500: '#f7f7f7',
600: '#e0e0e0',
700: '#c8c8c8',
800: '#b1b1b1',
900: '#999999',
},
zendis: { zendis: {
50: '#eefffb', 50: '#eefffb',
100: '#c6fff4', 100: '#c6fff4',
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment

Consent

On this website, we use the web analytics service Matomo to analyze and review the use of our website. Through the collected statistics, we can improve our offerings and make them more appealing for you. Here, you can decide whether to allow us to process your data and set corresponding cookies for these purposes, in addition to technically necessary cookies. Further information on data protection—especially regarding "cookies" and "Matomo"—can be found in our privacy policy. You can withdraw your consent at any time.