chore: repo reorganize

This commit is contained in:
Ben Allfree 2023-11-01 21:27:41 -07:00
parent 5693040cf6
commit edc9069f44
574 changed files with 176474 additions and 24323 deletions

View File

@ -1,103 +1,23 @@
# ===========
# This environment variable template is the canonical source for all environment variables used by PocketHost.
# PocketHost relies upon environment variables rather than prop drilling where possible.
# ===========
# This is the porject root (where the .env file lives)
ROOT="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
# Do this so these actually export as environment variables, not just shell variables
set -a
# ==============
# PUBLIC variables are available and visible to the frontends
# The defaults shown here will invoke LOCAL development modes. If they are not specified,
# the frontends will default to the production environment.
#
# To create prduction builds, simply omit these, or if you have a special need, supply
# the custom values here.
# ==============
# The global debugging flag, used by frontend and backend. This will enable debug-level
# logging on all fronts
PUBLIC_DEBUG=true
# https or http, as you wish
PUBLIC_HTTP_PROTOCOL=https
# The apex domain for the whole site.
PUBLIC_APEX_DOMAIN=pockethost.lvh.me
#--------------
# You typically won't need to change these, unless you have a very specific setup
# https://<PUBLIC_APEX_DOMAIN> - marketing/lander
# https://app.<PUBLIC_APEX_DOMAIN> - dashboard
# https://pockethost-central.<PUBLIC_APEX_DOMAIN> - mothership
# https://*.edge.<PUBLIC_APEX_DOMAIN> - edge workers
#--------------
# The domain name the dashboard app
PUBLIC_APP_DOMAIN=app.$PUBLIC_APEX_DOMAIN
# The domain name for the marketing/blog domain
PUBLIC_BLOG_DOMAIN=$PUBLIC_APEX_DOMAIN
# The apex domain for the daemon
PUBLIC_EDGE_APEX_DOMAIN=edge.$PUBLIC_APEX_DOMAIN
# The URL of the central PocketHost database. This is both a subdomain and a file name.
PUBLIC_MOTHERSHIP_URL=$PUBLIC_HTTP_PROTOCOL://pockethost-central.$PUBLIC_APEX_DOMAIN
# =========
# Mothership variables (private)
# =========
# The path to the root directory where all PocketHost data is stored for all users
DAEMON_PB_DATA_DIR=$ROOT/.data
# The path to the migrations directory where the PocketHost mothership can find its migrations.
# Typically, this is separate from the other instances since it's under source control.
DAEMON_PB_MIGRATIONS_DIR=$ROOT/packages/daemon/migrations
# The path to the hooks directory where the PocketHost mothership can find its hooks.
# Typically, this is separate from the other instances since it's under source control.
DAEMON_PB_HOOKS_DIR=$ROOT/packages/daemon/pb_hooks
# The username and password of the admin account PocketHost will use to perform
# privileged backend operations
DAEMON_PB_USERNAME=admin@pockethost.lvh.me
DAEMON_PB_PASSWORD=admin@pockethost.lvh.me
# The port the daemon listens on
DAEMON_PORT=80
# The port the mothership listens on
DAEMON_PB_PORT=8090
# The timeout after which instances will be shut down.
APP_URL=https://app.pockethost.io
BLOG_URL=https://pockethost.io
HTTP_PROTOCOL=https:
APEX_DOMAIN=pockethost.io
DEBUG=false
MOTHERSHIP_ADMIN_USERNAME=
MOTHERSHIP_ADMIN_PASSWORD=
IPCIDR_LIST=
DAEMON_PORT=3000
MOTHERSHIP_PORT=8091
DAEMON_PB_IDLE_TTL=5000
# Limit the PocketBase versions available, or leave blank to allow all versions
DAEMON_PB_SEMVER=
# IPCIDR settings - Use these to only allow Cloudflare access
DAEMON_IPCIDR_LIST=173.245.48.0/20,103.21.244.0/22,103.22.200.0/22,103.31.4.0/22,141.101.64.0/18,108.162.192.0/18,190.93.240.0/20,188.114.96.0/20,197.234.240.0/22,198.41.128.0/17,162.158.0.0/15,104.16.0.0/13,104.24.0.0/14,172.64.0.0/13,131.0.72.0/22
# SSL key used for HTTP proxy and FTP daemon
SSL_KEY=$ROOT/ssl/pockethost.test.key
SSL_CERT=$ROOT/ssl/pockethost.test.crt
# Path to where the PocketBase binaries are cached
PH_BIN_CACHE=$ROOT/.pbincache
# FTP settings
MOTHERSHIP_MIGRATIONS_DIR=/path/to/dist/mothership-app/migrations
MOTHERSHIP_HOOKS_DIR=/path/to/dist/mothership-app/pb_hooks
DAEMON_DATA_ROOT=/path/to/.data
DAEMON_INITIAL_PORT_POOL_SIZE=20
PH_BIN_CACHE=/path/to/.pbincache
PH_FTP_PORT=21
SSL_KEY=/path/to/pockethost.key
SSL_CERT=/path/to/pockethost.crt
PH_FTP_PASV_IP=0.0.0.0
PH_FTP_PASV_PORT_MIN=10000
PH_FTP_PASV_PORT_MAX=20000
set +a
MOTHERSHIP_SEMVER=

View File

@ -11,41 +11,30 @@ jobs:
- name: Checkout
uses: actions/checkout@v3
- name: Use Node.js ${{ matrix.node-version }}
uses: actions/setup-node@v3
with:
node-version: 20.x
- name: Prepare build
run: |
yarn install
yarn lint
yarn build
- name: Get changed www files
id: changed-www-files
- name: Get changed lander files
id: changed-lander-files
uses: tj-actions/changed-files@v35
with:
files: |
packages/www/**
dist/lander/**
- name: Get changed dashboard files
id: changed-dashboard-files
uses: tj-actions/changed-files@v35
with:
files: |
packages/dashboard/**
dist/dashboard/**
- name: Publish www to Cloudflare Pages
- name: Publish lander to Cloudflare Pages
uses: cloudflare/pages-action@v1
if: steps.changed-www-files.outputs.any_changed == 'true'
id: www_deploy
if: steps.changed-lander-files.outputs.any_changed == 'true'
id: lander_deploy
with:
apiToken: ${{ secrets.CLOUDFLARE_API_TOKEN }}
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: pockethost
directory: ./packages/www/_site
directory: ./dist/lander
branch: ${{ github.head_ref || github.ref_name }}
wranglerVersion: '3'
@ -58,7 +47,7 @@ jobs:
gitHubToken: ${{ secrets.GITHUB_TOKEN }}
accountId: ${{ secrets.CLOUDFLARE_ACCOUNT_ID }}
projectName: pockethost-dashboard
directory: ./packages/dashboard/build
directory: ./dist/dashboard
branch: ${{ github.head_ref || github.ref_name }}
wranglerVersion: '3'
@ -73,13 +62,13 @@ jobs:
with:
args: '**PREVIEW** ${{ steps.dashboard_deploy.outputs.url }} was generated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}) with memo `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'
- name: Discord feature branch notification for www
if: github.ref_name != 'master' && steps.changed-www-files.outputs.any_changed == 'true'
- name: Discord feature branch notification for lander
if: github.ref_name != 'master' && steps.changed-lander-files.outputs.any_changed == 'true'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: '**PREVIEW** ${{ steps.www_deploy.outputs.url }} was generated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}) with memo `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'
args: '**PREVIEW** ${{ steps.lander_deploy.outputs.url }} was generated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}) with memo `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'
- name: Discord live branch notification for dashboard
if: github.ref_name == 'master' && steps.changed-dashboard-files.outputs.any_changed == 'true'
@ -89,10 +78,10 @@ jobs:
with:
args: '**LIVE** https://app.pockethost.io ([permalink](${{ steps.dashboard_deploy.outputs.url }})) was updated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}): `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'
- name: Discord live branch notification for www
if: github.ref_name == 'master' && steps.changed-www-files.outputs.any_changed == 'true'
- name: Discord live branch notification for lander
if: github.ref_name == 'master' && steps.changed-lander-files.outputs.any_changed == 'true'
env:
DISCORD_WEBHOOK: ${{ secrets.DISCORD_WEBHOOK }}
uses: Ilshidur/action-discord@master
with:
args: '**LIVE** https://pockethost.io ([permalink](${{ steps.www_deploy.outputs.url }})) was updated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}): `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'
args: '**LIVE** https://pockethost.io ([permalink](${{ steps.lander_deploy.outputs.url }})) was updated by ${{ github.actor }} in [${{ env.GIT_COMMIT_SHORT_SHA }}](https://github.com/${{ github.repository}}/commit/${{ github.sha }}) on [${{ github.repository}}#${{ github.ref_name }}](https://github.com/${{ github.repository}}/tree/${{ github.ref_name }}): `${{ env.GIT_COMMIT_MESSAGE_SUBJECT }}`'

3
.gitignore vendored
View File

@ -10,4 +10,5 @@
.pbincache
osx
pocketbase
.svelte-kit
.svelte-kit
live-data

View File

@ -1,43 +0,0 @@
# ================
# Marketing/blog
# ================
pockethost.lvh.me {
reverse_proxy localhost:8080
tls internal
}
# ================
# Dashboard
# ================
app.pockethost.lvh.me {
reverse_proxy localhost:5173
tls internal
}
# ================
# Mothership
# ================
pockethost-central.pockethost.lvh.me {
reverse_proxy localhost:8091
tls internal
log {
output stdout
level DEBUG
}
}
# ================
# Edgeworker
# ================
*.pockethost.lvh.me {
reverse_proxy localhost:3000
tls internal
log {
output stdout
level DEBUG
}
}

View File

@ -1,16 +0,0 @@
---
to: packages/www/content/blog/<%= version %>.md
---
<%
%>
---
title: <%= title %>
date: <%= new Date().toISOString() %>
description: <%= description %>
---
[PocketHost](https://pockethost.io), the zero-config PocketBase hosting platform, has reached version <%=version%>.
<%= body %>
<%= subjectMatter %>

View File

@ -1,89 +0,0 @@
const { join } = require('path')
const { cwd } = require('process')
// my-generator/my-action/index.js
module.exports = {
prompt: async ({ prompter, args }) => {
const { execSync } = require('child_process')
const { default: ora } = await import('ora')
const { default: chalk } = await import('chalk')
const { factory } = await import(`rizzdown`)
const commitsSinceLast = execSync(
`git log $(git describe --tags --abbrev=0)..HEAD --oneline`,
)
.toString()
.replace(/^\S+?\s/gm, '')
.split(/\n/)
.filter((v) => !!v)
console.log(`Commits since last release:`)
commitsSinceLast.forEach((line) => console.log(` * ${line}`))
const { releaseType } = await prompter.prompt({
type: 'select',
name: 'releaseType',
choices: ['major', 'minor', 'patch'],
message: `What type of release is this?`,
initial: 2,
})
execSync(`yarn version --no-git-tag-version --${releaseType}`)
const version = require(join(cwd(), './package.json')).version
console.log(
`Great, a ${releaseType} release. The new version will be ${version}.`,
)
const summaries = []
for (i = 0; i < commitsSinceLast.length; i++) {
const commit = commitsSinceLast[i]
const { summary } = await prompter.prompt({
type: 'input',
name: 'summary',
message: `Please summarize this commit log (enter to leave as is):`,
initial: commit,
})
summaries.push(summary)
}
const profilePath = join(cwd(), `.rizzdown/blog`)
const subjectMatter = `
# Change Log
* Version ${version} (${releaseType})
${summaries.map((commit) => `* ${commit}`).join('\n')}
`
const { generate } = factory({ profilePath, subjectMatter })
const spin = async (title, prompt) => {
const spinner = ora().start(title)
const res = await generate(prompt)
spinner.stopAndPersist({ symbol: chalk.green(`✔︎`) })
return res
}
const title = await spin(
`Generating title...`,
`A title for this blog post, no more than 10 words. No exaggerations or puffery. Factual.`,
)
const description = await spin(
`Generating OpenGraph description...`,
`An OpenGraph summary/description for this blog post, no more than 50 words. A call to action. Factual.`,
)
const body = await spin(
`Generating body...`,
`A single paragraph digest of the change log, between 50-100 words, factual and dry.`,
)
return {
commitsSinceLast,
subjectMatter,
version,
releaseType,
title,
description,
body,
}
},
}

View File

@ -1,33 +0,0 @@
---
to: packages/common/src/schema/<%= name %>.ts
---
<%
const { changeCase, inflection } = h
const { dasherize } = inflection
const { upper, camel, pascal, snake, lower } = changeCase
const nameName = camel(name)
const NameName = pascal(name)
const NAME_NAME = upper(snake(NameName))
const name_name = lower(NAME_NAME)
const dashName = dasherize(name_name)
h.replace('./packages/common/src/schema/index.ts', /\/\/ gen:export/, `export * from './${NameName}'\n // gen:export`);
%>
import { BaseFields, RecordId } from './types'
export const <%=NAME_NAME> = '<%=dashName%>'
export type <%=NameName%>Id = string
export type <%=NameName%>Collection = {
[name: <%=NameName%>Id]: <%=NameName%>Fields
}
export type <%=NameName%>Fields = BaseFields & {
userCount: number
instanceCount: number
}
export type <%=NameName%>Fields_Create = Omit<<%=NameName%>Fields, keyof BaseFields>
export type <%=NameName%>ById = { [_: RecordId]: <%=NameName%>Fields }

View File

@ -1,5 +0,0 @@
---
message: |
hygen {bold generator new} --name [NAME] --action [ACTION]
hygen {bold generator with-prompt} --name [NAME] --action [ACTION]
---

View File

@ -1,18 +0,0 @@
---
to: _templates/<%= name %>/<%= action || 'new' %>/hello.ejs.t
---
---
to: app/hello.js
---
const hello = ```
Hello!
This is your first hygen template.
Learn what it can do here:
https://github.com/jondot/hygen
```
console.log(hello)

View File

@ -1,18 +0,0 @@
---
to: _templates/<%= name %>/<%= action || 'new' %>/hello.ejs.t
---
---
to: app/hello.js
---
const hello = ```
Hello!
This is your first prompt based hygen template.
Learn what it can do here:
https://github.com/jondot/hygen
```
console.log(hello)

View File

@ -1,14 +0,0 @@
---
to: _templates/<%= name %>/<%= action || 'new' %>/prompt.js
---
// see types of prompts:
// https://github.com/enquirer/enquirer/tree/master/examples
//
module.exports = [
{
type: 'input',
name: 'message',
message: "What's your message?"
}
]

View File

@ -1,4 +0,0 @@
---
setup: <%= name %>
force: true # this is because mostly, people init into existing folders is safe
---

View File

@ -1,104 +0,0 @@
---
to: packages/common/src/schema/Rpc/<%= name %>.ts
---
<%
const { changeCase, inflection } = h
const { dasherize } = inflection
const { upper, camel, pascal, snake, lower } = changeCase
const nameName = camel(name)
const NameName = pascal(name)
const NAME_NAME = upper(snake(NameName))
const name_name = lower(NAME_NAME)
const dashName = dasherize(name_name)
h.replace('./packages/common/src/schema/Rpc/index.ts', /\/\/ gen:enum/, `${NameName} = '${dashName}',\n // gen:enum`);
h.replace('./packages/common/src/schema/Rpc/index.ts', /\/\/ gen:commandlist/, `RpcCommands.${NameName},\n // gen:commandlist`);
h.replace('./packages/common/src/schema/Rpc/index.ts', /\/\/ gen:export/, `export * from './${NameName}'\n// gen:export`);
h.replace('./packages/dashboard/src/pocketbase/PocketbaseClient.ts', /\/\/ gen:import/, `
${NameName}PayloadSchema,
type ${NameName}Payload,
type ${NameName}Result,
// gen:import
`);
h.replace('./packages/dashboard/src/pocketbase/PocketbaseClient.ts', /\/\/ gen:export/, `
${nameName},
// gen:export
`);
h.replace('./packages/dashboard/src/pocketbase/PocketbaseClient.ts', /\/\/ gen:mkRpc/, `
const ${nameName} = mkRpc<${NameName}Payload, ${NameName}Result>(
RpcCommands.${NameName},
${NameName}PayloadSchema
)
// gen:mkRpc`);
h.replace('./packages/daemon/src/services/RpcService/commands.ts', /\/\/ gen:import/, `
${NameName}PayloadSchema,
type ${NameName}Payload,
type ${NameName}Result,
// gen:import`);
h.replace('./packages/daemon/src/services/RpcService/commands.ts', /\/\/ gen:command/, `
/*
Write an async command here.
To return an error, simply throw an exception. That will propagate back
up through the RPC stack and return an error to the client.
*/
registerCommand<${NameName}Payload, ${NameName}Result>(
RpcCommands.${NameName},
${NameName}PayloadSchema,
async (job) => {
const { payload } = job
const { instanceId, items } = payload
await client.updateInstance(instanceId, {
/* Whatever fields you want to update */
})
// Return anything you'd like here, it must be compatible with the ${NameName}Result type.
return { }
}
)
// gen:command`);
%>
import { JSONSchemaType } from 'ajv'
import { InstanceId } from '../types'
export type <%=NameName%>Payload = {
instanceId: InstanceId
items: {
[_: string]: string
}
}
/*
This result can stay empty, it is intended only to hold the result of a successful RPC
*/
export type <%=NameName%>Result = {
}
export const <%=NAME_NAME%>_REGEX = /^[A-Z][A-Z0-9_]*$/
export const <%=NameName%>PayloadSchema: JSONSchemaType<<%=NameName%>Payload> = {
type: 'object',
properties: {
instanceId: { type: 'string' },
items: {
type: 'object',
patternProperties: {
[<%=NAME_NAME%>_REGEX.source]: {
anyOf: [{ type: 'string' }],
},
},
required: [],
},
},
required: ['instanceId', 'items'],
additionalProperties: false,
}

View File

@ -1,33 +0,0 @@
---
to: packages/daemon/src/services/<%= name %>Service.ts
---
<%
const { changeCase, inflection } = h
const { dasherize } = inflection
const { upper, camel, pascal, snake, lower } = changeCase
const nameName = camel(name)
const NameName = pascal(name)
const NAME_NAME = upper(snake(NameName))
const name_name = lower(NAME_NAME)
const dashName = dasherize(name_name)
h.replace('./packages/daemon/src/server.ts', /\/\/ gen:import/, `import { ${nameName}Service } from './services/${NameName}Service'\n // gen:import`);
h.replace('./packages/daemon/src/server.ts', /\/\/ gen:service/, `await ${nameName}Service({ logger })\n // gen:service`);
%>
import { mkSingleton, SingletonBaseConfig } from '@pockethost/common'
export type <%=NameName%>ServiceConfig = SingletonBaseConfig & {}
export const <%=nameName%>Service = mkSingleton(
async (config: <%=NameName%>ServiceConfig) => {
const { logger } = config
const _serviceLogger = logger.create('<%=NameName%>Service')
const { dbg, error, warn, abort } = _serviceLogger
dbg(`Initializing <%=NameName%>Service`)
return {
shutdown: async () => {},
}
}
)

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
.gif.svelte-14rxcuv{max-width:600px;margin:0 auto}

View File

@ -0,0 +1 @@
textarea.svelte-w8w2mp{left:0;bottom:0;margin:0;padding:0;opacity:0;width:1px;height:1px;border:none;display:block;position:absolute}.langtag.svelte-11sh29b{position:relative}.langtag.svelte-11sh29b:after{content:attr(data-language);position:absolute;top:0;right:0;padding:1em;display:flex;align-items:center;justify-content:center;background:var(--langtag-background, inherit);color:var(--langtag-color, inherit);border-radius:var(--langtag-border-radius)}.copy-container.svelte-htrzt7.svelte-htrzt7{position:relative;margin:5px;border-radius:16px;overflow:hidden}.copy-container.svelte-htrzt7 .copy-button.svelte-htrzt7{position:absolute;top:8px;right:8px}.rename-instance-form-container-query.svelte-uw0ezq{flex-direction:column}@container (min-width: 400px){.rename-instance-form-container-query.svelte-uw0ezq{flex-direction:row}}.change-version-form-container-query.svelte-x4v70q{flex-direction:column}@container (min-width: 400px){.change-version-form-container-query.svelte-x4v70q{flex-direction:row}}.inset-center.svelte-dgsrqb{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}

View File

@ -0,0 +1 @@
.gif.svelte-14rxcuv{max-width:600px;margin:0 auto}

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
textarea.svelte-w8w2mp{left:0;bottom:0;margin:0;padding:0;opacity:0;width:1px;height:1px;border:none;display:block;position:absolute}.langtag.svelte-11sh29b{position:relative}.langtag.svelte-11sh29b:after{content:attr(data-language);position:absolute;top:0;right:0;padding:1em;display:flex;align-items:center;justify-content:center;background:var(--langtag-background, inherit);color:var(--langtag-color, inherit);border-radius:var(--langtag-border-radius)}.copy-container.svelte-htrzt7.svelte-htrzt7{position:relative;margin:5px;border-radius:16px;overflow:hidden}.copy-container.svelte-htrzt7 .copy-button.svelte-htrzt7{position:absolute;top:8px;right:8px}.rename-instance-form-container-query.svelte-uw0ezq{flex-direction:column}@container (min-width: 400px){.rename-instance-form-container-query.svelte-uw0ezq{flex-direction:row}}.change-version-form-container-query.svelte-x4v70q{flex-direction:column}@container (min-width: 400px){.change-version-form-container-query.svelte-x4v70q{flex-direction:row}}.inset-center.svelte-dgsrqb{position:absolute;top:50%;left:50%;transform:translate(-50%,-50%)}

View File

@ -0,0 +1 @@
import{s as N,r as y,f as b,g,h as k,d as c,j as _,k as G,i as v,u as w,v as B,w as C,a as S,e as I,c as V,l as J,m as K,y as p}from"./scheduler.de195056.js";import{S as z,i as A,a as h,t as d,g as j,c as q}from"./index.c6f2ad36.js";function L(n){let s,a,f;const l=n[4].default,t=y(l,n,n[3],null);return{c(){s=b("div"),t&&t.c(),this.h()},l(e){s=g(e,"DIV",{class:!0,style:!0});var i=k(s);t&&t.l(i),i.forEach(c),this.h()},h(){_(s,"class",a="card card-body bg-base-200 "+(n[0]?"block":"")+" "+n[1]+" "+n[2]),G(s,"container-type","inline-size")},m(e,i){v(e,s,i),t&&t.m(s,null),f=!0},p(e,[i]){t&&t.p&&(!f||i&8)&&w(t,l,e,e[3],f?C(l,e[3],i,null):B(e[3]),null),(!f||i&7&&a!==(a="card card-body bg-base-200 "+(e[0]?"block":"")+" "+e[1]+" "+e[2]))&&_(s,"class",a)},i(e){f||(h(t,e),f=!0)},o(e){d(t,e),f=!1},d(e){e&&c(s),t&&t.d(e)}}}function M(n,s,a){let{$$slots:f={},$$scope:l}=s,{block:t=!0}=s,{height:e="h-full"}=s,{marginBottom:i=""}=s;return n.$$set=u=>{"block"in u&&a(0,t=u.block),"height"in u&&a(1,e=u.height),"marginBottom"in u&&a(2,i=u.marginBottom),"$$scope"in u&&a(3,l=u.$$scope)},[t,e,i,l,f]}class T extends z{constructor(s){super(),A(this,s,M,L,N,{block:0,height:1,marginBottom:2})}}function D(n){let s,a,f,l,t,e,i;const u=n[2].default,r=y(u,n,n[1],null);return{c(){s=b("div"),a=b("h3"),r&&r.c(),f=S(),l=b("a"),t=J("Full documentation "),e=b("i"),this.h()},l(o){s=g(o,"DIV",{class:!0});var m=k(s);a=g(m,"H3",{class:!0});var H=k(a);r&&r.l(H),H.forEach(c),f=V(m),l=g(m,"A",{href:!0,class:!0});var E=k(l);t=K(E,"Full documentation "),e=g(E,"I",{class:!0}),k(e).forEach(c),E.forEach(c),m.forEach(c),this.h()},h(){_(a,"class","text-xl font-bold"),_(e,"class","fa-regular fa-arrow-up-right-from-square opacity-50 text-sm"),_(l,"href",n[0]),_(l,"class","btn btn-sm btn-outline btn-primary"),_(s,"class","flex items-center justify-between mb-4 flex-wrap gap-2")},m(o,m){v(o,s,m),p(s,a),r&&r.m(a,null),p(s,f),p(s,l),p(l,t),p(l,e),i=!0},p(o,m){r&&r.p&&(!i||m&2)&&w(r,u,o,o[1],i?C(u,o[1],m,null):B(o[1]),null),(!i||m&1)&&_(l,"href",o[0])},i(o){i||(h(r,o),i=!0)},o(o){d(r,o),i=!1},d(o){o&&c(s),r&&r.d(o)}}}function F(n){let s,a;const f=n[2].default,l=y(f,n,n[1],null);return{c(){s=b("h3"),l&&l.c(),this.h()},l(t){s=g(t,"H3",{class:!0});var e=k(s);l&&l.l(e),e.forEach(c),this.h()},h(){_(s,"class","text-xl font-bold mb-4")},m(t,e){v(t,s,e),l&&l.m(s,null),a=!0},p(t,e){l&&l.p&&(!a||e&2)&&w(l,f,t,t[1],a?C(f,t[1],e,null):B(t[1]),null)},i(t){a||(h(l,t),a=!0)},o(t){d(l,t),a=!1},d(t){t&&c(s),l&&l.d(t)}}}function O(n){let s,a,f,l=n[0]&&D(n),t=!n[0]&&F(n);return{c(){l&&l.c(),s=S(),t&&t.c(),a=I()},l(e){l&&l.l(e),s=V(e),t&&t.l(e),a=I()},m(e,i){l&&l.m(e,i),v(e,s,i),t&&t.m(e,i),v(e,a,i),f=!0},p(e,[i]){e[0]?l?(l.p(e,i),i&1&&h(l,1)):(l=D(e),l.c(),h(l,1),l.m(s.parentNode,s)):l&&(j(),d(l,1,1,()=>{l=null}),q()),e[0]?t&&(j(),d(t,1,1,()=>{t=null}),q()):t?(t.p(e,i),i&1&&h(t,1)):(t=F(e),t.c(),h(t,1),t.m(a.parentNode,a))},i(e){f||(h(l),h(t),f=!0)},o(e){d(l),d(t),f=!1},d(e){e&&(c(s),c(a)),l&&l.d(e),t&&t.d(e)}}}function P(n,s,a){let{$$slots:f={},$$scope:l}=s,{documentation:t=""}=s;return n.$$set=e=>{"documentation"in e&&a(0,t=e.documentation),"$$scope"in e&&a(1,l=e.$$scope)},[t,l,f]}class U extends z{constructor(s){super(),A(this,s,P,O,N,{documentation:0})}}export{T as C,U as a};

View File

@ -0,0 +1 @@
import{s as L,f as m,a as p,l as w,g as u,h as x,c as y,m as b,d as f,I as k,j as a,i as H,y as d,C as v}from"./scheduler.de195056.js";import{S as T,i as W}from"./index.c6f2ad36.js";function j(h){let t,e,n,i,l,c,g,r;return{c(){t=m("div"),e=m("img"),l=p(),c=m("h1"),g=w("PocketHost"),this.h()},l(o){t=u(o,"DIV",{class:!0});var s=x(t);e=u(s,"IMG",{src:!0,width:!0,height:!0,class:!0,alt:!0}),l=y(s),c=u(s,"H1",{class:!0});var _=x(c);g=b(_,"PocketHost"),_.forEach(f),s.forEach(f),this.h()},h(){k(e.src,n="/images/pockethost-cloud-logo.jpg")||a(e,"src",n),a(e,"width","450"),a(e,"height","450"),a(e,"class",i="mix-blend-lighten "+h[1]),a(e,"alt","PocketHost Logo"),a(c,"class",r="text-white font-bold text-2xl "+(h[0]&&"sr-only")),a(t,"class","flex items-center justify-center gap-4")},m(o,s){H(o,t,s),d(t,e),d(t,l),d(t,c),d(c,g)},p(o,[s]){s&2&&i!==(i="mix-blend-lighten "+o[1])&&a(e,"class",i),s&1&&r!==(r="text-white font-bold text-2xl "+(o[0]&&"sr-only"))&&a(c,"class",r)},i:v,o:v,d(o){o&&f(t)}}}function I(h,t,e){let{hideLogoText:n=!1}=t,{logoWidth:i="w-24"}=t;return h.$$set=l=>{"hideLogoText"in l&&e(0,n=l.hideLogoText),"logoWidth"in l&&e(1,i=l.logoWidth)},[n,i]}class C extends T{constructor(t){super(),W(this,t,I,j,L,{hideLogoText:0,logoWidth:1})}}export{C as L};

View File

@ -0,0 +1 @@
import{s as p,e as u,i as $,d as g,z as _,r as h,u as b,v as k,w as I}from"./scheduler.de195056.js";import{S,i as A,a as o,g as w,t as f,c as z,b as L,d as N,m as q,e as C}from"./index.c6f2ad36.js";import{c as U,i as G}from"./stores.a280ff67.js";function m(n){let s;const i=n[2].default,e=h(i,n,n[1],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,l){e&&e.m(t,l),s=!0},p(t,l){e&&e.p&&(!s||l&2)&&b(e,i,t,t[1],s?I(i,t[1],l,null):k(t[1]),null)},i(t){s||(o(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function j(n){let s,i,e=n[0]&&m(n);return{c(){e&&e.c(),s=u()},l(t){e&&e.l(t),s=u()},m(t,l){e&&e.m(t,l),$(t,s,l),i=!0},p(t,[l]){t[0]?e?(e.p(t,l),l&1&&o(e,1)):(e=m(t),e.c(),o(e,1),e.m(s.parentNode,s)):e&&(w(),f(e,1,1,()=>{e=null}),z())},i(t){i||(o(e),i=!0)},o(t){f(e),i=!1},d(t){t&&g(s),e&&e.d(t)}}}function y(n,s,i){let e;_(n,U,a=>i(0,e=a));let{$$slots:t={},$$scope:l}=s;return n.$$set=a=>{"$$scope"in a&&i(1,l=a.$$scope)},[e,l,t]}class B extends S{constructor(s){super(),A(this,s,y,j,p,{})}}function d(n){let s;const i=n[3].default,e=h(i,n,n[4],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,l){e&&e.m(t,l),s=!0},p(t,l){e&&e.p&&(!s||l&16)&&b(e,i,t,t[4],s?I(i,t[4],l,null):k(t[4]),null)},i(t){s||(o(e,t),s=!0)},o(t){f(e,t),s=!1},d(t){e&&e.d(t)}}}function D(n){let s,i,e=n[0]&&d(n);return{c(){e&&e.c(),s=u()},l(t){e&&e.l(t),s=u()},m(t,l){e&&e.m(t,l),$(t,s,l),i=!0},p(t,l){t[0]?e?(e.p(t,l),l&1&&o(e,1)):(e=d(t),e.c(),o(e,1),e.m(s.parentNode,s)):e&&(w(),f(e,1,1,()=>{e=null}),z())},i(t){i||(o(e),i=!0)},o(t){f(e),i=!1},d(t){t&&g(s),e&&e.d(t)}}}function E(n){let s,i;return s=new B({props:{$$slots:{default:[D]},$$scope:{ctx:n}}}),{c(){L(s.$$.fragment)},l(e){N(s.$$.fragment,e)},m(e,t){q(s,e,t),i=!0},p(e,[t]){const l={};t&17&&(l.$$scope={dirty:t,ctx:e}),s.$set(l)},i(e){i||(o(s.$$.fragment,e),i=!0)},o(e){f(s.$$.fragment,e),i=!1},d(e){C(s,e)}}}function F(n,s,i){let e,t;_(n,G,r=>i(0,e=r)),_(n,U,r=>i(2,t=r));let{$$slots:l={},$$scope:a}=s,{redirect:c=!1}=s;return n.$$set=r=>{"redirect"in r&&i(1,c=r.redirect),"$$scope"in r&&i(4,a=r.$$scope)},n.$$.update=()=>{n.$$.dirty&7&&t&&c&&!e&&(window.location.href="/")},[e,c,t,l,a]}class M extends S{constructor(s){super(),A(this,s,F,E,p,{redirect:1})}}export{B as A,M as U};

View File

@ -0,0 +1 @@
import{j as L}from"./singletons.430f5ae5.js";import{c as r,L as m}from"./index.56f88796.js";const u=L("goto"),i=(t,a)=>{const{parseError:n}=r(),{dbg:o,error:e,warn:c}=m();if(e(`Form error: ${t}`,{error:t}),a){const d=n(t)[0];a(d||"Unknown message")}else throw t},y=async(t,a,n,o=!0)=>{const{authViaEmail:e}=r();n==null||n("");try{await e(t,a),o&&await u("/")}catch(c){if(!(c instanceof Error))throw new Error(`Expected Error type here, but got ${typeof c}:${c}`);i(c,n)}},$=async(t,a,n)=>{const{createUser:o}=r();n==null||n("");try{await o(t,a)}catch(e){i(e,n)}},I=async(t,a)=>{const{confirmVerification:n}=r();a==null||a("");try{await n(t),window.location.href="/"}catch(o){i(o,a)}return!1},P=async(t,a)=>{const{requestPasswordReset:n}=r();a==null||a("");try{return await n(t)}catch(o){i(o,a)}return!1},U=async(t,a,n)=>{const{requestPasswordResetConfirm:o}=r();n==null||n("");try{await o(t,a),await u("/")}catch(e){i(e,n)}return!1},b=async(t,a)=>{const{user:n,createInstance:o}=r(),{id:e}=n()||{};try{if(!t)throw new Error("Instance name is required");if(!e)throw new Error("Must be logged in to create an instance");const c=await o({subdomain:t});await u(`/app/instances/${c.instance.id}`)}catch(c){i(c,a)}},A=async(t,a,n,o=e=>{})=>{const{dbg:e,error:c,warn:d}=m(),{user:p,parseError:l}=r();try{await y(t,a,void 0,!1).then(()=>{e(`Account ${t} already exists. Logged in.`)}).catch(s=>(d("Login failed, attempting account creation."),$(t,a).then(()=>(e("Account created, proceeding to log in."),y(t,a,void 0,!1).then(()=>{e("Logged in after account creation")}).catch(h=>{throw c("Panic, auth system down"),new Error("Login system is currently down. Please contact us so we can fix this.")}))).catch(h=>{d("User input error");const w=l(h);throw new Error(`Account creation: ${w[0]}`)}))),e("User before instance creation is ",p()),await b(n).then(()=>{e(`Creation of ${n} succeeded`)}).catch(s=>{var w,f,g;if(d(`Creation of ${n} failed`),((g=(f=(w=s.data)==null?void 0:w.data)==null?void 0:f.subdomain)==null?void 0:g.code)==="validation_not_unique")throw new Error("Instance name already taken.");const h=l(s);throw new Error(`Instance creation: ${h[0]}`)})}catch(s){s("Caught widget error",{error:s}),i(s,o)}},q=async(t=a=>{})=>{const{resendVerificationEmail:a}=r();try{await a()}catch(n){i(n,t)}},C=()=>{const{logOut:t}=r();t()},x=()=>{C(),window.location.href="/"};export{y as a,A as b,q as c,b as d,I as e,P as f,U as g,x as h,$ as i,i as j};

View File

@ -0,0 +1 @@
function u(n){return(n==null?void 0:n.length)!==void 0?n:Array.from(n)}export{u as e};

View File

@ -0,0 +1 @@
import{V as h}from"./scheduler.de195056.js";function f(p){const a=p-1;return a*a*a+1}function v(p,{delay:a=0,duration:i=400,easing:s=h}={}){const n=+getComputedStyle(p).opacity;return{delay:a,duration:i,easing:s,css:r=>`opacity: ${r*n}`}}function x(p,{delay:a=0,duration:i=400,easing:s=f,axis:n="y"}={}){const r=getComputedStyle(p),c=+r.opacity,d=n==="y"?"height":"width",$=parseFloat(r[d]),o=n==="y"?["top","bottom"]:["left","right"],e=o.map(t=>`${t[0].toUpperCase()}${t.slice(1)}`),l=parseFloat(r[`padding${e[0]}`]),_=parseFloat(r[`padding${e[1]}`]),y=parseFloat(r[`margin${e[0]}`]),u=parseFloat(r[`margin${e[1]}`]),g=parseFloat(r[`border${e[0]}Width`]),m=parseFloat(r[`border${e[1]}Width`]);return{delay:a,duration:i,easing:s,css:t=>`overflow: hidden;opacity: ${Math.min(t*20,1)*c};${d}: ${t*$}px;padding-${o[0]}: ${t*l}px;padding-${o[1]}: ${t*_}px;margin-${o[0]}: ${t*y}px;margin-${o[1]}: ${t*u}px;border-${o[0]}-width: ${t*g}px;border-${o[1]}-width: ${t*m}px;`}}export{v as f,x as s};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{C as f,s as w,W as m,F as q,K as x}from"./scheduler.de195056.js";const a=[];function z(e,i){return{subscribe:A(e,i).subscribe}}function A(e,i=f){let r;const n=new Set;function u(t){if(w(e,t)&&(e=t,r)){const o=!a.length;for(const s of n)s[1](),a.push(s,e);if(o){for(let s=0;s<a.length;s+=2)a[s][0](a[s+1]);a.length=0}}}function l(t){u(t(e))}function b(t,o=f){const s=[t,o];return n.add(s),n.size===1&&(r=i(u,l)||f),t(e),()=>{n.delete(s),n.size===0&&r&&(r(),r=null)}}return{set:u,update:l,subscribe:b}}function C(e,i,r){const n=!Array.isArray(e),u=n?[e]:e;if(!u.every(Boolean))throw new Error("derived() expects stores as input, got a falsy value");const l=i.length<2;return z(r,(b,t)=>{let o=!1;const s=[];let d=0,p=f;const h=()=>{if(d)return;p();const c=i(n?s[0]:s,b,t);l?b(c):p=x(c)?c:f},y=u.map((c,g)=>m(c,_=>{s[g]=_,d&=~(1<<g),o&&h()},()=>{d|=1<<g}));return o=!0,h(),function(){q(y),p(),o=!1}})}export{C as d,A as w};

View File

@ -0,0 +1,4 @@
var q=Object.defineProperty;var H=(t,e,n)=>e in t?q(t,e,{enumerable:!0,configurable:!0,writable:!0,value:n}):t[e]=n;var F=(t,e,n)=>(H(t,typeof e!="symbol"?e+"":e,n),n);import{C as w,X as J,Y as Q,d as L,F as E,K as O,G as C,Z as T,V as I,_ as G,h as W,$ as tt,a0 as et,a1 as nt,U as it,a2 as K,a3 as st,a4 as rt,a5 as at,a6 as ot,a7 as ft}from"./scheduler.de195056.js";const X=typeof window<"u";let N=X?()=>window.performance.now():()=>Date.now(),U=X?t=>requestAnimationFrame(t):w;const k=new Set;function Y(t){k.forEach(e=>{e.c(t)||(k.delete(e),e.f())}),k.size!==0&&U(Y)}function V(t){let e;return k.size===0&&U(Y),{promise:new Promise(n=>{k.add(e={c:t,f:n})}),abort(){k.delete(e)}}}const P=new Map;let R=0;function ut(t){let e=5381,n=t.length;for(;n--;)e=(e<<5)-e^t.charCodeAt(n);return e>>>0}function lt(t,e){const n={stylesheet:Q(e),rules:{}};return P.set(t,n),n}function z(t,e,n,s,u,a,l,i=0){const c=16.666/s;let r=`{
`;for(let $=0;$<=1;$+=c){const m=e+(n-e)*a($);r+=$*100+`%{${l(m,1-m)}}
`}const d=r+`100% {${l(n,1-n)}}
}`,f=`__svelte_${ut(d)}_${i}`,g=J(t),{stylesheet:h,rules:o}=P.get(g)||lt(g,t);o[f]||(o[f]=!0,h.insertRule(`@keyframes ${f} ${d}`,h.cssRules.length));const _=t.style.animation||"";return t.style.animation=`${_?`${_}, `:""}${f} ${s}ms linear ${u}ms 1 both`,R+=1,f}function A(t,e){const n=(t.style.animation||"").split(", "),s=n.filter(e?a=>a.indexOf(e)<0:a=>a.indexOf("__svelte")===-1),u=n.length-s.length;u&&(t.style.animation=s.join(", "),R-=u,R||ct())}function ct(){U(()=>{R||(P.forEach(t=>{const{ownerNode:e}=t.stylesheet;e&&L(e)}),P.clear())})}let S;function B(){return S||(S=Promise.resolve(),S.then(()=>{S=null})),S}function v(t,e,n){t.dispatchEvent(T(`${e?"intro":"outro"}${n}`))}const M=new Set;let p;function yt(){p={r:0,c:[],p}}function xt(){p.r||E(p.c),p=p.p}function dt(t,e){t&&t.i&&(M.delete(t),t.i(e))}function vt(t,e,n,s){if(t&&t.o){if(M.has(t))return;M.add(t),p.c.push(()=>{M.delete(t),s&&(n&&t.d(1),s())}),t.o(e)}else s&&s()}const D={duration:0};function wt(t,e,n){const s={direction:"in"};let u=e(t,n,s),a=!1,l,i,c=0;function r(){l&&A(t,l)}function d(){const{delay:g=0,duration:h=300,easing:o=I,tick:_=w,css:$}=u||D;$&&(l=z(t,0,1,h,g,o,$,c++)),_(0,1);const m=N()+g,y=m+h;i&&i.abort(),a=!0,C(()=>v(t,!0,"start")),i=V(x=>{if(a){if(x>=y)return _(1,0),v(t,!0,"end"),r(),a=!1;if(x>=m){const b=o((x-m)/h);_(b,1-b)}}return a})}let f=!1;return{start(){f||(f=!0,A(t),O(u)?(u=u(s),B().then(d)):d())},invalidate(){f=!1},end(){a&&(r(),a=!1)}}}function bt(t,e,n){const s={direction:"out"};let u=e(t,n,s),a=!0,l;const i=p;i.r+=1;let c;function r(){const{delay:d=0,duration:f=300,easing:g=I,tick:h=w,css:o}=u||D;o&&(l=z(t,1,0,f,d,g,o));const _=N()+d,$=_+f;C(()=>v(t,!1,"start")),"inert"in t&&(c=t.inert,t.inert=!0),V(m=>{if(a){if(m>=$)return h(0,1),v(t,!1,"end"),--i.r||E(i.c),!1;if(m>=_){const y=g((m-_)/f);h(1-y,y)}}return a})}return O(u)?B().then(()=>{u=u(s),r()}):r(),{end(d){d&&"inert"in t&&(t.inert=c),d&&u.tick&&u.tick(1,0),a&&(l&&A(t,l),a=!1)}}}function kt(t,e,n,s){let a=e(t,n,{direction:"both"}),l=s?0:1,i=null,c=null,r=null,d;function f(){r&&A(t,r)}function g(o,_){const $=o.b-l;return _*=Math.abs($),{a:l,b:o.b,d:$,duration:_,start:o.start,end:o.start+_,group:o.group}}function h(o){const{delay:_=0,duration:$=300,easing:m=I,tick:y=w,css:x}=a||D,b={start:N()+_,b:o};o||(b.group=p,p.r+=1),"inert"in t&&(o?d!==void 0&&(t.inert=d):(d=t.inert,t.inert=!0)),i||c?c=b:(x&&(f(),r=z(t,l,o,$,_,m,x)),o&&y(0,1),i=g(b,$),C(()=>v(t,o,"start")),V(j=>{if(c&&j>c.start&&(i=g(c,$),c=null,v(t,i.b,"start"),x&&(f(),r=z(t,l,i.b,i.duration,0,m,a.css))),i){if(j>=i.end)y(l=i.b,1-l),v(t,i.b,"end"),c||(i.b?f():--i.group.r||E(i.group.c)),i=null;else if(j>=i.start){const Z=j-i.start;l=i.a+i.d*m(Z/i.duration),y(l,1-l)}}return!!(i||c)}))}return{run(o){O(a)?B().then(()=>{a=a({direction:o?"in":"out"}),h(o)}):h(o)},end(){f(),i=c=null}}}function Et(t,e,n){const s=t.$$.props[e];s!==void 0&&(t.$$.bound[s]=n,n(t.$$.ctx[s]))}function St(t){t&&t.c()}function Ct(t,e){t&&t.l(e)}function _t(t,e,n){const{fragment:s,after_update:u}=t.$$;s&&s.m(e,n),C(()=>{const a=t.$$.on_mount.map(st).filter(O);t.$$.on_destroy?t.$$.on_destroy.push(...a):E(a),t.$$.on_mount=[]}),u.forEach(C)}function $t(t,e){const n=t.$$;n.fragment!==null&&(nt(n.after_update),E(n.on_destroy),n.fragment&&n.fragment.d(e),n.on_destroy=n.fragment=null,n.ctx=[])}function ht(t,e){t.$$.dirty[0]===-1&&(rt.push(t),at(),t.$$.dirty.fill(0)),t.$$.dirty[e/31|0]|=1<<e%31}function Ot(t,e,n,s,u,a,l=null,i=[-1]){const c=it;K(t);const r=t.$$={fragment:null,ctx:[],props:a,update:w,not_equal:u,bound:G(),on_mount:[],on_destroy:[],on_disconnect:[],before_update:[],after_update:[],context:new Map(e.context||(c?c.$$.context:[])),callbacks:G(),dirty:i,skip_bound:!1,root:e.target||c.$$.root};l&&l(r.root);let d=!1;if(r.ctx=n?n(t,e.props||{},(f,g,...h)=>{const o=h.length?h[0]:g;return r.ctx&&u(r.ctx[f],r.ctx[f]=o)&&(!r.skip_bound&&r.bound[f]&&r.bound[f](o),d&&ht(t,f)),g}):[],r.update(),d=!0,E(r.before_update),r.fragment=s?s(r.ctx):!1,e.target){if(e.hydrate){ot();const f=W(e.target);r.fragment&&r.fragment.l(f),f.forEach(L)}else r.fragment&&r.fragment.c();e.intro&&dt(t.$$.fragment),_t(t,e.target,e.anchor),ft(),tt()}K(c)}class jt{constructor(){F(this,"$$");F(this,"$$set")}$destroy(){$t(this,1),this.$destroy=w}$on(e,n){if(!O(n))return w;const s=this.$$.callbacks[e]||(this.$$.callbacks[e]=[]);return s.push(n),()=>{const u=s.indexOf(n);u!==-1&&s.splice(u,1)}}$set(e){this.$$set&&!et(e)&&(this.$$.skip_bound=!0,this.$$set(e),this.$$.skip_bound=!1)}}const gt="4";typeof window<"u"&&(window.__svelte||(window.__svelte={v:new Set})).v.add(gt);export{jt as S,dt as a,St as b,xt as c,Ct as d,$t as e,kt as f,yt as g,wt as h,Ot as i,bt as j,Et as k,_t as m,vt as t};

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{w as u}from"./index.af5cccf7.js";var p;const k=((p=globalThis.__sveltekit_50zecb)==null?void 0:p.base)??"";var h;const m=((h=globalThis.__sveltekit_50zecb)==null?void 0:h.assets)??k,w="1698865793842",T="sveltekit:snapshot",y="sveltekit:scroll",I="sveltekit:index",f={tap:1,hover:2,viewport:3,eager:4,off:-1};function S(e){let t=e.baseURI;if(!t){const n=e.getElementsByTagName("base");t=n.length?n[0].href:e.URL}return t}function x(){return{x:pageXOffset,y:pageYOffset}}function c(e,t){return e.getAttribute(`data-sveltekit-${t}`)}const d={...f,"":f.hover};function g(e){let t=e.assignedSlot??e.parentNode;return(t==null?void 0:t.nodeType)===11&&(t=t.host),t}function O(e,t){for(;e&&e!==t;){if(e.nodeName.toUpperCase()==="A"&&e.hasAttribute("href"))return e;e=g(e)}}function U(e,t){let n;try{n=new URL(e instanceof SVGAElement?e.href.baseVal:e.href,document.baseURI)}catch{}const o=e instanceof SVGAElement?e.target.baseVal:e.target,r=!n||!!o||A(n,t)||(e.getAttribute("rel")||"").split(/\s+/).includes("external"),l=(n==null?void 0:n.origin)===location.origin&&e.hasAttribute("download");return{url:n,external:r,target:o,download:l}}function L(e){let t=null,n=null,o=null,r=null,l=null,a=null,s=e;for(;s&&s!==document.documentElement;)o===null&&(o=c(s,"preload-code")),r===null&&(r=c(s,"preload-data")),t===null&&(t=c(s,"keepfocus")),n===null&&(n=c(s,"noscroll")),l===null&&(l=c(s,"reload")),a===null&&(a=c(s,"replacestate")),s=g(s);function i(v){switch(v){case"":case"true":return!0;case"off":case"false":return!1;default:return null}}return{preload_code:d[o??"off"],preload_data:d[r??"off"],keep_focus:i(t),noscroll:i(n),reload:i(l),replace_state:i(a)}}function _(e){const t=u(e);let n=!0;function o(){n=!0,t.update(a=>a)}function r(a){n=!1,t.set(a)}function l(a){let s;return t.subscribe(i=>{(s===void 0||n&&i!==s)&&a(s=i)})}return{notify:o,set:r,subscribe:l}}function E(){const{set:e,subscribe:t}=u(!1);let n;async function o(){clearTimeout(n);try{const r=await fetch(`${m}/_app/version.json`,{headers:{pragma:"no-cache","cache-control":"no-cache"}});if(!r.ok)return!1;const a=(await r.json()).version!==w;return a&&(e(!0),clearTimeout(n)),a}catch{return!1}}return{subscribe:t,check:o}}function A(e,t){return e.origin!==location.origin||!e.pathname.startsWith(t)}let b;function N(e){b=e.client}function P(e){return(...t)=>b[e](...t)}const V={url:_({}),page:_({}),navigating:u(null),updated:E()};export{I,f as P,y as S,T as a,U as b,L as c,V as d,k as e,O as f,S as g,N as h,A as i,P as j,x as s};

View File

@ -0,0 +1 @@
import{w as t}from"./index.af5cccf7.js";const i=t();export{i};

View File

@ -0,0 +1 @@
import{d as e}from"./singletons.430f5ae5.js";const r=()=>{const s=e;return{page:{subscribe:s.page.subscribe},navigating:{subscribe:s.navigating.subscribe},updated:s.updated}},b={subscribe(s){return r().page.subscribe(s)}};export{b as p};

View File

@ -0,0 +1 @@
import{L as o,P as b,b as l,c as r}from"./index.56f88796.js";import{w as t}from"./index.af5cccf7.js";try{o()}catch{o({level:b?l.Debug:l.Info,errorTrace:!1})}const g=t(!1),h=t(!1),I=t(!1),{onAuthChange:u}=r();u(s=>{var a;const{dbg:e}=o();e("onAuthChange in store",{...s}),g.set(s.isValid),h.set(!!((a=s.model)!=null&&a.verified)),I.set(!0)});const n=t({}),d=t(!1);g.subscribe(async s=>{let e;if(!s){n.set({}),d.set(!1),e==null||e().then(()=>{e=void 0}).catch(console.error);return}const{getAllInstancesById:a}=r(),f=await a();n.set(f),d.set(!0),r().client.collection("instances").subscribe("*",c=>{n.update(i=>(i[c.record.id]=c.record,i))}).then(c=>e=c).catch(console.error)});export{n as a,h as b,I as c,d as g,g as i};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{s as j,a as x,f as g,l as L,D as w,d as f,c as M,g as b,h as D,m as C,x as I,j as p,i as S,y as l,n as V,C as $,z as P}from"../chunks/scheduler.de195056.js";import{S as z,i as A}from"../chunks/index.c6f2ad36.js";import{p as B}from"../chunks/stores.6150b2da.js";function F(c){var q;let r,m,e,s,d=c[0].status+"",u,y,h=((q=c[0].error)==null?void 0:q.message)+"",_,H,n,E='<img src="https://media4.giphy.com/media/V9sdMLcmIFqqk/giphy.gif?cid=790b76118f409453704f5eaabaea1a3dc7380a9daf4fca63&amp;rid=giphy.gif&amp;ct=g" alt="Scene from a movie talking about something is missing" class="img-fluid w-100"/>',k,i,T='<i class="bi bi-arrow-left-short"></i> Back to Home';return document.title=r=c[0].status+" - PocketHost",{c(){m=x(),e=g("div"),s=g("h1"),u=L(d),y=L(": "),_=L(h),H=x(),n=g("div"),n.innerHTML=E,k=x(),i=g("a"),i.innerHTML=T,this.h()},l(t){w("svelte-9h4p1d",document.head).forEach(f),m=M(t),e=b(t,"DIV",{class:!0});var a=D(e);s=b(a,"H1",{class:!0});var v=D(s);u=C(v,d),y=C(v,": "),_=C(v,h),v.forEach(f),H=M(a),n=b(a,"DIV",{class:!0,"data-svelte-h":!0}),I(n)!=="svelte-6yek0n"&&(n.innerHTML=E),k=M(a),i=b(a,"A",{href:!0,class:!0,"data-svelte-h":!0}),I(i)!=="svelte-2mjmhs"&&(i.innerHTML=T),a.forEach(f),this.h()},h(){p(s,"class","mb-5"),p(n,"class","gif mb-5 svelte-14rxcuv"),p(i,"href","/"),p(i,"class","btn btn-light"),p(e,"class","container text-center py-4")},m(t,o){S(t,m,o),S(t,e,o),l(e,s),l(s,u),l(s,y),l(s,_),l(e,H),l(e,n),l(e,k),l(e,i)},p(t,[o]){var a;o&1&&r!==(r=t[0].status+" - PocketHost")&&(document.title=r),o&1&&d!==(d=t[0].status+"")&&V(u,d),o&1&&h!==(h=((a=t[0].error)==null?void 0:a.message)+"")&&V(_,h)},i:$,o:$,d(t){t&&(f(m),f(e))}}}function G(c,r,m){let e;return P(c,B,s=>m(0,e=s)),[e]}class O extends z{constructor(r){super(),A(this,r,G,F,j,{})}}export{O as component};

View File

@ -0,0 +1 @@
import{s as X,a as I,f as _,l as Q,D as Z,d as h,c as P,g as v,h as w,x as L,m as W,j as n,i as T,y as o,E as O,A as G,F as $,z as ee,n as te,G as se}from"../chunks/scheduler.de195056.js";import{S as ae,i as re,a as R,t as M,c as le,f as Y,g as oe}from"../chunks/index.c6f2ad36.js";import{p as ie}from"../chunks/stores.6150b2da.js";import{g as ne}from"../chunks/database.5ddaa35e.js";import{s as J}from"../chunks/index.3f7c9ec2.js";function K(f){let r,t,c,s,d,p,m;return{c(){r=_("div"),t=_("i"),c=I(),s=_("span"),d=Q(f[1]),this.h()},l(e){r=v(e,"DIV",{class:!0});var l=w(r);t=v(l,"I",{class:!0}),w(t).forEach(h),c=P(l),s=v(l,"SPAN",{});var i=w(s);d=W(i,f[1]),i.forEach(h),l.forEach(h),this.h()},h(){n(t,"class","fa-solid fa-circle-exclamation"),n(r,"class","alert alert-error mb-5")},m(e,l){T(e,r,l),o(r,t),o(r,c),o(r,s),o(s,d),m=!0},p(e,l){(!m||l&2)&&te(d,e[1])},i(e){m||(e&&se(()=>{m&&(p||(p=Y(r,J,{},!0)),p.run(1))}),m=!0)},o(e){e&&(p||(p=Y(r,J,{},!1)),p.run(0)),m=!1},d(e){e&&h(r),e&&p&&p.end()}}}function ce(f){let r,t,c,s,d,p="New Password",m,e,l,i,g="New Password",N,b,j,C,x,E,A,k,B,U,a=f[1]&&K(f);return{c(){r=I(),t=_("div"),c=_("div"),s=_("div"),d=_("h2"),d.textContent=p,m=I(),e=_("form"),l=_("div"),i=_("label"),i.textContent=g,N=I(),b=_("input"),j=I(),a&&a.c(),C=I(),x=_("div"),E=_("button"),A=Q("Save "),k=_("i"),this.h()},l(u){Z("svelte-1at4xjh",document.head).forEach(h),r=P(u),t=v(u,"DIV",{class:!0});var q=w(t);c=v(q,"DIV",{class:!0});var z=w(c);s=v(z,"DIV",{class:!0});var S=w(s);d=v(S,"H2",{class:!0,"data-svelte-h":!0}),L(d)!=="svelte-65sokr"&&(d.textContent=p),m=P(S),e=v(S,"FORM",{});var D=w(e);l=v(D,"DIV",{class:!0});var V=w(l);i=v(V,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),L(i)!=="svelte-1ysxw7n"&&(i.textContent=g),N=P(V),b=v(V,"INPUT",{type:!0,class:!0,id:!0,autocomplete:!0}),V.forEach(h),j=P(D),a&&a.l(D),C=P(D),x=v(D,"DIV",{class:!0});var H=w(x);E=v(H,"BUTTON",{type:!0,class:!0});var F=w(E);A=W(F,"Save "),k=v(F,"I",{class:!0}),w(k).forEach(h),F.forEach(h),H.forEach(h),D.forEach(h),S.forEach(h),z.forEach(h),q.forEach(h),this.h()},h(){document.title="Reset Your Password - PocketHost",n(d,"class","card-title mb-4"),n(i,"class","label"),n(i,"for","password"),n(b,"type","password"),n(b,"class","input input-bordered w-full max-w-xs"),n(b,"id","password"),b.required=!0,n(b,"autocomplete","new-password"),n(l,"class","form-control w-full max-w-xs"),n(k,"class","bi bi-arrow-right-short"),n(E,"type","submit"),n(E,"class","btn btn-primary w-100"),E.disabled=f[2],n(x,"class","mt-4 card-actions justify-end"),n(s,"class","card-body"),n(c,"class","card w-96 bg-zinc-900 mx-auto shadow-xl overflow-hidden"),n(t,"class","min-h-screen flex items-center justify-center")},m(u,y){T(u,r,y),T(u,t,y),o(t,c),o(c,s),o(s,d),o(s,m),o(s,e),o(e,l),o(l,i),o(l,N),o(l,b),O(b,f[0]),o(e,j),a&&a.m(e,null),o(e,C),o(e,x),o(x,E),o(E,A),o(E,k),B||(U=[G(b,"input",f[5]),G(e,"submit",f[3])],B=!0)},p(u,[y]){y&1&&b.value!==u[0]&&O(b,u[0]),u[1]?a?(a.p(u,y),y&2&&R(a,1)):(a=K(u),a.c(),R(a,1),a.m(e,C)):a&&(oe(),M(a,1,1,()=>{a=null}),le()),y&4&&(E.disabled=u[2])},i(u){R(a)},o(u){M(a)},d(u){u&&(h(r),h(t)),a&&a.d(),B=!1,$(U)}}}function de(f,r,t){let c;ee(f,ie,i=>t(4,c=i));let s="",d="",p="",m=!0;const e=async i=>{i.preventDefault(),t(2,m=!0),d&&(await ne(d,s,g=>{t(1,p=g)}),window.location.href="/?view=login",t(2,m=!1))};function l(){s=this.value,t(0,s)}return f.$$.update=()=>{var i,g;f.$$.dirty&16&&(d=(g=(i=c==null?void 0:c.url)==null?void 0:i.searchParams)==null?void 0:g.get("token")),f.$$.dirty&1&&t(2,m=s.length===0)},[s,p,m,e,c,l]}class _e extends ae{constructor(r){super(),re(this,r,de,ce,X,{})}}export{_e as component};

View File

@ -0,0 +1 @@
import{s as oe,a as x,f as u,l as ie,D as ue,d as m,c as y,g as d,h as E,x as U,m as ne,j as t,i as W,y as a,E as A,A as K,F as de,n as ce,G as fe}from"../chunks/scheduler.de195056.js";import{S as pe,i as he,a as Q,t as ae,c as me,f as se,g as ve}from"../chunks/index.c6f2ad36.js";import{s as le}from"../chunks/index.3f7c9ec2.js";import{i as _e,a as be,j as we}from"../chunks/database.5ddaa35e.js";function re(p){let i,l,c,s,h,f,w;return{c(){i=u("div"),l=u("i"),c=x(),s=u("span"),h=ie(p[2]),this.h()},l(e){i=d(e,"DIV",{class:!0});var n=E(i);l=d(n,"I",{class:!0}),E(l).forEach(m),c=y(n),s=d(n,"SPAN",{});var v=E(s);h=ne(v,p[2]),v.forEach(m),n.forEach(m),this.h()},h(){t(l,"class","fa-solid fa-circle-exclamation"),t(i,"class","alert alert-error mb-5")},m(e,n){W(e,i,n),a(i,l),a(i,c),a(i,s),a(s,h),w=!0},p(e,n){(!w||n&4)&&ce(h,e[2])},i(e){w||(e&&fe(()=>{w&&(f||(f=se(i,le,{},!0)),f.run(1))}),w=!0)},o(e){e&&(f||(f=se(i,le,{},!1)),f.run(0)),w=!1},d(e){e&&m(i),e&&f&&f.end()}}}function Ee(p){let i,l,c,s,h,f="Sign Up",w,e,n,v,q="Email address",k,_,B,I,D,X="Password",F,b,N,H,g,O,P,R,T,Y="<hr/>",G,V,Z='<a class="link" href="/login">log in</a>',z,$,r=p[2]&&re(p);return{c(){i=x(),l=u("div"),c=u("div"),s=u("div"),h=u("h2"),h.textContent=f,w=x(),e=u("form"),n=u("div"),v=u("label"),v.textContent=q,k=x(),_=u("input"),B=x(),I=u("div"),D=u("label"),D.textContent=X,F=x(),b=u("input"),N=x(),r&&r.c(),H=x(),g=u("button"),O=ie("Sign Up "),P=u("i"),R=x(),T=u("div"),T.innerHTML=Y,G=x(),V=u("div"),V.innerHTML=Z,this.h()},l(o){ue("svelte-dngslo",document.head).forEach(m),i=y(o),l=d(o,"DIV",{class:!0});var ee=E(l);c=d(ee,"DIV",{class:!0});var te=E(c);s=d(te,"DIV",{class:!0});var L=E(s);h=d(L,"H2",{class:!0,"data-svelte-h":!0}),U(h)!=="svelte-16bjk2q"&&(h.textContent=f),w=y(L),e=d(L,"FORM",{});var S=E(e);n=d(S,"DIV",{class:!0});var j=E(n);v=d(j,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),U(v)!=="svelte-1ts02yh"&&(v.textContent=q),k=y(j),_=d(j,"INPUT",{type:!0,class:!0,id:!0,placeholder:!0,autocomplete:!0}),j.forEach(m),B=y(S),I=d(S,"DIV",{class:!0});var M=E(I);D=d(M,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),U(D)!=="svelte-m1esth"&&(D.textContent=X),F=y(M),b=d(M,"INPUT",{type:!0,class:!0,id:!0,placeholder:!0,autocomplete:!0}),M.forEach(m),N=y(S),r&&r.l(S),H=y(S),g=d(S,"BUTTON",{type:!0,class:!0});var J=E(g);O=ne(J,"Sign Up "),P=d(J,"I",{class:!0}),E(P).forEach(m),J.forEach(m),S.forEach(m),R=y(L),T=d(L,"DIV",{class:!0,"data-svelte-h":!0}),U(T)!=="svelte-18ir1wq"&&(T.innerHTML=Y),G=y(L),V=d(L,"DIV",{class:!0,"data-svelte-h":!0}),U(V)!=="svelte-j783qh"&&(V.innerHTML=Z),L.forEach(m),te.forEach(m),ee.forEach(m),this.h()},h(){document.title="Sign Up - PocketHost",t(h,"class","card-title mb-4"),t(v,"class","label"),t(v,"for","email"),t(_,"type","email"),t(_,"class","input input-bordered w-full max-w-xs"),t(_,"id","email"),t(_,"placeholder","name@example.com"),_.required=!0,t(_,"autocomplete","email"),t(n,"class","form-control w-full max-w-xs"),t(D,"class","label"),t(D,"for","password"),t(b,"type","password"),t(b,"class","input input-bordered w-full max-w-xs"),t(b,"id","password"),t(b,"placeholder","Password"),b.required=!0,t(b,"autocomplete","current-password"),t(I,"class","form-control w-full max-w-xs"),t(P,"class","bi bi-arrow-right-short"),t(g,"type","submit"),t(g,"class","m-3 btn btn-primary w-100"),g.disabled=p[3],t(T,"class","py-4"),t(V,"class","text-center"),t(s,"class","card-body"),t(c,"class","card w-96 bg-base-100 shadow-xl"),t(l,"class","flex justify-center")},m(o,C){W(o,i,C),W(o,l,C),a(l,c),a(c,s),a(s,h),a(s,w),a(s,e),a(e,n),a(n,v),a(n,k),a(n,_),A(_,p[0]),a(e,B),a(e,I),a(I,D),a(I,F),a(I,b),A(b,p[1]),a(e,N),r&&r.m(e,null),a(e,H),a(e,g),a(g,O),a(g,P),a(s,R),a(s,T),a(s,G),a(s,V),z||($=[K(_,"input",p[5]),K(b,"input",p[6]),K(e,"submit",p[4])],z=!0)},p(o,[C]){C&1&&_.value!==o[0]&&A(_,o[0]),C&2&&b.value!==o[1]&&A(b,o[1]),o[2]?r?(r.p(o,C),C&4&&Q(r,1)):(r=re(o),r.c(),Q(r,1),r.m(e,H)):r&&(ve(),ae(r,1,1,()=>{r=null}),me()),C&8&&(g.disabled=o[3])},i(o){Q(r)},o(o){ae(r)},d(o){o&&(m(i),m(l)),r&&r.d(),z=!1,de($)}}}function ge(p,i,l){let c="",s="",h="",f=!0;const w=async v=>{v.preventDefault(),l(3,f=!0);try{await _e(c,s),await be(c,s)}catch(q){we(q,k=>{l(2,h=k)})}l(3,f=!1)};function e(){c=this.value,l(0,c)}function n(){s=this.value,l(1,s)}return p.$$.update=()=>{p.$$.dirty&3&&l(3,f=c.length===0||s.length===0)},[c,s,h,f,w,e,n]}class De extends pe{constructor(i){super(),he(this,i,ge,Ee,oe,{})}}export{De as component};

View File

@ -0,0 +1 @@
import{s as u,r as i,u as f,v as c,w as m}from"../chunks/scheduler.de195056.js";import{S as _,i as $,b as p,d,m as g,a,t as l,e as h}from"../chunks/index.c6f2ad36.js";import{U as b}from"../chunks/UserLoggedIn.488e1a77.js";function v(r){let s;const n=r[0].default,e=i(n,r,r[1],null);return{c(){e&&e.c()},l(t){e&&e.l(t)},m(t,o){e&&e.m(t,o),s=!0},p(t,o){e&&e.p&&(!s||o&2)&&f(e,n,t,t[1],s?m(n,t[1],o,null):c(t[1]),null)},i(t){s||(a(e,t),s=!0)},o(t){l(e,t),s=!1},d(t){e&&e.d(t)}}}function w(r){let s,n;return s=new b({props:{redirect:!0,$$slots:{default:[v]},$$scope:{ctx:r}}}),{c(){p(s.$$.fragment)},l(e){d(s.$$.fragment,e)},m(e,t){g(s,e,t),n=!0},p(e,[t]){const o={};t&2&&(o.$$scope={dirty:t,ctx:e}),s.$set(o)},i(e){n||(a(s.$$.fragment,e),n=!0)},o(e){l(s.$$.fragment,e),n=!1},d(e){h(s,e)}}}function L(r,s,n){let{$$slots:e={},$$scope:t}=s;return r.$$set=o=>{"$$scope"in o&&n(1,t=o.$$scope)},[e,t]}class y extends _{constructor(s){super(),$(this,s,L,w,u,{})}}export{y as component};

View File

@ -0,0 +1 @@
import{s as k,e as m,i as b,d as g,z as d,f as y,g as h,x as v,C as _,r as C,u as I,v as S,w as q}from"../chunks/scheduler.de195056.js";import{S as w,i as z,t as f,c as D,a as p,g as L}from"../chunks/index.c6f2ad36.js";import{p as N}from"../chunks/stores.6150b2da.js";import{a as R}from"../chunks/index.56f88796.js";import{a as V}from"../chunks/stores.a280ff67.js";import{i as j}from"../chunks/store.cd6b22d2.js";function x(a){let t,n="Instance not found";return{c(){t=y("div"),t.textContent=n},l(e){t=h(e,"DIV",{"data-svelte-h":!0}),v(t)!=="svelte-1oylmhu"&&(t.textContent=n)},m(e,o){b(e,t,o)},p:_,i:_,o:_,d(e){e&&g(t)}}}function A(a){let t;const n=a[4].default,e=C(n,a,a[3],null);return{c(){e&&e.c()},l(o){e&&e.l(o)},m(o,i){e&&e.m(o,i),t=!0},p(o,i){e&&e.p&&(!t||i&8)&&I(e,n,o,o[3],t?q(n,o[3],i,null):S(o[3]),null)},i(o){t||(p(e,o),t=!0)},o(o){f(e,o),t=!1},d(o){e&&e.d(o)}}}function B(a){let t,n,e,o;const i=[A,x],l=[];function c(s,r){return s[0]?0:1}return t=c(a),n=l[t]=i[t](a),{c(){n.c(),e=m()},l(s){n.l(s),e=m()},m(s,r){l[t].m(s,r),b(s,e,r),o=!0},p(s,[r]){let u=t;t=c(s),t===u?l[t].p(s,r):(L(),f(l[u],1,1,()=>{l[u]=null}),D(),n=l[t],n?n.p(s,r):(n=l[t]=i[t](s),n.c()),p(n,1),n.m(e.parentNode,e))},i(s){o||(p(n),o=!0)},o(s){f(n),o=!1},d(s){s&&g(e),l[t].d(s)}}}function E(a,t,n){let e,o;d(a,V,s=>n(1,e=s)),d(a,N,s=>n(2,o=s));let{$$slots:i={},$$scope:l}=t,c=!1;return a.$$set=s=>{"$$scope"in s&&n(3,l=s.$$scope)},a.$$.update=()=>{if(a.$$.dirty&6){const{instanceId:s}=o.params;R(s);const r=e[s];r&&j.set(r),n(0,c=!!r)}},[c,e,o,l,i]}class O extends w{constructor(t){super(),z(this,t,E,B,k,{})}}export{O as component};

File diff suppressed because one or more lines are too long

File diff suppressed because one or more lines are too long

View File

@ -0,0 +1 @@
import{s as re,a as C,f as b,D as ne,d as p,c as E,g as v,x as M,h as g,j as _,i as k,l as B,m as R,y as f,E as J,A as L,n as Z,F as le,G as oe}from"../chunks/scheduler.de195056.js";import{S as ie,i as ce,b as ee,d as te,m as ae,a as D,t as P,e as se,g as fe,c as ue,f as K}from"../chunks/index.c6f2ad36.js";import{C as de,a as me}from"../chunks/CardHeader.7b4b88a9.js";import{d as Q}from"../chunks/index.56f88796.js";import{d as pe}from"../chunks/database.5ddaa35e.js";import{g as W}from"../chunks/index.a7625b7a.js";import{s as X}from"../chunks/index.3f7c9ec2.js";function he(u){let e;return{c(){e=B("Choose a name for your PocketBase app.")},l(t){e=R(t,"Choose a name for your PocketBase app.")},m(t,d){k(t,e,d)},d(t){t&&p(e)}}}function Y(u){let e,t,d,n,r,l,s;return{c(){e=b("div"),t=b("i"),d=C(),n=b("span"),r=B(u[1]),this.h()},l(a){e=v(a,"DIV",{class:!0});var o=g(e);t=v(o,"I",{class:!0}),g(t).forEach(p),d=E(o),n=v(o,"SPAN",{});var h=g(n);r=R(h,u[1]),h.forEach(p),o.forEach(p),this.h()},h(){_(t,"class","fa-solid fa-circle-exclamation"),_(e,"class","alert alert-error mb-5")},m(a,o){k(a,e,o),f(e,t),f(e,d),f(e,n),f(n,r),s=!0},p(a,o){(!s||o&2)&&Z(r,a[1])},i(a){s||(a&&oe(()=>{s&&(l||(l=K(e,X,{},!0)),l.run(1))}),s=!0)},o(a){a&&(l||(l=K(e,X,{},!1)),l.run(0)),s=!1},d(a){a&&p(e),a&&l&&l.end()}}}function _e(u){let e,t,d,n,r,l,s,a='<i class="fa-regular fa-arrows-rotate"></i>',o,h,N=Q(u[0])+"",S,U,A,y,I,O="Cancel",V,$,j,x,T,q,z;t=new me({props:{$$slots:{default:[he]},$$scope:{ctx:u}}});let i=u[1]&&Y(u);return{c(){e=b("form"),ee(t.$$.fragment),d=C(),n=b("div"),r=b("input"),l=C(),s=b("button"),s.innerHTML=a,o=C(),h=b("h4"),S=B(N),U=C(),i&&i.c(),A=C(),y=b("div"),I=b("a"),I.textContent=O,V=C(),$=b("button"),j=B("Create "),x=b("i"),this.h()},l(m){e=v(m,"FORM",{});var c=g(e);te(t.$$.fragment,c),d=E(c),n=v(c,"DIV",{class:!0});var w=g(n);r=v(w,"INPUT",{type:!0,class:!0}),l=E(w),s=v(w,"BUTTON",{type:!0,class:!0,"aria-label":!0,"data-svelte-h":!0}),M(s)!=="svelte-1v722gy"&&(s.innerHTML=a),w.forEach(p),o=E(c),h=v(c,"H4",{class:!0});var G=g(h);S=R(G,N),G.forEach(p),U=E(c),i&&i.l(c),A=E(c),y=v(c,"DIV",{class:!0});var H=g(y);I=v(H,"A",{href:!0,class:!0,"data-svelte-h":!0}),M(I)!=="svelte-1w7isxq"&&(I.textContent=O),V=E(H),$=v(H,"BUTTON",{class:!0});var F=g($);j=R(F,"Create "),x=v(F,"I",{class:!0}),g(x).forEach(p),F.forEach(p),H.forEach(p),c.forEach(p),this.h()},h(){_(r,"type","text"),_(r,"class","input input-bordered w-full"),_(s,"type","button"),_(s,"class","btn btn-outline btn-secondary"),_(s,"aria-label","Regenerate Instance Name"),_(n,"class","flex rename-instance-form-container-query gap-4"),_(h,"class","text-center font-bold py-12"),_(I,"href","/"),_(I,"class","btn"),_(x,"class","bi bi-arrow-right-short"),_($,"class","btn btn-primary"),$.disabled=u[2],_(y,"class","flex items-center justify-center gap-4")},m(m,c){k(m,e,c),ae(t,e,null),f(e,d),f(e,n),f(n,r),J(r,u[0]),f(n,l),f(n,s),f(e,o),f(e,h),f(h,S),f(e,U),i&&i.m(e,null),f(e,A),f(e,y),f(y,I),f(y,V),f(y,$),f($,j),f($,x),T=!0,q||(z=[L(r,"input",u[6]),L(s,"click",u[3]),L(e,"submit",u[4])],q=!0)},p(m,c){const w={};c&256&&(w.$$scope={dirty:c,ctx:m}),t.$set(w),c&1&&r.value!==m[0]&&J(r,m[0]),(!T||c&1)&&N!==(N=Q(m[0])+"")&&Z(S,N),m[1]?i?(i.p(m,c),c&2&&D(i,1)):(i=Y(m),i.c(),D(i,1),i.m(e,A)):i&&(fe(),P(i,1,1,()=>{i=null}),ue()),(!T||c&4)&&($.disabled=m[2])},i(m){T||(D(t.$$.fragment,m),D(i),T=!0)},o(m){P(t.$$.fragment,m),P(i),T=!1},d(m){m&&p(e),se(t),i&&i.d(),q=!1,le(z)}}}function be(u){let e,t,d="Create A New App",n,r,l,s;return l=new de({props:{$$slots:{default:[_e]},$$scope:{ctx:u}}}),{c(){e=C(),t=b("h2"),t.textContent=d,n=C(),r=b("div"),ee(l.$$.fragment),this.h()},l(a){ne("svelte-yenslj",document.head).forEach(p),e=E(a),t=v(a,"H2",{class:!0,"data-svelte-h":!0}),M(t)!=="svelte-1lhmx8r"&&(t.textContent=d),n=E(a),r=v(a,"DIV",{class:!0});var h=g(r);te(l.$$.fragment,h),h.forEach(p),this.h()},h(){document.title="New Instance - PocketHost",_(t,"class","text-4xl text-base-content font-bold capitalize mb-6"),_(r,"class","grid lg:grid-cols-2 grid-cols-1")},m(a,o){k(a,e,o),k(a,t,o),k(a,n,o),k(a,r,o),ae(l,r,null),s=!0},p(a,[o]){const h={};o&263&&(h.$$scope={dirty:o,ctx:a}),l.$set(h)},i(a){s||(D(l.$$.fragment,a),s=!0)},o(a){P(l.$$.fragment,a),s=!1},d(a){a&&(p(e),p(t),p(n),p(r)),se(l)}}}function ve(u,e,t){let d=W(2),n="",r=!0;const l=()=>{t(0,d=W(2))};let s=!1;const a=async h=>{h.preventDefault(),t(5,s=!0),t(1,n=""),await pe(d,N=>{t(1,n=N)}).finally(()=>{t(5,s=!1)})};function o(){d=this.value,t(0,d)}return u.$$.update=()=>{u.$$.dirty&33&&t(2,r=d.length===0||s)},[d,n,r,l,a,s,o]}class we extends ie{constructor(e){super(),ce(this,e,ve,be,re,{})}}export{we as component};

View File

@ -0,0 +1,2 @@
import{s as de,a as g,f as o,l as oe,D as ce,d as p,c as x,g as u,h as E,x as H,m as ue,j as s,i as Y,y as t,E as N,A as W,F as fe,n as pe,G as he}from"../chunks/scheduler.de195056.js";import{S as me,i as ve,a as X,t as le,c as _e,f as re,g as be}from"../chunks/index.c6f2ad36.js";import{s as ie}from"../chunks/index.3f7c9ec2.js";import{a as we}from"../chunks/database.5ddaa35e.js";function ne(h){let i,l,c,a,m,f,w;return{c(){i=o("div"),l=o("i"),c=g(),a=o("span"),m=oe(h[2]),this.h()},l(e){i=u(e,"DIV",{class:!0});var n=E(i);l=u(n,"I",{class:!0}),E(l).forEach(p),c=x(n),a=u(n,"SPAN",{});var v=E(a);m=ue(v,h[2]),v.forEach(p),n.forEach(p),this.h()},h(){s(l,"class","fa-solid fa-circle-exclamation"),s(i,"class","alert alert-error mb-5")},m(e,n){Y(e,i,n),t(i,l),t(i,c),t(i,a),t(a,m),w=!0},p(e,n){(!w||n&4)&&pe(m,e[2])},i(e){w||(e&&he(()=>{w&&(f||(f=re(i,ie,{},!0)),f.run(1))}),w=!0)},o(e){e&&(f||(f=re(i,ie,{},!1)),f.run(0)),w=!1},d(e){e&&p(i),e&&f&&f.end()}}}function Ee(h){let i,l,c,a,m,f="Login",w,e,n,v,M="Email address",j,_,F,L,D,Z="Password",U,b,O,V,G,S,I,R,q,z,P,$="<hr/>",J,T,ee=`<a class="link" href="/signup">sign up</a> |
<a class="link" href="/login/password-reset">forgot password</a>`,K,te,r=h[2]&&ne(h);return{c(){i=g(),l=o("div"),c=o("div"),a=o("div"),m=o("h2"),m.textContent=f,w=g(),e=o("form"),n=o("div"),v=o("label"),v.textContent=M,j=g(),_=o("input"),F=g(),L=o("div"),D=o("label"),D.textContent=Z,U=g(),b=o("input"),O=g(),V=o("p"),G=g(),r&&r.c(),S=g(),I=o("button"),R=oe("Log In "),q=o("i"),z=g(),P=o("div"),P.innerHTML=$,J=g(),T=o("div"),T.innerHTML=ee,this.h()},l(d){ce("svelte-wfjm72",document.head).forEach(p),i=x(d),l=u(d,"DIV",{class:!0});var se=E(l);c=u(se,"DIV",{class:!0});var ae=E(c);a=u(ae,"DIV",{class:!0});var k=E(a);m=u(k,"H2",{class:!0,"data-svelte-h":!0}),H(m)!=="svelte-dkfxp7"&&(m.textContent=f),w=x(k),e=u(k,"FORM",{});var y=E(e);n=u(y,"DIV",{class:!0});var A=E(n);v=u(A,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),H(v)!=="svelte-1ts02yh"&&(v.textContent=M),j=x(A),_=u(A,"INPUT",{type:!0,class:!0,id:!0,placeholder:!0,autocomplete:!0}),A.forEach(p),F=x(y),L=u(y,"DIV",{class:!0});var B=E(L);D=u(B,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),H(D)!=="svelte-m1esth"&&(D.textContent=Z),U=x(B),b=u(B,"INPUT",{type:!0,class:!0,id:!0,placeholder:!0,autocomplete:!0}),B.forEach(p),O=x(y),V=u(y,"P",{class:!0}),E(V).forEach(p),G=x(y),r&&r.l(y),S=x(y),I=u(y,"BUTTON",{type:!0,class:!0});var Q=E(I);R=ue(Q,"Log In "),q=u(Q,"I",{class:!0}),E(q).forEach(p),Q.forEach(p),y.forEach(p),z=x(k),P=u(k,"DIV",{class:!0,"data-svelte-h":!0}),H(P)!=="svelte-18ir1wq"&&(P.innerHTML=$),J=x(k),T=u(k,"DIV",{class:!0,"data-svelte-h":!0}),H(T)!=="svelte-1u8qnq1"&&(T.innerHTML=ee),k.forEach(p),ae.forEach(p),se.forEach(p),this.h()},h(){document.title="Sign In - PocketHost",s(m,"class","card-title mb-4"),s(v,"class","label"),s(v,"for","email"),s(_,"type","email"),s(_,"class","input input-bordered w-full max-w-xs"),s(_,"id","email"),s(_,"placeholder","name@example.com"),_.required=!0,s(_,"autocomplete","email"),s(n,"class","form-control w-full max-w-xs"),s(D,"class","label"),s(D,"for","password"),s(b,"type","password"),s(b,"class","input input-bordered w-full max-w-xs"),s(b,"id","password"),s(b,"placeholder","Password"),b.required=!0,s(b,"autocomplete","current-password"),s(L,"class","form-control w-full max-w-xs"),s(V,"class","m-3"),s(q,"class","bi bi-arrow-right-short"),s(I,"type","submit"),s(I,"class","btn btn-primary w-100"),I.disabled=h[3],s(P,"class","py-4"),s(T,"class","text-center"),s(a,"class","card-body"),s(c,"class","card w-96 bg-base-100 shadow-xl"),s(l,"class","flex justify-center")},m(d,C){Y(d,i,C),Y(d,l,C),t(l,c),t(c,a),t(a,m),t(a,w),t(a,e),t(e,n),t(n,v),t(n,j),t(n,_),N(_,h[0]),t(e,F),t(e,L),t(L,D),t(L,U),t(L,b),N(b,h[1]),t(e,O),t(e,V),t(e,G),r&&r.m(e,null),t(e,S),t(e,I),t(I,R),t(I,q),t(a,z),t(a,P),t(a,J),t(a,T),K||(te=[W(_,"input",h[5]),W(b,"input",h[6]),W(e,"submit",h[4])],K=!0)},p(d,[C]){C&1&&_.value!==d[0]&&N(_,d[0]),C&2&&b.value!==d[1]&&N(b,d[1]),d[2]?r?(r.p(d,C),C&4&&X(r,1)):(r=ne(d),r.c(),X(r,1),r.m(e,S)):r&&(be(),le(r,1,1,()=>{r=null}),_e()),C&8&&(I.disabled=d[3])},i(d){X(r)},o(d){le(r)},d(d){d&&(p(i),p(l)),r&&r.d(),K=!1,fe(te)}}}function ge(h,i,l){let c="",a="",m="",f=!0;const w=async v=>{v.preventDefault(),l(3,f=!0),await we(c,a,M=>{l(2,m=M)}),l(3,f=!1)};function e(){c=this.value,l(0,c)}function n(){a=this.value,l(1,a)}return h.$$.update=()=>{h.$$.dirty&3&&l(3,f=c.length===0||a.length===0)},[c,a,m,f,w,e,n]}class Le extends me{constructor(i){super(),ve(this,i,ge,Ee,de,{})}}export{Le as component};

View File

@ -0,0 +1 @@
import{s as P,a as C,f as h,D as j,d as u,c as I,g as _,h as k,x as L,j as m,i as E,y as p,z as S,C as g,l as z,m as M,n as T,G as Y}from"../chunks/scheduler.de195056.js";import{S as G,i as N,t as V,c as B,a as q,g as F,f as A}from"../chunks/index.c6f2ad36.js";import{p as J}from"../chunks/stores.6150b2da.js";import{s as H}from"../chunks/index.3f7c9ec2.js";import{e as K}from"../chunks/database.5ddaa35e.js";function O(d){let e,r='<span class="visually-hidden">Loading...</span>';return{c(){e=h("div"),e.innerHTML=r,this.h()},l(a){e=_(a,"DIV",{class:!0,role:!0,"data-svelte-h":!0}),L(e)!=="svelte-qqqp01"&&(e.innerHTML=r),this.h()},h(){m(e,"class","spinner-border mx-auto"),m(e,"role","status")},m(a,s){E(a,e,s)},p:g,i:g,o:g,d(a){a&&u(e)}}}function Q(d){let e,r,a,s,i,c,o;return{c(){e=h("div"),r=h("i"),a=C(),s=h("span"),i=z(d[0]),this.h()},l(t){e=_(t,"DIV",{class:!0});var n=k(e);r=_(n,"I",{class:!0}),k(r).forEach(u),a=I(n),s=_(n,"SPAN",{});var x=k(s);i=M(x,d[0]),x.forEach(u),n.forEach(u),this.h()},h(){m(r,"class","fa-solid fa-circle-exclamation"),m(e,"class","alert alert-error mb-5")},m(t,n){E(t,e,n),p(e,r),p(e,a),p(e,s),p(s,i),o=!0},p(t,n){(!o||n&1)&&T(i,t[0])},i(t){o||(t&&Y(()=>{o&&(c||(c=A(e,H,{},!0)),c.run(1))}),o=!0)},o(t){t&&(c||(c=A(e,H,{},!1)),c.run(0)),o=!1},d(t){t&&u(e),t&&c&&c.end()}}}function R(d){let e,r,a,s,i,c="Confirming Your Account",o,t,n;const x=[Q,O],f=[];function w(l,v){return l[0]?0:1}return t=w(d),n=f[t]=x[t](d),{c(){e=C(),r=h("div"),a=h("div"),s=h("div"),i=h("h2"),i.textContent=c,o=C(),n.c(),this.h()},l(l){j("svelte-1vfovme",document.head).forEach(u),e=I(l),r=_(l,"DIV",{class:!0});var b=k(r);a=_(b,"DIV",{class:!0});var D=k(a);s=_(D,"DIV",{class:!0});var y=k(s);i=_(y,"H2",{class:!0,"data-svelte-h":!0}),L(i)!=="svelte-7s58jf"&&(i.textContent=c),o=I(y),n.l(y),y.forEach(u),D.forEach(u),b.forEach(u),this.h()},h(){document.title="Confirming Your Account - PocketHost",m(i,"class","mb-4"),m(s,"class","card-body text-center"),m(a,"class","card w-96 bg-zinc-900 mx-auto shadow-xl overflow-hidden"),m(r,"class","min-h-screen flex items-center justify-center")},m(l,v){E(l,e,v),E(l,r,v),p(r,a),p(a,s),p(s,i),p(s,o),f[t].m(s,null)},p(l,[v]){let b=t;t=w(l),t===b?f[t].p(l,v):(F(),V(f[b],1,1,()=>{f[b]=null}),B(),n=f[t],n?n.p(l,v):(n=f[t]=x[t](l),n.c()),q(n,1),n.m(s,null))},i(l){q(n)},o(l){V(n)},d(l){l&&(u(e),u(r)),f[t].d()}}}function U(d,e,r){let a;S(d,J,o=>r(2,a=o));let s="",i="";const c=async()=>{if(!s)throw new Error("Expected valid token here");await K(s,o=>{r(0,i=o)})};return d.$$.update=()=>{var o,t;d.$$.dirty&6&&(r(1,s=(t=(o=a==null?void 0:a.url)==null?void 0:o.searchParams)==null?void 0:t.get("token")),s?c():r(0,i="Invalid link"))},[i,s,a]}class te extends G{constructor(e){super(),N(this,e,U,R,P,{})}}export{te as component};

View File

@ -0,0 +1 @@
import{s as G,a as I,f,D as z,d as u,c as x,g as h,h as w,j as d,i as V,y as o,C as B,l as S,x as T,m as R,E as L,A as N,F as Y,n as U,G as J}from"../chunks/scheduler.de195056.js";import{S as K,i as Q,a as q,g as W,t as X,c as Z,f as F}from"../chunks/index.c6f2ad36.js";import{s as M}from"../chunks/index.3f7c9ec2.js";import{f as $}from"../chunks/database.5ddaa35e.js";function ee(m){let e,l="Password Reset",c,a,r,i,n="Email address",t,s,b,E,C,p,y,D,g,H,_=m[1]&&O(m);return{c(){e=f("h2"),e.textContent=l,c=I(),a=f("form"),r=f("div"),i=f("label"),i.textContent=n,t=I(),s=f("input"),b=I(),_&&_.c(),E=I(),C=f("div"),p=f("button"),y=S("Send Verification Email "),D=f("i"),this.h()},l(v){e=h(v,"H2",{class:!0,"data-svelte-h":!0}),T(e)!=="svelte-18i78pi"&&(e.textContent=l),c=x(v),a=h(v,"FORM",{});var k=w(a);r=h(k,"DIV",{class:!0});var P=w(r);i=h(P,"LABEL",{class:!0,for:!0,"data-svelte-h":!0}),T(i)!=="svelte-1ts02yh"&&(i.textContent=n),t=x(P),s=h(P,"INPUT",{type:!0,class:!0,id:!0,placeholder:!0,autocomplete:!0}),P.forEach(u),b=x(k),_&&_.l(k),E=x(k),C=h(k,"DIV",{class:!0});var j=w(C);p=h(j,"BUTTON",{type:!0,class:!0});var A=w(p);y=R(A,"Send Verification Email "),D=h(A,"I",{class:!0}),w(D).forEach(u),A.forEach(u),j.forEach(u),k.forEach(u),this.h()},h(){d(e,"class","card-title mb-4"),d(i,"class","label"),d(i,"for","email"),d(s,"type","email"),d(s,"class","input input-bordered w-full max-w-xs"),d(s,"id","email"),d(s,"placeholder","name@example.com"),s.required=!0,d(s,"autocomplete","email"),d(r,"class","form-control w-full max-w-xs"),d(D,"class","bi bi-arrow-right-short"),d(p,"type","submit"),d(p,"class","btn btn-primary w-100"),p.disabled=m[2],d(C,"class","mt-4 card-actions justify-end")},m(v,k){V(v,e,k),V(v,c,k),V(v,a,k),o(a,r),o(r,i),o(r,t),o(r,s),L(s,m[0]),o(a,b),_&&_.m(a,null),o(a,E),o(a,C),o(C,p),o(p,y),o(p,D),g||(H=[N(s,"input",m[5]),N(a,"submit",m[4])],g=!0)},p(v,k){k&1&&s.value!==v[0]&&L(s,v[0]),v[1]?_?(_.p(v,k),k&2&&q(_,1)):(_=O(v),_.c(),q(_,1),_.m(a,E)):_&&(W(),X(_,1,1,()=>{_=null}),Z()),k&4&&(p.disabled=v[2])},d(v){v&&(u(e),u(c),u(a)),_&&_.d(),g=!1,Y(H)}}}function te(m){let e,l,c="Check Your Email",a,r,i,n,t,s,b,E,C='<i class="bi bi-envelope-check"></i>';return{c(){e=f("div"),l=f("h2"),l.textContent=c,a=I(),r=f("p"),i=S("A verification link has been sent to "),n=f("br"),t=f("strong"),s=S(m[0]),b=I(),E=f("div"),E.innerHTML=C,this.h()},l(p){e=h(p,"DIV",{class:!0});var y=w(e);l=h(y,"H2",{class:!0,"data-svelte-h":!0}),T(l)!=="svelte-sup2he"&&(l.textContent=c),a=x(y),r=h(y,"P",{});var D=w(r);i=R(D,"A verification link has been sent to "),n=h(D,"BR",{}),t=h(D,"STRONG",{});var g=w(t);s=R(g,m[0]),g.forEach(u),D.forEach(u),b=x(y),E=h(y,"DIV",{class:!0,"data-svelte-h":!0}),T(E)!=="svelte-1rntj8i"&&(E.innerHTML=C),y.forEach(u),this.h()},h(){d(l,"class","mb-4"),d(E,"class","display-1"),d(e,"class","text-center")},m(p,y){V(p,e,y),o(e,l),o(e,a),o(e,r),o(r,i),o(r,n),o(r,t),o(t,s),o(e,b),o(e,E)},p(p,y){y&1&&U(s,p[0])},d(p){p&&u(e)}}}function O(m){let e,l,c,a,r,i,n;return{c(){e=f("div"),l=f("i"),c=I(),a=f("span"),r=S(m[1]),this.h()},l(t){e=h(t,"DIV",{class:!0});var s=w(e);l=h(s,"I",{class:!0}),w(l).forEach(u),c=x(s),a=h(s,"SPAN",{});var b=w(a);r=R(b,m[1]),b.forEach(u),s.forEach(u),this.h()},h(){d(l,"class","fa-solid fa-circle-exclamation"),d(e,"class","alert alert-error mb-5")},m(t,s){V(t,e,s),o(e,l),o(e,c),o(e,a),o(a,r),n=!0},p(t,s){(!n||s&2)&&U(r,t[1])},i(t){n||(t&&J(()=>{n&&(i||(i=F(e,M,{},!0)),i.run(1))}),n=!0)},o(t){t&&(i||(i=F(e,M,{},!1)),i.run(0)),n=!1},d(t){t&&u(e),t&&i&&i.end()}}}function se(m){let e,l,c,a;function r(t,s){return t[3]?te:ee}let i=r(m),n=i(m);return{c(){e=I(),l=f("div"),c=f("div"),a=f("div"),n.c(),this.h()},l(t){z("svelte-1hrw9hq",document.head).forEach(u),e=x(t),l=h(t,"DIV",{class:!0});var b=w(l);c=h(b,"DIV",{class:!0});var E=w(c);a=h(E,"DIV",{class:!0});var C=w(a);n.l(C),C.forEach(u),E.forEach(u),b.forEach(u),this.h()},h(){document.title="Password Reset - PocketHost",d(a,"class","card-body"),d(c,"class","card w-96 bg-zinc-900 mx-auto shadow-xl overflow-hidden"),d(l,"class","min-h-screen flex items-center justify-center")},m(t,s){V(t,e,s),V(t,l,s),o(l,c),o(c,a),n.m(a,null)},p(t,[s]){i===(i=r(t))&&n?n.p(t,s):(n.d(1),n=i(t),n&&(n.c(),n.m(a,null)))},i:B,o:B,d(t){t&&(u(e),u(l)),n.d()}}}function ae(m,e,l){let c="",a="",r=!0,i=!1;const n=async s=>{s.preventDefault(),l(2,r=!0),await $(c,b=>{l(1,a=b)}),l(2,r=!1),l(3,i=!0)};function t(){c=this.value,l(0,c)}return m.$$.update=()=>{m.$$.dirty&1&&l(2,r=c.length===0)},[c,a,r,i,n,t]}class oe extends K{constructor(e){super(),Q(this,e,ae,se,G,{})}}export{oe as component};

1
dist/dashboard/_app/version.json vendored Normal file
View File

@ -0,0 +1 @@
{"version":"1698865793842"}

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 2.1 KiB

After

Width:  |  Height:  |  Size: 2.1 KiB

View File

Before

Width:  |  Height:  |  Size: 768 B

After

Width:  |  Height:  |  Size: 768 B

View File

Before

Width:  |  Height:  |  Size: 4.2 KiB

After

Width:  |  Height:  |  Size: 4.2 KiB

View File

Before

Width:  |  Height:  |  Size: 1.9 KiB

After

Width:  |  Height:  |  Size: 1.9 KiB

View File

Before

Width:  |  Height:  |  Size: 3.0 KiB

After

Width:  |  Height:  |  Size: 3.0 KiB

View File

Before

Width:  |  Height:  |  Size: 13 KiB

After

Width:  |  Height:  |  Size: 13 KiB

View File

Before

Width:  |  Height:  |  Size: 3.1 KiB

After

Width:  |  Height:  |  Size: 3.1 KiB

View File

Before

Width:  |  Height:  |  Size: 12 KiB

After

Width:  |  Height:  |  Size: 12 KiB

48
dist/dashboard/index.html vendored Normal file
View File

@ -0,0 +1,48 @@
<!doctype html>
<html lang="en" data-theme="dark">
<head>
<meta charset="utf-8" />
<title>PocketHost</title>
<link rel="icon" href="/favicon.png" />
<meta name="viewport" content="width=device-width, initial-scale=1" />
<link
rel="stylesheet"
href="https://cdnjs.cloudflare.com/ajax/libs/highlight.js/11.7.0/styles/a11y-dark.min.css"
id="hljs-link"
/>
<link href="/icons/fontawesome.min.css" rel="stylesheet" />
<link href="/icons/all.min.css" rel="stylesheet" />
<link href="/icons/brands.min.css" rel="stylesheet" />
<link rel="modulepreload" href="/_app/immutable/entry/start.2e6537b8.js">
<link rel="modulepreload" href="/_app/immutable/chunks/scheduler.de195056.js">
<link rel="modulepreload" href="/_app/immutable/chunks/singletons.430f5ae5.js">
<link rel="modulepreload" href="/_app/immutable/chunks/index.af5cccf7.js">
<link rel="modulepreload" href="/_app/immutable/entry/app.79897c49.js">
<link rel="modulepreload" href="/_app/immutable/chunks/index.c6f2ad36.js">
</head>
<body>
<div>
<script>
{
__sveltekit_50zecb = {
base: "",
env: {}
};
const element = document.currentScript.parentElement;
Promise.all([
import("/_app/immutable/entry/start.2e6537b8.js"),
import("/_app/immutable/entry/app.79897c49.js")
]).then(([kit, app]) => {
kit.start(app, element);
});
}
</script>
</div>
</body>
</html>

View File

Before

Width:  |  Height:  |  Size: 16 KiB

After

Width:  |  Height:  |  Size: 16 KiB

3387
dist/lander/404.html vendored Normal file

File diff suppressed because it is too large Load Diff

3411
dist/lander/blog/0.0.1/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3408
dist/lander/blog/0.2.0/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3405
dist/lander/blog/0.3.0/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3400
dist/lander/blog/0.3.1/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3404
dist/lander/blog/0.3.2/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3400
dist/lander/blog/0.4.0/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3401
dist/lander/blog/0.4.1/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3404
dist/lander/blog/0.4.2/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3405
dist/lander/blog/0.5.0/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3404
dist/lander/blog/0.5.1/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3408
dist/lander/blog/0.5.2/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3407
dist/lander/blog/0.5.3/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3406
dist/lander/blog/0.5.4/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

3403
dist/lander/blog/0.5.5/index.html vendored Normal file

File diff suppressed because it is too large Load Diff

Some files were not shown because too many files have changed in this diff Show More