Commit Graph

53 Commits

Author SHA1 Message Date
Simon Prévost
d19cd18393 Add no-local-write CLI option to not write to local files after a sync 2024-04-04 21:58:26 -04:00
Marc Lefrancois
c61e9a5d8c
formatter.error accepts an array of strings (#418) 2024-03-05 17:07:28 -05:00
Simon Prévost
7ec032438f Refactor hook formatter to not print if no output 2024-03-03 15:27:03 -05:00
Simon Prévost
2d21ee88db Add JIPT page example on project scope 2024-03-03 15:12:39 -05:00
Marc Lefrancois
edec1f74bb
Add output and error handling to hook-runner (#417)
* Add output and error handling to hook-runner

* cleanup + linting

* run make format also

* Nicer output when script succeeds
2024-03-03 15:12:32 -05:00
Simon Prévost
656dc7459c Add dot-in-slug-directory example in cli 2024-02-04 14:34:08 -05:00
Simon Prévost
5bc633f67a Fix documentation for fileWithParentDirectory 2024-01-29 21:47:20 -05:00
guyaumetremblay
1a7c261db8
CLI - Add parent path naming strategy (#404)
* Add new name strategy

* Add documentation and examples

* Refactor the way to build the path
2024-01-29 15:48:27 -05:00
Simon Prévost
89dfea0112 Fix CLI where files are being synced from the project document instead of from the filesystem
CLI sync should not create files as this is the role of the versionning
system (git). This allow a project to contain file from 2 different
repos (like a webapp and a API CMS).

This is a fix from a recent addition that was also consider a fix. The
fix was wrong so the document-paths-fetcher.ts file is patched.

The stats command also reflect which document from Accent’s project is
found in the filesystem.
2024-01-21 15:19:51 -05:00
Simon Prévost
9b24abd07e Fix typo in project fetcher 2023-12-21 11:25:50 -05:00
Etienne St-Pierre
8105d078c0
Extract the version of a branch name so it can be used as the Accent file version (#397)
* Extract the Accent file version from the current branch name

* Format

* Package lock

* PR review

* Return "" if git not installed

* Update cli/src/services/config.ts

Co-authored-by: Simon Prévost <sprevost@mirego.com>

* Format

* Fix typo

* Disable eslint for camelcase

---------

Co-authored-by: Etienne St-Pierre <Etienne.St-Pierre1@brp.com>
Co-authored-by: Simon Prévost <sprevost@mirego.com>
2023-12-21 11:24:25 -05:00
Simon Prévost
cfe1e9ab9c Add translator role with 'translated' boolean state on a translation 2023-12-20 16:29:31 -05:00
Simon Prévost
42a7b4bc93 Add version filter on project revision/revisions and add version and check-reviewed flags on CLI 2023-12-14 21:42:24 -05:00
Simon Prévost
1fdb5ccf6b Add placeholder handling in Google Translate translate 2023-11-12 21:41:01 -05:00
Simon Prévost
d429b0b970 Add spelling lint check with LanguageTool integration 2023-09-29 20:11:14 -04:00
Simon Prévost
69b6d1cf0f Fix slack and gitlab login 2023-08-29 09:50:19 -04:00
Simon Prévost
d04e302e74 Fix namePattern parsing and add namePattern docs in README 2023-08-28 20:24:55 -04:00
Simon Prévost
bfc502e5fa Fix export/format ordering, fix uniform border-radius, allow listing deleted documents, fix conflicts template hook 2023-08-24 21:51:03 -04:00
Simon Prévost
f2717817fe Fix other flags override 2023-05-17 10:06:38 -04:00
Simon Prévost
f41a03752b Fix cli --config flag for real 2023-05-16 15:05:26 -04:00
Simon Prévost
38d8f2b32f Fix cli --config flag 2023-05-16 14:41:46 -04:00
Guillaume Bourassa
4dade7089d
Added a --config flag to the CLI to specify the config file to use (instead of always using Accent.json). (#354)
* Added a --config flag to the CLI to specify the config file to use (instead of always using Accent.json).

* Fixed lint
2023-05-16 14:22:25 -04:00
Simon Prévost
6bc3274f42 Add machine translations on project sync 2023-03-14 13:16:39 -04:00
Simon Prévost
8f3f1c5b64 Fix typings and downgrade some ESM exported libraries 2023-02-27 14:14:59 -05:00
Gunnar Schulze
f1e35a0b6c feat: Upgrade CLI dependencies 2023-02-27 14:01:31 -05:00
Simon Prévost
4feb86228e
Add ecto_psql_extras in telemetry_ui (#342)
* Add pg_stat_statements metrics

* Upgrade telemetry_ui

* v1.14.0

* Update ember template lint and format
2023-02-23 09:03:06 -05:00
Simon Prévost
bb8979d325 Add api token create/revoke 2023-01-31 15:02:42 -05:00
Simon Prévost
26d574a19b Fix cli format command 2022-11-16 20:28:41 -05:00
Simon Prévost
4efe980129
Add support for version sync/export/infos in CLI (#325) 2022-11-16 20:18:35 -05:00
Simon Prévost
b80cde9d14
Add warning in CLI when files config have same folder path (#324) 2022-11-16 20:18:26 -05:00
Simon Prévost
bb2bd47423 Add synced HTTP requests in CLI commands 2022-09-27 09:53:31 -04:00
Simon Prévost
ad018c0af5
Add document format on CLI (#308)
A new /format endpoint is available that simply returns the given file
as formatted by Accent. This can be useful locally to format or re-order
before committing the changes and not modify anything in your Accent
projet.
2022-09-01 08:45:19 -04:00
Simon Prévost
e04dccf6bd Fix review percentage, personal access token, batch, diffable strings 2022-06-20 09:55:53 -04:00
Simon Prévost
38349e98ef Fix lint cli ellpsis display 2022-03-30 08:39:30 -04:00
Simon Prévost
730b6b9dda Fix lint without master value 2022-03-30 08:37:11 -04:00
Simon Prévost
ffdb353848 Update NodeJS deps for webapp and cli 2022-02-28 11:41:08 -05:00
Simon Prévost
e7c56e3eff Add lint in CLI 2022-02-23 07:18:51 -05:00
Simon Prévost
416df5932e Add page size on document to fix cli documents listing 2020-05-04 12:30:11 -04:00
Simon Prévost
98c9b2c32d Fix eslint 2020-04-27 07:31:05 -04:00
Simon Prévost
04cf73b5c8 Update deps 2020-04-08 08:44:52 -04:00
Simon Prévost
9567db9b4d
Convert codebase to typescript and latest Ember (#157)
* Update eslint setup (#134)

* Convert services (#136)

* Convert login and logged-in routes (#137)

* Convert project routes and controllers (#138)

* Convert activities and comments routes (#140)

* Convert project edit sub-routes and controllers (#139)

* Convert files routes and controllers (#141)

* Convert revision routes and controllers (#142)

* Convert phoenix service (#143)

* Convert translation routes and controllers (#144)

* Convert versions routes and controllers (#145)

* Convert JIPT routes and controllers (#146)

* Convert Sass variables to CSS modules @value (#147)

* Convert CSS variables and fix projects page components

* Fix a bunch of components

* Fix another bunch of components

* Update styles and missing global for powerselect

* Fix typings

* Fix typescript warnings

* Add typings for phoenix and file-saver vendor

* Fix github ci

Co-authored-by: Charles Demers <cdemers@mirego.com>
Co-authored-by: Charles Demers <charles.demers6@gmail.com>
2020-04-07 07:47:33 -04:00
Simon Prévost
50f9931033 Add support for file with slug suffix in cli 2020-02-06 12:34:13 -05:00
Simon Prévost
5658e09893 Fix cli add translations 2019-12-12 12:54:52 -05:00
Simon Prévost
d7a778d22c Fix revision language overwrite for sync/merge/export controller 2019-12-12 12:36:50 -05:00
Simon Prévost
605509d1de Use overridable revision slug/name in CLI 2019-12-12 12:36:50 -05:00
Simon Prévost
61ac45a514 Fix lint 2019-12-12 12:36:50 -05:00
Simon Prévost
30546d3181 Fix document path parsing for parent directory 2019-12-12 12:36:50 -05:00
Simon Prévost
fb6259d9f5 Add tests 2019-12-12 12:36:49 -05:00
Simon Prévost
139ff29e70 Add support for simple filename as document source config for CLI 2019-11-14 10:03:22 -05:00
Simon Prévost
5be2645114
Refactor cli config to simplify language and document path parsi… (#127)
* Refactor cli config to simplify language and document path parsing

* Run format

* Remove namePattern inferred by cli in ember multifiles example

* Update cli/src/services/document.ts

Co-Authored-By: Rémi Prévost <remi@exomel.com>

* Add changelog

* Run format

* Run lint
2019-10-31 07:33:36 -04:00