From dbcc5d8a972f4f169e9e2c0636450555a06152b9 Mon Sep 17 00:00:00 2001 From: Frédéric Guillot Date: Fri, 24 Aug 2018 21:51:50 -0700 Subject: Use canonical imports --- .travis.yml | 1 + Makefile | 14 +++++++------- README.md | 2 +- api/category.go | 8 ++++---- api/controller.go | 6 +++--- api/doc.go | 2 +- api/entry.go | 12 ++++++------ api/feed.go | 8 ++++---- api/icon.go | 8 ++++---- api/opml.go | 10 +++++----- api/payload.go | 4 ++-- api/payload_test.go | 4 ++-- api/subscription.go | 6 +++--- api/user.go | 8 ++++---- cli/ask_credentials.go | 2 +- cli/cli.go | 14 +++++++------- cli/create_admin.go | 6 +++--- cli/doc.go | 2 +- cli/flush_sessions.go | 4 ++-- cli/info.go | 4 ++-- cli/reset_password.go | 4 ++-- config/config.go | 4 ++-- config/config_test.go | 2 +- config/doc.go | 2 +- crypto/crypto.go | 2 +- crypto/doc.go | 2 +- daemon/daemon.go | 14 +++++++------- daemon/doc.go | 2 +- daemon/routes.go | 22 +++++++++++----------- daemon/server.go | 14 +++++++------- database/database.go | 2 +- database/migration.go | 4 ++-- database/sql.go | 2 +- doc.go | 4 ++-- errors/doc.go | 2 +- errors/errors.go | 4 ++-- fever/doc.go | 2 +- fever/fever.go | 18 +++++++++--------- filter/doc.go | 2 +- filter/image_proxy_filter.go | 8 ++++---- filter/image_proxy_filter_test.go | 4 ++-- generate.go | 29 ++++++++++++++++------------- http/client/client.go | 10 +++++----- http/client/response.go | 4 ++-- http/client/response_test.go | 2 +- http/context/context.go | 4 ++-- http/cookie/cookie.go | 2 +- http/request/request.go | 2 +- http/request/request_test.go | 2 +- http/response/html/html.go | 6 +++--- http/response/json/json.go | 6 +++--- http/response/response.go | 2 +- http/response/xml/xml.go | 2 +- http/route/route.go | 4 ++-- integration/doc.go | 2 +- integration/instapaper/instapaper.go | 4 ++-- integration/integration.go | 18 +++++++++--------- integration/nunuxkeeper/nunuxkeeper.go | 4 ++-- integration/pinboard/pinboard.go | 4 ++-- integration/pocket/connector.go | 4 ++-- integration/pocket/pocket.go | 4 ++-- integration/wallabag/wallabag.go | 4 ++-- locale/doc.go | 2 +- locale/language.go | 2 +- locale/locale.go | 4 ++-- locale/locale_test.go | 2 +- locale/plurals.go | 2 +- locale/translations.go | 2 +- locale/translator.go | 2 +- logger/doc.go | 2 +- logger/logger.go | 2 +- main.go | 4 ++-- middleware/app_session.go | 12 ++++++------ middleware/basic_auth.go | 6 +++--- middleware/common_headers.go | 2 +- middleware/context_keys.go | 2 +- middleware/fever.go | 6 +++--- middleware/header_config.go | 2 +- middleware/logging.go | 6 +++--- middleware/middleware.go | 6 +++--- middleware/user_session.go | 14 +++++++------- model/app_session.go | 2 +- model/category.go | 2 +- model/category_test.go | 2 +- model/doc.go | 2 +- model/enclosure.go | 2 +- model/entry.go | 2 +- model/entry_test.go | 2 +- model/feed.go | 2 +- model/icon.go | 2 +- model/integration.go | 2 +- model/job.go | 2 +- model/theme.go | 4 ++-- model/theme_test.go | 2 +- model/user.go | 4 ++-- model/user_session.go | 4 ++-- model/user_test.go | 2 +- oauth2/doc.go | 2 +- oauth2/google.go | 2 +- oauth2/manager.go | 2 +- oauth2/profile.go | 2 +- oauth2/provider.go | 2 +- reader/atom/atom.go | 14 +++++++------- reader/atom/parser.go | 8 ++++---- reader/atom/parser_test.go | 2 +- reader/date/parser.go | 2 +- reader/date/parser_test.go | 2 +- reader/doc.go | 2 +- reader/encoding/doc.go | 2 +- reader/encoding/encoding.go | 2 +- reader/feed/handler.go | 20 ++++++++++---------- reader/feed/parser.go | 20 ++++++++++---------- reader/feed/parser_test.go | 2 +- reader/icon/finder.go | 12 ++++++------ reader/icon/finder_test.go | 2 +- reader/json/json.go | 14 +++++++------- reader/json/parser.go | 6 +++--- reader/json/parser_test.go | 2 +- reader/opml/handler.go | 8 ++++---- reader/opml/opml.go | 2 +- reader/opml/parser.go | 6 +++--- reader/opml/parser_test.go | 2 +- reader/opml/serializer.go | 4 ++-- reader/opml/serializer_test.go | 2 +- reader/opml/subscription.go | 2 +- reader/processor/processor.go | 14 +++++++------- reader/rdf/parser.go | 8 ++++---- reader/rdf/parser_test.go | 2 +- reader/rdf/rdf.go | 14 +++++++------- reader/readability/readability.go | 5 +++-- reader/rewrite/rewrite_functions.go | 8 ++++---- reader/rewrite/rewriter.go | 4 ++-- reader/rewrite/rewriter_test.go | 2 +- reader/rewrite/rules.go | 2 +- reader/rss/parser.go | 8 ++++---- reader/rss/parser_test.go | 2 +- reader/rss/rss.go | 14 +++++++------- reader/sanitizer/sanitizer.go | 4 ++-- reader/sanitizer/sanitizer_test.go | 2 +- reader/sanitizer/strip_tags.go | 2 +- reader/sanitizer/strip_tags_test.go | 2 +- reader/scraper/rules.go | 2 +- reader/scraper/scraper.go | 11 ++++++----- reader/scraper/scraper_test.go | 2 +- reader/subscription/finder.go | 14 +++++++------- reader/subscription/subscription.go | 2 +- scheduler/doc.go | 2 +- scheduler/scheduler.go | 6 +++--- scheduler/worker.go | 8 ++++---- scheduler/worker_pool.go | 6 +++--- storage/category.go | 6 +++--- storage/doc.go | 2 +- storage/enclosure.go | 4 ++-- storage/entry.go | 8 ++++---- storage/entry_pagination_builder.go | 6 +++--- storage/entry_query_builder.go | 8 ++++---- storage/feed.go | 8 ++++---- storage/icon.go | 6 +++--- storage/integration.go | 4 ++-- storage/job.go | 6 +++--- storage/session.go | 6 +++--- storage/storage.go | 2 +- storage/timezone.go | 4 ++-- storage/user.go | 6 +++--- storage/user_session.go | 6 +++--- template/common.go | 2 +- template/dict.go | 2 +- template/dict_test.go | 2 +- template/doc.go | 2 +- template/elapsed.go | 6 +++--- template/elapsed_test.go | 4 ++-- template/engine.go | 10 +++++----- template/functions.go | 12 ++++++------ template/views.go | 2 +- timer/doc.go | 2 +- timer/timer.go | 4 ++-- timezone/timezone.go | 2 +- timezone/timezone_test.go | 2 +- ui/about.go | 12 ++++++------ ui/bookmark_entries.go | 16 ++++++++-------- ui/category_create.go | 10 +++++----- ui/category_edit.go | 14 +++++++------- ui/category_entries.go | 16 ++++++++-------- ui/category_list.go | 10 +++++----- ui/category_remove.go | 12 ++++++------ ui/category_save.go | 20 ++++++++++---------- ui/category_update.go | 20 ++++++++++---------- ui/controller.go | 14 +++++++------- ui/doc.go | 2 +- ui/entry_bookmark.go | 20 ++++++++++---------- ui/entry_category.go | 20 ++++++++++---------- ui/entry_feed.go | 20 ++++++++++---------- ui/entry_read.go | 18 +++++++++--------- ui/entry_save.go | 12 ++++++------ ui/entry_scraper.go | 14 +++++++------- ui/entry_search.go | 20 ++++++++++---------- ui/entry_toggle_bookmark.go | 10 +++++----- ui/entry_unread.go | 20 ++++++++++---------- ui/entry_update_status.go | 8 ++++---- ui/feed_edit.go | 14 +++++++------- ui/feed_entries.go | 16 ++++++++-------- ui/feed_icon.go | 8 ++++---- ui/feed_list.go | 10 +++++----- ui/feed_refresh.go | 14 +++++++------- ui/feed_remove.go | 12 ++++++------ ui/feed_update.go | 20 ++++++++++---------- ui/form/auth.go | 4 ++-- ui/form/category.go | 6 +++--- ui/form/feed.go | 6 +++--- ui/form/integration.go | 4 ++-- ui/form/settings.go | 6 +++--- ui/form/subscription.go | 4 ++-- ui/form/user.go | 6 +++--- ui/history_entries.go | 16 ++++++++-------- ui/history_flush.go | 10 +++++----- ui/integration_pocket.go | 16 ++++++++-------- ui/integration_show.go | 12 ++++++------ ui/integration_update.go | 14 +++++++------- ui/login_check.go | 22 +++++++++++----------- ui/login_show.go | 14 +++++++------- ui/logout.go | 16 ++++++++-------- ui/oauth2.go | 6 +++--- ui/oauth2_callback.go | 20 ++++++++++---------- ui/oauth2_redirect.go | 14 +++++++------- ui/oauth2_unlink.go | 16 ++++++++-------- ui/opml_export.go | 10 +++++----- ui/opml_import.go | 10 +++++----- ui/opml_upload.go | 18 +++++++++--------- ui/pagination.go | 2 +- ui/payload.go | 4 ++-- ui/proxy.go | 14 +++++++------- ui/search_entries.go | 16 ++++++++-------- ui/session/session.go | 8 ++++---- ui/session_list.go | 10 +++++----- ui/session_remove.go | 14 +++++++------- ui/settings_show.go | 16 ++++++++-------- ui/settings_update.go | 22 +++++++++++----------- ui/static/bin.go | 2 +- ui/static/css.go | 2 +- ui/static/js.go | 2 +- ui/static_app_icon.go | 12 ++++++------ ui/static_favicon.go | 10 +++++----- ui/static_javascript.go | 10 +++++----- ui/static_manifest.go | 10 +++++----- ui/static_stylesheet.go | 10 +++++----- ui/subscription_add.go | 10 +++++----- ui/subscription_bookmarklet.go | 14 +++++++------- ui/subscription_choose.go | 16 ++++++++-------- ui/subscription_submit.go | 20 ++++++++++---------- ui/unread_entries.go | 16 ++++++++-------- ui/unread_mark_all_read.go | 10 +++++----- ui/user_create.go | 12 ++++++------ ui/user_edit.go | 14 +++++++------- ui/user_list.go | 10 +++++----- ui/user_remove.go | 12 ++++++------ ui/user_save.go | 18 +++++++++--------- ui/user_update.go | 20 ++++++++++---------- ui/view/view.go | 10 +++++----- url/doc.go | 2 +- url/url.go | 2 +- url/url_test.go | 2 +- version/doc.go | 2 +- version/version.go | 2 +- 263 files changed, 962 insertions(+), 956 deletions(-) diff --git a/.travis.yml b/.travis.yml index c29034d..6d8bb05 100644 --- a/.travis.yml +++ b/.travis.yml @@ -5,6 +5,7 @@ services: addons: postgresql: "9.4" language: go +go_import_path: "miniflux.app" go: - "1.10" before_install: diff --git a/Makefile b/Makefile index ea60bd3..1063ed3 100644 --- a/Makefile +++ b/Makefile @@ -8,22 +8,22 @@ DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable linux: @ go generate - @ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go + @ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go linux-arm: @ go generate - @ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go - @ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go - @ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go - @ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go + @ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go + @ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go + @ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go + @ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go darwin: @ go generate - @ GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go + @ GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go freebsd: @ go generate - @ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'githug.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go + @ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go build: linux linux-arm darwin freebsd diff --git a/README.md b/README.md index 4289b79..02eceb1 100644 --- a/README.md +++ b/README.md @@ -1,7 +1,7 @@ Miniflux 2 ========== [![Build Status](https://travis-ci.org/miniflux/miniflux.svg?branch=master)](https://travis-ci.org/miniflux/miniflux) -[![GoDoc](https://godoc.org/github.com/miniflux/miniflux?status.svg)](https://godoc.org/github.com/miniflux/miniflux) +[![GoDoc](https://godoc.org/miniflux.app?status.svg)](https://godoc.org/miniflux.app) [![Documentation Status](https://readthedocs.org/projects/miniflux/badge/?version=latest)](https://docs.miniflux.app/) Miniflux is a minimalist and opinionated feed reader: diff --git a/api/category.go b/api/category.go index b7b5c02..86766c9 100644 --- a/api/category.go +++ b/api/category.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "errors" "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" ) // CreateCategory is the API handler to create a new category. diff --git a/api/controller.go b/api/controller.go index c9798e3..5cdc056 100644 --- a/api/controller.go +++ b/api/controller.go @@ -2,11 +2,11 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( - "github.com/miniflux/miniflux/reader/feed" - "github.com/miniflux/miniflux/storage" + "miniflux.app/reader/feed" + "miniflux.app/storage" ) // Controller holds all handlers for the API. diff --git a/api/doc.go b/api/doc.go index a43e463..68ddc32 100644 --- a/api/doc.go +++ b/api/doc.go @@ -7,4 +7,4 @@ Package api implements API endpoints for Miniflux application. */ -package api +package api // import "miniflux.app/api" diff --git a/api/entry.go b/api/entry.go index b2a4d9d..cb9c043 100644 --- a/api/entry.go +++ b/api/entry.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "errors" "net/http" "time" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" + "miniflux.app/model" + "miniflux.app/storage" ) // GetFeedEntry is the API handler to get a single feed entry. diff --git a/api/feed.go b/api/feed.go index b6b6357..0474005 100644 --- a/api/feed.go +++ b/api/feed.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "errors" "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" ) // CreateFeed is the API handler to create a new feed. diff --git a/api/icon.go b/api/icon.go index 052cdbc..2d2171a 100644 --- a/api/icon.go +++ b/api/icon.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "errors" "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" ) // FeedIcon returns a feed icon. diff --git a/api/opml.go b/api/opml.go index 8613ded..8554dc1 100644 --- a/api/opml.go +++ b/api/opml.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/http/response/xml" - "github.com/miniflux/miniflux/reader/opml" + "miniflux.app/http/context" + "miniflux.app/http/response/json" + "miniflux.app/http/response/xml" + "miniflux.app/reader/opml" ) // Export is the API handler that export feeds to OPML. diff --git a/api/payload.go b/api/payload.go index ed5255a..ee1e41b 100644 --- a/api/payload.go +++ b/api/payload.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "encoding/json" "fmt" "io" - "github.com/miniflux/miniflux/model" + "miniflux.app/model" ) type feedIcon struct { diff --git a/api/payload_test.go b/api/payload_test.go index debf897..f890fe6 100644 --- a/api/payload_test.go +++ b/api/payload_test.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "testing" - "github.com/miniflux/miniflux/model" + "miniflux.app/model" ) func TestUpdateFeedURL(t *testing.T) { diff --git a/api/subscription.go b/api/subscription.go index a28c3b2..ee471c6 100644 --- a/api/subscription.go +++ b/api/subscription.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "errors" "fmt" "net/http" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/reader/subscription" + "miniflux.app/http/response/json" + "miniflux.app/reader/subscription" ) // GetSubscriptions is the API handler to find subscriptions. diff --git a/api/user.go b/api/user.go index b880ba3..1222ccd 100644 --- a/api/user.go +++ b/api/user.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package api +package api // import "miniflux.app/api" import ( "errors" "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" ) // CurrentUser is the API handler to retrieve the authenticated user. diff --git a/cli/ask_credentials.go b/cli/ask_credentials.go index 3755f43..bd4bf5f 100644 --- a/cli/ask_credentials.go +++ b/cli/ask_credentials.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package cli +package cli // import "miniflux.app/cli" import ( "bufio" diff --git a/cli/cli.go b/cli/cli.go index f4014db..aae5475 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package cli +package cli // import "miniflux.app/cli" import ( "flag" "fmt" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/daemon" - "github.com/miniflux/miniflux/database" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/version" + "miniflux.app/config" + "miniflux.app/daemon" + "miniflux.app/database" + "miniflux.app/logger" + "miniflux.app/storage" + "miniflux.app/version" ) // Parse parses command line arguments. diff --git a/cli/create_admin.go b/cli/create_admin.go index fc6eb6e..372b712 100644 --- a/cli/create_admin.go +++ b/cli/create_admin.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package cli +package cli // import "miniflux.app/cli" import ( "fmt" "os" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" + "miniflux.app/model" + "miniflux.app/storage" ) func createAdmin(store *storage.Storage) { diff --git a/cli/doc.go b/cli/doc.go index 9d4954f..d460726 100644 --- a/cli/doc.go +++ b/cli/doc.go @@ -7,4 +7,4 @@ Package cli implements command line arguments for Miniflux application. */ -package cli +package cli // import "miniflux.app/cli" diff --git a/cli/flush_sessions.go b/cli/flush_sessions.go index 06a56d0..5e16d3c 100644 --- a/cli/flush_sessions.go +++ b/cli/flush_sessions.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package cli +package cli // import "miniflux.app/cli" import ( "fmt" "os" - "github.com/miniflux/miniflux/storage" + "miniflux.app/storage" ) func flushSessions(store *storage.Storage) { diff --git a/cli/info.go b/cli/info.go index 2ae1cef..40db0d9 100644 --- a/cli/info.go +++ b/cli/info.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package cli +package cli // import "miniflux.app/cli" import ( "fmt" "runtime" - "github.com/miniflux/miniflux/version" + "miniflux.app/version" ) func info() { diff --git a/cli/reset_password.go b/cli/reset_password.go index 05a9b51..b9e5150 100644 --- a/cli/reset_password.go +++ b/cli/reset_password.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package cli +package cli // import "miniflux.app/cli" import ( "fmt" "os" - "github.com/miniflux/miniflux/storage" + "miniflux.app/storage" ) func resetPassword(store *storage.Storage) { diff --git a/config/config.go b/config/config.go index 580f01d..c13a7f9 100644 --- a/config/config.go +++ b/config/config.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package config +package config // import "miniflux.app/config" import ( "net/url" @@ -10,7 +10,7 @@ import ( "strconv" "strings" - "github.com/miniflux/miniflux/logger" + "miniflux.app/logger" ) const ( diff --git a/config/config_test.go b/config/config_test.go index 1f91add..a32edfc 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package config +package config // import "miniflux.app/config" import ( "os" diff --git a/config/doc.go b/config/doc.go index f2e9211..a5c6547 100644 --- a/config/doc.go +++ b/config/doc.go @@ -7,4 +7,4 @@ Package config handles configuration values for Miniflux application. */ -package config +package config // import "miniflux.app/config" diff --git a/crypto/crypto.go b/crypto/crypto.go index ea8ea2b..fa236ab 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package crypto +package crypto // import "miniflux.app/crypto" import ( "crypto/rand" diff --git a/crypto/doc.go b/crypto/doc.go index 2bca85a..4213e3f 100644 --- a/crypto/doc.go +++ b/crypto/doc.go @@ -7,4 +7,4 @@ Package crypto implements helpers related to cryptography. */ -package crypto +package crypto // import "miniflux.app/crypto" diff --git a/daemon/daemon.go b/daemon/daemon.go index de91d71..b33d882 100644 --- a/daemon/daemon.go +++ b/daemon/daemon.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package daemon +package daemon // import "miniflux.app/daemon" import ( "context" @@ -12,12 +12,12 @@ import ( "syscall" "time" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/reader/feed" - "github.com/miniflux/miniflux/scheduler" - "github.com/miniflux/miniflux/storage" + "miniflux.app/config" + "miniflux.app/locale" + "miniflux.app/logger" + "miniflux.app/reader/feed" + "miniflux.app/scheduler" + "miniflux.app/storage" ) // Run starts the daemon. diff --git a/daemon/doc.go b/daemon/doc.go index e246949..448c6c7 100644 --- a/daemon/doc.go +++ b/daemon/doc.go @@ -7,4 +7,4 @@ Package daemon handles the main application process. */ -package daemon +package daemon // import "miniflux.app/daemon" diff --git a/daemon/routes.go b/daemon/routes.go index d720b5b..b0a6464 100644 --- a/daemon/routes.go +++ b/daemon/routes.go @@ -2,21 +2,21 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package daemon +package daemon // import "miniflux.app/daemon" import ( "net/http" - "github.com/miniflux/miniflux/api" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/fever" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/middleware" - "github.com/miniflux/miniflux/reader/feed" - "github.com/miniflux/miniflux/scheduler" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/template" - "github.com/miniflux/miniflux/ui" + "miniflux.app/api" + "miniflux.app/config" + "miniflux.app/fever" + "miniflux.app/locale" + "miniflux.app/middleware" + "miniflux.app/reader/feed" + "miniflux.app/scheduler" + "miniflux.app/storage" + "miniflux.app/template" + "miniflux.app/ui" "github.com/gorilla/mux" ) diff --git a/daemon/server.go b/daemon/server.go index d32cd68..c00027f 100644 --- a/daemon/server.go +++ b/daemon/server.go @@ -2,19 +2,19 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package daemon +package daemon // import "miniflux.app/daemon" import ( "crypto/tls" "net/http" "time" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/reader/feed" - "github.com/miniflux/miniflux/scheduler" - "github.com/miniflux/miniflux/storage" + "miniflux.app/config" + "miniflux.app/locale" + "miniflux.app/logger" + "miniflux.app/reader/feed" + "miniflux.app/scheduler" + "miniflux.app/storage" "golang.org/x/crypto/acme/autocert" ) diff --git a/database/database.go b/database/database.go index 42f2292..f5d8a3c 100644 --- a/database/database.go +++ b/database/database.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package database +package database // import "miniflux.app/database" import ( "database/sql" diff --git a/database/migration.go b/database/migration.go index e348e40..3179705 100644 --- a/database/migration.go +++ b/database/migration.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package database +package database // import "miniflux.app/database" import ( "database/sql" "fmt" "strconv" - "github.com/miniflux/miniflux/logger" + "miniflux.app/logger" ) const schemaVersion = 20 diff --git a/database/sql.go b/database/sql.go index a9468ec..34fecd8 100644 --- a/database/sql.go +++ b/database/sql.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. -package database +package database // import "miniflux.app/database" var SqlMap = map[string]string{ "schema_version_1": `create table schema_version ( diff --git a/doc.go b/doc.go index 0d02191..3f8e1e5 100644 --- a/doc.go +++ b/doc.go @@ -4,7 +4,7 @@ /* -Package main implements a feed reader application. +Miniflux is a feed reader application. */ -package main +package main // import "miniflux.app" diff --git a/errors/doc.go b/errors/doc.go index 4c3114d..234ee5c 100644 --- a/errors/doc.go +++ b/errors/doc.go @@ -7,4 +7,4 @@ Package errors handles localized errors. */ -package errors +package errors // import "miniflux.app/errors" diff --git a/errors/errors.go b/errors/errors.go index e7af7b1..b3c5530 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package errors +package errors // import "miniflux.app/errors" import ( "fmt" - "github.com/miniflux/miniflux/locale" + "miniflux.app/locale" ) // LocalizedError represents an error than could be translated to another language. diff --git a/fever/doc.go b/fever/doc.go index f01f098..ea18da8 100644 --- a/fever/doc.go +++ b/fever/doc.go @@ -7,4 +7,4 @@ Package fever implements Fever API endpoints. */ -package fever +package fever // import "miniflux.app/fever" diff --git a/fever/fever.go b/fever/fever.go index 44e155a..2f17fd2 100644 --- a/fever/fever.go +++ b/fever/fever.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package fever +package fever // import "miniflux.app/fever" import ( "net/http" @@ -10,14 +10,14 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/integration" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" + "miniflux.app/config" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" + "miniflux.app/integration" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/storage" ) type baseResponse struct { diff --git a/filter/doc.go b/filter/doc.go index 5fd9fef..db4d610 100644 --- a/filter/doc.go +++ b/filter/doc.go @@ -7,4 +7,4 @@ Package filter implements a content filter to rewrite image links. */ -package filter +package filter // import "miniflux.app/filter" diff --git a/filter/image_proxy_filter.go b/filter/image_proxy_filter.go index 99884e3..01ae591 100644 --- a/filter/image_proxy_filter.go +++ b/filter/image_proxy_filter.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package filter +package filter // import "miniflux.app/filter" import ( "encoding/base64" "strings" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/url" + "miniflux.app/config" + "miniflux.app/http/route" + "miniflux.app/url" "github.com/PuerkitoBio/goquery" "github.com/gorilla/mux" diff --git a/filter/image_proxy_filter_test.go b/filter/image_proxy_filter_test.go index 7c1376e..8e97cd0 100644 --- a/filter/image_proxy_filter_test.go +++ b/filter/image_proxy_filter_test.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package filter +package filter // import "miniflux.app/filter" import ( "net/http" "os" "testing" - "github.com/miniflux/miniflux/config" + "miniflux.app/config" "github.com/gorilla/mux" ) diff --git a/generate.go b/generate.go index cba64e3..7136cc3 100644 --- a/generate.go +++ b/generate.go @@ -24,7 +24,7 @@ import ( const tpl = `// Code generated by go generate; DO NOT EDIT. -package {{ .Package }} +package {{ .Package }} // import "miniflux.app/{{ .ImportPath }}" var {{ .Map }} = map[string]string{ {{ range $constant, $content := .Files }}` + "\t" + `"{{ $constant }}": ` + "`{{ $content }}`" + `, @@ -38,9 +38,11 @@ var {{ .Map }}Checksums = map[string]string{ var bundleTpl = template.Must(template.New("").Parse(tpl)) type Bundle struct { - Package, Map string - Files map[string]string - Checksums map[string]string + Package string + Map string + ImportPath string + Files map[string]string + Checksums map[string]string } func (b *Bundle) Write(filename string) { @@ -53,12 +55,13 @@ func (b *Bundle) Write(filename string) { bundleTpl.Execute(f, b) } -func NewBundle(pkg, mapName string) *Bundle { +func NewBundle(pkg, mapName, importPath string) *Bundle { return &Bundle{ - Package: pkg, - Map: mapName, - Files: make(map[string]string), - Checksums: make(map[string]string), + Package: pkg, + Map: mapName, + ImportPath: importPath, + Files: make(map[string]string), + Checksums: make(map[string]string), } } @@ -97,7 +100,7 @@ func concat(files []string) string { } func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefixes, suffixes map[string]string) { - bundle := NewBundle("static", "Javascripts") + bundle := NewBundle("static", "Javascripts", "ui/static") m := minify.New() m.AddFunc("text/javascript", js.Minify) @@ -127,7 +130,7 @@ func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefix } func generateCSSBundle(bundleFile string, themes map[string][]string) { - bundle := NewBundle("static", "Stylesheets") + bundle := NewBundle("static", "Stylesheets", "ui/static") m := minify.New() m.AddFunc("text/css", css.Minify) @@ -146,7 +149,7 @@ func generateCSSBundle(bundleFile string, themes map[string][]string) { } func generateBinaryBundle(bundleFile string, srcFiles []string) { - bundle := NewBundle("static", "Binaries") + bundle := NewBundle("static", "Binaries", "ui/static") for _, srcFile := range srcFiles { data := readFile(srcFile) @@ -161,7 +164,7 @@ func generateBinaryBundle(bundleFile string, srcFiles []string) { } func generateBundle(bundleFile, pkg, mapName string, srcFiles []string) { - bundle := NewBundle(pkg, mapName) + bundle := NewBundle(pkg, mapName, pkg) for _, srcFile := range srcFiles { data := readFile(srcFile) diff --git a/http/client/client.go b/http/client/client.go index d9f3524..201b136 100644 --- a/http/client/client.go +++ b/http/client/client.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package client +package client // import "miniflux.app/http/client" import ( "bytes" @@ -18,10 +18,10 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/timer" - "github.com/miniflux/miniflux/version" + "miniflux.app/errors" + "miniflux.app/logger" + "miniflux.app/timer" + "miniflux.app/version" ) const ( diff --git a/http/client/response.go b/http/client/response.go index d4e3cdc..0efd8e2 100644 --- a/http/client/response.go +++ b/http/client/response.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package client +package client // import "miniflux.app/http/client" import ( "io" "mime" "strings" - "github.com/miniflux/miniflux/logger" "golang.org/x/net/html/charset" + "miniflux.app/logger" ) // Response wraps a server response. diff --git a/http/client/response_test.go b/http/client/response_test.go index f3402a8..cd0f73d 100644 --- a/http/client/response_test.go +++ b/http/client/response_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package client +package client // import "miniflux.app/http/client" import "testing" diff --git a/http/context/context.go b/http/context/context.go index 4ca95c5..1c65e64 100644 --- a/http/context/context.go +++ b/http/context/context.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package context +package context // import "miniflux.app/http/context" import ( "net/http" - "github.com/miniflux/miniflux/middleware" + "miniflux.app/middleware" ) // Context contains helper functions related to the current request. diff --git a/http/cookie/cookie.go b/http/cookie/cookie.go index 4407daa..d0e55eb 100644 --- a/http/cookie/cookie.go +++ b/http/cookie/cookie.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package cookie +package cookie // import "miniflux.app/http/cookie" import ( "net/http" diff --git a/http/request/request.go b/http/request/request.go index cc5a4dd..802b1d0 100644 --- a/http/request/request.go +++ b/http/request/request.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package request +package request // import "miniflux.app/http/request" import ( "fmt" diff --git a/http/request/request_test.go b/http/request/request_test.go index a4aaabf..fa2c4b1 100644 --- a/http/request/request_test.go +++ b/http/request/request_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package request +package request // import "miniflux.app/http/request" import ( "net/http" diff --git a/http/response/html/html.go b/http/response/html/html.go index a17ce04..65a4649 100644 --- a/http/response/html/html.go +++ b/http/response/html/html.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package html +package html // import "miniflux.app/http/response/html" import ( "net/http" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/response" + "miniflux.app/logger" ) // OK writes a standard HTML response. diff --git a/http/response/json/json.go b/http/response/json/json.go index 6f3eb15..f19efb0 100644 --- a/http/response/json/json.go +++ b/http/response/json/json.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package json +package json // import "miniflux.app/http/response/json" import ( "encoding/json" "errors" "net/http" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/response" + "miniflux.app/logger" ) // OK sends a JSON response with the status code 200. diff --git a/http/response/response.go b/http/response/response.go index f792625..4d73171 100644 --- a/http/response/response.go +++ b/http/response/response.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package response +package response // import "miniflux.app/http/response" import ( "compress/flate" diff --git a/http/response/xml/xml.go b/http/response/xml/xml.go index 9e37e87..bceb5f1 100644 --- a/http/response/xml/xml.go +++ b/http/response/xml/xml.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package xml +package xml // import "miniflux.app/http/response/xml" import ( "fmt" diff --git a/http/route/route.go b/http/route/route.go index ee574a5..e7b1dc2 100644 --- a/http/route/route.go +++ b/http/route/route.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package route +package route // import "miniflux.app/http/route" import ( "strconv" "github.com/gorilla/mux" - "github.com/miniflux/miniflux/logger" + "miniflux.app/logger" ) // Path returns the defined route based on given arguments. diff --git a/integration/doc.go b/integration/doc.go index fb1fc08..abbf552 100644 --- a/integration/doc.go +++ b/integration/doc.go @@ -7,4 +7,4 @@ Package integration implements API clients for third-party services. */ -package integration +package integration // import "miniflux.app/integration" diff --git a/integration/instapaper/instapaper.go b/integration/instapaper/instapaper.go index 3b9e91c..a3973ff 100644 --- a/integration/instapaper/instapaper.go +++ b/integration/instapaper/instapaper.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package instapaper +package instapaper // import "miniflux.app/integration/instapaper" import ( "fmt" "net/url" - "github.com/miniflux/miniflux/http/client" + "miniflux.app/http/client" ) // Client represents an Instapaper client. diff --git a/integration/integration.go b/integration/integration.go index af19939..38a215f 100644 --- a/integration/integration.go +++ b/integration/integration.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package integration +package integration // import "miniflux.app/integration" import ( - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/integration/instapaper" - "github.com/miniflux/miniflux/integration/nunuxkeeper" - "github.com/miniflux/miniflux/integration/pinboard" - "github.com/miniflux/miniflux/integration/pocket" - "github.com/miniflux/miniflux/integration/wallabag" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" + "miniflux.app/config" + "miniflux.app/integration/instapaper" + "miniflux.app/integration/nunuxkeeper" + "miniflux.app/integration/pinboard" + "miniflux.app/integration/pocket" + "miniflux.app/integration/wallabag" + "miniflux.app/logger" + "miniflux.app/model" ) // SendEntry send the entry to the activated providers. diff --git a/integration/nunuxkeeper/nunuxkeeper.go b/integration/nunuxkeeper/nunuxkeeper.go index 76367e1..87192d3 100644 --- a/integration/nunuxkeeper/nunuxkeeper.go +++ b/integration/nunuxkeeper/nunuxkeeper.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package nunuxkeeper +package nunuxkeeper // import "miniflux.app/integration/nunuxkeeper" import ( "fmt" "net/url" "path" - "github.com/miniflux/miniflux/http/client" + "miniflux.app/http/client" ) // Document structure of a Nununx Keeper document diff --git a/integration/pinboard/pinboard.go b/integration/pinboard/pinboard.go index 0de1dd2..4bef3ca 100644 --- a/integration/pinboard/pinboard.go +++ b/integration/pinboard/pinboard.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package pinboard +package pinboard // import "miniflux.app/integration/pinboard" import ( "fmt" "net/url" - "github.com/miniflux/miniflux/http/client" + "miniflux.app/http/client" ) // Client represents a Pinboard client. diff --git a/integration/pocket/connector.go b/integration/pocket/connector.go index b3ed79d..4cb0931 100644 --- a/integration/pocket/connector.go +++ b/integration/pocket/connector.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package pocket +package pocket // import "miniflux.app/integration/pocket" import ( "errors" @@ -10,7 +10,7 @@ import ( "io/ioutil" "net/url" - "github.com/miniflux/miniflux/http/client" + "miniflux.app/http/client" ) // Connector manages the authorization flow with Pocket to get a personal access token. diff --git a/integration/pocket/pocket.go b/integration/pocket/pocket.go index 77f77d4..6f1b197 100644 --- a/integration/pocket/pocket.go +++ b/integration/pocket/pocket.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package pocket +package pocket // import "miniflux.app/integration/pocket" import ( "fmt" - "github.com/miniflux/miniflux/http/client" + "miniflux.app/http/client" ) // Client represents a Pocket client. diff --git a/integration/wallabag/wallabag.go b/integration/wallabag/wallabag.go index 02a36b5..786470f 100644 --- a/integration/wallabag/wallabag.go +++ b/integration/wallabag/wallabag.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package wallabag +package wallabag // import "miniflux.app/integration/wallabag" import ( "encoding/json" @@ -10,7 +10,7 @@ import ( "io" "net/url" - "github.com/miniflux/miniflux/http/client" + "miniflux.app/http/client" ) // Client represents a Wallabag client. diff --git a/locale/doc.go b/locale/doc.go index 5e92c6f..2602cc7 100644 --- a/locale/doc.go +++ b/locale/doc.go @@ -7,4 +7,4 @@ Package locale handles the internationalization of the application. */ -package locale +package locale // import "miniflux.app/locale" diff --git a/locale/language.go b/locale/language.go index b63976c..2146960 100644 --- a/locale/language.go +++ b/locale/language.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package locale +package locale // import "miniflux.app/locale" import "fmt" diff --git a/locale/locale.go b/locale/locale.go index c76ad8a..64d3b86 100755 --- a/locale/locale.go +++ b/locale/locale.go @@ -2,9 +2,9 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package locale +package locale // import "miniflux.app/locale" -import "github.com/miniflux/miniflux/logger" +import "miniflux.app/logger" // Translation is the translation mapping table. type Translation map[string]interface{} diff --git a/locale/locale_test.go b/locale/locale_test.go index baddd1e..28e2a80 100644 --- a/locale/locale_test.go +++ b/locale/locale_test.go @@ -1,7 +1,7 @@ // Copyright 2017 Frédéric Guillot. All rights reserved. // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package locale +package locale // import "miniflux.app/locale" import "testing" diff --git a/locale/plurals.go b/locale/plurals.go index d94f238..c4e47cf 100644 --- a/locale/plurals.go +++ b/locale/plurals.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package locale +package locale // import "miniflux.app/locale" // See https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html // And http://www.unicode.org/cldr/charts/29/supplemental/language_plural_rules.html diff --git a/locale/translations.go b/locale/translations.go index 962e091..c1174e4 100755 --- a/locale/translations.go +++ b/locale/translations.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. -package locale +package locale // import "miniflux.app/locale" var translations = map[string]string{ "de_DE": `{ diff --git a/locale/translator.go b/locale/translator.go index 18206b0..dff8b2c 100644 --- a/locale/translator.go +++ b/locale/translator.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package locale +package locale // import "miniflux.app/locale" import ( "encoding/json" diff --git a/logger/doc.go b/logger/doc.go index 4d63bcd..d6b6a35 100644 --- a/logger/doc.go +++ b/logger/doc.go @@ -7,4 +7,4 @@ Package logger handles application log messages with different levels. */ -package logger +package logger // import "miniflux.app/logger" diff --git a/logger/logger.go b/logger/logger.go index a7ef3c1..33a08e3 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package logger +package logger // import "miniflux.app/logger" import ( "fmt" diff --git a/main.go b/main.go index 44f38db..b56e427 100644 --- a/main.go +++ b/main.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package main +package main // import "miniflux.app" //go:generate go run generate.go //go:generate gofmt -s -w database/sql.go @@ -14,7 +14,7 @@ package main //go:generate gofmt -s -w locale/translations.go import ( - "github.com/miniflux/miniflux/cli" + "miniflux.app/cli" ) func main() { diff --git a/middleware/app_session.go b/middleware/app_session.go index ae1d8e9..8b3284b 100644 --- a/middleware/app_session.go +++ b/middleware/app_session.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" import ( "context" "errors" "net/http" - "github.com/miniflux/miniflux/http/cookie" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" + "miniflux.app/http/cookie" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/logger" + "miniflux.app/model" ) // AppSession handles application session middleware. diff --git a/middleware/basic_auth.go b/middleware/basic_auth.go index edea333..c02913f 100644 --- a/middleware/basic_auth.go +++ b/middleware/basic_auth.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" import ( "context" "net/http" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/response/json" + "miniflux.app/logger" ) // BasicAuth handles HTTP basic authentication. diff --git a/middleware/common_headers.go b/middleware/common_headers.go index bdec580..a60969f 100644 --- a/middleware/common_headers.go +++ b/middleware/common_headers.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" import ( "net/http" diff --git a/middleware/context_keys.go b/middleware/context_keys.go index 03a3e2b..80b5e96 100644 --- a/middleware/context_keys.go +++ b/middleware/context_keys.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" // ContextKey represents a context key. type ContextKey struct { diff --git a/middleware/fever.go b/middleware/fever.go index 6211fb7..3fdbcfd 100644 --- a/middleware/fever.go +++ b/middleware/fever.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" import ( "context" "net/http" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/response/json" + "miniflux.app/logger" ) // FeverAuth handles Fever API authentication. diff --git a/middleware/header_config.go b/middleware/header_config.go index 91d1820..4302ac8 100644 --- a/middleware/header_config.go +++ b/middleware/header_config.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" import ( "net/http" diff --git a/middleware/logging.go b/middleware/logging.go index 48158b4..2e78ea8 100644 --- a/middleware/logging.go +++ b/middleware/logging.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" import ( "net/http" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/request" + "miniflux.app/logger" ) // Logging logs the HTTP request. diff --git a/middleware/middleware.go b/middleware/middleware.go index 3c1bb0e..cf393d2 100644 --- a/middleware/middleware.go +++ b/middleware/middleware.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" import ( "github.com/gorilla/mux" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/storage" + "miniflux.app/config" + "miniflux.app/storage" ) // Middleware handles different middleware handlers. diff --git a/middleware/user_session.go b/middleware/user_session.go index b27858f..764cbdb 100644 --- a/middleware/user_session.go +++ b/middleware/user_session.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package middleware +package middleware // import "miniflux.app/middleware" import ( "context" "net/http" - "github.com/miniflux/miniflux/http/cookie" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" + "miniflux.app/http/cookie" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/model" "github.com/gorilla/mux" ) diff --git a/model/app_session.go b/model/app_session.go index e9ee06e..4f97c4c 100644 --- a/model/app_session.go +++ b/model/app_session.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import ( "database/sql/driver" diff --git a/model/category.go b/model/category.go index 1c72851..40a132d 100644 --- a/model/category.go +++ b/model/category.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import ( "errors" diff --git a/model/category_test.go b/model/category_test.go index 9f8a054..47a524d 100644 --- a/model/category_test.go +++ b/model/category_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import "testing" diff --git a/model/doc.go b/model/doc.go index 4718d8a..bef8495 100644 --- a/model/doc.go +++ b/model/doc.go @@ -7,4 +7,4 @@ Package model contains all data structures used by the application. */ -package model +package model // import "miniflux.app/model" diff --git a/model/enclosure.go b/model/enclosure.go index 6de1af7..5238879 100644 --- a/model/enclosure.go +++ b/model/enclosure.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" // Enclosure represents an attachment. type Enclosure struct { diff --git a/model/entry.go b/model/entry.go index 104601e..75ffaca 100644 --- a/model/entry.go +++ b/model/entry.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import ( "fmt" diff --git a/model/entry_test.go b/model/entry_test.go index 8b92d3f..d6440df 100644 --- a/model/entry_test.go +++ b/model/entry_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import "testing" diff --git a/model/feed.go b/model/feed.go index d019eeb..d6ce0d1 100644 --- a/model/feed.go +++ b/model/feed.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import ( "fmt" diff --git a/model/icon.go b/model/icon.go index 3608a0a..5e3bd76 100644 --- a/model/icon.go +++ b/model/icon.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import ( "encoding/base64" diff --git a/model/integration.go b/model/integration.go index e4282a4..9fc5696 100644 --- a/model/integration.go +++ b/model/integration.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" // Integration represents user integration settings. type Integration struct { diff --git a/model/job.go b/model/job.go index 9f9167b..7a42437 100644 --- a/model/job.go +++ b/model/job.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" // Job represents a payload sent to the processing queue. type Job struct { diff --git a/model/theme.go b/model/theme.go index f58f91c..9d379fd 100644 --- a/model/theme.go +++ b/model/theme.go @@ -2,9 +2,9 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" -import "github.com/miniflux/miniflux/errors" +import "miniflux.app/errors" // Themes returns the list of available themes. func Themes() map[string]string { diff --git a/model/theme_test.go b/model/theme_test.go index ddf58c4..0e710db 100644 --- a/model/theme_test.go +++ b/model/theme_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import "testing" diff --git a/model/user.go b/model/user.go index 6a985e3..6c537b2 100644 --- a/model/user.go +++ b/model/user.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import ( "errors" "time" - "github.com/miniflux/miniflux/timezone" + "miniflux.app/timezone" ) // User represents a user in the system. diff --git a/model/user_session.go b/model/user_session.go index 51b2543..55c2d67 100644 --- a/model/user_session.go +++ b/model/user_session.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import ( "fmt" "time" - "github.com/miniflux/miniflux/timezone" + "miniflux.app/timezone" ) // UserSession represents a user session in the system. diff --git a/model/user_test.go b/model/user_test.go index e7bcb1e..d560e35 100644 --- a/model/user_test.go +++ b/model/user_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package model +package model // import "miniflux.app/model" import "testing" diff --git a/oauth2/doc.go b/oauth2/doc.go index 2254a3f..4fee931 100644 --- a/oauth2/doc.go +++ b/oauth2/doc.go @@ -7,4 +7,4 @@ Package oauth2 abstracts different OAuth2 providers. */ -package oauth2 +package oauth2 // import "miniflux.app/oauth2" diff --git a/oauth2/google.go b/oauth2/google.go index e57e027..5d3ca49 100644 --- a/oauth2/google.go +++ b/oauth2/google.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package oauth2 +package oauth2 // import "miniflux.app/oauth2" import ( "context" diff --git a/oauth2/manager.go b/oauth2/manager.go index 08360a9..f1ba7d9 100644 --- a/oauth2/manager.go +++ b/oauth2/manager.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package oauth2 +package oauth2 // import "miniflux.app/oauth2" import "errors" diff --git a/oauth2/profile.go b/oauth2/profile.go index 488ffb2..b43f07c 100644 --- a/oauth2/profile.go +++ b/oauth2/profile.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package oauth2 +package oauth2 // import "miniflux.app/oauth2" // Profile is the OAuth2 user profile. type Profile struct { diff --git a/oauth2/provider.go b/oauth2/provider.go index c43931c..04f9214 100644 --- a/oauth2/provider.go +++ b/oauth2/provider.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package oauth2 +package oauth2 // import "miniflux.app/oauth2" // Provider is an interface for OAuth2 providers. type Provider interface { diff --git a/reader/atom/atom.go b/reader/atom/atom.go index 274d67f..7fbf040 100644 --- a/reader/atom/atom.go +++ b/reader/atom/atom.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package atom +package atom // import "miniflux.app/reader/atom" import ( "encoding/xml" @@ -10,12 +10,12 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/date" - "github.com/miniflux/miniflux/reader/sanitizer" - "github.com/miniflux/miniflux/url" + "miniflux.app/crypto" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/reader/date" + "miniflux.app/reader/sanitizer" + "miniflux.app/url" ) type atomFeed struct { diff --git a/reader/atom/parser.go b/reader/atom/parser.go index d560c27..152626c 100644 --- a/reader/atom/parser.go +++ b/reader/atom/parser.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package atom +package atom // import "miniflux.app/reader/atom" import ( "encoding/xml" "io" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/encoding" + "miniflux.app/errors" + "miniflux.app/model" + "miniflux.app/reader/encoding" ) // Parse returns a normalized feed struct from a Atom feed. diff --git a/reader/atom/parser_test.go b/reader/atom/parser_test.go index e6cfdd7..82a569a 100644 --- a/reader/atom/parser_test.go +++ b/reader/atom/parser_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package atom +package atom // import "miniflux.app/reader/atom" import ( "bytes" diff --git a/reader/date/parser.go b/reader/date/parser.go index d223ceb..8a22df8 100644 --- a/reader/date/parser.go +++ b/reader/date/parser.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package date +package date // import "miniflux.app/reader/date" import ( "errors" diff --git a/reader/date/parser_test.go b/reader/date/parser_test.go index f796b53..b330632 100644 --- a/reader/date/parser_test.go +++ b/reader/date/parser_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package date +package date // import "miniflux.app/reader/date" import "testing" diff --git a/reader/doc.go b/reader/doc.go index 1698644..2101266 100644 --- a/reader/doc.go +++ b/reader/doc.go @@ -7,4 +7,4 @@ Package reader implements everything related to feed parsing. */ -package reader +package reader // import "miniflux.app/reader" diff --git a/reader/encoding/doc.go b/reader/encoding/doc.go index bd3a42e..8498cf3 100644 --- a/reader/encoding/doc.go +++ b/reader/encoding/doc.go @@ -7,4 +7,4 @@ Package encoding handles workarounds to deal with encoding edge cases found into the wild. */ -package encoding +package encoding // import "miniflux.app/reader/encoding" diff --git a/reader/encoding/encoding.go b/reader/encoding/encoding.go index 7f726ad..497b2d0 100644 --- a/reader/encoding/encoding.go +++ b/reader/encoding/encoding.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package encoding +package encoding // import "miniflux.app/reader/encoding" import ( "bytes" diff --git a/reader/feed/handler.go b/reader/feed/handler.go index f01b877..fa09cb6 100644 --- a/reader/feed/handler.go +++ b/reader/feed/handler.go @@ -2,21 +2,21 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package feed +package feed // import "miniflux.app/reader/feed" import ( "fmt" "time" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/http/client" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/icon" - "github.com/miniflux/miniflux/reader/processor" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/timer" + "miniflux.app/errors" + "miniflux.app/http/client" + "miniflux.app/locale" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/reader/icon" + "miniflux.app/reader/processor" + "miniflux.app/storage" + "miniflux.app/timer" ) var ( diff --git a/reader/feed/parser.go b/reader/feed/parser.go index f76a071..70c0524 100644 --- a/reader/feed/parser.go +++ b/reader/feed/parser.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package feed +package feed // import "miniflux.app/reader/feed" import ( "bytes" @@ -11,15 +11,15 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/atom" - "github.com/miniflux/miniflux/reader/encoding" - "github.com/miniflux/miniflux/reader/json" - "github.com/miniflux/miniflux/reader/rdf" - "github.com/miniflux/miniflux/reader/rss" - "github.com/miniflux/miniflux/timer" + "miniflux.app/errors" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/reader/atom" + "miniflux.app/reader/encoding" + "miniflux.app/reader/json" + "miniflux.app/reader/rdf" + "miniflux.app/reader/rss" + "miniflux.app/timer" ) // List of feed formats. diff --git a/reader/feed/parser_test.go b/reader/feed/parser_test.go index 31dbedf..46dc34e 100644 --- a/reader/feed/parser_test.go +++ b/reader/feed/parser_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package feed +package feed // import "miniflux.app/reader/feed" import ( "bytes" diff --git a/reader/icon/finder.go b/reader/icon/finder.go index 296ddec..c9da1bc 100644 --- a/reader/icon/finder.go +++ b/reader/icon/finder.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package icon +package icon // import "miniflux.app/reader/icon" import ( "encoding/base64" @@ -11,11 +11,11 @@ import ( "io/ioutil" "strings" - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/http/client" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/url" + "miniflux.app/crypto" + "miniflux.app/http/client" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/url" "github.com/PuerkitoBio/goquery" ) diff --git a/reader/icon/finder_test.go b/reader/icon/finder_test.go index e76f68c..5fcbaa9 100644 --- a/reader/icon/finder_test.go +++ b/reader/icon/finder_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package icon +package icon // import "miniflux.app/reader/icon" import "testing" diff --git a/reader/json/json.go b/reader/json/json.go index 2c812ab..af059f0 100644 --- a/reader/json/json.go +++ b/reader/json/json.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package json +package json // import "miniflux.app/reader/json" import ( "strings" "time" - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/date" - "github.com/miniflux/miniflux/reader/sanitizer" - "github.com/miniflux/miniflux/url" + "miniflux.app/crypto" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/reader/date" + "miniflux.app/reader/sanitizer" + "miniflux.app/url" ) type jsonFeed struct { diff --git a/reader/json/parser.go b/reader/json/parser.go index 55c9372..babbde1 100644 --- a/reader/json/parser.go +++ b/reader/json/parser.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package json +package json // import "miniflux.app/reader/json" import ( "encoding/json" "io" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/model" + "miniflux.app/errors" + "miniflux.app/model" ) // Parse returns a normalized feed struct from a JON feed. diff --git a/reader/json/parser_test.go b/reader/json/parser_test.go index 19c12c9..482212b 100644 --- a/reader/json/parser_test.go +++ b/reader/json/parser_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package json +package json // import "miniflux.app/reader/json" import ( "bytes" diff --git a/reader/opml/handler.go b/reader/opml/handler.go index 3bbce6c..9861243 100644 --- a/reader/opml/handler.go +++ b/reader/opml/handler.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package opml +package opml // import "miniflux.app/reader/opml" import ( "errors" "fmt" "io" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/storage" ) // Handler handles the logic for OPML import/export. diff --git a/reader/opml/opml.go b/reader/opml/opml.go index ab81812..27d0167 100644 --- a/reader/opml/opml.go +++ b/reader/opml/opml.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package opml +package opml // import "miniflux.app/reader/opml" import "encoding/xml" diff --git a/reader/opml/parser.go b/reader/opml/parser.go index 93f2f25..1c24a70 100644 --- a/reader/opml/parser.go +++ b/reader/opml/parser.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package opml +package opml // import "miniflux.app/reader/opml" import ( "encoding/xml" "io" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/reader/encoding" + "miniflux.app/errors" + "miniflux.app/reader/encoding" ) // Parse reads an OPML file and returns a SubcriptionList. diff --git a/reader/opml/parser_test.go b/reader/opml/parser_test.go index e00d578..ef8e9f1 100644 --- a/reader/opml/parser_test.go +++ b/reader/opml/parser_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package opml +package opml // import "miniflux.app/reader/opml" import ( "bytes" diff --git a/reader/opml/serializer.go b/reader/opml/serializer.go index 68cafa9..c094f4c 100644 --- a/reader/opml/serializer.go +++ b/reader/opml/serializer.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package opml +package opml // import "miniflux.app/reader/opml" import ( "bufio" "bytes" "encoding/xml" - "github.com/miniflux/miniflux/logger" + "miniflux.app/logger" ) // Serialize returns a SubcriptionList in OPML format. diff --git a/reader/opml/serializer_test.go b/reader/opml/serializer_test.go index dd431d9..9c598ee 100644 --- a/reader/opml/serializer_test.go +++ b/reader/opml/serializer_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package opml +package opml // import "miniflux.app/reader/opml" import ( "bytes" diff --git a/reader/opml/subscription.go b/reader/opml/subscription.go index 45f2597..415b095 100644 --- a/reader/opml/subscription.go +++ b/reader/opml/subscription.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package opml +package opml // import "miniflux.app/reader/opml" // Subcription represents a feed that will be imported or exported. type Subcription struct { diff --git a/reader/processor/processor.go b/reader/processor/processor.go index eacce9f..002f7e8 100644 --- a/reader/processor/processor.go +++ b/reader/processor/processor.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package processor +package processor // import "miniflux.app/reader/processor" import ( - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/rewrite" - "github.com/miniflux/miniflux/reader/sanitizer" - "github.com/miniflux/miniflux/reader/scraper" - "github.com/miniflux/miniflux/storage" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/reader/rewrite" + "miniflux.app/reader/sanitizer" + "miniflux.app/reader/scraper" + "miniflux.app/storage" ) // FeedProcessor handles the processing of feed contents. diff --git a/reader/rdf/parser.go b/reader/rdf/parser.go index 76b731c..90eb1dc 100644 --- a/reader/rdf/parser.go +++ b/reader/rdf/parser.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rdf +package rdf // import "miniflux.app/reader/rdf" import ( "encoding/xml" "io" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/encoding" + "miniflux.app/errors" + "miniflux.app/model" + "miniflux.app/reader/encoding" ) // Parse returns a normalized feed struct from a RDF feed. diff --git a/reader/rdf/parser_test.go b/reader/rdf/parser_test.go index 392b987..30c3413 100644 --- a/reader/rdf/parser_test.go +++ b/reader/rdf/parser_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rdf +package rdf // import "miniflux.app/reader/rdf" import ( "bytes" diff --git a/reader/rdf/rdf.go b/reader/rdf/rdf.go index 44ff0af..6ee6828 100644 --- a/reader/rdf/rdf.go +++ b/reader/rdf/rdf.go @@ -2,19 +2,19 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rdf +package rdf // import "miniflux.app/reader/rdf" import ( "encoding/xml" "strings" "time" - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/date" - "github.com/miniflux/miniflux/reader/sanitizer" - "github.com/miniflux/miniflux/url" + "miniflux.app/crypto" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/reader/date" + "miniflux.app/reader/sanitizer" + "miniflux.app/url" ) type rdfFeed struct { diff --git a/reader/readability/readability.go b/reader/readability/readability.go index 5eb4cc3..d58ff22 100644 --- a/reader/readability/readability.go +++ b/reader/readability/readability.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package readability +package readability // import "miniflux.app/reader/readability" import ( "bytes" @@ -12,8 +12,9 @@ import ( "regexp" "strings" + "miniflux.app/logger" + "github.com/PuerkitoBio/goquery" - "github.com/miniflux/miniflux/logger" "golang.org/x/net/html" ) diff --git a/reader/rewrite/rewrite_functions.go b/reader/rewrite/rewrite_functions.go index 4348584..fee2a85 100644 --- a/reader/rewrite/rewrite_functions.go +++ b/reader/rewrite/rewrite_functions.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rewrite +package rewrite // import "miniflux.app/reader/rewrite" import ( "fmt" @@ -14,7 +14,7 @@ import ( var ( youtubeRegex = regexp.MustCompile(`youtube\.com/watch\?v=(.*)`) - imgRegex = regexp.MustCompile(`]+>`) + imgRegex = regexp.MustCompile(`]+>`) ) func addImageTitle(entryURL, entryContent string) string { @@ -72,13 +72,13 @@ func addDynamicImage(entryURL, entryContent string) string { changed = true if img.Is("img") { - img.SetAttr("src",srcAttr) + img.SetAttr("src", srcAttr) } else { altAttr := img.AttrOr("alt", "") img.ReplaceWithHtml(`` + altAttr + ``) } - break; + break } } }) diff --git a/reader/rewrite/rewriter.go b/reader/rewrite/rewriter.go index 39a499c..e9b1fae 100644 --- a/reader/rewrite/rewriter.go +++ b/reader/rewrite/rewriter.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rewrite +package rewrite // import "miniflux.app/reader/rewrite" import ( "strings" - "github.com/miniflux/miniflux/url" + "miniflux.app/url" ) // Rewriter modify item contents with a set of rewriting rules. diff --git a/reader/rewrite/rewriter_test.go b/reader/rewrite/rewriter_test.go index 2e4aeac..7ceb0dc 100644 --- a/reader/rewrite/rewriter_test.go +++ b/reader/rewrite/rewriter_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rewrite +package rewrite // import "miniflux.app/reader/rewrite" import "testing" diff --git a/reader/rewrite/rules.go b/reader/rewrite/rules.go index 76a1c0b..500459f 100644 --- a/reader/rewrite/rules.go +++ b/reader/rewrite/rules.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rewrite +package rewrite // import "miniflux.app/reader/rewrite" // List of predefined rewrite rules (alphabetically sorted) // Available rules: "add_image_title", "add_youtube_video" diff --git a/reader/rss/parser.go b/reader/rss/parser.go index 709f8ff..96339ae 100644 --- a/reader/rss/parser.go +++ b/reader/rss/parser.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rss +package rss // import "miniflux.app/reader/rss" import ( "encoding/xml" "io" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/encoding" + "miniflux.app/errors" + "miniflux.app/model" + "miniflux.app/reader/encoding" ) // Parse returns a normalized feed struct from a RSS feed. diff --git a/reader/rss/parser_test.go b/reader/rss/parser_test.go index f3ca697..c0afe59 100644 --- a/reader/rss/parser_test.go +++ b/reader/rss/parser_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rss +package rss // import "miniflux.app/reader/rss" import ( "bytes" diff --git a/reader/rss/rss.go b/reader/rss/rss.go index 5ccbb0e..fa6c832 100644 --- a/reader/rss/rss.go +++ b/reader/rss/rss.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package rss +package rss // import "miniflux.app/reader/rss" import ( "encoding/xml" @@ -11,12 +11,12 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/date" - "github.com/miniflux/miniflux/reader/sanitizer" - "github.com/miniflux/miniflux/url" + "miniflux.app/crypto" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/reader/date" + "miniflux.app/reader/sanitizer" + "miniflux.app/url" ) type rssFeed struct { diff --git a/reader/sanitizer/sanitizer.go b/reader/sanitizer/sanitizer.go index 6de4614..eae9b21 100644 --- a/reader/sanitizer/sanitizer.go +++ b/reader/sanitizer/sanitizer.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package sanitizer +package sanitizer // import "miniflux.app/reader/sanitizer" import ( "bytes" @@ -11,7 +11,7 @@ import ( "regexp" "strings" - "github.com/miniflux/miniflux/url" + "miniflux.app/url" "golang.org/x/net/html" ) diff --git a/reader/sanitizer/sanitizer_test.go b/reader/sanitizer/sanitizer_test.go index 8db0bda..b6588f0 100644 --- a/reader/sanitizer/sanitizer_test.go +++ b/reader/sanitizer/sanitizer_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package sanitizer +package sanitizer // import "miniflux.app/reader/sanitizer" import "testing" diff --git a/reader/sanitizer/strip_tags.go b/reader/sanitizer/strip_tags.go index f3cecd1..8dc944f 100644 --- a/reader/sanitizer/strip_tags.go +++ b/reader/sanitizer/strip_tags.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package sanitizer +package sanitizer // import "miniflux.app/reader/sanitizer" import ( "bytes" diff --git a/reader/sanitizer/strip_tags_test.go b/reader/sanitizer/strip_tags_test.go index 763ccc9..18a0ce8 100644 --- a/reader/sanitizer/strip_tags_test.go +++ b/reader/sanitizer/strip_tags_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package sanitizer +package sanitizer // import "miniflux.app/reader/sanitizer" import "testing" diff --git a/reader/scraper/rules.go b/reader/scraper/rules.go index 7967869..e84b882 100644 --- a/reader/scraper/rules.go +++ b/reader/scraper/rules.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package scraper +package scraper // import "miniflux.app/reader/scraper" // List of predefined scraper rules (alphabetically sorted) // domain => CSS selectors diff --git a/reader/scraper/scraper.go b/reader/scraper/scraper.go index 17e6714..d2cccdb 100644 --- a/reader/scraper/scraper.go +++ b/reader/scraper/scraper.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package scraper +package scraper // import "miniflux.app/reader/scraper" import ( "errors" @@ -10,11 +10,12 @@ import ( "io" "strings" + "miniflux.app/http/client" + "miniflux.app/logger" + "miniflux.app/reader/readability" + "miniflux.app/url" + "github.com/PuerkitoBio/goquery" - "github.com/miniflux/miniflux/http/client" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/reader/readability" - "github.com/miniflux/miniflux/url" ) // Fetch downloads a web page a returns relevant contents. diff --git a/reader/scraper/scraper_test.go b/reader/scraper/scraper_test.go index b493e25..e43ac11 100644 --- a/reader/scraper/scraper_test.go +++ b/reader/scraper/scraper_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package scraper +package scraper // import "miniflux.app/reader/scraper" import "testing" diff --git a/reader/subscription/finder.go b/reader/subscription/finder.go index 57fbd11..8be6f73 100644 --- a/reader/subscription/finder.go +++ b/reader/subscription/finder.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package subscription +package subscription // import "miniflux.app/reader/subscription" import ( "bytes" @@ -10,12 +10,12 @@ import ( "io" "time" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/http/client" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/reader/feed" - "github.com/miniflux/miniflux/timer" - "github.com/miniflux/miniflux/url" + "miniflux.app/errors" + "miniflux.app/http/client" + "miniflux.app/logger" + "miniflux.app/reader/feed" + "miniflux.app/timer" + "miniflux.app/url" "github.com/PuerkitoBio/goquery" ) diff --git a/reader/subscription/subscription.go b/reader/subscription/subscription.go index f619f73..604dce5 100644 --- a/reader/subscription/subscription.go +++ b/reader/subscription/subscription.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package subscription +package subscription // import "miniflux.app/reader/subscription" import "fmt" diff --git a/scheduler/doc.go b/scheduler/doc.go index ea5becc..1afa2a8 100644 --- a/scheduler/doc.go +++ b/scheduler/doc.go @@ -7,4 +7,4 @@ Package scheduler implements the application internal scheduler. */ -package scheduler +package scheduler // import "miniflux.app/scheduler" diff --git a/scheduler/scheduler.go b/scheduler/scheduler.go index e354c09..f0a8134 100644 --- a/scheduler/scheduler.go +++ b/scheduler/scheduler.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package scheduler +package scheduler // import "miniflux.app/scheduler" import ( "time" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/storage" + "miniflux.app/logger" + "miniflux.app/storage" ) // NewFeedScheduler starts a new scheduler that push jobs to a pool of workers. diff --git a/scheduler/worker.go b/scheduler/worker.go index 934f31c..68efed7 100644 --- a/scheduler/worker.go +++ b/scheduler/worker.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package scheduler +package scheduler // import "miniflux.app/scheduler" import ( "time" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/feed" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/reader/feed" ) // Worker refreshes a feed in the background. diff --git a/scheduler/worker_pool.go b/scheduler/worker_pool.go index 1b9f086..ce5a453 100644 --- a/scheduler/worker_pool.go +++ b/scheduler/worker_pool.go @@ -2,11 +2,11 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package scheduler +package scheduler // import "miniflux.app/scheduler" import ( - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/feed" + "miniflux.app/model" + "miniflux.app/reader/feed" ) // WorkerPool handle a pool of workers. diff --git a/storage/category.go b/storage/category.go index bbb4c86..deb8e24 100644 --- a/storage/category.go +++ b/storage/category.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" @@ -10,8 +10,8 @@ import ( "fmt" "time" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/timer" + "miniflux.app/model" + "miniflux.app/timer" ) // AnotherCategoryExists checks if another category exists with the same title. diff --git a/storage/doc.go b/storage/doc.go index aede4e8..ab8d0b5 100644 --- a/storage/doc.go +++ b/storage/doc.go @@ -7,4 +7,4 @@ Package storage implements a set of functions to interact with the database. */ -package storage +package storage // import "miniflux.app/storage" diff --git a/storage/enclosure.go b/storage/enclosure.go index 5ae0a43..0fc7be7 100644 --- a/storage/enclosure.go +++ b/storage/enclosure.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "fmt" - "github.com/miniflux/miniflux/model" + "miniflux.app/model" ) // GetEnclosures returns all attachments for the given entry. diff --git a/storage/entry.go b/storage/entry.go index b703a4c..9fd8a53 100644 --- a/storage/entry.go +++ b/storage/entry.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "errors" "fmt" "time" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/timer" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/timer" "github.com/lib/pq" ) diff --git a/storage/entry_pagination_builder.go b/storage/entry_pagination_builder.go index e443b00..ce6f7fc 100644 --- a/storage/entry_pagination_builder.go +++ b/storage/entry_pagination_builder.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" @@ -10,8 +10,8 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/timer" + "miniflux.app/model" + "miniflux.app/timer" ) // EntryPaginationBuilder is a builder for entry prev/next queries. diff --git a/storage/entry_query_builder.go b/storage/entry_query_builder.go index 8c0d706..18cf735 100644 --- a/storage/entry_query_builder.go +++ b/storage/entry_query_builder.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "fmt" @@ -11,9 +11,9 @@ import ( "github.com/lib/pq" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/timer" - "github.com/miniflux/miniflux/timezone" + "miniflux.app/model" + "miniflux.app/timer" + "miniflux.app/timezone" ) // EntryQueryBuilder builds a SQL query to fetch entries. diff --git a/storage/feed.go b/storage/feed.go index 326ada8..283b095 100644 --- a/storage/feed.go +++ b/storage/feed.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" @@ -10,9 +10,9 @@ import ( "fmt" "time" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/timer" - "github.com/miniflux/miniflux/timezone" + "miniflux.app/model" + "miniflux.app/timer" + "miniflux.app/timezone" ) // FeedExists checks if the given feed exists. diff --git a/storage/icon.go b/storage/icon.go index 5e8b5dc..3a3686d 100644 --- a/storage/icon.go +++ b/storage/icon.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" @@ -10,8 +10,8 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/timer" + "miniflux.app/model" + "miniflux.app/timer" ) // HasIcon checks if the given feed has an icon. diff --git a/storage/integration.go b/storage/integration.go index 5a7ef19..6bc7064 100644 --- a/storage/integration.go +++ b/storage/integration.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" "fmt" - "github.com/miniflux/miniflux/model" + "miniflux.app/model" ) // HasDuplicateFeverUsername checks if another user have the same fever username. diff --git a/storage/job.go b/storage/job.go index e20a0c4..41e63fa 100644 --- a/storage/job.go +++ b/storage/job.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "fmt" "time" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/timer" + "miniflux.app/model" + "miniflux.app/timer" ) const maxParsingError = 3 diff --git a/storage/session.go b/storage/session.go index 1e6fb42..4139684 100644 --- a/storage/session.go +++ b/storage/session.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" "fmt" - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/model" + "miniflux.app/crypto" + "miniflux.app/model" ) // CreateSession creates a new session. diff --git a/storage/storage.go b/storage/storage.go index 19372f0..c2aef77 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" diff --git a/storage/timezone.go b/storage/timezone.go index 396c7d4..714d003 100644 --- a/storage/timezone.go +++ b/storage/timezone.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "fmt" "strings" "time" - "github.com/miniflux/miniflux/timer" + "miniflux.app/timer" ) // Timezones returns all timezones supported by the database. diff --git a/storage/user.go b/storage/user.go index de58c09..9d584d5 100644 --- a/storage/user.go +++ b/storage/user.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" @@ -11,8 +11,8 @@ import ( "strings" "time" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/timer" + "miniflux.app/model" + "miniflux.app/timer" "github.com/lib/pq/hstore" "golang.org/x/crypto/bcrypt" diff --git a/storage/user_session.go b/storage/user_session.go index 990157d..9c1381e 100644 --- a/storage/user_session.go +++ b/storage/user_session.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package storage +package storage // import "miniflux.app/storage" import ( "database/sql" "fmt" - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/model" + "miniflux.app/crypto" + "miniflux.app/model" ) // UserSessions returns the list of sessions for the given user. diff --git a/template/common.go b/template/common.go index 665e90f..a252391 100644 --- a/template/common.go +++ b/template/common.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. -package template +package template // import "miniflux.app/template" var templateCommonMap = map[string]string{ "entry_pagination": `{{ define "entry_pagination" }} diff --git a/template/dict.go b/template/dict.go index 3056bcd..1251bb6 100644 --- a/template/dict.go +++ b/template/dict.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package template +package template // import "miniflux.app/template" import "fmt" diff --git a/template/dict_test.go b/template/dict_test.go index 8b236e0..ef4b17c 100644 --- a/template/dict_test.go +++ b/template/dict_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package template +package template // import "miniflux.app/template" import ( "testing" diff --git a/template/doc.go b/template/doc.go index 5bdae47..ead768d 100644 --- a/template/doc.go +++ b/template/doc.go @@ -7,4 +7,4 @@ Package template handles template parsing and execution. */ -package template +package template // import "miniflux.app/template" diff --git a/template/elapsed.go b/template/elapsed.go index 5c5d98c..bfcc3ee 100644 --- a/template/elapsed.go +++ b/template/elapsed.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the MIT License // that can be found in the LICENSE file. -package template +package template // import "miniflux.app/template" import ( "math" "time" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/timezone" + "miniflux.app/locale" + "miniflux.app/timezone" ) // Texts to be translated if necessary. diff --git a/template/elapsed_test.go b/template/elapsed_test.go index b5fd4fa..987833a 100644 --- a/template/elapsed_test.go +++ b/template/elapsed_test.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the MIT License // that can be found in the LICENSE file. -package template +package template // import "miniflux.app/template" import ( "fmt" "testing" "time" - "github.com/miniflux/miniflux/locale" + "miniflux.app/locale" ) func TestElapsedTime(t *testing.T) { diff --git a/template/engine.go b/template/engine.go index 8055582..5a46e0c 100644 --- a/template/engine.go +++ b/template/engine.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package template +package template // import "miniflux.app/template" import ( "bytes" "html/template" "time" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/logger" + "miniflux.app/config" + "miniflux.app/errors" + "miniflux.app/locale" + "miniflux.app/logger" "github.com/gorilla/mux" ) diff --git a/template/functions.go b/template/functions.go index 225984b..d20b445 100644 --- a/template/functions.go +++ b/template/functions.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package template +package template // import "miniflux.app/template" import ( "bytes" @@ -12,11 +12,11 @@ import ( "time" "github.com/gorilla/mux" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/filter" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/url" + "miniflux.app/config" + "miniflux.app/filter" + "miniflux.app/http/route" + "miniflux.app/model" + "miniflux.app/url" ) type funcMap struct { diff --git a/template/views.go b/template/views.go index 861dea6..2912f22 100644 --- a/template/views.go +++ b/template/views.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. -package template +package template // import "miniflux.app/template" var templateViewsMap = map[string]string{ "about": `{{ define "title"}}{{ t "About" }}{{ end }} diff --git a/timer/doc.go b/timer/doc.go index 8d330ae..e27af92 100644 --- a/timer/doc.go +++ b/timer/doc.go @@ -7,4 +7,4 @@ Package timer implements utility functions to measure the execution time of a block of code. */ -package timer +package timer // import "miniflux.app/timer" diff --git a/timer/timer.go b/timer/timer.go index d7444ca..8f311c3 100644 --- a/timer/timer.go +++ b/timer/timer.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package timer +package timer // import "miniflux.app/timer" import ( "time" - "github.com/miniflux/miniflux/logger" + "miniflux.app/logger" ) // ExecutionTime returns the elapsed time of a block of code. diff --git a/timezone/timezone.go b/timezone/timezone.go index 96b7fe4..aaef655 100644 --- a/timezone/timezone.go +++ b/timezone/timezone.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package timezone +package timezone // import "miniflux.app/timezone" import ( "time" diff --git a/timezone/timezone_test.go b/timezone/timezone_test.go index eb960f2..ad62343 100644 --- a/timezone/timezone_test.go +++ b/timezone/timezone_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package timezone +package timezone // import "miniflux.app/timezone" import ( "testing" diff --git a/ui/about.go b/ui/about.go index 9a2bcfb..484fdc0 100644 --- a/ui/about.go +++ b/ui/about.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" - "github.com/miniflux/miniflux/version" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/session" + "miniflux.app/ui/view" + "miniflux.app/version" ) // About shows the about page. diff --git a/ui/bookmark_entries.go b/ui/bookmark_entries.go index 9d64119..8bf3095 100644 --- a/ui/bookmark_entries.go +++ b/ui/bookmark_entries.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/model" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowStarredPage renders the page with all starred entries. diff --git a/ui/category_create.go b/ui/category_create.go index 7c0e0d9..2d8c9d9 100644 --- a/ui/category_create.go +++ b/ui/category_create.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // CreateCategory shows the form to create a new category. diff --git a/ui/category_edit.go b/ui/category_edit.go index e84c96d..c61d930 100644 --- a/ui/category_edit.go +++ b/ui/category_edit.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // EditCategory shows the form to modify a category. diff --git a/ui/category_entries.go b/ui/category_entries.go index 49ff891..bb04d8b 100644 --- a/ui/category_entries.go +++ b/ui/category_entries.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/model" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // CategoryEntries shows all entries for the given category. diff --git a/ui/category_list.go b/ui/category_list.go index dea961f..663bafe 100644 --- a/ui/category_list.go +++ b/ui/category_list.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // CategoryList shows the page with all categories. diff --git a/ui/category_remove.go b/ui/category_remove.go index 6656ee3..6cdb0e4 100644 --- a/ui/category_remove.go +++ b/ui/category_remove.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" ) // RemoveCategory deletes a category from the database. diff --git a/ui/category_save.go b/ui/category_save.go index bdf10a8..a41e2c4 100644 --- a/ui/category_save.go +++ b/ui/category_save.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // SaveCategory validate and save the new category into the database. diff --git a/ui/category_update.go b/ui/category_update.go index bf21734..64bebe1 100644 --- a/ui/category_update.go +++ b/ui/category_update.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // UpdateCategory validates and updates a category. diff --git a/ui/controller.go b/ui/controller.go index b3e85af..5b1bbaf 100644 --- a/ui/controller.go +++ b/ui/controller.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "github.com/gorilla/mux" - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/reader/feed" - "github.com/miniflux/miniflux/scheduler" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/template" + "miniflux.app/config" + "miniflux.app/locale" + "miniflux.app/reader/feed" + "miniflux.app/scheduler" + "miniflux.app/storage" + "miniflux.app/template" ) // Controller contains all HTTP handlers for the user interface. diff --git a/ui/doc.go b/ui/doc.go index 30154e9..2e6cc39 100644 --- a/ui/doc.go +++ b/ui/doc.go @@ -7,4 +7,4 @@ Package ui implements handlers to render to user interface. */ -package ui +package ui // import "miniflux.app/ui" diff --git a/ui/entry_bookmark.go b/ui/entry_bookmark.go index c65cccf..a9a4a97 100644 --- a/ui/entry_bookmark.go +++ b/ui/entry_bookmark.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/storage" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowStarredEntry shows a single feed entry in "starred" mode. diff --git a/ui/entry_category.go b/ui/entry_category.go index 163bd08..03115a6 100644 --- a/ui/entry_category.go +++ b/ui/entry_category.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/storage" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowCategoryEntry shows a single feed entry in "category" mode. diff --git a/ui/entry_feed.go b/ui/entry_feed.go index ea68ab4..13e5452 100644 --- a/ui/entry_feed.go +++ b/ui/entry_feed.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/storage" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowFeedEntry shows a single feed entry in "feed" mode. diff --git a/ui/entry_read.go b/ui/entry_read.go index 2f89119..83bb108 100644 --- a/ui/entry_read.go +++ b/ui/entry_read.go @@ -2,19 +2,19 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/model" + "miniflux.app/storage" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowReadEntry shows a single feed entry in "history" mode. diff --git a/ui/entry_save.go b/ui/entry_save.go index 12ebf2a..292b526 100644 --- a/ui/entry_save.go +++ b/ui/entry_save.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "errors" "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/integration" - "github.com/miniflux/miniflux/model" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" + "miniflux.app/integration" + "miniflux.app/model" ) // SaveEntry send the link to external services. diff --git a/ui/entry_scraper.go b/ui/entry_scraper.go index aea9b20..52e0846 100644 --- a/ui/entry_scraper.go +++ b/ui/entry_scraper.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "errors" "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/reader/sanitizer" - "github.com/miniflux/miniflux/reader/scraper" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" + "miniflux.app/model" + "miniflux.app/reader/sanitizer" + "miniflux.app/reader/scraper" ) // FetchContent downloads the original HTML page and returns relevant contents. diff --git a/ui/entry_search.go b/ui/entry_search.go index 21fdf56..67954b9 100644 --- a/ui/entry_search.go +++ b/ui/entry_search.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/storage" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowSearchEntry shows a single entry in "search" mode. diff --git a/ui/entry_toggle_bookmark.go b/ui/entry_toggle_bookmark.go index 9d94cd1..13de971 100644 --- a/ui/entry_toggle_bookmark.go +++ b/ui/entry_toggle_bookmark.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/json" + "miniflux.app/logger" ) // ToggleBookmark handles Ajax request to toggle bookmark value. diff --git a/ui/entry_unread.go b/ui/entry_unread.go index 021df72..784255e 100644 --- a/ui/entry_unread.go +++ b/ui/entry_unread.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/storage" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/storage" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowUnreadEntry shows a single feed entry in "unread" mode. diff --git a/ui/entry_update_status.go b/ui/entry_update_status.go index bafa0a0..4f5c114 100644 --- a/ui/entry_update_status.go +++ b/ui/entry_update_status.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "errors" "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/context" + "miniflux.app/http/response/json" + "miniflux.app/logger" ) // UpdateEntriesStatus updates the status for a list of entries. diff --git a/ui/feed_edit.go b/ui/feed_edit.go index b4fb86f..4d2aabd 100644 --- a/ui/feed_edit.go +++ b/ui/feed_edit.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // EditFeed shows the form to modify a subscription. diff --git a/ui/feed_entries.go b/ui/feed_entries.go index 7f056c5..92aaab7 100644 --- a/ui/feed_entries.go +++ b/ui/feed_entries.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/model" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowFeedEntries shows all entries for the given feed. diff --git a/ui/feed_icon.go b/ui/feed_icon.go index c05efe5..c5a7414 100644 --- a/ui/feed_icon.go +++ b/ui/feed_icon.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" "time" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" ) // ShowIcon shows the feed icon. diff --git a/ui/feed_list.go b/ui/feed_list.go index 54f09f2..74877e3 100644 --- a/ui/feed_list.go +++ b/ui/feed_list.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowFeedsPage shows the page with all subscriptions. diff --git a/ui/feed_refresh.go b/ui/feed_refresh.go index eb86b04..634edfa 100644 --- a/ui/feed_refresh.go +++ b/ui/feed_refresh.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" ) // RefreshFeed refresh a subscription and redirect to the feed entries page. diff --git a/ui/feed_remove.go b/ui/feed_remove.go index 23d877b..4a7294e 100644 --- a/ui/feed_remove.go +++ b/ui/feed_remove.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" ) // RemoveFeed deletes a subscription from the database and redirect to the list of feeds page. diff --git a/ui/feed_update.go b/ui/feed_update.go index b960d11..821f850 100644 --- a/ui/feed_update.go +++ b/ui/feed_update.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // UpdateFeed update a subscription and redirect to the feed entries page. diff --git a/ui/form/auth.go b/ui/form/auth.go index c18a0be..7635efe 100644 --- a/ui/form/auth.go +++ b/ui/form/auth.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package form +package form // import "miniflux.app/ui/form" import ( "net/http" - "github.com/miniflux/miniflux/errors" + "miniflux.app/errors" ) // AuthForm represents the authentication form. diff --git a/ui/form/category.go b/ui/form/category.go index 31b7196..f255cb4 100644 --- a/ui/form/category.go +++ b/ui/form/category.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package form +package form // import "miniflux.app/ui/form" import ( "net/http" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/model" + "miniflux.app/errors" + "miniflux.app/model" ) // CategoryForm represents a feed form in the UI diff --git a/ui/form/feed.go b/ui/form/feed.go index 853287a..a8a4343 100644 --- a/ui/form/feed.go +++ b/ui/form/feed.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package form +package form // import "miniflux.app/ui/form" import ( "net/http" "strconv" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/model" + "miniflux.app/errors" + "miniflux.app/model" ) // FeedForm represents a feed form in the UI diff --git a/ui/form/integration.go b/ui/form/integration.go index db095aa..77e0295 100644 --- a/ui/form/integration.go +++ b/ui/form/integration.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package form +package form // import "miniflux.app/ui/form" import ( "net/http" - "github.com/miniflux/miniflux/model" + "miniflux.app/model" ) // IntegrationForm represents user integration settings form. diff --git a/ui/form/settings.go b/ui/form/settings.go index e5f6939..86f2d15 100644 --- a/ui/form/settings.go +++ b/ui/form/settings.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package form +package form // import "miniflux.app/ui/form" import ( "net/http" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/model" + "miniflux.app/errors" + "miniflux.app/model" ) // SettingsForm represents the settings form. diff --git a/ui/form/subscription.go b/ui/form/subscription.go index 122d25a..a1a73b9 100644 --- a/ui/form/subscription.go +++ b/ui/form/subscription.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package form +package form // import "miniflux.app/ui/form" import ( "net/http" "strconv" - "github.com/miniflux/miniflux/errors" + "miniflux.app/errors" ) // SubscriptionForm represents the subscription form. diff --git a/ui/form/user.go b/ui/form/user.go index 8b8346e..404f9c7 100644 --- a/ui/form/user.go +++ b/ui/form/user.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package form +package form // import "miniflux.app/ui/form" import ( "net/http" - "github.com/miniflux/miniflux/errors" - "github.com/miniflux/miniflux/model" + "miniflux.app/errors" + "miniflux.app/model" ) // UserForm represents the user form. diff --git a/ui/history_entries.go b/ui/history_entries.go index 2f18bbf..3835b34 100644 --- a/ui/history_entries.go +++ b/ui/history_entries.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/model" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowHistoryPage renders the page with all read entries. diff --git a/ui/history_flush.go b/ui/history_flush.go index 96b6f3d..0776f9c 100644 --- a/ui/history_flush.go +++ b/ui/history_flush.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" ) // FlushHistory changes all "read" items to "removed". diff --git a/ui/integration_pocket.go b/ui/integration_pocket.go index 02497c7..62d3ddc 100644 --- a/ui/integration_pocket.go +++ b/ui/integration_pocket.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/integration/pocket" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/session" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/integration/pocket" + "miniflux.app/logger" + "miniflux.app/ui/session" ) // PocketAuthorize redirects the end-user to Pocket website to authorize the application. diff --git a/ui/integration_show.go b/ui/integration_show.go index b3dc6d9..c32479f 100644 --- a/ui/integration_show.go +++ b/ui/integration_show.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowIntegrations renders the page with all external integrations. diff --git a/ui/integration_update.go b/ui/integration_update.go index a1e98cb..22c9000 100644 --- a/ui/integration_update.go +++ b/ui/integration_update.go @@ -2,19 +2,19 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "crypto/md5" "fmt" "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/ui/form" + "miniflux.app/ui/session" ) // UpdateIntegration updates integration settings. diff --git a/ui/login_check.go b/ui/login_check.go index 36fafea..8f501b8 100644 --- a/ui/login_check.go +++ b/ui/login_check.go @@ -1,18 +1,18 @@ -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/cookie" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/cookie" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // CheckLogin validates the username/password and redirects the user to the unread page. diff --git a/ui/login_show.go b/ui/login_show.go index 88e12d4..d963df5 100644 --- a/ui/login_show.go +++ b/ui/login_show.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowLoginPage shows the login form. diff --git a/ui/logout.go b/ui/logout.go index 0c777ce..e610282 100644 --- a/ui/logout.go +++ b/ui/logout.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/cookie" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/session" + "miniflux.app/http/context" + "miniflux.app/http/cookie" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/ui/session" ) // Logout destroy the session and redirects the user to the login page. diff --git a/ui/oauth2.go b/ui/oauth2.go index f1e6a4e..3f964a6 100644 --- a/ui/oauth2.go +++ b/ui/oauth2.go @@ -2,11 +2,11 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( - "github.com/miniflux/miniflux/config" - "github.com/miniflux/miniflux/oauth2" + "miniflux.app/config" + "miniflux.app/oauth2" ) func getOAuth2Manager(cfg *config.Config) *oauth2.Manager { diff --git a/ui/oauth2_callback.go b/ui/oauth2_callback.go index a39c0ac..4e0cd74 100644 --- a/ui/oauth2_callback.go +++ b/ui/oauth2_callback.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/cookie" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/session" + "miniflux.app/http/context" + "miniflux.app/http/cookie" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/ui/session" ) // OAuth2Callback receives the authorization code and create a new session. diff --git a/ui/oauth2_redirect.go b/ui/oauth2_redirect.go index 7f472ac..08f065d 100644 --- a/ui/oauth2_redirect.go +++ b/ui/oauth2_redirect.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/session" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/ui/session" ) // OAuth2Redirect redirects the user to the consent page to ask for permission. diff --git a/ui/oauth2_unlink.go b/ui/oauth2_unlink.go index 4421092..e0dbd16 100644 --- a/ui/oauth2_unlink.go +++ b/ui/oauth2_unlink.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/session" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/ui/session" ) // OAuth2Unlink unlink an account from the external provider. diff --git a/ui/opml_export.go b/ui/opml_export.go index ec396f0..561c6c3 100644 --- a/ui/opml_export.go +++ b/ui/opml_export.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/response/xml" - "github.com/miniflux/miniflux/reader/opml" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/http/response/xml" + "miniflux.app/reader/opml" ) // Export generates the OPML file. diff --git a/ui/opml_import.go b/ui/opml_import.go index 1017272..10d09fc 100644 --- a/ui/opml_import.go +++ b/ui/opml_import.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // Import shows the import form. diff --git a/ui/opml_upload.go b/ui/opml_upload.go index 2e0a1b8..e11eb73 100644 --- a/ui/opml_upload.go +++ b/ui/opml_upload.go @@ -2,19 +2,19 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/reader/opml" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/reader/opml" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // UploadOPML handles OPML file importation. diff --git a/ui/pagination.go b/ui/pagination.go index aaf9d12..5fdf715 100644 --- a/ui/pagination.go +++ b/ui/pagination.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" const ( nbItemsPerPage = 100 diff --git a/ui/payload.go b/ui/payload.go index bd65c83..76e9206 100644 --- a/ui/payload.go +++ b/ui/payload.go @@ -2,14 +2,14 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "encoding/json" "fmt" "io" - "github.com/miniflux/miniflux/model" + "miniflux.app/model" ) func decodeEntryStatusPayload(r io.ReadCloser) (entryIDs []int64, status string, err error) { diff --git a/ui/proxy.go b/ui/proxy.go index 62364aa..68e4db0 100644 --- a/ui/proxy.go +++ b/ui/proxy.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "encoding/base64" @@ -11,12 +11,12 @@ import ( "net/http" "time" - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/http/client" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/logger" + "miniflux.app/crypto" + "miniflux.app/http/client" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/logger" ) // ImageProxy fetch an image from a remote server and sent it back to the browser. diff --git a/ui/search_entries.go b/ui/search_entries.go index 60d35c7..267176e 100644 --- a/ui/search_entries.go +++ b/ui/search_entries.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/model" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowSearchEntries shows all entries for the given feed. diff --git a/ui/session/session.go b/ui/session/session.go index 474bd18..f6a35c2 100644 --- a/ui/session/session.go +++ b/ui/session/session.go @@ -2,12 +2,12 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package session +package session // import "miniflux.app/ui/session" import ( - "github.com/miniflux/miniflux/crypto" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/storage" + "miniflux.app/crypto" + "miniflux.app/http/context" + "miniflux.app/storage" ) // Session handles session data. diff --git a/ui/session_list.go b/ui/session_list.go index ad296c6..19aa13e 100644 --- a/ui/session_list.go +++ b/ui/session_list.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/ui/session" + "miniflux.app/ui/view" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" + "miniflux.app/http/context" + "miniflux.app/http/response/html" ) // ShowSessions shows the list of active user sessions. diff --git a/ui/session_remove.go b/ui/session_remove.go index 1ee2a6b..6bec368 100644 --- a/ui/session_remove.go +++ b/ui/session_remove.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" ) // RemoveSession remove a user session. diff --git a/ui/settings_show.go b/ui/settings_show.go index aa43f3e..fd2ec4f 100644 --- a/ui/settings_show.go +++ b/ui/settings_show.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/locale" + "miniflux.app/model" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowSettings shows the settings page. diff --git a/ui/settings_update.go b/ui/settings_update.go index 229042d..b861466 100644 --- a/ui/settings_update.go +++ b/ui/settings_update.go @@ -2,21 +2,21 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/locale" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/locale" + "miniflux.app/logger" + "miniflux.app/model" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // UpdateSettings update the settings. diff --git a/ui/static/bin.go b/ui/static/bin.go index b525027..a740bb6 100644 --- a/ui/static/bin.go +++ b/ui/static/bin.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. -package static +package static // import "miniflux.app/ui/static" var Binaries = map[string]string{ "favicon-16.png": `iVBORw0KGgoAAAANSUhEUgAAABAAAAAQBAMAAADt3eJSAAAAGXRFWHRTb2Z0d2FyZQBBZG9iZSBJbWFnZVJlYWR5ccllPAAAADBQTFRF////AAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAAL92gewAAAA90Uk5TABAgMEBQYHCAkLDA0ODw5J0j2QAAADtJREFUCNdjYMADVJvME1kKGRiY7v/+/+v8fwcGhv6fsv+T/k8AMr5w/2f4v4E0BtP9v5z/J9x/hsdKAKKaKtBX2IhFAAAAAElFTkSuQmCC`, diff --git a/ui/static/css.go b/ui/static/css.go index c661fa2..d689e20 100644 --- a/ui/static/css.go +++ b/ui/static/css.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. -package static +package static // import "miniflux.app/ui/static" var Stylesheets = map[string]string{ "black": `*{margin:0;padding:0;box-sizing:border-box}html{-webkit-text-size-adjust:100%;-ms-text-size-adjust:100%}body{font-family:helvetica neue,Helvetica,Arial,sans-serif;text-rendering:optimizeLegibility}main{padding-left:5px;padding-right:5px;margin-bottom:30px}a{color:#36c}a:focus{outline:0;color:red;text-decoration:none;border:1px dotted #aaa}a:hover{color:#333;text-decoration:none}.header{margin-top:10px;margin-bottom:20px}.header nav ul{display:none}.header li{cursor:pointer;padding-left:10px;line-height:2.1em;font-size:1.2em;border-bottom:1px dotted #ddd}.header li:hover a{color:#888}.header a{font-size:.9em;color:#444;text-decoration:none;border:0}.header .active a{font-weight:600}.header a:hover,.header a:focus{color:#888}.page-header{margin-bottom:25px}.page-header h1{font-weight:500;border-bottom:1px dotted #ddd}.page-header ul{margin-left:25px}.page-header li{list-style-type:circle;line-height:1.8em}.logo{cursor:pointer;text-align:center}.logo a{color:#000;letter-spacing:1px}.logo a:hover{color:#396}.logo a span{color:#396}.logo a:hover span{color:#000}.search{text-align:center;display:none}.search-toggle-switch{display:none}@media(min-width:600px){body{margin:auto;max-width:750px}.header{margin-bottom:0}.logo{text-align:left;float:left;margin-right:15px;margin-left:5px}.header nav ul{display:block}.header li{display:inline;padding:0;padding-right:15px;line-height:normal;border:0;font-size:1em}.page-header ul{margin-left:0}.page-header li{display:inline;padding-right:15px}.search{text-align:right;display:block;margin-top:10px}.search-toggle-switch{display:block}.search-form{display:none}.search-toggle-switch.has-search-query{display:none}.search-form.has-search-query{display:block}}table{width:100%;border-collapse:collapse}table,th,td{border:1px solid #ddd}th,td{padding:5px;text-align:left}td{vertical-align:top}th{background:#fcfcfc}tr:hover{background-color:#f9f9f9}.column-40{width:40%}.column-25{width:25%}.column-20{width:20%}fieldset{border:1px solid #ddd;padding:8px}legend{font-weight:500;padding-left:3px;padding-right:3px}label{cursor:pointer;display:block}.radio-group{line-height:1.9em}div.radio-group label{display:inline-block}select{margin-bottom:15px}input[type=search],input[type=url],input[type=password],input[type=text]{border:1px solid #ccc;padding:3px;line-height:20px;width:250px;font-size:99%;margin-bottom:10px;margin-top:5px;-webkit-appearance:none}input[type=search]:focus,input[type=url]:focus,input[type=password]:focus,input[type=text]:focus{color:#000;border-color:rgba(82,168,236,.8);outline:0;box-shadow:0 0 8px rgba(82,168,236,.6)}input[type=checkbox]{margin-bottom:15px}::-moz-placeholder,::-ms-input-placeholder,::-webkit-input-placeholder{color:#ddd;padding-top:2px}.form-help{font-size:.9em;color:brown;margin-bottom:15px}.form-section{border-left:2px dotted #ddd;padding-left:20px;margin-left:10px}a.button{text-decoration:none}.button{display:inline-block;-webkit-appearance:none;-moz-appearance:none;font-size:1.1em;cursor:pointer;padding:3px 10px;border:1px solid;border-radius:unset}.button-primary{border-color:#3079ed;background:#4d90fe;color:#fff}.button-primary:hover,.button-primary:focus{border-color:#2f5bb7;background:#357ae8}.button-danger{border-color:#b0281a;background:#d14836;color:#fff}.button-danger:hover,.button-danger:focus{color:#fff;background:#c53727}.button:disabled{color:#ccc;background:#f7f7f7;border-color:#ccc}.buttons{margin-top:10px;margin-bottom:20px}.alert{padding:8px 35px 8px 14px;margin-bottom:20px;color:#c09853;background-color:#fcf8e3;border:1px solid #fbeed5;border-radius:4px;overflow:auto}.alert h3{margin-top:0;margin-bottom:15px}.alert-success{color:#468847;background-color:#dff0d8;border-color:#d6e9c6}.alert-error{color:#b94a48;background-color:#f2dede;border-color:#eed3d7}.alert-error a{color:#b94a48}.alert-info{color:#3a87ad;background-color:#d9edf7;border-color:#bce8f1}.panel{color:#333;background-color:#fcfcfc;border:1px solid #ddd;border-radius:5px;padding:10px;margin-bottom:15px}.panel h3{font-weight:500;margin-top:0;margin-bottom:20px}.panel ul{margin-left:30px}#modal-left{position:fixed;top:0;left:0;bottom:0;width:360px;overflow:auto;background:#f0f0f0;box-shadow:2px 0 5px 0 #ccc;padding:5px;padding-top:30px}#modal-left h3{font-weight:400;margin:0}.btn-close-modal{position:absolute;top:0;right:0;font-size:1.7em;color:#ccc;padding:0 .2em;margin:10px;text-decoration:none}.btn-close-modal:hover{color:#999}.keyboard-shortcuts li{margin-left:25px;list-style-type:square;color:#333;font-size:.95em;line-height:1.45em}.keyboard-shortcuts p{line-height:1.9em}.login-form{margin:50px auto 0;max-width:280px}.unread-counter-wrapper{font-size:.9em;font-weight:300;color:#666}.category{font-size:.75em;background-color:#fffcd7;border:1px solid #d5d458;border-radius:5px;margin-left:.25em;padding:1px .4em;white-space:nowrap}.category a{color:#555;text-decoration:none}.category a:hover,.category a:focus{color:#000}.pagination{font-size:1.1em;display:flex;align-items:center;padding-top:8px}.pagination-bottom{border-top:1px dotted #ddd;margin-bottom:15px;margin-top:50px}.pagination>div{flex:1}.pagination-next{text-align:right}.pagination-prev:before{content:"« "}.pagination-next:after{content:" »"}.pagination a{color:#333}.pagination a:hover,.pagination a:focus{text-decoration:none}.item{border:1px dotted #ddd;margin-bottom:20px;padding:5px;overflow:hidden}.item.current-item{border:3px solid #bce;padding:3px}.item-title a{text-decoration:none;font-weight:600}.item-status-read .item-title a{color:#777}.item-meta{color:#777;font-size:.8em}.item-meta a{color:#777;text-decoration:none}.item-meta a:hover,.item-meta a:focus{color:#333}.item-meta ul{margin-top:5px}.item-meta li{display:inline}.item-meta li:after{content:"|";color:#aaa}.item-meta li:last-child:after{content:""}.items{overflow-x:hidden}.hide-read-items .item-status-read{display:none}article.feed-parsing-error{background-color:#fcf8e3;border-color:#aaa}.parsing-error{font-size:.85em;margin-top:2px;color:#333}.parsing-error-count{cursor:pointer}.entry header{padding-bottom:5px;border-bottom:1px dotted #ddd}.entry header h1{font-size:2em;line-height:1.25em;margin:5px 0 30px}.entry header h1 a{text-decoration:none;color:#333}.entry header h1 a:hover,.entry header h1 a:focus{color:#666}.entry-actions{margin-bottom:20px}.entry-actions a{text-decoration:none}.entry-actions li{display:inline}.entry-actions li:not(:last-child):after{content:"|"}.entry-meta{font-size:.95em;margin:0 0 20px;color:#666;overflow-wrap:break-word}.entry-website img{vertical-align:top}.entry-website a{color:#666;vertical-align:top;text-decoration:none}.entry-website a:hover,.entry-website a:focus{text-decoration:underline}.entry-date{font-size:.65em;font-style:italic;color:#555}.entry-content{padding-top:15px;font-size:1.2em;font-weight:300;font-family:Georgia,times new roman,Times,serif;color:#555;line-height:1.4em;overflow-wrap:break-word}.entry-content h1,h2,h3,h4,h5,h6{margin-top:15px;margin-bottom:10px}.entry-content iframe,.entry-content video,.entry-content img{max-width:100%}.entry-content figure{margin-top:15px;margin-bottom:15px}.entry-content figure img{border:1px solid #000}.entry-content figcaption{font-size:.75em;text-transform:uppercase;color:#777}.entry-content p{margin-top:10px;margin-bottom:15px}.entry-content a{overflow-wrap:break-word}.entry-content a:visited{color:purple}.entry-content dt{font-weight:500;margin-top:15px;color:#555}.entry-content dd{margin-left:15px;margin-top:5px;padding-left:20px;border-left:3px solid #ddd;color:#777;font-weight:300;line-height:1.4em}.entry-content blockquote{border-left:4px solid #ddd;padding-left:25px;margin-left:20px;margin-top:20px;margin-bottom:20px;color:#888;line-height:1.4em;font-family:Georgia,serif}.entry-content q{color:purple;font-family:Georgia,serif;font-style:italic}.entry-content q:before{content:"“"}.entry-content q:after{content:"”"}.entry-content pre{padding:5px;background:#f0f0f0;border:1px solid #ddd;overflow:scroll;overflow-wrap:initial}.entry-content table{table-layout:fixed;max-width:100%}.entry-content ul,.entry-content ol{margin-left:30px}.entry-content ul{list-style-type:square}.entry-enclosures h3{font-weight:500}.entry-enclosure{border:1px dotted #ddd;padding:5px;margin-top:10px;max-width:100%}.entry-enclosure-download{font-size:.85em;overflow-wrap:break-word}.enclosure-video video,.enclosure-image img{max-width:100%}.confirm{font-weight:500;color:#ed2d04}.confirm a{color:#ed2d04}.loading{font-style:italic}.bookmarklet{border:1px dashed #ccc;border-radius:5px;padding:15px;margin:15px;text-align:center}.bookmarklet a{font-weight:600;text-decoration:none;font-size:1.2em}body{background:#222;color:#efefef}h1,h2,h3{color:#aaa}a{color:#aaa}a:focus,a:hover{color:#ddd}.header li{border-color:#333}.header a{color:#ddd;font-weight:400}.header .active a{font-weight:400;color:#9b9494}.header a:focus,.header a:hover{color:rgba(82,168,236,.85)}.page-header h1{border-color:#333}.logo a:hover span{color:#555}table,th,td{border:1px solid #555}th{background:#333;color:#aaa;font-weight:400}tr:hover{background-color:#333;color:#aaa}input[type=search],input[type=url],input[type=password],input[type=text]{border:1px solid #555;background:#333;color:#ccc}input[type=search]:focus,input[type=url]:focus,input[type=password]:focus,input[type=text]:focus{color:#efefef;border-color:rgba(82,168,236,.8);box-shadow:0 0 8px rgba(82,168,236,.6)}.button-primary{border-color:#444;background:#333;color:#efefef}.button-primary:hover,.button-primary:focus{border-color:#888;background:#555}.alert,.alert-success,.alert-error,.alert-info,.alert-normal{color:#efefef;background-color:#333;border-color:#444}.panel{background:#333;border-color:#555;color:#9b9b9b}#modal-left{background:#333;color:#efefef;box-shadow:0 0 10px rgba(82,168,236,.6)}.keyboard-shortcuts li{color:#9b9b9b}.unread-counter-wrapper{color:#bbb}.category{color:#efefef;background-color:#333;border-color:#444}.category a{color:#999}.category a:hover,.category a:focus{color:#aaa}.pagination a{color:#aaa}.pagination-bottom{border-color:#333}.item{border-color:#666;padding:4px}.item.current-item{border-width:2px;border-color:rgba(82,168,236,.8);box-shadow:0 0 8px rgba(82,168,236,.6)}.item-title a{font-weight:400}.item-status-read .item-title a{color:#666}.item-status-read .item-title a:focus,.item-status-read .item-title a:hover{color:rgba(82,168,236,.6)}.item-meta a:hover,.item-meta a:focus{color:#aaa}.item-meta li:after{color:#ddd}article.feed-parsing-error{background-color:#343434}.parsing-error{color:#eee}.entry header{border-color:#333}.entry header h1 a{color:#bbb}.entry-content,.entry-content p,ul{color:#999}.entry-content pre,.entry-content code{color:#fff;background:#555;border-color:#888}.entry-content q{color:#777}.entry-enclosure{border-color:#333}`, diff --git a/ui/static/js.go b/ui/static/js.go index 5c901e7..555bec6 100644 --- a/ui/static/js.go +++ b/ui/static/js.go @@ -1,6 +1,6 @@ // Code generated by go generate; DO NOT EDIT. -package static +package static // import "miniflux.app/ui/static" var Javascripts = map[string]string{ "app": `(function(){'use strict';class DomHelper{static isVisible(element){return element.offsetParent!==null;} diff --git a/ui/static_app_icon.go b/ui/static_app_icon.go index 19a823e..6da3f1a 100644 --- a/ui/static_app_icon.go +++ b/ui/static_app_icon.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "encoding/base64" "net/http" "time" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/static" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/logger" + "miniflux.app/ui/static" ) // AppIcon renders application icons. diff --git a/ui/static_favicon.go b/ui/static_favicon.go index c68c556..2e19c05 100644 --- a/ui/static_favicon.go +++ b/ui/static_favicon.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "encoding/base64" "net/http" "time" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/static" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/logger" + "miniflux.app/ui/static" ) // Favicon renders the application favicon. diff --git a/ui/static_javascript.go b/ui/static_javascript.go index 990368b..c52251c 100644 --- a/ui/static_javascript.go +++ b/ui/static_javascript.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" "time" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/static" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/ui/static" ) // Javascript renders application client side code. diff --git a/ui/static_manifest.go b/ui/static_manifest.go index 96814fe..f8f6ac0 100644 --- a/ui/static_manifest.go +++ b/ui/static_manifest.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/json" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" + "miniflux.app/http/context" + "miniflux.app/http/response/json" + "miniflux.app/http/route" + "miniflux.app/model" ) // WebManifest renders web manifest file. diff --git a/ui/static_stylesheet.go b/ui/static_stylesheet.go index 37a06e0..de540fe 100644 --- a/ui/static_stylesheet.go +++ b/ui/static_stylesheet.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" "time" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/static" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/ui/static" ) // Stylesheet renders the CSS. diff --git a/ui/subscription_add.go b/ui/subscription_add.go index b710cf0..607f19b 100644 --- a/ui/subscription_add.go +++ b/ui/subscription_add.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // AddSubscription shows the form to add a new feed. diff --git a/ui/subscription_bookmarklet.go b/ui/subscription_bookmarklet.go index 33e82b4..23dcd52 100644 --- a/ui/subscription_bookmarklet.go +++ b/ui/subscription_bookmarklet.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // Bookmarklet prefill the form to add a subscription from the URL provided by the bookmarklet. diff --git a/ui/subscription_choose.go b/ui/subscription_choose.go index e4a77fd..65e3b6d 100644 --- a/ui/subscription_choose.go +++ b/ui/subscription_choose.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ChooseSubscription shows a page to choose a subscription. diff --git a/ui/subscription_submit.go b/ui/subscription_submit.go index d7f4e61..f7a0181 100644 --- a/ui/subscription_submit.go +++ b/ui/subscription_submit.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/reader/subscription" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/reader/subscription" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // SubmitSubscription try to find a feed from the URL provided by the user. diff --git a/ui/unread_entries.go b/ui/unread_entries.go index 0d10bb6..18fc2cd 100644 --- a/ui/unread_entries.go +++ b/ui/unread_entries.go @@ -2,18 +2,18 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/model" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/model" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowUnreadPage render the page with all unread entries. diff --git a/ui/unread_mark_all_read.go b/ui/unread_mark_all_read.go index 2c745e4..7d47523 100644 --- a/ui/unread_mark_all_read.go +++ b/ui/unread_mark_all_read.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/route" + "miniflux.app/logger" ) // MarkAllAsRead marks all unread entries as read. diff --git a/ui/user_create.go b/ui/user_create.go index 9c47c6a..6b95e34 100644 --- a/ui/user_create.go +++ b/ui/user_create.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // CreateUser shows the user creation form. diff --git a/ui/user_edit.go b/ui/user_edit.go index 953d1ef..20acdde 100644 --- a/ui/user_edit.go +++ b/ui/user_edit.go @@ -2,17 +2,17 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response/html" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // EditUser shows the form to edit a user. diff --git a/ui/user_list.go b/ui/user_list.go index f9ec35f..57bad4e 100644 --- a/ui/user_list.go +++ b/ui/user_list.go @@ -2,15 +2,15 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response/html" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // ShowUsers renders the list of users. diff --git a/ui/user_remove.go b/ui/user_remove.go index 0b9113b..63d2c46 100644 --- a/ui/user_remove.go +++ b/ui/user_remove.go @@ -2,16 +2,16 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" ) // RemoveUser deletes a user from the database. diff --git a/ui/user_save.go b/ui/user_save.go index b563877..01d70dc 100644 --- a/ui/user_save.go +++ b/ui/user_save.go @@ -2,19 +2,19 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // SaveUser validate and save the new user into the database. diff --git a/ui/user_update.go b/ui/user_update.go index 1b785f5..54a47a6 100644 --- a/ui/user_update.go +++ b/ui/user_update.go @@ -2,20 +2,20 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package ui +package ui // import "miniflux.app/ui" import ( "net/http" - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/http/request" - "github.com/miniflux/miniflux/http/response" - "github.com/miniflux/miniflux/http/response/html" - "github.com/miniflux/miniflux/http/route" - "github.com/miniflux/miniflux/logger" - "github.com/miniflux/miniflux/ui/form" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/view" + "miniflux.app/http/context" + "miniflux.app/http/request" + "miniflux.app/http/response" + "miniflux.app/http/response/html" + "miniflux.app/http/route" + "miniflux.app/logger" + "miniflux.app/ui/form" + "miniflux.app/ui/session" + "miniflux.app/ui/view" ) // UpdateUser validate and update a user. diff --git a/ui/view/view.go b/ui/view/view.go index 2dafa08..0351756 100644 --- a/ui/view/view.go +++ b/ui/view/view.go @@ -2,13 +2,13 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package view +package view // import "miniflux.app/ui/view" import ( - "github.com/miniflux/miniflux/http/context" - "github.com/miniflux/miniflux/template" - "github.com/miniflux/miniflux/ui/session" - "github.com/miniflux/miniflux/ui/static" + "miniflux.app/http/context" + "miniflux.app/template" + "miniflux.app/ui/session" + "miniflux.app/ui/static" ) // View wraps template argument building. diff --git a/url/doc.go b/url/doc.go index e7ddf89..9b80dd8 100644 --- a/url/doc.go +++ b/url/doc.go @@ -7,4 +7,4 @@ Package url implements a set of utility functions to parse URL. */ -package url +package url // import "miniflux.app/url" diff --git a/url/url.go b/url/url.go index e5a7c62..cc35e2f 100644 --- a/url/url.go +++ b/url/url.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package url +package url // import "miniflux.app/url" import "net/url" import "fmt" diff --git a/url/url_test.go b/url/url_test.go index 12e131f..ef333f9 100644 --- a/url/url_test.go +++ b/url/url_test.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package url +package url // import "miniflux.app/url" import "testing" diff --git a/version/doc.go b/version/doc.go index fd58a6d..0d59429 100644 --- a/version/doc.go +++ b/version/doc.go @@ -7,4 +7,4 @@ Package version contains application and build information. */ -package version +package version // import "miniflux.app/version" diff --git a/version/version.go b/version/version.go index 2b9c050..0a9e488 100644 --- a/version/version.go +++ b/version/version.go @@ -2,7 +2,7 @@ // Use of this source code is governed by the Apache 2.0 // license that can be found in the LICENSE file. -package version +package version // import "miniflux.app/version" // Version of the application (generated with "make build") var Version = "2.0.x-dev" -- cgit v1.2.3