Uppercase first character in errors
This commit is contained in:
parent
9a0e74112a
commit
6ccc9e9c94
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
File diff suppressed because one or more lines are too long
|
@ -4,6 +4,7 @@ export const hasValNonExpr = /([\w0-9.]+)\.value/gm;
|
|||
|
||||
export const dsErr = (code: string, args?: any) => {
|
||||
const e = new Error();
|
||||
code = code.charAt(0).toUpperCase() + code.slice(1);
|
||||
e.name = `error ${code}`;
|
||||
const fullURL = `${url}/${code}?${new URLSearchParams(args)}`;
|
||||
e.message = `for more info see ${fullURL}`;
|
||||
|
|
|
@ -38,8 +38,8 @@ type EventType =
|
|||
module Consts =
|
||||
let [<Literal>] DatastarKey = "datastar"
|
||||
let [<Literal>] Version = "0.21.1"
|
||||
let [<Literal>] VersionClientByteSize = 33622
|
||||
let [<Literal>] VersionClientByteSizeGzip = 12362
|
||||
let [<Literal>] VersionClientByteSize = 33661
|
||||
let [<Literal>] VersionClientByteSizeGzip = 12377
|
||||
|
||||
/// Default: TimeSpan.FromMilliseconds 300
|
||||
let DefaultFragmentsSettleDuration = TimeSpan.FromMilliseconds 300
|
||||
|
|
|
@ -7,8 +7,8 @@ import "time"
|
|||
const (
|
||||
DatastarKey = "datastar"
|
||||
Version = "0.21.1"
|
||||
VersionClientByteSize = 33622
|
||||
VersionClientByteSizeGzip = 12362
|
||||
VersionClientByteSize = 33661
|
||||
VersionClientByteSizeGzip = 12377
|
||||
|
||||
//region Default durations
|
||||
|
||||
|
|
|
@ -8,8 +8,8 @@ import starfederation.datastar.enums.FragmentMergeMode;
|
|||
public final class Consts {
|
||||
public static final String DATASTAR_KEY = "datastar";
|
||||
public static final String VERSION = "0.21.1";
|
||||
public static final int VERSION_CLIENT_BYTE_SIZE = 33622;
|
||||
public static final int VERSION_CLIENT_BYTE_SIZE_GZIP = 12362;
|
||||
public static final int VERSION_CLIENT_BYTE_SIZE = 33661;
|
||||
public static final int VERSION_CLIENT_BYTE_SIZE_GZIP = 12377;
|
||||
|
||||
// The default duration for settling during fragment merges. Allows for CSS transitions to complete.
|
||||
public static final int DEFAULT_FRAGMENTS_SETTLE_DURATION = 300;
|
||||
|
|
|
@ -11,8 +11,8 @@ class Consts
|
|||
{
|
||||
public const DATASTAR_KEY = 'datastar';
|
||||
public const VERSION = '0.21.1';
|
||||
public const VERSION_CLIENT_BYTE_SIZE = 33622;
|
||||
public const VERSION_CLIENT_BYTE_SIZE_GZIP = 12362;
|
||||
public const VERSION_CLIENT_BYTE_SIZE = 33661;
|
||||
public const VERSION_CLIENT_BYTE_SIZE_GZIP = 12377;
|
||||
|
||||
// The default duration for settling during fragment merges. Allows for CSS transitions to complete.
|
||||
public const DEFAULT_FRAGMENTS_SETTLE_DURATION = 300;
|
||||
|
|
|
@ -1,11 +1,11 @@
|
|||
# Error: ViewTransitionKeyNotAllowed
|
||||
# Error: ScrollIntoViewKeyNotAllowed
|
||||
|
||||
A key was provided to the `data-view-transition` attribute. The `data-view-transition` attribute must not have a key _nor_ a value.
|
||||
A key was provided to the `data-scroll-into-view` attribute. The `data-scroll-into-view` attribute must not have a key _nor_ a value.
|
||||
|
||||
Example:
|
||||
|
||||
```html
|
||||
<div data-view-transition></div>
|
||||
<div data-scroll-into-view></div>
|
||||
```
|
||||
|
||||
See the docs on the [`data-view-transition`](https://data-star.dev/reference/plugins_browser#view-transition) attribute.
|
||||
See the docs on the [`data-scroll-into-view`](https://data-star.dev/reference/plugins_browser#scroll-into-view) attribute.
|
Loading…
Reference in New Issue