mirror of
https://github.com/pockethost/pockethost.git
synced 2025-11-24 14:35:49 +00:00
enh(dashboard): update max width constraints on instance detail pages
This commit is contained in:
parent
6aad803416
commit
2a8a97e48d
@ -2,6 +2,7 @@
|
|||||||
import CodeSample from '$components/CodeSample.svelte'
|
import CodeSample from '$components/CodeSample.svelte'
|
||||||
import CardHeader from '$src/components/cards/CardHeader.svelte'
|
import CardHeader from '$src/components/cards/CardHeader.svelte'
|
||||||
import { DISCORD_URL, INSTANCE_URL } from '$src/env'
|
import { DISCORD_URL, INSTANCE_URL } from '$src/env'
|
||||||
|
import { isCnameActive } from 'pockethost/common'
|
||||||
import { instance } from './store'
|
import { instance } from './store'
|
||||||
|
|
||||||
let installSnippet = `npm i pocketbase`
|
let installSnippet = `npm i pocketbase`
|
||||||
@ -18,6 +19,7 @@
|
|||||||
});`
|
});`
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="max-w-2xl">
|
||||||
<CardHeader documentation={`/docs/accessing-instance/`}>Overview</CardHeader>
|
<CardHeader documentation={`/docs/accessing-instance/`}>Overview</CardHeader>
|
||||||
|
|
||||||
<!-- These should be p but the inside already has p -->
|
<!-- These should be p but the inside already has p -->
|
||||||
@ -33,19 +35,6 @@
|
|||||||
|
|
||||||
<div>
|
<div>
|
||||||
<p class="mb-2">Connecting to Your Instance</p>
|
<p class="mb-2">Connecting to Your Instance</p>
|
||||||
{#if $instance.cname}
|
|
||||||
{#if $instance.cname_active}
|
|
||||||
<div class="text-accent">Notice: You are in Custom Domain mode</div>
|
|
||||||
{:else}
|
|
||||||
<div class="text-error">
|
|
||||||
Notice: You are in Custom Domain mode but it is not active and will not work. Go find <a
|
|
||||||
href={DISCORD_URL}
|
|
||||||
target="_blank"
|
|
||||||
class="link"><code>.noaxis</code> on Discord</a
|
|
||||||
> to get set up.
|
|
||||||
</div>
|
|
||||||
{/if}
|
|
||||||
{/if}
|
|
||||||
<CodeSample code={connectionSnippet} />
|
<CodeSample code={connectionSnippet} />
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
@ -65,3 +54,4 @@
|
|||||||
</li>
|
</li>
|
||||||
</ul>
|
</ul>
|
||||||
</div>
|
</div>
|
||||||
|
</div>
|
||||||
|
|||||||
@ -22,6 +22,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="max-w-2xl">
|
||||||
<CardHeader documentation={`/docs/admin-sync`}>Admin Sync</CardHeader>
|
<CardHeader documentation={`/docs/admin-sync`}>Admin Sync</CardHeader>
|
||||||
|
|
||||||
<p class="mb-8">
|
<p class="mb-8">
|
||||||
@ -32,3 +33,4 @@
|
|||||||
<ErrorMessage message={errorMessage} />
|
<ErrorMessage message={errorMessage} />
|
||||||
|
|
||||||
<Toggle checked={!!syncAdmin} onChange={handleChange} />
|
<Toggle checked={!!syncAdmin} onChange={handleChange} />
|
||||||
|
</div>
|
||||||
|
|||||||
@ -63,6 +63,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="max-w-2xl">
|
||||||
<CardHeader documentation={`/docs/delete`}>Delete Instance</CardHeader>
|
<CardHeader documentation={`/docs/delete`}>Delete Instance</CardHeader>
|
||||||
|
|
||||||
{#if power}
|
{#if power}
|
||||||
@ -86,6 +87,7 @@
|
|||||||
<form class="flex change-version-form-container-query gap-4" on:submit={handleSave}>
|
<form class="flex change-version-form-container-query gap-4" on:submit={handleSave}>
|
||||||
<button type="submit" class="btn btn-error" disabled={power || isButtonDisabled}>Delete Instance</button>
|
<button type="submit" class="btn btn-error" disabled={power || isButtonDisabled}>Delete Instance</button>
|
||||||
</form>
|
</form>
|
||||||
|
</div>
|
||||||
|
|
||||||
<style>
|
<style>
|
||||||
.change-version-form-container-query {
|
.change-version-form-container-query {
|
||||||
|
|||||||
@ -20,6 +20,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="max-w-2xl">
|
||||||
<CardHeader documentation={`/docs/dev-mode`}>Dev Mode</CardHeader>
|
<CardHeader documentation={`/docs/dev-mode`}>Dev Mode</CardHeader>
|
||||||
|
|
||||||
<p class="mb-8">
|
<p class="mb-8">
|
||||||
@ -30,3 +31,4 @@
|
|||||||
<ErrorMessage message={errorMessage} />
|
<ErrorMessage message={errorMessage} />
|
||||||
|
|
||||||
<Toggle onChange={handleChange} checked={!!dev} onClass="warning" />
|
<Toggle onChange={handleChange} checked={!!dev} onClass="warning" />
|
||||||
|
</div>
|
||||||
|
|||||||
@ -15,6 +15,7 @@
|
|||||||
const ftpUrl = FTP_URL(email)
|
const ftpUrl = FTP_URL(email)
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
|
<div class="max-w-2xl">
|
||||||
<CardHeader documentation={`/docs/ftp`}>FTP Access</CardHeader>
|
<CardHeader documentation={`/docs/ftp`}>FTP Access</CardHeader>
|
||||||
<div class="mb-8">Securely access your instance files via FTPS. Use your PocketHost account login and password.</div>
|
<div class="mb-8">Securely access your instance files via FTPS. Use your PocketHost account login and password.</div>
|
||||||
|
|
||||||
@ -49,3 +50,4 @@
|
|||||||
</tr>
|
</tr>
|
||||||
</tbody>
|
</tbody>
|
||||||
</table>
|
</table>
|
||||||
|
</div>
|
||||||
|
|||||||
@ -59,7 +59,7 @@
|
|||||||
}
|
}
|
||||||
</script>
|
</script>
|
||||||
|
|
||||||
<div class="max-w-lg">
|
<div class="max-w-2xl">
|
||||||
<CardHeader documentation={`/docs/rename-instance`}>Rename Instance</CardHeader>
|
<CardHeader documentation={`/docs/rename-instance`}>Rename Instance</CardHeader>
|
||||||
|
|
||||||
<p class="mb-8">
|
<p class="mb-8">
|
||||||
|
|||||||
@ -14,6 +14,7 @@
|
|||||||
<title>{subdomain} secrets - PocketHost</title>
|
<title>{subdomain} secrets - PocketHost</title>
|
||||||
</svelte:head>
|
</svelte:head>
|
||||||
|
|
||||||
<!-- Consistency is key -->
|
<div class="max-w-2xl">
|
||||||
<CardHeader>Secrets</CardHeader>
|
<CardHeader>Secrets</CardHeader>
|
||||||
<SecretsInner />
|
<SecretsInner />
|
||||||
|
</div>
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user