Commit graph

56 commits

Author SHA1 Message Date
rigormorrtiss
044e48da2e refactor: move event handlers to ui package 2021-08-10 22:34:37 +04:00
rigormorrtiss
b7355f2b49 main: set gateway.DefaultIdentity.Device to "" 2021-08-09 13:21:46 +04:00
rigormorrtiss
946e164564 Remove *Foreground configuration 2021-08-09 00:08:11 +04:00
rigormorrtiss
39234175a3 Degoroutinize (*api.Client).SendMessage() 2021-08-08 22:11:49 +04:00
rigormorrtiss
e78dfee9c8 Inline event handlers 2021-08-08 19:21:38 +04:00
rigormorrtiss
69f7ac594c Goroutinize *session.Session.SendMessage() 2021-08-08 19:00:35 +04:00
rigormorrtiss
ca9eb30873 Revert "perf(main): set channelID as reference of node"
This reverts commit 0d6f5d19fe21e2ea4554056fe0f3e62c4ca17f7b.
2021-08-08 18:50:20 +04:00
rigormorrtiss
ae60aa8bd6 fix(main): clear messages TextView when channel of type GuildText or GuildNews is selected only (#20) 2021-08-08 18:37:02 +04:00
rigormorrtiss
bc73bc9ec8 perf(main): set channelID as reference of node 2021-08-08 18:31:41 +04:00
rigormorrtiss
775e658e7d Add message InputField if channel type is GuildText or GuildNews 2021-08-07 23:13:50 +04:00
rigormorrtiss
8d529e5f02 fix(main): set messages TextView title as channel name 2021-08-07 18:42:24 +04:00
rigormorrtiss
1902f5908d fix(main): compare CategoryID against 0 and discord.NullChannelID for 'global channels' 2021-08-07 18:40:02 +04:00
rigormorrtiss
51d19f57b7 fix(main): compare channel.CategoryID with discord.NullChannelID 2021-08-07 17:52:07 +04:00
rigormorrtiss
51b5cd1834 refactor: rename variables to comply with 'effective go' 2021-08-07 14:53:38 +04:00
rigormorrtiss
1dafd965f6 fix(main): set messages TextView title to "" on guild select 2021-08-04 20:12:48 +04:00
rigormorrtiss
b94301632f feat(util): switch to 99designs/keyring for more backends (#18)
* build: add 99designs/keyring as dep

* feat(util): switch to 99designs/keyring for more backends
2021-08-04 08:53:17 +04:00
rigormorrtiss
f56217e298 refactor(main): ignore error while retrieving channels from cabinet 2021-08-03 21:13:13 +04:00
rigormorrtiss
dde8032437 Remove 123 :P 2021-08-03 19:48:23 +04:00
rigormorrtiss
d20e4db970 fix(main): do not panic if chans or msgs not found 2021-08-03 19:41:07 +04:00
rigormorrtiss
e985ac55ed feat(main): suffix channel topic after channel name (#17) 2021-08-03 16:46:46 +04:00
rigormorrtiss
c141e7f4b4 fix(main): "login via token" input field not displayed (#16) 2021-08-03 16:17:55 +04:00
rigormorrtiss
c17ca03bda Add default keybindings for navigation 2021-08-03 14:07:23 +04:00
rigormorrtiss
353a66b079 Sort channels on guild and channel selected 2021-08-03 12:54:12 +04:00
rigormorrtiss
74157d846d Goroutinize util.SetPassword() 2021-08-03 12:23:48 +04:00
rigormorrtiss
e4fbeb1c11 refactor(ui): explicitly return values 2021-08-02 22:38:03 +04:00
rigormorrtiss
04e24917de Remove Quit button from login Modal 2021-08-02 22:33:50 +04:00
rigormorrtiss
9bc0b94da3 Upgrade Arikawa to v3 (#15) 2021-08-02 20:07:50 +04:00
rigormorrtiss
d0a372c414 Eliminate panic calls 2021-08-02 00:19:42 +04:00
rigormorrtiss
b552619b4e Rewrite to use Arikawa (#14) 2021-08-02 00:10:41 +04:00
rigormorrtiss
8207701654 Remove support for bot accounts 2021-08-01 21:25:18 +04:00
rigormorrtiss
c5985eb91d Only display channels of type GUILD_TEXT & GUILD_NEWS (exclude GUILD_VOICE) (#13) 2021-08-01 12:35:21 +04:00
rigormorrtiss
0667b37698 Add option for GET Channel Messages limit (#12) 2021-07-31 23:47:20 +04:00
rigormorrtiss
c0c7527a1f Prefix top-level text-based channels with # (#9) 2021-07-30 22:36:29 +04:00
rigormorrtiss
483f9b1f3c Fix TreeNode deadlock 2021-07-30 22:24:39 +04:00
rigormorrtiss
7fe268b813 Change default theme to Dracula 2021-07-30 22:13:59 +04:00
rigormorrtiss
8f384643f4 Refactor to switch statement 2021-07-30 21:18:00 +04:00
rigormorrtiss
d684312f38 Implement ChannelsTreeView Component for categories (#7)
* Add ChannelsTreeView component

* Remove ChannelsList component

* Implement ChannelsTreeView comp for categories

* Update README preview
2021-07-30 20:37:13 +04:00
rigormorrtiss
639a48447d Add customizable theme support 2021-07-29 15:42:13 +04:00
rigormorrtiss
bd63810b91 Remove Application InputCapture handler 2021-07-28 20:08:23 +04:00
rigormorrtiss
0bd48686cb Set channels List title when guild is selected 2021-07-28 19:48:20 +04:00
rigormorrtiss
a9ea2244f5 Revert "Move ui events handlers to corresponding file"
This reverts commit 585e5e26d93093c7b0ddf555a69c306f45ba0198.
2021-07-28 19:39:46 +04:00
rigormorrtiss
88614c1888 Move ui events handlers to corresponding file 2021-07-28 19:26:29 +04:00
rigormorrtiss
e553e96c68 Set borders to empty strings and focus borders to corresponding default borders 2021-07-28 15:47:25 +04:00
rigormorrtiss
a400ad306f Add ui.NewMidFlex() func 2021-07-28 00:13:56 +04:00
rigormorrtiss
14fa4cca81 Rename ui.NewApplication() to ui.NewApp() 2021-07-27 23:45:33 +04:00
rigormorrtiss
9651934c16 Modify UserAgent & Identify properties for user accounts 2021-07-27 21:51:21 +04:00
rigormorrtiss
fe1f0432c3 Fix nil pointer dereference 2021-07-27 20:19:27 +04:00
rigormorrtiss
0f15ab13c6 Switch to discordgo for simplicity 2021-07-27 15:42:59 +04:00
rigormorrtiss
642e156dc8 Switch to for-range loops for cleaner syntax 2021-07-25 22:30:51 +04:00
rigormorrtiss
aeaf245fb5 Add GUILDS and GUILD_MESSAGES intents for bots 2021-07-22 18:26:54 +04:00