Skip to content

Commit

Permalink
restructure src
Browse files Browse the repository at this point in the history
  • Loading branch information
lacymorrow committed Oct 7, 2019
1 parent fb61010 commit 59501f8
Show file tree
Hide file tree
Showing 16 changed files with 7 additions and 7 deletions.
2 changes: 1 addition & 1 deletion config.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ const Store = require("electron-store");
module.exports = new Store({
defaults: {
crosshair: 'leupold-dot',
color: '#FFFFFF',
color: '#00BCD4',
crosshair_index: 0,
opacity: 80,
position_x: -1,
Expand Down
4 changes: 2 additions & 2 deletions index.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ const unhandled = require("electron-unhandled");
const debug = require("electron-debug");
const contextMenu = require("electron-context-menu");
const config = require("./config");
const menu = require("./menu");
const menu = require("./src/menu");

unhandled();
debug();
Expand Down Expand Up @@ -299,7 +299,7 @@ const createMainWindow = async () => {
mainWindow = undefined;
});

await win.loadFile(path.join(__dirname, "index.html"));
await win.loadFile(path.join(__dirname, "src/index.html"));

return win;
};
Expand Down
4 changes: 2 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"name": "crossover",
"productName": "CrossOver",
"version": "0.1.3",
"version": "0.1.5",
"description": "A Crosshair Overlay for any platform.",
"license": "MIT",
"repository": "lacymorrow/crossover",
Expand All @@ -14,7 +14,7 @@
"postinstall": "electron-builder install-app-deps",
"lint": "xo",
"test": "npm run lint",
"start": "sass index.scss:index.css -s compressed && electron .",
"start": "sass src/index.scss:src/index.css -s compressed && electron .",
"pack": "electron-builder --dir",
"dist": "rm -rf dist && electron-builder --macos --linux --windows",
"release": "np"
Expand Down
File renamed without changes.
File renamed without changes.
4 changes: 2 additions & 2 deletions index.html → src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<head>
<meta charset="utf-8">
<title>CrossOver</title>
<link rel="stylesheet" href="static/css/pickr.nano.min.css"/>
<link rel="stylesheet" href="vendor/pickr.nano.min.css"/>
<link rel="stylesheet" href="index.css">
</head>
<body>
Expand All @@ -12,7 +12,7 @@

<div class="crosshair-wrapper">
<div id="crosshair">
<img id="crosshairImg" src="static/crosshairs/bullseye.png" draggable="false" />
<img id="crosshairImg" src="../static/crosshairs/bullseye.png" draggable="false" />
<div class="sight dot">&nbsp;</div>
</div>
<div class="drag-me"></div>
Expand Down
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Binary file modified static/crosshairs/ballistic-firedot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/crosshairs/bullseye.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/crosshairs/leica-magnus.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/crosshairs/leupold-dot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/crosshairs/starburst.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file modified static/crosshairs/target-dot.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.

0 comments on commit 59501f8

Please sign in to comment.