diff --git a/compose.postgres.yaml b/compose.postgres.yaml index 403248a60..9b2048e80 100644 --- a/compose.postgres.yaml +++ b/compose.postgres.yaml @@ -2,7 +2,7 @@ ## Setup: https://docs.photoprism.app/developer-guide/setup/ ## services: - ## PhotoPrism Development Environment (PostgresSQL) + ## PhotoPrism Development Environment (PostgreSQL) # ATTENTION: PostgreSQL is NOT supported yet as Gorm (our ORM library) needs to be upgraded first. # The current Gorm version does NOT support compatible general data types: # https://github.com/photoprism/photoprism/issues/47 diff --git a/frontend/src/common/util.js b/frontend/src/common/util.js index 4a0dcdfb6..08d0c8c9f 100644 --- a/frontend/src/common/util.js +++ b/frontend/src/common/util.js @@ -422,7 +422,7 @@ export default class Util { await window.navigator.clipboard.writeText(text); } else if (document.execCommand) { // Clipboard is available only in HTTPS pages. see https://web.dev/async-clipboard/ - // So if the the official 'clipboard' doesn't supported and the 'document.execCommand' is supported. + // So if the official 'clipboard' doesn't supported and the 'document.execCommand' is supported. // copy by a work-around by creating a textarea in the DOM and execute copy command from him. // Create the text area element (to copy from) diff --git a/internal/config/config_db.go b/internal/config/config_db.go index 5a236a0d9..55ea91eea 100644 --- a/internal/config/config_db.go +++ b/internal/config/config_db.go @@ -22,7 +22,7 @@ import ( ) // SQL Databases. -// TODO: PostgresSQL support requires upgrading GORM, so generic column data types can be used. +// TODO: PostgreSQL support requires upgrading GORM, so generic column data types can be used. const ( MySQL = "mysql" MariaDB = "mariadb" diff --git a/internal/entity/auth_user_test.go b/internal/entity/auth_user_test.go index 5526f5716..0c7b6f398 100644 --- a/internal/entity/auth_user_test.go +++ b/internal/entity/auth_user_test.go @@ -238,7 +238,7 @@ func TestUser_UpdateUsername(t *testing.T) { if err := m.UpdateUsername("admin"); err == nil { t.Fatal("error expected") } else { - t.Logf("expected errror: %s", err) + t.Logf("expected error: %s", err) } }) t.Run("Success", func(t *testing.T) { diff --git a/internal/entity/duplicate_test.go b/internal/entity/duplicate_test.go index d29e3decb..380ba65dc 100644 --- a/internal/entity/duplicate_test.go +++ b/internal/entity/duplicate_test.go @@ -185,7 +185,7 @@ func TestDuplicate_Purge(t *testing.T) { t.Fatal(err) } if err := duplicate.Find(); err == nil { - t.Log("Dulicate deleted") + t.Log("Duplicate deleted") } }) } diff --git a/internal/entity/photo_title.go b/internal/entity/photo_title.go index bfaa5fe9e..5c1b21ac3 100644 --- a/internal/entity/photo_title.go +++ b/internal/entity/photo_title.go @@ -173,7 +173,7 @@ func (m *Photo) UpdateTitle(labels classify.Labels) error { // UpdateAndSaveTitle updates the photo title and saves it. func (m *Photo) UpdateAndSaveTitle() error { if !m.HasID() { - return fmt.Errorf("cannot save photo whithout id") + return fmt.Errorf("cannot save photo without id") } m.PhotoFaces = m.FaceCount() diff --git a/internal/meta/gps.go b/internal/meta/gps.go index 57de14ff6..19cfcc9da 100644 --- a/internal/meta/gps.go +++ b/internal/meta/gps.go @@ -21,7 +21,7 @@ var GpsFloatRegexp = regexp.MustCompile("[+\\-]?(?:(?:0|[1-9]\\d*)(?:\\.\\d*)?|\ // GpsToLatLng returns the GPS latitude and longitude as float point number. func GpsToLatLng(s string) (lat, lng float64) { - // Emtpy? + // Empty? if s == "" { return 0, 0 } @@ -62,7 +62,7 @@ func GpsToLatLng(s string) (lat, lng float64) { // GpsToDecimal returns the GPS latitude or longitude as decimal float point number. func GpsToDecimal(s string) float64 { - // Emtpy? + // Empty? if s == "" { return 0 } diff --git a/setup/docker/cloud/digitalocean/check.sh b/setup/docker/cloud/digitalocean/check.sh index 57e528506..4988d3ef4 100755 --- a/setup/docker/cloud/digitalocean/check.sh +++ b/setup/docker/cloud/digitalocean/check.sh @@ -481,7 +481,7 @@ function checkCloudInit { CI="\e[32m[PASS]\e[0m Cloud-init is installed.\n" ((PASS++)) else - CI="\e[41m[FAIL]\e[0m No valid verison of cloud-init was found.\n" + CI="\e[41m[FAIL]\e[0m No valid version of cloud-init was found.\n" ((FAIL++)) STATUS=2 fi