Trent Robbins
73633f01d9
Added a line by line command parser in the web client.
2016-10-25 20:39:04 -07:00
Griatch
6f02ab572f
Add role='log' to webclient messagewindow div, to aid screenreaders.
2016-10-22 21:01:55 +02:00
Griatch
4a97a05c10
Some minor fixes and cleanups.
2016-09-14 23:27:55 +02:00
Griatch
07944918f7
Implement a custom authenticate middleware to correctly handle already-authenticated players in auto-connect webclient mode. Resolves #1037 .
2016-09-14 22:33:06 +02:00
Tehom
5349ecfd61
Added settings.GAME_SLOGAN to global context.
2016-09-07 23:27:00 +02:00
Griatch
c15f107ad9
Add webclient support for blink, underline and inverse ANSI tags. The inverse tag will produce a dotted outline in the webclient; for now this seems to be no obvious way to inverse the background in a way similar to the terminal inverse. Resolves #976 .
2016-06-24 23:22:38 +02:00
Griatch
1b9437ce97
Add 'inherit' as link CSS tags to make sure the links properly inherit colors given outside the link. The drawback is that one can't give a standard color to the link itself this way (it's just underlined). This deals with #979 .
2016-06-24 20:40:46 +02:00
Griatch
410d04456c
Some further fixes to the ajax client, as well as maybe fixing the i.d.l. bug manifesting from a poor msg input send.
2016-06-01 01:22:20 +02:00
Griatch
f04c82fa17
Implemented shared sessions between webclient and website - logging into either will also log in the player to the other. This is addresses the first point of #613 .
2016-06-01 01:22:20 +02:00
Griatch
eebd41f46d
Getting an improved version of the shared session system vaguely in shape.
2016-06-01 01:22:20 +02:00
Griatch
a31441b3ce
First working version of the shared web login.
2016-06-01 01:22:19 +02:00
Griatch
1f685f6952
Changed the ##send syntax of the webclient_gui to be exactly mirroring the format of the inputcommand.
2016-05-25 00:05:53 +02:00
Griatch
ded14f0d19
Made the idle call from the ajax webclient more precise. Not sure if this
...
actually resolves the issue of the idle command not being properly
parsed by the ajax client or not - the error is that only the string
'idle' is sent, which is then split into its components and not
recognized as an input command. The error seems hard to reliably
reproduce.
2016-05-22 20:49:46 +02:00
Griatch
e88892642b
Added a close warning event to the webclient.
2016-05-22 20:49:45 +02:00
Griatch
2e692cc639
Made 'idle' a default in the inputfuncs since this is sent by the webclient. settings.IDLE_CMD will still work but will work alongside idle, the latter will always work like a no-op.
2016-05-22 20:49:45 +02:00
Griatch
cd475a0a23
Made sure the the websocket onclose is not called if websocket was never open (such as for clients only supporting ajax)
2016-05-22 20:49:44 +02:00
NatePri
fd6f973816
Removed unneeded onConnectionError handler
2016-05-22 20:49:44 +02:00
NatePri
ef05816b33
Allow for webclient reconnect without a page refresh
...
- Refactored WebSocket client to not return websocket object directly
- Changed AjaxCometConnection to emit close events in a way that mirrors
WebsocketConnection more closely.
- Added reconnect confirmation dialog.
2016-05-22 20:49:44 +02:00
Griatch
7e62f02f0a
Implemented an AJAX keepalive from the Evennia side to make sure a dead AJAX connection (commonly if the user closes the window/browser without properly logging out), will eventually time out and log off the Player. Resolves #951 .
2016-05-22 20:49:43 +02:00
Griatch
d5b3b59eb7
Made webclient aware of the server dropping (both websocket and AJAX). The server currently reacts to the websocket client dropping but not to the AJAX one (the latter forms ghost players)
2016-05-22 20:49:43 +02:00
Griatch
0451ce7685
Cleaned up the css file a little.
2016-05-22 20:49:43 +02:00
Griatch
509d03a3dc
Added webclient-support for xterm256 colors, as mentioned in #613 .
2016-05-22 20:49:43 +02:00
NatePri
a9bc6a1f64
Fix webclient prompt (issue #950 )
2016-05-22 20:49:43 +02:00
Griatch
039bb0c540
Fixed the send button in the webclient; made the prompt command work with the webclient (still not displaying correctly)
2016-05-22 20:45:43 +02:00
NatePri
8844b7bb80
Added -moz/-webkit CSS prefixes, made sizer CSS consistent
2016-05-22 20:45:42 +02:00
NatePri
67e26103d5
Minor CSS fix
2016-05-22 20:45:42 +02:00
NatePri
f907165dd3
Missed some var declarations
2016-05-22 20:45:42 +02:00
NatePri
f12adcf976
Enable strict mode on scripts, clean up some unremoved references
2016-05-22 20:45:42 +02:00
NatePri
2134d6dd4a
Minor webclient enhancements
...
- Fixed window resize bug
- Improved history handling to be less destructive to text the user has
entered
- Made input area automatically resize to fit its contents
2016-05-22 20:45:42 +02:00
Griatch
4acea5a20d
A rudimentary OOB input parser from the webclient, for testing.
2016-05-22 20:45:42 +02:00
Griatch
9bf09365d2
Fixed deprecation warnings in urls from django1.9. Switched to new TEMPLATES setting.
2016-05-22 20:45:39 +02:00
Griatch
b8d7fae786
Fixed up the webclient html+css to make for a workable example.
2016-05-22 20:45:38 +02:00
Griatch
b11c746f8f
Silenced the unhandled events from websocket connections.
2016-05-22 20:45:38 +02:00
Griatch
b6642cdfe9
Added close-handlers to websocket and did some other cleanup.
2016-05-22 20:45:38 +02:00
Griatch
166189a7a5
Made ajax/comet client fallback work correctly in the new framework.
2016-05-22 20:45:38 +02:00
Griatch
cd8651c740
Cleaned up webclient and fixed some bugs. There are still too much extra data being sent via msg(), these have to be handled server-side.
2016-05-22 20:45:06 +02:00
Griatch
5c7067ddce
First version of working, simple webclient with new infrastructure (backend + frontend).
2016-05-22 20:45:06 +02:00
Griatch
d48691e121
Got the initial connect screen to display in webclient again.
2016-05-22 20:45:06 +02:00
Griatch
66641b54ab
Made a rudimentary gui for the webclient. Some data is going through to webclient, but currently html conversion is not working.
2016-05-22 20:45:06 +02:00
Griatch
33b73c7430
Making a separate webclient_gui file to handle the graphical interface.
2016-05-22 20:45:06 +02:00
Griatch
098be9792a
Removing testing css file
2016-05-22 20:45:06 +02:00
Griatch
07471d1e8f
Cleaned out old tests of js weclient component.
2016-05-22 20:45:06 +02:00
Griatch
1044006303
Moved inlinefunc-parsing to sessionhandler level. First text throughput for webclient alongside telnet.
2016-05-22 20:45:05 +02:00
Griatch
2890371900
Still messing with getting the webclient to talk properly to the server.
2016-05-22 20:45:05 +02:00
Griatch
b8060b9ea0
More work on fixing bugs in the webclient-js interface.
2016-05-22 20:45:05 +02:00
Griatch
f42d27a459
Refactored the webclient layout to correctly identify the template.
2016-05-22 20:45:05 +02:00
Griatch
0219c726dc
Split out a base.html file for the client.
2016-05-22 20:45:05 +02:00
Griatch
da52380b0f
More work on the new js lib, added client-side support for ajax/comet, which will be using JSON and OOB commands, same as websocket version.
2016-05-22 20:45:05 +02:00
Griatch
7fa088c036
First attempt at fixed-up js library component, inspired by Glitch's emitter pattern in #613 .
2016-05-22 20:45:05 +02:00
Griatch
f0c9128ff8
Starting work on the new weblib component
2016-05-22 20:45:05 +02:00