diff --git a/cmd/photoprism/photoprism.go b/cmd/photoprism/photoprism.go index 628998591..1bf14a12b 100644 --- a/cmd/photoprism/photoprism.go +++ b/cmd/photoprism/photoprism.go @@ -1,26 +1,24 @@ /* - Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package main diff --git a/internal/acl/acl.go b/internal/acl/acl.go index 2bc4f279b..8d886bc9d 100644 --- a/internal/acl/acl.go +++ b/internal/acl/acl.go @@ -1,28 +1,26 @@ /* - Package acl provides access control lists for authorization checking of user actions. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package acl diff --git a/internal/api/account.go b/internal/api/account.go index f8483216a..bdd15249d 100644 --- a/internal/api/account.go +++ b/internal/api/account.go @@ -31,7 +31,8 @@ const ( // GET /api/v1/accounts/:id // // Parameters: -// id: string Account ID as returned by the API +// +// id: string Account ID as returned by the API func GetAccount(router *gin.RouterGroup) { router.GET("/accounts/:id", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceAccounts, acl.ActionRead) @@ -63,7 +64,8 @@ func GetAccount(router *gin.RouterGroup) { // GET /api/v1/accounts/:id/folders // // Parameters: -// id: string Account ID as returned by the API +// +// id: string Account ID as returned by the API func GetAccountFolders(router *gin.RouterGroup) { router.GET("/accounts/:id/folders", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceAccounts, acl.ActionRead) @@ -121,7 +123,8 @@ func GetAccountFolders(router *gin.RouterGroup) { // GET /api/v1/accounts/:id/share // // Parameters: -// id: string Account ID as returned by the API +// +// id: string Account ID as returned by the API func ShareWithAccount(router *gin.RouterGroup) { router.POST("/accounts/:id/share", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceAccounts, acl.ActionUpload) @@ -230,7 +233,8 @@ func CreateAccount(router *gin.RouterGroup) { // PUT /api/v1/accounts/:id // // Parameters: -// id: string Account ID as returned by the API +// +// id: string Account ID as returned by the API func UpdateAccount(router *gin.RouterGroup) { router.PUT("/accounts/:id", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceAccounts, acl.ActionUpdate) @@ -301,7 +305,8 @@ func UpdateAccount(router *gin.RouterGroup) { // DELETE /api/v1/accounts/:id // // Parameters: -// id: string Account ID as returned by the API +// +// id: string Account ID as returned by the API func DeleteAccount(router *gin.RouterGroup) { router.DELETE("/accounts/:id", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceAccounts, acl.ActionDelete) diff --git a/internal/api/album.go b/internal/api/album.go index d3d08099b..c4275098b 100644 --- a/internal/api/album.go +++ b/internal/api/album.go @@ -239,7 +239,8 @@ func DeleteAlbum(router *gin.RouterGroup) { // POST /api/v1/albums/:uid/like // // Parameters: -// uid: string Album UID +// +// uid: string Album UID func LikeAlbum(router *gin.RouterGroup) { router.POST("/albums/:uid/like", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceAlbums, acl.ActionLike) @@ -277,7 +278,8 @@ func LikeAlbum(router *gin.RouterGroup) { // DELETE /api/v1/albums/:uid/like // // Parameters: -// uid: string Album UID +// +// uid: string Album UID func DislikeAlbum(router *gin.RouterGroup) { router.DELETE("/albums/:uid/like", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceAlbums, acl.ActionLike) diff --git a/internal/api/api.go b/internal/api/api.go index 76b114a4d..e1ec19389 100644 --- a/internal/api/api.go +++ b/internal/api/api.go @@ -1,28 +1,26 @@ /* - Package api provides REST API request handlers. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package api diff --git a/internal/api/covers.go b/internal/api/covers.go index 3948bbc4c..1470c3a33 100644 --- a/internal/api/covers.go +++ b/internal/api/covers.go @@ -26,9 +26,10 @@ const ( // GET /api/v1/albums/:uid/t/:token/:size // // Parameters: -// uid: string album uid -// token: string security token (see config) -// size: string thumb type, see photoprism.ThumbnailTypes +// +// uid: string album uid +// token: string security token (see config) +// size: string thumb type, see photoprism.ThumbnailTypes func AlbumCover(router *gin.RouterGroup) { router.GET("/albums/:uid/t/:token/:size", func(c *gin.Context) { if InvalidPreviewToken(c) { @@ -138,9 +139,10 @@ func AlbumCover(router *gin.RouterGroup) { // GET /api/v1/labels/:uid/t/:token/:size // // Parameters: -// uid: string label uid -// token: string security token (see config) -// size: string thumb type, see photoprism.ThumbnailTypes +// +// uid: string label uid +// token: string security token (see config) +// size: string thumb type, see photoprism.ThumbnailTypes func LabelCover(router *gin.RouterGroup) { router.GET("/labels/:uid/t/:token/:size", func(c *gin.Context) { if InvalidPreviewToken(c) { diff --git a/internal/api/download_file.go b/internal/api/download_file.go index 2c9ec7015..6ffdb729f 100644 --- a/internal/api/download_file.go +++ b/internal/api/download_file.go @@ -37,7 +37,8 @@ func DownloadName(c *gin.Context) entity.DownloadName { // GET /api/v1/dl/:hash // // Parameters: -// hash: string The file hash as returned by the files/photos endpoint +// +// hash: string The file hash as returned by the files/photos endpoint func GetDownload(router *gin.RouterGroup) { router.GET("/dl/:hash", func(c *gin.Context) { if InvalidDownloadToken(c) { diff --git a/internal/api/file_delete.go b/internal/api/file_delete.go index 94f40a75c..11695fa54 100644 --- a/internal/api/file_delete.go +++ b/internal/api/file_delete.go @@ -19,8 +19,9 @@ import ( // DELETE /api/v1/photos/:uid/files/:file_uid // // Parameters: -// uid: string Photo UID as returned by the API -// file_uid: string File UID as returned by the API +// +// uid: string Photo UID as returned by the API +// file_uid: string File UID as returned by the API func DeleteFile(router *gin.RouterGroup) { router.DELETE("/photos/:uid/files/:file_uid", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceFiles, acl.ActionDelete) diff --git a/internal/api/folder_cover.go b/internal/api/folder_cover.go index eb8e6d562..976f1a47b 100644 --- a/internal/api/folder_cover.go +++ b/internal/api/folder_cover.go @@ -24,9 +24,10 @@ const ( // GET /api/v1/folders/t/:hash/:token/:size // // Parameters: -// uid: string folder uid -// token: string url security token, see config -// size: string thumb type, see thumb.Sizes +// +// uid: string folder uid +// token: string url security token, see config +// size: string thumb type, see thumb.Sizes func FolderCover(router *gin.RouterGroup) { router.GET("/folders/t/:uid/:token/:size", func(c *gin.Context) { if InvalidPreviewToken(c) { diff --git a/internal/api/label.go b/internal/api/label.go index 8ab258ee6..ad8ee0ddb 100644 --- a/internal/api/label.go +++ b/internal/api/label.go @@ -59,7 +59,8 @@ func UpdateLabel(router *gin.RouterGroup) { // POST /api/v1/labels/:uid/like // // Parameters: -// uid: string Label UID +// +// uid: string Label UID func LikeLabel(router *gin.RouterGroup) { router.POST("/labels/:uid/like", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceLabels, acl.ActionUpdate) @@ -99,7 +100,8 @@ func LikeLabel(router *gin.RouterGroup) { // DELETE /api/v1/labels/:uid/like // // Parameters: -// uid: string Label UID +// +// uid: string Label UID func DislikeLabel(router *gin.RouterGroup) { router.DELETE("/labels/:uid/like", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceLabels, acl.ActionUpdate) diff --git a/internal/api/link_test.go b/internal/api/link_test.go index 056b038cf..f496d2c76 100644 --- a/internal/api/link_test.go +++ b/internal/api/link_test.go @@ -223,7 +223,7 @@ func TestUpdatePhotoLink(t *testing.T) { }) } -//TODO Fully assert once functionality exists +// TODO Fully assert once functionality exists func TestDeletePhotoLink(t *testing.T) { app, router, _ := NewApiTest() diff --git a/internal/api/marker.go b/internal/api/marker.go index 3bcd3377e..598327c1f 100644 --- a/internal/api/marker.go +++ b/internal/api/marker.go @@ -73,9 +73,10 @@ func findFileMarker(c *gin.Context) (file *entity.File, marker *entity.Marker, e // PUT /api/v1/markers/:marker_uid // // Parameters: -// uid: string Photo UID as returned by the API -// file_uid: string File UID as returned by the API -// id: int Marker ID as returned by the API +// +// uid: string Photo UID as returned by the API +// file_uid: string File UID as returned by the API +// id: int Marker ID as returned by the API func UpdateMarker(router *gin.RouterGroup) { router.PUT("/markers/:marker_uid", func(c *gin.Context) { // Abort if workers runs less than once per hour. @@ -157,9 +158,10 @@ func UpdateMarker(router *gin.RouterGroup) { // DELETE /api/v1/markers/:marker_uid/subject // // Parameters: -// uid: string Photo UID as returned by the API -// file_uid: string File UID as returned by the API -// id: int Marker ID as returned by the API +// +// uid: string Photo UID as returned by the API +// file_uid: string File UID as returned by the API +// id: int Marker ID as returned by the API func ClearMarkerSubject(router *gin.RouterGroup) { router.DELETE("/markers/:marker_uid/subject", func(c *gin.Context) { // Abort if workers runs less than once per hour. diff --git a/internal/api/photo.go b/internal/api/photo.go index 8236134cb..bfc47cb4c 100644 --- a/internal/api/photo.go +++ b/internal/api/photo.go @@ -162,7 +162,8 @@ func GetPhotoDownload(router *gin.RouterGroup) { // GET /api/v1/photos/:uid/yaml // // Parameters: -// uid: string PhotoUID as returned by the API +// +// uid: string PhotoUID as returned by the API func GetPhotoYaml(router *gin.RouterGroup) { router.GET("/photos/:uid/yaml", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionExport) @@ -197,7 +198,8 @@ func GetPhotoYaml(router *gin.RouterGroup) { // POST /api/v1/photos/:uid/approve // // Parameters: -// uid: string PhotoUID as returned by the API +// +// uid: string PhotoUID as returned by the API func ApprovePhoto(router *gin.RouterGroup) { router.POST("/photos/:uid/approve", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionUpdate) @@ -232,7 +234,8 @@ func ApprovePhoto(router *gin.RouterGroup) { // POST /api/v1/photos/:uid/like // // Parameters: -// uid: string PhotoUID as returned by the API +// +// uid: string PhotoUID as returned by the API func LikePhoto(router *gin.RouterGroup) { router.POST("/photos/:uid/like", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionLike) @@ -267,7 +270,8 @@ func LikePhoto(router *gin.RouterGroup) { // DELETE /api/v1/photos/:uid/like // // Parameters: -// uid: string PhotoUID as returned by the API +// +// uid: string PhotoUID as returned by the API func DislikePhoto(router *gin.RouterGroup) { router.DELETE("/photos/:uid/like", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionLike) @@ -302,8 +306,9 @@ func DislikePhoto(router *gin.RouterGroup) { // POST /api/v1/photos/:uid/files/:file_uid/primary // // Parameters: -// uid: string PhotoUID as returned by the API -// file_uid: string File UID as returned by the API +// +// uid: string PhotoUID as returned by the API +// file_uid: string File UID as returned by the API func PhotoPrimary(router *gin.RouterGroup) { router.POST("/photos/:uid/files/:file_uid/primary", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionUpdate) diff --git a/internal/api/photo_label.go b/internal/api/photo_label.go index 781321da2..4f0b73031 100644 --- a/internal/api/photo_label.go +++ b/internal/api/photo_label.go @@ -19,7 +19,8 @@ import ( // POST /api/v1/photos/:uid/label // // Parameters: -// uid: string PhotoUID as returned by the API +// +// uid: string PhotoUID as returned by the API func AddPhotoLabel(router *gin.RouterGroup) { router.POST("/photos/:uid/label", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionUpdate) @@ -93,8 +94,9 @@ func AddPhotoLabel(router *gin.RouterGroup) { // DELETE /api/v1/photos/:uid/label/:id // // Parameters: -// uid: string PhotoUID as returned by the API -// id: int LabelId as returned by the API +// +// uid: string PhotoUID as returned by the API +// id: int LabelId as returned by the API func RemovePhotoLabel(router *gin.RouterGroup) { router.DELETE("/photos/:uid/label/:id", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionUpdate) @@ -157,8 +159,9 @@ func RemovePhotoLabel(router *gin.RouterGroup) { // PUT /api/v1/photos/:uid/label/:id // // Parameters: -// uid: string PhotoUID as returned by the API -// id: int LabelId as returned by the API +// +// uid: string PhotoUID as returned by the API +// id: int LabelId as returned by the API func UpdatePhotoLabel(router *gin.RouterGroup) { router.PUT("/photos/:uid/label/:id", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionUpdate) diff --git a/internal/api/photo_unstack.go b/internal/api/photo_unstack.go index 8ebf21c89..6378e236b 100644 --- a/internal/api/photo_unstack.go +++ b/internal/api/photo_unstack.go @@ -22,8 +22,9 @@ import ( // POST /api/v1/photos/:uid/files/:file_uid/unstack // // Parameters: -// uid: string Photo UID as returned by the API -// file_uid: string File UID as returned by the API +// +// uid: string Photo UID as returned by the API +// file_uid: string File UID as returned by the API func PhotoUnstack(router *gin.RouterGroup) { router.POST("/photos/:uid/files/:file_uid/unstack", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourcePhotos, acl.ActionUpdate) diff --git a/internal/api/subject.go b/internal/api/subject.go index d149a528b..5eccbb197 100644 --- a/internal/api/subject.go +++ b/internal/api/subject.go @@ -99,7 +99,8 @@ func UpdateSubject(router *gin.RouterGroup) { // POST /api/v1/subjects/:uid/like // // Parameters: -// uid: string Subject UID +// +// uid: string Subject UID func LikeSubject(router *gin.RouterGroup) { router.POST("/subjects/:uid/like", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceSubjects, acl.ActionUpdate) @@ -133,7 +134,8 @@ func LikeSubject(router *gin.RouterGroup) { // DELETE /api/v1/subjects/:uid/like // // Parameters: -// uid: string Subject UID +// +// uid: string Subject UID func DislikeSubject(router *gin.RouterGroup) { router.DELETE("/subjects/:uid/like", func(c *gin.Context) { s := Auth(SessionID(c), acl.ResourceSubjects, acl.ActionUpdate) diff --git a/internal/api/thumbnails.go b/internal/api/thumbnails.go index f98693605..af9c06021 100644 --- a/internal/api/thumbnails.go +++ b/internal/api/thumbnails.go @@ -21,9 +21,10 @@ import ( // GET /api/v1/t/:thumb/:token/:size // // Parameters: -// thumb: string sha1 file hash plus optional crop area -// token: string url security token, see config -// size: string thumb type, see thumb.Sizes +// +// thumb: string sha1 file hash plus optional crop area +// token: string url security token, see config +// size: string thumb type, see thumb.Sizes func GetThumb(router *gin.RouterGroup) { router.GET("/t/:thumb/:token/:size", func(c *gin.Context) { if InvalidPreviewToken(c) { diff --git a/internal/api/video.go b/internal/api/video.go index fabecc744..d21a6d0be 100644 --- a/internal/api/video.go +++ b/internal/api/video.go @@ -20,8 +20,9 @@ import ( // GET /api/v1/videos/:hash/:token/:type // // Parameters: -// hash: string The photo or video file hash as returned by the search API -// type: string Video format +// +// hash: string The photo or video file hash as returned by the search API +// type: string Video format func GetVideo(router *gin.RouterGroup) { router.GET("/videos/:hash/:token/:format", func(c *gin.Context) { if InvalidPreviewToken(c) { diff --git a/internal/auto/auto.go b/internal/auto/auto.go index 4a518d92c..1069f8f78 100644 --- a/internal/auto/auto.go +++ b/internal/auto/auto.go @@ -1,28 +1,26 @@ /* - Package auto provides workers for background indexing and import operations. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package auto diff --git a/internal/classify/classify.go b/internal/classify/classify.go index 1a639b955..414587a17 100644 --- a/internal/classify/classify.go +++ b/internal/classify/classify.go @@ -1,28 +1,26 @@ /* - Package classify encapsulates image classification using TensorFlow. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package classify diff --git a/internal/commands/commands.go b/internal/commands/commands.go index 897124819..bf656ced4 100644 --- a/internal/commands/commands.go +++ b/internal/commands/commands.go @@ -1,28 +1,26 @@ /* - Package commands provides photoprism CLI (sub-)commands. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package commands diff --git a/internal/config/about.go b/internal/config/about.go index cf5920699..78014a111 100644 --- a/internal/config/about.go +++ b/internal/config/about.go @@ -1,27 +1,25 @@ /* - Package config provides global options, command-line flags, and user settings. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package config diff --git a/internal/config/options.go b/internal/config/options.go index 8fa12bf15..0c7ffe63e 100644 --- a/internal/config/options.go +++ b/internal/config/options.go @@ -136,8 +136,8 @@ type Options struct { // // 1. Load: This will initialize options from a yaml config file. // -// 2. SetContext: Which comes after Load and overrides -// any previous options giving an option two override file configs through the CLI. +// 2. SetContext: Which comes after Load and overrides +// any previous options giving an option two override file configs through the CLI. func NewOptions(ctx *cli.Context) *Options { c := &Options{} diff --git a/internal/crop/crop.go b/internal/crop/crop.go index 221725085..36cebf1cf 100644 --- a/internal/crop/crop.go +++ b/internal/crop/crop.go @@ -1,28 +1,26 @@ /* - Package crop provides image crop data structures and helpers. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package crop diff --git a/internal/entity/account_test.go b/internal/entity/account_test.go index 288cbfa3e..522f1da45 100644 --- a/internal/entity/account_test.go +++ b/internal/entity/account_test.go @@ -229,7 +229,7 @@ func TestAccount_Update(t *testing.T) { }) } -//TODO fails on mariadb +// TODO fails on mariadb func TestAccount_Save(t *testing.T) { t.Run("success", func(t *testing.T) { account := Account{AccName: "DeleteAccount", AccOwner: "Delete", AccURL: "test.com", AccType: "test", AccKey: "123", AccUser: "testuser", AccPass: "testpass", diff --git a/internal/entity/details_test.go b/internal/entity/details_test.go index 7cdaa5e8d..6cd444711 100644 --- a/internal/entity/details_test.go +++ b/internal/entity/details_test.go @@ -143,7 +143,7 @@ func TestNewDetails(t *testing.T) { }) } -//TODO fails on mariadb +// TODO fails on mariadb func TestDetails_Create(t *testing.T) { t.Run("error", func(t *testing.T) { details := Details{PhotoID: 0} @@ -161,7 +161,7 @@ func TestDetails_Create(t *testing.T) { }) } -//TODO fails on mariadb +// TODO fails on mariadb func TestDetails_Save(t *testing.T) { t.Run("success", func(t *testing.T) { details := Details{PhotoID: 123678955432, UpdatedAt: time.Date(2020, 2, 1, 0, 0, 0, 0, time.UTC)} diff --git a/internal/entity/marker_test.go b/internal/entity/marker_test.go index 867899d5f..db931ba8e 100644 --- a/internal/entity/marker_test.go +++ b/internal/entity/marker_test.go @@ -245,7 +245,7 @@ func TestMarker_InvalidArea(t *testing.T) { }) } -//TODO fails on mariadb +// TODO fails on mariadb func TestMarker_Save(t *testing.T) { t.Run("success", func(t *testing.T) { m := NewMarker(FileFixtures.Get("exampleFileName.jpg"), testArea, "lt9k3pw1wowuy3c4", SrcImage, MarkerLabel, 100, 65) diff --git a/internal/entity/password_test.go b/internal/entity/password_test.go index aa36fdf3f..3407491d3 100644 --- a/internal/entity/password_test.go +++ b/internal/entity/password_test.go @@ -43,7 +43,7 @@ func TestPassword_InvalidPasswordPassword(t *testing.T) { }) } -//TODO fails on mariadb +// TODO fails on mariadb func TestPassword_Create(t *testing.T) { t.Run("success", func(t *testing.T) { p := Password{} diff --git a/internal/entity/photo_album_test.go b/internal/entity/photo_album_test.go index 8232bae25..094ef1d95 100644 --- a/internal/entity/photo_album_test.go +++ b/internal/entity/photo_album_test.go @@ -57,7 +57,7 @@ func TestFirstOrCreatePhotoAlbum(t *testing.T) { }) } -//TODO fails on mariadb +// TODO fails on mariadb func TestPhotoAlbum_Save(t *testing.T) { t.Run("success", func(t *testing.T) { p := PhotoAlbum{} diff --git a/internal/entity/subject_test.go b/internal/entity/subject_test.go index b0b56b215..e90c8a745 100644 --- a/internal/entity/subject_test.go +++ b/internal/entity/subject_test.go @@ -214,7 +214,7 @@ func TestSubject_Update(t *testing.T) { } -//TODO fails on mariadb +// TODO fails on mariadb func TestSubject_Updates(t *testing.T) { t.Run("success", func(t *testing.T) { m := NewSubject("Update Me", SubjPerson, SrcAuto) diff --git a/internal/event/event.go b/internal/event/event.go index d20d65cec..5b0f92dca 100644 --- a/internal/event/event.go +++ b/internal/event/event.go @@ -1,27 +1,25 @@ /* - Package event provides a publish-subscribe event hub and a global logger. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package event diff --git a/internal/face/face.go b/internal/face/face.go index d44b95eab..659aee66f 100644 --- a/internal/face/face.go +++ b/internal/face/face.go @@ -1,28 +1,26 @@ /* - Package face provides face recognition. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package face diff --git a/internal/ffmpeg/ffmpeg.go b/internal/ffmpeg/ffmpeg.go index 545c451bc..d63c8c60e 100644 --- a/internal/ffmpeg/ffmpeg.go +++ b/internal/ffmpeg/ffmpeg.go @@ -1,28 +1,26 @@ /* - Package ffmpeg provides FFmpeg video transcoding related types and functions. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package ffmpeg diff --git a/internal/form/form.go b/internal/form/form.go index 1e368270f..44487cb18 100644 --- a/internal/form/form.go +++ b/internal/form/form.go @@ -1,28 +1,26 @@ /* - Package form contains tagged structs for input value validation. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package form diff --git a/internal/hub/hub.go b/internal/hub/hub.go index 01f73e185..fea6ff06d 100644 --- a/internal/hub/hub.go +++ b/internal/hub/hub.go @@ -1,28 +1,26 @@ /* - Package hub provides privacy-preserving reverse geocoding and other backend services. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package hub diff --git a/internal/hub/places/places.go b/internal/hub/places/places.go index 16cf7b629..4647df023 100644 --- a/internal/hub/places/places.go +++ b/internal/hub/places/places.go @@ -1,28 +1,26 @@ /* - Package places provides global location information to enrich metadata with location details. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package places diff --git a/internal/i18n/i18n.go b/internal/i18n/i18n.go index e35fd61d4..205207c82 100644 --- a/internal/i18n/i18n.go +++ b/internal/i18n/i18n.go @@ -1,28 +1,26 @@ /* - Package i18n provides translatable notification and error messages. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package i18n diff --git a/internal/maps/maps.go b/internal/maps/maps.go index d3144ba83..aff421ea8 100644 --- a/internal/maps/maps.go +++ b/internal/maps/maps.go @@ -1,28 +1,26 @@ /* - Package maps provides a location lookup abstraction including a normalized list of countries. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package maps diff --git a/internal/meta/meta.go b/internal/meta/meta.go index f3b7b8463..251125570 100644 --- a/internal/meta/meta.go +++ b/internal/meta/meta.go @@ -1,28 +1,26 @@ /* - Package meta provides XMP and Exif metadata parsing and normalization. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package meta diff --git a/internal/migrate/migrate.go b/internal/migrate/migrate.go index a246922a8..726fad74b 100644 --- a/internal/migrate/migrate.go +++ b/internal/migrate/migrate.go @@ -1,28 +1,26 @@ /* - Package migrate provides database schema migrations. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package migrate diff --git a/internal/mutex/mutex.go b/internal/mutex/mutex.go index e23228075..5eacdfafa 100644 --- a/internal/mutex/mutex.go +++ b/internal/mutex/mutex.go @@ -1,28 +1,26 @@ /* - Package mutex provides concurrency control for index workers and database operations. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package mutex diff --git a/internal/nsfw/nsfw.go b/internal/nsfw/nsfw.go index d612bc008..dee629c30 100644 --- a/internal/nsfw/nsfw.go +++ b/internal/nsfw/nsfw.go @@ -1,28 +1,26 @@ /* - Package nsfw provides detection of images that are "not safe for work" based on various categories. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package nsfw diff --git a/internal/photoprism/photoprism.go b/internal/photoprism/photoprism.go index 469dae74c..01a038487 100644 --- a/internal/photoprism/photoprism.go +++ b/internal/photoprism/photoprism.go @@ -1,28 +1,26 @@ /* - Package photoprism provides the core functionality of PhotoPrism®. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package photoprism diff --git a/internal/query/duplicates_test.go b/internal/query/duplicates_test.go index 77e335a60..6b66bf45a 100644 --- a/internal/query/duplicates_test.go +++ b/internal/query/duplicates_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" ) -//TODO find duplicates +// TODO find duplicates func TestDuplicates(t *testing.T) { t.Run("success", func(t *testing.T) { if files, err := Duplicates(10, 0, ""); err != nil { diff --git a/internal/query/errors_test.go b/internal/query/errors_test.go index 645c9586a..5867950a8 100644 --- a/internal/query/errors_test.go +++ b/internal/query/errors_test.go @@ -6,7 +6,7 @@ import ( "github.com/stretchr/testify/assert" ) -//TODO test non empty case +// TODO test non empty case func TestErrors(t *testing.T) { t.Run("not existing", func(t *testing.T) { errors, err := Errors(1000, 0, "notexistingErrorString") diff --git a/internal/query/photo_test.go b/internal/query/photo_test.go index e09d9471f..dd6363f42 100644 --- a/internal/query/photo_test.go +++ b/internal/query/photo_test.go @@ -88,7 +88,7 @@ func TestOrphanPhotos(t *testing.T) { assert.IsType(t, entity.Photos{}, result) } -//TODO How to verify? +// TODO How to verify? func TestFixPrimaries(t *testing.T) { t.Run("success", func(t *testing.T) { err := FixPrimaries() diff --git a/internal/query/query.go b/internal/query/query.go index 84d2b302b..d24c16628 100644 --- a/internal/query/query.go +++ b/internal/query/query.go @@ -1,28 +1,26 @@ /* - Package query provides frequently used database queries for use in commands and API. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package query diff --git a/internal/remote/remote.go b/internal/remote/remote.go index dd8c23ae9..97c25ee0f 100644 --- a/internal/remote/remote.go +++ b/internal/remote/remote.go @@ -1,28 +1,26 @@ /* - Package remote provides detection of remote services for file sharing and synchronization. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package remote diff --git a/internal/remote/webdav/webdav.go b/internal/remote/webdav/webdav.go index 4423d1aea..822c30aa0 100644 --- a/internal/remote/webdav/webdav.go +++ b/internal/remote/webdav/webdav.go @@ -1,28 +1,26 @@ /* - Package webdav provides WebDAV file sharing and synchronization. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package webdav diff --git a/internal/search/search.go b/internal/search/search.go index ad35f3f12..187800b7f 100644 --- a/internal/search/search.go +++ b/internal/search/search.go @@ -1,28 +1,26 @@ /* - Package search provides search queries to find photos, albums, labels, and subjects. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package search diff --git a/internal/server/about.go b/internal/server/about.go index d81e51519..21ce3dcc8 100644 --- a/internal/server/about.go +++ b/internal/server/about.go @@ -1,27 +1,25 @@ /* - Package server provides REST and web server routing, request handling and logging. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package server diff --git a/internal/service/service.go b/internal/service/service.go index dd2b72ef6..0b432421a 100644 --- a/internal/service/service.go +++ b/internal/service/service.go @@ -1,28 +1,26 @@ /* - Package service provides a registry for common services. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package service diff --git a/internal/session/session.go b/internal/session/session.go index 01118b55a..a4ec6a8e5 100644 --- a/internal/session/session.go +++ b/internal/session/session.go @@ -1,28 +1,26 @@ /* - Package session provides session storage and management. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package session diff --git a/internal/thumb/thumb.go b/internal/thumb/thumb.go index 345e195ff..18e3a20bd 100644 --- a/internal/thumb/thumb.go +++ b/internal/thumb/thumb.go @@ -1,28 +1,26 @@ /* - Package thumb provides JPEG resampling and thumbnail generation. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package thumb diff --git a/internal/viewer/viewer.go b/internal/viewer/viewer.go index 808bc4593..a3e53ccc8 100644 --- a/internal/viewer/viewer.go +++ b/internal/viewer/viewer.go @@ -1,27 +1,25 @@ /* - Package viewer provides photo viewer data structures and utility functions. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package viewer diff --git a/internal/workers/workers.go b/internal/workers/workers.go index 9c1971c78..edfd243b6 100644 --- a/internal/workers/workers.go +++ b/internal/workers/workers.go @@ -1,28 +1,26 @@ /* - Package workers provides index, sync, and metadata optimization background workers. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package workers diff --git a/pkg/capture/capture.go b/pkg/capture/capture.go index 83bf6de4a..0a736311a 100644 --- a/pkg/capture/capture.go +++ b/pkg/capture/capture.go @@ -1,27 +1,25 @@ /* - Package capture provides profiling functions for testing and debugging. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package capture diff --git a/pkg/clean/clean.go b/pkg/clean/clean.go index 1f825632c..c03acff0a 100644 --- a/pkg/clean/clean.go +++ b/pkg/clean/clean.go @@ -1,28 +1,26 @@ /* - Package clean provides validation, sanitation, and normalization of input values. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package clean diff --git a/pkg/colors/colors.go b/pkg/colors/colors.go index e34d697a2..2897a5569 100644 --- a/pkg/colors/colors.go +++ b/pkg/colors/colors.go @@ -1,28 +1,26 @@ /* - Package colors provides types and functions for color classification. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package colors diff --git a/pkg/env/env.go b/pkg/env/env.go index 382a99edb..c5df08df5 100644 --- a/pkg/env/env.go +++ b/pkg/env/env.go @@ -1,27 +1,25 @@ /* - Package env provides runtime environment information. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package env diff --git a/pkg/fastwalk/fastwalk.go b/pkg/fastwalk/fastwalk.go index 9887f7e7a..798fe599b 100644 --- a/pkg/fastwalk/fastwalk.go +++ b/pkg/fastwalk/fastwalk.go @@ -40,12 +40,12 @@ var ErrSkipFiles = errors.New("fastwalk: skip remaining files in directory") // If fastWalk returns filepath.SkipDir, the directory is skipped. // // Unlike filepath.Walk: -// * file stat calls must be done by the user. +// - file stat calls must be done by the user. // The only provided metadata is the file type, which does not include // any permission bits. -// * multiple goroutines stat the filesystem concurrently. The provided +// - multiple goroutines stat the filesystem concurrently. The provided // walkFn must be safe for concurrent use. -// * fastWalk can follow symlinks if walkFn returns the TraverseLink +// - fastWalk can follow symlinks if walkFn returns the TraverseLink // sentinel error. It is the walkFn's responsibility to prevent // fastWalk from going into symlink cycles. func Walk(root string, walkFn func(path string, typ os.FileMode) error) error { diff --git a/pkg/fs/fs.go b/pkg/fs/fs.go index c27691632..0294e8735 100644 --- a/pkg/fs/fs.go +++ b/pkg/fs/fs.go @@ -1,28 +1,26 @@ /* - Package fs provides filesystem related constants and functions. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package fs diff --git a/pkg/geo/geo.go b/pkg/geo/geo.go index 4cef3580c..4e87d0f2b 100644 --- a/pkg/geo/geo.go +++ b/pkg/geo/geo.go @@ -1,28 +1,26 @@ /* - Package geo provides earth geometry functions and constants. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package geo diff --git a/pkg/list/list.go b/pkg/list/list.go index 3223994e9..838c90118 100644 --- a/pkg/list/list.go +++ b/pkg/list/list.go @@ -1,28 +1,26 @@ /* - Package list provides a string slice abstraction. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package list diff --git a/pkg/media/media.go b/pkg/media/media.go index 7ec88d740..e76fbe241 100644 --- a/pkg/media/media.go +++ b/pkg/media/media.go @@ -1,27 +1,25 @@ /* - Package media provides general content types and maps them to file formats. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package media diff --git a/pkg/pluscode/pluscode.go b/pkg/pluscode/pluscode.go index 41dbe31eb..987c59702 100644 --- a/pkg/pluscode/pluscode.go +++ b/pkg/pluscode/pluscode.go @@ -1,28 +1,26 @@ /* - Package pluscode provides an abstraction for Google's Open Location Code package. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package pluscode diff --git a/pkg/projection/projection.go b/pkg/projection/projection.go index f7af11cf5..ca41a3aae 100644 --- a/pkg/projection/projection.go +++ b/pkg/projection/projection.go @@ -1,27 +1,25 @@ /* - Package projection provides visual projection types and methods. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package projection diff --git a/pkg/report/report.go b/pkg/report/report.go index 0b51dd61a..0257c1c0e 100644 --- a/pkg/report/report.go +++ b/pkg/report/report.go @@ -1,27 +1,25 @@ /* - Package report provides rendering of report results, for example as Markdown. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package report diff --git a/pkg/rnd/rnd.go b/pkg/rnd/rnd.go index 20df36681..a892df3b2 100644 --- a/pkg/rnd/rnd.go +++ b/pkg/rnd/rnd.go @@ -1,27 +1,25 @@ /* - Package rnd provides random token generation and validation. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package rnd diff --git a/pkg/s2/s2.go b/pkg/s2/s2.go index f31f7ff21..c986de53f 100644 --- a/pkg/s2/s2.go +++ b/pkg/s2/s2.go @@ -1,30 +1,28 @@ /* - Package s2 encapsulates Google's S2 library. See https://s2geometry.io/ Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package s2 diff --git a/pkg/txt/txt.go b/pkg/txt/txt.go index 5a7d10f0a..091ae3e42 100644 --- a/pkg/txt/txt.go +++ b/pkg/txt/txt.go @@ -1,28 +1,26 @@ /* - Package txt provides text and linguistics related functionality. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package txt diff --git a/pkg/video/video.go b/pkg/video/video.go index e5deca843..ec368e3ae 100644 --- a/pkg/video/video.go +++ b/pkg/video/video.go @@ -1,27 +1,25 @@ /* - Package video provides video file related types and functions. Copyright (c) 2018 - 2022 PhotoPrism UG. All rights reserved. - This program is free software: you can redistribute it and/or modify - it under Version 3 of the GNU Affero General Public License (the "AGPL"): - + This program is free software: you can redistribute it and/or modify + it under Version 3 of the GNU Affero General Public License (the "AGPL"): + - This program is distributed in the hope that it will be useful, - but WITHOUT ANY WARRANTY; without even the implied warranty of - MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the - GNU Affero General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU Affero General Public License for more details. - The AGPL is supplemented by our Trademark and Brand Guidelines, - which describe how our Brand Assets may be used: - + The AGPL is supplemented by our Trademark and Brand Guidelines, + which describe how our Brand Assets may be used: + Feel free to send an email to hello@photoprism.app if you have questions, want to support our work, or just want to say hello. Additional information can be found in our Developer Guide: - */ package video