Commit Graph

596 Commits

Author SHA1 Message Date
Miguel Freitas
ca911842c1 experimental attachment support using webtorrent.
persist attached file (local added torrents) using indexedDB/localForage lib.
2016-05-08 23:28:32 -03:00
Miguel Freitas
d6da998635 guess media type by filename extension when mimetype is missing 2016-05-08 16:31:54 -03:00
Miguel Freitas
8a39eba6b6 initial webtorrent support to display embeded media (disabled by default) 2016-05-08 13:09:38 -03:00
Simon Grim
ec37c824f9 fetch shortened URI on click 2016-05-06 16:40:12 +05:00
Simon Grim
572242e0c1 fix for retry to decode shortened URI if we got null response 2016-05-05 09:32:45 +05:00
Simon Grim
c93474d3d5 retry to decode shortened URI if we got null response 2016-05-05 09:14:35 +05:00
Miguel Freitas
dccc5695e0 support decodeShortURI returning an array [url,mimetype] instead of just url string 2016-05-03 23:02:54 -03:00
Miguel Freitas
1da57627f3 create a new stopChars variant excludind valid base64 chars used in shortened urls 2016-04-30 11:12:11 -03:00
Simon Grim
6401864cd4 delete mistype 2016-04-05 19:39:23 +05:00
Simon Grim
6ff3252148 add rel="noreferrer" to external links 2016-04-05 19:35:59 +05:00
Simon Grim
1d480f2009 add fetched URIs' text cropping (23 chars + '…') for better readability 2016-04-03 15:44:30 +05:00
Simon Grim
3d92f85410 add auto focus on textarea when we open DMs 2016-03-30 04:47:23 +05:00
Simon Grim
d63918dac6 add confirmation to ~shorten URL~ in DMs to tmobile 2016-03-30 04:34:47 +05:00
Simon Grim
4f38edc466 add confirmation to ~shorten URL~ in DMs 2016-03-29 16:17:18 +05:00
Simon Grim
e11a1c35ce add appending of twists' elements to twister.html.detached immediately after creation 2016-03-29 14:24:07 +05:00
Miguel Freitas
3023b90c8a display longer posts (>140 characters) 2016-03-25 20:39:36 -03:00
Simon Grim
8819187d2d fix filterLang() to cut out '/me' directive before processing 2016-03-25 21:57:55 +05:00
Simon Grim
c0b034791b update franc.js to 1.1.3, see f91558406b 2016-03-25 21:50:14 +05:00
Simon Grim
d2cd9cdea0 fix filterLang() to cut out 'twist:…=' links before processing 2016-03-25 21:46:24 +05:00
Simon Grim
a9c8f71ab0 fix wrong checks of twist data userpost.msg property that leads to applying of language filtering by userpost.rt.msg 2016-03-25 21:31:25 +05:00
Simon Grim
ac98d8175a replace warning on enter-URL-to-shorten with note 2016-03-25 06:18:11 +05:00
Simon Grim
121dc72e6f fix checks of post.userpost.rt.msg and restyling of properties in willBeHidden() 2016-03-25 05:27:45 +05:00
Simon Grim
6eec8088cf fix checks for twist .msg fields corectness in search results handling 2016-03-25 05:12:21 +05:00
Simon Grim
2a37be1a73 add more strict checks for twist .msg fields corectness 2016-03-25 04:50:28 +05:00
Simon Grim
e5a8c44d11 tune profile modals openning 2016-03-25 04:06:15 +05:00
Simon Grim
9fcadc9634 add missed check for userpost.rt.msg emptiness in postToElem() 2016-03-25 03:32:56 +05:00
Simon Grim
a26ff53c76 add check for input string emptiness in filterLang() 2016-03-25 03:21:07 +05:00
Simon Grim
cfd51f163e fix checks for twist .msg fields emptiness when it's need to decide whether twist should be displayed or not 2016-03-25 03:11:08 +05:00
Simon Grim
5c5f262ca0 add brief explanation to warning in paste-URL-to-shorten prompt 2016-03-24 01:44:49 +05:00
Simon Grim
1f686b36cb fix handling of clicks on .mini-follower-link 2016-03-24 00:20:27 +05:00
Simon Grim
054348756d add handling of clicks on .mini-follower-link 2016-03-24 00:17:39 +05:00
Simon Grim
e4bc01ecd3 rename openConversationClick() to handleClickOpenConversation() 2016-03-23 23:56:36 +05:00
Simon Grim
c7f3c9780b fix routeOnClick() to open already active routes in new tab 2016-03-23 23:52:53 +05:00
Simon Grim
b7a8240bbc tune profile modals openning 2016-03-23 23:51:12 +05:00
Simon Grim
07260049cc add flag to getElem() to search in templates too 2016-03-23 23:49:58 +05:00
Simon Grim
0d902c1ea6 rewrite appendPostToContainer() and rename to appendPostToElem() 2016-03-23 22:33:16 +05:00
Simon Grim
6cdc6cc511 tune 'shorten URL', add related localization 2016-03-23 21:47:22 +05:00
Simon Grim
085108cc58 add 'shorten URL' link to .post-area-new textareas and fix misc 2016-03-23 04:02:20 +05:00
Simon Grim
2cfaae8568 fix misspelling of 'shorten' verb 2016-03-22 23:12:34 +05:00
Simon Grim
aad737f10d fix RPC console warnings 2016-03-22 21:31:12 +05:00
Simon Grim
ee7f84d2b6 add and fix checks for daemon version and input data for short URI related functions 2016-03-22 17:43:04 +05:00
Simon Grim
2c26754228 add dummy URI shortener with link in .userMenu-config-dropdown 2016-03-22 01:54:56 +05:00
Simon Grim
21ee46a466 add appending of twists' elements to twister.html.detached immediately after creation
to be able to select them via getElem() in situation where they are not selected because not appended yet to body
e.g. it fixes case when fetched short URIs can't be applied on twists which are created in newConversationModal()
2016-03-21 23:53:51 +05:00
Simon Grim
08856095b0 fix applyShortenedURI() to handle detached elements too 2016-03-21 23:10:50 +05:00
Simon Grim
7542eddf5b fix console warning for decodeShortURI() 2016-03-21 22:58:42 +05:00
Simon Grim
c5d178779d rewrite of twister_io.js: indentation, vars renaming, styling, console messages, misc 2016-03-21 22:55:51 +05:00
Miguel Freitas
f0d80e25c0 reuse the same mechanism that limits parallel dhtgets also for decodeshorturl 2016-03-20 18:44:28 -03:00
Simon Grim
7d0ee60aba add caching of shortened URIs after fetching 2016-03-21 00:55:32 +05:00
Simon Grim
3e43fdb594 add fetching of shortened URIs
see a00dfcf247
and also cb020faba8 for daemon version
2016-03-20 22:49:50 +05:00
Simon Grim
68fe2b0174 add workaround to be able to play sound notifications on Firefox 2016-03-09 01:23:39 +05:00
Simon Grim
9ac1daabf1 add volume parameter to playSound() 2016-03-09 01:23:30 +05:00
Erkan Yilmaz
b4abc9a4ab DE: typo 2016-02-25 19:27:38 +01:00
Simon Grim
3d68b90ef9 fix wrong bindings for hyperlinks in fillElemWithTxt() 2016-02-23 01:08:01 +05:00
Simon Grim
17bfce7c43 delete console.log() in htmlFormatMsg() for empty input string 2016-02-22 17:10:54 +05:00
Simon Grim
a9e750c257 apply fillElemWithTxt() where htmlFormatMsg() was applied 2016-02-22 17:09:01 +05:00
Simon Grim
d33f77a44e add fillElemWithTxt() to fill elements with formatted text with bind actions on it 2016-02-22 16:40:04 +05:00
Simon Grim
f656997fa4 fix muteEvent()'s default behaviour preventing 2016-02-22 16:03:09 +05:00
Simon Grim
8533e8c6e7 fix routeOnClick()'s routing in new tab 2016-02-22 16:02:12 +05:00
Simon Grim
c306ef4401 change refreshTwistdayReminder() to match first twist time in local shift, like it was New Year event; fix for #344 2016-02-20 20:58:57 +05:00
kissge
e1de767f34 Make sure defaultScreenName is loaded as a string value
This fixes the problem that users with screen name consisting only digit characters cannot login.
See #342.
2016-02-19 11:44:40 +09:00
Simon Grim
d1351e9c7e fix profile-edit missed popup message on saving: wrong text variable name 2016-02-16 18:56:55 +05:00
Simon Grim
b0c2bacb15 fix modals' minimising-resuming-closing in some conditions 2016-02-16 04:46:47 +05:00
Simon Grim
bf88024cb3 fix modals' scroll on resuming 2016-02-16 04:17:33 +05:00
Simon Grim
44e190bc4a make link to more followers in profile to be openning followers modal 2016-02-16 03:48:39 +05:00
Simon Grim
1f95dcb534 fix openFollowersModal() to show not only local user's followers 2016-02-16 03:35:34 +05:00
Simon Grim
606dd0ad67 rewrite getFullname() 2016-02-16 01:16:57 +05:00
Simon Grim
a4f2d87678 add .followers-list updating on twisterFollowingO.knownFollowers updating 2016-02-15 23:53:12 +05:00
Simon Grim
9baa250ef0 rename followingList related stuff, delete MAL.followingListLoaded() 2016-02-15 22:56:05 +05:00
Simon Grim
b8f0c104a9 delete needless .open-following-page binding 2016-02-15 22:40:21 +05:00
Simon Grim
57374638e0 add #followers modal with brief explanation of current inability of obtaining of complete followers list 2016-02-15 22:32:37 +05:00
Simon Grim
88c3f6f6ef fix confirm_terminate_daemon popup text to be polygloted when showing 2016-02-15 15:22:40 +05:00
Simon Grim
d0098f9f3e make confirmPopup() to be able to polyglot .txtMessage at execution 2016-02-15 15:18:06 +05:00
Simon Grim
fae9122cf7 make alertPopup() available to use on events 2016-02-15 01:05:24 +05:00
Simon Grim
702bfd0f96 fix wrong selector which is used to hide following config for ourself in Following 2016-02-09 23:20:39 +05:00
Simon Grim
78af1e6bf1 add open in new modal by MMB & open in new tab by ctrl+LMB; fix misc hash handling 2016-02-04 00:03:45 +05:00
Simon Grim
f6f807205b optimization of DMs list handling 2016-02-03 22:04:53 +05:00
Simon Grim
8bb4216ac8 more accurate postExpandFunction() click binding 2016-02-03 18:04:42 +05:00
Simon Grim
7614201d85 attach templates to twister.tmpl.root instead twister.html.detached 2016-02-03 12:02:47 +05:00
Simon Grim
82ec957172 closeModal() after group leaving instead unsatisfactory history.back() 2016-02-03 01:51:33 +05:00
Simon Grim
77d51b77c2 fix join-group-import-key inputs via slight rewriting of importSecretKeypress(), move last one to js/interface_common.js 2016-02-03 01:39:35 +05:00
Simon Grim
322d6b7062 add nuteEvent wrapper over event.stopPropagation() to prevent misc unwanted things 2016-02-03 01:29:41 +05:00
Simon Grim
8c9c5f9293 The Natural Born Twister. Mess-O-Rama Music Vol. 2: Songs About Templates, Followings, Confirms, Alerts, Blank Windows And Clicks 2016-01-31 11:23:07 +05:00
Simon Grim
76a0d16836 avatar images' base64 encoding-decoding for gif for local storage, #339 2016-01-18 11:24:29 +05:00
Simon Grim
f9ca714791 avatar images' base64 encoding-decoding for jpeg and png for local storage, #339 2016-01-18 10:59:55 +05:00
Simon Grim
573d28723b compress a bit avatar images' base64 headers for jpeg and png for local storage, #339 2016-01-18 00:21:19 +05:00
Simon Grim
57cc22a2fc don't store avatar to local storage if it is 'img/genericPerson.png', #339 2016-01-17 23:48:39 +05:00
Simon Grim
e82959efde restyle getAvatar() 2016-01-17 23:45:38 +05:00
Simon Grim
65c5278169 reduce accuracy of time property of storage items to seconds to save some space of local storage, #339 2016-01-17 23:36:14 +05:00
Simon Grim
c07e6281ba add removing of old cached avatars and profiles from localStorage, see #339 2016-01-17 02:52:43 +05:00
Simon Grim
ac4bb8718b quick fix of DMs openning 2016-01-10 21:47:57 +05:00
Simon Grim
8608a9d235 fix modals' closing on window history navigation 2016-01-10 03:25:40 +05:00
Simon Grim
3da830567d fix window history navigation (and in particular bring back forward button, pardon the pun) 2016-01-10 03:22:28 +05:00
erqan
b7929abe29 fix typo.. 2016-01-09 14:40:51 +02:00
Simon Grim
e94a813587 add check if cbFunc is function to focusModalWithElement() 2016-01-09 00:03:11 +05:00
Simon Grim
0599685df4 add sound and desktop notification and counter indication if we got new DMs in minimized modal 2016-01-09 00:02:12 +05:00
Simon Grim
a6b89ce271 rename some vars and restyle a bit in js/twister_directmsg.js 2016-01-09 00:00:40 +05:00
Simon Grim
0b68a00481 insignificant optimization of vars in postSubmit() 2016-01-08 23:58:56 +05:00
Miguel Freitas
f7094887d7 hide empty posts (without text) 2015-12-24 14:07:07 -02:00
Miguel Freitas
3b1428c441 report listening ports and test if they are open (using an external site) 2015-12-24 13:46:07 -02:00
Miguel Freitas
00fa7904a9 bytes, not bits 2015-12-24 13:08:16 -02:00
slr
85a6ecbd32 Merge pull request #334 from erqan/patch-1
update tr translation
2015-12-09 13:32:55 +05:00
erqan
0433315bf7 update tr... 2015-12-07 16:41:26 +02:00
Erkan Yilmaz
7689d1af2e DE: +3 localized group msg items
see https://github.com/miguelfreitas/twister-html/pull/332
2015-12-07 11:31:17 +01:00
Simon Grim
316ea505f1 fix of wrong options' notification test setup 2015-12-03 14:06:12 +05:00
Simon Grim
9279b93edf fix of unwanted watchHashChange() initialization 2015-12-03 03:37:40 +05:00
Simon Grim
6a6b3aba5d fix updating of minimized modals / add resuming from desktop notifications 2015-12-03 03:31:49 +05:00
Simon Grim
44641a5271 rewrite showDesktopNotification() 2015-12-03 03:24:22 +05:00
Simon Grim
5acb60a7c8 fix miguelfreitas/twister-html#330: posts' wrong ordering 2015-11-28 12:55:18 +05:00
Xue Fuqiao
a3e1b0f9b5 Minor fix for zh-CN translation 2015-11-26 20:14:46 +08:00
Simon Grim
7d35a50b20 add check if target element exists to getAvatar() 2015-11-21 03:45:17 +05:00
Simon Grim
bc309abb0a add setting of avatar image in right upper dropdown menu 2015-11-21 03:34:50 +05:00
Simon Grim
25163ed1c5 fix missed parameters in htmlFormatMsg() 2015-11-21 02:35:40 +05:00
Simon Grim
07d8f171ee tune confirm_switch_to_network pop-up 2015-11-20 03:24:11 +05:00
Simon Grim
0d2b64b778 replace window.confirm() with confirmPopup() for 'confirm_terminate_daemon' confirmation 2015-11-20 01:19:26 +05:00
Simon Grim
813a5984d0 make confirmPopup() to apply htmlFormatMsg() with enabled markout to text of confirmation message 2015-11-20 01:09:08 +05:00
Simon Grim
f90c1db413 add 'opt' parameter object to htmlFormatMsg(), initially to set markout applicability 2015-11-20 01:00:30 +05:00
Simon Grim
4466c72814 make confirmPopup() to be able to fetch req object from event.data 2015-11-19 23:29:24 +05:00
Simon Grim
07beae2a42 fix unwanted minimizing of active modal in case of resuming of some other minimized modal in case if it happens not in result of clicking on it's resume button 2015-11-19 22:22:32 +05:00
Simon Grim
e28e824a94 add ability to minimize and resume modal buttons 2015-11-19 01:09:04 +05:00
Simon Grim
b622635952 rewrite processDmConversation() to avoid appending of double posts in DMs 2015-11-18 16:59:19 +05:00
Erkan Yilmaz
d7acc2d14d DE for "new group msg" 2015-11-14 13:31:03 +01:00
Xue Fuqiao
765f33564f Update zh-CN translation 2015-11-14 14:58:02 +08:00
Simon Grim
8163a7ebad tune 'twisted again by @' line to make it translateable & more cuztomizable 2015-11-04 01:29:43 +05:00
Сёма Мрачный
f5937880d1 Merge pull request #320 from erqan/blaster
add time of RT to post's 'twisted again by @' line...
2015-11-03 21:35:12 +05:00
Simon Grim
8feb66bc72 optimize attachPostsToStream() 2015-11-03 21:13:58 +05:00
erqan
45c6b969ed rt time... 2015-11-03 17:42:34 +03:00
Erkan Yilmaz
7e8fd60f7c typo
see https://github.com/miguelfreitas/twister-html/pull/318
2015-11-03 13:20:45 +01:00
Simon Grim
c4a5b6f98c replace window.confirm() with confirmPopup() for 'switch to network.html' confirmation 2015-11-02 04:33:51 +05:00
Simon Grim
614d96b470 delete missed console.log 2015-11-02 02:30:01 +05:00
Simon Grim
1d1abd24ad add informational popup after profile saving 2015-11-02 02:26:19 +05:00
Simon Grim
b2e2ba308c tune confirmPopup() 2015-11-02 02:15:58 +05:00
Simon Grim
50827a6691 individual new messages counters in DM modals for each peer/group 2015-10-30 04:28:23 +05:00
Simon Grim
f8b8b777a1 applying of htmlFormatMsg() for 'bio' field in peer/group profile 2015-10-27 21:31:04 +05:00
Simon Grim
1afe26afb3 fix check for emptiness of input in htmlFormatMsg() 2015-10-24 02:10:58 +05:00
Simon Grim
d5bbe2c6f1 replace .parents() method with .closest() — need only first ancestor 2015-10-24 01:39:22 +05:00
Simon Grim
98bbdbc560 add ability to change DM's group description 2015-10-24 01:20:41 +05:00
Simon Grim
7339ef71e5 #fix of group profile modal to show scroll-bar if member list doesn't fit on window 2015-10-22 02:05:18 +05:00
Simon Grim
e123478982 import #jQuery plugin from https://github.com/dreamerslab/jquery.actual 2015-10-22 02:00:05 +05:00
Simon Grim
638af49ece fix peers invitation on DM group creation 2015-10-01 23:27:01 +05:00
Simon Grim
c89b37acd5 fix wrong condition statements 2015-09-05 15:30:38 +05:00
Simon Grim
7ef1f0129e add alias textcompletion for peers invitation form; textcompletion refactoring 2015-09-05 04:14:16 +05:00
Simon Grim
89e4d5ed07 show usernames in #groupchat messages 2015-09-04 17:18:49 +05:00
Simon Grim
3595a9d2c5 introduce #groupchat #UI 2015-09-04 03:21:33 +05:00
Simon Grim
3b19eb584e Merge remote-tracking branch 'origin/tasty-fixes-13' 2015-09-04 02:04:33 +05:00
Erkan Yilmaz
17377d3b9f typo 2015-08-21 15:47:44 +02:00
Simon Grim
fe1d11316b add quote fetching for retwisted twists with comments 2015-08-21 14:36:05 +05:00
Simon Grim
bfa925347a fix post preview hiding; clear some CSS 2015-08-21 10:10:46 +05:00
Simon Grim
65833ed34a change way of post preview hiding; focus on textarea if it has some when switching 2015-08-20 17:31:16 +05:00
Simon Grim
b12d3d450e add button to switch beetween reply and retransmit on the fly; fix of modal prompt CSS 2015-08-20 17:19:54 +05:00
Simon Grim
7d156063ee move sent indicator to time stamp 2015-08-20 12:47:39 +05:00