mirror of
https://github.com/pockethost/pockethost.git
synced 2025-10-14 00:59:25 +00:00
Frontend FTP info page
This commit is contained in:
parent
1bdf5b4c07
commit
12b7817bc9
@ -4,6 +4,7 @@
|
|||||||
import { assertExists } from '@pockethost/common'
|
import { assertExists } from '@pockethost/common'
|
||||||
import Backup from './Backup.svelte'
|
import Backup from './Backup.svelte'
|
||||||
import Code from './Code.svelte'
|
import Code from './Code.svelte'
|
||||||
|
import Ftp from './Ftpx.svelte'
|
||||||
import Overview from './Overview.svelte'
|
import Overview from './Overview.svelte'
|
||||||
import Restore from './Restore.svelte'
|
import Restore from './Restore.svelte'
|
||||||
import { instance } from './store'
|
import { instance } from './store'
|
||||||
@ -19,6 +20,7 @@
|
|||||||
</svelte:head>
|
</svelte:head>
|
||||||
{#if $instance}
|
{#if $instance}
|
||||||
<Overview instance={$instance} />
|
<Overview instance={$instance} />
|
||||||
|
<Ftp instance={$instance} />
|
||||||
<Code instance={$instance} />
|
<Code instance={$instance} />
|
||||||
<Backup instance={$instance} />
|
<Backup instance={$instance} />
|
||||||
<Restore instance={$instance} />
|
<Restore instance={$instance} />
|
||||||
|
@ -0,0 +1,44 @@
|
|||||||
|
<script lang="ts">
|
||||||
|
import { PUBLIC_APP_DOMAIN } from '$src/env'
|
||||||
|
import type { InstanceFields } from '@pockethost/common'
|
||||||
|
|
||||||
|
export let instance: InstanceFields
|
||||||
|
|
||||||
|
const { subdomain } = instance
|
||||||
|
const ftpUrl = `ftp://${subdomain}.${PUBLIC_APP_DOMAIN}`
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<div class="py-4">
|
||||||
|
<h2>FTP Access</h2>
|
||||||
|
<div>
|
||||||
|
Securely access your instance files via <a href={ftpUrl}>{ftpUrl}</a>. Use your PocketHost
|
||||||
|
account login and password.
|
||||||
|
<table>
|
||||||
|
<thead><tr><th>Directory</th><th>Description</th></tr></thead>
|
||||||
|
<tr>
|
||||||
|
<th>pb_data</th><td>The PocketBase data directory</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>pb_static</th><td>Static files, such as a web frontend</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>backups</th><td>Location of tgz backups made using this UI</td>
|
||||||
|
</tr>
|
||||||
|
<tr>
|
||||||
|
<th>workers</th><td>Deno workers (cloud TS/JS functions)</td>
|
||||||
|
</tr>
|
||||||
|
</table>
|
||||||
|
</div>
|
||||||
|
</div>
|
||||||
|
|
||||||
|
<style lang="scss">
|
||||||
|
table {
|
||||||
|
margin: 10px;
|
||||||
|
td,
|
||||||
|
tr,
|
||||||
|
th {
|
||||||
|
border: 2px solid rgb(92, 92, 157);
|
||||||
|
padding: 5px;
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
Loading…
x
Reference in New Issue
Block a user