Skip to content

Commit 4dcdc4e

Browse files
committed
robo8x [chore] 8/1/2020, 8:30:34 AM
1 parent fc6c58e commit 4dcdc4e

File tree

19 files changed

+58
-21
lines changed

19 files changed

+58
-21
lines changed

LICENSE

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11

2-
@license p3x-onenote v2020.10.105
2+
@license p3x-onenote v2020.10.107
33

44
📚 P3X OneNote Linux
55

README.md

+2-2
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111

1212

1313

14-
# 📚 P3X OneNote Linux v2020.10.105
14+
# 📚 P3X OneNote Linux v2020.10.107
1515

1616

1717

@@ -232,7 +232,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
232232

233233
---
234234

235-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.105
235+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.107
236236

237237
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
238238

artifacts/arm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
2525

2626
---
2727

28-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.105
28+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.107
2929

3030
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
3131

artifacts/new-language.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
2525

2626
---
2727

28-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.105
28+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.107
2929

3030
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
3131

artifacts/npm.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
3838

3939
---
4040

41-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.105
41+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.107
4242

4343
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
4444

bin/p3x-onenote.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -22,7 +22,7 @@ const start = async() => {
2222
Version=1.0
2323
Type=Application
2424
Name=P3X Onenote
25-
Icon=${path.resolve(__dirname + '/../src/electron/images/256x256.png')}
25+
Icon=${path.resolve(__dirname + '/../src/electron/images/128x128.png')}
2626
Exec=${__filename}
2727
Comment=https://www.patrikx3.com
2828
Categories=Office;

changelog.md

+4-1
Original file line numberDiff line numberDiff line change
@@ -7,6 +7,9 @@
77

88
## Change log
99

10+
### v2020.10.107
11+
* FEATURE: Back/forward button
12+
1013
### v2020.10.105
1114
* FEATURE: Tuned bottom toolbar
1215

@@ -174,7 +177,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://
174177

175178
---
176179

177-
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.105
180+
[**P3X-ONENOTE**](https://corifeus.com/onenote) Build v2020.10.107
178181

179182
[![Donate for Corifeus / P3X](https://img.shields.io/badge/Donate-Corifeus-003087.svg)](https://www.paypal.com/cgi-bin/webscr?cmd=_s-xclick&hosted_button_id=QZVM4V6HVZJW6) [![Contact Corifeus / P3X](https://img.shields.io/badge/Contact-P3X-ff9900.svg)](https://www.patrikx3.com/en/front/contact) [![Like Corifeus @ Facebook](https://img.shields.io/badge/LIKE-Corifeus-3b5998.svg)](https://www.facebook.com/corifeus.software)
180183

package.json

+6-6
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "p3x-onenote",
3-
"version": "2020.10.105",
3+
"version": "2020.10.107",
44
"description": "📚 P3X OneNote Linux",
55
"main": "src/electron/app.js",
66
"corifeus": {
@@ -9,7 +9,7 @@
99
"publish": true,
1010
"type": "p3x",
1111
"code": "Linux",
12-
"nodejs": "v12.18.2",
12+
"nodejs": "v12.18.3",
1313
"reponame": "onenote",
1414
"build": true,
1515
"opencollective": false
@@ -44,23 +44,23 @@
4444
},
4545
"homepage": "https://corifeus.com/onenote",
4646
"dependencies": {
47-
"@fortawesome/fontawesome-free": "^5.13.1",
47+
"@fortawesome/fontawesome-free": "^5.14.0",
4848
"angular": "^1.8.0",
4949
"angular-animate": "^1.8.0",
5050
"angular-aria": "^1.8.0",
5151
"angular-material": "^1.1.24",
5252
"angular-messages": "^1.8.0",
5353
"configstore": "^4.0.0",
5454
"corifeus-utils": "^2020.4.206",
55-
"electron-updater": "^4.3.1",
55+
"electron-updater": "^4.3.4",
5656
"opencollective": "^1.0.3",
5757
"semver": "^7.3.2",
5858
"typeface-roboto": "0.0.75",
59-
"electron": "^9.1.0"
59+
"electron": "^9.1.2"
6060
},
6161
"devDependencies": {
6262
"corifeus-builder": "^2020.10.100",
63-
"electron-builder": "^22.7.0"
63+
"electron-builder": "^22.8.0"
6464
},
6565
"engines": {
6666
"node": ">=12.13.0"

src/electron/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -33,7 +33,7 @@ global.p3x = {
3333
disableHide: true,
3434
allowMultiple: false,
3535
optionToDisableInternalExternalPopup: false,
36-
iconFile: path.resolve(`${__dirname}/images/256x256.png`),
36+
iconFile: path.resolve(`${__dirname}/images/128x128.png`),
3737
tray: undefined,
3838
window: {
3939
onenote: undefined,

src/electron/images/128x128.png

7.61 KB
Loading

src/electron/main/create/window/onenote.js

+1
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@ function createWindow() {
1010
backgroundColor: 'black',
1111
autoHideMenuBar: true,
1212
webPreferences: {
13+
enableRemoteModule: true,
1314
nodeIntegration: true,
1415
webviewTag: true,
1516
}

src/electron/window/onenote/angular.js

+9
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,15 @@ global.p3x.onenote.ng.run((p3xOnenotePrompt, p3xOnenoteToast, $rootScope, $anima
3131

3232
$rootScope.p3x = {
3333
onenote: {
34+
go: (action) => {
35+
global.p3x.onenote.webview[action === 'back' ? 'goBack' : 'goForward']()
36+
},
37+
canGo: (action) => {
38+
if (action === 'back') {
39+
return global.p3x.onenote.webview.canGoBack()
40+
}
41+
return global.p3x.onenote.webview.canGoForward()
42+
},
3443
lang: global.p3x.onenote.lang,
3544
location: undefined,
3645
copyLocation: require('./action/multi-action/get-location'),

src/electron/window/onenote/angular/toast/index.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@ global.p3x.onenote.ng.factory('p3xOnenoteToast', ($mdToast) => {
77
}
88
}
99

10-
const template = '<md-toast class="md-toast" style="cursor: pointer;" ng-click="closeToast()">' + options.message + '</md-toast>'
10+
const template = '<md-toast class="md-toast p3x-onenote-toast-default" style="cursor: pointer;" ng-click="closeToast()">' + options.message + '</md-toast>'
1111

1212
$mdToast.show({
1313
controller: function ($scope, $mdToast) {

src/electron/window/onenote/index.html

+16-3
Original file line numberDiff line numberDiff line change
@@ -16,21 +16,34 @@
1616
-->
1717

1818
<!-- must be last -->
19-
<link rel="icon" type="image/png" href="../../images/256x256.png"/>
19+
<link rel="icon" type="image/png" href="../../images/128x128.png"/>
2020

2121
<script type="text/javascript" src="./load.js"></script>
2222

2323
</head>
2424

2525
<body onload="window.p3xOneNoteOnLoad()" id="p3x-onenote-bootstrap">
26-
<div id="p3x-onenote-bottom-bar" title="{{ $root.p3x.onenote.lang.label.copyLocation }}">
26+
<div id="p3x-onenote-bottom-bar" >
27+
28+
<div style="float: left;">
29+
<md-button ng-click="$root.p3x.onenote.go('back')" ng-disabled="!$root.p3x.onenote.canGo('back')" style="padding: 0; margin: 0; padding-left: 8px; padding-right: 8px; min-height: auto; line-height: 20px; min-width: auto">
30+
<md-tooltip md-direction="top">{{ $root.p3x.onenote.lang.label.back }}</md-tooltip>
31+
<i class="fas fa-chevron-left"></i>
32+
</md-button>
33+
<md-button ng-click="$root.p3x.onenote.go('forward')" ng-disabled="!$root.p3x.onenote.canGo('forward')" style="padding: 0; margin: 0; padding-left: 8px; padding-right: 8px; min-height: auto; line-height: 20px; min-width: auto">
34+
<md-tooltip md-direction="top">{{ $root.p3x.onenote.lang.label.forward }}</md-tooltip>
35+
<i class="fas fa-chevron-right"></i>
36+
</md-button>
37+
</div>
38+
2739
<div style="float: right;">
28-
<md-button ng-click="$root.p3x.onenote.donate()" style="padding: 0; margin: 0; min-height: auto; line-height: 20px;">
40+
<md-button ng-click="$root.p3x.onenote.donate()" style="padding: 0; margin: 0; padding-left: 8px; padding-right: 8px; min-height: auto; line-height: 20px; min-width: auto">
2941
<i class="fas fa-donate"></i>
3042
{{ $root.p3x.onenote.lang.label.donate }}
3143
</md-button>
3244
</div>
3345
<span ng-click="$root.p3x.onenote.copyLocation()" style="overflow: hidden; width: 100%;">
46+
<md-tooltip md-direction="top">{{ $root.p3x.onenote.lang.label.copyLocation }}</md-tooltip>
3447
&nbsp;{{ $root.p3x.onenote.location }}
3548
</span>
3649
</div>

src/electron/window/onenote/style.css

+2
Original file line numberDiff line numberDiff line change
@@ -52,5 +52,7 @@ body * {
5252

5353
.md-toast-content {
5454
z-index: 110;
55+
}
5556

57+
.p3x-onenote-toast-default .md-toast-content {
5658
}

src/translation/de-DE.js

+2
Original file line numberDiff line numberDiff line change
@@ -38,6 +38,8 @@ const translation = {
3838
copyLocationCopied: 'Speicherort in Zwischenablage kopiert.',
3939
//disallowedContent: 'Disallowed content! If not working, hang on, it will reset to the default home. (Max 5 seconds).',
4040
//unknownLink: 'Hang on, it might change while loading to the destination. If this is not a OneNote page, free to click on the P3X OneNote menu home'
41+
back: 'Zurück',
42+
forward: 'Nach vorne',
4143
},
4244
dialog: {
4345
info: 'Info',

src/translation/en-US.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const translation = {
3838
copyLocation: 'Copy this location to the clipboard',
3939
copyLocationCopied: 'The location is copied to the clipboard.',
4040
//disallowedContent: 'Disallowed content! If not working, hang on, it will reset to the default home. (Max 5 seconds).',
41-
//unknownLink: 'Hang on, it might change while loading to the destination. If this is not a OneNote page, free to click on the P3X OneNote menu home'
41+
//unknownLink: 'Hang on, it might change while loading to the destination. If this is not a OneNote page, free to click on the P3X OneNote menu home',
42+
back: 'Back',
43+
forward: 'Forward',
4244
},
4345
dialog: {
4446
info: 'Info',

src/translation/es-ES.js

+3
Original file line numberDiff line numberDiff line change
@@ -39,6 +39,9 @@ const translation = {
3939
copyLocationCopied: 'Dirección copiada al portapapeles.',
4040
//disallowedContent: '¡Contenido no permitido!.Si no funciona, espere. Se reseteará al home por defecto. (Máx 5 segundos).',
4141
//unknownLink: 'Espere, cambiará mientras carga el destino. Si esto no es una página de OneNote, haga clic en el menú dentro de P3X OneNote home'
42+
back: 'Espalda',
43+
forward: 'Adelante',
44+
4245
},
4346
dialog: {
4447
info: 'Info',

src/translation/pt-BR.js

+3-1
Original file line numberDiff line numberDiff line change
@@ -38,7 +38,9 @@ const translation = {
3838
copyLocation: 'Copiar para área de transferência',
3939
copyLocationCopied: 'A localização foi copiada para a área de transferência.',
4040
//disallowedContent: 'Disallowed content! If not working, hang on, it will reset to the default home. (Max 5 seconds).',
41-
//unknownLink: 'Hang on, it might change while loading to the destination. If this is not a OneNote page, free to click on the P3X OneNote menu home'
41+
//unknownLink: 'Hang on, it might change while loading to the destination. If this is not a OneNote page, free to click on the P3X OneNote menu home',
42+
back: 'Costas',
43+
forward: 'Frente',
4244
},
4345
dialog: {
4446
info: 'Informações',

0 commit comments

Comments
 (0)