From 00bddbb941260b3c5dd01595443f218835ab9392 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Fr=C3=A9d=C3=A9ric=20Guillot?= Date: Wed, 9 Aug 2023 21:15:55 -0700 Subject: [PATCH] Rename Miniflux package name to follow Go module naming convention For reference: https://go.dev/ref/mod#major-version-suffixes --- Makefile | 4 ++-- api/api.go | 6 ++--- api/category.go | 10 ++++---- api/entry.go | 22 +++++++++--------- api/feed.go | 12 +++++----- api/icon.go | 6 ++--- api/middleware.go | 10 ++++---- api/opml.go | 10 ++++---- api/payload.go | 4 ++-- api/subscription.go | 10 ++++---- api/user.go | 10 ++++---- cli/ask_credentials.go | 2 +- cli/cleanup_tasks.go | 12 +++++----- cli/cli.go | 16 ++++++------- cli/create_admin.go | 12 +++++----- cli/daemon.go | 16 ++++++------- cli/flush_sessions.go | 4 ++-- cli/health_check.go | 6 ++--- cli/info.go | 4 ++-- cli/refresh_feeds.go | 12 +++++----- cli/reset_password.go | 8 +++---- cli/scheduler.go | 10 ++++---- client/README.md | 2 +- client/client.go | 2 +- client/doc.go | 4 ++-- client/model.go | 2 +- client/request.go | 2 +- config/config.go | 2 +- config/config_test.go | 2 +- config/options.go | 4 ++-- config/parser.go | 2 +- config/parser_test.go | 2 +- crypto/crypto.go | 2 +- database/database.go | 2 +- database/migrations.go | 2 +- errors/errors.go | 4 ++-- fever/handler.go | 16 ++++++------- fever/middleware.go | 10 ++++---- fever/response.go | 2 +- go.mod | 2 +- googlereader/handler.go | 28 +++++++++++----------- googlereader/middleware.go | 14 +++++------ googlereader/response.go | 6 ++--- http/client/client.go | 10 ++++---- http/client/client_test.go | 2 +- http/client/response.go | 2 +- http/client/response_test.go | 2 +- http/cookie/cookie.go | 2 +- http/request/client_ip.go | 2 +- http/request/client_ip_test.go | 2 +- http/request/context.go | 2 +- http/request/context_test.go | 2 +- http/request/cookie.go | 2 +- http/request/cookie_test.go | 2 +- http/request/params.go | 2 +- http/request/params_test.go | 2 +- http/response/builder.go | 4 ++-- http/response/builder_test.go | 2 +- http/response/html/html.go | 6 ++--- http/response/html/html_test.go | 2 +- http/response/json/json.go | 6 ++--- http/response/json/json_test.go | 2 +- http/response/xml/xml.go | 4 ++-- http/response/xml/xml_test.go | 2 +- http/route/route.go | 4 ++-- http/server/httpd.go | 22 +++++++++--------- http/server/middleware.go | 8 +++---- integration/apprise/apprise.go | 4 ++-- integration/espial/espial.go | 4 ++-- integration/instapaper/instapaper.go | 4 ++-- integration/integration.go | 32 +++++++++++++------------- integration/linkding/linkding.go | 4 ++-- integration/matrixbot/matrixbot.go | 6 ++--- integration/notion/notion.go | 2 +- integration/nunuxkeeper/nunuxkeeper.go | 4 ++-- integration/pinboard/pinboard.go | 4 ++-- integration/pocket/connector.go | 4 ++-- integration/pocket/pocket.go | 4 ++-- integration/readwise/readwise.go | 4 ++-- integration/telegrambot/telegrambot.go | 4 ++-- integration/wallabag/wallabag.go | 4 ++-- locale/catalog.go | 2 +- locale/catalog_test.go | 2 +- locale/locale.go | 2 +- locale/locale_test.go | 2 +- locale/plural.go | 2 +- locale/plural_test.go | 2 +- locale/printer.go | 2 +- locale/printer_test.go | 2 +- logger/logger.go | 2 +- main.go | 4 ++-- metric/metric.go | 6 ++--- model/api_key.go | 4 ++-- model/app_session.go | 2 +- model/categories_sort_options.go | 2 +- model/category.go | 2 +- model/enclosure.go | 2 +- model/entry.go | 2 +- model/feed.go | 6 ++--- model/feed_test.go | 6 ++--- model/home_page.go | 2 +- model/icon.go | 2 +- model/integration.go | 2 +- model/job.go | 2 +- model/model.go | 2 +- model/subscription.go | 2 +- model/theme.go | 2 +- model/user.go | 4 ++-- model/user_session.go | 4 ++-- oauth2/google.go | 4 ++-- oauth2/manager.go | 4 ++-- oauth2/oidc.go | 4 ++-- oauth2/profile.go | 2 +- oauth2/provider.go | 4 ++-- packaging/docker/alpine/Dockerfile | 2 +- packaging/docker/distroless/Dockerfile | 2 +- proxy/media_proxy.go | 8 +++---- proxy/media_proxy_test.go | 4 ++-- proxy/proxy.go | 6 ++--- reader/atom/atom_03.go | 14 +++++------ reader/atom/atom_03_test.go | 2 +- reader/atom/atom_10.go | 16 ++++++------- reader/atom/atom_10_test.go | 2 +- reader/atom/atom_common.go | 2 +- reader/atom/parser.go | 8 +++---- reader/atom/parser_test.go | 2 +- reader/browser/browser.go | 6 ++--- reader/date/parser.go | 2 +- reader/date/parser_test.go | 2 +- reader/encoding/encoding.go | 2 +- reader/handler/handler.go | 26 ++++++++++----------- reader/icon/finder.go | 14 +++++------ reader/icon/finder_test.go | 2 +- reader/json/json.go | 14 +++++------ reader/json/parser.go | 6 ++--- reader/json/parser_test.go | 2 +- reader/media/media.go | 2 +- reader/media/media_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/parser/format.go | 4 ++-- reader/parser/format_test.go | 2 +- reader/parser/parser.go | 14 +++++------ reader/parser/parser_test.go | 4 ++-- reader/processor/processor.go | 24 +++++++++---------- reader/processor/processor_test.go | 4 ++-- reader/rdf/dublincore.go | 2 +- reader/rdf/parser.go | 8 +++---- reader/rdf/parser_test.go | 2 +- reader/rdf/rdf.go | 14 +++++------ reader/readability/readability.go | 4 ++-- reader/rewrite/rewrite_functions.go | 4 ++-- reader/rewrite/rewriter.go | 8 +++---- reader/rewrite/rewriter_test.go | 6 ++--- reader/rewrite/rules.go | 2 +- reader/rss/dublincore.go | 2 +- reader/rss/feedburner.go | 2 +- reader/rss/parser.go | 8 +++---- reader/rss/parser_test.go | 2 +- reader/rss/podcast.go | 2 +- reader/rss/rss.go | 16 ++++++------- reader/sanitizer/sanitizer.go | 6 ++--- reader/sanitizer/sanitizer_test.go | 4 ++-- reader/sanitizer/strip_tags.go | 2 +- reader/sanitizer/strip_tags_test.go | 2 +- reader/scraper/rules.go | 2 +- reader/scraper/scraper.go | 12 +++++----- reader/scraper/scraper_test.go | 2 +- reader/subscription/finder.go | 14 +++++------ reader/subscription/subscription.go | 2 +- reader/xml/decoder.go | 4 ++-- reader/xml/decoder_test.go | 2 +- storage/api_key.go | 4 ++-- storage/category.go | 4 ++-- storage/certificate_cache.go | 2 +- storage/enclosure.go | 4 ++-- storage/entry.go | 8 +++---- storage/entry_pagination_builder.go | 6 ++--- storage/entry_query_builder.go | 6 ++--- storage/feed.go | 8 +++---- storage/feed_query_builder.go | 6 ++--- storage/icon.go | 4 ++-- storage/integration.go | 4 ++-- storage/job.go | 6 ++--- storage/session.go | 6 ++--- storage/storage.go | 2 +- storage/timezone.go | 2 +- storage/user.go | 8 +++---- storage/user_session.go | 6 ++--- systemd/systemd.go | 2 +- template/engine.go | 8 +++---- template/functions.go | 18 +++++++-------- template/functions_test.go | 4 ++-- tests/category_test.go | 2 +- tests/endpoint_test.go | 2 +- tests/entry_test.go | 2 +- tests/feed_test.go | 2 +- tests/subscription_test.go | 2 +- tests/tests.go | 2 +- tests/user_test.go | 2 +- timer/timer.go | 4 ++-- timezone/timezone.go | 2 +- timezone/timezone_test.go | 2 +- ui/about.go | 14 +++++------ ui/api_key_create.go | 12 +++++----- ui/api_key_list.go | 10 ++++---- ui/api_key_remove.go | 10 ++++---- ui/api_key_save.go | 18 +++++++-------- ui/bookmark_entries.go | 14 +++++------ ui/category_create.go | 10 ++++---- ui/category_edit.go | 12 +++++----- ui/category_entries.go | 14 +++++------ ui/category_entries_all.go | 14 +++++------ ui/category_feeds.go | 10 ++++---- ui/category_list.go | 10 ++++---- ui/category_mark_as_read.go | 8 +++---- ui/category_refresh.go | 8 +++---- ui/category_remove.go | 8 +++---- ui/category_save.go | 20 ++++++++-------- ui/category_update.go | 20 ++++++++-------- ui/entry_bookmark.go | 16 ++++++------- ui/entry_category.go | 16 ++++++------- ui/entry_enclosure_save_position.go | 6 ++--- ui/entry_feed.go | 16 ++++++------- ui/entry_read.go | 16 ++++++------- ui/entry_save.go | 10 ++++---- ui/entry_scraper.go | 16 ++++++------- ui/entry_search.go | 16 ++++++------- ui/entry_toggle_bookmark.go | 6 ++--- ui/entry_unread.go | 16 ++++++------- ui/entry_update_status.go | 10 ++++---- ui/feed_edit.go | 14 +++++------ ui/feed_entries.go | 14 +++++------ ui/feed_entries_all.go | 14 +++++------ ui/feed_icon.go | 8 +++---- ui/feed_list.go | 10 ++++---- ui/feed_mark_as_read.go | 8 +++---- ui/feed_refresh.go | 12 +++++----- ui/feed_remove.go | 8 +++---- ui/feed_update.go | 22 +++++++++--------- ui/form/api_key.go | 4 ++-- ui/form/auth.go | 4 ++-- ui/form/category.go | 2 +- ui/form/feed.go | 4 ++-- ui/form/integration.go | 4 ++-- ui/form/settings.go | 6 ++--- ui/form/settings_test.go | 2 +- ui/form/subscription.go | 6 ++--- ui/form/user.go | 6 ++--- ui/handler.go | 8 +++---- ui/history_entries.go | 14 +++++------ ui/history_flush.go | 6 ++--- ui/integration_pocket.go | 18 +++++++-------- ui/integration_show.go | 14 +++++------ ui/integration_update.go | 16 ++++++------- ui/login_check.go | 20 ++++++++-------- ui/login_show.go | 12 +++++----- ui/logout.go | 16 ++++++------- ui/middleware.go | 20 ++++++++-------- ui/oauth2.go | 6 ++--- ui/oauth2_callback.go | 20 ++++++++-------- ui/oauth2_redirect.go | 12 +++++----- ui/oauth2_unlink.go | 14 +++++------ ui/offline.go | 10 ++++---- ui/opml_export.go | 10 ++++---- ui/opml_import.go | 10 ++++---- ui/opml_upload.go | 20 ++++++++-------- ui/pagination.go | 2 +- ui/proxy.go | 14 +++++------ ui/search_entries.go | 14 +++++------ ui/session/session.go | 6 ++--- ui/session_list.go | 10 ++++---- ui/session_remove.go | 10 ++++---- ui/settings_show.go | 16 ++++++------- ui/settings_update.go | 22 +++++++++--------- ui/share.go | 16 ++++++------- ui/shared_entries.go | 10 ++++---- ui/static/static.go | 2 +- ui/static_app_icon.go | 10 ++++---- ui/static_favicon.go | 8 +++---- ui/static_javascript.go | 12 +++++----- ui/static_manifest.go | 10 ++++---- ui/static_stylesheet.go | 10 ++++---- ui/subscription_add.go | 14 +++++------ ui/subscription_bookmarklet.go | 14 +++++------ ui/subscription_choose.go | 20 ++++++++-------- ui/subscription_submit.go | 24 +++++++++---------- ui/ui.go | 10 ++++---- ui/unread_entries.go | 16 ++++++------- ui/unread_mark_all_read.go | 6 ++--- ui/user_create.go | 12 +++++----- ui/user_edit.go | 12 +++++----- ui/user_list.go | 10 ++++---- ui/user_remove.go | 8 +++---- ui/user_save.go | 20 ++++++++-------- ui/user_update.go | 16 ++++++------- ui/view/view.go | 10 ++++---- url/url.go | 2 +- url/url_test.go | 2 +- validator/category.go | 6 ++--- validator/entry.go | 4 ++-- validator/entry_test.go | 4 ++-- validator/feed.go | 6 ++--- validator/subscription.go | 4 ++-- validator/user.go | 8 +++---- validator/validator.go | 4 ++-- validator/validator_test.go | 2 +- version/version.go | 2 +- worker/pool.go | 6 ++--- worker/worker.go | 14 +++++------ 315 files changed, 1135 insertions(+), 1135 deletions(-) diff --git a/Makefile b/Makefile index 1a4280b099e..55d239c21db 100644 --- a/Makefile +++ b/Makefile @@ -3,7 +3,7 @@ DOCKER_IMAGE := miniflux/miniflux VERSION := $(shell git describe --tags --abbrev=0) COMMIT := $(shell git rev-parse --short HEAD) BUILD_DATE := `date +%FT%T%z` -LD_FLAGS := "-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.Commit=$(COMMIT)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" +LD_FLAGS := "-s -w -X 'miniflux.app/v2/version.Version=$(VERSION)' -X 'miniflux.app/v2/version.Commit=$(COMMIT)' -X 'miniflux.app/v2/version.BuildDate=$(BUILD_DATE)'" PKG_LIST := $(shell go list ./... | grep -v /vendor/) DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable DEB_IMG_ARCH := amd64 @@ -122,7 +122,7 @@ integration-test: ./miniflux-test >/tmp/miniflux.log 2>&1 & echo "$$!" > "/tmp/miniflux.pid" while ! nc -z localhost 8080; do sleep 1; done - go test -v -tags=integration -count=1 miniflux.app/tests + go test -v -tags=integration -count=1 miniflux.app/v2/tests clean-integration-test: @ kill -9 `cat /tmp/miniflux.pid` diff --git a/api/api.go b/api/api.go index 54fa0ad5354..ed1f17c6f32 100644 --- a/api/api.go +++ b/api/api.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( "net/http" - "miniflux.app/storage" - "miniflux.app/worker" + "miniflux.app/v2/storage" + "miniflux.app/v2/worker" "github.com/gorilla/mux" ) diff --git a/api/category.go b/api/category.go index f35b0295abe..381aef1e0e3 100644 --- a/api/category.go +++ b/api/category.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( json_parser "encoding/json" "net/http" "time" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/model" - "miniflux.app/validator" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/model" + "miniflux.app/v2/validator" ) func (h *handler) createCategory(w http.ResponseWriter, r *http.Request) { diff --git a/api/entry.go b/api/entry.go index 820a5306f8f..f6c3724265a 100644 --- a/api/entry.go +++ b/api/entry.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( json_parser "encoding/json" @@ -11,16 +11,16 @@ import ( "strings" "time" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/integration" - "miniflux.app/model" - "miniflux.app/proxy" - "miniflux.app/reader/processor" - "miniflux.app/storage" - "miniflux.app/url" - "miniflux.app/validator" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/integration" + "miniflux.app/v2/model" + "miniflux.app/v2/proxy" + "miniflux.app/v2/reader/processor" + "miniflux.app/v2/storage" + "miniflux.app/v2/url" + "miniflux.app/v2/validator" ) func (h *handler) getEntryFromBuilder(w http.ResponseWriter, r *http.Request, b *storage.EntryQueryBuilder) { diff --git a/api/feed.go b/api/feed.go index 12cbf9197c1..d89b3ecd691 100644 --- a/api/feed.go +++ b/api/feed.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( json_parser "encoding/json" "net/http" "time" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/model" - feedHandler "miniflux.app/reader/handler" - "miniflux.app/validator" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/model" + feedHandler "miniflux.app/v2/reader/handler" + "miniflux.app/v2/validator" ) func (h *handler) createFeed(w http.ResponseWriter, r *http.Request) { diff --git a/api/icon.go b/api/icon.go index 6dc19dff72f..866386c91c1 100644 --- a/api/icon.go +++ b/api/icon.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" ) func (h *handler) feedIcon(w http.ResponseWriter, r *http.Request) { diff --git a/api/middleware.go b/api/middleware.go index da7b46525f5..44bf12aebf5 100644 --- a/api/middleware.go +++ b/api/middleware.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( "context" "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/logger" - "miniflux.app/storage" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/logger" + "miniflux.app/v2/storage" ) type middleware struct { diff --git a/api/opml.go b/api/opml.go index bc269286cf9..db00e7faf77 100644 --- a/api/opml.go +++ b/api/opml.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/http/response/xml" - "miniflux.app/reader/opml" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/http/response/xml" + "miniflux.app/v2/reader/opml" ) func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) { diff --git a/api/payload.go b/api/payload.go index 1bd8505d543..2df91bf4ff6 100644 --- a/api/payload.go +++ b/api/payload.go @@ -1,10 +1,10 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( - "miniflux.app/model" + "miniflux.app/v2/model" ) type feedIconResponse struct { diff --git a/api/subscription.go b/api/subscription.go index 5f7be9164dd..a6148e954c0 100644 --- a/api/subscription.go +++ b/api/subscription.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( json_parser "encoding/json" "net/http" - "miniflux.app/http/response/json" - "miniflux.app/model" - "miniflux.app/reader/subscription" - "miniflux.app/validator" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/subscription" + "miniflux.app/v2/validator" ) func (h *handler) discoverSubscriptions(w http.ResponseWriter, r *http.Request) { diff --git a/api/user.go b/api/user.go index b985d1e9acd..4d6b31fb673 100644 --- a/api/user.go +++ b/api/user.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package api // import "miniflux.app/api" +package api // import "miniflux.app/v2/api" import ( json_parser "encoding/json" "errors" "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/model" - "miniflux.app/validator" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/model" + "miniflux.app/v2/validator" ) func (h *handler) currentUser(w http.ResponseWriter, r *http.Request) { diff --git a/cli/ask_credentials.go b/cli/ask_credentials.go index d8aa0de5e29..3751cb9c0b3 100644 --- a/cli/ask_credentials.go +++ b/cli/ask_credentials.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "bufio" diff --git a/cli/cleanup_tasks.go b/cli/cleanup_tasks.go index fba722b94ec..d078030bfe6 100644 --- a/cli/cleanup_tasks.go +++ b/cli/cleanup_tasks.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "time" - "miniflux.app/config" - "miniflux.app/logger" - "miniflux.app/metric" - "miniflux.app/model" - "miniflux.app/storage" + "miniflux.app/v2/config" + "miniflux.app/v2/logger" + "miniflux.app/v2/metric" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" ) func runCleanupTasks(store *storage.Storage) { diff --git a/cli/cli.go b/cli/cli.go index c7be42abce6..5d666d69191 100644 --- a/cli/cli.go +++ b/cli/cli.go @@ -1,19 +1,19 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "flag" "fmt" - "miniflux.app/config" - "miniflux.app/database" - "miniflux.app/locale" - "miniflux.app/logger" - "miniflux.app/storage" - "miniflux.app/ui/static" - "miniflux.app/version" + "miniflux.app/v2/config" + "miniflux.app/v2/database" + "miniflux.app/v2/locale" + "miniflux.app/v2/logger" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/static" + "miniflux.app/v2/version" ) const ( diff --git a/cli/create_admin.go b/cli/create_admin.go index 8070e646b06..fd93da2d2cd 100644 --- a/cli/create_admin.go +++ b/cli/create_admin.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "fmt" "os" - "miniflux.app/config" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/storage" - "miniflux.app/validator" + "miniflux.app/v2/config" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/validator" ) func createAdmin(store *storage.Storage) { diff --git a/cli/daemon.go b/cli/daemon.go index dcea6e56aa1..0e3c2a0d70f 100644 --- a/cli/daemon.go +++ b/cli/daemon.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "context" @@ -11,13 +11,13 @@ import ( "syscall" "time" - "miniflux.app/config" - httpd "miniflux.app/http/server" - "miniflux.app/logger" - "miniflux.app/metric" - "miniflux.app/storage" - "miniflux.app/systemd" - "miniflux.app/worker" + "miniflux.app/v2/config" + httpd "miniflux.app/v2/http/server" + "miniflux.app/v2/logger" + "miniflux.app/v2/metric" + "miniflux.app/v2/storage" + "miniflux.app/v2/systemd" + "miniflux.app/v2/worker" ) func startDaemon(store *storage.Storage) { diff --git a/cli/flush_sessions.go b/cli/flush_sessions.go index 0d02d1bcd0f..7472094bc46 100644 --- a/cli/flush_sessions.go +++ b/cli/flush_sessions.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "fmt" "os" - "miniflux.app/storage" + "miniflux.app/v2/storage" ) func flushSessions(store *storage.Storage) { diff --git a/cli/health_check.go b/cli/health_check.go index b04135b1e07..0a727a0a714 100644 --- a/cli/health_check.go +++ b/cli/health_check.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "net/http" "time" - "miniflux.app/config" - "miniflux.app/logger" + "miniflux.app/v2/config" + "miniflux.app/v2/logger" ) func doHealthCheck(healthCheckEndpoint string) { diff --git a/cli/info.go b/cli/info.go index 182d2587bf9..3cb26599a63 100644 --- a/cli/info.go +++ b/cli/info.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "fmt" "runtime" - "miniflux.app/version" + "miniflux.app/v2/version" ) func info() { diff --git a/cli/refresh_feeds.go b/cli/refresh_feeds.go index 63ef9efbe94..beaca17c826 100644 --- a/cli/refresh_feeds.go +++ b/cli/refresh_feeds.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "sync" "time" - "miniflux.app/config" - "miniflux.app/logger" - "miniflux.app/model" - feedHandler "miniflux.app/reader/handler" - "miniflux.app/storage" + "miniflux.app/v2/config" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + feedHandler "miniflux.app/v2/reader/handler" + "miniflux.app/v2/storage" ) func refreshFeeds(store *storage.Storage) { diff --git a/cli/reset_password.go b/cli/reset_password.go index 3fb634cf84a..dc266e366d5 100644 --- a/cli/reset_password.go +++ b/cli/reset_password.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "fmt" "os" - "miniflux.app/model" - "miniflux.app/storage" - "miniflux.app/validator" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/validator" ) func resetPassword(store *storage.Storage) { diff --git a/cli/scheduler.go b/cli/scheduler.go index 839d7f54e7f..5046ab2f6c8 100644 --- a/cli/scheduler.go +++ b/cli/scheduler.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cli // import "miniflux.app/cli" +package cli // import "miniflux.app/v2/cli" import ( "time" - "miniflux.app/config" - "miniflux.app/logger" - "miniflux.app/storage" - "miniflux.app/worker" + "miniflux.app/v2/config" + "miniflux.app/v2/logger" + "miniflux.app/v2/storage" + "miniflux.app/v2/worker" ) func runScheduler(store *storage.Storage, pool *worker.Pool) { diff --git a/client/README.md b/client/README.md index aa58e8d730d..8076440728f 100644 --- a/client/README.md +++ b/client/README.md @@ -22,7 +22,7 @@ import ( "fmt" "os" - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) func main() { diff --git a/client/client.go b/client/client.go index 892fa5fd26a..18964459dec 100644 --- a/client/client.go +++ b/client/client.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package client // import "miniflux.app/client" +package client // import "miniflux.app/v2/client" import ( "encoding/json" diff --git a/client/doc.go b/client/doc.go index b44495a1bbd..c395793bd65 100644 --- a/client/doc.go +++ b/client/doc.go @@ -9,7 +9,7 @@ Package client implements a client library for the Miniflux REST API. This code snippet fetch the list of users: import ( - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) client := miniflux.New("https://api.example.org", "admin", "secret") @@ -29,4 +29,4 @@ This one discover subscriptions on a website: } fmt.Println(subscriptions) */ -package client // import "miniflux.app/client" +package client // import "miniflux.app/v2/client" diff --git a/client/model.go b/client/model.go index 6d1209ba774..8a9ae17f48c 100644 --- a/client/model.go +++ b/client/model.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package client // import "miniflux.app/client" +package client // import "miniflux.app/v2/client" import ( "fmt" diff --git a/client/request.go b/client/request.go index f409f979eba..1c91316e969 100644 --- a/client/request.go +++ b/client/request.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package client // import "miniflux.app/client" +package client // import "miniflux.app/v2/client" import ( "bytes" diff --git a/config/config.go b/config/config.go index fa999b7d198..17ef8fe3995 100644 --- a/config/config.go +++ b/config/config.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package config // import "miniflux.app/config" +package config // import "miniflux.app/v2/config" // Opts holds parsed configuration options. var Opts *Options diff --git a/config/config_test.go b/config/config_test.go index 2e1ae401831..5ab1cb22acf 100644 --- a/config/config_test.go +++ b/config/config_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package config // import "miniflux.app/config" +package config // import "miniflux.app/v2/config" import ( "os" diff --git a/config/options.go b/config/options.go index 7147a7549c7..d95e85bc371 100644 --- a/config/options.go +++ b/config/options.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package config // import "miniflux.app/config" +package config // import "miniflux.app/v2/config" import ( "crypto/rand" @@ -10,7 +10,7 @@ import ( "strings" "time" - "miniflux.app/version" + "miniflux.app/v2/version" ) const ( diff --git a/config/parser.go b/config/parser.go index 41d81d3ccaa..89165b6c469 100644 --- a/config/parser.go +++ b/config/parser.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package config // import "miniflux.app/config" +package config // import "miniflux.app/v2/config" import ( "bufio" diff --git a/config/parser_test.go b/config/parser_test.go index 8b080cb17ab..c9be769fb02 100644 --- a/config/parser_test.go +++ b/config/parser_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package config // import "miniflux.app/config" +package config // import "miniflux.app/v2/config" import ( "testing" diff --git a/crypto/crypto.go b/crypto/crypto.go index 684c2197474..a73a1c1e51d 100644 --- a/crypto/crypto.go +++ b/crypto/crypto.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package crypto // import "miniflux.app/crypto" +package crypto // import "miniflux.app/v2/crypto" import ( "crypto/rand" diff --git a/database/database.go b/database/database.go index 274f128c807..d32bd60933b 100644 --- a/database/database.go +++ b/database/database.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package database // import "miniflux.app/database" +package database // import "miniflux.app/v2/database" import ( "database/sql" diff --git a/database/migrations.go b/database/migrations.go index 2bc806c7657..1959573723d 100644 --- a/database/migrations.go +++ b/database/migrations.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package database // import "miniflux.app/database" +package database // import "miniflux.app/v2/database" import ( "database/sql" diff --git a/errors/errors.go b/errors/errors.go index 7abdae7381e..bb0e04dff26 100644 --- a/errors/errors.go +++ b/errors/errors.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package errors // import "miniflux.app/errors" +package errors // import "miniflux.app/v2/errors" import ( "fmt" - "miniflux.app/locale" + "miniflux.app/v2/locale" ) // LocalizedError represents an error than could be translated to another language. diff --git a/fever/handler.go b/fever/handler.go index c7c576b3529..5f9544893f2 100644 --- a/fever/handler.go +++ b/fever/handler.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package fever // import "miniflux.app/fever" +package fever // import "miniflux.app/v2/fever" import ( "net/http" @@ -9,13 +9,13 @@ import ( "strings" "time" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/integration" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/proxy" - "miniflux.app/storage" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/integration" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/proxy" + "miniflux.app/v2/storage" "github.com/gorilla/mux" ) diff --git a/fever/middleware.go b/fever/middleware.go index 0f8f8482a83..8283a9bc5a0 100644 --- a/fever/middleware.go +++ b/fever/middleware.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package fever // import "miniflux.app/fever" +package fever // import "miniflux.app/v2/fever" import ( "context" "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/logger" - "miniflux.app/storage" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/logger" + "miniflux.app/v2/storage" ) type middleware struct { diff --git a/fever/response.go b/fever/response.go index 6c8346d7360..f5d47eff1bc 100644 --- a/fever/response.go +++ b/fever/response.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package fever // import "miniflux.app/fever" +package fever // import "miniflux.app/v2/fever" import ( "time" diff --git a/go.mod b/go.mod index af910f3775e..17d458f0eb8 100644 --- a/go.mod +++ b/go.mod @@ -1,4 +1,4 @@ -module miniflux.app +module miniflux.app/v2 // +heroku goVersion go1.21 diff --git a/googlereader/handler.go b/googlereader/handler.go index 4981501251f..6648c664d36 100644 --- a/googlereader/handler.go +++ b/googlereader/handler.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package googlereader // import "miniflux.app/googlereader" +package googlereader // import "miniflux.app/v2/googlereader" import ( "errors" @@ -13,19 +13,19 @@ import ( "time" "github.com/gorilla/mux" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/http/route" - "miniflux.app/integration" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/proxy" - mff "miniflux.app/reader/handler" - mfs "miniflux.app/reader/subscription" - "miniflux.app/storage" - "miniflux.app/url" - "miniflux.app/validator" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/http/route" + "miniflux.app/v2/integration" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/proxy" + mff "miniflux.app/v2/reader/handler" + mfs "miniflux.app/v2/reader/subscription" + "miniflux.app/v2/storage" + "miniflux.app/v2/url" + "miniflux.app/v2/validator" ) type handler struct { diff --git a/googlereader/middleware.go b/googlereader/middleware.go index d999582e585..770e1cc1bd1 100644 --- a/googlereader/middleware.go +++ b/googlereader/middleware.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package googlereader // import "miniflux.app/googlereader" +package googlereader // import "miniflux.app/v2/googlereader" import ( "context" @@ -11,12 +11,12 @@ import ( "net/http" "strings" - "miniflux.app/http/request" - "miniflux.app/http/response" - "miniflux.app/http/response/json" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/storage" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" ) type middleware struct { diff --git a/googlereader/response.go b/googlereader/response.go index 6ea96a584c5..f8cfc7a740d 100644 --- a/googlereader/response.go +++ b/googlereader/response.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package googlereader // import "miniflux.app/googlereader" +package googlereader // import "miniflux.app/v2/googlereader" import ( "fmt" "net/http" - "miniflux.app/http/response" - "miniflux.app/logger" + "miniflux.app/v2/http/response" + "miniflux.app/v2/logger" ) type login struct { diff --git a/http/client/client.go b/http/client/client.go index 46388998118..955c8388cad 100644 --- a/http/client/client.go +++ b/http/client/client.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package client // import "miniflux.app/http/client" +package client // import "miniflux.app/v2/http/client" import ( "bytes" @@ -16,10 +16,10 @@ import ( "strings" "time" - "miniflux.app/config" - "miniflux.app/errors" - "miniflux.app/logger" - "miniflux.app/timer" + "miniflux.app/v2/config" + "miniflux.app/v2/errors" + "miniflux.app/v2/logger" + "miniflux.app/v2/timer" ) const ( diff --git a/http/client/client_test.go b/http/client/client_test.go index 2a5a4db4e68..9ea723619c1 100644 --- a/http/client/client_test.go +++ b/http/client/client_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package client // import "miniflux.app/http/client" +package client // import "miniflux.app/v2/http/client" import ( "fmt" diff --git a/http/client/response.go b/http/client/response.go index 5f25eaf1971..c7a09bf58d4 100644 --- a/http/client/response.go +++ b/http/client/response.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package client // import "miniflux.app/http/client" +package client // import "miniflux.app/v2/http/client" import ( "bytes" diff --git a/http/client/response_test.go b/http/client/response_test.go index 42aa2ec025d..133c8c0563a 100644 --- a/http/client/response_test.go +++ b/http/client/response_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package client // import "miniflux.app/http/client" +package client // import "miniflux.app/v2/http/client" import ( "bytes" diff --git a/http/cookie/cookie.go b/http/cookie/cookie.go index 37688b55b16..0bf46731f72 100644 --- a/http/cookie/cookie.go +++ b/http/cookie/cookie.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package cookie // import "miniflux.app/http/cookie" +package cookie // import "miniflux.app/v2/http/cookie" import ( "net/http" diff --git a/http/request/client_ip.go b/http/request/client_ip.go index 32952b672c5..a76b0e2e719 100644 --- a/http/request/client_ip.go +++ b/http/request/client_ip.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package request // import "miniflux.app/http/request" +package request // import "miniflux.app/v2/http/request" import ( "net" diff --git a/http/request/client_ip_test.go b/http/request/client_ip_test.go index 5a76fd6b8c1..d9fb4e75f61 100644 --- a/http/request/client_ip_test.go +++ b/http/request/client_ip_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package request // import "miniflux.app/http/request" +package request // import "miniflux.app/v2/http/request" import ( "net/http" diff --git a/http/request/context.go b/http/request/context.go index 3fdaf79803d..31639b3e59e 100644 --- a/http/request/context.go +++ b/http/request/context.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package request // import "miniflux.app/http/request" +package request // import "miniflux.app/v2/http/request" import "net/http" diff --git a/http/request/context_test.go b/http/request/context_test.go index 6f3858fbaea..d6026d54459 100644 --- a/http/request/context_test.go +++ b/http/request/context_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package request // import "miniflux.app/http/request" +package request // import "miniflux.app/v2/http/request" import ( "context" diff --git a/http/request/cookie.go b/http/request/cookie.go index dddf1aeddbd..fdc65c3aa0e 100644 --- a/http/request/cookie.go +++ b/http/request/cookie.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package request // import "miniflux.app/http/request" +package request // import "miniflux.app/v2/http/request" import "net/http" diff --git a/http/request/cookie_test.go b/http/request/cookie_test.go index ec8f1a8aacb..f00a4b37032 100644 --- a/http/request/cookie_test.go +++ b/http/request/cookie_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package request // import "miniflux.app/http/request" +package request // import "miniflux.app/v2/http/request" import ( "net/http" diff --git a/http/request/params.go b/http/request/params.go index cd0eff387e9..d6c8bf3df7b 100644 --- a/http/request/params.go +++ b/http/request/params.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package request // import "miniflux.app/http/request" +package request // import "miniflux.app/v2/http/request" import ( "net/http" diff --git a/http/request/params_test.go b/http/request/params_test.go index 852959afece..7804f055301 100644 --- a/http/request/params_test.go +++ b/http/request/params_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package request // import "miniflux.app/http/request" +package request // import "miniflux.app/v2/http/request" import ( "net/http" diff --git a/http/response/builder.go b/http/response/builder.go index 33c144b546e..b8fcbd462fc 100644 --- a/http/response/builder.go +++ b/http/response/builder.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package response // import "miniflux.app/http/response" +package response // import "miniflux.app/v2/http/response" import ( "compress/flate" @@ -12,7 +12,7 @@ import ( "strings" "time" - "miniflux.app/logger" + "miniflux.app/v2/logger" ) const compressionThreshold = 1024 diff --git a/http/response/builder_test.go b/http/response/builder_test.go index 069eba78373..864fbb9f4c9 100644 --- a/http/response/builder_test.go +++ b/http/response/builder_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package response // import "miniflux.app/http/response" +package response // import "miniflux.app/v2/http/response" import ( "errors" diff --git a/http/response/html/html.go b/http/response/html/html.go index 29d00592a75..7a2391d330a 100644 --- a/http/response/html/html.go +++ b/http/response/html/html.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package html // import "miniflux.app/http/response/html" +package html // import "miniflux.app/v2/http/response/html" import ( "net/http" - "miniflux.app/http/response" - "miniflux.app/logger" + "miniflux.app/v2/http/response" + "miniflux.app/v2/logger" ) // OK creates a new HTML response with a 200 status code. diff --git a/http/response/html/html_test.go b/http/response/html/html_test.go index 433e1691db7..3d990617d72 100644 --- a/http/response/html/html_test.go +++ b/http/response/html/html_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package html // import "miniflux.app/http/response/html" +package html // import "miniflux.app/v2/http/response/html" import ( "errors" diff --git a/http/response/json/json.go b/http/response/json/json.go index 17eca55a2f4..f0f88033602 100644 --- a/http/response/json/json.go +++ b/http/response/json/json.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package json // import "miniflux.app/http/response/json" +package json // import "miniflux.app/v2/http/response/json" import ( "encoding/json" "errors" "net/http" - "miniflux.app/http/response" - "miniflux.app/logger" + "miniflux.app/v2/http/response" + "miniflux.app/v2/logger" ) const contentTypeHeader = `application/json` diff --git a/http/response/json/json_test.go b/http/response/json/json_test.go index 43f727133b3..93a477c8539 100644 --- a/http/response/json/json_test.go +++ b/http/response/json/json_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package json // import "miniflux.app/http/response/json" +package json // import "miniflux.app/v2/http/response/json" import ( "errors" diff --git a/http/response/xml/xml.go b/http/response/xml/xml.go index de26ad668f3..3bfd5723b48 100644 --- a/http/response/xml/xml.go +++ b/http/response/xml/xml.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package xml // import "miniflux.app/http/response/xml" +package xml // import "miniflux.app/v2/http/response/xml" import ( "net/http" - "miniflux.app/http/response" + "miniflux.app/v2/http/response" ) // OK writes a standard XML response with a status 200 OK. diff --git a/http/response/xml/xml_test.go b/http/response/xml/xml_test.go index 638e14d44a4..e490f19e398 100644 --- a/http/response/xml/xml_test.go +++ b/http/response/xml/xml_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package xml // import "miniflux.app/http/response/xml" +package xml // import "miniflux.app/v2/http/response/xml" import ( "net/http" diff --git a/http/route/route.go b/http/route/route.go index 4cee659e075..4e3b615d36b 100644 --- a/http/route/route.go +++ b/http/route/route.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package route // import "miniflux.app/http/route" +package route // import "miniflux.app/v2/http/route" import ( "strconv" "github.com/gorilla/mux" - "miniflux.app/logger" + "miniflux.app/v2/logger" ) // Path returns the defined route based on given arguments. diff --git a/http/server/httpd.go b/http/server/httpd.go index ace2eb0d9e1..156fb0be0bb 100644 --- a/http/server/httpd.go +++ b/http/server/httpd.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package httpd // import "miniflux.app/http/server" +package httpd // import "miniflux.app/v2/http/server" import ( "crypto/tls" @@ -12,16 +12,16 @@ import ( "strings" "time" - "miniflux.app/api" - "miniflux.app/config" - "miniflux.app/fever" - "miniflux.app/googlereader" - "miniflux.app/http/request" - "miniflux.app/logger" - "miniflux.app/storage" - "miniflux.app/ui" - "miniflux.app/version" - "miniflux.app/worker" + "miniflux.app/v2/api" + "miniflux.app/v2/config" + "miniflux.app/v2/fever" + "miniflux.app/v2/googlereader" + "miniflux.app/v2/http/request" + "miniflux.app/v2/logger" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui" + "miniflux.app/v2/version" + "miniflux.app/v2/worker" "github.com/gorilla/mux" "github.com/prometheus/client_golang/prometheus/promhttp" diff --git a/http/server/middleware.go b/http/server/middleware.go index 3c4a7c5cff9..470712c4aac 100644 --- a/http/server/middleware.go +++ b/http/server/middleware.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package httpd // import "miniflux.app/http/server" +package httpd // import "miniflux.app/v2/http/server" import ( "context" "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/logger" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/logger" ) func middleware(next http.Handler) http.Handler { diff --git a/integration/apprise/apprise.go b/integration/apprise/apprise.go index 62cfc941ee0..348b0d332cd 100644 --- a/integration/apprise/apprise.go +++ b/integration/apprise/apprise.go @@ -9,8 +9,8 @@ import ( "strings" "time" - "miniflux.app/http/client" - "miniflux.app/model" + "miniflux.app/v2/http/client" + "miniflux.app/v2/model" ) // Client represents a Apprise client. diff --git a/integration/espial/espial.go b/integration/espial/espial.go index c276774f3de..7532a64b38e 100644 --- a/integration/espial/espial.go +++ b/integration/espial/espial.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package espial // import "miniflux.app/integration/espial" +package espial // import "miniflux.app/v2/integration/espial" import ( "fmt" "net/url" "path" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Document structure of an Espial document diff --git a/integration/instapaper/instapaper.go b/integration/instapaper/instapaper.go index 2f24a81355e..8d07338368d 100644 --- a/integration/instapaper/instapaper.go +++ b/integration/instapaper/instapaper.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package instapaper // import "miniflux.app/integration/instapaper" +package instapaper // import "miniflux.app/v2/integration/instapaper" import ( "fmt" "net/url" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Client represents an Instapaper client. diff --git a/integration/integration.go b/integration/integration.go index 7e53531396a..c03b63a9b19 100644 --- a/integration/integration.go +++ b/integration/integration.go @@ -1,24 +1,24 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package integration // import "miniflux.app/integration" +package integration // import "miniflux.app/v2/integration" import ( - "miniflux.app/config" - "miniflux.app/integration/apprise" - "miniflux.app/integration/espial" - "miniflux.app/integration/instapaper" - "miniflux.app/integration/linkding" - "miniflux.app/integration/matrixbot" - "miniflux.app/integration/notion" - "miniflux.app/integration/nunuxkeeper" - "miniflux.app/integration/pinboard" - "miniflux.app/integration/pocket" - "miniflux.app/integration/readwise" - "miniflux.app/integration/telegrambot" - "miniflux.app/integration/wallabag" - "miniflux.app/logger" - "miniflux.app/model" + "miniflux.app/v2/config" + "miniflux.app/v2/integration/apprise" + "miniflux.app/v2/integration/espial" + "miniflux.app/v2/integration/instapaper" + "miniflux.app/v2/integration/linkding" + "miniflux.app/v2/integration/matrixbot" + "miniflux.app/v2/integration/notion" + "miniflux.app/v2/integration/nunuxkeeper" + "miniflux.app/v2/integration/pinboard" + "miniflux.app/v2/integration/pocket" + "miniflux.app/v2/integration/readwise" + "miniflux.app/v2/integration/telegrambot" + "miniflux.app/v2/integration/wallabag" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" ) // SendEntry sends the entry to third-party providers when the user click on "Save". diff --git a/integration/linkding/linkding.go b/integration/linkding/linkding.go index 8c506bdbb28..0b92199573b 100644 --- a/integration/linkding/linkding.go +++ b/integration/linkding/linkding.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package linkding // import "miniflux.app/integration/linkding" +package linkding // import "miniflux.app/v2/integration/linkding" import ( "fmt" "net/url" "strings" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Document structure of a Linkding document diff --git a/integration/matrixbot/matrixbot.go b/integration/matrixbot/matrixbot.go index b9aab38c7aa..b68588c15c9 100644 --- a/integration/matrixbot/matrixbot.go +++ b/integration/matrixbot/matrixbot.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package matrixbot // import "miniflux.app/integration/matrixbot" +package matrixbot // import "miniflux.app/v2/integration/matrixbot" import ( "fmt" - "miniflux.app/logger" - "miniflux.app/model" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" "github.com/matrix-org/gomatrix" ) diff --git a/integration/notion/notion.go b/integration/notion/notion.go index 16f29dc3535..b3df63eecd3 100644 --- a/integration/notion/notion.go +++ b/integration/notion/notion.go @@ -6,7 +6,7 @@ package notion import ( "fmt" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Client represents a Notion client. diff --git a/integration/nunuxkeeper/nunuxkeeper.go b/integration/nunuxkeeper/nunuxkeeper.go index 217cb371c0a..32cad60531b 100644 --- a/integration/nunuxkeeper/nunuxkeeper.go +++ b/integration/nunuxkeeper/nunuxkeeper.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package nunuxkeeper // import "miniflux.app/integration/nunuxkeeper" +package nunuxkeeper // import "miniflux.app/v2/integration/nunuxkeeper" import ( "fmt" "net/url" "path" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Document structure of a Nununx Keeper document diff --git a/integration/pinboard/pinboard.go b/integration/pinboard/pinboard.go index 5a56ef202eb..ca5727d670f 100644 --- a/integration/pinboard/pinboard.go +++ b/integration/pinboard/pinboard.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package pinboard // import "miniflux.app/integration/pinboard" +package pinboard // import "miniflux.app/v2/integration/pinboard" import ( "fmt" "net/url" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Client represents a Pinboard client. diff --git a/integration/pocket/connector.go b/integration/pocket/connector.go index 3df818d45c4..2a51d1e502b 100644 --- a/integration/pocket/connector.go +++ b/integration/pocket/connector.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package pocket // import "miniflux.app/integration/pocket" +package pocket // import "miniflux.app/v2/integration/pocket" import ( "errors" @@ -9,7 +9,7 @@ import ( "io" "net/url" - "miniflux.app/http/client" + "miniflux.app/v2/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 6d46ccfc9db..aca3ca55934 100644 --- a/integration/pocket/pocket.go +++ b/integration/pocket/pocket.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package pocket // import "miniflux.app/integration/pocket" +package pocket // import "miniflux.app/v2/integration/pocket" import ( "fmt" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Client represents a Pocket client. diff --git a/integration/readwise/readwise.go b/integration/readwise/readwise.go index 538db68f151..0025cba4008 100644 --- a/integration/readwise/readwise.go +++ b/integration/readwise/readwise.go @@ -3,13 +3,13 @@ // Readwise Reader API documentation: https://readwise.io/reader_api -package readwise // import "miniflux.app/integration/readwise" +package readwise // import "miniflux.app/v2/integration/readwise" import ( "fmt" "net/url" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Document structure of a Readwise Reader document diff --git a/integration/telegrambot/telegrambot.go b/integration/telegrambot/telegrambot.go index b7dbbcdcf70..e7e74bde2f0 100644 --- a/integration/telegrambot/telegrambot.go +++ b/integration/telegrambot/telegrambot.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package telegrambot // import "miniflux.app/integration/telegrambot" +package telegrambot // import "miniflux.app/v2/integration/telegrambot" import ( "bytes" @@ -10,7 +10,7 @@ import ( "strconv" tgbotapi "github.com/go-telegram-bot-api/telegram-bot-api" - "miniflux.app/model" + "miniflux.app/v2/model" ) // PushEntry pushes entry to telegram chat using integration settings provided diff --git a/integration/wallabag/wallabag.go b/integration/wallabag/wallabag.go index 5eb5fe8a48d..27f92742c66 100644 --- a/integration/wallabag/wallabag.go +++ b/integration/wallabag/wallabag.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package wallabag // import "miniflux.app/integration/wallabag" +package wallabag // import "miniflux.app/v2/integration/wallabag" import ( "encoding/json" @@ -9,7 +9,7 @@ import ( "io" "net/url" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) // Client represents a Wallabag client. diff --git a/locale/catalog.go b/locale/catalog.go index 71053c413d3..0aa8235918d 100644 --- a/locale/catalog.go +++ b/locale/catalog.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package locale // import "miniflux.app/locale" +package locale // import "miniflux.app/v2/locale" import ( "embed" diff --git a/locale/catalog_test.go b/locale/catalog_test.go index 203a9f0cd79..6a242683277 100644 --- a/locale/catalog_test.go +++ b/locale/catalog_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package locale // import "miniflux.app/locale" +package locale // import "miniflux.app/v2/locale" import "testing" diff --git a/locale/locale.go b/locale/locale.go index 8c6e4915064..3882b3219aa 100644 --- a/locale/locale.go +++ b/locale/locale.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package locale // import "miniflux.app/locale" +package locale // import "miniflux.app/v2/locale" // AvailableLanguages returns the list of available languages. func AvailableLanguages() map[string]string { diff --git a/locale/locale_test.go b/locale/locale_test.go index c69157fe555..f79bd8ea341 100644 --- a/locale/locale_test.go +++ b/locale/locale_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package locale // import "miniflux.app/locale" +package locale // import "miniflux.app/v2/locale" import "testing" diff --git a/locale/plural.go b/locale/plural.go index 37ef15802aa..b29384c17d9 100644 --- a/locale/plural.go +++ b/locale/plural.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package locale // import "miniflux.app/locale" +package locale // import "miniflux.app/v2/locale" type pluralFormFunc func(n int) int diff --git a/locale/plural_test.go b/locale/plural_test.go index 5d1d3b6124b..6f8f3799e93 100644 --- a/locale/plural_test.go +++ b/locale/plural_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package locale // import "miniflux.app/locale" +package locale // import "miniflux.app/v2/locale" import "testing" diff --git a/locale/printer.go b/locale/printer.go index 1a2812f2f74..8d58b2611ff 100644 --- a/locale/printer.go +++ b/locale/printer.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package locale // import "miniflux.app/locale" +package locale // import "miniflux.app/v2/locale" import "fmt" diff --git a/locale/printer_test.go b/locale/printer_test.go index 54510a6ab31..7595c64c1a1 100644 --- a/locale/printer_test.go +++ b/locale/printer_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package locale // import "miniflux.app/locale" +package locale // import "miniflux.app/v2/locale" import "testing" diff --git a/logger/logger.go b/logger/logger.go index 67e8ce3df8e..5a5ec0a36ab 100644 --- a/logger/logger.go +++ b/logger/logger.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package logger // import "miniflux.app/logger" +package logger // import "miniflux.app/v2/logger" import ( "fmt" diff --git a/main.go b/main.go index a3b9c6d00c1..ee233332b43 100644 --- a/main.go +++ b/main.go @@ -1,10 +1,10 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package main // import "miniflux.app" +package main // import "miniflux.app/v2" import ( - "miniflux.app/cli" + "miniflux.app/v2/cli" ) func main() { diff --git a/metric/metric.go b/metric/metric.go index 2ec519780a3..050c21e78c2 100644 --- a/metric/metric.go +++ b/metric/metric.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package metric // import "miniflux.app/metric" +package metric // import "miniflux.app/v2/metric" import ( "time" - "miniflux.app/logger" - "miniflux.app/storage" + "miniflux.app/v2/logger" + "miniflux.app/v2/storage" "github.com/prometheus/client_golang/prometheus" ) diff --git a/model/api_key.go b/model/api_key.go index 7f105a68559..e47e98381cc 100644 --- a/model/api_key.go +++ b/model/api_key.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import ( "time" - "miniflux.app/crypto" + "miniflux.app/v2/crypto" ) // APIKey represents an application API key. diff --git a/model/app_session.go b/model/app_session.go index ad4fb5dcf3c..c3349fafe53 100644 --- a/model/app_session.go +++ b/model/app_session.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import ( "database/sql/driver" diff --git a/model/categories_sort_options.go b/model/categories_sort_options.go index 0ec086bf6c7..fbd17d671e0 100644 --- a/model/categories_sort_options.go +++ b/model/categories_sort_options.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" func CategoriesSortingOptions() map[string]string { return map[string]string{ diff --git a/model/category.go b/model/category.go index ed223286ac0..b16a3def5a4 100644 --- a/model/category.go +++ b/model/category.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import "fmt" diff --git a/model/enclosure.go b/model/enclosure.go index b25657e5254..5ed0e5cd49c 100644 --- a/model/enclosure.go +++ b/model/enclosure.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import "strings" // Enclosure represents an attachment. diff --git a/model/entry.go b/model/entry.go index 3bb396b8a7f..5630875cf13 100644 --- a/model/entry.go +++ b/model/entry.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import ( "time" diff --git a/model/feed.go b/model/feed.go index 5abaa9ebe97..46d757c6eb5 100644 --- a/model/feed.go +++ b/model/feed.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import ( "fmt" "math" "time" - "miniflux.app/config" - "miniflux.app/http/client" + "miniflux.app/v2/config" + "miniflux.app/v2/http/client" ) // List of supported schedulers. diff --git a/model/feed_test.go b/model/feed_test.go index 0083c2f4dad..28474aab681 100644 --- a/model/feed_test.go +++ b/model/feed_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import ( "fmt" @@ -9,8 +9,8 @@ import ( "testing" "time" - "miniflux.app/config" - "miniflux.app/http/client" + "miniflux.app/v2/config" + "miniflux.app/v2/http/client" ) func TestFeedWithResponse(t *testing.T) { diff --git a/model/home_page.go b/model/home_page.go index 4f0737ef0f5..3ffffaa6058 100644 --- a/model/home_page.go +++ b/model/home_page.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" // HomePages returns the list of available home pages. func HomePages() map[string]string { diff --git a/model/icon.go b/model/icon.go index f039798bbd6..e05bfbf3315 100644 --- a/model/icon.go +++ b/model/icon.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import ( "encoding/base64" diff --git a/model/integration.go b/model/integration.go index 83ab8366959..8c46152bf70 100644 --- a/model/integration.go +++ b/model/integration.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" // Integration represents user integration settings. type Integration struct { diff --git a/model/job.go b/model/job.go index af303d17983..2e5df360c0d 100644 --- a/model/job.go +++ b/model/job.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" // Job represents a payload sent to the processing queue. type Job struct { diff --git a/model/model.go b/model/model.go index fa990c98b04..4470fe17193 100644 --- a/model/model.go +++ b/model/model.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" // OptionalString populates an optional string field. func OptionalString(value string) *string { diff --git a/model/subscription.go b/model/subscription.go index 281ec30dd35..b24d36bb682 100644 --- a/model/subscription.go +++ b/model/subscription.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" // SubscriptionDiscoveryRequest represents a request to discover subscriptions. type SubscriptionDiscoveryRequest struct { diff --git a/model/theme.go b/model/theme.go index 64cc3e37f2c..9381e450faa 100644 --- a/model/theme.go +++ b/model/theme.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" // Themes returns the list of available themes. func Themes() map[string]string { diff --git a/model/user.go b/model/user.go index 235827f4336..4af4a20a1aa 100644 --- a/model/user.go +++ b/model/user.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import ( "time" - "miniflux.app/timezone" + "miniflux.app/v2/timezone" ) // User represents a user in the system. diff --git a/model/user_session.go b/model/user_session.go index 6db92b0c624..9dca57e09c7 100644 --- a/model/user_session.go +++ b/model/user_session.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package model // import "miniflux.app/model" +package model // import "miniflux.app/v2/model" import ( "fmt" "time" - "miniflux.app/timezone" + "miniflux.app/v2/timezone" ) // UserSession represents a user session in the system. diff --git a/oauth2/google.go b/oauth2/google.go index ba5f33d6ec0..48e48d68f7f 100644 --- a/oauth2/google.go +++ b/oauth2/google.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package oauth2 // import "miniflux.app/oauth2" +package oauth2 // import "miniflux.app/v2/oauth2" import ( "context" "encoding/json" "fmt" - "miniflux.app/model" + "miniflux.app/v2/model" "golang.org/x/oauth2" ) diff --git a/oauth2/manager.go b/oauth2/manager.go index dd8abf9f21c..a808b97e8ce 100644 --- a/oauth2/manager.go +++ b/oauth2/manager.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package oauth2 // import "miniflux.app/oauth2" +package oauth2 // import "miniflux.app/v2/oauth2" import ( "context" "errors" - "miniflux.app/logger" + "miniflux.app/v2/logger" ) // Manager handles OAuth2 providers. diff --git a/oauth2/oidc.go b/oauth2/oidc.go index c2cbb4ef444..f4a358ac254 100644 --- a/oauth2/oidc.go +++ b/oauth2/oidc.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package oauth2 // import "miniflux.app/oauth2" +package oauth2 // import "miniflux.app/v2/oauth2" import ( "context" - "miniflux.app/model" + "miniflux.app/v2/model" "github.com/coreos/go-oidc/v3/oidc" "golang.org/x/oauth2" diff --git a/oauth2/profile.go b/oauth2/profile.go index 4a9e6135d03..92c8382f742 100644 --- a/oauth2/profile.go +++ b/oauth2/profile.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package oauth2 // import "miniflux.app/oauth2" +package oauth2 // import "miniflux.app/v2/oauth2" import ( "fmt" diff --git a/oauth2/provider.go b/oauth2/provider.go index 41de891637f..f96b4a191d2 100644 --- a/oauth2/provider.go +++ b/oauth2/provider.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package oauth2 // import "miniflux.app/oauth2" +package oauth2 // import "miniflux.app/v2/oauth2" import ( "context" - "miniflux.app/model" + "miniflux.app/v2/model" ) // Provider is an interface for OAuth2 providers. diff --git a/packaging/docker/alpine/Dockerfile b/packaging/docker/alpine/Dockerfile index a8727624c57..c56e6f3cd16 100644 --- a/packaging/docker/alpine/Dockerfile +++ b/packaging/docker/alpine/Dockerfile @@ -5,7 +5,7 @@ ADD . /go/src/app WORKDIR /go/src/app RUN go build \ -o miniflux \ - -ldflags="-s -w -X 'miniflux.app/version.Version=`git describe --tags --abbrev=0`' -X 'miniflux.app/version.Commit=`git rev-parse --short HEAD`' -X 'miniflux.app/version.BuildDate=`date +%FT%T%z`'" \ + -ldflags="-s -w -X 'miniflux.app/v2/version.Version=`git describe --tags --abbrev=0`' -X 'miniflux.app/v2/version.Commit=`git rev-parse --short HEAD`' -X 'miniflux.app/v2/version.BuildDate=`date +%FT%T%z`'" \ main.go FROM alpine:latest diff --git a/packaging/docker/distroless/Dockerfile b/packaging/docker/distroless/Dockerfile index c6c0a0efa21..46ee2db86a8 100644 --- a/packaging/docker/distroless/Dockerfile +++ b/packaging/docker/distroless/Dockerfile @@ -4,7 +4,7 @@ ADD . /go/src/app WORKDIR /go/src/app RUN go build \ -o miniflux \ - -ldflags="-s -w -X 'miniflux.app/version.Version=`git describe --tags --abbrev=0`' -X 'miniflux.app/version.Commit=`git rev-parse --short HEAD`' -X 'miniflux.app/version.BuildDate=`date +%FT%T%z`'" \ + -ldflags="-s -w -X 'miniflux.app/v2/version.Version=`git describe --tags --abbrev=0`' -X 'miniflux.app/v2/version.Commit=`git rev-parse --short HEAD`' -X 'miniflux.app/v2/version.BuildDate=`date +%FT%T%z`'" \ main.go FROM gcr.io/distroless/base diff --git a/proxy/media_proxy.go b/proxy/media_proxy.go index 1e433f2a60e..8499f331e5b 100644 --- a/proxy/media_proxy.go +++ b/proxy/media_proxy.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package proxy // import "miniflux.app/proxy" +package proxy // import "miniflux.app/v2/proxy" import ( "strings" - "miniflux.app/config" - "miniflux.app/reader/sanitizer" - "miniflux.app/url" + "miniflux.app/v2/config" + "miniflux.app/v2/reader/sanitizer" + "miniflux.app/v2/url" "github.com/PuerkitoBio/goquery" "github.com/gorilla/mux" diff --git a/proxy/media_proxy_test.go b/proxy/media_proxy_test.go index 2afd27f1fda..6a5bc38dab1 100644 --- a/proxy/media_proxy_test.go +++ b/proxy/media_proxy_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package proxy // import "miniflux.app/proxy" +package proxy // import "miniflux.app/v2/proxy" import ( "net/http" @@ -9,7 +9,7 @@ import ( "testing" "github.com/gorilla/mux" - "miniflux.app/config" + "miniflux.app/v2/config" ) func TestProxyFilterWithHttpDefault(t *testing.T) { diff --git a/proxy/proxy.go b/proxy/proxy.go index a701ecfba6d..7a95e02f492 100644 --- a/proxy/proxy.go +++ b/proxy/proxy.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package proxy // import "miniflux.app/proxy" +package proxy // import "miniflux.app/v2/proxy" import ( "crypto/hmac" @@ -10,11 +10,11 @@ import ( "net/url" "path" - "miniflux.app/http/route" + "miniflux.app/v2/http/route" "github.com/gorilla/mux" - "miniflux.app/config" + "miniflux.app/v2/config" ) // ProxifyURL generates a relative URL for a proxified resource. diff --git a/reader/atom/atom_03.go b/reader/atom/atom_03.go index 1b9ff48fdbc..6e7db39518d 100644 --- a/reader/atom/atom_03.go +++ b/reader/atom/atom_03.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package atom // import "miniflux.app/reader/atom" +package atom // import "miniflux.app/v2/reader/atom" import ( "encoding/base64" @@ -9,12 +9,12 @@ import ( "strings" "time" - "miniflux.app/crypto" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/reader/date" - "miniflux.app/reader/sanitizer" - "miniflux.app/url" + "miniflux.app/v2/crypto" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/date" + "miniflux.app/v2/reader/sanitizer" + "miniflux.app/v2/url" ) // Specs: http://web.archive.org/web/20060811235523/http://www.mnot.net/drafts/draft-nottingham-atom-format-02.html diff --git a/reader/atom/atom_03_test.go b/reader/atom/atom_03_test.go index b9cb6f493b8..88d957e60ea 100644 --- a/reader/atom/atom_03_test.go +++ b/reader/atom/atom_03_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package atom // import "miniflux.app/reader/atom" +package atom // import "miniflux.app/v2/reader/atom" import ( "bytes" diff --git a/reader/atom/atom_10.go b/reader/atom/atom_10.go index 1779d25ae26..76052a26391 100644 --- a/reader/atom/atom_10.go +++ b/reader/atom/atom_10.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package atom // import "miniflux.app/reader/atom" +package atom // import "miniflux.app/v2/reader/atom" import ( "encoding/xml" @@ -10,13 +10,13 @@ import ( "strings" "time" - "miniflux.app/crypto" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/reader/date" - "miniflux.app/reader/media" - "miniflux.app/reader/sanitizer" - "miniflux.app/url" + "miniflux.app/v2/crypto" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/date" + "miniflux.app/v2/reader/media" + "miniflux.app/v2/reader/sanitizer" + "miniflux.app/v2/url" ) // Specs: diff --git a/reader/atom/atom_10_test.go b/reader/atom/atom_10_test.go index 632fde9e6bb..194f16f0ae6 100644 --- a/reader/atom/atom_10_test.go +++ b/reader/atom/atom_10_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package atom // import "miniflux.app/reader/atom" +package atom // import "miniflux.app/v2/reader/atom" import ( "bytes" diff --git a/reader/atom/atom_common.go b/reader/atom/atom_common.go index 4b965d97909..99a1a605324 100644 --- a/reader/atom/atom_common.go +++ b/reader/atom/atom_common.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package atom // import "miniflux.app/reader/atom" +package atom // import "miniflux.app/v2/reader/atom" import "strings" diff --git a/reader/atom/parser.go b/reader/atom/parser.go index 76eaf605cf2..846c96b6f1e 100644 --- a/reader/atom/parser.go +++ b/reader/atom/parser.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package atom // import "miniflux.app/reader/atom" +package atom // import "miniflux.app/v2/reader/atom" import ( "bytes" "encoding/xml" "io" - "miniflux.app/errors" - "miniflux.app/model" - xml_decoder "miniflux.app/reader/xml" + "miniflux.app/v2/errors" + "miniflux.app/v2/model" + xml_decoder "miniflux.app/v2/reader/xml" ) type atomFeed interface { diff --git a/reader/atom/parser_test.go b/reader/atom/parser_test.go index ad3ff2abc30..2e5a7a57797 100644 --- a/reader/atom/parser_test.go +++ b/reader/atom/parser_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package atom // import "miniflux.app/reader/atom" +package atom // import "miniflux.app/v2/reader/atom" import ( "bytes" diff --git a/reader/browser/browser.go b/reader/browser/browser.go index c539bc094ee..52d3ab005cd 100644 --- a/reader/browser/browser.go +++ b/reader/browser/browser.go @@ -1,11 +1,11 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package browser // import "miniflux.app/reader/browser" +package browser // import "miniflux.app/v2/reader/browser" import ( - "miniflux.app/errors" - "miniflux.app/http/client" + "miniflux.app/v2/errors" + "miniflux.app/v2/http/client" ) var ( diff --git a/reader/date/parser.go b/reader/date/parser.go index b7169bfec54..746fd1f5fdb 100644 --- a/reader/date/parser.go +++ b/reader/date/parser.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package date // import "miniflux.app/reader/date" +package date // import "miniflux.app/v2/reader/date" import ( "errors" diff --git a/reader/date/parser_test.go b/reader/date/parser_test.go index a639e756951..bdd002749fe 100644 --- a/reader/date/parser_test.go +++ b/reader/date/parser_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package date // import "miniflux.app/reader/date" +package date // import "miniflux.app/v2/reader/date" import ( "testing" diff --git a/reader/encoding/encoding.go b/reader/encoding/encoding.go index a69ccf44ae4..deb57897547 100644 --- a/reader/encoding/encoding.go +++ b/reader/encoding/encoding.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package encoding // import "miniflux.app/reader/encoding" +package encoding // import "miniflux.app/v2/reader/encoding" import ( "bytes" diff --git a/reader/handler/handler.go b/reader/handler/handler.go index 03beee8f88a..1311886363e 100644 --- a/reader/handler/handler.go +++ b/reader/handler/handler.go @@ -1,24 +1,24 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package handler // import "miniflux.app/reader/handler" +package handler // import "miniflux.app/v2/reader/handler" import ( "fmt" "time" - "miniflux.app/config" - "miniflux.app/errors" - "miniflux.app/http/client" - "miniflux.app/locale" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/reader/browser" - "miniflux.app/reader/icon" - "miniflux.app/reader/parser" - "miniflux.app/reader/processor" - "miniflux.app/storage" - "miniflux.app/timer" + "miniflux.app/v2/config" + "miniflux.app/v2/errors" + "miniflux.app/v2/http/client" + "miniflux.app/v2/locale" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/browser" + "miniflux.app/v2/reader/icon" + "miniflux.app/v2/reader/parser" + "miniflux.app/v2/reader/processor" + "miniflux.app/v2/storage" + "miniflux.app/v2/timer" ) var ( diff --git a/reader/icon/finder.go b/reader/icon/finder.go index 02d0fe61ae5..debc60b43e1 100644 --- a/reader/icon/finder.go +++ b/reader/icon/finder.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package icon // import "miniflux.app/reader/icon" +package icon // import "miniflux.app/v2/reader/icon" import ( "encoding/base64" @@ -11,12 +11,12 @@ import ( stdlib_url "net/url" - "miniflux.app/config" - "miniflux.app/crypto" - "miniflux.app/http/client" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/url" + "miniflux.app/v2/config" + "miniflux.app/v2/crypto" + "miniflux.app/v2/http/client" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/url" "github.com/PuerkitoBio/goquery" ) diff --git a/reader/icon/finder_test.go b/reader/icon/finder_test.go index 321b2f7b8cd..90deaedc506 100644 --- a/reader/icon/finder_test.go +++ b/reader/icon/finder_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package icon // import "miniflux.app/reader/icon" +package icon // import "miniflux.app/v2/reader/icon" import ( "strings" diff --git a/reader/json/json.go b/reader/json/json.go index 0011dc23ba9..677fd45695a 100644 --- a/reader/json/json.go +++ b/reader/json/json.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package json // import "miniflux.app/reader/json" +package json // import "miniflux.app/v2/reader/json" import ( "strings" "time" - "miniflux.app/crypto" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/reader/date" - "miniflux.app/reader/sanitizer" - "miniflux.app/url" + "miniflux.app/v2/crypto" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/date" + "miniflux.app/v2/reader/sanitizer" + "miniflux.app/v2/url" ) type jsonFeed struct { diff --git a/reader/json/parser.go b/reader/json/parser.go index f7ef8331f52..c4edadc769c 100644 --- a/reader/json/parser.go +++ b/reader/json/parser.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package json // import "miniflux.app/reader/json" +package json // import "miniflux.app/v2/reader/json" import ( "encoding/json" "io" - "miniflux.app/errors" - "miniflux.app/model" + "miniflux.app/v2/errors" + "miniflux.app/v2/model" ) // Parse returns a normalized feed struct from a JSON feed. diff --git a/reader/json/parser_test.go b/reader/json/parser_test.go index 4640502c7c3..08571360d81 100644 --- a/reader/json/parser_test.go +++ b/reader/json/parser_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package json // import "miniflux.app/reader/json" +package json // import "miniflux.app/v2/reader/json" import ( "bytes" diff --git a/reader/media/media.go b/reader/media/media.go index 8a5075985e1..b3a02b8c4ed 100644 --- a/reader/media/media.go +++ b/reader/media/media.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package media // import "miniflux.app/reader/media" +package media // import "miniflux.app/v2/reader/media" import ( "regexp" diff --git a/reader/media/media_test.go b/reader/media/media_test.go index 5a1cee15efc..8345b42e20d 100644 --- a/reader/media/media_test.go +++ b/reader/media/media_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package media // import "miniflux.app/reader/media" +package media // import "miniflux.app/v2/reader/media" import "testing" diff --git a/reader/opml/handler.go b/reader/opml/handler.go index a5ad9d8eda6..8ef736c4219 100644 --- a/reader/opml/handler.go +++ b/reader/opml/handler.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package opml // import "miniflux.app/reader/opml" +package opml // import "miniflux.app/v2/reader/opml" import ( "errors" "fmt" "io" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/storage" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" ) // Handler handles the logic for OPML import/export. diff --git a/reader/opml/opml.go b/reader/opml/opml.go index d65136fe9a6..cf50563cfac 100644 --- a/reader/opml/opml.go +++ b/reader/opml/opml.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package opml // import "miniflux.app/reader/opml" +package opml // import "miniflux.app/v2/reader/opml" import ( "encoding/xml" diff --git a/reader/opml/parser.go b/reader/opml/parser.go index 7fc4255f740..84032a959b9 100644 --- a/reader/opml/parser.go +++ b/reader/opml/parser.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package opml // import "miniflux.app/reader/opml" +package opml // import "miniflux.app/v2/reader/opml" import ( "encoding/xml" "io" - "miniflux.app/errors" - "miniflux.app/reader/encoding" + "miniflux.app/v2/errors" + "miniflux.app/v2/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 04d2ff143ba..c02dd1b249b 100644 --- a/reader/opml/parser_test.go +++ b/reader/opml/parser_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package opml // import "miniflux.app/reader/opml" +package opml // import "miniflux.app/v2/reader/opml" import ( "bytes" diff --git a/reader/opml/serializer.go b/reader/opml/serializer.go index 54f72f40d7e..243e5d05db8 100644 --- a/reader/opml/serializer.go +++ b/reader/opml/serializer.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package opml // import "miniflux.app/reader/opml" +package opml // import "miniflux.app/v2/reader/opml" import ( "bufio" @@ -10,7 +10,7 @@ import ( "sort" "time" - "miniflux.app/logger" + "miniflux.app/v2/logger" ) // Serialize returns a SubcriptionList in OPML format. diff --git a/reader/opml/serializer_test.go b/reader/opml/serializer_test.go index f53fcc089f3..12d2b697549 100644 --- a/reader/opml/serializer_test.go +++ b/reader/opml/serializer_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package opml // import "miniflux.app/reader/opml" +package opml // import "miniflux.app/v2/reader/opml" import ( "bytes" diff --git a/reader/opml/subscription.go b/reader/opml/subscription.go index 5fd9e9ed8c6..3c4738490f0 100644 --- a/reader/opml/subscription.go +++ b/reader/opml/subscription.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package opml // import "miniflux.app/reader/opml" +package opml // import "miniflux.app/v2/reader/opml" // Subcription represents a feed that will be imported or exported. type Subcription struct { diff --git a/reader/parser/format.go b/reader/parser/format.go index 27cd8302f01..673f47c1cd6 100644 --- a/reader/parser/format.go +++ b/reader/parser/format.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package parser // import "miniflux.app/reader/parser" +package parser // import "miniflux.app/v2/reader/parser" import ( "encoding/xml" "strings" - rxml "miniflux.app/reader/xml" + rxml "miniflux.app/v2/reader/xml" ) // List of feed formats. diff --git a/reader/parser/format_test.go b/reader/parser/format_test.go index 7010abd3730..708374754ec 100644 --- a/reader/parser/format_test.go +++ b/reader/parser/format_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package parser // import "miniflux.app/reader/parser" +package parser // import "miniflux.app/v2/reader/parser" import ( "testing" diff --git a/reader/parser/parser.go b/reader/parser/parser.go index ea8e7eaa3e0..bedea9b59fe 100644 --- a/reader/parser/parser.go +++ b/reader/parser/parser.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package parser // import "miniflux.app/reader/parser" +package parser // import "miniflux.app/v2/reader/parser" import ( "strings" - "miniflux.app/errors" - "miniflux.app/model" - "miniflux.app/reader/atom" - "miniflux.app/reader/json" - "miniflux.app/reader/rdf" - "miniflux.app/reader/rss" + "miniflux.app/v2/errors" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/atom" + "miniflux.app/v2/reader/json" + "miniflux.app/v2/reader/rdf" + "miniflux.app/v2/reader/rss" ) // ParseFeed analyzes the input data and returns a normalized feed object. diff --git a/reader/parser/parser_test.go b/reader/parser/parser_test.go index 03b8fb2cfa9..2ec76f657ef 100644 --- a/reader/parser/parser_test.go +++ b/reader/parser/parser_test.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package parser // import "miniflux.app/reader/parser" +package parser // import "miniflux.app/v2/reader/parser" import ( "bytes" "os" "testing" - "miniflux.app/http/client" + "miniflux.app/v2/http/client" ) func TestParseAtom(t *testing.T) { diff --git a/reader/processor/processor.go b/reader/processor/processor.go index 181eaa6d789..50f40b7bd6e 100644 --- a/reader/processor/processor.go +++ b/reader/processor/processor.go @@ -13,18 +13,18 @@ import ( "time" "unicode/utf8" - "miniflux.app/integration" - - "miniflux.app/config" - "miniflux.app/http/client" - "miniflux.app/logger" - "miniflux.app/metric" - "miniflux.app/model" - "miniflux.app/reader/browser" - "miniflux.app/reader/rewrite" - "miniflux.app/reader/sanitizer" - "miniflux.app/reader/scraper" - "miniflux.app/storage" + "miniflux.app/v2/integration" + + "miniflux.app/v2/config" + "miniflux.app/v2/http/client" + "miniflux.app/v2/logger" + "miniflux.app/v2/metric" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/browser" + "miniflux.app/v2/reader/rewrite" + "miniflux.app/v2/reader/sanitizer" + "miniflux.app/v2/reader/scraper" + "miniflux.app/v2/storage" "github.com/PuerkitoBio/goquery" "github.com/rylans/getlang" diff --git a/reader/processor/processor_test.go b/reader/processor/processor_test.go index acdd674c291..5fccc8e633a 100644 --- a/reader/processor/processor_test.go +++ b/reader/processor/processor_test.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package processor // import "miniflux.app/reader/processor" +package processor // import "miniflux.app/v2/reader/processor" import ( "testing" "time" - "miniflux.app/model" + "miniflux.app/v2/model" ) func TestBlockingEntries(t *testing.T) { diff --git a/reader/rdf/dublincore.go b/reader/rdf/dublincore.go index fc0a2dfed1c..2fb4cc3ae6e 100644 --- a/reader/rdf/dublincore.go +++ b/reader/rdf/dublincore.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rdf // import "miniflux.app/reader/rdf" +package rdf // import "miniflux.app/v2/reader/rdf" // DublinCoreFeedElement represents Dublin Core feed XML elements. type DublinCoreFeedElement struct { diff --git a/reader/rdf/parser.go b/reader/rdf/parser.go index 75ec39feaea..4397601ee68 100644 --- a/reader/rdf/parser.go +++ b/reader/rdf/parser.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rdf // import "miniflux.app/reader/rdf" +package rdf // import "miniflux.app/v2/reader/rdf" import ( "io" - "miniflux.app/errors" - "miniflux.app/model" - "miniflux.app/reader/xml" + "miniflux.app/v2/errors" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/xml" ) // 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 280ddc809f9..385395a463c 100644 --- a/reader/rdf/parser_test.go +++ b/reader/rdf/parser_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rdf // import "miniflux.app/reader/rdf" +package rdf // import "miniflux.app/v2/reader/rdf" import ( "bytes" diff --git a/reader/rdf/rdf.go b/reader/rdf/rdf.go index 0d0e4606c55..60cb09e6464 100644 --- a/reader/rdf/rdf.go +++ b/reader/rdf/rdf.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rdf // import "miniflux.app/reader/rdf" +package rdf // import "miniflux.app/v2/reader/rdf" import ( "encoding/xml" @@ -9,12 +9,12 @@ import ( "strings" "time" - "miniflux.app/crypto" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/reader/date" - "miniflux.app/reader/sanitizer" - "miniflux.app/url" + "miniflux.app/v2/crypto" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/date" + "miniflux.app/v2/reader/sanitizer" + "miniflux.app/v2/url" ) type rdfFeed struct { diff --git a/reader/readability/readability.go b/reader/readability/readability.go index bf303e78679..019d24b3fc3 100644 --- a/reader/readability/readability.go +++ b/reader/readability/readability.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package readability // import "miniflux.app/reader/readability" +package readability // import "miniflux.app/v2/reader/readability" import ( "bytes" @@ -11,7 +11,7 @@ import ( "regexp" "strings" - "miniflux.app/logger" + "miniflux.app/v2/logger" "github.com/PuerkitoBio/goquery" "golang.org/x/net/html" diff --git a/reader/rewrite/rewrite_functions.go b/reader/rewrite/rewrite_functions.go index 9443230e2ba..b02acaa43f7 100644 --- a/reader/rewrite/rewrite_functions.go +++ b/reader/rewrite/rewrite_functions.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rewrite // import "miniflux.app/reader/rewrite" +package rewrite // import "miniflux.app/v2/reader/rewrite" import ( "encoding/base64" @@ -11,7 +11,7 @@ import ( "regexp" "strings" - "miniflux.app/config" + "miniflux.app/v2/config" "github.com/PuerkitoBio/goquery" "github.com/yuin/goldmark" diff --git a/reader/rewrite/rewriter.go b/reader/rewrite/rewriter.go index ae5397d1d62..943832fbdd6 100644 --- a/reader/rewrite/rewriter.go +++ b/reader/rewrite/rewriter.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rewrite // import "miniflux.app/reader/rewrite" +package rewrite // import "miniflux.app/v2/reader/rewrite" import ( "strconv" "strings" "text/scanner" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/url" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/url" ) type rule struct { diff --git a/reader/rewrite/rewriter_test.go b/reader/rewrite/rewriter_test.go index 2781a2a97c0..18b97454862 100644 --- a/reader/rewrite/rewriter_test.go +++ b/reader/rewrite/rewriter_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rewrite // import "miniflux.app/reader/rewrite" +package rewrite // import "miniflux.app/v2/reader/rewrite" import ( "os" @@ -9,8 +9,8 @@ import ( "strings" "testing" - "miniflux.app/config" - "miniflux.app/model" + "miniflux.app/v2/config" + "miniflux.app/v2/model" ) func TestParseRules(t *testing.T) { diff --git a/reader/rewrite/rules.go b/reader/rewrite/rules.go index 8d98dc5b8bc..8033d92082a 100644 --- a/reader/rewrite/rules.go +++ b/reader/rewrite/rules.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rewrite // import "miniflux.app/reader/rewrite" +package rewrite // import "miniflux.app/v2/reader/rewrite" // List of predefined rewrite rules (alphabetically sorted) // Available rules: "add_image_title", "add_youtube_video" diff --git a/reader/rss/dublincore.go b/reader/rss/dublincore.go index 320d5c61d61..221b1a87adb 100644 --- a/reader/rss/dublincore.go +++ b/reader/rss/dublincore.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rss // import "miniflux.app/reader/rss" +package rss // import "miniflux.app/v2/reader/rss" // DublinCoreElement represents Dublin Core XML elements. type DublinCoreElement struct { diff --git a/reader/rss/feedburner.go b/reader/rss/feedburner.go index 87c9f8755ef..f0004288504 100644 --- a/reader/rss/feedburner.go +++ b/reader/rss/feedburner.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rss // import "miniflux.app/reader/rss" +package rss // import "miniflux.app/v2/reader/rss" // FeedBurnerElement represents FeedBurner XML elements. type FeedBurnerElement struct { diff --git a/reader/rss/parser.go b/reader/rss/parser.go index 13f8e4b49e8..bc046631c25 100644 --- a/reader/rss/parser.go +++ b/reader/rss/parser.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rss // import "miniflux.app/reader/rss" +package rss // import "miniflux.app/v2/reader/rss" import ( "io" - "miniflux.app/errors" - "miniflux.app/model" - "miniflux.app/reader/xml" + "miniflux.app/v2/errors" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/xml" ) // 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 e3d106da652..3d1ddad7c48 100644 --- a/reader/rss/parser_test.go +++ b/reader/rss/parser_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rss // import "miniflux.app/reader/rss" +package rss // import "miniflux.app/v2/reader/rss" import ( "bytes" diff --git a/reader/rss/podcast.go b/reader/rss/podcast.go index a7d9ab5341e..bf39870f3f5 100644 --- a/reader/rss/podcast.go +++ b/reader/rss/podcast.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rss // import "miniflux.app/reader/rss" +package rss // import "miniflux.app/v2/reader/rss" import "strings" diff --git a/reader/rss/rss.go b/reader/rss/rss.go index 48c436af37e..46f957c86b4 100644 --- a/reader/rss/rss.go +++ b/reader/rss/rss.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package rss // import "miniflux.app/reader/rss" +package rss // import "miniflux.app/v2/reader/rss" import ( "encoding/xml" @@ -11,13 +11,13 @@ import ( "strings" "time" - "miniflux.app/crypto" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/reader/date" - "miniflux.app/reader/media" - "miniflux.app/reader/sanitizer" - "miniflux.app/url" + "miniflux.app/v2/crypto" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/reader/date" + "miniflux.app/v2/reader/media" + "miniflux.app/v2/reader/sanitizer" + "miniflux.app/v2/url" ) // Specs: https://cyber.harvard.edu/rss/rss.html diff --git a/reader/sanitizer/sanitizer.go b/reader/sanitizer/sanitizer.go index e811dd918b7..620198c4e0b 100644 --- a/reader/sanitizer/sanitizer.go +++ b/reader/sanitizer/sanitizer.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package sanitizer // import "miniflux.app/reader/sanitizer" +package sanitizer // import "miniflux.app/v2/reader/sanitizer" import ( "bytes" @@ -11,8 +11,8 @@ import ( "strconv" "strings" - "miniflux.app/config" - "miniflux.app/url" + "miniflux.app/v2/config" + "miniflux.app/v2/url" "golang.org/x/net/html" ) diff --git a/reader/sanitizer/sanitizer_test.go b/reader/sanitizer/sanitizer_test.go index 100bf684895..79de66b5586 100644 --- a/reader/sanitizer/sanitizer_test.go +++ b/reader/sanitizer/sanitizer_test.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package sanitizer // import "miniflux.app/reader/sanitizer" +package sanitizer // import "miniflux.app/v2/reader/sanitizer" import ( "os" "testing" - "miniflux.app/config" + "miniflux.app/v2/config" ) func TestMain(m *testing.M) { diff --git a/reader/sanitizer/strip_tags.go b/reader/sanitizer/strip_tags.go index 263ef91f001..6d8ecc8b7ea 100644 --- a/reader/sanitizer/strip_tags.go +++ b/reader/sanitizer/strip_tags.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package sanitizer // import "miniflux.app/reader/sanitizer" +package sanitizer // import "miniflux.app/v2/reader/sanitizer" import ( "bytes" diff --git a/reader/sanitizer/strip_tags_test.go b/reader/sanitizer/strip_tags_test.go index 33a07016662..9798d914c0f 100644 --- a/reader/sanitizer/strip_tags_test.go +++ b/reader/sanitizer/strip_tags_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package sanitizer // import "miniflux.app/reader/sanitizer" +package sanitizer // import "miniflux.app/v2/reader/sanitizer" import "testing" diff --git a/reader/scraper/rules.go b/reader/scraper/rules.go index 6dcda3701bb..a53db332396 100644 --- a/reader/scraper/rules.go +++ b/reader/scraper/rules.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package scraper // import "miniflux.app/reader/scraper" +package scraper // import "miniflux.app/v2/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 d2fef40a6ff..3b1a1d8ee44 100644 --- a/reader/scraper/scraper.go +++ b/reader/scraper/scraper.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package scraper // import "miniflux.app/reader/scraper" +package scraper // import "miniflux.app/v2/reader/scraper" import ( "errors" @@ -9,11 +9,11 @@ import ( "io" "strings" - "miniflux.app/config" - "miniflux.app/http/client" - "miniflux.app/logger" - "miniflux.app/reader/readability" - "miniflux.app/url" + "miniflux.app/v2/config" + "miniflux.app/v2/http/client" + "miniflux.app/v2/logger" + "miniflux.app/v2/reader/readability" + "miniflux.app/v2/url" "github.com/PuerkitoBio/goquery" ) diff --git a/reader/scraper/scraper_test.go b/reader/scraper/scraper_test.go index 9d586c78466..414108f8cae 100644 --- a/reader/scraper/scraper_test.go +++ b/reader/scraper/scraper_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package scraper // import "miniflux.app/reader/scraper" +package scraper // import "miniflux.app/v2/reader/scraper" import ( "bytes" diff --git a/reader/subscription/finder.go b/reader/subscription/finder.go index df3d275a7c3..877b3f8615e 100644 --- a/reader/subscription/finder.go +++ b/reader/subscription/finder.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package subscription // import "miniflux.app/reader/subscription" +package subscription // import "miniflux.app/v2/reader/subscription" import ( "fmt" @@ -9,12 +9,12 @@ import ( "regexp" "strings" - "miniflux.app/config" - "miniflux.app/errors" - "miniflux.app/http/client" - "miniflux.app/reader/browser" - "miniflux.app/reader/parser" - "miniflux.app/url" + "miniflux.app/v2/config" + "miniflux.app/v2/errors" + "miniflux.app/v2/http/client" + "miniflux.app/v2/reader/browser" + "miniflux.app/v2/reader/parser" + "miniflux.app/v2/url" "github.com/PuerkitoBio/goquery" ) diff --git a/reader/subscription/subscription.go b/reader/subscription/subscription.go index 2a7ff55bd9d..e2634b87cf5 100644 --- a/reader/subscription/subscription.go +++ b/reader/subscription/subscription.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package subscription // import "miniflux.app/reader/subscription" +package subscription // import "miniflux.app/v2/reader/subscription" import "fmt" diff --git a/reader/xml/decoder.go b/reader/xml/decoder.go index edf58f47c08..cd702888261 100644 --- a/reader/xml/decoder.go +++ b/reader/xml/decoder.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package xml // import "miniflux.app/reader/xml" +package xml // import "miniflux.app/v2/reader/xml" import ( "bytes" @@ -10,7 +10,7 @@ import ( "io" "strings" - "miniflux.app/reader/encoding" + "miniflux.app/v2/reader/encoding" ) // NewDecoder returns a XML decoder that filters illegal characters. diff --git a/reader/xml/decoder_test.go b/reader/xml/decoder_test.go index a350955a388..cfd7732fa85 100644 --- a/reader/xml/decoder_test.go +++ b/reader/xml/decoder_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package xml // import "miniflux.app/reader/xml" +package xml // import "miniflux.app/v2/reader/xml" import ( "encoding/xml" diff --git a/storage/api_key.go b/storage/api_key.go index ea25e484b74..6b59c92b487 100644 --- a/storage/api_key.go +++ b/storage/api_key.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "fmt" - "miniflux.app/model" + "miniflux.app/v2/model" ) // APIKeyExists checks if an API Key with the same description exists. diff --git a/storage/category.go b/storage/category.go index c5e5f74d3ce..686b458c25f 100644 --- a/storage/category.go +++ b/storage/category.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" @@ -9,7 +9,7 @@ import ( "fmt" "github.com/lib/pq" - "miniflux.app/model" + "miniflux.app/v2/model" ) // AnotherCategoryExists checks if another category exists with the same title. diff --git a/storage/certificate_cache.go b/storage/certificate_cache.go index 0e0c26e0327..f956d3046c5 100644 --- a/storage/certificate_cache.go +++ b/storage/certificate_cache.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "context" diff --git a/storage/enclosure.go b/storage/enclosure.go index 3573609b9c7..e1461788562 100644 --- a/storage/enclosure.go +++ b/storage/enclosure.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" "fmt" "strings" - "miniflux.app/model" + "miniflux.app/v2/model" ) // GetEnclosures returns all attachments for the given entry. diff --git a/storage/entry.go b/storage/entry.go index 5dbb9c04319..a6ed1397eae 100644 --- a/storage/entry.go +++ b/storage/entry.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" @@ -9,9 +9,9 @@ import ( "fmt" "time" - "miniflux.app/crypto" - "miniflux.app/logger" - "miniflux.app/model" + "miniflux.app/v2/crypto" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" "github.com/lib/pq" ) diff --git a/storage/entry_pagination_builder.go b/storage/entry_pagination_builder.go index 13987c84e42..ed85c9270ba 100644 --- a/storage/entry_pagination_builder.go +++ b/storage/entry_pagination_builder.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" @@ -9,8 +9,8 @@ import ( "strings" "time" - "miniflux.app/model" - "miniflux.app/timer" + "miniflux.app/v2/model" + "miniflux.app/v2/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 ce50e342ed3..5e41abbba64 100644 --- a/storage/entry_query_builder.go +++ b/storage/entry_query_builder.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" @@ -11,8 +11,8 @@ import ( "github.com/lib/pq" - "miniflux.app/model" - "miniflux.app/timezone" + "miniflux.app/v2/model" + "miniflux.app/v2/timezone" ) // EntryQueryBuilder builds a SQL query to fetch entries. diff --git a/storage/feed.go b/storage/feed.go index df36bdec018..0461b6f25d9 100644 --- a/storage/feed.go +++ b/storage/feed.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" @@ -10,9 +10,9 @@ import ( "runtime" "sort" - "miniflux.app/config" - "miniflux.app/logger" - "miniflux.app/model" + "miniflux.app/v2/config" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" ) type byStateAndName struct{ f model.Feeds } diff --git a/storage/feed_query_builder.go b/storage/feed_query_builder.go index 88862b559a4..b1cf5a66eda 100644 --- a/storage/feed_query_builder.go +++ b/storage/feed_query_builder.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" "fmt" "strings" - "miniflux.app/model" - "miniflux.app/timezone" + "miniflux.app/v2/model" + "miniflux.app/v2/timezone" ) // FeedQueryBuilder builds a SQL query to fetch feeds. diff --git a/storage/icon.go b/storage/icon.go index ffae3ac2317..f0d8253e829 100644 --- a/storage/icon.go +++ b/storage/icon.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" "fmt" "strings" - "miniflux.app/model" + "miniflux.app/v2/model" ) // HasIcon checks if the given feed has an icon. diff --git a/storage/integration.go b/storage/integration.go index 21e3a2cb353..1293f75ca93 100644 --- a/storage/integration.go +++ b/storage/integration.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" "fmt" "golang.org/x/crypto/bcrypt" - "miniflux.app/model" + "miniflux.app/v2/model" ) // HasDuplicateFeverUsername checks if another user have the same Fever username. diff --git a/storage/job.go b/storage/job.go index e983b55ca95..75597db5509 100644 --- a/storage/job.go +++ b/storage/job.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "fmt" - "miniflux.app/config" - "miniflux.app/model" + "miniflux.app/v2/config" + "miniflux.app/v2/model" ) // NewBatch returns a series of jobs. diff --git a/storage/session.go b/storage/session.go index 71de8291eff..b3369a4a1b5 100644 --- a/storage/session.go +++ b/storage/session.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" "fmt" - "miniflux.app/crypto" - "miniflux.app/model" + "miniflux.app/v2/crypto" + "miniflux.app/v2/model" ) // CreateAppSessionWithUserPrefs creates a new application session with the given user preferences. diff --git a/storage/storage.go b/storage/storage.go index 5b582b1fb20..59c6acab2ef 100644 --- a/storage/storage.go +++ b/storage/storage.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "context" diff --git a/storage/timezone.go b/storage/timezone.go index 145450938f6..a5b69c6a68a 100644 --- a/storage/timezone.go +++ b/storage/timezone.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "fmt" diff --git a/storage/user.go b/storage/user.go index 1f074cc9a07..dfcdbae2c02 100644 --- a/storage/user.go +++ b/storage/user.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" @@ -9,9 +9,9 @@ import ( "runtime" "strings" - "miniflux.app/crypto" - "miniflux.app/logger" - "miniflux.app/model" + "miniflux.app/v2/crypto" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" "github.com/lib/pq" "golang.org/x/crypto/bcrypt" diff --git a/storage/user_session.go b/storage/user_session.go index edc3c2a4a0f..a3f541863e1 100644 --- a/storage/user_session.go +++ b/storage/user_session.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package storage // import "miniflux.app/storage" +package storage // import "miniflux.app/v2/storage" import ( "database/sql" "fmt" - "miniflux.app/crypto" - "miniflux.app/model" + "miniflux.app/v2/crypto" + "miniflux.app/v2/model" ) // UserSessions returns the list of sessions for the given user. diff --git a/systemd/systemd.go b/systemd/systemd.go index 5f7a149e298..4f604690e38 100644 --- a/systemd/systemd.go +++ b/systemd/systemd.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package systemd // import "miniflux.app/systemd" +package systemd // import "miniflux.app/v2/systemd" import ( "fmt" diff --git a/template/engine.go b/template/engine.go index 2d3071c4b2e..306acddba96 100644 --- a/template/engine.go +++ b/template/engine.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package template // import "miniflux.app/template" +package template // import "miniflux.app/v2/template" import ( "bytes" @@ -10,9 +10,9 @@ import ( "strings" "time" - "miniflux.app/errors" - "miniflux.app/locale" - "miniflux.app/logger" + "miniflux.app/v2/errors" + "miniflux.app/v2/locale" + "miniflux.app/v2/logger" "github.com/gorilla/mux" ) diff --git a/template/functions.go b/template/functions.go index 0a3a5657f0d..698dee8a3fc 100644 --- a/template/functions.go +++ b/template/functions.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package template // import "miniflux.app/template" +package template // import "miniflux.app/v2/template" import ( "fmt" @@ -11,14 +11,14 @@ import ( "strings" "time" - "miniflux.app/config" - "miniflux.app/crypto" - "miniflux.app/http/route" - "miniflux.app/locale" - "miniflux.app/model" - "miniflux.app/proxy" - "miniflux.app/timezone" - "miniflux.app/url" + "miniflux.app/v2/config" + "miniflux.app/v2/crypto" + "miniflux.app/v2/http/route" + "miniflux.app/v2/locale" + "miniflux.app/v2/model" + "miniflux.app/v2/proxy" + "miniflux.app/v2/timezone" + "miniflux.app/v2/url" "github.com/gorilla/mux" ) diff --git a/template/functions_test.go b/template/functions_test.go index 5b6e43412c2..de3896a3882 100644 --- a/template/functions_test.go +++ b/template/functions_test.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package template // import "miniflux.app/template" +package template // import "miniflux.app/v2/template" import ( "testing" "time" - "miniflux.app/locale" + "miniflux.app/v2/locale" ) func TestDict(t *testing.T) { diff --git a/tests/category_test.go b/tests/category_test.go index 5ef4a0bf3ea..c5b7b389b9a 100644 --- a/tests/category_test.go +++ b/tests/category_test.go @@ -9,7 +9,7 @@ package tests import ( "testing" - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) func TestCreateCategory(t *testing.T) { diff --git a/tests/endpoint_test.go b/tests/endpoint_test.go index c864f9e1816..16b122d235b 100644 --- a/tests/endpoint_test.go +++ b/tests/endpoint_test.go @@ -9,7 +9,7 @@ package tests import ( "testing" - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) func TestWithBadEndpoint(t *testing.T) { diff --git a/tests/entry_test.go b/tests/entry_test.go index 8807c951c5d..5d9ac03eeb9 100644 --- a/tests/entry_test.go +++ b/tests/entry_test.go @@ -9,7 +9,7 @@ package tests import ( "testing" - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) func TestGetAllFeedEntries(t *testing.T) { diff --git a/tests/feed_test.go b/tests/feed_test.go index 7409a550fbf..cbcaf4c037a 100644 --- a/tests/feed_test.go +++ b/tests/feed_test.go @@ -10,7 +10,7 @@ import ( "strings" "testing" - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) func TestCreateFeed(t *testing.T) { diff --git a/tests/subscription_test.go b/tests/subscription_test.go index 01201097064..d9ed9311bf4 100644 --- a/tests/subscription_test.go +++ b/tests/subscription_test.go @@ -9,7 +9,7 @@ package tests import ( "testing" - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) func TestDiscoverSubscriptions(t *testing.T) { diff --git a/tests/tests.go b/tests/tests.go index 56965ce60a6..76618635775 100644 --- a/tests/tests.go +++ b/tests/tests.go @@ -13,7 +13,7 @@ import ( "testing" "time" - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) const ( diff --git a/tests/user_test.go b/tests/user_test.go index 8b2fe8f3d38..6952bc06778 100644 --- a/tests/user_test.go +++ b/tests/user_test.go @@ -9,7 +9,7 @@ package tests import ( "testing" - miniflux "miniflux.app/client" + miniflux "miniflux.app/v2/client" ) func TestWithWrongCredentials(t *testing.T) { diff --git a/timer/timer.go b/timer/timer.go index 92c14970858..c1e29984d0f 100644 --- a/timer/timer.go +++ b/timer/timer.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package timer // import "miniflux.app/timer" +package timer // import "miniflux.app/v2/timer" import ( "time" - "miniflux.app/logger" + "miniflux.app/v2/logger" ) // ExecutionTime returns the elapsed time of a block of code. diff --git a/timezone/timezone.go b/timezone/timezone.go index c14ae25ebb5..064bc75671f 100644 --- a/timezone/timezone.go +++ b/timezone/timezone.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package timezone // import "miniflux.app/timezone" +package timezone // import "miniflux.app/v2/timezone" import ( "time" diff --git a/timezone/timezone_test.go b/timezone/timezone_test.go index 0e8cfb9404c..dce8b5840c4 100644 --- a/timezone/timezone_test.go +++ b/timezone/timezone_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package timezone // import "miniflux.app/timezone" +package timezone // import "miniflux.app/v2/timezone" import ( "testing" diff --git a/ui/about.go b/ui/about.go index 3bfa554b59b..1e844443d97 100644 --- a/ui/about.go +++ b/ui/about.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" "runtime" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" - "miniflux.app/version" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" + "miniflux.app/v2/version" ) func (h *handler) showAboutPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/api_key_create.go b/ui/api_key_create.go index 68535089351..bb309d8dc9b 100644 --- a/ui/api_key_create.go +++ b/ui/api_key_create.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showCreateAPIKeyPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/api_key_list.go b/ui/api_key_list.go index 5fd1d0e3514..5d9ebfee22c 100644 --- a/ui/api_key_list.go +++ b/ui/api_key_list.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showAPIKeysPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/api_key_remove.go b/ui/api_key_remove.go index 503454784e2..ecf2ab41126 100644 --- a/ui/api_key_remove.go +++ b/ui/api_key_remove.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" ) func (h *handler) removeAPIKey(w http.ResponseWriter, r *http.Request) { diff --git a/ui/api_key_save.go b/ui/api_key_save.go index 84537385558..94b76421637 100644 --- a/ui/api_key_save.go +++ b/ui/api_key_save.go @@ -1,19 +1,19 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "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" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) saveAPIKey(w http.ResponseWriter, r *http.Request) { diff --git a/ui/bookmark_entries.go b/ui/bookmark_entries.go index 38815a4c259..d459af473af 100644 --- a/ui/bookmark_entries.go +++ b/ui/bookmark_entries.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showStarredPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_create.go b/ui/category_create.go index 506dc331cde..f46ca8b5cfa 100644 --- a/ui/category_create.go +++ b/ui/category_create.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showCreateCategoryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_edit.go b/ui/category_edit.go index 71fcbf2d406..791d3cb913d 100644 --- a/ui/category_edit.go +++ b/ui/category_edit.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showEditCategoryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_entries.go b/ui/category_entries.go index f3ee0a2f1a1..f588dfb2745 100644 --- a/ui/category_entries.go +++ b/ui/category_entries.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showCategoryEntriesPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_entries_all.go b/ui/category_entries_all.go index fe860cf481d..4706e5aceb1 100644 --- a/ui/category_entries_all.go +++ b/ui/category_entries_all.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showCategoryEntriesAllPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_feeds.go b/ui/category_feeds.go index 7bec8419d7a..979384d2c24 100644 --- a/ui/category_feeds.go +++ b/ui/category_feeds.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showCategoryFeedsPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_list.go b/ui/category_list.go index 120d4dcdf24..83ab803baf8 100644 --- a/ui/category_list.go +++ b/ui/category_list.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showCategoryListPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_mark_as_read.go b/ui/category_mark_as_read.go index aae837809f4..8e3be25f1f5 100644 --- a/ui/category_mark_as_read.go +++ b/ui/category_mark_as_read.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" "time" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" ) func (h *handler) markCategoryAsRead(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_refresh.go b/ui/category_refresh.go index 9c871eea4cf..6cf63f1f661 100644 --- a/ui/category_refresh.go +++ b/ui/category_refresh.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" ) func (h *handler) refreshCategoryEntriesPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_remove.go b/ui/category_remove.go index 11080eceb5b..f68471c3b82 100644 --- a/ui/category_remove.go +++ b/ui/category_remove.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" ) func (h *handler) removeCategory(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_save.go b/ui/category_save.go index c6f083ce65d..88f2fe99639 100644 --- a/ui/category_save.go +++ b/ui/category_save.go @@ -1,20 +1,20 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "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" - "miniflux.app/validator" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" + "miniflux.app/v2/validator" ) func (h *handler) saveCategory(w http.ResponseWriter, r *http.Request) { diff --git a/ui/category_update.go b/ui/category_update.go index f0e71274707..9632fd1518e 100644 --- a/ui/category_update.go +++ b/ui/category_update.go @@ -1,20 +1,20 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "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" - "miniflux.app/validator" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" + "miniflux.app/v2/validator" ) func (h *handler) updateCategory(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_bookmark.go b/ui/entry_bookmark.go index d67ef0e917d..70efba3630d 100644 --- a/ui/entry_bookmark.go +++ b/ui/entry_bookmark.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "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" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showStarredEntryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_category.go b/ui/entry_category.go index a40ff09c7e4..5ae553d66ef 100644 --- a/ui/entry_category.go +++ b/ui/entry_category.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "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" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showCategoryEntryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_enclosure_save_position.go b/ui/entry_enclosure_save_position.go index 91fd0078eff..fd37dc1653a 100644 --- a/ui/entry_enclosure_save_position.go +++ b/ui/entry_enclosure_save_position.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( json2 "encoding/json" "io" "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" ) func (h *handler) saveEnclosureProgression(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_feed.go b/ui/entry_feed.go index c1ce09d3418..695b6f535ed 100644 --- a/ui/entry_feed.go +++ b/ui/entry_feed.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "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" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showFeedEntryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_read.go b/ui/entry_read.go index 3185b09dead..171549a5d4b 100644 --- a/ui/entry_read.go +++ b/ui/entry_read.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "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" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showReadEntryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_save.go b/ui/entry_save.go index b467d68b645..3ee2cd4589a 100644 --- a/ui/entry_save.go +++ b/ui/entry_save.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/integration" - "miniflux.app/model" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/integration" + "miniflux.app/v2/model" ) func (h *handler) saveEntry(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_scraper.go b/ui/entry_scraper.go index ec9cfa9fd53..cd9fa9f8f9e 100644 --- a/ui/entry_scraper.go +++ b/ui/entry_scraper.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/locale" - "miniflux.app/model" - "miniflux.app/proxy" - "miniflux.app/reader/processor" - "miniflux.app/storage" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/locale" + "miniflux.app/v2/model" + "miniflux.app/v2/proxy" + "miniflux.app/v2/reader/processor" + "miniflux.app/v2/storage" ) func (h *handler) fetchContent(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_search.go b/ui/entry_search.go index de487259c0b..ae89acaf87e 100644 --- a/ui/entry_search.go +++ b/ui/entry_search.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "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" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showSearchEntryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_toggle_bookmark.go b/ui/entry_toggle_bookmark.go index 54cc416beb4..230d2237a6e 100644 --- a/ui/entry_toggle_bookmark.go +++ b/ui/entry_toggle_bookmark.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" ) func (h *handler) toggleBookmark(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_unread.go b/ui/entry_unread.go index ba75e1e96cd..7f08d1aebde 100644 --- a/ui/entry_unread.go +++ b/ui/entry_unread.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "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" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showUnreadEntryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/entry_update_status.go b/ui/entry_update_status.go index f1228310f43..31d139f5b5b 100644 --- a/ui/entry_update_status.go +++ b/ui/entry_update_status.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( json_parser "encoding/json" "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/model" - "miniflux.app/validator" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/model" + "miniflux.app/v2/validator" ) func (h *handler) updateEntriesStatus(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_edit.go b/ui/feed_edit.go index b13abc4f858..0ae5f3f56b8 100644 --- a/ui/feed_edit.go +++ b/ui/feed_edit.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showEditFeedPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_entries.go b/ui/feed_entries.go index 7b93b8ffa72..d85bb34527f 100644 --- a/ui/feed_entries.go +++ b/ui/feed_entries.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showFeedEntriesPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_entries_all.go b/ui/feed_entries_all.go index 6493d258b7a..305196f52de 100644 --- a/ui/feed_entries_all.go +++ b/ui/feed_entries_all.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showFeedEntriesAllPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_icon.go b/ui/feed_icon.go index 093952d73c7..69c26e40902 100644 --- a/ui/feed_icon.go +++ b/ui/feed_icon.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" "time" - "miniflux.app/http/request" - "miniflux.app/http/response" - "miniflux.app/http/response/html" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response" + "miniflux.app/v2/http/response/html" ) func (h *handler) showIcon(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_list.go b/ui/feed_list.go index 1d218349881..9c9329549d4 100644 --- a/ui/feed_list.go +++ b/ui/feed_list.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showFeedsPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_mark_as_read.go b/ui/feed_mark_as_read.go index 65400a95a7e..1aebeafd526 100644 --- a/ui/feed_mark_as_read.go +++ b/ui/feed_mark_as_read.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" ) func (h *handler) markFeedAsRead(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_refresh.go b/ui/feed_refresh.go index 26afbe84f4c..38c755c5e88 100644 --- a/ui/feed_refresh.go +++ b/ui/feed_refresh.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" - feedHandler "miniflux.app/reader/handler" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + feedHandler "miniflux.app/v2/reader/handler" ) func (h *handler) refreshFeed(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_remove.go b/ui/feed_remove.go index 3874d47acf4..c800a57d14a 100644 --- a/ui/feed_remove.go +++ b/ui/feed_remove.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" ) func (h *handler) removeFeed(w http.ResponseWriter, r *http.Request) { diff --git a/ui/feed_update.go b/ui/feed_update.go index e8080110a8f..75f2390984c 100644 --- a/ui/feed_update.go +++ b/ui/feed_update.go @@ -1,21 +1,21 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "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" - "miniflux.app/validator" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" + "miniflux.app/v2/validator" ) func (h *handler) updateFeed(w http.ResponseWriter, r *http.Request) { diff --git a/ui/form/api_key.go b/ui/form/api_key.go index b2a56991a8a..70dc4ff6eab 100644 --- a/ui/form/api_key.go +++ b/ui/form/api_key.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "net/http" - "miniflux.app/errors" + "miniflux.app/v2/errors" ) // APIKeyForm represents the API Key form. diff --git a/ui/form/auth.go b/ui/form/auth.go index 9d0ad88414c..6f85672ea3e 100644 --- a/ui/form/auth.go +++ b/ui/form/auth.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "net/http" - "miniflux.app/errors" + "miniflux.app/v2/errors" ) // AuthForm represents the authentication form. diff --git a/ui/form/category.go b/ui/form/category.go index e7488c9f6ab..3e673506d2a 100644 --- a/ui/form/category.go +++ b/ui/form/category.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "net/http" diff --git a/ui/form/feed.go b/ui/form/feed.go index 3a673379cf1..00d1d5010ec 100644 --- a/ui/form/feed.go +++ b/ui/form/feed.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "net/http" "strconv" - "miniflux.app/model" + "miniflux.app/v2/model" ) // FeedForm represents a feed form in the UI diff --git a/ui/form/integration.go b/ui/form/integration.go index 7c9731d4d2d..6966f46d122 100644 --- a/ui/form/integration.go +++ b/ui/form/integration.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "net/http" - "miniflux.app/model" + "miniflux.app/v2/model" ) // IntegrationForm represents user integration settings form. diff --git a/ui/form/settings.go b/ui/form/settings.go index f8773997470..d4fed0b0bbd 100644 --- a/ui/form/settings.go +++ b/ui/form/settings.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "net/http" "strconv" - "miniflux.app/errors" - "miniflux.app/model" + "miniflux.app/v2/errors" + "miniflux.app/v2/model" ) // SettingsForm represents the settings form. diff --git a/ui/form/settings_test.go b/ui/form/settings_test.go index 3a58c838f56..87dbfc73186 100644 --- a/ui/form/settings_test.go +++ b/ui/form/settings_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "testing" diff --git a/ui/form/subscription.go b/ui/form/subscription.go index 4a36f7920cc..eb2d127cd7d 100644 --- a/ui/form/subscription.go +++ b/ui/form/subscription.go @@ -1,14 +1,14 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "net/http" "strconv" - "miniflux.app/errors" - "miniflux.app/validator" + "miniflux.app/v2/errors" + "miniflux.app/v2/validator" ) // SubscriptionForm represents the subscription form. diff --git a/ui/form/user.go b/ui/form/user.go index ed626f29ed1..4b3b03ca5bd 100644 --- a/ui/form/user.go +++ b/ui/form/user.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package form // import "miniflux.app/ui/form" +package form // import "miniflux.app/v2/ui/form" import ( "net/http" - "miniflux.app/errors" - "miniflux.app/model" + "miniflux.app/v2/errors" + "miniflux.app/v2/model" ) // UserForm represents the user form. diff --git a/ui/handler.go b/ui/handler.go index 78600ea0ae6..5ab2958506e 100644 --- a/ui/handler.go +++ b/ui/handler.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( - "miniflux.app/storage" - "miniflux.app/template" - "miniflux.app/worker" + "miniflux.app/v2/storage" + "miniflux.app/v2/template" + "miniflux.app/v2/worker" "github.com/gorilla/mux" ) diff --git a/ui/history_entries.go b/ui/history_entries.go index c5275105240..75b1764a064 100644 --- a/ui/history_entries.go +++ b/ui/history_entries.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showHistoryPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/history_flush.go b/ui/history_flush.go index 8a8a1203112..555027d2804 100644 --- a/ui/history_flush.go +++ b/ui/history_flush.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" ) func (h *handler) flushHistory(w http.ResponseWriter, r *http.Request) { diff --git a/ui/integration_pocket.go b/ui/integration_pocket.go index 7d2d476cd7d..eb12696f12b 100644 --- a/ui/integration_pocket.go +++ b/ui/integration_pocket.go @@ -1,19 +1,19 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/integration/pocket" - "miniflux.app/locale" - "miniflux.app/logger" - "miniflux.app/ui/session" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/integration/pocket" + "miniflux.app/v2/locale" + "miniflux.app/v2/logger" + "miniflux.app/v2/ui/session" ) func (h *handler) pocketAuthorize(w http.ResponseWriter, r *http.Request) { diff --git a/ui/integration_show.go b/ui/integration_show.go index 4a6419d3dd6..5e0256eddf7 100644 --- a/ui/integration_show.go +++ b/ui/integration_show.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showIntegrationPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/integration_update.go b/ui/integration_update.go index 007239f4ff0..a6ad2826da9 100644 --- a/ui/integration_update.go +++ b/ui/integration_update.go @@ -1,20 +1,20 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "crypto/md5" "fmt" "net/http" - "miniflux.app/crypto" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/locale" - "miniflux.app/ui/form" - "miniflux.app/ui/session" + "miniflux.app/v2/crypto" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/locale" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" ) func (h *handler) updateIntegration(w http.ResponseWriter, r *http.Request) { diff --git a/ui/login_check.go b/ui/login_check.go index cdd7417b6e5..76a424cdeb8 100644 --- a/ui/login_check.go +++ b/ui/login_check.go @@ -1,20 +1,20 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/cookie" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/cookie" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) checkLogin(w http.ResponseWriter, r *http.Request) { diff --git a/ui/login_show.go b/ui/login_show.go index 81be88ccd3f..b668d5e1d9c 100644 --- a/ui/login_show.go +++ b/ui/login_show.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showLoginPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/logout.go b/ui/logout.go index 34dfe000fc3..80f8b6520ad 100644 --- a/ui/logout.go +++ b/ui/logout.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/cookie" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" - "miniflux.app/ui/session" + "miniflux.app/v2/config" + "miniflux.app/v2/http/cookie" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/ui/session" ) func (h *handler) logout(w http.ResponseWriter, r *http.Request) { diff --git a/ui/middleware.go b/ui/middleware.go index 723340885f0..f5a538bafe9 100644 --- a/ui/middleware.go +++ b/ui/middleware.go @@ -1,22 +1,22 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "context" "errors" "net/http" - "miniflux.app/config" - "miniflux.app/http/cookie" - "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/v2/config" + "miniflux.app/v2/http/cookie" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/session" "github.com/gorilla/mux" ) diff --git a/ui/oauth2.go b/ui/oauth2.go index 7cf5aa3d5eb..883b52f371e 100644 --- a/ui/oauth2.go +++ b/ui/oauth2.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "context" - "miniflux.app/config" - "miniflux.app/oauth2" + "miniflux.app/v2/config" + "miniflux.app/v2/oauth2" ) func getOAuth2Manager(ctx context.Context) *oauth2.Manager { diff --git a/ui/oauth2_callback.go b/ui/oauth2_callback.go index ac1e19e8629..6563446ea98 100644 --- a/ui/oauth2_callback.go +++ b/ui/oauth2_callback.go @@ -1,21 +1,21 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "errors" "net/http" - "miniflux.app/config" - "miniflux.app/http/cookie" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/locale" - "miniflux.app/logger" - "miniflux.app/model" - "miniflux.app/ui/session" + "miniflux.app/v2/config" + "miniflux.app/v2/http/cookie" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/locale" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" ) func (h *handler) oauth2Callback(w http.ResponseWriter, r *http.Request) { diff --git a/ui/oauth2_redirect.go b/ui/oauth2_redirect.go index fb24df37455..0249655a9c6 100644 --- a/ui/oauth2_redirect.go +++ b/ui/oauth2_redirect.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" - "miniflux.app/ui/session" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/ui/session" ) func (h *handler) oauth2Redirect(w http.ResponseWriter, r *http.Request) { diff --git a/ui/oauth2_unlink.go b/ui/oauth2_unlink.go index fa2f51bd81e..cf7658849cc 100644 --- a/ui/oauth2_unlink.go +++ b/ui/oauth2_unlink.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/locale" - "miniflux.app/logger" - "miniflux.app/ui/session" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/locale" + "miniflux.app/v2/logger" + "miniflux.app/v2/ui/session" ) func (h *handler) oauth2Unlink(w http.ResponseWriter, r *http.Request) { diff --git a/ui/offline.go b/ui/offline.go index da04e9101ae..dd5175b4625 100644 --- a/ui/offline.go +++ b/ui/offline.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showOfflinePage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/opml_export.go b/ui/opml_export.go index a7b14161885..b7e0f75ca89 100644 --- a/ui/opml_export.go +++ b/ui/opml_export.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/response/xml" - "miniflux.app/reader/opml" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/response/xml" + "miniflux.app/v2/reader/opml" ) func (h *handler) exportFeeds(w http.ResponseWriter, r *http.Request) { diff --git a/ui/opml_import.go b/ui/opml_import.go index 0f7bbac0260..2cf54326126 100644 --- a/ui/opml_import.go +++ b/ui/opml_import.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showImportPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/opml_upload.go b/ui/opml_upload.go index bebab3e8a29..9ec95eaa272 100644 --- a/ui/opml_upload.go +++ b/ui/opml_upload.go @@ -1,20 +1,20 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/client" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" - "miniflux.app/reader/opml" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/client" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/reader/opml" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) uploadOPML(w http.ResponseWriter, r *http.Request) { diff --git a/ui/pagination.go b/ui/pagination.go index 395e17145b0..db5c5352a9a 100644 --- a/ui/pagination.go +++ b/ui/pagination.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" type pagination struct { Route string diff --git a/ui/proxy.go b/ui/proxy.go index a21d75f5745..97a75910890 100644 --- a/ui/proxy.go +++ b/ui/proxy.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "crypto/hmac" @@ -11,12 +11,12 @@ import ( "net/http" "time" - "miniflux.app/config" - "miniflux.app/crypto" - "miniflux.app/http/request" - "miniflux.app/http/response" - "miniflux.app/http/response/html" - "miniflux.app/logger" + "miniflux.app/v2/config" + "miniflux.app/v2/crypto" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/logger" ) func (h *handler) mediaProxy(w http.ResponseWriter, r *http.Request) { diff --git a/ui/search_entries.go b/ui/search_entries.go index 28f648ac624..d9d1e1946b9 100644 --- a/ui/search_entries.go +++ b/ui/search_entries.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showSearchEntriesPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/session/session.go b/ui/session/session.go index b0756dafefe..fc8efe9992c 100644 --- a/ui/session/session.go +++ b/ui/session/session.go @@ -1,11 +1,11 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package session // import "miniflux.app/ui/session" +package session // import "miniflux.app/v2/ui/session" import ( - "miniflux.app/crypto" - "miniflux.app/storage" + "miniflux.app/v2/crypto" + "miniflux.app/v2/storage" ) // Session handles session data. diff --git a/ui/session_list.go b/ui/session_list.go index 2db9e1cf459..dcc687d1855 100644 --- a/ui/session_list.go +++ b/ui/session_list.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showSessionsPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/session_remove.go b/ui/session_remove.go index 024ebdf2e5e..a8bcedfe6c1 100644 --- a/ui/session_remove.go +++ b/ui/session_remove.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" ) func (h *handler) removeSession(w http.ResponseWriter, r *http.Request) { diff --git a/ui/settings_show.go b/ui/settings_show.go index 39700d17d63..fe698d2cfc8 100644 --- a/ui/settings_show.go +++ b/ui/settings_show.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/locale" - "miniflux.app/model" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/locale" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showSettingsPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/settings_update.go b/ui/settings_update.go index 5d0b0d1cfa3..31ecf0ff6fc 100644 --- a/ui/settings_update.go +++ b/ui/settings_update.go @@ -1,21 +1,21 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "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" - "miniflux.app/validator" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/locale" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" + "miniflux.app/v2/validator" ) func (h *handler) updateSettings(w http.ResponseWriter, r *http.Request) { diff --git a/ui/share.go b/ui/share.go index 0ee405dafec..096d464ae1f 100644 --- a/ui/share.go +++ b/ui/share.go @@ -1,19 +1,19 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" "time" - "miniflux.app/http/request" - "miniflux.app/http/response" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/storage" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/storage" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) createSharedEntry(w http.ResponseWriter, r *http.Request) { diff --git a/ui/shared_entries.go b/ui/shared_entries.go index 3a00cbe76a5..6fbf6b4681e 100644 --- a/ui/shared_entries.go +++ b/ui/shared_entries.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) sharedEntries(w http.ResponseWriter, r *http.Request) { diff --git a/ui/static/static.go b/ui/static/static.go index 0201cc9843f..a9b52df5e47 100644 --- a/ui/static/static.go +++ b/ui/static/static.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package static // import "miniflux.app/ui/static" +package static // import "miniflux.app/v2/ui/static" import ( "bytes" diff --git a/ui/static_app_icon.go b/ui/static_app_icon.go index 40f41011de7..eeb031ac4f0 100644 --- a/ui/static_app_icon.go +++ b/ui/static_app_icon.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" "path/filepath" "time" - "miniflux.app/http/request" - "miniflux.app/http/response" - "miniflux.app/http/response/html" - "miniflux.app/ui/static" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/static" ) func (h *handler) showAppIcon(w http.ResponseWriter, r *http.Request) { diff --git a/ui/static_favicon.go b/ui/static_favicon.go index 426fa52d3f8..bb689459fcc 100644 --- a/ui/static_favicon.go +++ b/ui/static_favicon.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" "time" - "miniflux.app/http/response" - "miniflux.app/http/response/html" - "miniflux.app/ui/static" + "miniflux.app/v2/http/response" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/static" ) func (h *handler) showFavicon(w http.ResponseWriter, r *http.Request) { diff --git a/ui/static_javascript.go b/ui/static_javascript.go index a722c8688bd..5f0ae41ec11 100644 --- a/ui/static_javascript.go +++ b/ui/static_javascript.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "fmt" "net/http" "time" - "miniflux.app/http/request" - "miniflux.app/http/response" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/ui/static" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/ui/static" ) func (h *handler) showJavascript(w http.ResponseWriter, r *http.Request) { diff --git a/ui/static_manifest.go b/ui/static_manifest.go index 5f2424f98a6..0de863c6c7e 100644 --- a/ui/static_manifest.go +++ b/ui/static_manifest.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" - "miniflux.app/http/route" - "miniflux.app/model" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" ) func (h *handler) showWebManifest(w http.ResponseWriter, r *http.Request) { diff --git a/ui/static_stylesheet.go b/ui/static_stylesheet.go index f95e2ddfab4..0fc22094f5c 100644 --- a/ui/static_stylesheet.go +++ b/ui/static_stylesheet.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" "time" - "miniflux.app/http/request" - "miniflux.app/http/response" - "miniflux.app/http/response/html" - "miniflux.app/ui/static" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/static" ) func (h *handler) showStylesheet(w http.ResponseWriter, r *http.Request) { diff --git a/ui/subscription_add.go b/ui/subscription_add.go index d42aabe6d62..6abe76b48f8 100644 --- a/ui/subscription_add.go +++ b/ui/subscription_add.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showAddSubscriptionPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/subscription_bookmarklet.go b/ui/subscription_bookmarklet.go index 38b0912396e..3ff53fbf0aa 100644 --- a/ui/subscription_bookmarklet.go +++ b/ui/subscription_bookmarklet.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" "mvdan.cc/xurls/v2" ) diff --git a/ui/subscription_choose.go b/ui/subscription_choose.go index d4b0e9a242d..14755da5826 100644 --- a/ui/subscription_choose.go +++ b/ui/subscription_choose.go @@ -1,20 +1,20 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - feedHandler "miniflux.app/reader/handler" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + feedHandler "miniflux.app/v2/reader/handler" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showChooseSubscriptionPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/subscription_submit.go b/ui/subscription_submit.go index ce88c0fce7e..cfb4499691b 100644 --- a/ui/subscription_submit.go +++ b/ui/subscription_submit.go @@ -1,22 +1,22 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" - "miniflux.app/model" - feedHandler "miniflux.app/reader/handler" - "miniflux.app/reader/subscription" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + feedHandler "miniflux.app/v2/reader/handler" + "miniflux.app/v2/reader/subscription" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) submitSubscription(w http.ResponseWriter, r *http.Request) { diff --git a/ui/ui.go b/ui/ui.go index ecdc1800cb7..a82d24fd4f6 100644 --- a/ui/ui.go +++ b/ui/ui.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/logger" - "miniflux.app/storage" - "miniflux.app/template" - "miniflux.app/worker" + "miniflux.app/v2/logger" + "miniflux.app/v2/storage" + "miniflux.app/v2/template" + "miniflux.app/v2/worker" "github.com/gorilla/mux" ) diff --git a/ui/unread_entries.go b/ui/unread_entries.go index 5fe1ab2baa2..956a7269fef 100644 --- a/ui/unread_entries.go +++ b/ui/unread_entries.go @@ -1,20 +1,20 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "fmt" "net/http" "time" - "miniflux.app/config" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/model" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/config" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showUnreadPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/unread_mark_all_read.go b/ui/unread_mark_all_read.go index 54effa16700..aab67036eb1 100644 --- a/ui/unread_mark_all_read.go +++ b/ui/unread_mark_all_read.go @@ -1,13 +1,13 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/json" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/json" ) func (h *handler) markAllAsRead(w http.ResponseWriter, r *http.Request) { diff --git a/ui/user_create.go b/ui/user_create.go index e8d3d408dd8..855348542e3 100644 --- a/ui/user_create.go +++ b/ui/user_create.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showCreateUserPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/user_edit.go b/ui/user_edit.go index f675f4b7c2c..6819f43dca8 100644 --- a/ui/user_edit.go +++ b/ui/user_edit.go @@ -1,16 +1,16 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) // EditUser shows the form to edit a user. diff --git a/ui/user_list.go b/ui/user_list.go index 9e9cce315e9..f3a9ed808ec 100644 --- a/ui/user_list.go +++ b/ui/user_list.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) showUsersPage(w http.ResponseWriter, r *http.Request) { diff --git a/ui/user_remove.go b/ui/user_remove.go index e6cc98479df..5f66d203fad 100644 --- a/ui/user_remove.go +++ b/ui/user_remove.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "errors" "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" ) func (h *handler) removeUser(w http.ResponseWriter, r *http.Request) { diff --git a/ui/user_save.go b/ui/user_save.go index 49827def933..848a9eb4cb5 100644 --- a/ui/user_save.go +++ b/ui/user_save.go @@ -1,20 +1,20 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "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" - "miniflux.app/validator" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/model" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" + "miniflux.app/v2/validator" ) func (h *handler) saveUser(w http.ResponseWriter, r *http.Request) { diff --git a/ui/user_update.go b/ui/user_update.go index abdbe92523f..fa3522c90a4 100644 --- a/ui/user_update.go +++ b/ui/user_update.go @@ -1,18 +1,18 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package ui // import "miniflux.app/ui" +package ui // import "miniflux.app/v2/ui" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/http/response/html" - "miniflux.app/http/route" - "miniflux.app/logger" - "miniflux.app/ui/form" - "miniflux.app/ui/session" - "miniflux.app/ui/view" + "miniflux.app/v2/http/request" + "miniflux.app/v2/http/response/html" + "miniflux.app/v2/http/route" + "miniflux.app/v2/logger" + "miniflux.app/v2/ui/form" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/view" ) func (h *handler) updateUser(w http.ResponseWriter, r *http.Request) { diff --git a/ui/view/view.go b/ui/view/view.go index d63deefa4e9..40ea93bb505 100644 --- a/ui/view/view.go +++ b/ui/view/view.go @@ -1,15 +1,15 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package view // import "miniflux.app/ui/view" +package view // import "miniflux.app/v2/ui/view" import ( "net/http" - "miniflux.app/http/request" - "miniflux.app/template" - "miniflux.app/ui/session" - "miniflux.app/ui/static" + "miniflux.app/v2/http/request" + "miniflux.app/v2/template" + "miniflux.app/v2/ui/session" + "miniflux.app/v2/ui/static" ) // View wraps template argument building. diff --git a/url/url.go b/url/url.go index 2806572a476..9357baa405a 100644 --- a/url/url.go +++ b/url/url.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package url // import "miniflux.app/url" +package url // import "miniflux.app/v2/url" import ( "fmt" diff --git a/url/url_test.go b/url/url_test.go index 5d3d2ccc8a9..e1e5ae604d5 100644 --- a/url/url_test.go +++ b/url/url_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package url // import "miniflux.app/url" +package url // import "miniflux.app/v2/url" import "testing" diff --git a/validator/category.go b/validator/category.go index b425517690f..8db71a04b18 100644 --- a/validator/category.go +++ b/validator/category.go @@ -1,11 +1,11 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package validator // import "miniflux.app/validator" +package validator // import "miniflux.app/v2/validator" import ( - "miniflux.app/model" - "miniflux.app/storage" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" ) // ValidateCategoryCreation validates category creation. diff --git a/validator/entry.go b/validator/entry.go index 2d4c7eb27f2..c1d5908e96f 100644 --- a/validator/entry.go +++ b/validator/entry.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package validator // import "miniflux.app/validator" +package validator // import "miniflux.app/v2/validator" import ( "fmt" - "miniflux.app/model" + "miniflux.app/v2/model" ) // ValidateEntriesStatusUpdateRequest validates a status update for a list of entries. diff --git a/validator/entry_test.go b/validator/entry_test.go index 2022ad718d6..74f694684b5 100644 --- a/validator/entry_test.go +++ b/validator/entry_test.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package validator // import "miniflux.app/validator" +package validator // import "miniflux.app/v2/validator" import ( "testing" - "miniflux.app/model" + "miniflux.app/v2/model" ) func TestValidateEntriesStatusUpdateRequest(t *testing.T) { diff --git a/validator/feed.go b/validator/feed.go index 89f086ca9a7..612725ee2e1 100644 --- a/validator/feed.go +++ b/validator/feed.go @@ -1,11 +1,11 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package validator // import "miniflux.app/validator" +package validator // import "miniflux.app/v2/validator" import ( - "miniflux.app/model" - "miniflux.app/storage" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" ) // ValidateFeedCreation validates feed creation. diff --git a/validator/subscription.go b/validator/subscription.go index adfda3422cd..68c70ceadb2 100644 --- a/validator/subscription.go +++ b/validator/subscription.go @@ -1,9 +1,9 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package validator // import "miniflux.app/validator" +package validator // import "miniflux.app/v2/validator" -import "miniflux.app/model" +import "miniflux.app/v2/model" // ValidateSubscriptionDiscovery validates subscription discovery requests. func ValidateSubscriptionDiscovery(request *model.SubscriptionDiscoveryRequest) *ValidationError { diff --git a/validator/user.go b/validator/user.go index 7a552ee75da..e43fe416140 100644 --- a/validator/user.go +++ b/validator/user.go @@ -1,12 +1,12 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package validator // import "miniflux.app/validator" +package validator // import "miniflux.app/v2/validator" import ( - "miniflux.app/locale" - "miniflux.app/model" - "miniflux.app/storage" + "miniflux.app/v2/locale" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" ) // ValidateUserCreationWithPassword validates user creation with a password. diff --git a/validator/validator.go b/validator/validator.go index 4ef0a586d23..b08186c648c 100644 --- a/validator/validator.go +++ b/validator/validator.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package validator // import "miniflux.app/validator" +package validator // import "miniflux.app/v2/validator" import ( "errors" @@ -9,7 +9,7 @@ import ( "net/url" "regexp" - "miniflux.app/locale" + "miniflux.app/v2/locale" ) // ValidationError represents a validation error. diff --git a/validator/validator_test.go b/validator/validator_test.go index fd72b4f954d..62f9db480a1 100644 --- a/validator/validator_test.go +++ b/validator/validator_test.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package validator // import "miniflux.app/validator" +package validator // import "miniflux.app/v2/validator" import "testing" diff --git a/version/version.go b/version/version.go index c449404866e..4c6e082fa86 100644 --- a/version/version.go +++ b/version/version.go @@ -1,7 +1,7 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package version // import "miniflux.app/version" +package version // import "miniflux.app/v2/version" // Variables populated at build time. var ( diff --git a/worker/pool.go b/worker/pool.go index b914cc2098d..656964a4712 100644 --- a/worker/pool.go +++ b/worker/pool.go @@ -1,11 +1,11 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package worker // import "miniflux.app/worker" +package worker // import "miniflux.app/v2/worker" import ( - "miniflux.app/model" - "miniflux.app/storage" + "miniflux.app/v2/model" + "miniflux.app/v2/storage" ) // Pool handles a pool of workers. diff --git a/worker/worker.go b/worker/worker.go index 4075ffdb6b6..fd65dc0d3bd 100644 --- a/worker/worker.go +++ b/worker/worker.go @@ -1,17 +1,17 @@ // SPDX-FileCopyrightText: Copyright The Miniflux Authors. All rights reserved. // SPDX-License-Identifier: Apache-2.0 -package worker // import "miniflux.app/worker" +package worker // import "miniflux.app/v2/worker" import ( "time" - "miniflux.app/config" - "miniflux.app/logger" - "miniflux.app/metric" - "miniflux.app/model" - feedHandler "miniflux.app/reader/handler" - "miniflux.app/storage" + "miniflux.app/v2/config" + "miniflux.app/v2/logger" + "miniflux.app/v2/metric" + "miniflux.app/v2/model" + feedHandler "miniflux.app/v2/reader/handler" + "miniflux.app/v2/storage" ) // Worker refreshes a feed in the background.