Many hyperlinks are disabled.
Use anonymous login
to enable hyperlinks.
50 check-ins using file src/main.c version 3442423cf9
|
2020-12-24
| ||
| 15:10 | The ping=TCPPORT query parameter to /chat causes a call to /chat-ping on localhost and the given port whenever new chat content arrives. Can be used for notifications. check-in: ebdd91b92f user: drh tags: trunk | |
| 13:44 | Hyperlink processing for chat messages is now handled on the server side, where we have knowledge of interwiki links, wiki page names, and valid artifact hashes. check-in: 822653c269 user: drh tags: trunk | |
| 08:10 | chat: revert title to its originalv alue when the tab becomes active after having been inactive. check-in: 0c0be4b763 user: stephan tags: trunk | |
| 08:07 | Chat: if the current tab is not active when a message arrives, update the title to show the new message count. When the tab is active, revert the title. Note that deletions currently count towards new events, but that's arguable. check-in: d79592059a user: stephan tags: trunk | |
| 07:19 | chat: ported in the hyperlink and @username parser from the older chat.tcl script. This is an intermediary workaround until we decide how/whether to do server-side markup handling. check-in: c5095283fb user: stephan tags: trunk | |
| 06:18 | Removed some debug output. check-in: f315268e2c user: stephan tags: trunk | |
| 05:58 | Added UI to delete chat posts (tap on the message header). Made a change to the semantics of when fossil.PopupWidget's refresh() callback is triggered to account for the common case of having to show() the popup twice in a row without a hide() in between. check-in: b7f106da8a user: stephan tags: trunk | |
| 05:03 | Initial impl for chat message deletion. The ajax bits are in place and message deletion propagates to other connected clients (if the message is owned by the poster or the user is an admin) but there's not currently a user interface. TODO: add related controls to the same popup used for the message timestamps. check-in: 247276113c user: stephan tags: trunk | |
| 03:34 | The /chat page now redirects to the login page if needed. check-in: 77d3058600 user: drh tags: trunk | |
| 01:04 | Bungled merge. Was: The /chat page redirects to the login page if the user does not have appropriate permissions to use chat. Closed-Leaf check-in: fee74ce5e7 user: drh tags: mistake | |
|
2020-12-23
| ||
| 23:27 | Several internal cleanups in chat app, e.g. replace document.createXYZ with simpler fossil.dom API. Eliminate assignment to innerHTML, which is widely considered unsafe. check-in: 68da24594f user: stephan tags: trunk | |
| 22:58 | chat: minor UI refinements. check-in: 8eb01c314b user: stephan tags: trunk | |
| 22:16 | Chat: disable pasting of text when then input field does NOT have focus and fix complete overwriting of input field when pasting and it DOES have focus. Whether or not we should paste to that field when it does not have focus is debatable and possibly violates the Principle of Least Surprise. check-in: 87ff8fe357 user: stephan tags: trunk | |
| 20:58 | Add the /Admin/Chat page. Add settings to configure the initial history load size of /chat, and to configure purging of historical messages. check-in: 15bc20f29d user: drh tags: trunk | |
| 19:55 | Turn off autocomplete on the chat entry form. check-in: 5715978d9f user: drh tags: trunk | |
| 18:27 | Merge the development of the Fossil chatroom onto trunk. This feature is well isolated from the rest of the system and so we can safely continue development on trunk, which is more convenient for testing. check-in: e8ba89b168 user: drh tags: trunk | |
| 18:21 | Fix the /chat-poll page so that it works even when called from "fossil ui". Closed-Leaf check-in: 6f424a32b5 user: drh tags: chatroom-dev | |
| 16:19 | Additional documentation on the /chat-poll page. check-in: 2261b29415 user: drh tags: chatroom-dev | |
| 16:11 | The althttpd webserver blocks the "/-50" part of the URL. So it has to be a query parameter. check-in: 3d6267edad user: drh tags: chatroom-dev | |
| 16:08 | Upon initial connect to the chatroom, only load the most recent 50 messages. This magic number "50" ought to be configurable, but is hard-coded for the moment. We also need a way for the user to request more history. check-in: c017a7b4d0 user: drh tags: chatroom-dev | |
| 15:35 | Add the /chat-delete page that can be used to by an XHR to delete a particular chat message. check-in: 2480ce9465 user: drh tags: chatroom-dev | |
| 15:18 | chat: when pasting an image and a file is already selected, make sure to clear out that selected file state to avoid conflicting data. check-in: 63ec4a5bcd user: stephan tags: chatroom-dev | |
| 15:12 | chat: improved visual notification of drag/drop into the file input selector. check-in: d521007602 user: stephan tags: chatroom-dev | |
| 15:00 | chat: reworked the drag/drop bits to take advantage of Firefox and Chrome already supporting drag/drop onto a file input element. check-in: 7e48953c16 user: stephan tags: chatroom-dev | |
| 14:29 | The "fossil scrub --verily" command deletes all chat history. check-in: 7779535f04 user: drh tags: chatroom-dev | |
| 14:21 | Made chat drop zone smaller by replacing its text with a helplet button. Added 'chat' table to the list of those NOT nuked by rebuild. check-in: 85939ffcbe user: stephan tags: chatroom-dev | |
| 13:51 | Only right-align the self-posts if the outerWidth of the browser is less than 1000. Simplify the CSS by removing unused rules. check-in: f3c8e83858 user: drh tags: chatroom-dev | |
| 10:41 | Added a Cancel button to the drag/drop file/image field to clear the pending blob. Still need to hook it up to interact with the file input field, but that will have to wait a bit. check-in: 018084c50e user: stephan tags: chatroom-dev | |
| 10:28 | Chat style tweaks. check-in: 3e956a2354 user: stephan tags: chatroom-dev | |
| 10:23 | chat: added drag/drop support for files. Images get previewed like those pasted from the clipboard. check-in: 4c0146f180 user: stephan tags: chatroom-dev | |
| 08:43 | Removed some dead code. Updated some docs. check-in: cf789fa7e1 user: stephan tags: chatroom-dev | |
| 08:33 | Chat clipboard paste: pasted text, regardless of event target, now goes to the input field and pasted images, regardless of the event target, now go into the image-submit slot. check-in: 02fa19aa99 user: stephan tags: chatroom-dev | |
| 08:21 | Fixed incorrect chatMessage.fsize value being served with the message list JSON. check-in: 8f736e8456 user: stephan tags: chatroom-dev | |
| 07:59 | Rescoped the chat timestamp popup widget into a deeper scope (less visible/leaky). Moved the duplicated click-somewhere-to-close-popup handlers into PopupWidget.installClickToHide() method. check-in: 6bccbc20ea user: stephan tags: chatroom-dev | |
| 07:45 | Simplified some JSON quoting in chat.c. Bypass the paste-from-clipboard handling if the paste target is the input text field, to avoid a console-level error when the text cannot be parsed as an image. TODO: figure out how to handle the paste-image case properly when the event target is the text input field. check-in: 2fe8d7c4b1 user: stephan tags: chatroom-dev | |
| 07:12 | Seem to have resolved the broken download names for chat-posted files. check-in: b604154c38 user: stephan tags: chatroom-dev | |
| 07:09 | Implemented paste image into chat from clipboard. Fixed posted file download link but the files download with the same name as their message ID, which isn't very friendly. Not sure how to resolve that bit. check-in: eb7845f339 user: stephan tags: chatroom-dev | |
| 06:26 | Chat message precise timestamps are now shown via a tap/click popup, rather than hoverhelp, for mobile compatibility. check-in: 0101325f9d user: stephan tags: chatroom-dev | |
| 05:44 | Import fossil bootstrapping JS into the chat app, add current login name to window.fossil.user.name, and use that name as the initial 'me' value in chat.js (resolves the FIXME in that latter part). check-in: 4e832e9f40 user: stephan tags: chatroom-dev | |
| 05:28 | Disable the detailed timestamp popup when browser doesn't support it. (example: Safari) check-in: 5744428bfa user: mgagnon tags: chatroom-dev | |
| 04:39 | Re-added .message-content min-width which was lost when we rolled back [7e6d2f0a1]. check-in: 67e5bd67d5 user: stephan tags: chatroom-dev | |
| 04:19 | Added complete timestamps (local and GMT) as title attribute of message headers. check-in: 696135b65e user: stephan tags: chatroom-dev | |
| 04:06 | Attempt to fix the "NaN" date problem in chat. check-in: aefa8e5d1f user: drh tags: chatroom-dev | |
| 03:52 | Experimentally removed the left/right split of me/everyone else messages, per chatroom discussion. Added a min-width to messages to keep the user name from being longer than short messages (unless the user name is really long). Update: The experiment didn't work out. Moved to a branch. Closed-Leaf check-in: 7e6d2f0a11 user: stephan tags: no-joy | |
| 02:58 | Show only the HH:MM part of the date for each chat message. check-in: bc65900dae user: drh tags: chatroom-dev | |
| 02:27 | Add Chat to the /sitemap, so that it appears on the hamburger menu. check-in: 0272d8bb35 user: drh tags: chatroom-dev | |
| 02:24 | Chat message background color determined by username. check-in: adb93ca980 user: drh tags: chatroom-dev | |
| 01:33 | Basic chat functionality seems to be on-line again. check-in: 441ee6af06 user: drh tags: chatroom-dev | |
| 00:58 | Get the /chat-send and /chat-poll interfaces working. check-in: 25828eb581 user: drh tags: chatroom-dev | |
|
2020-12-22
| ||
| 20:11 | Begin trying to integrate the chatroom prototype into the Fossil core. New code is in src/chat.c and src/chat.js. Add the new "C" capability to enable access to chat. The new code compiles but is not yet functional. (This is an incremental check-in.) The original tools/chat.tcl Wapp script is still available for reference. check-in: 217b0d2548 user: drh tags: chatroom-dev | |