wip: trpc

This commit is contained in:
Andras Bacsai 2023-01-13 15:24:43 +01:00
parent 6efb02fa32
commit 91c36dc810
4 changed files with 5 additions and 6 deletions

View File

@ -2,8 +2,7 @@
import type { LayoutData } from './$types';
export let data: LayoutData;
let source = data.source.data;
console.log(source)
let source = data.source.data.source;
import { page } from '$app/stores';
import { errorNotification } from '$lib/common';
import { appSession, trpc } from '$lib/store';

View File

@ -2,8 +2,8 @@
import type { LayoutData } from './$types';
export let data: LayoutData;
let source = data.source;
let settings = data.settings;
let source = data.source.data.source;
let settings = data.source.data.settings;
import { page } from '$app/stores';
import Source from './components/Source.svelte';
import New from './components/New.svelte';

View File

@ -177,7 +177,7 @@
class="btn btn-sm"
href={`${source.htmlUrl}/${
source.htmlUrl === 'https://github.com' ? 'apps' : 'github-apps'
}/${source.githubApp.name}/installations/new`}>"Change GitHub App Settings"</a
}/${source.githubApp.name}/installations/new`}>Change GitHub App Settings</a
>
</div>
{/if}

View File

@ -158,7 +158,7 @@
>
{#if source.gitlabAppId}
<button class="btn btn-sm" on:click|preventDefault={changeSettings}
>"Change GitLab App Settings"</button
>Change GitLab App Settings</button
>
{:else}
<button class="btn btn-sm" on:click|preventDefault|stopPropagation={newApp}