Skip to content

Commit

Permalink
first commit
Browse files Browse the repository at this point in the history
  • Loading branch information
joeamos committed Apr 7, 2022
0 parents commit 296a562
Show file tree
Hide file tree
Showing 31 changed files with 53,851 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
node_modules
17 changes: 17 additions & 0 deletions dist/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
<!DOCTYPE html>
<html>
<head>
<meta charset="UTF-8">
<!-- <meta http-equiv="Content-Security-Policy" content="script-src 'self'">
<meta http-equiv="X-Content-Security-Policy" content="script-src 'self'"> -->
<title>Hello World!</title>
<script defer src="react.js"></script></head>
<body>
<div id="root"></div>
<h1>Hello World!</h1>
We are using Node.js <span id="node-version"></span>,
Chromium <span id="chrome-version"></span>,
and Electron <span id="electron-version"></span>.
<script> require("../src/renderer.js")</script>
</body>
</html>
78 changes: 78 additions & 0 deletions dist/main.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ "./src/main.ts":
/*!*********************!*\
!*** ./src/main.ts ***!
\*********************/
/***/ ((__unused_webpack_module, __unused_webpack_exports, __webpack_require__) => {

eval("var _a = __webpack_require__(/*! electron */ \"electron\"), app = _a.app, BrowserWindow = _a.BrowserWindow;\nvar path = __webpack_require__(/*! path */ \"path\");\nfunction createWindow() {\n var win = new BrowserWindow({\n width: 1200,\n height: 800,\n backgroundColor: \"white\",\n webPreferences: {\n preload: path.join(__dirname, './preload.js'),\n nodeIntegration: true,\n // worldSafeExecuteJavascript: true,\n contextIsolation: false\n }\n });\n win.loadFile('index.html');\n // Open the DevTools.\n win.webContents.openDevTools();\n}\n;\napp.whenReady().then(function () {\n createWindow();\n app.on('activate', function () {\n if (BrowserWindow.getAllWindows().length === 0)\n createWindow();\n });\n});\napp.on('window-all-closed', function () {\n if (process.platform !== 'darwin')\n app.quit();\n});\n\n\n//# sourceURL=webpack://contractual/./src/main.ts?");

/***/ }),

/***/ "electron":
/*!***************************!*\
!*** external "electron" ***!
\***************************/
/***/ ((module) => {

"use strict";
module.exports = require("electron");

/***/ }),

/***/ "path":
/*!***********************!*\
!*** external "path" ***!
\***********************/
/***/ ((module) => {

"use strict";
module.exports = require("path");

/***/ })

/******/ });
/************************************************************************/
/******/ // The module cache
/******/ var __webpack_module_cache__ = {};
/******/
/******/ // The require function
/******/ function __webpack_require__(moduleId) {
/******/ // Check if module is in cache
/******/ var cachedModule = __webpack_module_cache__[moduleId];
/******/ if (cachedModule !== undefined) {
/******/ return cachedModule.exports;
/******/ }
/******/ // Create a new module (and put it into the cache)
/******/ var module = __webpack_module_cache__[moduleId] = {
/******/ // no module.id needed
/******/ // no module.loaded needed
/******/ exports: {}
/******/ };
/******/
/******/ // Execute the module function
/******/ __webpack_modules__[moduleId](module, module.exports, __webpack_require__);
/******/
/******/ // Return the exports of the module
/******/ return module.exports;
/******/ }
/******/
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval devtool is used.
/******/ var __webpack_exports__ = __webpack_require__("./src/main.ts");
/******/
/******/ })()
;
32 changes: 32 additions & 0 deletions dist/preload.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/*
* ATTENTION: The "eval" devtool has been used (maybe by default in mode: "development").
* This devtool is neither made for production nor for readable output files.
* It uses "eval()" calls to create a separate source file in the browser devtools.
* If you are trying to read the output file, select a different devtool (https://webpack.js.org/configuration/devtool/)
* or disable the default devtool with "devtool: false".
* If you are looking for production-ready output files, see mode: "production" (https://webpack.js.org/configuration/mode/).
*/
/******/ (() => { // webpackBootstrap
/******/ var __webpack_modules__ = ({

/***/ "./src/preload.ts":
/*!************************!*\
!*** ./src/preload.ts ***!
\************************/
/***/ (() => {

eval("window.addEventListener('DOMContentLoaded', function () {\n var replaceText = function (selector, text) {\n var element = document.getElementById(selector);\n if (element)\n element.innerText = text;\n };\n for (var _i = 0, _a = ['chrome', 'node', 'electron']; _i < _a.length; _i++) {\n var dependency = _a[_i];\n replaceText(\"\".concat(dependency, \"-version\"), process.versions[dependency]);\n }\n});\n\n\n//# sourceURL=webpack://contractual/./src/preload.ts?");

/***/ })

/******/ });
/************************************************************************/
/******/
/******/ // startup
/******/ // Load entry module and return exports
/******/ // This entry module can't be inlined because the eval devtool is used.
/******/ var __webpack_exports__ = {};
/******/ __webpack_modules__["./src/preload.ts"]();
/******/
/******/ })()
;
Loading

0 comments on commit 296a562

Please sign in to comment.