TK Live View
No edit summary
No edit summary
Line 15: Line 15:
If you choose to fold down the Live Edit tab, you get the view model tree, and also a few of the settings that are interesting per view model column.
If you choose to fold down the Live Edit tab, you get the view model tree, and also a few of the settings that are interesting per view model column.


When you click something there, like "all things", you can see that it is positioned at the position 0x and 0y, and if you were to change it to like 10 instead, this would immediately jump, and you don't have to refresh or anything, and that's the beauty of running within a harness like this, because we can do the push and refresh for you, to make things move smoother. You can also move things around, and since it is a running application, you can expect to find actions, create a new thing, and save that.
When you click something in the ViewModel tree, you can see where it is positioned on the X and Y axis. You don't have to refresh and that's the beauty of running within a harness like this, because we can do the push and refresh for you to make things move smoother. You can also move things around, and since it is a running application, you can, for example, expect to find actions, create a new thing, and save that.


=== AssetsTK Synk===
=== AssetsTK Synk===
it has been available with assets for a long time but they have been a bit hard to work with because you had to read in the wiki on how to do it and then you had to do it yourself in order to get it to work and I've always thought that we should be able to do that give it a bit more service to get these working because I think they are really good so and this was a good place where they fit in the overall workflow.
so when you turn on this you get the application and ensures a assets TK folder which is named the same as the the model that you have with underscore assets TK because that's the trigger for it to be discovered once we upload the model to the cloud etc and this is just basically a file tree where you can F5 it to to make sure that you see everything and then I added these buttons for common things that we put in the in the assets so for example the TK user CSS so if I click that one and press I would have expected to yeah I got a content folder and I got a TK user CSS so this one I can just open and I got a notepad for that of course you can associate this with a better tool like Visual Studio or Visual Studio code something like that but what's good is that this can be made to to sync and discover changes in this file and what it will do when it syncs is to upload it to the server to make it active for the server immediately so let's see how that works I'm going to turn on sync here and then I'm gonna like write the HTML ground yellow and once I've saved that my whole application turned turned yellow so no matter which screen I'm at it will have a yellow background and to if I were to change this to purple and save without doing anything else this is shown for me so this is there's quite a lot of things going on to make this happen but the important thing is that it will be much easier for us to maintain or to see the result of a CSS like this so that's one type of asset to change the whole applications CSS but then working from experience Alex and Dennis we know that TK user CSS that addresses the whole application isn't always the perfect fit because quite often when we have a specific UI we want to pinpoint that only and not destroy anything else and it's really hard when you can't be sure that a view is isolated. So Dennis you added this view assets thing to make it possible to have sort of a TKUser CSS but per view model and this is also allowing for JavaScript. And this actually checks which view you have active at this point.
So I'm going to go into this view and then I'm going to go here and then I'm going to press this view assets button and pressing F5 here I see that I got a view assets folder and I got a view one thing folder for this view model and I got these two CSS and JavaScript empty files currently. But I'm going to sync that one and I'm going to open that one and apparently I'm doomed to edit all my CSS in notepad and so this is the view one thing and this was the TKUser so I can set this one to maybe green. So now this one is green but this one is still purple.


=== Debug Information ===
=== Debug Information ===

Revision as of 06:48, 7 March 2024

I have been showing what has been growing slowly in the designing of the web UI and while the app is running. This is more of the same. We have taken it a bit further and consolidated some of the functions that I think one needs when fine-tuning the look and feel of a web application.

There are four foldup sections in the TK Live View: Live Edit, Server Setup, Assets TK Synk, and Debug Information.

Turnkey Live Editor

We have an icon that calls the Turnkey Live Editor. This is sort of a hybrid between the ViewModel Editor, where you change the definition of the views, but this way, you can run the application. It is a combination of the run button which we had before - where you prototype and start the system in either WPF or in the local Turnkey prototyper. When the icon is pushed, you get a corresponding ViewModel connected to it because they share some of the logic.

It is basically an embedded browser, the new WebView2, Microsoft's embedded Edge browser, which is replacing the old Internet Explorer and Edge.

Server Setup

When you click on Server Setup, it has a similar look to that of the play button for the system prototyper. You can check if you have the current Turnkey core installed. It is optional; you can either run it towards a local XML file or use the MDriven Server which will use the settings from the cloud connection for data.

If you choose the MDriven Server, the "Settings for MDrivenServer" button will light up in blue when you hover over it. Click on it and a new window labeled CloudForm will open. This is where you can set the server you want to run against.

Or you can choose to use the XML. "Re(Start) MDriven Turnkey Core", and you may see new text that highlights in red when it discovers that there is a server running, or the settings from before don't match the file you are actually working on (you may be working on a file that's stored in the internet cache - a sample model for association). Restart the server, and once that is done, fold the Server Setup tab again, and then the popup window is started with your application in the browser.

Live Edit

If you choose to fold down the Live Edit tab, you get the view model tree, and also a few of the settings that are interesting per view model column.

When you click something in the ViewModel tree, you can see where it is positioned on the X and Y axis. You don't have to refresh and that's the beauty of running within a harness like this, because we can do the push and refresh for you to make things move smoother. You can also move things around, and since it is a running application, you can, for example, expect to find actions, create a new thing, and save that.

AssetsTK Synk

it has been available with assets for a long time but they have been a bit hard to work with because you had to read in the wiki on how to do it and then you had to do it yourself in order to get it to work and I've always thought that we should be able to do that give it a bit more service to get these working because I think they are really good so and this was a good place where they fit in the overall workflow.

so when you turn on this you get the application and ensures a assets TK folder which is named the same as the the model that you have with underscore assets TK because that's the trigger for it to be discovered once we upload the model to the cloud etc and this is just basically a file tree where you can F5 it to to make sure that you see everything and then I added these buttons for common things that we put in the in the assets so for example the TK user CSS so if I click that one and press I would have expected to yeah I got a content folder and I got a TK user CSS so this one I can just open and I got a notepad for that of course you can associate this with a better tool like Visual Studio or Visual Studio code something like that but what's good is that this can be made to to sync and discover changes in this file and what it will do when it syncs is to upload it to the server to make it active for the server immediately so let's see how that works I'm going to turn on sync here and then I'm gonna like write the HTML ground yellow and once I've saved that my whole application turned turned yellow so no matter which screen I'm at it will have a yellow background and to if I were to change this to purple and save without doing anything else this is shown for me so this is there's quite a lot of things going on to make this happen but the important thing is that it will be much easier for us to maintain or to see the result of a CSS like this so that's one type of asset to change the whole applications CSS but then working from experience Alex and Dennis we know that TK user CSS that addresses the whole application isn't always the perfect fit because quite often when we have a specific UI we want to pinpoint that only and not destroy anything else and it's really hard when you can't be sure that a view is isolated. So Dennis you added this view assets thing to make it possible to have sort of a TKUser CSS but per view model and this is also allowing for JavaScript. And this actually checks which view you have active at this point.

So I'm going to go into this view and then I'm going to go here and then I'm going to press this view assets button and pressing F5 here I see that I got a view assets folder and I got a view one thing folder for this view model and I got these two CSS and JavaScript empty files currently. But I'm going to sync that one and I'm going to open that one and apparently I'm doomed to edit all my CSS in notepad and so this is the view one thing and this was the TKUser so I can set this one to maybe green. So now this one is green but this one is still purple.

Debug Information

Watch the video to learn more

(Video)

This page was edited 54 days ago on 03/26/2024. What links here