GithubHelp home page GithubHelp logo

aaron235 / messageworks Goto Github PK

View Code? Open in Web Editor NEW
2.0 2.0 0.0 784 KB

A secure and lightweight chat webapp written with Perl and Mojolicious.

License: Apache License 2.0

JavaScript 20.50% CSS 43.86% Shell 0.27% Perl 35.37%

messageworks's People

Contributors

aaron235 avatar johndearheart avatar madebyollin avatar

Stargazers

 avatar  avatar

Watchers

 avatar  avatar  avatar

messageworks's Issues

Improve logging

Possibly add a direct file writer for log flies, and have the server accept flags for level of verbosity.

Error page titles should be parsed from error page HTML

Right now, error page titles [which should be identical to the

tag contents in the error page file] are hard-coded in a perl switch statement. They should be parsed from the HTML, to ease the error-adding process and prevent title/h2 mismatches.

image

Proposed new database structure

Need a separate database containing a document for each room with values for name, privacy, and open date (or more things), and this database can look up the other rooms by collection name, which will contain a document for each message, housed by nothing.

Need whispers!

Typing @[randID] for a valid randID should create a whisper.

  • Clicking a user name in the users list or messages should add the "@RandiD" to the start of the input field
  • @@ should auto-replace to the randID of the last person who sent you a whisper.

Whisper @NAMEs should be specially formatted [if valid].

Drag-and-drop Image-posting

Dragging a file onto the chat window should show an "Add" cursor. The file should be fast-checked a) for file size [shouldn't be bigger than 2mb or so] and b) to be sure it's an image. If both tests pass, the image gets converted to base64 encoding and inserted into the chat as a single message. Otherwise, display an error in the infobar for ~5sec and fade it out.

How to do:

  • JS accepts image file, tests, converts to base64
  • Perl recognizes data:image/png;base64,asdjfla;ksdjflaksdj links and properly formats them

Needs a mobile site

Might require an 'm.messageworks.com' subdomain, but this needs to be done.

Whispers should be more recognisable

Make the background color of the message div the same hue as the user's color, with only 10% saturation. (Or possibly the same hue and saturation with white text instead of black?)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.