Change view (extjs) file Login.js don't effect

MuhHuz6 years ago

Hii All,

I update file /opt/traccar/web/app/view/dialog/Login.js and add a label on it. after i save the file, why the view don't change? in Login dialog should display new label. i added this code bellow in item array:

 {
            xtype: 'label',
            forId: 'myFieldId',
            text: 'Tracking System',
            margin: '0 0 0 55',
            align : 'center',
            style: 'font: bold 20px Arial'
        }

can you tell where i must delete the cache in traccar.

Thankyou

Anton Tananaev6 years ago

You need to compile JavaScript code. It has been discussed many times. Use search.

MuhHuz6 years ago

Sorry Anton,

Thank you then..... i'll find it

Peter Flower6 years ago

Do you update debug.html?
Inside debug.html you must have this line:

<script id="loadScript" mode="debug" src="load.js"></script>
MuhHuz6 years ago

Hii
case closed, i can compile the traccar-web. this what i've done:

  1. download SDK extjs (i use 6.2.0 version)
  2. download sencha cmd
  3. take a look in minify.sh (if linux environment) add system variable in that file with value is path of the extjs SDK
  4. run minify.sh
  5. copy your app.min.js to the server

Thank you all...

Peter Flower6 years ago

Great.
Do you have email?

MuhHuz6 years ago

Sure: vian.qu[at]gmail.com

Nitish Khadaria5 years ago

@MuhHuz can you please explain 3 and 4 step of compile traccar -web.

MuhHuz5 years ago

Hii @Nitish Khadaria,

find the path where extjs SDK intalled on your machine. then add it to EXT var located in file tools/minify.sh

this is mine:

# Use the value of $EXTJS_PATH if it is defined, '../../../ext-6.2.0' otherwise
EXT=${EXTJS_PATH:-'../../../ext-6.2.0'}

the minify.sh required the SDK to compile.

then just execute the minify.sh/minify.bat

thanks

Nitish Khadaria5 years ago

Thanks for your response @MuhHuz,
is it mandatory version 6.2.0 of sdk & cmd ?

MuhHuz5 years ago

yes... you should download it

Macan5 years ago

Can you please make a video guide about that, it would be wonderful and me and many users will learn from it.

Thank you

Swanhtet4 years ago

I can't download sencha extjs sdk .Can someone help please.

Anton Tananaev4 years ago

What's the problem with the download?

Swanhtet4 years ago

Got it thanks for reply Anton.