diff options
author | Tulir Asokan <tulir@maunium.net> | 2019-01-17 14:13:25 +0200 |
---|---|---|
committer | Tulir Asokan <tulir@maunium.net> | 2019-01-23 00:26:51 +0200 |
commit | bf2a5e9b3495912bc4e266052e15cceedab131cf (patch) | |
tree | 140aac130323f5585a87c7dddb5af49dadb03f33 /ui/messages | |
parent | cdb79be7d7ba10807bc1db1f3e52887b04a4b0fd (diff) |
Update license and sort imports
Diffstat (limited to 'ui/messages')
-rw-r--r-- | ui/messages/base.go | 15 | ||||
-rw-r--r-- | ui/messages/expandedtextmessage.go | 13 | ||||
-rw-r--r-- | ui/messages/imagemessage.go | 16 | ||||
-rw-r--r-- | ui/messages/message.go | 10 | ||||
-rw-r--r-- | ui/messages/meta.go | 10 | ||||
-rw-r--r-- | ui/messages/parser/htmlparser.go | 18 | ||||
-rw-r--r-- | ui/messages/parser/parser.go | 10 | ||||
-rw-r--r-- | ui/messages/textbase.go | 13 | ||||
-rw-r--r-- | ui/messages/textmessage.go | 13 | ||||
-rw-r--r-- | ui/messages/tstring/cell.go | 11 | ||||
-rw-r--r-- | ui/messages/tstring/string.go | 13 |
11 files changed, 75 insertions, 67 deletions
diff --git a/ui/messages/base.go b/ui/messages/base.go index 441aca1..ba1902d 100644 --- a/ui/messages/base.go +++ b/ui/messages/base.go @@ -1,31 +1,32 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package messages import ( "encoding/gob" - "maunium.net/go/mautrix" "time" + "maunium.net/go/mautrix" + "maunium.net/go/tcell" + "maunium.net/go/gomuks/config" "maunium.net/go/gomuks/interface" "maunium.net/go/gomuks/ui/messages/tstring" "maunium.net/go/gomuks/ui/widget" - "maunium.net/go/tcell" ) func init() { diff --git a/ui/messages/expandedtextmessage.go b/ui/messages/expandedtextmessage.go index fbb373d..d889771 100644 --- a/ui/messages/expandedtextmessage.go +++ b/ui/messages/expandedtextmessage.go @@ -1,26 +1,27 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package messages import ( "encoding/gob" - "maunium.net/go/mautrix" "time" + "maunium.net/go/mautrix" + "maunium.net/go/gomuks/config" "maunium.net/go/gomuks/ui/messages/tstring" ) diff --git a/ui/messages/imagemessage.go b/ui/messages/imagemessage.go index 8ccff67..0efe676 100644 --- a/ui/messages/imagemessage.go +++ b/ui/messages/imagemessage.go @@ -1,18 +1,18 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package messages @@ -20,17 +20,17 @@ import ( "bytes" "encoding/gob" "fmt" - "maunium.net/go/mautrix" + "image/color" "time" - "image/color" + "maunium.net/go/mautrix" + "maunium.net/go/tcell" "maunium.net/go/gomuks/config" "maunium.net/go/gomuks/debug" "maunium.net/go/gomuks/interface" "maunium.net/go/gomuks/lib/ansimage" "maunium.net/go/gomuks/ui/messages/tstring" - "maunium.net/go/tcell" ) func init() { diff --git a/ui/messages/message.go b/ui/messages/message.go index b5ef1b8..076cd87 100644 --- a/ui/messages/message.go +++ b/ui/messages/message.go @@ -1,18 +1,18 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package messages diff --git a/ui/messages/meta.go b/ui/messages/meta.go index 23a52e9..0712be1 100644 --- a/ui/messages/meta.go +++ b/ui/messages/meta.go @@ -1,18 +1,18 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package messages diff --git a/ui/messages/parser/htmlparser.go b/ui/messages/parser/htmlparser.go index 850dc52..ddf6d36 100644 --- a/ui/messages/parser/htmlparser.go +++ b/ui/messages/parser/htmlparser.go @@ -1,18 +1,18 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package parser @@ -20,16 +20,18 @@ import ( "fmt" "math" "regexp" + "strconv" "strings" "github.com/lucasb-eyer/go-colorful" "golang.org/x/net/html" + + "maunium.net/go/mautrix" + "maunium.net/go/tcell" + "maunium.net/go/gomuks/matrix/rooms" "maunium.net/go/gomuks/ui/messages/tstring" "maunium.net/go/gomuks/ui/widget" - "maunium.net/go/mautrix" - "maunium.net/go/tcell" - "strconv" ) var matrixToURL = regexp.MustCompile("^(?:https?://)?(?:www\\.)?matrix\\.to/#/([#@!].*)") diff --git a/ui/messages/parser/parser.go b/ui/messages/parser/parser.go index 05dd0e9..94ab5b6 100644 --- a/ui/messages/parser/parser.go +++ b/ui/messages/parser/parser.go @@ -1,18 +1,18 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package parser diff --git a/ui/messages/textbase.go b/ui/messages/textbase.go index 4b242b4..01e7b5c 100644 --- a/ui/messages/textbase.go +++ b/ui/messages/textbase.go @@ -1,26 +1,27 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package messages import ( "fmt" + "regexp" + "maunium.net/go/gomuks/config" "maunium.net/go/gomuks/ui/messages/tstring" - "regexp" ) // Regular expressions used to split lines when calculating the buffer. diff --git a/ui/messages/textmessage.go b/ui/messages/textmessage.go index 8622c32..8ce9482 100644 --- a/ui/messages/textmessage.go +++ b/ui/messages/textmessage.go @@ -1,27 +1,28 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package messages import ( "encoding/gob" "fmt" - "maunium.net/go/mautrix" "time" + "maunium.net/go/mautrix" + "maunium.net/go/gomuks/config" "maunium.net/go/gomuks/interface" "maunium.net/go/gomuks/ui/messages/tstring" diff --git a/ui/messages/tstring/cell.go b/ui/messages/tstring/cell.go index c3e22a3..aee1716 100644 --- a/ui/messages/tstring/cell.go +++ b/ui/messages/tstring/cell.go @@ -1,23 +1,24 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package tstring import ( "github.com/mattn/go-runewidth" + "maunium.net/go/tcell" ) diff --git a/ui/messages/tstring/string.go b/ui/messages/tstring/string.go index 3de876f..7feeda0 100644 --- a/ui/messages/tstring/string.go +++ b/ui/messages/tstring/string.go @@ -1,27 +1,28 @@ // gomuks - A terminal Matrix client written in Go. -// Copyright (C) 2018 Tulir Asokan +// Copyright (C) 2019 Tulir Asokan // // This program is free software: you can redistribute it and/or modify -// it under the terms of the GNU General Public License as published by +// it under the terms of the GNU Affero General Public License as published by // the Free Software Foundation, either version 3 of the License, or // (at your option) any later version. // // This program is distributed in the hope that it will be useful, // but WITHOUT ANY WARRANTY; without even the implied warranty of // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -// GNU General Public License for more details. +// GNU Affero General Public License for more details. // -// You should have received a copy of the GNU General Public License -// along with this program. If not, see <http://www.gnu.org/licenses/>. +// You should have received a copy of the GNU Affero General Public License +// along with this program. If not, see <https://www.gnu.org/licenses/>. package tstring import ( "strings" + "unicode" "github.com/mattn/go-runewidth" + "maunium.net/go/tcell" - "unicode" ) type TString []Cell |