Commit Graph

193 Commits

Author SHA1 Message Date
Simon Prévost
768a2fac3e Add uberauth to handle authentication to allow multiple providers login (google, github and slack) 2019-05-20 21:45:25 -04:00
Simon Prévost
d8f927e8f4 Fix language svg currentColor 2019-05-13 16:42:54 -04:00
Simon Prévost
c7ce021273 Add revision name resolve on activity activities 2019-05-13 07:03:33 -04:00
Simon Prévost
0f53caa197 Add config to enable dummy login on production to use in the demo deploy 2019-05-12 21:07:13 -04:00
Simon Prévost
60b8510485 Fix brittle unordered jipt translations 2019-05-12 20:37:24 -04:00
Simon Prévost
be674cc941 Add language override in UI 2019-05-12 20:28:59 -04:00
Simon Prévost
11732c5f30 Add language overrides in revision in schema 2019-05-09 19:04:11 -04:00
Simon Prévost
640b888358 Run prettier 2019-05-09 18:12:39 -04:00
Simon Prévost
65680b959e Refactor manage languages styles 2019-05-09 18:12:21 -04:00
Simon Prévost
2fe70b463a Fix manage language item link 2019-05-09 17:59:52 -04:00
Simon Prévost
0453d93c21 Update some npm deps 2019-05-09 17:55:44 -04:00
Simon Prévost
42ca419e24 Replace ember-graph-file by the simpler graphql-tag export in js files 2019-05-09 17:52:27 -04:00
Simon Prévost
66605ca1a1 Remove duplication between slack and discord integration service 2019-05-09 17:39:12 -04:00
Simon Prévost
b314d0d12e Add github service integration UI 2019-05-09 17:14:07 -04:00
Simon Prévost
5620da8f08 Fix spinner by using CSS instead of spin.js 2019-05-09 17:11:44 -04:00
amy null
93a4198ca3 Add Discord project integration (#86)
* Add basic Discord webhook support

* Add Discord integration tests

* Revert lockfiles
2019-05-09 17:11:24 -04:00
Simon Prévost
e1b1b106c6
Add GitHub webhooks integration to sync a project (#85)
* Add GitHub webhooks integration to sync a project

The webhook generates events that reads the repo’s config file (the same
config file used by accent-cli) and build "sync" and "add translations"
events in Accent.

It supports a default ref: you can specify to only
trigger the "sync" on the "release/production" branch. It also supports
automatic version sync. If you have a version in Accent that matches
your git tag, "sync" events will be generated for those versions,
without touching your current translations. This can be useful if you
use versions to freeze translations on your releases.

This commit only adds the API side of the feature. So while it’s not
user facing, if you want to test the feature, you can add a matching
"integrations" row in the database and setup your webhook in GitHub :)

* Add tests for integration scope

* Rename hook sync to hook update since the hook sync and add translations

* Order mix.exs deps

* Run formatter

* Fix credo

* Fix tests

* Move GitHub producer with the same shared code as the other producer, simple queue without back pressure

* Remove unused function

* Update event producer from gen stage queue broadcaster

* Add tests
2019-04-26 12:41:51 -04:00
Simon Prévost
51ceec7caf Refactor UI for versions 2019-04-21 14:02:44 -04:00
Simon Prévost
1d300c308a Add version handling in sync and add translations operations 2019-04-21 14:02:44 -04:00
Simon Prévost
9e1dbb9dbd Replace number status code with atom 2019-04-21 14:02:44 -04:00
Simon Prévost
70fb956d87 Fix sync add document in CLI 2019-04-21 14:02:44 -04:00
Simon Prévost
147c38da42 Fix responsive issues 2019-04-21 14:02:44 -04:00
Rémi Prévost
886fa53efd Remove Black and Extra Bold font weight from the UI (#81)
The new Inter font is great, but its “Black” and “Extra Bold” weights looks out-of-place in our UI. We can use the “Bold” weight just fine 😄 

### Before

<img width="185" alt="" src="https://user-images.githubusercontent.com/11348/55750385-28fb1c00-5a11-11e9-88c4-49eb1f747dbc.png">

<img width="538" alt="" src="https://user-images.githubusercontent.com/11348/55750386-28fb1c00-5a11-11e9-92a9-d8866b36fc46.png">

### After

<img width="185" alt="" src="https://user-images.githubusercontent.com/11348/55750384-28fb1c00-5a11-11e9-894c-e4eaf2790663.png">

<img width="547" alt="" src="https://user-images.githubusercontent.com/11348/55750387-28fb1c00-5a11-11e9-82a3-b2d83cba2fe9.png">
2019-04-11 09:25:48 -04:00
Simon Prévost
8d72dff005 Remove last activity on projects list 2019-04-07 20:59:22 -04:00
Simon Prévost
c3565f7f32 Fix link list tiles styles 2019-04-07 17:05:25 -04:00
Simon Prévost
083645a546 Update icons 2019-04-07 16:28:15 -04:00
Simon Prévost
1669582c72 Update jipt doc styles 2019-03-31 16:26:46 -04:00
Simon Prévost
64cc4daab6 Refactor Google login to use redirect instead of popup 2019-03-31 16:16:54 -04:00
Simon Prévost
28a7dd0ba0 Fix many revisions selector and update deps to fix live reload 2019-03-31 16:16:54 -04:00
Simon Prévost
ae0df57dae
Add basic support for XLIFF 1.2 file format (#79)
![image](https://user-images.githubusercontent.com/464900/55203015-35c17980-51a0-11e9-8647-d91209c7b6de.png)

## Issue
📚 https://github.com/mirego/accent/issues/21

## Feature
This is a basic implementation of the XLIFF 1.2 format. This format is used heavily in a lot of translations related tool (and in XCode) so I may have missed some of the implementation details. But it’s a good start for someone who want to contribute to Accent 😉 

## Refactor
This format is a bit trickier than other since it required the master language to export the targets. We needed to refactor some module to use the master language in the serialization process. Also, not needed but cleaner, we wrap the document’s key `top_of_the_file_comment` and `header` inside a new struct `Language.Document`. This will become handy if we ever need to add an attribute to the document OR if we add a different attribute to the serialization input.

## Next steps
This format includes 2 new dependencies to handle XML encode and decode. _Why not use the same XML library used for the XML Android format?_ Because… \*drum roll\* The `<source>` XML tag when encoded by the `mochiweb_html` module is a self closing tag (per the HTML spec) 🥇 

Since those 2 new deps are required for the XLIFF format and can pretty print XML, we should use them _instead of `mochiweb`_ 🎉
2019-03-31 16:16:20 -04:00
Simon Prévost
ad8ec11f75 Update emberjs to latest 2019-03-28 22:05:16 -04:00
Simon Prévost
c373713678 Fix small UI tweaks 2019-03-28 21:14:27 -04:00
Simon Prévost
3fdd36f73a v1.0.0 2019-03-13 21:59:47 -04:00
Simon Prévost
15996bcae9 Update prettierignore and npm 2019-03-13 21:59:36 -04:00
Louis-Michel Couture
51e03071ec Update elixir buildpack config to install latest Elixir and Erlang 2019-03-13 20:54:13 -04:00
Louis-Michel Couture
fc84b0de08 Upgrade absinthe to 1.4.16 to get around issue with build artifacts
https://github.com/absinthe-graphql/absinthe/issues/691
2019-03-13 14:03:39 -04:00
Simon Prévost
8be916828a Use mirego/accent image if available else build in docker-compose 2019-03-13 08:34:17 -04:00
Simon Prévost
713a14e03f Fix version form colors 2019-03-13 08:34:17 -04:00
Guillaume Cauchon
06f9f6086d Remove useless dependencies 2019-03-13 08:32:43 -04:00
Simon Prévost
b0749bdad7 Put back alpine 3.9 with libssl1.1 to fix crypto deps /usr/lib 2019-03-11 12:51:16 -04:00
Simon Prévost
a165cbe278 Add root and subapp node_modules cache 2019-03-11 07:07:06 -04:00
Simon Prévost
74681e2afa Add root npm i 2019-03-11 07:01:48 -04:00
Simon Prévost
474e53f33b Typo in travis config 2019-03-11 06:54:49 -04:00
Simon Prévost
c56c80db56 Revert to npm i 2019-03-11 06:36:15 -04:00
Simon Prévost
21add08ad7 Bump nodejs version to use npm ci 2019-03-11 06:30:58 -04:00
Simon Prévost
7378b59090 Fix travis badge in readme 2019-03-11 06:28:50 -04:00
Simon Prévost
b9045b5bcd Fix ci-check by rewriting lint and format under root package.json 2019-03-11 06:27:14 -04:00
Simon Prévost
ee39f1a168 Run prettier on webapp 2019-03-10 21:39:49 -04:00
Simon Prévost
5fd55241c9 Fix docker setup with bad libcrypto from alpine 3.9 2019-03-10 21:16:23 -04:00
Simon Prévost
b3b8203623 v0.0.3 2019-03-09 22:59:46 -05:00