Commit Graph

4188 Commits (80d54843252ce0d5fc0d2480777410d09a47f051)
 

Author SHA1 Message Date
Daniel Gasienica c40bd7e235 Remove unused `retryDescription` localized string 7 years ago
Scott Nonnenberg 4c7c9e87ad
Move entire application over to using prettier.js (#2324)
Let's make it all pretty, shall we?
7 years ago
Scott Nonnenberg 97b0f1787b prettier: exclude blanket_mocha.js for libtextsecure tests 7 years ago
Scott Nonnenberg a0ed993b42 Now we've got everything prettified! 7 years ago
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.
7 years ago
Scott Nonnenberg df9c4d5629
Update translations for week of 5/1 (#2328)
Update translations for week of 5/1
7 years ago
Scott Nonnenberg 2aa7955a65 Update translations for week of 5/1 7 years ago
Daniel Gasienica e36ca381c6
Document Windows 7 Developer Setup (#2321) 7 years ago
Daniel Gasienica 40874972de Document how to reload app using developer tools 7 years ago
Daniel Gasienica 05cf27af2b Document installation on Windows 7 7 years ago
Scott Nonnenberg 2e26adcb56
Turn on prettier support for markdown files, update all files (#2320)
Turn on prettier support for markdown files, update all files
7 years ago
Scott Nonnenberg 322d307655 Turn on prettier support for markdown files, update all files 7 years ago
Scott Nonnenberg 47468ee3db
Build updates: remove unused commands and assets (#2318)
Build updates: remove unused commands and assets
7 years ago
Daniel Gasienica 16302d9613 Update README copyright year to 2018 (#2279)
Closes #2279.
7 years ago
Ayman Nedjmeddine 995851dce7 Updated copyright year to 2018 7 years ago
Scott Nonnenberg cea77418ec Remove unused asarl package.json script, rearrange a little 7 years ago
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.
7 years ago
Scott Nonnenberg 58fddc4e9d Remove electron builder support for publishing to S3
We do this ourselves now.
7 years ago
Scott Nonnenberg 50eb82fa6a package.json: Remove all but the scripts needed for modern build 7 years ago
Scott Nonnenberg 9608b88eae Gruntfile: Remove build fetching, no longer used in build 7 years ago
Scott Nonnenberg fc80a4b350 Stop uploading linux build assets; no longer used in build 7 years ago
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)
7 years ago
Daniel Gasienica 3d147a3e21
Strip Image Metadata (#2313) 7 years ago
Daniel Gasienica 6eca5ee940 Document that JPEG auto-orient strips EXIF metadata 7 years ago
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)
7 years ago
Daniel Gasienica 522bd57ec3 Run `yarn lint-windows` without Prettier for AppVeyor
We need to figure out how to run globs on Windows.
7 years ago
Daniel Gasienica 1d867d784d Decouple `yarn format` from `yarn format-check`
Checking if that fixes Windows CI issue.
7 years ago
Daniel Gasienica c1445f1abe Remove comment about 90 character line length limit 7 years ago
Daniel Gasienica 428984c8e2 Include Prettier as part of `yarn lint` 7 years ago
Daniel Gasienica 97dfffd2b0 Add `.prettierrc.js` 7 years ago
Daniel Gasienica 7fff279aae Prettier: Ignore JSON and CSS 7 years ago
Daniel Gasienica 87d374ea78 Remove `@prettier` pragmas 7 years ago
Daniel Gasienica 95321e5d3e Remove Vim mode lines 7 years ago
Daniel Gasienica 822850433e Apply manual fixes for ESLint errors 7 years ago
Daniel Gasienica 1dd87ad197 Format all source code using Prettier 7 years ago
Daniel Gasienica b4dee3f30b Prettier: Ignore generated files 7 years ago
Daniel Gasienica aa7665e497 Run Prettier on all source files 7 years ago
Daniel Gasienica 3796c276ba Organize ignored files 7 years ago
Daniel Gasienica f770a2ce43 ESLint: Ignore generated files 7 years ago
Daniel Gasienica 94d10147a0 Adjust ESLint rules for Prettier 7 years ago
Daniel Gasienica 39ddfd141e Override ESLint rules not applicable to Prettier 7 years ago
Daniel Gasienica 1bf3ab630c Add `eslint-config-prettier` 7 years ago
Daniel Gasienica aee84f0783
Increase attachment migration conversion speed (#2314) 7 years ago
Daniel Gasienica e4baf27fa7 Increase migration conversion speed by a factor of 3x 7 years ago
Scott Nonnenberg 82e2fe93a5
Show 'You' in Android theme quotes instead of contact name (#2312)
Show 'You' in Android theme quotes instead of contact name
7 years ago
Daniel Gasienica 2e6f19da8f
Media Gallery: Phase 2 (MVP) (#2291)
- [x] Render list of document items
- [x] Add support for video in lightbox
- [x] Save attachments:
  - [x] Port the following `AttachmentView` methods to support attachment file
        saving in React:
    - [x] `getFileType`
    - [x] `suggestedName`
    - [x] `saveFile`
  - [x] Add click to save for document list entries
  - [x] Add save button for media attachment in lightbox
- [x] Run background migration based on `schemaIndex` to populate media gallery
- [x] Implement navigation in media gallery
  - [x] Previous and next buttons
  - [x] Previous and next via keyboard
- [x] Empty state
- [x] Fix layout issue in iOS theme
- [x] Don’t run attachment migration for new users
- [x] Preprocess media before rendering in React
7 years ago
Scott Nonnenberg c5935eef5d Show 'You' in Android theme quotes instead of contact name 7 years ago
Daniel Gasienica 50a0048bf2 Skip attachment migration for new users 7 years ago
Daniel Gasienica 6671228028 🎨 Format using ESLint 7 years ago
Daniel Gasienica d5fdf50fae Remove unused reference 7 years ago