updated changelog and ui/dist

This commit is contained in:
Gani Georgiev
2022-12-05 22:57:39 +02:00
parent 4070a11660
commit dba66d4da1
36 changed files with 75 additions and 46 deletions
+3 -1
View File
@@ -112,7 +112,9 @@ func (m *Record) OriginalCopy() *Record {
newRecord := NewRecord(m.collection)
newRecord.Load(m.originalData)
if !m.IsNew() {
if m.IsNew() {
newRecord.MarkAsNew()
} else {
newRecord.MarkAsNotNew()
}
+4 -4
View File
@@ -78,7 +78,7 @@ const (
FieldTypeFile string = "file"
FieldTypeRelation string = "relation"
// Deprecated: Will be removed in v0.9!
// Deprecated: Will be removed in v0.9+
FieldTypeUser string = "user"
)
@@ -235,7 +235,7 @@ func (f *SchemaField) InitOptions() error {
case FieldTypeRelation:
options = &RelationOptions{}
// Deprecated: Will be removed in v0.9!
// Deprecated: Will be removed in v0.9+
case FieldTypeUser:
options = &UserOptions{}
@@ -515,13 +515,13 @@ func (o RelationOptions) Validate() error {
// -------------------------------------------------------------------
// Deprecated: Will be removed in v0.9!
// Deprecated: Will be removed in v0.9+
type UserOptions struct {
MaxSelect int `form:"maxSelect" json:"maxSelect"`
CascadeDelete bool `form:"cascadeDelete" json:"cascadeDelete"`
}
// Deprecated: Will be removed in v0.9!
// Deprecated: Will be removed in v0.9+
func (o UserOptions) Validate() error {
return nil
}
+3 -3
View File
@@ -30,7 +30,7 @@ type Settings struct {
RecordEmailChangeToken TokenConfig `form:"recordEmailChangeToken" json:"recordEmailChangeToken"`
RecordVerificationToken TokenConfig `form:"recordVerificationToken" json:"recordVerificationToken"`
// Deprecated: Will be removed in v0.9!
// Deprecated: Will be removed in v0.9+
EmailAuth EmailAuthConfig `form:"emailAuth" json:"emailAuth"`
GoogleAuth AuthProviderConfig `form:"googleAuth" json:"googleAuth"`
@@ -476,7 +476,7 @@ func (c AuthProviderConfig) SetupProvider(provider auth.Provider) error {
// -------------------------------------------------------------------
// Deprecated: Will be removed in v0.9!
// Deprecated: Will be removed in v0.9+
type EmailAuthConfig struct {
Enabled bool `form:"enabled" json:"enabled"`
ExceptDomains []string `form:"exceptDomains" json:"exceptDomains"`
@@ -484,7 +484,7 @@ type EmailAuthConfig struct {
MinPasswordLength int `form:"minPasswordLength" json:"minPasswordLength"`
}
// Deprecated: Will be removed in v0.9!
// Deprecated: Will be removed in v0.9+
func (c EmailAuthConfig) Validate() error {
return nil
}