yyfearth / madtalk Goto Github PK
View Code? Open in Web Editor NEWMadTalk - IM with Markdown
Home Page: http://madtalk.yyfearth.com/
License: MIT License
MadTalk - IM with Markdown
Home Page: http://madtalk.yyfearth.com/
License: MIT License
@yyfearth I don't really know how to use your compiler. Write something down or tell me where the document is.
channel id should be consist of alphabets, numbers, _ or -, and not case sensitive
regex: /^\/[\w\-]+\/?$/
url: /(channel id)
e.g. /cmpe203
, /0
and channel id will auto add '/' in front if it is not.
A general notifier wrap other notifiers to provide central API.
The sound effects come from HTC notification. I am not sure whether those sound effects are legal to use in this project.
try to discard express js in production startup script
use socket.io static handler to direct url and serve files
for it has caching and gzip features
Create a Cakafile including build and test tasks:
test/
dirAutomatically build coffee scripts to javascript.
Move scripts to correct specific places.
Auto-generate HTML files for testing purpose.
the "use strict" we put in the front of coffee file will be compiled after variable declaration by iced-coffee-script, so extra-coffee-script will do the same. but original version coffee-script seems fixed that.
(function() {
var AudioNotifier;
'use strict';
according to https://developer.mozilla.org/en/JavaScript/Strict_mode
To invoke strict mode for an entire script, put the exact statement "use strict"; (or 'use strict';) before any other statements.
so we can just remove that, and actually coffee-script will mandatory validate your code to ensure strict mode.
or we need to wait the compiler update to support add "use strict" to the right space unless we just use original version of coffeescript.
window.webkitNotifications.requestPermission(); only can be evoked by user action such as onclick
that cannot evoke automatically before show notification.
plan to rewrite DeskNotifier, and add a popup layer view.
merge audio, desk, title notifiers into one notifier for each of them is too small, and they can be tested together via one html.
sound need to be suppoted by all browser, so the two kinds of audio format mp3/4 and ogg should be both available.
embed the sounds into js via data uri
temporary only embed 1 sound little
with mp3
and ogg
format
a test prototype to support GFM without Code highlight
clean all the ui logic code in client.coffee
build a view controller class hierarchy included:
Feature 1
Use cases 1 to 7
I just check desktop notification on Firefox and IE.
Firefox does not support desktop notification (maybe through plugin). IE does, but with completely different approach, rather than follow W3C draft.
I suggest that we only use desktop notification on Chrome now. I might add IE approach later after the first iteration.
I tried to make the code more elegant and decided to use getter and setter.
The problems are
After a little research, it seems that Microsoft consider definedGetter as legacy and use Object.defineProperty
Function in JS 1.8.5.
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.