Migration from Jet 0.x
Toolchain and App
Setup the wjet tool from the link.
Create a new
webix-jet
app using:
In your original app, create the sources folder and move all the dev files there ( app.js, models/, views/, helpers/, etc. ).
Copy the
app.js
file fromnew-app
you created above to thesources
folder. If you have any custom code in your originalapp.js
then copy that in the newerapp.js
too.Copy the
sources
folder to thenew-app
.Make sure that there is the locales folder with you localization files in
new-app
. Check this repo for example.run the app.
open the app at localhost:5173.
Troubleshooting
If something goes wrong, use the starter jet repo as the base for migration and replace the sources folder as above.
Migrating views
Jet 1.x can recognize old configuration objects and use them correctly, so you will not need to change anything in a common case. There are still some scenarios when you will need to change the code:
View has "app" as dependency
Change object to JetView-based class and use this.app
instead of app
.
View is using locale
Change object to JetView and use this.getService('locale')
instead of locale
.
Last updated