Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Factorize the code to make it easier to add new modes AND added a Jux…
…talinear edition mode (#303) * - added a Juxta mode that creates a translation burrito - added a 'factoryCreateContent.js' file to help factorize some code for 'createObsContent', 'createVersificationUSFM' and 'createAudioVersification' in 'saveProjetcsMeta.js' - fixing some typos, fixing lint * Refactorization of 'saveProjectsMeta.js' * Scripture Burrito as a resource : added the poissibility for the user to search and download a SB as a resource in a module * removed checkbox from the UI and query sb resource everytime * Added a juxtalinear editor along with a new mode. - auto load a book on the opening of a project - auto save after a modification - fixed a bit of typos and code * created a juxtaBurrito creator and a function to add juxta content. Also edited the icon for Juxta mode (it's visible now) you can create a new juxta project * ADDED juxta support for SB creation and fixed some typos * ADDED support for usfm import for a juxta project. Now we have to change the way a juxta json is built. * juxtalineat mode functionnal * UPDATE : now the interface handle corectly a json juxta file and update it if needed. and layout color update * function to update a json juxta file if needed * checksums ok for each modifications of the juxta * bugfix : juxta was still using a translation settings * quick fix * added new kewboard shortcuts : 'Tab' to navigate through line chuncks, 'double click' to modify a chunck, 'enter' to end the modification of a chunck. And added seemless navigation between Juxtalinear editor and the BibleEditorX. Navigating through verses and chapters with the menu bar will load the corresponding sentence and vice versa. * removing a useless 'console.log' * FIXED font size when aditing a chunck, ADDED a bit of css and added a skip for the liter for .ts files * I put the sentences loading one layer outside the main editor, to avoid the editor to re-render everytime the juxtalinear editor module * Many bugfixes #303 (comment) * add a check if the folder exists * added a little bit of secure code for OBS loading * changed the behavior of the Snackbar. If error === 'failure' the snackbar will show up for a longer time * changed the behavior of the Snackbar. If error === 'failure' the snackbar will show up for a longer time * bold text 'CREATE PROJECT' for better visibility and start to check 'canonSpecification' for a juxta project * added the feature that download resources not imported by the user for juxtalinear project * Now the user is correctly notified when the imported books does not match the canon specification, and also, the canon specification automatically matches the file imported * minor bugfixes and code cleaning * changed place of the 'nprogress' by few px * added a better user-friendly messages to nugde the user to import at least one resource for a Juxtalinear project * FIXED : archive a Text Translation project OK. * star/unstar a juxtalinear project works now * FIX : bug that prevented some resources to show up. and FIX : bug that was throwing an error when a user where to search for a resource in the resource search field, and click on 'no match found' * deleted package-lock.json and updated yarn.lock * updated french translation * bugfix : you can now edit a juxta project properly * fixed bug where on book change, the sentences where wronly saved under another filename * make 'jsonFileContent.bookCode' to upper case for safety reasons * FIX : export/import now works properly for juxtalinear projects * fix obs auto zipping on export * spinner and 'create project' button css fix. * 'create project' button reverted --------- Co-authored-by: danielc-n <[email protected]>
- Loading branch information