<commit_before>import {Application}    from "qtk";
import {MainModel}      from "./models/main-model";
import {MainWindow}     from "./views/main-window"
import {MainViewModel}  from "./view-models/main-view-model";

var appThemeDataURL = "https://qtoolkit.github.io/qtk-todo-mvc/assets/theme/default/theme.json";
var themeDataURL = "https://qtoolkit.github.io/demos/assets/theme/default/theme.json";

export class App extends Application {
	public onReady() {
		var viewModel = MainViewModel.create(MainModel.create());
		var mainWindow = MainWindow.create({app:this, viewModel:viewModel}).maximize();
	}
	
	public static run() : App {
		var app = new App("hello world");
		app.init({sysThemeDataURL:themeDataURL, appThemeDataURL:appThemeDataURL});
		app.run();

		return app;<commit_msg>upgrade to match latest qtk<commit_after>import {Application}    from "qtk";
import {MainModel}      from "./models/main-model";
import {MainWindow}     from "./views/main-window"
import {MainViewModel}  from "./view-models/main-view-model";

var appThemeDataURL = "https://qtoolkit.github.io/qtk-todo-mvc/assets/theme/default/theme.js";
var themeDataURL = "https://qtoolkit.github.io/demos/assets/theme/default/theme.js";

export class App extends Application {
	public onReady() {
		var viewModel = MainViewModel.create(MainModel.create());
		var mainWindow = MainWindow.create({app:this, viewModel:viewModel}).maximize();
	}
	
	public static run() : App {
		var app = new App("hello world");
		var assetsURLs = [themeDataURL, appThemeDataURL];

		app.preload(assetsURLs, function() {
			app.init({sysThemeDataURL:themeDataURL, appThemeDataURL:appThemeDataURL});
			app.run();
		});

		return app;
{'fraction_non_alphanumeric': 0.1481042654028436, 'fraction_numerical': 0.0, 'mean_word_length': 4.784246575342466, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 4, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '5640976', 'n_tokens_mistral': 569, 'n_tokens_neox': 538, 'n_words': 109}