mirror of
https://github.com/muesli/telephant
synced 2024-11-10 05:54:19 +00:00
Renamed app to Telephant
This commit is contained in:
parent
194586022a
commit
2d12ecac44
12 changed files with 29 additions and 34 deletions
1
.gitignore
vendored
1
.gitignore
vendored
|
@ -28,3 +28,4 @@ deploy/
|
||||||
|
|
||||||
# Config files
|
# Config files
|
||||||
chirp.conf
|
chirp.conf
|
||||||
|
telephant.conf
|
||||||
|
|
28
README.md
28
README.md
|
@ -1,9 +1,9 @@
|
||||||
Chirp!
|
Telephant!
|
||||||
======
|
======
|
||||||
|
|
||||||
A lightweight but modern Social Media client, written in Go & QML.
|
A lightweight but modern Social Media client, written in Go & QML.
|
||||||
|
|
||||||
![chirp Screenshot](/assets/screenshot.png)
|
![telephant Screenshot](/assets/screenshot.png)
|
||||||
|
|
||||||
## Features
|
## Features
|
||||||
|
|
||||||
|
@ -24,27 +24,21 @@ See the [install instructions](http://golang.org/doc/install.html).
|
||||||
|
|
||||||
### Dependencies
|
### Dependencies
|
||||||
|
|
||||||
Before you can build Chirp you need to install the [Go/Qt bindings](https://github.com/therecipe/qt/wiki/Installation#regular-installation).
|
Before you can build Telephant you need to install the [Go/Qt bindings](https://github.com/therecipe/qt/wiki/Installation#regular-installation).
|
||||||
|
|
||||||
### Building Chirp!
|
### Building Telephant!
|
||||||
|
|
||||||
git clone https://github.com/muesli/chirp.git
|
git clone https://github.com/muesli/telephant.git
|
||||||
qtdeploy build desktop chirp/
|
qtdeploy build desktop telephant/
|
||||||
|
|
||||||
### Run it
|
### Run it
|
||||||
|
|
||||||
./chirp/deploy/linux/chirp
|
./telephant/deploy/linux/telephant
|
||||||
|
|
||||||
### Config
|
![telephant logo](/assets/telephant.png)
|
||||||
|
|
||||||
As of now you will need to create your own API apps & keys to use Chirp. You can do this on [https://dev.twitter.com/](https://dev.twitter.com/).
|
|
||||||
When you run Chirp for the first time, it will create an empty config file `chirp.conf` for you. Just edit it and enter
|
|
||||||
your consumer key and accesstoken.
|
|
||||||
|
|
||||||
![chirp logo](/assets/chirp.png)
|
|
||||||
|
|
||||||
## Development
|
## Development
|
||||||
|
|
||||||
[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/muesli/chirp)
|
[![GoDoc](https://godoc.org/github.com/golang/gddo?status.svg)](https://godoc.org/github.com/muesli/telephant)
|
||||||
[![Build Status](https://travis-ci.org/muesli/chirp.svg?branch=master)](https://travis-ci.org/muesli/chirp)
|
[![Build Status](https://travis-ci.org/muesli/telephant.svg?branch=master)](https://travis-ci.org/muesli/telephant)
|
||||||
[![Go ReportCard](http://goreportcard.com/badge/muesli/chirp)](http://goreportcard.com/report/muesli/chirp)
|
[![Go ReportCard](http://goreportcard.com/badge/muesli/telephant)](http://goreportcard.com/report/muesli/telephant)
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Package accounts is chirp's account "plugin" system.
|
// Package accounts is telephant's account "plugin" system.
|
||||||
package accounts
|
package accounts
|
||||||
|
|
||||||
import "time"
|
import "time"
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Package mastodon is a Mastodon account for Chirp.
|
// Package mastodon is a Mastodon account for Telephant.
|
||||||
package mastodon
|
package mastodon
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -12,7 +12,7 @@ import (
|
||||||
"github.com/davecgh/go-spew/spew"
|
"github.com/davecgh/go-spew/spew"
|
||||||
"github.com/mattn/go-mastodon"
|
"github.com/mattn/go-mastodon"
|
||||||
|
|
||||||
"github.com/muesli/chirp/accounts"
|
"github.com/muesli/telephant/accounts"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -20,7 +20,7 @@ const (
|
||||||
initialNotificationsCount = 40
|
initialNotificationsCount = 40
|
||||||
)
|
)
|
||||||
|
|
||||||
// Account is a Mastodon account for Chirp.
|
// Account is a Mastodon account for Telephant.
|
||||||
type Account struct {
|
type Account struct {
|
||||||
client *mastodon.Client
|
client *mastodon.Client
|
||||||
config *mastodon.Config
|
config *mastodon.Config
|
||||||
|
|
|
@ -1,4 +1,4 @@
|
||||||
// Package twitter is a Twitter account for Chirp.
|
// Package twitter is a Twitter account for Telephant.
|
||||||
package twitter
|
package twitter
|
||||||
|
|
||||||
import (
|
import (
|
||||||
|
@ -11,7 +11,7 @@ import (
|
||||||
|
|
||||||
"github.com/ChimeraCoder/anaconda"
|
"github.com/ChimeraCoder/anaconda"
|
||||||
|
|
||||||
"github.com/muesli/chirp/accounts"
|
"github.com/muesli/telephant/accounts"
|
||||||
)
|
)
|
||||||
|
|
||||||
const (
|
const (
|
||||||
|
@ -19,7 +19,7 @@ const (
|
||||||
initialNotificationsCount = 50
|
initialNotificationsCount = 50
|
||||||
)
|
)
|
||||||
|
|
||||||
// Account is a twitter account for Chirp.
|
// Account is a twitter account for Telephant.
|
||||||
type Account struct {
|
type Account struct {
|
||||||
consumerKey string
|
consumerKey string
|
||||||
consumerSecret string
|
consumerSecret string
|
||||||
|
|
Before Width: | Height: | Size: 46 KiB After Width: | Height: | Size: 46 KiB |
|
@ -1,7 +1,7 @@
|
||||||
package main
|
package main
|
||||||
|
|
||||||
import (
|
import (
|
||||||
"github.com/muesli/chirp/accounts/mastodon"
|
"github.com/muesli/telephant/accounts/mastodon"
|
||||||
"github.com/therecipe/qt/core"
|
"github.com/therecipe/qt/core"
|
||||||
)
|
)
|
||||||
|
|
||||||
|
@ -84,7 +84,7 @@ func setupQmlBridges() {
|
||||||
configBridge = NewConfigBridge(nil)
|
configBridge = NewConfigBridge(nil)
|
||||||
|
|
||||||
accountBridge = NewAccountBridge(nil)
|
accountBridge = NewAccountBridge(nil)
|
||||||
accountBridge.SetUsername("Chirp!")
|
accountBridge.SetUsername("Telephant!")
|
||||||
|
|
||||||
uiBridge = NewUIBridge(nil)
|
uiBridge = NewUIBridge(nil)
|
||||||
uiBridge.ConnectConnectButton(connectToInstance)
|
uiBridge.ConnectConnectButton(connectToInstance)
|
||||||
|
|
|
@ -22,14 +22,14 @@ type Account struct {
|
||||||
RedirectURI string
|
RedirectURI string
|
||||||
}
|
}
|
||||||
|
|
||||||
// Config holds chirp's config settings
|
// Config holds telephant's config settings
|
||||||
type Config struct {
|
type Config struct {
|
||||||
Account []Account
|
Account []Account
|
||||||
Style string
|
Style string
|
||||||
}
|
}
|
||||||
|
|
||||||
const (
|
const (
|
||||||
configFile = "chirp.conf"
|
configFile = "telephant.conf"
|
||||||
)
|
)
|
||||||
|
|
||||||
// LoadConfig returns the current config as a Config struct
|
// LoadConfig returns the current config as a Config struct
|
||||||
|
|
|
@ -5,7 +5,7 @@ import (
|
||||||
"log"
|
"log"
|
||||||
"strings"
|
"strings"
|
||||||
|
|
||||||
"github.com/muesli/chirp/accounts"
|
"github.com/muesli/telephant/accounts"
|
||||||
)
|
)
|
||||||
|
|
||||||
func linkify(in []byte) []byte {
|
func linkify(in []byte) []byte {
|
||||||
|
|
|
@ -20,7 +20,7 @@ import QtQuick.Layouts 1.3
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
width: aboutDialog.availableWidth
|
width: aboutDialog.availableWidth
|
||||||
text: "Chirp! by <a style=\"text-decoration: none; color: orange;\" href=\"https://twitter.com/mueslix\">@mueslix</a>"
|
text: "Telephant! by <a style=\"text-decoration: none; color: orange;\" href=\"https://twitter.com/mueslix\">@mueslix</a>"
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
wrapMode: Label.Wrap
|
wrapMode: Label.Wrap
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
|
@ -35,7 +35,7 @@ import QtQuick.Layouts 1.3
|
||||||
|
|
||||||
Label {
|
Label {
|
||||||
width: aboutDialog.availableWidth
|
width: aboutDialog.availableWidth
|
||||||
text: qsTr("Chirp! is a light-weight but modern Twitter client")
|
text: qsTr("Telephant! is a light-weight but modern social media client")
|
||||||
textFormat: Text.RichText
|
textFormat: Text.RichText
|
||||||
wrapMode: Label.Wrap
|
wrapMode: Label.Wrap
|
||||||
font.pixelSize: 12
|
font.pixelSize: 12
|
||||||
|
|
|
@ -10,7 +10,7 @@ import (
|
||||||
"github.com/therecipe/qt/qml"
|
"github.com/therecipe/qt/qml"
|
||||||
"github.com/therecipe/qt/quickcontrols2"
|
"github.com/therecipe/qt/quickcontrols2"
|
||||||
|
|
||||||
"github.com/muesli/chirp/accounts/mastodon"
|
"github.com/muesli/telephant/accounts/mastodon"
|
||||||
)
|
)
|
||||||
|
|
||||||
var (
|
var (
|
||||||
|
@ -168,7 +168,7 @@ func runApp(config Config) {
|
||||||
app.RootContext().SetContextProperty("profileBridge", profileBridge)
|
app.RootContext().SetContextProperty("profileBridge", profileBridge)
|
||||||
app.RootContext().SetContextProperty("settings", configBridge)
|
app.RootContext().SetContextProperty("settings", configBridge)
|
||||||
|
|
||||||
app.Load(core.NewQUrl3("qrc:/qml/chirp.qml", 0))
|
app.Load(core.NewQUrl3("qrc:/qml/telephant.qml", 0))
|
||||||
gui.QGuiApplication_Exec()
|
gui.QGuiApplication_Exec()
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -195,7 +195,7 @@ func setupMastodon(config Account) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func main() {
|
func main() {
|
||||||
core.QCoreApplication_SetApplicationName("Chirp")
|
core.QCoreApplication_SetApplicationName("Telephant")
|
||||||
core.QCoreApplication_SetOrganizationName("fribbledom.com")
|
core.QCoreApplication_SetOrganizationName("fribbledom.com")
|
||||||
core.QCoreApplication_SetAttribute(core.Qt__AA_EnableHighDpiScaling, true)
|
core.QCoreApplication_SetAttribute(core.Qt__AA_EnableHighDpiScaling, true)
|
||||||
gui.NewQGuiApplication(len(os.Args), os.Args)
|
gui.NewQGuiApplication(len(os.Args), os.Args)
|
Loading…
Reference in a new issue