Commit graph

4159 commits

Author SHA1 Message Date
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: 82329124ff/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
Scott Nonnenberg
2aa7955a65 Update translations for week of 5/1 2018-05-02 09:29:36 -07:00
Daniel Gasienica
e36ca381c6
Document Windows 7 Developer Setup (#2321) 2018-05-01 20:00:25 -04:00
Daniel Gasienica
40874972de Document how to reload app using developer tools 2018-05-01 19:14:49 -04:00
Daniel Gasienica
05cf27af2b Document installation on Windows 7 2018-05-01 19:14:49 -04:00
Scott Nonnenberg
2e26adcb56
Turn on prettier support for markdown files, update all files (#2320)
Turn on prettier support for markdown files, update all files
2018-05-01 16:07:32 -07:00
Scott Nonnenberg
322d307655 Turn on prettier support for markdown files, update all files 2018-05-01 16:06:57 -07:00
Scott Nonnenberg
47468ee3db
Build updates: remove unused commands and assets (#2318)
Build updates: remove unused commands and assets
2018-05-01 16:04:52 -07:00
Daniel Gasienica
16302d9613 Update README copyright year to 2018 (#2279)
Closes #2279.
2018-05-01 14:50:56 -04:00
Ayman Nedjmeddine
995851dce7 Updated copyright year to 2018 2018-05-01 14:50:11 -04:00
Scott Nonnenberg
cea77418ec Remove unused asarl package.json script, rearrange a little 2018-05-01 09:49:22 -07:00
Scott Nonnenberg
167f54f37f Remove unused build assets
Linux: deb (dropped zip)
Mac: zip (dropped dmg)
Windows: exe (dropped zip)

We can always re-add if people are relying on these things. But our
download links all point to these assets, so we'll generate and upload
only these for now.
2018-05-01 09:47:10 -07:00
Scott Nonnenberg
58fddc4e9d Remove electron builder support for publishing to S3
We do this ourselves now.
2018-05-01 09:46:36 -07:00
Scott Nonnenberg
50eb82fa6a package.json: Remove all but the scripts needed for modern build 2018-04-30 22:36:21 -07:00
Scott Nonnenberg
9608b88eae Gruntfile: Remove build fetching, no longer used in build 2018-04-30 22:34:54 -07:00
Scott Nonnenberg
fc80a4b350 Stop uploading linux build assets; no longer used in build 2018-04-30 22:34:27 -07:00
Scott Nonnenberg
af94c67e42 v1.10.0-beta.1
Media Gallery showing all attachments in a given conversation (#2291, previous: #2236)

Quotes:
  - Show 'You' in Android theme instead of your own contact name (#2312)
  - Show thumbnails for quotes of messages with video attachments (#2293)

Video attachments: show first frame preview in composition area (#2293)

Increase speed of migration to move attachments to disk from database (#2314)

Dev:
  - Add comments clarifying our mechanisms for stripping EXIF info (#2313)
  - Move to prettierjs to format our code (#2303)
  - Fix break in styleguide; make filesize/Signal.Util.GoogleChrome available (#2302)
  - Remove duplicate entry from .gitignore (#2271)
2018-04-30 17:06:44 -07:00
Daniel Gasienica
3d147a3e21
Strip Image Metadata (#2313) 2018-04-30 19:06:26 -04:00
Daniel Gasienica
6eca5ee940 Document that JPEG auto-orient strips EXIF metadata 2018-04-30 19:05:10 -04:00
Daniel Gasienica
774ef94f5d
Prettier (All The Things) (#2303)
Adopt Prettier code formatting for our entire project to reduce overhead of
formatting code. I considered adding a pre-commit hook but to make the change
more gradual, I recommend installing an editor plugin that runs Prettier on
save, e.g. `JsPrettier` for *Sublime Text*, or manually run `yarn format`.

Also: This PR makes no other changes to linting. ESLint is still opt-in as it
requires more changes than just formatting an can be done on a as-needed basis
when touching particular files (as we have done in the past.) On the other hand,
the ESLint required changes will now be smaller as they won’t involve large
formatting changes.

## Sublime Text Plugin

-  Install **JsPrettier**:  https://github.com/jonlabelle/SublimeJsPrettier
-   Settings:
      ```
      {
        "prettier_cli_path": "./node_modules/.bin/prettier",
        "auto_format_on_save": true,
        "auto_format_on_save_requires_prettier_config": true,
      }
      ```

## Changes

- [x] Disable conflicting ESLint rules
- [x] Exclude generated files and `libtextsecure`
- [x] Autoformat all JS and TS code (excluding CSS and JSON)
- [x] Apply isolated manual one-time fixes:
      80bc06486e
- [x] Goodbye Vim modelines!
      7b6e77d566
- [x] Ensure automated tests pass
- [x] Ensure app still works (smoke test)
2018-04-30 18:57:15 -04:00
Daniel Gasienica
522bd57ec3 Run yarn lint-windows without Prettier for AppVeyor
We need to figure out how to run globs on Windows.
2018-04-30 18:13:30 -04:00
Daniel Gasienica
1d867d784d Decouple yarn format from yarn format-check
Checking if that fixes Windows CI issue.
2018-04-30 17:33:58 -04:00
Daniel Gasienica
c1445f1abe Remove comment about 90 character line length limit 2018-04-30 17:07:25 -04:00
Daniel Gasienica
428984c8e2 Include Prettier as part of yarn lint 2018-04-30 16:53:34 -04:00