|
@@ -21,6 +21,16 @@ export default class CoreSystem {
|
|
|
this._onUpdate && this._onUpdate();
|
|
|
}
|
|
|
|
|
|
+ fresh() {
|
|
|
+ this.Routing = new RoutingSystem();
|
|
|
+ this.ModuleSystem = new ModuleSystem();
|
|
|
+ this.EventSystem = new EventSystem();
|
|
|
+ this.ViewSystem = new ViewSystem(this);
|
|
|
+ let HomeView = new View();
|
|
|
+ this.addPage('Home', HomeView, 'VSHome').setHome('Home');
|
|
|
+ this.__loadModules(Modules);
|
|
|
+ }
|
|
|
+
|
|
|
loadFonts(){
|
|
|
Font.loadAsync({
|
|
|
'black': require('../assets/fonts/SFCompactDisplay-Black_0.otf'),
|