Skip to content

Commit

Permalink
typo / preview img
Browse files Browse the repository at this point in the history
  • Loading branch information
Dani3lSun authored and Dani3lSun committed Jan 17, 2016
1 parent 84a7d74 commit 45a8fd4
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 10 deletions.
15 changes: 5 additions & 10 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -55,7 +55,7 @@ This showcase describes the steps I´ve been done (maybe wrong ones included, to

##Changelog

####0.8 - Beta Testing
####First testings...


##Installation
Expand All @@ -82,6 +82,7 @@ npm is the package manager for node applications. Thus electron is based on node
###Electron App
####package.json
**not required if you decide to download this repository!**

The first step is to generate the package.json file
```
mkdir apex-app-desktop
Expand Down Expand Up @@ -115,7 +116,7 @@ The resulting json file could look like this:
}
```

Now we have to add **"start": "electron .""** to the scripts tag of the json file.
Now we have to add **"start": "electron ."** to the scripts tag of the json file.
```json
{
"name": "apex-app-desktop",
Expand Down Expand Up @@ -459,13 +460,6 @@ var text = $v('P15_NOTIFY_TEXT'); //read text from APEX item
electronapex.doNotify(text); //use function from electronapex.js
```

###Desktop notifications
For this functionality I created a dynamic action (on button click) with this code:
```javascript
var text = $v('P15_NOTIFY_TEXT'); //read text from APEX item
electronapex.doNotify(text); //use function from electronapex.js
```

Uses the Browser Notification API [MDN](https://developer.mozilla.org/de/docs/Web/API/notification)

###File open
Expand All @@ -481,6 +475,7 @@ Thus the webview is created with the option (useragent="APEXDESKTOP" - index.htm
we can use this on APEX side to create a authorization scheme which is true or false based on the user agent of the "browser".

Name: Is Electron User Agent

Message: This page is only visible inside a electron desktop app

```language-sql
Expand All @@ -502,5 +497,5 @@ This software is under **MIT License**.
[LICENSE](https://github.com/Dani3lSun/apex-app-desktop/blob/master/LICENSE)

##Preview
![]()
![](https://github.com/Dani3lSun/apex-app-desktop/blob/master/preview.gif)
---
Binary file added preview.gif
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 45a8fd4

Please sign in to comment.