Commit Graph

533 Commits

Author SHA1 Message Date
joeyak
3ac5af4548 Removed dependency of dennwc\dom\js
This removes the dependency of dennwc\dom\js which allows building with
Go 1.13.
2019-09-22 14:31:04 -04:00
Zorchenhimer
64063de5a8 Github markdown doesn't work apparently
Replace "#94" with the full issue link.
2019-09-19 11:27:22 -04:00
Zorchenhimer
7138361edf Tweak build requirements in readme
Add a reference to the Go 1.12 build requirement issue.
2019-09-19 11:24:57 -04:00
Alastair Bridgewater
42bcead627 Hide suggestion menu explicitly
* On some systems (currently hypothesized to be Firefox with
GTK+ using a system theme that has always-visible scrollbars with
a minimum size on their long axis), the suggestion menu starts off
visible and obscuring the chat message entry area, then moves to
obscuring the chat history area once it has been invoked.  At no
time does it become invisible.

  * Fix, by hiding the suggestion menu by default and explicitly
managing its visibility as it is updated.
2019-09-16 14:17:31 -04:00
Zorchenhimer
5508cc61f3 Remove goimports from Makefile and readme
(cherry picked from commit 5a5c6c76b0)
2019-06-18 22:15:47 -04:00
Zorchenhimer
5a5c6c76b0 Remove goimports from Makefile and readme 2019-06-18 22:15:10 -04:00
Zorchenhimer
a73375f152 Fix emotes
This reworks how emotes are cached in relation to their physical
location on disk.  Functionally, they should be the same from the user
perspective but it sets up some stuff that will make it easier to add
emotes from various sources.
2019-06-18 22:13:53 -04:00
Zorchenhimer
360e1aee77 Remove goimports
Replace it with gofmt.  This has been an issue preventing people from
easily getting setup for dev.

(cherry picked from commit 35774b061f)
2019-06-18 18:52:02 -04:00
Zorchenhimer
35774b061f Remove goimports
Replace it with gofmt.  This has been an issue preventing people from
easily getting setup for dev.
2019-06-18 18:46:35 -04:00
Alastair Bridgewater
26b535a37d Hide suggestion menu explicitly
* On some systems (currently hypothesized to be Firefox with
GTK+ using a system theme that has always-visible scrollbars with
a minimum size on their long axis), the suggestion menu starts off
visible and obscuring the chat message entry area, then moves to
obscuring the chat history area once it has been invoked.  At no
time does it become invisible.

  * Fix, by hiding the suggestion menu by default and explicitly
managing its visibility as it is updated.
2019-06-10 11:15:41 -04:00
joeyak
7962fad02e commiting so zorch can do my work 2019-06-01 19:41:28 -04:00
joeyak
d153c2b4f0 Fix cookies not staying across browser sessions 2019-05-07 19:42:43 -04:00
joeyak
61dd64182e Fix port not being set with command flag 2019-05-05 13:35:36 -04:00
Zorchenhimer
0a4ff49cbb Trim PIN of spaces
Fixes #88
2019-04-22 11:50:42 -04:00
joeyak
40f4cc72ae Make default selection the bottom option
closes #86
2019-04-18 10:31:34 -04:00
Zorchenhimer
b41c93d19d Add option to generate new pin on start
Added "NewPin" to the settings to regenarate and save a new pin to the
settings file on server start.
2019-04-15 11:22:53 -04:00
joeyak
c3f2c20e4e Add rand seed so the colors aren't the same 2019-04-14 21:02:44 -04:00
joeyak
15a691a1b7 Update go mod 2019-04-14 01:48:00 -04:00
joeyak
7b5f77a14a Get rid of dependency on go-colorful
closes #84
2019-04-14 01:46:24 -04:00
Zorchenhimer
607e61234c Add some more stats
Added a few more stats to keep track of:
- Max users in chat
- Stream start

Also added a `/stats` command to list the user count (current and max),
as well as uptime (sever and stream, separately).

Resolves #85
2019-04-14 00:25:49 -04:00
Zorchenhimer
83477dc0eb Start abstracting template stuff
This is for #32.

This adds a starting framework for loading, caching, and executing
templates on the server and the client.  Currently only the server uses
this functionality.
2019-04-13 17:29:30 -04:00
Zorchenhimer
d513fe872d Remove temp connections
Temp connections were removed to reduce some complexity.  Now a
connection is a full client, even before joining chat.  A name is
required to be set to join chat and receive messages.

This change also removes the need for UUIDs on connections and clients.
2019-04-13 15:56:49 -04:00
Zorchenhimer
0c3850d2f7 Make the pin entry screen not look terrible
Change the color of the message to be readable, and some other
positioning tweaks.
2019-04-13 14:21:53 -04:00
Zorchenhimer
332dfdc9cf Fix connecting to websocket with SSL
Request a secure web socket (wss://) when connecting to the site with
https.  Fixes #61.
2019-04-13 13:47:38 -04:00
joeyak
ad2579d59a Adding some hardening to user joining
Client sends the server a object to join instead of a message
server can send a message to notify the user

closes #57
2019-04-13 13:12:08 -04:00
Zorchenhimer
5819bdb85a Make links in chat readable 2019-04-11 22:46:04 -04:00
Zorchenhimer
81e647c1c8 Handle command errors differently than responses
Make them red.
2019-04-11 22:01:10 -04:00
Zorchenhimer
27ef839725 Fix regression with the /me command
Don't return an error if it works.
2019-04-11 22:01:10 -04:00
joeyak
176aad5b3c Change timestamps to only show on chat and action messages
closes #73
2019-04-11 21:50:20 -04:00
joeyak
adcc81f192 Tidy up mod packages 2019-04-11 21:21:21 -04:00
joeyak
ccecc64763 Add loading files message
closes #72
2019-04-11 21:20:32 -04:00
Zorchenhimer
5508dc3f1c Return errors from commands
Change the function signature for commands to return a string as well as
an error.  Currently, errors are handled no differently than normal
response messages.

Also removed the redundant `/setpin` command.
2019-04-11 21:10:04 -04:00
joeyak
293c818eb2 Remove debug log I left in and fix konami code 2019-04-11 20:00:02 -04:00
joeyak
f8f6a133d5 Fix centering on non-chat items in chat
closes #74
2019-04-11 19:55:43 -04:00
Zorchenhimer
0c9fa9f569 Update readme and tweak build
- Tweaked the build to copy `settings_example.json` to `settings.json` if
  it doesn't exist.
- Updated the readme to reflect changes with modules and the Makefile.
2019-04-04 11:19:57 -04:00
Zorchenhimer
1a5d4c89ec Remove 'go get -u' lines from makefile
Go modules should take care of this seamlessly now.
2019-04-04 11:04:18 -04:00
Zorchenhimer
cf2891465b Enable module support for Travis
I knew I was forgetting something.
2019-04-04 10:38:14 -04:00
Zorchenhimer
682462d5d5 Switch to Go modules 2019-04-04 10:32:50 -04:00
Zorchenhimer
d102d0c5ed Merge remote-tracking branch 'origin/room-access-restrictions'
Merge in the room access restrictions changes into master.  Currently,
only the PIN/Password method is implemented, and it's not all that
secure.  Some more work needs to be done in planning before really
moving forward, but this should be fine for now.

Issue #28 should not be considered finished with this merge.
2019-04-04 10:29:37 -04:00
joeyak
157b0d2245 Add changes to readme discussed in issue #79 2019-04-02 08:41:18 -04:00
joeyak
24ba706827 Suggestions div changes
Added scrolling and more than 10 elements in div
if the user changes the current element, the div will scroll with it
added debug div to show the keys
closes #76
2019-03-31 21:17:19 -04:00
joeyak
791df37030 Update client emotes list on reload emotes
closes #75
2019-03-31 17:33:03 -04:00
joeyak
4758cd68bd Add links to open chat, video, and both separatly
closes #77
2019-03-31 17:25:24 -04:00
joeyak
6923b13af9 Fix layout of playing 2019-03-31 17:11:50 -04:00
joeyak
9b409e0118 Make escape key hide the suggestions
closes #78
2019-03-31 16:00:36 -04:00
joeyak
e798684b3e Change the show debug names 2019-03-31 15:59:57 -04:00
joeyak
bea491e1c0 Remove debug log 2019-03-31 15:23:37 -04:00
joeyak
be56cff4ba
Merge pull request #80 from Shuugo/patch-1
Fix Syntax error
2019-03-31 10:36:47 -04:00
Shuugo
345bf622d9
Fix Syntax error
Syntax error
2019-03-31 12:55:30 +02:00
Zorchenhimer
38f2ca9972 Merge branch 'master' into room-access-restrictions
This is mainly for the server-shutdown merge revert.

# Conflicts:
#	main.go
2019-03-31 00:09:42 -04:00