Use canonical imports

pull/209/head
Frédéric Guillot 6 years ago
parent 7f2612d9a6
commit dbcc5d8a97
  1. 1
      .travis.yml
  2. 14
      Makefile
  3. 2
      README.md
  4. 8
      api/category.go
  5. 6
      api/controller.go
  6. 2
      api/doc.go
  7. 12
      api/entry.go
  8. 8
      api/feed.go
  9. 8
      api/icon.go
  10. 10
      api/opml.go
  11. 4
      api/payload.go
  12. 4
      api/payload_test.go
  13. 6
      api/subscription.go
  14. 8
      api/user.go
  15. 2
      cli/ask_credentials.go
  16. 14
      cli/cli.go
  17. 6
      cli/create_admin.go
  18. 2
      cli/doc.go
  19. 4
      cli/flush_sessions.go
  20. 4
      cli/info.go
  21. 4
      cli/reset_password.go
  22. 4
      config/config.go
  23. 2
      config/config_test.go
  24. 2
      config/doc.go
  25. 2
      crypto/crypto.go
  26. 2
      crypto/doc.go
  27. 14
      daemon/daemon.go
  28. 2
      daemon/doc.go
  29. 22
      daemon/routes.go
  30. 14
      daemon/server.go
  31. 2
      database/database.go
  32. 4
      database/migration.go
  33. 2
      database/sql.go
  34. 4
      doc.go
  35. 2
      errors/doc.go
  36. 4
      errors/errors.go
  37. 2
      fever/doc.go
  38. 18
      fever/fever.go
  39. 2
      filter/doc.go
  40. 8
      filter/image_proxy_filter.go
  41. 4
      filter/image_proxy_filter_test.go
  42. 29
      generate.go
  43. 10
      http/client/client.go
  44. 4
      http/client/response.go
  45. 2
      http/client/response_test.go
  46. 4
      http/context/context.go
  47. 2
      http/cookie/cookie.go
  48. 2
      http/request/request.go
  49. 2
      http/request/request_test.go
  50. 6
      http/response/html/html.go
  51. 6
      http/response/json/json.go
  52. 2
      http/response/response.go
  53. 2
      http/response/xml/xml.go
  54. 4
      http/route/route.go
  55. 2
      integration/doc.go
  56. 4
      integration/instapaper/instapaper.go
  57. 18
      integration/integration.go
  58. 4
      integration/nunuxkeeper/nunuxkeeper.go
  59. 4
      integration/pinboard/pinboard.go
  60. 4
      integration/pocket/connector.go
  61. 4
      integration/pocket/pocket.go
  62. 4
      integration/wallabag/wallabag.go
  63. 2
      locale/doc.go
  64. 2
      locale/language.go
  65. 4
      locale/locale.go
  66. 2
      locale/locale_test.go
  67. 2
      locale/plurals.go
  68. 2
      locale/translations.go
  69. 2
      locale/translator.go
  70. 2
      logger/doc.go
  71. 2
      logger/logger.go
  72. 4
      main.go
  73. 12
      middleware/app_session.go
  74. 6
      middleware/basic_auth.go
  75. 2
      middleware/common_headers.go
  76. 2
      middleware/context_keys.go
  77. 6
      middleware/fever.go
  78. 2
      middleware/header_config.go
  79. 6
      middleware/logging.go
  80. 6
      middleware/middleware.go
  81. 14
      middleware/user_session.go
  82. 2
      model/app_session.go
  83. 2
      model/category.go
  84. 2
      model/category_test.go
  85. 2
      model/doc.go
  86. 2
      model/enclosure.go
  87. 2
      model/entry.go
  88. 2
      model/entry_test.go
  89. 2
      model/feed.go
  90. 2
      model/icon.go
  91. 2
      model/integration.go
  92. 2
      model/job.go
  93. 4
      model/theme.go
  94. 2
      model/theme_test.go
  95. 4
      model/user.go
  96. 4
      model/user_session.go
  97. 2
      model/user_test.go
  98. 2
      oauth2/doc.go
  99. 2
      oauth2/google.go
  100. 2
      oauth2/manager.go
  101. Some files were not shown because too many files have changed in this diff Show More

@ -5,6 +5,7 @@ services:
addons:
postgresql: "9.4"
language: go
go_import_path: "miniflux.app"
go:
- "1.10"
before_install:

@ -8,22 +8,22 @@ DB_URL := postgres://postgres:postgres@localhost/miniflux_test?sslmode=disable
linux:
@ go generate
@ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go
@ GOOS=linux GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-amd64 main.go
linux-arm:
@ go generate
@ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go
@ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go
@ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go
@ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go
@ GOOS=linux GOARCH=arm64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv8 main.go
@ GOOS=linux GOARCH=arm GOARM=7 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv7 main.go
@ GOOS=linux GOARCH=arm GOARM=6 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv6 main.go
@ GOOS=linux GOARCH=arm GOARM=5 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-linux-armv5 main.go
darwin:
@ go generate
@ GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'github.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go
@ GOOS=darwin GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-darwin-amd64 main.go
freebsd:
@ go generate
@ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'githug.com/miniflux/miniflux/version.Version=$(VERSION)' -X 'github.com/miniflux/miniflux/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go
@ GOOS=freebsd GOARCH=amd64 go build -ldflags="-s -w -X 'miniflux.app/version.Version=$(VERSION)' -X 'miniflux.app/version.BuildDate=$(BUILD_DATE)'" -o $(APP)-freebsd-amd64 main.go
build: linux linux-arm darwin freebsd

@ -1,7 +1,7 @@
Miniflux 2
==========
[![Build Status](https://travis-ci.org/miniflux/miniflux.svg?branch=master)](https://travis-ci.org/miniflux/miniflux)
[![GoDoc](https://godoc.org/github.com/miniflux/miniflux?status.svg)](https://godoc.org/github.com/miniflux/miniflux)
[![GoDoc](https://godoc.org/miniflux.app?status.svg)](https://godoc.org/miniflux.app)
[![Documentation Status](https://readthedocs.org/projects/miniflux/badge/?version=latest)](https://docs.miniflux.app/)
Miniflux is a minimalist and opinionated feed reader:

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"errors"
"net/http"
"github.com/miniflux/miniflux/http/context"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/http/response/json"
"miniflux.app/http/context"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
)
// CreateCategory is the API handler to create a new category.

@ -2,11 +2,11 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"github.com/miniflux/miniflux/reader/feed"
"github.com/miniflux/miniflux/storage"
"miniflux.app/reader/feed"
"miniflux.app/storage"
)
// Controller holds all handlers for the API.

@ -7,4 +7,4 @@
Package api implements API endpoints for Miniflux application.
*/
package api
package api // import "miniflux.app/api"

@ -2,18 +2,18 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"errors"
"net/http"
"time"
"github.com/miniflux/miniflux/http/context"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/http/response/json"
"github.com/miniflux/miniflux/model"
"github.com/miniflux/miniflux/storage"
"miniflux.app/http/context"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/model"
"miniflux.app/storage"
)
// GetFeedEntry is the API handler to get a single feed entry.

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"errors"
"net/http"
"github.com/miniflux/miniflux/http/context"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/http/response/json"
"miniflux.app/http/context"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
)
// CreateFeed is the API handler to create a new feed.

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"errors"
"net/http"
"github.com/miniflux/miniflux/http/context"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/http/response/json"
"miniflux.app/http/context"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
)
// FeedIcon returns a feed icon.

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"net/http"
"github.com/miniflux/miniflux/http/context"
"github.com/miniflux/miniflux/http/response/json"
"github.com/miniflux/miniflux/http/response/xml"
"github.com/miniflux/miniflux/reader/opml"
"miniflux.app/http/context"
"miniflux.app/http/response/json"
"miniflux.app/http/response/xml"
"miniflux.app/reader/opml"
)
// Export is the API handler that export feeds to OPML.

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"encoding/json"
"fmt"
"io"
"github.com/miniflux/miniflux/model"
"miniflux.app/model"
)
type feedIcon struct {

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"testing"
"github.com/miniflux/miniflux/model"
"miniflux.app/model"
)
func TestUpdateFeedURL(t *testing.T) {

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"errors"
"fmt"
"net/http"
"github.com/miniflux/miniflux/http/response/json"
"github.com/miniflux/miniflux/reader/subscription"
"miniflux.app/http/response/json"
"miniflux.app/reader/subscription"
)
// GetSubscriptions is the API handler to find subscriptions.

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package api
package api // import "miniflux.app/api"
import (
"errors"
"net/http"
"github.com/miniflux/miniflux/http/context"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/http/response/json"
"miniflux.app/http/context"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
)
// CurrentUser is the API handler to retrieve the authenticated user.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package cli
package cli // import "miniflux.app/cli"
import (
"bufio"

@ -2,18 +2,18 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package cli
package cli // import "miniflux.app/cli"
import (
"flag"
"fmt"
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/daemon"
"github.com/miniflux/miniflux/database"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/storage"
"github.com/miniflux/miniflux/version"
"miniflux.app/config"
"miniflux.app/daemon"
"miniflux.app/database"
"miniflux.app/logger"
"miniflux.app/storage"
"miniflux.app/version"
)
// Parse parses command line arguments.

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package cli
package cli // import "miniflux.app/cli"
import (
"fmt"
"os"
"github.com/miniflux/miniflux/model"
"github.com/miniflux/miniflux/storage"
"miniflux.app/model"
"miniflux.app/storage"
)
func createAdmin(store *storage.Storage) {

@ -7,4 +7,4 @@
Package cli implements command line arguments for Miniflux application.
*/
package cli
package cli // import "miniflux.app/cli"

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package cli
package cli // import "miniflux.app/cli"
import (
"fmt"
"os"
"github.com/miniflux/miniflux/storage"
"miniflux.app/storage"
)
func flushSessions(store *storage.Storage) {

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package cli
package cli // import "miniflux.app/cli"
import (
"fmt"
"runtime"
"github.com/miniflux/miniflux/version"
"miniflux.app/version"
)
func info() {

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package cli
package cli // import "miniflux.app/cli"
import (
"fmt"
"os"
"github.com/miniflux/miniflux/storage"
"miniflux.app/storage"
)
func resetPassword(store *storage.Storage) {

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package config
package config // import "miniflux.app/config"
import (
"net/url"
@ -10,7 +10,7 @@ import (
"strconv"
"strings"
"github.com/miniflux/miniflux/logger"
"miniflux.app/logger"
)
const (

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package config
package config // import "miniflux.app/config"
import (
"os"

@ -7,4 +7,4 @@
Package config handles configuration values for Miniflux application.
*/
package config
package config // import "miniflux.app/config"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package crypto
package crypto // import "miniflux.app/crypto"
import (
"crypto/rand"

@ -7,4 +7,4 @@
Package crypto implements helpers related to cryptography.
*/
package crypto
package crypto // import "miniflux.app/crypto"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package daemon
package daemon // import "miniflux.app/daemon"
import (
"context"
@ -12,12 +12,12 @@ import (
"syscall"
"time"
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/locale"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/reader/feed"
"github.com/miniflux/miniflux/scheduler"
"github.com/miniflux/miniflux/storage"
"miniflux.app/config"
"miniflux.app/locale"
"miniflux.app/logger"
"miniflux.app/reader/feed"
"miniflux.app/scheduler"
"miniflux.app/storage"
)
// Run starts the daemon.

@ -7,4 +7,4 @@
Package daemon handles the main application process.
*/
package daemon
package daemon // import "miniflux.app/daemon"

@ -2,21 +2,21 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package daemon
package daemon // import "miniflux.app/daemon"
import (
"net/http"
"github.com/miniflux/miniflux/api"
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/fever"
"github.com/miniflux/miniflux/locale"
"github.com/miniflux/miniflux/middleware"
"github.com/miniflux/miniflux/reader/feed"
"github.com/miniflux/miniflux/scheduler"
"github.com/miniflux/miniflux/storage"
"github.com/miniflux/miniflux/template"
"github.com/miniflux/miniflux/ui"
"miniflux.app/api"
"miniflux.app/config"
"miniflux.app/fever"
"miniflux.app/locale"
"miniflux.app/middleware"
"miniflux.app/reader/feed"
"miniflux.app/scheduler"
"miniflux.app/storage"
"miniflux.app/template"
"miniflux.app/ui"
"github.com/gorilla/mux"
)

@ -2,19 +2,19 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package daemon
package daemon // import "miniflux.app/daemon"
import (
"crypto/tls"
"net/http"
"time"
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/locale"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/reader/feed"
"github.com/miniflux/miniflux/scheduler"
"github.com/miniflux/miniflux/storage"
"miniflux.app/config"
"miniflux.app/locale"
"miniflux.app/logger"
"miniflux.app/reader/feed"
"miniflux.app/scheduler"
"miniflux.app/storage"
"golang.org/x/crypto/acme/autocert"
)

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package database
package database // import "miniflux.app/database"
import (
"database/sql"

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package database
package database // import "miniflux.app/database"
import (
"database/sql"
"fmt"
"strconv"
"github.com/miniflux/miniflux/logger"
"miniflux.app/logger"
)
const schemaVersion = 20

@ -1,6 +1,6 @@
// Code generated by go generate; DO NOT EDIT.
package database
package database // import "miniflux.app/database"
var SqlMap = map[string]string{
"schema_version_1": `create table schema_version (

@ -4,7 +4,7 @@
/*
Package main implements a feed reader application.
Miniflux is a feed reader application.
*/
package main
package main // import "miniflux.app"

@ -7,4 +7,4 @@
Package errors handles localized errors.
*/
package errors
package errors // import "miniflux.app/errors"

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package errors
package errors // import "miniflux.app/errors"
import (
"fmt"
"github.com/miniflux/miniflux/locale"
"miniflux.app/locale"
)
// LocalizedError represents an error than could be translated to another language.

@ -7,4 +7,4 @@
Package fever implements Fever API endpoints.
*/
package fever
package fever // import "miniflux.app/fever"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package fever
package fever // import "miniflux.app/fever"
import (
"net/http"
@ -10,14 +10,14 @@ import (
"strings"
"time"
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/http/context"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/http/response/json"
"github.com/miniflux/miniflux/integration"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/model"
"github.com/miniflux/miniflux/storage"
"miniflux.app/config"
"miniflux.app/http/context"
"miniflux.app/http/request"
"miniflux.app/http/response/json"
"miniflux.app/integration"
"miniflux.app/logger"
"miniflux.app/model"
"miniflux.app/storage"
)
type baseResponse struct {

@ -7,4 +7,4 @@
Package filter implements a content filter to rewrite image links.
*/
package filter
package filter // import "miniflux.app/filter"

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package filter
package filter // import "miniflux.app/filter"
import (
"encoding/base64"
"strings"
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/http/route"
"github.com/miniflux/miniflux/url"
"miniflux.app/config"
"miniflux.app/http/route"
"miniflux.app/url"
"github.com/PuerkitoBio/goquery"
"github.com/gorilla/mux"

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package filter
package filter // import "miniflux.app/filter"
import (
"net/http"
"os"
"testing"
"github.com/miniflux/miniflux/config"
"miniflux.app/config"
"github.com/gorilla/mux"
)

@ -24,7 +24,7 @@ import (
const tpl = `// Code generated by go generate; DO NOT EDIT.
package {{ .Package }}
package {{ .Package }} // import "miniflux.app/{{ .ImportPath }}"
var {{ .Map }} = map[string]string{
{{ range $constant, $content := .Files }}` + "\t" + `"{{ $constant }}": ` + "`{{ $content }}`" + `,
@ -38,9 +38,11 @@ var {{ .Map }}Checksums = map[string]string{
var bundleTpl = template.Must(template.New("").Parse(tpl))
type Bundle struct {
Package, Map string
Files map[string]string
Checksums map[string]string
Package string
Map string
ImportPath string
Files map[string]string
Checksums map[string]string
}
func (b *Bundle) Write(filename string) {
@ -53,12 +55,13 @@ func (b *Bundle) Write(filename string) {
bundleTpl.Execute(f, b)
}
func NewBundle(pkg, mapName string) *Bundle {
func NewBundle(pkg, mapName, importPath string) *Bundle {
return &Bundle{
Package: pkg,
Map: mapName,
Files: make(map[string]string),
Checksums: make(map[string]string),
Package: pkg,
Map: mapName,
ImportPath: importPath,
Files: make(map[string]string),
Checksums: make(map[string]string),
}
}
@ -97,7 +100,7 @@ func concat(files []string) string {
}
func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefixes, suffixes map[string]string) {
bundle := NewBundle("static", "Javascripts")
bundle := NewBundle("static", "Javascripts", "ui/static")
m := minify.New()
m.AddFunc("text/javascript", js.Minify)
@ -127,7 +130,7 @@ func generateJSBundle(bundleFile string, bundleFiles map[string][]string, prefix
}
func generateCSSBundle(bundleFile string, themes map[string][]string) {
bundle := NewBundle("static", "Stylesheets")
bundle := NewBundle("static", "Stylesheets", "ui/static")
m := minify.New()
m.AddFunc("text/css", css.Minify)
@ -146,7 +149,7 @@ func generateCSSBundle(bundleFile string, themes map[string][]string) {
}
func generateBinaryBundle(bundleFile string, srcFiles []string) {
bundle := NewBundle("static", "Binaries")
bundle := NewBundle("static", "Binaries", "ui/static")
for _, srcFile := range srcFiles {
data := readFile(srcFile)
@ -161,7 +164,7 @@ func generateBinaryBundle(bundleFile string, srcFiles []string) {
}
func generateBundle(bundleFile, pkg, mapName string, srcFiles []string) {
bundle := NewBundle(pkg, mapName)
bundle := NewBundle(pkg, mapName, pkg)
for _, srcFile := range srcFiles {
data := readFile(srcFile)

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package client
package client // import "miniflux.app/http/client"
import (
"bytes"
@ -18,10 +18,10 @@ import (
"strings"
"time"
"github.com/miniflux/miniflux/errors"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/timer"
"github.com/miniflux/miniflux/version"
"miniflux.app/errors"
"miniflux.app/logger"
"miniflux.app/timer"
"miniflux.app/version"
)
const (

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package client
package client // import "miniflux.app/http/client"
import (
"io"
"mime"
"strings"
"github.com/miniflux/miniflux/logger"
"golang.org/x/net/html/charset"
"miniflux.app/logger"
)
// Response wraps a server response.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package client
package client // import "miniflux.app/http/client"
import "testing"

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package context
package context // import "miniflux.app/http/context"
import (
"net/http"
"github.com/miniflux/miniflux/middleware"
"miniflux.app/middleware"
)
// Context contains helper functions related to the current request.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package cookie
package cookie // import "miniflux.app/http/cookie"
import (
"net/http"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package request
package request // import "miniflux.app/http/request"
import (
"fmt"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package request
package request // import "miniflux.app/http/request"
import (
"net/http"

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package html
package html // import "miniflux.app/http/response/html"
import (
"net/http"
"github.com/miniflux/miniflux/http/response"
"github.com/miniflux/miniflux/logger"
"miniflux.app/http/response"
"miniflux.app/logger"
)
// OK writes a standard HTML response.

@ -2,15 +2,15 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package json
package json // import "miniflux.app/http/response/json"
import (
"encoding/json"
"errors"
"net/http"
"github.com/miniflux/miniflux/http/response"
"github.com/miniflux/miniflux/logger"
"miniflux.app/http/response"
"miniflux.app/logger"
)
// OK sends a JSON response with the status code 200.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package response
package response // import "miniflux.app/http/response"
import (
"compress/flate"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package xml
package xml // import "miniflux.app/http/response/xml"
import (
"fmt"

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package route
package route // import "miniflux.app/http/route"
import (
"strconv"
"github.com/gorilla/mux"
"github.com/miniflux/miniflux/logger"
"miniflux.app/logger"
)
// Path returns the defined route based on given arguments.

@ -7,4 +7,4 @@
Package integration implements API clients for third-party services.
*/
package integration
package integration // import "miniflux.app/integration"

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package instapaper
package instapaper // import "miniflux.app/integration/instapaper"
import (
"fmt"
"net/url"
"github.com/miniflux/miniflux/http/client"
"miniflux.app/http/client"
)
// Client represents an Instapaper client.

@ -2,17 +2,17 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package integration
package integration // import "miniflux.app/integration"
import (
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/integration/instapaper"
"github.com/miniflux/miniflux/integration/nunuxkeeper"
"github.com/miniflux/miniflux/integration/pinboard"
"github.com/miniflux/miniflux/integration/pocket"
"github.com/miniflux/miniflux/integration/wallabag"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/model"
"miniflux.app/config"
"miniflux.app/integration/instapaper"
"miniflux.app/integration/nunuxkeeper"
"miniflux.app/integration/pinboard"
"miniflux.app/integration/pocket"
"miniflux.app/integration/wallabag"
"miniflux.app/logger"
"miniflux.app/model"
)
// SendEntry send the entry to the activated providers.

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package nunuxkeeper
package nunuxkeeper // import "miniflux.app/integration/nunuxkeeper"
import (
"fmt"
"net/url"
"path"
"github.com/miniflux/miniflux/http/client"
"miniflux.app/http/client"
)
// Document structure of a Nununx Keeper document

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package pinboard
package pinboard // import "miniflux.app/integration/pinboard"
import (
"fmt"
"net/url"
"github.com/miniflux/miniflux/http/client"
"miniflux.app/http/client"
)
// Client represents a Pinboard client.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package pocket
package pocket // import "miniflux.app/integration/pocket"
import (
"errors"
@ -10,7 +10,7 @@ import (
"io/ioutil"
"net/url"
"github.com/miniflux/miniflux/http/client"
"miniflux.app/http/client"
)
// Connector manages the authorization flow with Pocket to get a personal access token.

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package pocket
package pocket // import "miniflux.app/integration/pocket"
import (
"fmt"
"github.com/miniflux/miniflux/http/client"
"miniflux.app/http/client"
)
// Client represents a Pocket client.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package wallabag
package wallabag // import "miniflux.app/integration/wallabag"
import (
"encoding/json"
@ -10,7 +10,7 @@ import (
"io"
"net/url"
"github.com/miniflux/miniflux/http/client"
"miniflux.app/http/client"
)
// Client represents a Wallabag client.

@ -7,4 +7,4 @@
Package locale handles the internationalization of the application.
*/
package locale
package locale // import "miniflux.app/locale"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package locale
package locale // import "miniflux.app/locale"
import "fmt"

@ -2,9 +2,9 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package locale
package locale // import "miniflux.app/locale"
import "github.com/miniflux/miniflux/logger"
import "miniflux.app/logger"
// Translation is the translation mapping table.
type Translation map[string]interface{}

@ -1,7 +1,7 @@
// Copyright 2017 Frédéric Guillot. All rights reserved.
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package locale
package locale // import "miniflux.app/locale"
import "testing"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package locale
package locale // import "miniflux.app/locale"
// See https://localization-guide.readthedocs.io/en/latest/l10n/pluralforms.html
// And http://www.unicode.org/cldr/charts/29/supplemental/language_plural_rules.html

@ -1,6 +1,6 @@
// Code generated by go generate; DO NOT EDIT.
package locale
package locale // import "miniflux.app/locale"
var translations = map[string]string{
"de_DE": `{

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package locale
package locale // import "miniflux.app/locale"
import (
"encoding/json"

@ -7,4 +7,4 @@
Package logger handles application log messages with different levels.
*/
package logger
package logger // import "miniflux.app/logger"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package logger
package logger // import "miniflux.app/logger"
import (
"fmt"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package main
package main // import "miniflux.app"
//go:generate go run generate.go
//go:generate gofmt -s -w database/sql.go
@ -14,7 +14,7 @@ package main
//go:generate gofmt -s -w locale/translations.go
import (
"github.com/miniflux/miniflux/cli"
"miniflux.app/cli"
)
func main() {

@ -2,18 +2,18 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
import (
"context"
"errors"
"net/http"
"github.com/miniflux/miniflux/http/cookie"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/http/response/html"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/model"
"miniflux.app/http/cookie"
"miniflux.app/http/request"
"miniflux.app/http/response/html"
"miniflux.app/logger"
"miniflux.app/model"
)
// AppSession handles application session middleware.

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
import (
"context"
"net/http"
"github.com/miniflux/miniflux/http/response/json"
"github.com/miniflux/miniflux/logger"
"miniflux.app/http/response/json"
"miniflux.app/logger"
)
// BasicAuth handles HTTP basic authentication.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
import (
"net/http"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
// ContextKey represents a context key.
type ContextKey struct {

@ -2,14 +2,14 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
import (
"context"
"net/http"
"github.com/miniflux/miniflux/http/response/json"
"github.com/miniflux/miniflux/logger"
"miniflux.app/http/response/json"
"miniflux.app/logger"
)
// FeverAuth handles Fever API authentication.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
import (
"net/http"

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
import (
"net/http"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/logger"
"miniflux.app/http/request"
"miniflux.app/logger"
)
// Logging logs the HTTP request.

@ -2,12 +2,12 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
import (
"github.com/gorilla/mux"
"github.com/miniflux/miniflux/config"
"github.com/miniflux/miniflux/storage"
"miniflux.app/config"
"miniflux.app/storage"
)
// Middleware handles different middleware handlers.

@ -2,18 +2,18 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package middleware
package middleware // import "miniflux.app/middleware"
import (
"context"
"net/http"
"github.com/miniflux/miniflux/http/cookie"
"github.com/miniflux/miniflux/http/request"
"github.com/miniflux/miniflux/http/response"
"github.com/miniflux/miniflux/http/route"
"github.com/miniflux/miniflux/logger"
"github.com/miniflux/miniflux/model"
"miniflux.app/http/cookie"
"miniflux.app/http/request"
"miniflux.app/http/response"
"miniflux.app/http/route"
"miniflux.app/logger"
"miniflux.app/model"
"github.com/gorilla/mux"
)

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import (
"database/sql/driver"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import (
"errors"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import "testing"

@ -7,4 +7,4 @@
Package model contains all data structures used by the application.
*/
package model
package model // import "miniflux.app/model"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
// Enclosure represents an attachment.
type Enclosure struct {

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import (
"fmt"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import "testing"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import (
"fmt"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import (
"encoding/base64"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
// Integration represents user integration settings.
type Integration struct {

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
// Job represents a payload sent to the processing queue.
type Job struct {

@ -2,9 +2,9 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import "github.com/miniflux/miniflux/errors"
import "miniflux.app/errors"
// Themes returns the list of available themes.
func Themes() map[string]string {

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import "testing"

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import (
"errors"
"time"
"github.com/miniflux/miniflux/timezone"
"miniflux.app/timezone"
)
// User represents a user in the system.

@ -2,13 +2,13 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import (
"fmt"
"time"
"github.com/miniflux/miniflux/timezone"
"miniflux.app/timezone"
)
// UserSession represents a user session in the system.

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package model
package model // import "miniflux.app/model"
import "testing"

@ -7,4 +7,4 @@
Package oauth2 abstracts different OAuth2 providers.
*/
package oauth2
package oauth2 // import "miniflux.app/oauth2"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package oauth2
package oauth2 // import "miniflux.app/oauth2"
import (
"context"

@ -2,7 +2,7 @@
// Use of this source code is governed by the Apache 2.0
// license that can be found in the LICENSE file.
package oauth2
package oauth2 // import "miniflux.app/oauth2"
import "errors"

Some files were not shown because too many files have changed in this diff Show More

Loading…
Cancel
Save