updated ui/dist and some lint warnings
This commit is contained in:
@@ -243,7 +243,7 @@ func (p *plugin) update(withBackup bool) error {
|
||||
}
|
||||
|
||||
color.HiBlack("---")
|
||||
color.Green("Update completed sucessfully! You can start the executable as usual.")
|
||||
color.Green("Update completed successfully! You can start the executable as usual.")
|
||||
|
||||
return nil
|
||||
}
|
||||
|
||||
@@ -211,6 +211,9 @@ func TestBaseBindsMailerMessage(t *testing.T) {
|
||||
}
|
||||
|
||||
raw, err := json.Marshal(m)
|
||||
if err != nil {
|
||||
t.Fatal(err)
|
||||
}
|
||||
|
||||
expected := `{"from":{"Name":"test_from","Address":"test_from@example.com"},"to":[{"Name":"test_to1","Address":"test_to1@example.com"},{"Name":"test_to2","Address":"test_to2@example.com"}],"bcc":[{"Name":"test_bcc1","Address":"test_bcc1@example.com"},{"Name":"test_bcc2","Address":"test_bcc2@example.com"}],"cc":[{"Name":"test_cc1","Address":"test_cc1@example.com"},{"Name":"test_cc2","Address":"test_cc2@example.com"}],"subject":"test_subject","html":"test_html","text":"test_text","headers":{"header1":"a","header2":"b"},"attachments":null}`
|
||||
|
||||
|
||||
+3123
-3122
File diff suppressed because it is too large
Load Diff
@@ -423,7 +423,7 @@ func (p *plugin) relativeTypesPath(basepath string) string {
|
||||
return rel
|
||||
}
|
||||
|
||||
// saveTypesFile saves the embeded TS declarations as a file on the disk.
|
||||
// saveTypesFile saves the embedded TS declarations as a file on the disk.
|
||||
func (p *plugin) saveTypesFile() error {
|
||||
fullPath := p.fullTypesPath()
|
||||
|
||||
|
||||
@@ -137,19 +137,3 @@ func (p *plugin) getCachedCollections() (map[string]*models.Collection, error) {
|
||||
|
||||
return result, nil
|
||||
}
|
||||
|
||||
func (p *plugin) hasCustomMigrations() bool {
|
||||
files, err := os.ReadDir(p.config.Dir)
|
||||
if err != nil {
|
||||
return false
|
||||
}
|
||||
|
||||
for _, f := range files {
|
||||
if f.IsDir() {
|
||||
continue
|
||||
}
|
||||
return true
|
||||
}
|
||||
|
||||
return false
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user