-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
REST API to grab about information #32
- Loading branch information
1 parent
02f0164
commit ab2cd9b
Showing
6 changed files
with
199 additions
and
17 deletions.
There are no files selected for viewing
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,50 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>About</title> | ||
</head> | ||
|
||
<style> | ||
|
||
.app-logo { | ||
height: 80px; | ||
} | ||
|
||
</style> | ||
|
||
<script src="node_modules/jquery/dist/jquery.min.js" type="text/javascript"></script> | ||
<script src="node_modules/angular/angular.min.js" type="text/javascript"></script> | ||
|
||
<script> | ||
|
||
var aboutModule = angular.module("aboutModule", []); | ||
|
||
aboutModule.controller("aboutController", function ($http, $scope) { | ||
$scope.abtData = undefined; | ||
|
||
$http.get("http://127.0.0.1:5000/settings/about") | ||
.then(function onSuccess(response) { | ||
$scope.abtData = response.data; | ||
}) | ||
.catch(function onError(response) { | ||
|
||
}) | ||
}); | ||
|
||
</script> | ||
|
||
<body ng-app="aboutModule" ng-controller="aboutController"> | ||
|
||
<img class="app-logo" src="images/fontman.png"> | ||
<h3>Fontman Desktop</h3> | ||
<h4>Version {{abtData.version}} {{abtData.platform}}</h4> | ||
|
||
<p>Fontman Desktop is a cross-platform desktop font package manager which brings latest and greatest Libre, open source fonts to your desktop.</p> | ||
<p>Fontman is a free software project and welcomes bug reports, suggestions, contributions and code contributions. See FAQ for more information.</p> | ||
<p>This software is licensed under GNU GPL version 3 and the source code is hosted on Github. See the LICENSE for more information.</p> | ||
|
||
<h5>© Copyright {{abtData.year}} Fontman Project Authors.</h5> | ||
|
||
</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
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
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,63 @@ | ||
/** | ||
* Created by lpsandaruwan on 2/5/17. | ||
*/ | ||
|
||
// build app native menus | ||
const {Menu} = require('electron'); | ||
const ipc = require('electron').ipcRenderer; | ||
|
||
// native menu template | ||
const nativeMenus = [ | ||
{ | ||
label: 'Fonts', | ||
submenu: [ | ||
{ | ||
label: 'Check for updates' | ||
} | ||
] | ||
|
||
}, | ||
{ | ||
label: 'Account', | ||
submenu: [ | ||
{ | ||
label: 'Register' | ||
}, | ||
{ | ||
label: "Sign In" | ||
} | ||
] | ||
}, | ||
{ | ||
label: 'Settings' | ||
}, | ||
{ | ||
label: 'About' | ||
}, | ||
{ | ||
label: 'Help', | ||
submenu: [ | ||
{ | ||
label: 'Help', | ||
click () { require('electron').shell.openExternal('http://fontman.io/help') } | ||
}, | ||
{ | ||
label: 'Interface guide', | ||
click () { require('electron').shell.openExternal('http://fontman.io/help#desktop-interface') } | ||
}, | ||
{ | ||
label: 'Report a bug', | ||
click () { require('electron').shell.openExternal('http://github.com/fontman/fontman-desktop/issues/new') } | ||
}, | ||
{ | ||
label: 'Ask a question', | ||
click () { require('electron').shell.openExternal('http://github.com/fontman/fontman-desktop/issues/new') } | ||
}, | ||
{ | ||
label: 'Updates from @fontmanApp' | ||
} | ||
] | ||
} | ||
]; | ||
|
||
const menu = Menu.buildFromTemplate(nativeMenus); |
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 |
---|---|---|
|
@@ -24,6 +24,6 @@ | |
"textangular": "^1.5.16" | ||
}, | ||
"devDependencies": { | ||
"electron": "^1.4.1" | ||
"electron": "^1.4.15" | ||
} | ||
} |
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 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<title>Check for fonts updates</title> | ||
</head> | ||
<body> | ||
|
||
</body> | ||
</html> |