[#7681] changed settings app url input to type=text
This commit is contained in:
@@ -6,6 +6,8 @@
|
|||||||
|
|
||||||
- Serve fixed `Content-Type` for `.xlsx`, `.docx` and `.pptx` files to allow previews on iOS ([#7467](https://github.com/pocketbase/pocketbase/discussions/7467)).
|
- Serve fixed `Content-Type` for `.xlsx`, `.docx` and `.pptx` files to allow previews on iOS ([#7467](https://github.com/pocketbase/pocketbase/discussions/7467)).
|
||||||
|
|
||||||
|
- Changed settings app URL input to `type="text"` for compatibility with earlier versions ([#7681](https://github.com/pocketbase/pocketbase/issues/7681)).
|
||||||
|
|
||||||
- Added an internal watcher to sync various runtime states between multiple PocketBase processes (e.g. memory store) using the same `pb_data`.
|
- Added an internal watcher to sync various runtime states between multiple PocketBase processes (e.g. memory store) using the same `pb_data`.
|
||||||
_This is helpful in case for example a separate PocketBase console command change the collections or application settings while the server is still running._
|
_This is helpful in case for example a separate PocketBase console command change the collections or application settings while the server is still running._
|
||||||
_The watcher is debounced and implemented by watching the special `pb_data/.notify` dir as a workaround to avoid depending on OS and SQLite driver specific APIs._
|
_The watcher is debounced and implemented by watching the special `pb_data/.notify` dir as a workaround to avoid depending on OS and SQLite driver specific APIs._
|
||||||
|
|||||||
@@ -548,6 +548,7 @@ func (c MetaConfig) Validate() error {
|
|||||||
return validation.ValidateStruct(&c,
|
return validation.ValidateStruct(&c,
|
||||||
validation.Field(&c.AccentColor, validation.Length(7, 7), is.HexColor),
|
validation.Field(&c.AccentColor, validation.Length(7, 7), is.HexColor),
|
||||||
validation.Field(&c.AppName, validation.Required, validation.Length(1, 255)),
|
validation.Field(&c.AppName, validation.Required, validation.Length(1, 255)),
|
||||||
|
// @todo when replacing the URL validator we may need a system migration to normalize values without protocol
|
||||||
validation.Field(&c.AppURL, validation.Required, is.URL),
|
validation.Field(&c.AppURL, validation.Required, is.URL),
|
||||||
validation.Field(&c.SenderName, validation.Required, validation.Length(1, 255)),
|
validation.Field(&c.SenderName, validation.Required, validation.Length(1, 255)),
|
||||||
validation.Field(&c.SenderAddress, is.EmailFormat, validation.Required),
|
validation.Field(&c.SenderAddress, is.EmailFormat, validation.Required),
|
||||||
|
|||||||
File diff suppressed because one or more lines are too long
Vendored
+1
-1
@@ -13,7 +13,7 @@
|
|||||||
|
|
||||||
<!-- prism -->
|
<!-- prism -->
|
||||||
<script src="./libs/prism/prism.js" data-manual></script>
|
<script src="./libs/prism/prism.js" data-manual></script>
|
||||||
<script type="module" crossorigin src="./assets/index-CXH-BQix.js"></script>
|
<script type="module" crossorigin src="./assets/index-xKkyzP6n.js"></script>
|
||||||
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
|
<link rel="modulepreload" crossorigin href="./assets/pocketbase.es-B_4DUNUU.js">
|
||||||
<link rel="stylesheet" crossorigin href="./assets/index-DR1PnFnr.css">
|
<link rel="stylesheet" crossorigin href="./assets/index-DR1PnFnr.css">
|
||||||
</head>
|
</head>
|
||||||
|
|||||||
@@ -207,7 +207,11 @@ export function pageApplicationSettings() {
|
|||||||
t.input({
|
t.input({
|
||||||
id: "meta.appURL",
|
id: "meta.appURL",
|
||||||
name: "meta.appURL",
|
name: "meta.appURL",
|
||||||
type: "url",
|
// note: text for compatibility with older versions
|
||||||
|
// (https://github.com/pocketbase/pocketbase/issues/7681)
|
||||||
|
//
|
||||||
|
// @todo consider reverting back to "url" once enforced on the backend too
|
||||||
|
type: "text",
|
||||||
required: true,
|
required: true,
|
||||||
value: () => data.formSettings.meta.appURL || "",
|
value: () => data.formSettings.meta.appURL || "",
|
||||||
oninput: (e) => (data.formSettings.meta.appURL = e.target.value),
|
oninput: (e) => (data.formSettings.meta.appURL = e.target.value),
|
||||||
|
|||||||
Reference in New Issue
Block a user