Skip to content

Commit 3ceded9

Browse files
committed
p3x-robot sunday release 2017-10-4 18:21:33
1 parent 42cc1e2 commit 3ceded9

File tree

4 files changed

+22
-3
lines changed

4 files changed

+22
-3
lines changed

README.md

+5-1
Original file line numberDiff line numberDiff line change
@@ -68,6 +68,10 @@ Fedora: https://github.com/patrikx3/onenote/issues/3#issuecomment-312711801
6868
* Quit
6969
* Loads last visibility state
7070

71+
# Corporate
72+
73+
* Now, there is a menu ```Corporate home```
74+
7175
## Screenshot
7276

7377
![Screenshot 1](https://cdn.corifeus.com/git/onenote/artifacts/screenshot/1.png)
@@ -78,7 +82,7 @@ Fedora: https://github.com/patrikx3/onenote/issues/3#issuecomment-312711801
7882

7983
---
8084

81-
[**P3X-ONENOTE**](https://pages.corifeus.com/onenote) Build v1.0.286-175
85+
[**P3X-ONENOTE**](https://pages.corifeus.com/onenote) Build v1.0.293-180
8286

8387
[Corifeus](http://www.corifeus.com) by [Patrik Laszlo](http://patrikx3.com)
8488

package.json

+3-2
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p3x-onenote",
3-
"version": "1.0.286-175",
3+
"version": "1.0.293-180",
44
"description": "P3X Onenote Linux",
55
"main": "src/electron/app.js",
66
"corifeus": {
@@ -32,9 +32,9 @@
3232
},
3333
"homepage": "https://pages.corifeus.com/onenote",
3434
"dependencies": {
35+
"electron": "^1.7.8",
3536
"configstore": "^3.1.1",
3637
"corifeus-utils": "^1.1.532-168",
37-
"electron": "^1.7.8",
3838
"mocha": "^3.5.3"
3939
},
4040
"devDependencies": {
@@ -49,6 +49,7 @@
4949
"copyright": "MIT",
5050
"productName": "P3X OneNote Linux",
5151
"linux": {
52+
"category": "Office",
5253
"icon": "src/electron/images/"
5354
}
5455
}

src/electron/app.js

+10
Original file line numberDiff line numberDiff line change
@@ -35,6 +35,12 @@ const action = {
3535
action: 'home'
3636
})
3737
},
38+
corporate: () => {
39+
mainWindow.show();
40+
mainWindow.webContents.send('action', {
41+
action: 'corporate'
42+
})
43+
},
3844
toggleVisible: () => {
3945
if (mainWindow === undefined) {
4046
return;
@@ -77,6 +83,10 @@ const menus = {
7783
label: 'Home',
7884
click: action.home
7985
},
86+
{
87+
label: 'Corporate home',
88+
click: action.corporate
89+
},
8090
{
8191
label: 'Restart / Logout',
8292
tooltip: 'You logout and can login again',

src/electron/js/preload.js

+4
Original file line numberDiff line numberDiff line change
@@ -44,6 +44,10 @@ window.electronWindowSetup = function() {
4444
case 'home':
4545
webview.src = 'https://www.onenote.com/notebooks'
4646
break;
47+
48+
case 'corporate':
49+
webview.src = 'https://www.onenote.com/notebooks?auth=2&auth_upn=my_corporate_email_address'
50+
break;
4751
}
4852
})
4953

0 commit comments

Comments
 (0)