fix: Code cleanups

This commit is contained in:
Andras Bacsai 2022-04-22 13:57:28 +02:00
parent 2f90fd1fe6
commit af97d399b6
4 changed files with 9 additions and 10 deletions

View File

@ -46,7 +46,6 @@
import { asyncSleep } from '$lib/components/common'; import { asyncSleep } from '$lib/components/common';
import { del, get, post } from '$lib/api'; import { del, get, post } from '$lib/api';
import { browser, dev } from '$app/env'; import { browser, dev } from '$app/env';
import Select from 'svelte-select';
let isUpdateAvailable = false; let isUpdateAvailable = false;
let updateStatus = { let updateStatus = {

View File

@ -80,7 +80,7 @@
<div class="flex flex-col justify-center"> <div class="flex flex-col justify-center">
{#if !filteredSources || ownSources.length === 0} {#if !filteredSources || ownSources.length === 0}
<div class="flex-col"> <div class="flex-col">
<div class="pb-2">{$t('application.configuration.no_configurable_git')}</div> <div class="pb-2 text-center">{$t('application.configuration.no_configurable_git')}</div>
<div class="flex justify-center"> <div class="flex justify-center">
<button on:click={newSource} class="add-icon bg-orange-600 hover:bg-orange-500"> <button on:click={newSource} class="add-icon bg-orange-600 hover:bg-orange-500">
<svg <svg

View File

@ -149,14 +149,14 @@
<td class="flex space-x-2"> <td class="flex space-x-2">
<form on:submit|preventDefault={() => resetPassword(account.id)}> <form on:submit|preventDefault={() => resetPassword(account.id)}>
<button <button
class="mx-auto my-4 w-32 bg-coollabs hover:bg-coollabs-100 disabled:bg-coolgray-200" class="mx-auto my-4 w-32 bg-fuchsia-600 hover:bg-fuchsia-500 disabled:bg-coolgray-200"
>Reset Password</button >Reset Password</button
> >
</form> </form>
<form on:submit|preventDefault={() => deleteUser(account.id)}> <form on:submit|preventDefault={() => deleteUser(account.id)}>
<button <button
disabled={account.id === $session.userId} disabled={account.id === $session.userId}
class="mx-auto my-4 w-32 bg-coollabs hover:bg-coollabs-100 disabled:bg-coolgray-200" class="mx-auto my-4 w-32 bg-red-600 hover:bg-red-500 disabled:bg-coolgray-200"
type="submit">Delete User</button type="submit">Delete User</button
> >
</form> </form>
@ -177,7 +177,7 @@
<a href="/iam/team/{team.id}" class="w-96 p-2 no-underline"> <a href="/iam/team/{team.id}" class="w-96 p-2 no-underline">
<div <div
class="box-selection relative" class="box-selection relative"
class:hover:bg-cyan-600={team.id !== '0'} class:hover:bg-fuchsia-600={team.id !== '0'}
class:hover:bg-red-500={team.id === '0'} class:hover:bg-red-500={team.id === '0'}
> >
<div class="truncate text-center text-xl font-bold"> <div class="truncate text-center text-xl font-bold">
@ -201,7 +201,7 @@
<a href="/iam/team/{team.id}" class="w-96 p-2 no-underline"> <a href="/iam/team/{team.id}" class="w-96 p-2 no-underline">
<div <div
class="box-selection relative" class="box-selection relative"
class:hover:bg-cyan-600={team.id !== '0'} class:hover:bg-fuchsia-600={team.id !== '0'}
class:hover:bg-red-500={team.id === '0'} class:hover:bg-red-500={team.id === '0'}
> >
<div class="truncate text-center text-xl font-bold"> <div class="truncate text-center text-xl font-bold">

View File

@ -96,14 +96,14 @@
<div class="flex space-x-1 p-6 px-6 text-2xl font-bold"> <div class="flex space-x-1 p-6 px-6 text-2xl font-bold">
<div class="tracking-tight">{$t('index.team')}</div> <div class="tracking-tight">{$t('index.team')}</div>
<span class="arrow-right-applications px-1 text-cyan-500">></span> <span class="arrow-right-applications px-1 text-fuchsia-500">></span>
<span class="pr-2">{team.name}</span> <span class="pr-2">{team.name}</span>
</div> </div>
<div class="mx-auto max-w-4xl px-6"> <div class="mx-auto max-w-4xl px-6">
<form on:submit|preventDefault={handleSubmit} class=" py-4"> <form on:submit|preventDefault={handleSubmit} class=" py-4">
<div class="flex space-x-1 pb-5"> <div class="flex space-x-1 pb-5">
<div class="title font-bold">{$t('index.settings')}</div> <div class="title font-bold">{$t('index.settings')}</div>
<button class="bg-cyan-600 hover:bg-cyan-500" type="submit">{$t('forms.save')}</button> <button class="bg-fuchsia-600 hover:bg-fuchsia-500" type="submit">{$t('forms.save')}</button>
</div> </div>
<div class="grid grid-flow-row gap-2 px-10"> <div class="grid grid-flow-row gap-2 px-10">
<div class="mt-2 grid grid-cols-2"> <div class="mt-2 grid grid-cols-2">
@ -186,7 +186,7 @@
<div class="flex space-x-1"> <div class="flex space-x-1">
<div class="flex space-x-1"> <div class="flex space-x-1">
<div class="title font-bold">{$t('team.invite_new_member')}</div> <div class="title font-bold">{$t('team.invite_new_member')}</div>
<button class="bg-cyan-600 hover:bg-cyan-500" type="submit" <button class="bg-fuchsia-600 hover:bg-fuchsia-500" type="submit"
>{$t('team.send_invitation')}</button >{$t('team.send_invitation')}</button
> >
</div> </div>
@ -206,7 +206,7 @@
class="rounded-none rounded-l border border-dashed border-transparent" class="rounded-none rounded-l border border-dashed border-transparent"
type="button" type="button"
class:border-coolgray-300={invitation.permission !== 'read'} class:border-coolgray-300={invitation.permission !== 'read'}
class:bg-pink-500={invitation.permission === 'read'}>{$t('team.read')}</button class:bg-fuchsia-500={invitation.permission === 'read'}>{$t('team.read')}</button
> >
<button <button
on:click={() => (invitation.permission = 'admin')} on:click={() => (invitation.permission = 'admin')}