fixes
This commit is contained in:
parent
6715bc750f
commit
1f0c168936
@ -293,9 +293,9 @@
|
||||
<path d="M7 12h14l-3 -3m0 6l3 -3" />
|
||||
</svg>
|
||||
</div>
|
||||
<div class="lg:block">
|
||||
<!-- <div class="lg:block">
|
||||
<LocalePicker/>
|
||||
</div>
|
||||
</div> -->
|
||||
<div
|
||||
class="w-full text-center font-bold text-stone-400 hover:bg-coolgray-200 hover:text-white"
|
||||
>
|
||||
@ -330,7 +330,7 @@
|
||||
{/if}
|
||||
</div>
|
||||
</div>
|
||||
<LocalePicker/>
|
||||
<!-- <LocalePicker /> -->
|
||||
</div>
|
||||
<main>
|
||||
<div class={$appSession.userId ? 'lg:pl-16' : null}>
|
||||
|
@ -29,7 +29,7 @@
|
||||
export let settings: any;
|
||||
export let gitSources: any;
|
||||
export let destinations: any;
|
||||
|
||||
|
||||
let filtered: any = setInitials();
|
||||
import { get, post } from '$lib/api';
|
||||
import { t } from '$lib/translations';
|
||||
|
@ -19,8 +19,7 @@
|
||||
|
||||
<script lang="ts">
|
||||
export let sources: any = [];
|
||||
import { get, post } from '$lib/api';
|
||||
import { goto } from '$app/navigation';
|
||||
import { get } from '$lib/api';
|
||||
import { getDomain } from '$lib/common';
|
||||
import { t } from '$lib/translations';
|
||||
import { appSession } from '$lib/store';
|
||||
|
@ -1,56 +1,4 @@
|
||||
<script context="module" lang="ts">
|
||||
import type { Load } from '@sveltejs/kit';
|
||||
import {loadResources} from '$lib/resources';
|
||||
export const load: Load = loadResources;
|
||||
</script>
|
||||
|
||||
<script lang="ts">
|
||||
export let gitSources:any;
|
||||
import PublicBadge from "$lib/components/badges/PublicBadge.svelte";
|
||||
import TeamsBadge from "$lib/components/badges/TeamsBadge.svelte";
|
||||
import ContextMenu from "$lib/components/ContextMenu.svelte";
|
||||
import Grid3 from "$lib/components/grids/Grid3.svelte";
|
||||
import GithubIcon from "$lib/components/svg/sources/GithubIcon.svelte";
|
||||
import GitlabIcon from "$lib/components/svg/sources/GitlabIcon.svelte";
|
||||
import { goto } from '$app/navigation';
|
||||
goto('/');
|
||||
</script>
|
||||
|
||||
|
||||
<ContextMenu>
|
||||
<div class="title">Git Sources</div>
|
||||
</ContextMenu>
|
||||
|
||||
|
||||
<Grid3>
|
||||
{#if gitSources.length > 0}
|
||||
{#each gitSources as source}
|
||||
<a class="no-underline mb-5" href={`/sources/${source.id}`}>
|
||||
<div class="w-full rounded p-5 bg-coolgray-200 hover:bg-sources indicator duration-150">
|
||||
<div class="w-full flex flex-row">
|
||||
<div class="absolute top-0 left-0 -m-5 flex">
|
||||
{#if source?.type === 'gitlab'}
|
||||
<GitlabIcon />
|
||||
{:else if source?.type === 'github'}
|
||||
<GithubIcon/>
|
||||
{/if}
|
||||
|
||||
{#if source.isSystemWide}
|
||||
<PublicBadge/>
|
||||
{/if}
|
||||
</div>
|
||||
<div class="w-full flex flex-col">
|
||||
<div class="h-10">
|
||||
<h1 class="font-bold text-base truncate">{source.name}</h1>
|
||||
<TeamsBadge teams={source.teams} thing={source}/>
|
||||
</div>
|
||||
|
||||
<div class="flex justify-end items-end space-x-2 h-10" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</a>
|
||||
{/each}
|
||||
{:else}
|
||||
<h1 class="">Nothing here yet!</h1>
|
||||
{/if}
|
||||
</Grid3>
|
||||
|
||||
|
Loading…
x
Reference in New Issue
Block a user