diff --git a/sample-app/exec.go b/sample-app/exec.go index a3b5d4a..5e515ef 100644 --- a/sample-app/exec.go +++ b/sample-app/exec.go @@ -32,13 +32,25 @@ func NewScriptFromPath(path string) (*Script, error) { return NewScriptFromString(content), nil } +const ( + // IgnoreSpacesBash is the amount of (spaces - 1) that we see in common \\n delimited commands + IgnoreSpacesBash string = " " + + // IgnoreTabs is the tab character + IgnoreTabs string = "\t" +) + // NewScriptFromString is used to build an executable script from the content in string form. func NewScriptFromString(str string) *Script { script := &Script{} - - // "\\\n" - // "" - //str = strings.Replace(str, "\\\n", "", -1) + removeRuleF := func(str string, rs []string) string { + for _, r := range rs { + str = strings.Replace(str, r, "", -1) + } + return str + } + str = strings.Replace(str, "\\\n", "", -1) + str = removeRuleF(str, []string{IgnoreSpacesBash, IgnoreTabs}) spl := strings.Split(str, "\n") //logger.Info("Script lines: %d", len(spl)) for _, line := range spl { @@ -53,14 +65,13 @@ func (s *Script) Interpret() error { //logger.Info("Running script...") for i, cmdStr := range s.commands { // Exec will hang for output - // Ignore newlines // Ignore comments starting with # // Ignore comments starting with // if cmdStr == "\n" || cmdStr == "" || strings.HasPrefix(cmdStr, "#") || strings.HasPrefix(cmdStr, "//") { continue } - //logger.Info("Executing: [%s]", cmdStr) + logger.Info("Executing: [%s]", cmdStr) result, err := Exec(cmdStr) if err != nil { return fmt.Errorf("error executing running command [%s] on line [%d]\n%v\n", cmdStr, i+1, err) diff --git a/sample-app/pcreate b/sample-app/pcreate index 6b52f15..c9c6c39 100755 --- a/sample-app/pcreate +++ b/sample-app/pcreate @@ -12,7 +12,14 @@ echo "Creating [SampleApp]" # TODO Nova # TODO Per edude03ontwitch we want to actually mount /photoprism/whatever -# TODO Need to fix the `\\\n` string replace to respect a happy command here -docker run -d --name photoprism -p 8080:2342 -e PHOTOPRISM_UPLOAD_NSFW="true" -e PHOTOPRISM_ADMIN_PASSWORD="missy" -v photoprism:/photoprism photoprism/photoprism:latest -z +docker run -d \ + --name photoprism \ + -p 8080:2342 \ + -e PHOTOPRISM_UPLOAD_NSFW="true" \ + -e PHOTOPRISM_ADMIN_PASSWORD="missy" \ + -v ${GOPATH}/src/github.com/kris-nova/client-go/sample-app/photoprism/import:/photoprism/import \ + -v ${GOPATH}/src/github.com/kris-nova/client-go/sample-app/photoprism/originals:/photoprism/originals \ + -v ${GOPATH}/src/github.com/kris-nova/client-go/sample-app/photoprism/storage:/photoprism/storage \ + photoprism/photoprism:latest + diff --git a/sample-app/photoprism/EpTcef3VoAEiaS4.jpeg b/sample-app/photoprism/originals/2021/02/20210204_031706_36A3FD61.jpeg old mode 100644 new mode 100755 similarity index 100% rename from sample-app/photoprism/EpTcef3VoAEiaS4.jpeg rename to sample-app/photoprism/originals/2021/02/20210204_031706_36A3FD61.jpeg diff --git a/sample-app/photoprism/IMG_3044.jpg b/sample-app/photoprism/originals/2021/02/20210204_031706_5B740007.jpg old mode 100644 new mode 100755 similarity index 100% rename from sample-app/photoprism/IMG_3044.jpg rename to sample-app/photoprism/originals/2021/02/20210204_031706_5B740007.jpg diff --git a/sample-app/photoprism/ElgexEiU8AA-pQO.jpeg b/sample-app/photoprism/originals/2021/02/20210204_031706_76642B51.jpeg old mode 100644 new mode 100755 similarity index 100% rename from sample-app/photoprism/ElgexEiU8AA-pQO.jpeg rename to sample-app/photoprism/originals/2021/02/20210204_031706_76642B51.jpeg diff --git a/sample-app/photoprism/NVA05562.JPG b/sample-app/photoprism/originals/2021/02/20210204_031706_AE1CC552.jpg old mode 100644 new mode 100755 similarity index 100% rename from sample-app/photoprism/NVA05562.JPG rename to sample-app/photoprism/originals/2021/02/20210204_031706_AE1CC552.jpg diff --git a/sample-app/photoprism/storage/ElgexEiU8AA-pQO.jpeg b/sample-app/photoprism/storage/ElgexEiU8AA-pQO.jpeg new file mode 100644 index 0000000..e67c9cf Binary files /dev/null and b/sample-app/photoprism/storage/ElgexEiU8AA-pQO.jpeg differ diff --git a/sample-app/photoprism/storage/EpTcef3VoAEiaS4.jpeg b/sample-app/photoprism/storage/EpTcef3VoAEiaS4.jpeg new file mode 100644 index 0000000..2730508 Binary files /dev/null and b/sample-app/photoprism/storage/EpTcef3VoAEiaS4.jpeg differ diff --git a/sample-app/photoprism/storage/IMG_3044.jpg b/sample-app/photoprism/storage/IMG_3044.jpg new file mode 100644 index 0000000..8291139 Binary files /dev/null and b/sample-app/photoprism/storage/IMG_3044.jpg differ diff --git a/sample-app/photoprism/storage/NVA05562.JPG b/sample-app/photoprism/storage/NVA05562.JPG new file mode 100644 index 0000000..3d7f803 Binary files /dev/null and b/sample-app/photoprism/storage/NVA05562.JPG differ diff --git a/sample-app/photoprism/storage/albums/album/aqnzih81icziiyae.yml b/sample-app/photoprism/storage/albums/album/aqnzih81icziiyae.yml new file mode 100755 index 0000000..10c01b3 --- /dev/null +++ b/sample-app/photoprism/storage/albums/album/aqnzih81icziiyae.yml @@ -0,0 +1,17 @@ +UID: aqnzih81icziiyae +Slug: february-2021 +Type: album +Title: February 2021 +Order: oldest +Country: zz +CreatedAt: 2021-02-04T03:17:32Z +UpdatedAt: 2021-02-04T03:17:32Z +Photos: +- UID: pqnzigq156lndozm + CreatedAt: 2021-02-04T03:17:40.83892969Z +- UID: pqnzigq1jb1bibrz + CreatedAt: 2021-02-04T03:17:40.846632301Z +- UID: pqnzigq351j2fqgn + CreatedAt: 2021-02-04T03:17:40.851856107Z +- UID: pqnzigq3sidxb0j0 + CreatedAt: 2021-02-04T03:17:40.857083572Z diff --git a/sample-app/photoprism/storage/albums/folder/aqnzigj1x4er0ld0.yml b/sample-app/photoprism/storage/albums/folder/aqnzigj1x4er0ld0.yml new file mode 100755 index 0000000..48c83d3 --- /dev/null +++ b/sample-app/photoprism/storage/albums/folder/aqnzigj1x4er0ld0.yml @@ -0,0 +1,12 @@ +UID: aqnzigj1x4er0ld0 +Slug: 2021-02 +Type: folder +Title: February 2021 +Filter: path:2021/02 public:true +Order: added +Country: zz +Year: 2021 +Month: 2 +Day: 1 +CreatedAt: 2021-02-04T03:17:07Z +UpdatedAt: 2021-02-04T03:17:07Z diff --git a/sample-app/photoprism/storage/albums/folder/aqnzigu3qbx4y34d.yml b/sample-app/photoprism/storage/albums/folder/aqnzigu3qbx4y34d.yml new file mode 100755 index 0000000..5f2d5ed --- /dev/null +++ b/sample-app/photoprism/storage/albums/folder/aqnzigu3qbx4y34d.yml @@ -0,0 +1,11 @@ +UID: aqnzigu3qbx4y34d +Slug: "2021" +Type: folder +Title: "2021" +Filter: path:2021 public:true +Order: added +Country: zz +Year: 2021 +Month: 2 +CreatedAt: 2021-02-04T03:17:19Z +UpdatedAt: 2021-02-04T03:17:19Z diff --git a/sample-app/photoprism/storage/cache/json/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_exiftool.json b/sample-app/photoprism/storage/cache/json/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_exiftool.json new file mode 100755 index 0000000..bd88b4f --- /dev/null +++ b/sample-app/photoprism/storage/cache/json/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_exiftool.json @@ -0,0 +1,28 @@ +[{ + "SourceFile": "/photoprism/import/upload/1612408626903/IMG_3044.jpg", + "ExifToolVersion": 11.88, + "FileName": "IMG_3044.jpg", + "Directory": "/photoprism/import/upload/1612408626903", + "FileSize": "114 kB", + "FileModifyDate": "2021:02:04 03:17:06+00:00", + "FileAccessDate": "2021:02:04 03:17:06+00:00", + "FileInodeChangeDate": "2021:02:04 03:17:06+00:00", + "FilePermissions": "rw-r--r--", + "FileType": "JPEG", + "FileTypeExtension": "jpg", + "MIMEType": "image/jpeg", + "JFIFVersion": 1.01, + "ResolutionUnit": "None", + "XResolution": 1, + "YResolution": 1, + "ExifByteOrder": "Little-endian (Intel, II)", + "Software": "Google", + "ImageWidth": 520, + "ImageHeight": 924, + "EncodingProcess": "Baseline DCT, Huffman coding", + "BitsPerSample": 8, + "ColorComponents": 3, + "YCbCrSubSampling": "YCbCr4:2:0 (2 2)", + "ImageSize": "520x924", + "Megapixels": 0.480 +}] diff --git a/sample-app/photoprism/storage/cache/json/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_exiftool.json b/sample-app/photoprism/storage/cache/json/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_exiftool.json new file mode 100755 index 0000000..e7ce4da --- /dev/null +++ b/sample-app/photoprism/storage/cache/json/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_exiftool.json @@ -0,0 +1,26 @@ +[{ + "SourceFile": "/photoprism/import/upload/1612408626903/EpTcef3VoAEiaS4.jpeg", + "ExifToolVersion": 11.88, + "FileName": "EpTcef3VoAEiaS4.jpeg", + "Directory": "/photoprism/import/upload/1612408626903", + "FileSize": "592 kB", + "FileModifyDate": "2021:02:04 03:17:06+00:00", + "FileAccessDate": "2021:02:04 03:17:06+00:00", + "FileInodeChangeDate": "2021:02:04 03:17:06+00:00", + "FilePermissions": "rw-r--r--", + "FileType": "JPEG", + "FileTypeExtension": "jpg", + "MIMEType": "image/jpeg", + "JFIFVersion": 1.01, + "ResolutionUnit": "None", + "XResolution": 72, + "YResolution": 72, + "ImageWidth": 1536, + "ImageHeight": 2048, + "EncodingProcess": "Progressive DCT, Huffman coding", + "BitsPerSample": 8, + "ColorComponents": 3, + "YCbCrSubSampling": "YCbCr4:2:0 (2 2)", + "ImageSize": "1536x2048", + "Megapixels": 3.1 +}] diff --git a/sample-app/photoprism/storage/cache/json/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_exiftool.json b/sample-app/photoprism/storage/cache/json/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_exiftool.json new file mode 100755 index 0000000..668b2b2 --- /dev/null +++ b/sample-app/photoprism/storage/cache/json/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_exiftool.json @@ -0,0 +1,26 @@ +[{ + "SourceFile": "/photoprism/import/upload/1612408626903/ElgexEiU8AA-pQO.jpeg", + "ExifToolVersion": 11.88, + "FileName": "ElgexEiU8AA-pQO.jpeg", + "Directory": "/photoprism/import/upload/1612408626903", + "FileSize": "380 kB", + "FileModifyDate": "2021:02:04 03:17:06+00:00", + "FileAccessDate": "2021:02:04 03:17:06+00:00", + "FileInodeChangeDate": "2021:02:04 03:17:06+00:00", + "FilePermissions": "rw-r--r--", + "FileType": "JPEG", + "FileTypeExtension": "jpg", + "MIMEType": "image/jpeg", + "JFIFVersion": 1.01, + "ResolutionUnit": "None", + "XResolution": 72, + "YResolution": 72, + "ImageWidth": 1152, + "ImageHeight": 2048, + "EncodingProcess": "Progressive DCT, Huffman coding", + "BitsPerSample": 8, + "ColorComponents": 3, + "YCbCrSubSampling": "YCbCr4:2:0 (2 2)", + "ImageSize": "1152x2048", + "Megapixels": 2.4 +}] diff --git a/sample-app/photoprism/storage/cache/json/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_exiftool.json b/sample-app/photoprism/storage/cache/json/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_exiftool.json new file mode 100755 index 0000000..9995582 --- /dev/null +++ b/sample-app/photoprism/storage/cache/json/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_exiftool.json @@ -0,0 +1,30 @@ +[{ + "SourceFile": "/photoprism/import/upload/1612408626903/NVA05562.JPG", + "ExifToolVersion": 11.88, + "FileName": "NVA05562.JPG", + "Directory": "/photoprism/import/upload/1612408626903", + "FileSize": "134 kB", + "FileModifyDate": "2021:02:04 03:17:06+00:00", + "FileAccessDate": "2021:02:04 03:17:06+00:00", + "FileInodeChangeDate": "2021:02:04 03:17:06+00:00", + "FilePermissions": "rw-r--r--", + "FileType": "JPEG", + "FileTypeExtension": "jpg", + "MIMEType": "image/jpeg", + "JFIFVersion": 1.01, + "ResolutionUnit": "None", + "XResolution": 1, + "YResolution": 1, + "ExifByteOrder": "Little-endian (Intel, II)", + "Software": "Google", + "ExifVersion": "0220", + "UserComment": "", + "ImageWidth": 1664, + "ImageHeight": 936, + "EncodingProcess": "Baseline DCT, Huffman coding", + "BitsPerSample": 8, + "ColorComponents": 3, + "YCbCrSubSampling": "YCbCr4:2:0 (2 2)", + "ImageSize": "1664x936", + "Megapixels": 1.6 +}] diff --git a/sample-app/photoprism/storage/cache/sessions.json b/sample-app/photoprism/storage/cache/sessions.json new file mode 100644 index 0000000..2fec575 --- /dev/null +++ b/sample-app/photoprism/storage/cache/sessions.json @@ -0,0 +1,7 @@ +{ + "e33287a631810f290267be9f8c3940b401bea9f58ffc2b22": { + "user": "uqnzie01i1nypnt9", + "tokens": null, + "expiration": 1613013394435050492 + } +} \ No newline at end of file diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_100x100_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_100x100_center.jpg new file mode 100644 index 0000000..449a318 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_100x100_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_1280x1024_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_1280x1024_fit.jpg new file mode 100644 index 0000000..bf49e44 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_1280x1024_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_1920x1200_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_1920x1200_fit.jpg new file mode 100644 index 0000000..bf49e44 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_1920x1200_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_2048x2048_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_2048x2048_fit.jpg new file mode 100644 index 0000000..bf49e44 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_2048x2048_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_center.jpg new file mode 100644 index 0000000..321c752 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_left.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_left.jpg new file mode 100644 index 0000000..18ec70f Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_left.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_right.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_right.jpg new file mode 100644 index 0000000..2ec0c43 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_224x224_right.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_3x3_resize.png b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_3x3_resize.png new file mode 100644 index 0000000..8990bba Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_3x3_resize.png differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_500x500_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_500x500_center.jpg new file mode 100644 index 0000000..29df329 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_500x500_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_50x50_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_50x50_center.jpg new file mode 100644 index 0000000..6b9cb56 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_50x50_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_720x720_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_720x720_fit.jpg new file mode 100644 index 0000000..824c189 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/3/b/0/3b084194e75f1da063ae39669904553a7a701b00_720x720_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_100x100_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_100x100_center.jpg new file mode 100644 index 0000000..a49b7ad Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_100x100_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_1280x1024_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_1280x1024_fit.jpg new file mode 100644 index 0000000..30c6ac2 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_1280x1024_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_1920x1200_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_1920x1200_fit.jpg new file mode 100644 index 0000000..834c5b8 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_1920x1200_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_2048x2048_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_2048x2048_fit.jpg new file mode 100644 index 0000000..596127a Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_2048x2048_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_center.jpg new file mode 100644 index 0000000..722b7a2 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_left.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_left.jpg new file mode 100644 index 0000000..77dbe4c Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_left.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_right.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_right.jpg new file mode 100644 index 0000000..87b410a Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_224x224_right.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_3x3_resize.png b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_3x3_resize.png new file mode 100644 index 0000000..cc1b8cd Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_3x3_resize.png differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_500x500_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_500x500_center.jpg new file mode 100644 index 0000000..8c06b8c Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_500x500_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_50x50_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_50x50_center.jpg new file mode 100644 index 0000000..e237b03 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_50x50_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_720x720_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_720x720_fit.jpg new file mode 100644 index 0000000..0ef73eb Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/9/7/b/97b01540215894bf3a109bb1223ecec14564ecd3_720x720_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_100x100_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_100x100_center.jpg new file mode 100644 index 0000000..5114084 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_100x100_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_1280x1024_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_1280x1024_fit.jpg new file mode 100644 index 0000000..57e2b04 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_1280x1024_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_1920x1200_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_1920x1200_fit.jpg new file mode 100644 index 0000000..fe55a8e Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_1920x1200_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_2048x2048_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_2048x2048_fit.jpg new file mode 100644 index 0000000..6a54ce6 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_2048x2048_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_center.jpg new file mode 100644 index 0000000..1796ffe Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_left.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_left.jpg new file mode 100644 index 0000000..ca02286 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_left.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_right.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_right.jpg new file mode 100644 index 0000000..2415407 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_224x224_right.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_3x3_resize.png b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_3x3_resize.png new file mode 100644 index 0000000..95476d5 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_3x3_resize.png differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_500x500_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_500x500_center.jpg new file mode 100644 index 0000000..aac2877 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_500x500_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_50x50_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_50x50_center.jpg new file mode 100644 index 0000000..905c057 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_50x50_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_720x720_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_720x720_fit.jpg new file mode 100644 index 0000000..bd454ed Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/d/2/2/d22b4efb4dcebab0e8a29ee7333fab31bac66f5f_720x720_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_100x100_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_100x100_center.jpg new file mode 100644 index 0000000..588c5da Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_100x100_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_1280x1024_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_1280x1024_fit.jpg new file mode 100644 index 0000000..a2c8fed Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_1280x1024_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_1920x1200_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_1920x1200_fit.jpg new file mode 100644 index 0000000..6da2d25 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_1920x1200_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_2048x2048_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_2048x2048_fit.jpg new file mode 100644 index 0000000..6da2d25 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_2048x2048_fit.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_center.jpg new file mode 100644 index 0000000..c56f553 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_left.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_left.jpg new file mode 100644 index 0000000..a88c200 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_left.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_right.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_right.jpg new file mode 100644 index 0000000..ec7982a Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_224x224_right.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_3x3_resize.png b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_3x3_resize.png new file mode 100644 index 0000000..a73ae62 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_3x3_resize.png differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_500x500_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_500x500_center.jpg new file mode 100644 index 0000000..fb30870 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_500x500_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_50x50_center.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_50x50_center.jpg new file mode 100644 index 0000000..9b62f93 Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_50x50_center.jpg differ diff --git a/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_720x720_fit.jpg b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_720x720_fit.jpg new file mode 100644 index 0000000..3b57e8e Binary files /dev/null and b/sample-app/photoprism/storage/cache/thumbnails/f/a/a/faaa720ff26ff0e577e0c5ca11eff0efa2ea033b_720x720_fit.jpg differ diff --git a/sample-app/photoprism/storage/config/hub.yml b/sample-app/photoprism/storage/config/hub.yml new file mode 100755 index 0000000..17ecee7 --- /dev/null +++ b/sample-app/photoprism/storage/config/hub.yml @@ -0,0 +1,6 @@ +Key: 11cddc94aa7b4bd8e0a0fb9cd9b26f73682dc182 +Secret: b0f3077d6d0a96e1a9b5f46d6cd9677d +Session: 9be9016f1444e71f653924d94413eee404f913dbdb925fad0d28fd5b40bda689b63bed4005ba1c9cb8ba5f297861690960d6481c831e4ef32c91906aefd7500bb5e3561d480d22fa83278d64ae7503580898cd +Status: unregistered +Version: 210121-07e559df-Linux-x86_64 +Serial: zqnzidyoy2xby5bs diff --git a/sample-app/photoprism/storage/config/settings.yml b/sample-app/photoprism/storage/config/settings.yml new file mode 100755 index 0000000..0e20801 --- /dev/null +++ b/sample-app/photoprism/storage/config/settings.yml @@ -0,0 +1,45 @@ +UI: + Scrollbar: true + Zoom: false + Theme: default + Language: en +Templates: + Default: index.tmpl +Maps: + Animate: 0 + Style: streets +Features: + Upload: true + Download: true + Private: true + Review: true + Files: true + Folders: true + Albums: true + Moments: true + Estimates: true + People: true + Labels: true + Places: true + Edit: true + Archive: true + Delete: false + Share: true + Library: true + Import: true + Logs: true +Import: + Path: / + Move: false +Index: + Path: / + Convert: true + Rescan: true +Stack: + UUID: true + Meta: true + Name: false +Share: + Title: "" +Download: + Name: file diff --git a/sample-app/photoprism/storage/index.db b/sample-app/photoprism/storage/index.db new file mode 100644 index 0000000..f48188c Binary files /dev/null and b/sample-app/photoprism/storage/index.db differ diff --git a/sample-app/photoprism/storage/serial b/sample-app/photoprism/storage/serial new file mode 100755 index 0000000..15227f2 --- /dev/null +++ b/sample-app/photoprism/storage/serial @@ -0,0 +1 @@ +zqnzidyoy2xby5bs \ No newline at end of file diff --git a/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_36A3FD61.yml b/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_36A3FD61.yml new file mode 100755 index 0000000..09bbc48 --- /dev/null +++ b/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_36A3FD61.yml @@ -0,0 +1,12 @@ +TakenAt: 2021-02-04T03:17:07Z +UID: pqnzigq3sidxb0j0 +Type: image +Title: Eptcef Voaeias +OriginalName: EpTcef3VoAEiaS4 +Year: -1 +Month: -1 +Day: -1 +Details: + Keywords: black, cat, eptcef, voaeias +CreatedAt: 2021-02-04T03:17:14.849461459Z +UpdatedAt: 2021-02-04T03:17:19.316067097Z diff --git a/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_5B740007.yml b/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_5B740007.yml new file mode 100755 index 0000000..64c8be3 --- /dev/null +++ b/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_5B740007.yml @@ -0,0 +1,12 @@ +TakenAt: 2021-02-04T03:17:07Z +UID: pqnzigq351j2fqgn +Type: image +Title: Unknown +OriginalName: IMG_3044 +Year: -1 +Month: -1 +Day: -1 +Details: + Keywords: green +CreatedAt: 2021-02-04T03:17:14.613092062Z +UpdatedAt: 2021-02-04T03:17:19.229760864Z diff --git a/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_76642B51.yml b/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_76642B51.yml new file mode 100755 index 0000000..2849a46 --- /dev/null +++ b/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_76642B51.yml @@ -0,0 +1,12 @@ +TakenAt: 2021-02-04T03:17:07Z +UID: pqnzigq156lndozm +Type: image +Title: Elgexeiu Aa Pqo +OriginalName: ElgexEiU8AA-pQO +Year: -1 +Month: -1 +Day: -1 +Details: + Keywords: blue, elgexeiu, portrait +CreatedAt: 2021-02-04T03:17:14.668332772Z +UpdatedAt: 2021-02-04T03:17:19.250144986Z diff --git a/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_AE1CC552.yml b/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_AE1CC552.yml new file mode 100755 index 0000000..2583a8a --- /dev/null +++ b/sample-app/photoprism/storage/sidecar/2021/02/20210204_031706_AE1CC552.yml @@ -0,0 +1,12 @@ +TakenAt: 2021-02-04T03:17:07Z +UID: pqnzigq1jb1bibrz +Type: image +Title: Seashore +OriginalName: NVA05562 +Year: -1 +Month: -1 +Day: -1 +Details: + Keywords: grey, seashore +CreatedAt: 2021-02-04T03:17:14.738798274Z +UpdatedAt: 2021-02-04T03:17:19.271986797Z