-
Notifications
You must be signed in to change notification settings - Fork 19
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
10 changed files
with
2,900 additions
and
0 deletions.
There are no files selected for viewing
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Binary file not shown.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file not shown.
Binary file not shown.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
var app = require('app'); // Module to control application life. | ||
var BrowserWindow = require('browser-window'); // Module to create native browser window. | ||
|
||
// Keep a global reference of the window object, if you don't, the window will | ||
// be closed automatically when the JavaScript object is garbage collected. | ||
var mainWindow = null; | ||
|
||
// Quit when all windows are closed. | ||
app.on('window-all-closed', function() { | ||
// On OS X it is common for applications and their menu bar | ||
// to stay active until the user quits explicitly with Cmd + Q | ||
if (process.platform != 'darwin') { | ||
app.quit(); | ||
} | ||
}); | ||
|
||
// This method will be called when Electron has finished | ||
// initialization and is ready to create browser windows. | ||
app.on('ready', function() { | ||
// Create the browser window. | ||
mainWindow = new BrowserWindow({ | ||
width: 600, | ||
height: 300, | ||
'min-width': 500, | ||
'min-height': 200, | ||
'accept-first-mouse': true, | ||
'title-bar-style': 'hidden' | ||
}); | ||
|
||
// and load the index.html of the app. | ||
mainWindow.loadUrl('file://' + __dirname + '/index.html'); | ||
|
||
// Open the DevTools. | ||
//mainWindow.openDevTools(); | ||
|
||
// Emitted when the window is closed. | ||
mainWindow.on('closed', function() { | ||
// Dereference the window object, usually you would store windows | ||
// in an array if your app supports multi windows, this is the time | ||
// when you should delete the corresponding element. | ||
mainWindow = null; | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,183 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<title>Photon</title> | ||
|
||
<!-- Stylesheets --> | ||
<link rel="stylesheet" href="../css/photon.min.css"> | ||
|
||
<!-- Javascript --> | ||
<script src="js/menu.js" charset="utf-8"></script> | ||
</head> | ||
<body> | ||
<div class="window"> | ||
|
||
<!-- .toolbar-header sits at the top of your app --> | ||
<header class="toolbar toolbar-header"> | ||
<h1 class="title">Photon</h1> | ||
</header> | ||
|
||
<!-- Your app's content goes inside .window-content --> | ||
<div class="window-content"> | ||
<div class="pane-group"> | ||
<div class="pane pane-sm sidebar"> | ||
<nav class="nav-group"> | ||
<h5 class="nav-group-title">Favorites</h5> | ||
<span class="nav-group-item"> | ||
<span class="icon icon-home"></span> | ||
connors | ||
</span> | ||
<span class="nav-group-item active"> | ||
<span class="icon icon-light-up"></span> | ||
Photon | ||
</span> | ||
<span class="nav-group-item"> | ||
<span class="icon icon-download"></span> | ||
Downloads | ||
</span> | ||
<span class="nav-group-item"> | ||
<span class="icon icon-folder"></span> | ||
Documents | ||
</span> | ||
<span class="nav-group-item"> | ||
<span class="icon icon-window"></span> | ||
Applications | ||
</span> | ||
<span class="nav-group-item"> | ||
<span class="icon icon-signal"></span> | ||
AirDrop | ||
</span> | ||
<span class="nav-group-item"> | ||
<span class="icon icon-monitor"></span> | ||
Desktop | ||
</span> | ||
</nav> | ||
</div> | ||
|
||
<div class="pane"> | ||
<table class="table-striped"> | ||
<thead> | ||
<tr> | ||
<th>Name</th> | ||
<th>Kind</th> | ||
<th>Date Modified</th> | ||
<th>Author</th> | ||
</tr> | ||
</thead> | ||
<tbody> | ||
<tr> | ||
<td>bars.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>base.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>button-groups.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>buttons.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>docs.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>forms.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>grid.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>icons.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>images.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>lists.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>mixins.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>navs.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>normalize.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>photon.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>tables.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>tabs.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>utilities.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
<tr> | ||
<td>variables.scss</td> | ||
<td>Document</td> | ||
<td>Oct 13, 2015</td> | ||
<td>connors</td> | ||
</tr> | ||
</tbody> | ||
</table> | ||
</div> | ||
</div> | ||
</div> | ||
</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,27 @@ | ||
var remote = require('remote') | ||
var Menu = remote.require('menu') | ||
var MenuItem = remote.require('menu-item') | ||
|
||
// Build our new menu | ||
var menu = new Menu() | ||
menu.append(new MenuItem({ | ||
label: 'Delete', | ||
click: function() { | ||
// Trigger an alert when menu item is clicked | ||
alert('Deleted') | ||
} | ||
})) | ||
menu.append(new MenuItem({ | ||
label: 'More Info...', | ||
click: function() { | ||
// Trigger an alert when menu item is clicked | ||
alert('Here is more information') | ||
} | ||
})) | ||
|
||
// Add the listener | ||
document.addEventListener('DOMContentLoaded', function () { | ||
document.querySelector('.js-context-menu').addEventListener('click', function (event) { | ||
menu.popup(remote.getCurrentWindow()); | ||
}) | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
{ | ||
"name": "proton-template-app", | ||
"version": "1.0.0", | ||
"description": "A simple template app for Proton", | ||
"main": "app.js", | ||
"author": "Connor Sears", | ||
"scripts": { | ||
"start": "electron ." | ||
} | ||
} |