Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(styles): Remove extra css directory #140

Merged
merged 2 commits into from
Oct 7, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion .devcontainer/Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
# SPDX-License-Identifier: EPL-2.0
# License-Filename: LICENSE

ARG VARIANT=19-bullseye-slim
ARG VARIANT=20-bullseye-slim
FROM node:${VARIANT}

ARG USERNAME=devel
Expand Down
2 changes: 1 addition & 1 deletion Dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@
# SPDX-License-Identifier: EPL-2.0
# License-Filename: LICENSE

ARG VARIANT=19-alpine
ARG VARIANT=20-alpine
FROM node:${VARIANT} as build
WORKDIR /frontend

Expand Down
10 changes: 5 additions & 5 deletions src/components/AddAdditionalRoles.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -7,13 +7,13 @@
// SPDX-License-Identifier: EPL-2.0
// License-Filename: LICENSE

import styles from '@/css/AddKeyValue.module.css'
import { FaTrashAlt } from 'react-icons/fa'
import DocumentTypes from '@/object-types/enums/DocumentTypes'
import { RolesType } from '@/object-types/RolesType'
import { useTranslations } from 'next-intl'

import { COMMON_NAMESPACE } from '@/object-types/Constants'
import InputKeyValue from '@/object-types/InputKeyValue'
import { InputKeyValue } from '@/object-types'
import { RolesType } from '@/object-types/RolesType'
import DocumentTypes from '@/object-types/enums/DocumentTypes'

interface Props {
documentType?: string
Expand Down Expand Up @@ -52,7 +52,7 @@ export default function AddAdditionalRolesComponent({ documentType, setDataRoles

return (
<>
<div className={`${styles['header']} mb-2`}>
<div className='header mb-2'>
<p className='fw-bold mt-3'>{t('Additional Roles')}</p>
</div>
<div className='row'>
Expand Down
6 changes: 3 additions & 3 deletions src/components/AddKeyValue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,10 @@
// License-Filename: LICENSE

import React from 'react'
import styles from '@/css/AddKeyValue.module.css'
import { FaTrashAlt } from 'react-icons/fa'

import { AddtionalDataType } from '@/object-types/AddtionalDataType'
import InputKeyValue from '@/object-types/InputKeyValue'
import { InputKeyValue } from '@/object-types'

interface Props {
header: string
Expand Down Expand Up @@ -51,7 +51,7 @@ export default function AddKeyValueComponent(props: Props) {

return (
<>
<div className={`${styles['header']} mb-2`}>
<div className='header mb-2'>
<p className='fw-bold mt-3'>{props.header}</p>
</div>
<div className='row'>
Expand Down
115 changes: 58 additions & 57 deletions src/components/ReleaseRepository/ReleaseRepository.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,10 @@
// License-Filename: LICENSE

'use client'
import styles from '@/css/AddKeyValue.module.css'

import React from 'react'
import { useTranslations } from 'next-intl'

import { COMMON_NAMESPACE } from '@/object-types/Constants'
import ReleasePayload from '@/object-types/ReleasePayload'
import ShowInfoOnHover from '../ShowInfoOnHover/ShowInfoOnHover'
Expand All @@ -37,67 +38,67 @@ const ReleaseRepository = ({ releasePayload, setReleasePayload }: Props) => {
return (
<>
<div className='row mb-4'>
<div className={`${styles['header']} mb-2`}>
<div className='header mb-2'>
<p className='fw-bold mt-3'> {t('Release Repository')}</p>
</div>
<div className='row'>
<div className='col-lg-4'>
<label htmlFor='repository_type' className='form-label fw-bold'>
{t('Repository Type')} <span className='text-red'>*</span>
</label>
<select
className='form-select'
aria-label='component_type'
id='repository_type'
required
name='repositorytype'
value={releasePayload.repository?.repositorytype ?? ''}
onChange={(e) => handleInputChange(e)}
>
<option value='UNKNOWN'>{t('Unknown')}</option>
<option value='GIT'>{t('Git')}</option>
<option value='CLEARCASE'>{t('ClearCase')}</option>
<option value='SVN'>{t('Subversion (SVN)')}</option>
<option value='CVS'>{t('CVS')}</option>
<option value='MERCURIAL'>{t('Mercurial')}</option>
<option value='PERFORCE'>{t('Perforce')}</option>
<option value='VISUAL_SOURCESAFE'>{t('Visual SourceSafe')}</option>
<option value='BAZAAR'>{t('Bazaar')}</option>
<option value='ALIENBRAIN'>{t('Alienbrain')}</option>
<option value='TEAM_FOUNDATION_SERVER'>{t('Team Foundation Server')}</option>
<option value='RATIONAL_SYNERGY'>{t('IBM Rational Synergy')}</option>
<option value='PTC_INTEGRITY'>{t('PTC Integrity')}</option>
<option value='DTR'>{t('SAP Design Time Repository (DTR)')}</option>
<option value='DARCS'>{t('Darcs')}</option>
<option value='FOSSIL'>{t('Fossil')}</option>
<option value='GNU_ARCH'>{t('GNU arch')}</option>
<option value='MONOTONE'>{t('Monotone')}</option>
<option value='BIT_KEEPER'>{t('BitKeeper')}</option>
<option value='RATIONAL_TEAM_CONCERT'>{t('Rational Team Concert')}</option>
<option value='RCS'>{t('Revision Control System (RCS)')}</option>
</select>
<div id='learn_more_about_repository_types' className='form-text'>
<ShowInfoOnHover text={t('REPOSITORY_TYPE')} />
{t('Learn more about repository types')}.
</div>
</div>
<div className='col-lg-4'>
<label htmlFor='version' className='form-label fw-bold'>
{t('Repository URL')}
</label>
<input
type='URL'
className='form-control'
placeholder='Enter URL'
id='version'
aria-describedby='version'
required
name='url'
value={releasePayload.repository?.url ?? ''}
onChange={(e) => handleInputChange(e)}
/>
<div className='col-lg-4'>
<label htmlFor='repository_type' className='form-label fw-bold'>
{t('Repository Type')} <span className='text-red'>*</span>
</label>
<select
className='form-select'
aria-label='component_type'
id='repository_type'
required
name='repositorytype'
value={releasePayload.repository?.repositorytype ?? ''}
onChange={(e) => handleInputChange(e)}
>
<option value='UNKNOWN'>{t('Unknown')}</option>
<option value='GIT'>{t('Git')}</option>
<option value='CLEARCASE'>{t('ClearCase')}</option>
<option value='SVN'>{t('Subversion (SVN)')}</option>
<option value='CVS'>{t('CVS')}</option>
<option value='MERCURIAL'>{t('Mercurial')}</option>
<option value='PERFORCE'>{t('Perforce')}</option>
<option value='VISUAL_SOURCESAFE'>{t('Visual SourceSafe')}</option>
<option value='BAZAAR'>{t('Bazaar')}</option>
<option value='ALIENBRAIN'>{t('Alienbrain')}</option>
<option value='TEAM_FOUNDATION_SERVER'>{t('Team Foundation Server')}</option>
<option value='RATIONAL_SYNERGY'>{t('IBM Rational Synergy')}</option>
<option value='PTC_INTEGRITY'>{t('PTC Integrity')}</option>
<option value='DTR'>{t('SAP Design Time Repository (DTR)')}</option>
<option value='DARCS'>{t('Darcs')}</option>
<option value='FOSSIL'>{t('Fossil')}</option>
<option value='GNU_ARCH'>{t('GNU arch')}</option>
<option value='MONOTONE'>{t('Monotone')}</option>
<option value='BIT_KEEPER'>{t('BitKeeper')}</option>
<option value='RATIONAL_TEAM_CONCERT'>{t('Rational Team Concert')}</option>
<option value='RCS'>{t('Revision Control System (RCS)')}</option>
</select>
<div id='learn_more_about_repository_types' className='form-text'>
<ShowInfoOnHover text={t('REPOSITORY_TYPE')} />
{t('Learn more about repository types')}.
</div>
</div>
<div className='col-lg-4'>
<label htmlFor='version' className='form-label fw-bold'>
{t('Repository URL')}
</label>
<input
type='URL'
className='form-control'
placeholder='Enter URL'
id='version'
aria-describedby='version'
required
name='url'
value={releasePayload.repository?.url ?? ''}
onChange={(e) => handleInputChange(e)}
/>
</div>
</div>
</div>
</>
)
Expand Down
31 changes: 0 additions & 31 deletions src/css/AddKeyValue.module.css

This file was deleted.

65 changes: 0 additions & 65 deletions src/css/AddProjects.module.css

This file was deleted.

14 changes: 14 additions & 0 deletions src/styles/globals.css
Original file line number Diff line number Diff line change
Expand Up @@ -52,6 +52,8 @@ code {
}

.header {
background-color: #5d8ea9;
color: white;
padding-left: 3%;
padding-right: 3%;
padding-top: 1rem;
Expand Down Expand Up @@ -364,6 +366,7 @@ th {
}

.list-group-item-action {
background-color: white !important;
color: #6b6c7e !important;
}

Expand Down Expand Up @@ -445,6 +448,17 @@ th {
background-color: #f8f9fa !important;
}

.sidebar-active {
border-color: #dbdce4 !important;
color: #000000 !important;
background-color: #e89734 !important;
}

.link-sidebar {
background-color: white !important;
color: #6b6c7e !important;
}

.label {
font-weight: bold;
}
Expand Down
Loading