Traccar 3.10 Change login form

milen7 years ago

Hello

I jus install Traccar 3.10 and i need to change the login form design.

Ive been searching, but whitout any exit.

¿Where i can find the login form code?

Thanks

Anton Tananaev7 years ago

You have to modify HTML and JavaScript code.

milen7 years ago

Where is the html code?

Anton Tananaev7 years ago

In the "web" folder.

milen7 years ago

I can't find it.
Can you tell me the name of the file?

Anton Tananaev7 years ago

For release version it's "release.html".

milen7 years ago

Hello.
Opening the release.html.
There is an load.js who is loading the language email, password register and login button.
Also is loading the css .
But u still cannot find that form html structure.
I now that the java is generating that structure but to be generated need to be writen somewhere.
Thanks

Anton Tananaev7 years ago

You are wrong. Java doesn't generate HTML in Traccar. JavaScript does.

milen7 years ago

To be easy to undarstand me I paste you the generated html.

This is the htnl generated by the java in the web browser.
I need to change it.

Thanks

<div class="x-window ...
Anton Tananaev7 years ago

Browser doesn't execute Java code. What you are saying doesn't make much sense.

Traccar web app uses ExtJS library to generate the interface.

milen7 years ago

My error - by sayng java i was tinking on javascript (java and javascript are 2 languages compleatly diferent).
I am right now in ext-all.js and still searching.
I found some stuff but still searching for:

<div class="x-window x-layer x-window-default x-border-box" role="dialog" aria-hidden="false" aria-disabled="false" id="login-1009" tabindex="-1" data-componentid="login-1009" style="z-index: 19000; width: 299px; height: 319px; right: auto; left: 321px; top: 167px;">
Anton Tananaev7 years ago

There is no point in reading or copy-pasting generated code here. I would recommend to read ExtJS documentation if you want to understand how it works:

http://docs.sencha.com/extjs/6.2.0/index.html

milen7 years ago

Hello again

I am sorry t hat i am changing the cuestion.
I see that traccar use archive: database.mv.db to store the information of the registered users.

When i try to open it with notepad++ or netbeans does not open correctly:
@F{}Fdd@ % "@bjuanlopezcontrera

as you can see before bjuanlopezcontrera are some simbols.

Can you suggest me some to open it correctly ?

Anton Tananaev7 years ago

It's a binary database file. Obviously you can't open it in a text editor. You can use H2 console or any JDBC viewer to open it.

milen7 years ago

Done Thank you :)