Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

[Q] Compiled Taiga Front - Changing Logos in Template.js and App.js causes failure #2

Open
MarlNox opened this issue Jul 22, 2021 · 1 comment
Labels
question Further information is requested

Comments

@MarlNox
Copy link

MarlNox commented Jul 22, 2021

Hi there Taiga Team,
I'm trying to implement a local version of Taiga which features a new logo, and some new colors.
In doing so im using docker, and pulling a modified Taiga Front image, taken from the compiled Taiga Front.
Changing all the SVG and PNG/JPG files in the folder - changes a few instances (icons etc) of the logo but not all.
Specifically login page remains unchanged and the upper left corner logo.
I noticed these were SVG code in the template.js and app.js files.
To change these I went and modified the template.js and app.js files. But when i upload this new modded version, Taiga does not load the front page at all - but rather shows blank.

Checking the console it provides an error of this type:

Uncaught SyntaxError: '' string literal contains an unescaped line break templates.js:1:292
Uncaught Error: [$injector:modulerr] Failed to instantiate module taiga due to:
[$injector:modulerr] Failed to instantiate module templates due to:
[$injector:nomod] Module 'templates' is not available! You either misspelled the module name or forgot to load it. If registering a module ensure that you specify the dependencies as the second argument.
http://errors.angularjs.org/1.5.10/$injector/nomod?p0=templates
k/<@http://10.10.10.233/v-1623248848298/js/libs.js:1:207063

Any ideas how to easily change the logo of the login page and upper left corner?
or
Any ideas how to fix this error, when I do modify the files?

@MarlNox MarlNox added the question Further information is requested label Jul 22, 2021
@MarlNox MarlNox changed the title [Q] [Q] Compiled Taiga Front - Changing Logos in Template.js and App.js causes failure [Q] Compiled Taiga Front - Changing Logos in Template.js and App.js causes failure Jul 22, 2021
@bameda
Copy link
Member

bameda commented Mar 26, 2024

The error says that you have added an "unescaped line break" character in templates.js (:1:292).

Nevertheless, the best approach to do that is forking taiga-front, applay your changes and build the code again instead of modify the compiled code.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
question Further information is requested
Projects
None yet
Development

No branches or pull requests

2 participants