improving github page responsiveness
This commit is contained in:
parent
086ca30323
commit
6ff080c36b
@ -71,7 +71,7 @@
|
|||||||
$appSession.version = baseSettings.version;
|
$appSession.version = baseSettings.version;
|
||||||
$appSession.whiteLabeled = baseSettings.whiteLabeled;
|
$appSession.whiteLabeled = baseSettings.whiteLabeled;
|
||||||
$appSession.whiteLabeledDetails.icon = baseSettings.whiteLabeledIcon;
|
$appSession.whiteLabeledDetails.icon = baseSettings.whiteLabeledIcon;
|
||||||
$appSession.supportedServiceTypesAndVersions = supportedServiceTypesAndVersions
|
$appSession.supportedServiceTypesAndVersions = supportedServiceTypesAndVersions;
|
||||||
|
|
||||||
export let userId: string;
|
export let userId: string;
|
||||||
export let teamId: string;
|
export let teamId: string;
|
||||||
@ -396,7 +396,7 @@
|
|||||||
{/if}
|
{/if}
|
||||||
{/if}
|
{/if}
|
||||||
<main>
|
<main>
|
||||||
<div class="px-20">
|
<div class="pl-14 lg:px-20">
|
||||||
<slot />
|
<slot />
|
||||||
</div>
|
</div>
|
||||||
</main>
|
</main>
|
||||||
|
@ -24,7 +24,7 @@
|
|||||||
apiUrl: source.apiUrl.replace(/\/$/, '')
|
apiUrl: source.apiUrl.replace(/\/$/, '')
|
||||||
});
|
});
|
||||||
return addToast({
|
return addToast({
|
||||||
message:'Configuration saved.',
|
message: 'Configuration saved.',
|
||||||
type: 'success'
|
type: 'success'
|
||||||
});
|
});
|
||||||
} catch (error) {
|
} catch (error) {
|
||||||
@ -93,7 +93,7 @@
|
|||||||
<div class="mx-auto max-w-4xl px-6">
|
<div class="mx-auto max-w-4xl px-6">
|
||||||
{#if !source.githubAppId}
|
{#if !source.githubAppId}
|
||||||
<form on:submit|preventDefault={newGithubApp} class="py-4">
|
<form on:submit|preventDefault={newGithubApp} class="py-4">
|
||||||
<div class="flex space-x-1 pb-7">
|
<div class="grid gap-1 lg:grid-flow-col pb-7">
|
||||||
<div class="title">General</div>
|
<div class="title">General</div>
|
||||||
{#if !source.githubAppId}
|
{#if !source.githubAppId}
|
||||||
<button class="btn btn-sm bg-sources" type="submit">Save & Redirect to GitHub</button>
|
<button class="btn btn-sm bg-sources" type="submit">Save & Redirect to GitHub</button>
|
||||||
@ -101,20 +101,20 @@
|
|||||||
</div>
|
</div>
|
||||||
<div class="grid grid-flow-row gap-2 px-10">
|
<div class="grid grid-flow-row gap-2 px-10">
|
||||||
<div class="grid grid-flow-row gap-2">
|
<div class="grid grid-flow-row gap-2">
|
||||||
<div class="mt-2 grid grid-cols-2 items-center">
|
<div class="mt-2 grid lg:grid-cols-2 items-center">
|
||||||
<label for="name" class="text-base font-bold text-stone-100">Name</label>
|
<label for="name" class="text-base font-bold text-stone-100">Name</label>
|
||||||
<input name="name" id="name" required bind:value={source.name} />
|
<input name="name" id="name" required bind:value={source.name} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid lg:grid-cols-2 items-center">
|
||||||
<label for="htmlUrl" class="text-base font-bold text-stone-100">HTML URL</label>
|
<label for="htmlUrl" class="text-base font-bold text-stone-100">HTML URL</label>
|
||||||
<input name="htmlUrl" id="htmlUrl" required bind:value={source.htmlUrl} />
|
<input name="htmlUrl" id="htmlUrl" required bind:value={source.htmlUrl} />
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid lg:grid-cols-2 items-center">
|
||||||
<label for="apiUrl" class="text-base font-bold text-stone-100">API URL</label>
|
<label for="apiUrl" class="text-base font-bold text-stone-100">API URL</label>
|
||||||
<input name="apiUrl" id="apiUrl" required bind:value={source.apiUrl} />
|
<input name="apiUrl" id="apiUrl" required bind:value={source.apiUrl} />
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid lg:grid-cols-2 items-center">
|
||||||
<label for="customPort" class="text-base font-bold text-stone-100">Custom SSH Port</label>
|
<label for="customPort" class="text-base font-bold text-stone-100">Custom SSH Port</label>
|
||||||
<input
|
<input
|
||||||
name="customPort"
|
name="customPort"
|
||||||
@ -128,7 +128,7 @@
|
|||||||
text="If you use a self-hosted version of Git, you can provide custom port for all the Git related actions."
|
text="If you use a self-hosted version of Git, you can provide custom port for all the Git related actions."
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2">
|
<div class="grid lg:grid-cols-2">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<label for="organization" class="pt-2 text-base font-bold text-stone-100"
|
<label for="organization" class="pt-2 text-base font-bold text-stone-100"
|
||||||
>Organization</label
|
>Organization</label
|
||||||
@ -148,29 +148,29 @@
|
|||||||
</form>
|
</form>
|
||||||
{:else if source.githubApp?.installationId}
|
{:else if source.githubApp?.installationId}
|
||||||
<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="grid gap-1 lg:grid-flow-col pb-5 ">
|
||||||
<div class="title">{$t('general')}</div>
|
<div class="title">{$t('general')}</div>
|
||||||
{#if $appSession.isAdmin}
|
{#if $appSession.isAdmin}
|
||||||
<button
|
<button class="btn btn-sm bg-sources" type="submit" disabled={loading}
|
||||||
class="btn btn-sm bg-sources"
|
>{loading ? 'Saving...' : 'Save'}</button
|
||||||
type="submit"
|
|
||||||
disabled={loading}>{loading ? 'Saving...' : 'Save'}</button
|
|
||||||
>
|
>
|
||||||
<a
|
<a
|
||||||
class="btn btn-sm"
|
class="btn btn-sm"
|
||||||
href={`${source.htmlUrl}/${source.htmlUrl === 'https://github.com' ? 'apps' : 'github-apps'}/${source.githubApp.name}/installations/new`}
|
href={`${source.htmlUrl}/${
|
||||||
|
source.htmlUrl === 'https://github.com' ? 'apps' : 'github-apps'
|
||||||
|
}/${source.githubApp.name}/installations/new`}
|
||||||
>{$t('source.change_app_settings', { name: 'GitHub' })}</a
|
>{$t('source.change_app_settings', { name: 'GitHub' })}</a
|
||||||
>
|
>
|
||||||
{/if}
|
{/if}
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-flow-row gap-2 px-10">
|
<div class="grid grid-flow-row gap-2 px-10">
|
||||||
<div class="grid grid-flow-row gap-2">
|
<div class="grid grid-flow-row gap-2">
|
||||||
<div class="mt-2 grid grid-cols-2 items-center">
|
<div class="mt-2 grid lg:grid-cols-2 items-center">
|
||||||
<label for="name" class="text-base font-bold text-stone-100">{$t('forms.name')}</label>
|
<label for="name" class="text-base font-bold text-stone-100">{$t('forms.name')}</label>
|
||||||
<input name="name" id="name" required bind:value={source.name} />
|
<input name="name" id="name" required bind:value={source.name} />
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid lg:grid-cols-2 items-center">
|
||||||
<label for="htmlUrl" class="text-base font-bold text-stone-100">HTML URL</label>
|
<label for="htmlUrl" class="text-base font-bold text-stone-100">HTML URL</label>
|
||||||
<input
|
<input
|
||||||
name="htmlUrl"
|
name="htmlUrl"
|
||||||
@ -181,7 +181,7 @@
|
|||||||
bind:value={source.htmlUrl}
|
bind:value={source.htmlUrl}
|
||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid lg:grid-cols-2 items-center">
|
||||||
<label for="apiUrl" class="text-base font-bold text-stone-100">API URL</label>
|
<label for="apiUrl" class="text-base font-bold text-stone-100">API URL</label>
|
||||||
<input
|
<input
|
||||||
name="apiUrl"
|
name="apiUrl"
|
||||||
@ -193,7 +193,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{#if selfHosted}
|
{#if selfHosted}
|
||||||
<div class="grid grid-cols-2 items-center">
|
<div class="grid lg:grid-cols-2 items-center">
|
||||||
<label for="customPort" class="text-base font-bold text-stone-100"
|
<label for="customPort" class="text-base font-bold text-stone-100"
|
||||||
>Custom SSH Port</label
|
>Custom SSH Port</label
|
||||||
>
|
>
|
||||||
@ -210,7 +210,7 @@
|
|||||||
/>
|
/>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
<div class="grid grid-cols-2">
|
<div class="grid lg:grid-cols-2">
|
||||||
<div class="flex flex-col">
|
<div class="flex flex-col">
|
||||||
<label for="organization" class="pt-2 text-base font-bold text-stone-100"
|
<label for="organization" class="pt-2 text-base font-bold text-stone-100"
|
||||||
>Organization</label
|
>Organization</label
|
||||||
@ -229,10 +229,12 @@
|
|||||||
</form>
|
</form>
|
||||||
{:else}
|
{:else}
|
||||||
<div class="text-center">
|
<div class="text-center">
|
||||||
<a href={`${source.htmlUrl}/${source.htmlUrl === 'https://github.com' ? 'apps' : 'github-apps'}/${source.githubApp.name}/installations/new`}>
|
<a
|
||||||
<button class="box-selection bg-sources text-xl font-bold"
|
href={`${source.htmlUrl}/${
|
||||||
>Install Repositories</button
|
source.htmlUrl === 'https://github.com' ? 'apps' : 'github-apps'
|
||||||
></a
|
}/${source.githubApp.name}/installations/new`}
|
||||||
|
>
|
||||||
|
<button class="box-selection bg-sources text-xl font-bold">Install Repositories</button></a
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
{/if}
|
{/if}
|
||||||
|
@ -85,7 +85,7 @@ label {
|
|||||||
@apply inline-block w-64 text-xs tracking-tight md:text-sm;
|
@apply inline-block w-64 text-xs tracking-tight md:text-sm;
|
||||||
}
|
}
|
||||||
.btn {
|
.btn {
|
||||||
@apply text-white text-base;
|
@apply text-white text-base min-w-fit h-12;
|
||||||
}
|
}
|
||||||
|
|
||||||
a {
|
a {
|
||||||
@ -196,3 +196,7 @@ a {
|
|||||||
.table *{
|
.table *{
|
||||||
border: none;
|
border: none;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
input {
|
||||||
|
@apply w-48 lg:w-96;
|
||||||
|
}
|
Loading…
x
Reference in New Issue
Block a user