From bdde39a7a6718b83d390bed893e744d87c594f74 Mon Sep 17 00:00:00 2001 From: kasinskas Date: Fri, 29 Sep 2023 21:58:48 +0300 Subject: [PATCH] change solid driver to main --- .../template-starter/src/entry/index.lng.jsx | 36 +++++++++---------- 1 file changed, 18 insertions(+), 18 deletions(-) diff --git a/packages/template-starter/src/entry/index.lng.jsx b/packages/template-starter/src/entry/index.lng.jsx index e601fbfcae..139ea4d4e8 100644 --- a/packages/template-starter/src/entry/index.lng.jsx +++ b/packages/template-starter/src/entry/index.lng.jsx @@ -1,27 +1,27 @@ -import { Canvas, Config, render } from "@lightningjs/solid"; -import { Router } from "@solidjs/router"; -import App from "../app"; -import coreExtensionModuleUrl from "./AppCoreExtensions.js?importChunkUrl"; -import coreWorkerUrl from "./threadx-core-worker.js?importChunkUrl"; +import { Canvas, Config, render } from '@lightningjs/solid'; +import { Router } from '@solidjs/router'; +import App from '../app'; +import coreExtensionModuleUrl from './AppCoreExtensions.js?importChunkUrl'; +import coreWorkerUrl from './threadx-core-worker.js?importChunkUrl'; Config.debug = false; -Config.fontSettings.fontFamily = "Ubuntu"; +Config.fontSettings.fontFamily = 'Ubuntu'; Config.fontSettings.color = 0xffffffff; -Config.keyMap.m = "Menu"; -Config.keyMap.t = "Text"; -Config.keyMap.b = "Buttons"; +Config.keyMap.m = 'Menu'; +Config.keyMap.t = 'Text'; +Config.keyMap.b = 'Buttons'; -const driver = "threadx"; +const driver = 'main'; const RenderOptions = { - coreExtensionModule: coreExtensionModuleUrl, - threadXCoreWorkerUrl: driver === "threadx" ? coreWorkerUrl : undefined, - // deviceLogicalPixelRatio: 1 + coreExtensionModule: coreExtensionModuleUrl, + threadXCoreWorkerUrl: driver === 'threadx' ? coreWorkerUrl : undefined, + // deviceLogicalPixelRatio: 1 }; render(() => ( - - - - - + + + + + ));