Initial commit

This commit is contained in:
Yura Dupyn 2026-02-03 18:18:44 +01:00
commit c4626edee4
19 changed files with 11968 additions and 0 deletions

45
src/renderer.ts Normal file
View file

@ -0,0 +1,45 @@
/**
* This file will automatically be loaded by vite and run in the "renderer" context.
* To learn more about the differences between the "main" and the "renderer" context in
* Electron, visit:
*
* https://electronjs.org/docs/tutorial/process-model
*
* By default, Node.js integration in this file is disabled. When enabling Node.js integration
* in a renderer process, please be aware of potential security implications. You can read
* more about security risks here:
*
* https://electronjs.org/docs/tutorial/security
*
* To enable Node.js integration in this file, open up `main.ts` and enable the `nodeIntegration`
* flag:
*
* ```
* // Create the browser window.
* mainWindow = new BrowserWindow({
* width: 800,
* height: 600,
* webPreferences: {
* nodeIntegration: true
* }
* });
* ```
*/
import './index.scss';
console.log("hello world! yooo");
const information = document.getElementById('info');
information.innerText = `This app is using Chrome (v${versions.chrome()}), Node.js (v${versions.node()}), and Electron (v${versions.electron()})`;
async function func() {
const response = await versions.ping();
console.log(response);
return response;
}
func().then(x => {
console.log("is this working? ", x);
});