1
0
mirror of https://github.com/mattermost/focalboard.git synced 2025-01-11 18:13:52 +02:00

Product name

This commit is contained in:
Chen-I Lim 2021-01-26 14:13:46 -08:00
parent b1a6329f47
commit 3995cbd0e4
37 changed files with 80 additions and 80 deletions

View File

@ -11,9 +11,9 @@ ifeq ($(BUILD_NUMBER),)
BUILD_NUMBER := dev
endif
LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.BuildNumber=$(BUILD_NUMBER)"
LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.BuildDate=$(BUILD_DATE)"
LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.BuildHash=$(BUILD_HASH)"
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildNumber=$(BUILD_NUMBER)"
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildDate=$(BUILD_DATE)"
LDFLAGS += -X "github.com/mattermost/focalboard/server/model.BuildHash=$(BUILD_HASH)"
all: server
@ -31,21 +31,21 @@ ci: server-test
cd webapp; npm run cypress:ci
server:
$(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=dev")
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=dev")
cd server; go build -ldflags '$(LDFLAGS)' -o ../bin/octoserver ./main
server-mac:
mkdir -p bin/mac
$(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=mac")
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=mac")
cd server; env GOOS=darwin GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -o ../bin/mac/octoserver ./main
server-linux:
mkdir -p bin/linux
$(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=linux")
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=linux")
cd server; env GOOS=linux GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -o ../bin/linux/octoserver ./main
server-win:
$(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=win")
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=win")
cd server; env GOOS=windows GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -o ../bin/win/octoserver.exe ./main
server-linux-package: server-linux webapp
@ -61,21 +61,21 @@ server-linux-package: server-linux webapp
rm -rf package
server-single-user:
$(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=dev")
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=dev")
cd server; go build -ldflags '$(LDFLAGS)' -o ../bin/octoserver ./main --single-user
server-mac-single-user:
mkdir -p bin/mac
$(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=mac")
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=mac")
cd server; env GOOS=darwin GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -o ../bin/mac/octoserver ./main --single-user
server-linux-single-user:
mkdir -p bin/linux
$(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=linux")
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=linux")
cd server; env GOOS=linux GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -o ../bin/linux/octoserver ./main --single-user
server-win-single-user:
$(eval LDFLAGS += -X "github.com/mattermost/mattermost-octo-tasks/server/model.Edition=win")
$(eval LDFLAGS += -X "github.com/mattermost/focalboard/server/model.Edition=win")
cd server; env GOOS=windows GOARCH=amd64 go build -ldflags '$(LDFLAGS)' -o ../bin/octoserver.exe ./main --single-user
generate:

View File

@ -1,4 +1,4 @@
module github.com/mattermost/mattermost-octo-tasks/linux
module github.com/mattermost/focalboard/linux
go 1.15

View File

@ -13,9 +13,9 @@ import (
"time"
"github.com/gorilla/mux"
"github.com/mattermost/mattermost-octo-tasks/server/app"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/utils"
"github.com/mattermost/focalboard/server/app"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/utils"
)
// ----------------------------------------------------------------------------------------------------

View File

@ -12,9 +12,9 @@ import (
"time"
"github.com/gorilla/mux"
serverContext "github.com/mattermost/mattermost-octo-tasks/server/context"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/services/auth"
serverContext "github.com/mattermost/focalboard/server/context"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/services/auth"
)
type LoginData struct {

View File

@ -1,10 +1,10 @@
package app
import (
"github.com/mattermost/mattermost-octo-tasks/server/services/config"
"github.com/mattermost/mattermost-octo-tasks/server/services/store"
"github.com/mattermost/mattermost-octo-tasks/server/services/webhook"
"github.com/mattermost/mattermost-octo-tasks/server/ws"
"github.com/mattermost/focalboard/server/services/config"
"github.com/mattermost/focalboard/server/services/store"
"github.com/mattermost/focalboard/server/services/webhook"
"github.com/mattermost/focalboard/server/ws"
"github.com/mattermost/mattermost-server/v5/services/filesstore"
)

View File

@ -5,8 +5,8 @@ import (
"time"
"github.com/google/uuid"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/services/auth"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/services/auth"
"github.com/pkg/errors"
)

View File

@ -1,7 +1,7 @@
package app
import (
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
)
func (a *App) GetBlocks(parentID string, blockType string) ([]model.Block, error) {

View File

@ -5,10 +5,10 @@ import (
"testing"
"github.com/golang/mock/gomock"
"github.com/mattermost/mattermost-octo-tasks/server/services/config"
"github.com/mattermost/mattermost-octo-tasks/server/services/store/mockstore"
"github.com/mattermost/mattermost-octo-tasks/server/services/webhook"
"github.com/mattermost/mattermost-octo-tasks/server/ws"
"github.com/mattermost/focalboard/server/services/config"
"github.com/mattermost/focalboard/server/services/store/mockstore"
"github.com/mattermost/focalboard/server/services/webhook"
"github.com/mattermost/focalboard/server/ws"
"github.com/mattermost/mattermost-server/v5/services/filesstore/mocks"
"github.com/stretchr/testify/require"
)

View File

@ -7,7 +7,7 @@ import (
"path/filepath"
"strings"
"github.com/mattermost/mattermost-octo-tasks/server/utils"
"github.com/mattermost/focalboard/server/utils"
)
func (a *App) SaveFile(reader io.Reader, filename string) (string, error) {

View File

@ -3,7 +3,7 @@ package app
import (
"database/sql"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
)
func (a *App) GetSharing(rootID string) (*model.Sharing, error) {

View File

@ -4,8 +4,8 @@ import (
"database/sql"
"log"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/utils"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/utils"
)
func (a *App) GetRootWorkspace() (*model.Workspace, error) {

View File

@ -9,7 +9,7 @@ import (
"net/http"
"strings"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
)
const (

View File

@ -1,4 +1,4 @@
module github.com/mattermost/mattermost-octo-tasks/server
module github.com/mattermost/focalboard/server
go 1.15

View File

@ -1,4 +1,4 @@
module github.com/mattermost/mattermost-octo-tasks/server
module github.com/mattermost/focalboard/server
go 1.15

View File

@ -3,8 +3,8 @@ package integrationtests
import (
"testing"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/utils"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/utils"
"github.com/stretchr/testify/require"
)

View File

@ -5,9 +5,9 @@ import (
"net/http"
"time"
"github.com/mattermost/mattermost-octo-tasks/server/client"
"github.com/mattermost/mattermost-octo-tasks/server/server"
"github.com/mattermost/mattermost-octo-tasks/server/services/config"
"github.com/mattermost/focalboard/server/client"
"github.com/mattermost/focalboard/server/server"
"github.com/mattermost/focalboard/server/services/config"
)
type TestHelper struct {

View File

@ -3,8 +3,8 @@ package integrationtests
import (
"testing"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/utils"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/utils"
"github.com/stretchr/testify/require"
)

View File

@ -7,9 +7,9 @@ import (
"syscall"
"time"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/server"
"github.com/mattermost/mattermost-octo-tasks/server/services/config"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/server"
"github.com/mattermost/focalboard/server/services/config"
)
// ----------------------------------------------------------------------------------------------------

View File

@ -15,18 +15,18 @@ import (
"github.com/gorilla/mux"
"go.uber.org/zap"
"github.com/mattermost/mattermost-octo-tasks/server/api"
"github.com/mattermost/mattermost-octo-tasks/server/app"
"github.com/mattermost/mattermost-octo-tasks/server/context"
appModel "github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/services/config"
"github.com/mattermost/mattermost-octo-tasks/server/services/scheduler"
"github.com/mattermost/mattermost-octo-tasks/server/services/store"
"github.com/mattermost/mattermost-octo-tasks/server/services/store/sqlstore"
"github.com/mattermost/mattermost-octo-tasks/server/services/telemetry"
"github.com/mattermost/mattermost-octo-tasks/server/services/webhook"
"github.com/mattermost/mattermost-octo-tasks/server/web"
"github.com/mattermost/mattermost-octo-tasks/server/ws"
"github.com/mattermost/focalboard/server/api"
"github.com/mattermost/focalboard/server/app"
"github.com/mattermost/focalboard/server/context"
appModel "github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/services/config"
"github.com/mattermost/focalboard/server/services/scheduler"
"github.com/mattermost/focalboard/server/services/store"
"github.com/mattermost/focalboard/server/services/store/sqlstore"
"github.com/mattermost/focalboard/server/services/telemetry"
"github.com/mattermost/focalboard/server/services/webhook"
"github.com/mattermost/focalboard/server/web"
"github.com/mattermost/focalboard/server/ws"
"github.com/mattermost/mattermost-server/utils"
"github.com/mattermost/mattermost-server/v5/model"
"github.com/mattermost/mattermost-server/v5/services/filesstore"

View File

@ -1,12 +1,12 @@
// Code generated by MockGen. DO NOT EDIT.
// Source: github.com/mattermost/mattermost-octo-tasks/server/services/store (interfaces: Store)
// Source: github.com/mattermost/focalboard/server/services/store (interfaces: Store)
// Package mockstore is a generated GoMock package.
package mockstore
import (
gomock "github.com/golang/mock/gomock"
model "github.com/mattermost/mattermost-octo-tasks/server/model"
model "github.com/mattermost/focalboard/server/model"
reflect "reflect"
)

View File

@ -9,7 +9,7 @@ import (
sq "github.com/Masterminds/squirrel"
_ "github.com/lib/pq"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
_ "github.com/mattn/go-sqlite3"
)

View File

@ -4,7 +4,7 @@ import (
"testing"
"time"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
"github.com/stretchr/testify/require"
)

View File

@ -4,8 +4,8 @@ import (
"encoding/json"
"log"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/services/store/sqlstore/initializations"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/services/store/sqlstore/initializations"
)
// InitializeTemplates imports default templates if the blocks table is empty

View File

@ -11,8 +11,8 @@ import (
_ "github.com/golang-migrate/migrate/v4/source/file"
bindata "github.com/golang-migrate/migrate/v4/source/go_bindata"
_ "github.com/lib/pq"
pgmigrations "github.com/mattermost/mattermost-octo-tasks/server/services/store/sqlstore/migrations/postgres"
"github.com/mattermost/mattermost-octo-tasks/server/services/store/sqlstore/migrations/sqlite"
pgmigrations "github.com/mattermost/focalboard/server/services/store/sqlstore/migrations/postgres"
"github.com/mattermost/focalboard/server/services/store/sqlstore/migrations/sqlite"
)
func (s *SQLStore) Migrate() error {

View File

@ -5,7 +5,7 @@ import (
"time"
sq "github.com/Masterminds/squirrel"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
)
func (s *SQLStore) GetSession(token string, expireTime int64) (*model.Session, error) {

View File

@ -3,7 +3,7 @@ package sqlstore
import (
"time"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
sq "github.com/Masterminds/squirrel"
)

View File

@ -4,7 +4,7 @@ import (
"os"
"testing"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
"github.com/stretchr/testify/require"
)

View File

@ -4,7 +4,7 @@ import (
"encoding/json"
"time"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
sq "github.com/Masterminds/squirrel"
)

View File

@ -5,7 +5,7 @@ import (
"log"
"time"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
sq "github.com/Masterminds/squirrel"
)

View File

@ -1,7 +1,7 @@
//go:generate mockgen -destination=mockstore/mockstore.go -package mockstore . Store
package store
import "github.com/mattermost/mattermost-octo-tasks/server/model"
import "github.com/mattermost/focalboard/server/model"
// Store represents the abstraction of the data storage.
type Store interface {

View File

@ -9,7 +9,7 @@ import (
"strings"
"time"
"github.com/mattermost/mattermost-octo-tasks/server/services/scheduler"
"github.com/mattermost/focalboard/server/services/scheduler"
rudder "github.com/rudderlabs/analytics-go"
)

View File

@ -6,8 +6,8 @@ import (
"log"
"net/http"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/mattermost-octo-tasks/server/services/config"
"github.com/mattermost/focalboard/server/model"
"github.com/mattermost/focalboard/server/services/config"
)
// NotifyUpdate calls webhooks

View File

@ -9,7 +9,7 @@ import (
"github.com/gorilla/mux"
"github.com/gorilla/websocket"
"github.com/mattermost/mattermost-octo-tasks/server/model"
"github.com/mattermost/focalboard/server/model"
)
// RegisterRoutes registers routes.

View File

@ -17,7 +17,7 @@ pygmentsStyle = "manni"
author = ""
description = ""
email = ""
ghrepo = "https://github.com/mattermost/mattermost-octo-tasks/tree/main/website"
ghrepo = "https://github.com/mattermost/focalboard/tree/main/website"
[params.mailinglist]
enable = false

View File

@ -11,7 +11,7 @@ We're very glad you want to check it out and perhaps contribute code our reposit
Our goal is to make your experience as great as possible. Follow these simple steps to contribute:
{{< bignumber number="1" title="Set up your developer machine" content="Just [clone the project from GitHub](https://github.com/mattermost/mattermost-octo-tasks) and follow the steps in the README to build." >}}
{{< bignumber number="1" title="Set up your developer machine" content="Just [clone the project from GitHub](https://github.com/mattermost/focalboard) and follow the steps in the README to build." >}}
{{< bignumber number="2" title="Select a ticket" content="Find [help wanted tickets in GitHub](https://mattermost.com/pl/help-wanted). Comment to let everyone know you’re working on it. If there’s no ticket for what you want to work on see [contributions without a ticket.](/contribute/getting-started/contributions-without-ticket)" >}}

View File

@ -17,7 +17,7 @@ Follow this checklist for submitting a pull request (PR):
2. Your ticket is a Help Wanted GitHub issue for the project you're contributing to.
- If not, follow the process [here](/contribute/getting-started/contributions-without-ticket).
3. Your code is thoroughly tested, including appropriate unit tests, and manual testing.
4. If applicable, user interface strings are included in the localization file ([en.json](https://github.com/mattermost/mattermost-octo-tasks/blob/main/webapp/i18n/en.json))
4. If applicable, user interface strings are included in the localization file ([en.json](https://github.com/mattermost/focalboard/blob/main/webapp/i18n/en.json))
- In the webapp folder, run `npm run i18n-extract` to generate the new/updated strings.
5. The PR is submitted against the `main` branch from your fork.
6. The PR title begins with the GitHub Ticket ID (e.g. `[GH-394]`) and the summary template is filled out.

View File

@ -1,4 +1,4 @@
module github.com/mattermost/mattermost-octo-tasks/linux
module github.com/mattermost/focalboard/win
go 1.15