Skip to content

Commit

Permalink
robo8x [chore] 8/1/2020, 8:30:34 AM
Browse files Browse the repository at this point in the history
  • Loading branch information
p3x-robot committed Aug 1, 2020
1 parent fc6c58e commit 4dcdc4e
Show file tree
Hide file tree
Showing 19 changed files with 58 additions and 21 deletions.
2 changes: 1 addition & 1 deletion LICENSE
@@ -1,5 +1,5 @@

@license p3x-onenote v2020.10.105
@license p3x-onenote v2020.10.107

📚 P3X OneNote Linux

Expand Down
4 changes: 2 additions & 2 deletions README.md
Expand Up @@ -11,7 +11,7 @@



# 📚 P3X OneNote Linux v2020.10.105
# 📚 P3X OneNote Linux v2020.10.107



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

---

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

[![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)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/arm.md
Expand Up @@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

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

[![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)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/new-language.md
Expand Up @@ -25,7 +25,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

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

[![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)

Expand Down
2 changes: 1 addition & 1 deletion artifacts/npm.md
Expand Up @@ -38,7 +38,7 @@ All my domains ([patrikx3.com](https://patrikx3.com) and [corifeus.com](https://

---

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

[![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)

Expand Down
2 changes: 1 addition & 1 deletion bin/p3x-onenote.js
Expand Up @@ -22,7 +22,7 @@ const start = async() => {
Version=1.0
Type=Application
Name=P3X Onenote
Icon=${path.resolve(__dirname + '/../src/electron/images/256x256.png')}
Icon=${path.resolve(__dirname + '/../src/electron/images/128x128.png')}
Exec=${__filename}
Comment=https://www.patrikx3.com
Categories=Office;
Expand Down
5 changes: 4 additions & 1 deletion changelog.md
Expand Up @@ -7,6 +7,9 @@

## Change log

### v2020.10.107
* FEATURE: Back/forward button

### v2020.10.105
* FEATURE: Tuned bottom toolbar

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

---

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

[![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)

Expand Down
12 changes: 6 additions & 6 deletions package.json
@@ -1,6 +1,6 @@
{
"name": "p3x-onenote",
"version": "2020.10.105",
"version": "2020.10.107",
"description": "📚 P3X OneNote Linux",
"main": "src/electron/app.js",
"corifeus": {
Expand All @@ -9,7 +9,7 @@
"publish": true,
"type": "p3x",
"code": "Linux",
"nodejs": "v12.18.2",
"nodejs": "v12.18.3",
"reponame": "onenote",
"build": true,
"opencollective": false
Expand Down Expand Up @@ -44,23 +44,23 @@
},
"homepage": "https://corifeus.com/onenote",
"dependencies": {
"@fortawesome/fontawesome-free": "^5.13.1",
"@fortawesome/fontawesome-free": "^5.14.0",
"angular": "^1.8.0",
"angular-animate": "^1.8.0",
"angular-aria": "^1.8.0",
"angular-material": "^1.1.24",
"angular-messages": "^1.8.0",
"configstore": "^4.0.0",
"corifeus-utils": "^2020.4.206",
"electron-updater": "^4.3.1",
"electron-updater": "^4.3.4",
"opencollective": "^1.0.3",
"semver": "^7.3.2",
"typeface-roboto": "0.0.75",
"electron": "^9.1.0"
"electron": "^9.1.2"
},
"devDependencies": {
"corifeus-builder": "^2020.10.100",
"electron-builder": "^22.7.0"
"electron-builder": "^22.8.0"
},
"engines": {
"node": ">=12.13.0"
Expand Down
2 changes: 1 addition & 1 deletion src/electron/app.js
Expand Up @@ -33,7 +33,7 @@ global.p3x = {
disableHide: true,
allowMultiple: false,
optionToDisableInternalExternalPopup: false,
iconFile: path.resolve(`${__dirname}/images/256x256.png`),
iconFile: path.resolve(`${__dirname}/images/128x128.png`),
tray: undefined,
window: {
onenote: undefined,
Expand Down
Binary file added src/electron/images/128x128.png
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions src/electron/main/create/window/onenote.js
Expand Up @@ -10,6 +10,7 @@ function createWindow() {
backgroundColor: 'black',
autoHideMenuBar: true,
webPreferences: {
enableRemoteModule: true,
nodeIntegration: true,
webviewTag: true,
}
Expand Down
9 changes: 9 additions & 0 deletions src/electron/window/onenote/angular.js
Expand Up @@ -31,6 +31,15 @@ global.p3x.onenote.ng.run((p3xOnenotePrompt, p3xOnenoteToast, $rootScope, $anima

$rootScope.p3x = {
onenote: {
go: (action) => {
global.p3x.onenote.webview[action === 'back' ? 'goBack' : 'goForward']()
},
canGo: (action) => {
if (action === 'back') {
return global.p3x.onenote.webview.canGoBack()
}
return global.p3x.onenote.webview.canGoForward()
},
lang: global.p3x.onenote.lang,
location: undefined,
copyLocation: require('./action/multi-action/get-location'),
Expand Down
2 changes: 1 addition & 1 deletion src/electron/window/onenote/angular/toast/index.js
Expand Up @@ -7,7 +7,7 @@ global.p3x.onenote.ng.factory('p3xOnenoteToast', ($mdToast) => {
}
}

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

$mdToast.show({
controller: function ($scope, $mdToast) {
Expand Down
19 changes: 16 additions & 3 deletions src/electron/window/onenote/index.html
Expand Up @@ -16,21 +16,34 @@
-->

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

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

</head>

<body onload="window.p3xOneNoteOnLoad()" id="p3x-onenote-bootstrap">
<div id="p3x-onenote-bottom-bar" title="{{ $root.p3x.onenote.lang.label.copyLocation }}">
<div id="p3x-onenote-bottom-bar" >

<div style="float: left;">
<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">
<md-tooltip md-direction="top">{{ $root.p3x.onenote.lang.label.back }}</md-tooltip>
<i class="fas fa-chevron-left"></i>
</md-button>
<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">
<md-tooltip md-direction="top">{{ $root.p3x.onenote.lang.label.forward }}</md-tooltip>
<i class="fas fa-chevron-right"></i>
</md-button>
</div>

<div style="float: right;">
<md-button ng-click="$root.p3x.onenote.donate()" style="padding: 0; margin: 0; min-height: auto; line-height: 20px;">
<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">
<i class="fas fa-donate"></i>
{{ $root.p3x.onenote.lang.label.donate }}
</md-button>
</div>
<span ng-click="$root.p3x.onenote.copyLocation()" style="overflow: hidden; width: 100%;">
<md-tooltip md-direction="top">{{ $root.p3x.onenote.lang.label.copyLocation }}</md-tooltip>
&nbsp;{{ $root.p3x.onenote.location }}
</span>
</div>
Expand Down
2 changes: 2 additions & 0 deletions src/electron/window/onenote/style.css
Expand Up @@ -52,5 +52,7 @@ body * {

.md-toast-content {
z-index: 110;
}

.p3x-onenote-toast-default .md-toast-content {
}
2 changes: 2 additions & 0 deletions src/translation/de-DE.js
Expand Up @@ -38,6 +38,8 @@ const translation = {
copyLocationCopied: 'Speicherort in Zwischenablage kopiert.',
//disallowedContent: 'Disallowed content! If not working, hang on, it will reset to the default home. (Max 5 seconds).',
//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'
back: 'Zurück',
forward: 'Nach vorne',
},
dialog: {
info: 'Info',
Expand Down
4 changes: 3 additions & 1 deletion src/translation/en-US.js
Expand Up @@ -38,7 +38,9 @@ const translation = {
copyLocation: 'Copy this location to the clipboard',
copyLocationCopied: 'The location is copied to the clipboard.',
//disallowedContent: 'Disallowed content! If not working, hang on, it will reset to the default home. (Max 5 seconds).',
//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'
//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',
back: 'Back',
forward: 'Forward',
},
dialog: {
info: 'Info',
Expand Down
3 changes: 3 additions & 0 deletions src/translation/es-ES.js
Expand Up @@ -39,6 +39,9 @@ const translation = {
copyLocationCopied: 'Dirección copiada al portapapeles.',
//disallowedContent: '¡Contenido no permitido!.Si no funciona, espere. Se reseteará al home por defecto. (Máx 5 segundos).',
//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'
back: 'Espalda',
forward: 'Adelante',

},
dialog: {
info: 'Info',
Expand Down
4 changes: 3 additions & 1 deletion src/translation/pt-BR.js
Expand Up @@ -38,7 +38,9 @@ const translation = {
copyLocation: 'Copiar para área de transferência',
copyLocationCopied: 'A localização foi copiada para a área de transferência.',
//disallowedContent: 'Disallowed content! If not working, hang on, it will reset to the default home. (Max 5 seconds).',
//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'
//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',
back: 'Costas',
forward: 'Frente',
},
dialog: {
info: 'Informações',
Expand Down

0 comments on commit 4dcdc4e

Please sign in to comment.