Personal fork of Tooty
Go to file
Vincent Jousse 69f0cfdc54 Closes #44: Autocomplete usernames. (#107)
* Get @mention in model

* Add autocomplete logic

* Get accounts to autocomplete from the server

* Add autocomplete css

* Check if we should show menu on account search

* Add keyboard events

* Update status with completed username

* Trigger autocomplete when getting accounts back

* Highlight choices on hover

* Put focus on textarea after updating it

* Fix clear draft

* Hit the server only on non empty query

* Lazzzzzzzzzzzzzzzzyyyyyyyyyyyyyyyyyyyyyyyyyyyyyy

* Add missing lazy

* Add keyboard subscriptions

* Add images and display name

* Better menu visibility handling

* Add lazy to notifications

* Js formatting.

* Improve styles.

* Add unique keys to costly lists.

* Fix tests.

* Coding style nits.

* Use the encodeUrl helper in ApiUrl.

* Nanonit.

* Improve autocomplete box styling.

* CamelCase draft record

* Move all autocomplete stuff to Draft

* Send status to ports with the reply prefix.

* Clear draft after posting a status.

* Move ports setStatus call to a dedicated Command helper.

* Naming.

* Fix navigation with arrow keys in textarea

* Always autoselect the first item of the menu
2017-05-01 22:10:34 +02:00
public Closes #44: Autocomplete usernames. (#107) 2017-05-01 22:10:34 +02:00
src Closes #44: Autocomplete usernames. (#107) 2017-05-01 22:10:34 +02:00
tests Closes #44: Autocomplete usernames. (#107) 2017-05-01 22:10:34 +02:00
.gitignore Put Elm files into src/ and assets into public/ (#4) 2017-04-20 14:38:52 +02:00
.travis.yml Travis integration (#22) 2017-04-21 14:49:00 +02:00
elm-package.json Closes #44: Autocomplete usernames. (#107) 2017-05-01 22:10:34 +02:00
package.json Add warn flags to start and debug 2017-04-30 15:05:44 +02:00
README.md Changed the doc about testsuite 2017-04-26 09:06:57 +02:00

tooty

An experimental Mastodon client written in Elm. It is not usable yet.

Setting up the development environment

$ npm i
$ ./node_modules/.bin/elm-package install

Starting the dev server

$ npm start

Starting the dev server in live debug mode

$ npm run debug

Building

$ npm run build

Deploying to gh-pages

$ npm run deploy

The app should be deployed to https://[your-github-username].github.io/tooty/

Launching testsuite

$ npm test

Licence

MIT