Commit Graph

36 Commits

Author SHA1 Message Date
Audric Ackermann 28c7445dce
refactor most of the components to outside of their Session folder (#2072)
* refactor most of the components to outside of their Session folder

* finish moving overlay and memberListItem to react hook

* fix bug with kicked member len >2 not being displayed

also sort admins first in UpdateGroupMembers dialog

* fix admin leaving text of groupNotification

* add a useFocusMount hook to focus input fields on mount

* make click avatar convo item open only user dialog

* cleanup config default.json

* make sure to use convoController to build sync message

* disable showing pubkey on opengroups

* add a pause on audio playback

Fixes #2079
2021-12-14 15:15:12 +11:00
Audric Ackermann b17312c13c
Cleanup redux store (#1925)
* do not consider expire timer update unread messages #1881

* cleanup conversation props in redux to only have what cannot be derived

* fix app not starting without the await on convo creation

* cleanup props of message model
2021-09-17 16:41:04 +10:00
audric bfc4b2b720 lint 2021-07-22 16:34:17 +10:00
Audric Ackermann ca331b95a6
remove coverage unused 2021-07-05 10:26:40 +10:00
Audric Ackermann 4a491e6a6a
lint 2021-06-25 15:33:31 +10:00
Audric Ackermann 9f6a5f6d2e
find lint 2021-06-16 14:44:10 +10:00
Audric Ackermann f7581cf4eb
increase prettier maxWidth to 100 2021-04-22 18:03:58 +10:00
Audric Ackermann ed84760f0e
add a tslint rule to forbid use of async without await 2021-02-09 17:00:54 +11:00
Audric Ackermann 026a1930ed
add a getOrThrow to ConversationController when we expect this convo 2020-10-15 17:19:49 +11:00
Maxim Shishmarev 0904e7a8ca Refactor from message polling to content message handling 2020-06-30 18:10:35 +10:00
Audric Ackermann e9875b2c1b
disable tslint rule whichs forbids small letters hexa 2020-06-19 16:31:12 +10:00
Audric Ackermann 702a7d6b88
upgrade tslint to 5.19 to have no-promise-as-boolean 2020-06-18 12:25:02 +10:00
Maxim Shishmarev 8ca7b8cfb4 Message receiving refactor: handleDataMessage onwards 2020-06-12 18:08:44 +10:00
Mikunj 3f78e2686e Allow lowercase characters in static methods.
The following changes just makes it so functions can
2020-06-09 14:02:16 +10:00
Audric Ackermann b1d8590a66 update tslint.json to allow use of dangerouslySetInnerHTML in SessionHTMLRenderer 2019-12-16 09:38:34 +11:00
Maxim Shishmarev 7c96990119 Correctly handle server errors in multi-deletion 2019-11-06 13:22:21 +11:00
Maxim Shishmarev 687e9db77b Custom message rendering of mentions 2019-09-23 11:00:51 +10:00
Ryan Tharp c57571fdfd loki.network rss feed 2019-08-23 11:11:23 +10:00
Scott Nonnenberg c8ea2e9463 Download and install updates without the help of electron-updater 2019-04-05 17:18:37 -07:00
Scott Nonnenberg b3ac1373fa Move left pane entirely to React 2019-03-12 17:44:14 -07:00
Scott Nonnenberg 0850dc368a Lint fixes 2018-10-11 12:24:58 -07:00
Scott Nonnenberg 3c69886320 Finish new Message component, integrate into application
Also:
- New schema version 8 with video/image thumbnails, screenshots, sizes
- Upgrade messages not at current schema version when loading messages
  to show in conversation
- New MessageDetail react component
- New ConversationHeader react component
2018-07-17 15:58:07 -07:00
Scott Nonnenberg 2988da0981 Turn on all of Microsoft's recommend lint rules
Biggest changes forced by this: alt tags for all images, resulting in
new strings added to messages.json, and a new i18n paramter/prop added
in a plot of places.

Another change of note is that there are two new tslint.json files under
ts/test and ts/styleguide to relax our rules a bit there. This required
a change to our package.json script, as manually specifying the config
file there made it ignore our tslint.json files in subdirectories
2018-05-23 16:26:47 -07:00
Daniel Gasienica 84f69f482f Prettier: Format JSON configuration files 2018-05-04 16:32:08 -04:00
Daniel Gasienica 320a8d31c1 TSLint: Allow multiline JS in JSX for CSS-in-JS 2018-04-25 15:24:51 -04:00
Daniel Gasienica cd2a02a626 Add TSLint Prettier overrides 2018-04-25 15:24:51 -04:00
Daniel Gasienica 8edbd06e43 TSLint: Enforce UNIX line breaks 2018-04-25 15:24:51 -04:00
Daniel Gasienica a8bca9b8eb TSLint: Enforce indentation with 2 spaces
Not sure if this rule actually works.
2018-04-25 15:24:51 -04:00
Daniel Gasienica 04acdebe48 TSLint: Align various syntax elements 2018-04-25 15:24:51 -04:00
Daniel Gasienica 832b6309a2 Limit line length 2018-04-25 15:24:51 -04:00
Daniel Gasienica cf1d621bce Allow line breaks in long `import` statements 2018-04-25 15:24:51 -04:00
Daniel Gasienica 0daccee209 Enable TSLint Mocha rules 2018-04-11 19:45:48 -04:00
Daniel Gasienica 7cb43c9f7f Add TSLint rules 2018-04-11 16:36:42 -04:00
Daniel Gasienica e052d1df7b Use generic array syntax for consistency
Always prefer `Array<T>` over `T[]` for primitive types only.
2018-04-11 16:36:42 -04:00
Scott Nonnenberg 23293a3c00
New tslint rule: Interfaces must not start with I 2018-04-05 12:24:43 -07:00
Scott Nonnenberg 893fb1cb9e
Introduce React/TypeScript/TSLint into app for new UI components
npm run transpile
  Works on files under js/react/
  Outputs files right next to the .tsx file

This is part of our `grunt dev` task, as well as the default grunt task,
which does everything else necessary to get a raw git checkout ready to
run.
2018-04-04 16:08:27 -07:00