mirror of
https://github.com/pocket-id/pocket-id.git
synced 2026-02-14 22:50:15 +00:00
chor: correct misspellings (#352)
This commit is contained in:
2
.github/ISSUE_TEMPLATE/bug.yml
vendored
2
.github/ISSUE_TEMPLATE/bug.yml
vendored
@@ -49,7 +49,7 @@ body:
|
|||||||
required: false
|
required: false
|
||||||
attributes:
|
attributes:
|
||||||
label: "Log Output"
|
label: "Log Output"
|
||||||
description: "Output of log files when the issue occured to help us diagnose the issue."
|
description: "Output of log files when the issue occurred to help us diagnose the issue."
|
||||||
- type: markdown
|
- type: markdown
|
||||||
attributes:
|
attributes:
|
||||||
value: |
|
value: |
|
||||||
|
|||||||
@@ -27,7 +27,7 @@ func GetTemplate[U any, V any](templateMap TemplateMap[U], template Template[V])
|
|||||||
return templateMap[template.Path]
|
return templateMap[template.Path]
|
||||||
}
|
}
|
||||||
|
|
||||||
type clonable[V pareseable[V]] interface {
|
type cloneable[V pareseable[V]] interface {
|
||||||
Clone() (V, error)
|
Clone() (V, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
@@ -35,7 +35,7 @@ type pareseable[V any] interface {
|
|||||||
ParseFS(fs.FS, ...string) (V, error)
|
ParseFS(fs.FS, ...string) (V, error)
|
||||||
}
|
}
|
||||||
|
|
||||||
func prepareTemplate[V pareseable[V]](templateFS fs.FS, template string, rootTemplate clonable[V], suffix string) (V, error) {
|
func prepareTemplate[V pareseable[V]](templateFS fs.FS, template string, rootTemplate cloneable[V], suffix string) (V, error) {
|
||||||
tmpl, err := rootTemplate.Clone()
|
tmpl, err := rootTemplate.Clone()
|
||||||
if err != nil {
|
if err != nil {
|
||||||
return *new(V), fmt.Errorf("clone root template: %w", err)
|
return *new(V), fmt.Errorf("clone root template: %w", err)
|
||||||
|
|||||||
@@ -31,7 +31,7 @@
|
|||||||
|
|
||||||
{#if !appConfig}
|
{#if !appConfig}
|
||||||
<Error
|
<Error
|
||||||
message="A critical error occured. Please contact your administrator."
|
message="A critical error occurred. Please contact your administrator."
|
||||||
showButton={false}
|
showButton={false}
|
||||||
/>
|
/>
|
||||||
{:else}
|
{:else}
|
||||||
|
|||||||
@@ -21,7 +21,7 @@
|
|||||||
await userService
|
await userService
|
||||||
.requestOneTimeAccessEmail(email, data.redirect)
|
.requestOneTimeAccessEmail(email, data.redirect)
|
||||||
.then(() => (success = true))
|
.then(() => (success = true))
|
||||||
.catch((e) => (error = e.response?.data.error || 'An unknown error occured'));
|
.catch((e) => (error = e.response?.data.error || 'An unknown error occurred'));
|
||||||
|
|
||||||
isLoading = false;
|
isLoading = false;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user