Merge branch 'main' of github.com:pockethost/pockethost

This commit is contained in:
Ben Allfree 2024-12-05 10:17:43 +00:00
commit 37e94a610c
11 changed files with 26 additions and 34 deletions

View File

@ -1,5 +0,0 @@
---
'pockethost': patch
---
Default to dev mode on new instances

View File

@ -1,5 +0,0 @@
---
'pockethost': patch
---
Add mothership update-versions command

View File

@ -1,5 +0,0 @@
---
'@pockethost/dashboard': patch
---
Add dev mode pulse

View File

@ -1,5 +0,0 @@
---
'@pockethost/dashboard': patch
---
Dashboard fix: Don't allow instance creation until versions are available

View File

@ -0,0 +1,8 @@
# @pockethost/dashboard
## 0.4.2
### Patch Changes
- 148e7bb: Add dev mode pulse
- ea113a9: Dashboard fix: Don't allow instance creation until versions are available

View File

@ -1,6 +1,6 @@
{
"name": "@pockethost/dashboard",
"version": "0.4.1",
"version": "0.4.2",
"private": true,
"main": "./src/app.html",
"scripts": {

View File

@ -93,7 +93,7 @@
<button
type="submit"
class="btn btn-error"
disabled={!power || isButtonDisabled}>Delete Instance</button
disabled={power || isButtonDisabled}>Delete Instance</button
>
</form>

View File

@ -2,19 +2,12 @@
import UserLoggedIn from '$components/guards/UserLoggedIn.svelte'
import UserLoggedOut from '$components/guards/UserLoggedOut.svelte'
import { onMount } from 'svelte'
import { dev } from '$app/environment'
import { browser, dev } from '$app/environment'
import { is23Available } from '$util/stores'
const BANNER_KEY = 'promo-banner-v0.23-dismissed'
const isActive = $is23Available
let isVisible = isActive
onMount(() => {
if (dev) {
localStorage.removeItem(BANNER_KEY)
}
isVisible = isActive && !localStorage.getItem(BANNER_KEY)
})
$: isActive = $is23Available
$: isVisible = isActive && browser && !localStorage.getItem(BANNER_KEY)
function dismissBanner() {
localStorage.setItem(BANNER_KEY, 'true')

View File

@ -1,5 +1,16 @@
# pockethost
## 2.2.0
### Minor Changes
- v23 support
### Patch Changes
- a5eaa42: Default to dev mode on new instances
- ed47618: Add mothership update-versions command
## 2.1.1
### Patch Changes

View File

@ -1,6 +1,6 @@
{
"name": "pockethost",
"version": "2.1.1",
"version": "2.2.0",
"author": {
"name": "Ben Allfree",
"url": "https://github.com/benallfree"

View File

@ -82,7 +82,7 @@ const createDevCert = async () => {
export const createSettings = () => ({
DEBUG: mkBoolean(_DEBUG),
PH_ALLOWED_POCKETBASE_SEMVER: mkString(`<=0.22.*`),
PH_ALLOWED_POCKETBASE_SEMVER: mkString(`<=0.23.*`),
PH_HOME: mkPath(_PH_HOME, { create: true }),
PH_PROJECT_ROOT: mkPath(PH_PROJECT_ROOT()),