Skip to content

Commit 5f3681d

Browse files
committed
Merge branch 'release/1.4.0'
2 parents 38ea84a + f37ef99 commit 5f3681d

20 files changed

Lines changed: 146 additions & 84 deletions

package-lock.json

Lines changed: 73 additions & 73 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

package.json

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -37,12 +37,12 @@
3737
"clean-css": "^5.3.3",
3838
"concurrently": "^9.2.1",
3939
"copy-webpack-plugin": "^14.0.0",
40-
"electron": "^41.2.2",
40+
"electron": "^41.3.0",
4141
"electron-builder": "^26.8.1",
4242
"eslint": "^10.2.1",
4343
"html-minifier-terser": "^7.2.0",
4444
"rimraf": "^6.1.3",
45-
"terser-webpack-plugin": "^5.4.0",
45+
"terser-webpack-plugin": "^5.5.0",
4646
"ts-loader": "^9.5.7",
4747
"typescript": "^6.0.3",
4848
"typescript-eslint": "^8.59.0",
@@ -53,10 +53,10 @@
5353
"@ecromaneli/search-engine": "^3.0.0",
5454
"auto-launch": "^5.0.6",
5555
"electron-context-menu": "^4.1.2",
56-
"electron-draggable": "^1.6.1",
56+
"electron-draggable": "^1.6.2",
5757
"electron-findbar": "^3.7.2",
5858
"electron-store": "^11.0.2",
5959
"electron-updater": "^6.8.3",
60-
"vue": "^3.5.32"
60+
"vue": "^3.5.33"
6161
}
6262
}

src/AppState.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -20,6 +20,7 @@ class AppState {
2020
private _defaultAppMenu?: MenuItem[];
2121
private _globalShortcut = '';
2222
private _resetBoundsType: ResetBoundType = Storage.getSettings(Settings.RESET_BOUNDS);
23+
private _contentProtection = Storage.getSettings<boolean>(Settings.CONTENT_PROTECTION);
2324
private _systemTheme = this.getSystemTheme();
2425
private _tray?: Tray;
2526
private _preferences?: BrowserWindow;
@@ -47,6 +48,8 @@ class AppState {
4748
set globalShortcut(shortcut: string) { this._globalShortcut = shortcut; }
4849
set resetBoundsType(type: ResetBoundType) { this._resetBoundsType = type; }
4950
get resetBoundsType(): ResetBoundType { return this._resetBoundsType; }
51+
set contentProtection(enabled: boolean) { this._contentProtection = enabled; }
52+
get contentProtection(): boolean { return this._contentProtection; }
5053
set systemTheme(theme: SystemTheme) { this._systemTheme = theme; }
5154
get systemTheme(): SystemTheme { return this._systemTheme; }
5255
set trayContextMenu(menu: MenuItemConstructorOptions[] | undefined) { this.contextMenu.tray = menu; }

src/data/Constants.ts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -31,6 +31,7 @@ const Settings = {
3131
DRAG_REFRESH_RATE: 'drag_refresh_rate',
3232
QUICK_MENU_SHORTCUT: 'quick_menu_shortcut',
3333
RIGHT_MARGIN_WHEN_MAXIMIZED: 'right_margin_when_maximized',
34+
CONTENT_PROTECTION: 'content_protection',
3435
};
3536

3637
const SyncSettings = {
@@ -81,6 +82,7 @@ DefaultSettings[Settings.RESIZE_REFRESH_RATE] = '';
8182
DefaultSettings[Settings.DRAG_REFRESH_RATE] = '';
8283
DefaultSettings[Settings.QUICK_MENU_SHORTCUT] = 'CmdOrCtrl+P';
8384
DefaultSettings[Settings.RIGHT_MARGIN_WHEN_MAXIMIZED] = 16;
85+
DefaultSettings[Settings.CONTENT_PROTECTION] = false;
8486
DefaultSettings[SyncSettings.GIST_ID] = undefined;
8587
DefaultSettings[SyncSettings.GIST_TOKEN] = undefined;
8688

src/locale/de.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const de: Strings = {
6565
muteUnmute: 'Ton Aktivieren/Deaktivieren',
6666
navbar: 'Navigationsleiste',
6767
quickMenu: 'Schnellmenü',
68+
printToPdf: 'Als PDF drucken...',
6869
},
6970

7071
dialog: {
@@ -235,6 +236,8 @@ export const de: Strings = {
235236
keepOpacityDesc: 'Die Unschärfe-Deckkraft ignorieren, wenn das Fenster maximiert ist.',
236237
allowFullscreen: 'Vollbild erlauben',
237238
allowFullscreenDesc: 'Erlaubt dem Fenster den Vollbildmodus. Wenn deaktiviert, wird der Inhalt im Vollbild an das Fenster angepasst.',
239+
contentProtection: 'Inhaltsschutz',
240+
contentProtectionDesc: 'Verhindert, dass Fensterinhalte der App durch Bildschirmfreigabe- oder Screenshot-Tools erfasst werden.',
238241

239242
resetBounds: 'Standardwerte beim Neustart wiederherstellen',
240243
resetBoundsDesc: 'Beim Neustart der App die Fenster auf den Standardzustand zurücksetzen. Wählen Sie "Keine", um dies zu deaktivieren.',

src/locale/en.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ export const en = {
6464
listPages: 'List Pages',
6565
muteUnmute: 'Mute / Unmute',
6666
navbar: 'Navigation Bar',
67+
printToPdf: 'Print to PDF...',
6768
},
6869

6970
dialog: {
@@ -234,6 +235,8 @@ export const en = {
234235
keepOpacityDesc: 'Ignore the blur opacity if the window is maximized.',
235236
allowFullscreen: 'Allow fullscreen',
236237
allowFullscreenDesc: 'Allow the window to enter fullscreen mode. If disabled, the media, when in fullscreen, will fit the window.',
238+
contentProtection: 'Content protection',
239+
contentProtectionDesc: 'Prevent the app window content from being captured by screen sharing or screenshot tools.',
237240

238241
resetBounds: 'Reset bounds to defaults on restart',
239242
resetBoundsDesc: 'On restart the app, reset windows to default state. Choose "None" to disable it.',

src/locale/es.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const es: Strings = {
6565
muteUnmute: 'Activar/Desactivar Sonido',
6666
navbar: 'Barra de Navegación',
6767
quickMenu: 'Menú Rápido',
68+
printToPdf: 'Imprimir en PDF...',
6869
},
6970

7071
dialog: {
@@ -235,6 +236,8 @@ export const es: Strings = {
235236
keepOpacityDesc: 'Ignorar la opacidad de desenfoque si la ventana está maximizada.',
236237
allowFullscreen: 'Permitir pantalla completa',
237238
allowFullscreenDesc: 'Permite que la ventana entre en modo pantalla completa. Si está deshabilitado, el contenido en pantalla completa se ajustará a la ventana.',
239+
contentProtection: 'Protección de contenido',
240+
contentProtectionDesc: 'Evita que el contenido de las ventanas de la aplicación sea capturado por herramientas de pantalla compartida o capturas de pantalla.',
238241

239242
resetBounds: 'Restablecer valores estándar al reiniciar',
240243
resetBoundsDesc: 'Al reiniciar la aplicación, restablece las ventanas al estado estándar. Elige "Ninguno" para deshabilitarlo.',

src/locale/fr.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@ export const fr: Strings = {
6565
muteUnmute: 'Activer/Désactiver le Son',
6666
navbar: 'Barre de Navigation',
6767
quickMenu: 'Menu Rapide',
68+
printToPdf: 'Imprimer en PDF...',
6869
},
6970

7071
dialog: {
@@ -235,6 +236,8 @@ export const fr: Strings = {
235236
keepOpacityDesc: 'Ignorer l\'opacité de défocalisation si la fenêtre est maximisée.',
236237
allowFullscreen: 'Autoriser le plein écran',
237238
allowFullscreenDesc: 'Permet à la fenêtre de passer en mode plein écran. Si désactivé, le contenu en plein écran s\'ajustera à la fenêtre.',
239+
contentProtection: 'Protection du contenu',
240+
contentProtectionDesc: 'Empêche la capture du contenu des fenêtres de l\'application par des outils de partage d\'écran ou de capture d\'écran.',
238241

239242
resetBounds: 'Réinitialiser les valeurs par défaut au redémarrage',
240243
resetBoundsDesc: 'Au redémarrage de l\'application, réinitialise les fenêtres à l\'état par défaut. Choisissez "Aucun" pour désactiver.',

0 commit comments

Comments
 (0)