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'; import type { LayoutData } from './$types';
export let data: LayoutData; export let data: LayoutData;
let source = data.source.data; let source = data.source.data.source;
console.log(source)
import { page } from '$app/stores'; import { page } from '$app/stores';
import { errorNotification } from '$lib/common'; import { errorNotification } from '$lib/common';
import { appSession, trpc } from '$lib/store'; import { appSession, trpc } from '$lib/store';

View File

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

View File

@@ -177,7 +177,7 @@
class="btn btn-sm" class="btn btn-sm"
href={`${source.htmlUrl}/${ href={`${source.htmlUrl}/${
source.htmlUrl === 'https://github.com' ? 'apps' : 'github-apps' 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> </div>
{/if} {/if}

View File

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