Commit Graph

7232 Commits

Author SHA1 Message Date
Daniel Gasienica a0ddab669b Organize globals 2018-05-07 21:53:39 -04:00
Daniel Gasienica a86056630f Use Attachment.isVoiceMessage 2018-05-07 21:53:39 -04:00
Daniel Gasienica 5789b3eb75 Add Attachment.isVoiceMessage 2018-05-07 21:53:39 -04:00
Daniel Gasienica 2d95745d56 Add yarn build-protobuf command 2018-05-07 21:53:39 -04:00
Daniel Gasienica 58399549c3 Add protobufjs dependency 2018-05-07 21:53:39 -04:00
Daniel Gasienica fa4c3fda2b Extract common MIME types 2018-05-07 21:53:39 -04:00
Daniel Gasienica 8a4f062120 Add MIME.APPLICATION_OCTET_STREAM 2018-05-07 21:53:39 -04:00
Nick Weingartner c8be066391 Update hover color for horizontal dots in android dark theme 2018-05-07 18:37:12 -07:00
Daniel Gasienica bad4681ade Prettier: Format CSS, SCSS, and JSON (#2339)
Expand auto-formatting to CSS, SCSS, and JSON:

*   [x] Ignore symlinked SCSS file from `components`.
*   [x] Ignore package manifest files, `package.json` and `bower.json`,
        as they are already formatted by their package manager.
*   [x] Skip locale JSON files (already managed by Transifex tools).
*   [x] Format all stylesheets.
2018-05-07 18:44:37 -04:00
Daniel Gasienica 381290c55f Adjust tsconfig.json formatting for Prettier 2018-05-04 17:34:50 -04:00
Daniel Gasienica 9a74addc61 Prepend comments for infix comments in argument list 2018-05-04 17:22:00 -04:00
Daniel Gasienica 84f69f482f Prettier: Format JSON configuration files 2018-05-04 16:32:08 -04:00
Daniel Gasienica 557693e14c Prettier: Format all stylesheets 2018-05-04 16:32:08 -04:00
Daniel Gasienica 8ee250d37e Prettier: Format CSS, SCSS, and JSON 2018-05-04 16:32:08 -04:00
Daniel Gasienica 8ef5d87d6b Prettier: Update ignore list 2018-05-04 16:32:08 -04:00
Daniel Gasienica 0188abd9f4 Windows 7 Notifications: Disable Grouping (#2338)
Grouping of notifications is not supported on Windows 7 due this bug:
https://github.com/electron/electron/issues/11189

*   [x] Disable notification grouping (using `tag`) on Windows 7.
*   [x] Log notification grouping support.
*   [x] **Infrastructure:** Use 2-space indentation for all files
        (better integration with Prettier.)
2018-05-04 15:58:53 -04:00
Daniel Gasienica 0121dc7a5a Log notification grouping support 2018-05-04 15:37:46 -04:00
Daniel Gasienica c2407c8906 Disable notification grouping on Windows 7 2018-05-04 15:37:46 -04:00
Daniel Gasienica 5d230d3778 Add Settings.isNotificationGroupingSupported
See: https://github.com/electron/electron/issues/11189
2018-05-04 15:37:46 -04:00
Daniel Gasienica 211d54451b Use 2 spaces for indentation
Enable this globally now that we use Prettier.
2018-05-04 15:37:46 -04:00
Daniel Gasienica f0896b53bc Improve Logging For Disappearing Messages (#2332)
*   [x] Log updates to last message (message preview) in conversation list.
        Should help debug cases such as:
        https://github.com/signalapp/Signal-Desktop/issues/2323
*   [x] Use structured logs:
    *   [x] Use static prefix (easier to search)
    *   [x] Capitalize log message and use present tense
            (consistent with Git logging conventions).
    *   [x] Attach metadata as JSON serializable object. This has the benefit
            that all fields are named and can be searched for.
*   [x] Remove newlines from group IDs during redaction so they don’t break up
        log lines.
2018-05-03 14:06:08 -04:00
Daniel Gasienica 13f1ec2e51 Use structured logs
Easier to search for static prefix and fields are named.
2018-05-03 13:24:39 -04:00
Daniel Gasienica 0ce56eed87 Use structured log 2018-05-03 13:24:39 -04:00
Daniel Gasienica 5c8f734e67 Remove newlines from group IDs 2018-05-03 13:24:39 -04:00
Daniel Gasienica ae7d6aa900 Log Conversation::updateLastMessage 2018-05-03 13:24:38 -04:00
Daniel Gasienica 1ea21ae69c Use Native Notifications on Windows 7 (#2330)
*   [x] Test notifications on Windows 7.
*   [x] Switch to Electron native notifications on Window 7.
*   [x] Disable **Play audio notification** setting on Windows 7 since they are
        not natively supported.
*   [x] Improve logging for notification status.
*   [x] Investigate whether Electron notification support choosing custom sound
        on Windows. Answer: no.
        Source: https://github.com/electron/electron/blob/82329124ffcb2012d101c79236e82fbe6ba79c36/docs/api/notification.md#new-notificationoptions-experimental
*   [x] Remove `node-notifier`.
*   [x] **Infrastructure:** Port `OS` and `types/Settings` to TypeScript.
*   [x] Add support for specifying minimum Windows version with
        `OS.isWindows(minVersion?: string)`.
*   [x] OT: While testing on Windows 7, I confirmed spell checking worked
        for me.
2018-05-03 13:23:27 -04:00
Daniel Gasienica ecf23b6b2e Disable audio notifications on Windows 7 and lower 2018-05-02 20:01:57 -04:00
Daniel Gasienica a102016ed8 Port Settings and OS to TypeScript 2018-05-02 20:01:57 -04:00
Daniel Gasienica 38b23c6627 Add @types/semver 2018-05-02 20:01:56 -04:00
Daniel Gasienica 0b4c60c272 Add @types/sinon 2018-05-02 19:58:33 -04:00
Daniel Gasienica e3191c9017 Remove node-notifier 2018-05-02 19:58:33 -04:00
Daniel Gasienica c591c3ca55 Use native notifications on all platforms 2018-05-02 19:58:33 -04:00
Daniel Gasienica 4e6a03a91c Log whether OS supports native notifications 2018-05-02 19:18:34 -04:00
Daniel Gasienica 1f2a2e1d52 Use Notifications.getStatus 2018-05-02 19:18:34 -04:00
Daniel Gasienica d5b391757d Add Notifications.getStatus 2018-05-02 19:18:33 -04:00
Daniel Gasienica 5fe5320760 Rename SETTINGS to SettingNames 2018-05-02 19:18:33 -04:00
Daniel Gasienica 0701768fd7 Declare globals for drawAttention and isFocused 2018-05-02 19:18:33 -04:00
Daniel Gasienica 06e3f09732 ESLint: Add js/notifications 2018-05-02 19:18:33 -04:00
Daniel Gasienica b510916ef5 Split globals into third-party and own 2018-05-02 19:18:33 -04:00
Daniel Gasienica 9633a3fef2 Document Translations Setup + Remove Unused Strings (#2329)
- [x] Remove documentation on how to add discouraged Bower dependencies.
      **TODO:** Document how to pull in npm dependencies.
- [x] Document Transifex setup for pulling translations.
- [x] Remove unused translation strings.
2018-05-02 19:17:39 -04:00
Daniel Gasienica e010ff30a3 Use sequential numbering for ordered list
Using all `1.` is a workaround to allow reordering large lists without redoing
numbering.
2018-05-02 19:13:32 -04:00
Daniel Gasienica 10c6561f5b Document how to pull translations 2018-05-02 18:11:13 -04:00
Daniel Gasienica c754722867 Remove documentation about Bower dependencies
We are now using yarn (npm).
2018-05-02 18:11:13 -04:00
Daniel Gasienica e167958135 Remove unused messageCaption 2018-05-02 18:11:13 -04:00
Daniel Gasienica c40bd7e235 Remove unused retryDescription localized string 2018-05-02 18:11:13 -04:00
Scott Nonnenberg 4c7c9e87ad Move entire application over to using prettier.js (#2324)
Let's make it all pretty, shall we?
2018-05-02 13:41:31 -07:00
Scott Nonnenberg 97b0f1787b prettier: exclude blanket_mocha.js for libtextsecure tests 2018-05-02 13:40:57 -07:00
Scott Nonnenberg a0ed993b42 Now we've got everything prettified! 2018-05-02 13:40:57 -07:00
Scott Nonnenberg 754d65ae2e Let's make it all pretty, shall we?
We missed a couple directories with previous attempts to turn this on
globally: app/ and libtextsecure/

Not to mention files in places we didn't expect: ts files that weren't
in the ts directory!

This turns prettier on for every file we care about (js, ts, tsx, md)
everywhere in the project but for a few key parts.
2018-05-02 13:40:57 -07:00
Scott Nonnenberg df9c4d5629 Update translations for week of 5/1 (#2328)
Update translations for week of 5/1
2018-05-02 13:40:39 -07:00