Capitalize user visible strings

I did not change the title of the window ("ente.io | encrypted photo
storage"), we can revisit it later.
This commit is contained in:
Manav 2022-07-11 18:36:05 +05:30
parent a0779e9b2b
commit 5fdbd3b566
3 changed files with 40 additions and 40 deletions

View file

@ -11,7 +11,7 @@
<body style="background-color: black;"> <body style="background-color: black;">
<div style=" height: 95vh;width: 96vw; display: grid; place-items: center; color: white;"> <div style=" height: 95vh;width: 96vw; display: grid; place-items: center; color: white;">
<div> <div>
<div style="margin-bottom: 10px;">site unreachable, please try again later</div> <div style="margin-bottom: 10px;">Site unreachable, please try again later</div>
<button onClick="window[`ElectronAPIs`].reloadWindow()">Reload</button> <button onClick="window[`ElectronAPIs`].reloadWindow()">Reload</button>
</div> </div>
</div> </div>

View file

@ -26,9 +26,9 @@ export const showUpdateDialog = (): void => {
dialog dialog
.showMessageBox({ .showMessageBox({
type: 'info', type: 'info',
title: 'install update', title: 'Install update',
message: 'restart to update to the latest version of ente', message: 'Restart to update to the latest version of ente',
buttons: ['later', 'restart now'], buttons: ['Later', 'Restart now'],
}) })
.then((buttonIndex) => { .then((buttonIndex) => {
if (buttonIndex.response === 1) { if (buttonIndex.response === 1) {

View file

@ -24,7 +24,7 @@ export function buildContextMenu(
...(isUpdateAvailable() ...(isUpdateAvailable()
? [ ? [
{ {
label: 'update available', label: 'Update available',
click: () => showUpdateDialog(), click: () => showUpdateDialog(),
}, },
] ]
@ -39,7 +39,7 @@ export function buildContextMenu(
...(paused ...(paused
? [ ? [
{ {
label: 'resume export', label: 'Resume export',
click: () => click: () =>
mainWindow.webContents.send( mainWindow.webContents.send(
'resume-export' 'resume-export'
@ -48,12 +48,12 @@ export function buildContextMenu(
] ]
: [ : [
{ {
label: 'pause export', label: 'Pause export',
click: () => click: () =>
mainWindow.webContents.send('pause-export'), mainWindow.webContents.send('pause-export'),
}, },
{ {
label: 'stop export', label: 'Stop export',
click: () => click: () =>
mainWindow.webContents.send('stop-export'), mainWindow.webContents.send('stop-export'),
}, },
@ -63,18 +63,18 @@ export function buildContextMenu(
...(retryExport ...(retryExport
? [ ? [
{ {
label: 'export failed', label: 'Export failed',
click: null, click: null,
}, },
{ {
label: 'retry export', label: 'Retry export',
click: () => mainWindow.webContents.send('retry-export'), click: () => mainWindow.webContents.send('retry-export'),
}, },
] ]
: []), : []),
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'open ente', label: 'Open ente',
click: function () { click: function () {
mainWindow.show(); mainWindow.show();
const isMac = process.platform === 'darwin'; const isMac = process.platform === 'darwin';
@ -82,7 +82,7 @@ export function buildContextMenu(
}, },
}, },
{ {
label: 'quit ente', label: 'Quit ente',
click: function () { click: function () {
setIsAppQuitting(true); setIsAppQuitting(true);
app.quit(); app.quit();
@ -100,21 +100,21 @@ export function buildMenuBar(): Menu {
...((isMac ...((isMac
? [ ? [
{ {
label: 'about', label: 'About',
role: 'about', role: 'about',
}, },
] ]
: []) as MenuItemConstructorOptions[]), : []) as MenuItemConstructorOptions[]),
{ {
label: 'faq', label: 'FAQ',
click: () => shell.openExternal('https://ente.io/faq/'), click: () => shell.openExternal('https://ente.io/faq/'),
}, },
{ {
label: 'support', label: 'Support',
click: () => shell.openExternal('mailto:support@ente.io'), click: () => shell.openExternal('mailto:support@ente.io'),
}, },
{ {
label: 'quit', label: 'Quit',
accelerator: 'CommandOrControl+Q', accelerator: 'CommandOrControl+Q',
click() { click() {
setIsAppQuitting(true); setIsAppQuitting(true);
@ -124,25 +124,25 @@ export function buildMenuBar(): Menu {
], ],
}, },
{ {
label: 'edit', label: 'Edit',
submenu: [ submenu: [
{ role: 'undo', label: 'undo' }, { role: 'undo', label: 'Undo' },
{ role: 'redo', label: 'redo' }, { role: 'redo', label: 'Redo' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'cut', label: 'cut' }, { role: 'cut', label: 'Cut' },
{ role: 'copy', label: 'copy' }, { role: 'copy', label: 'Copy' },
{ role: 'paste', label: 'paste' }, { role: 'paste', label: 'Paste' },
...((isMac ...((isMac
? [ ? [
{ {
role: 'pasteAndMatchStyle', role: 'pasteAndMatchStyle',
label: 'paste and match style', label: 'Paste and match style',
}, },
{ role: 'delete', label: 'delete' }, { role: 'delete', label: 'Delete' },
{ role: 'selectAll', label: 'select all' }, { role: 'selectAll', label: 'Select all' },
{ type: 'separator' }, { type: 'separator' },
{ {
label: 'speech', label: 'Speech',
submenu: [ submenu: [
{ {
role: 'startSpeaking', role: 'startSpeaking',
@ -157,39 +157,39 @@ export function buildMenuBar(): Menu {
] ]
: [ : [
{ type: 'separator' }, { type: 'separator' },
{ role: 'selectAll', label: 'select all' }, { role: 'selectAll', label: 'Select all' },
]) as MenuItemConstructorOptions[]), ]) as MenuItemConstructorOptions[]),
], ],
}, },
// { role: 'viewMenu' } // { role: 'viewMenu' }
{ {
label: 'view', label: 'View',
submenu: [ submenu: [
{ role: 'reload', label: 'reload' }, { role: 'reload', label: 'Reload' },
{ role: 'forceReload', label: 'force reload' }, { role: 'forceReload', label: 'Force reload' },
{ role: 'toggleDevTools', label: 'toggle devTools' }, { role: 'toggleDevTools', label: 'Toggle dev tools' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'resetZoom', label: 'reset zoom' }, { role: 'resetZoom', label: 'Reset zoom' },
{ role: 'zoomIn', label: 'zoom in' }, { role: 'zoomIn', label: 'Zoom in' },
{ role: 'zoomOut', label: 'zoom out' }, { role: 'zoomOut', label: 'Zoom out' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'togglefullscreen', label: 'toggle fullscreen' }, { role: 'togglefullscreen', label: 'Toggle fullscreen' },
], ],
}, },
// { role: 'windowMenu' } // { role: 'windowMenu' }
{ {
label: 'window', label: 'Window',
submenu: [ submenu: [
{ role: 'minimize', label: 'minimize' }, { role: 'minimize', label: 'Minimize' },
...((isMac ...((isMac
? [ ? [
{ type: 'separator' }, { type: 'separator' },
{ role: 'front', label: 'front' }, { role: 'front', label: 'Front' },
{ type: 'separator' }, { type: 'separator' },
{ role: 'window', label: 'window' }, { role: 'window', label: 'Window' },
] ]
: [ : [
{ role: 'close', label: 'close' }, { role: 'close', label: 'Close' },
]) as MenuItemConstructorOptions[]), ]) as MenuItemConstructorOptions[]),
], ],
}, },