aboutsummaryrefslogtreecommitdiffstats
path: root/src
diff options
context:
space:
mode:
authorLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-06-05 16:41:22 +0200
committerLibravatar Dominik Guzei <dominik.guzei@gmail.com>2019-06-05 16:41:22 +0200
commitf1711733915a31c715fbb89a1d70aea8f7a75f46 (patch)
tree85f609b16f32a9ed38d4d81966ff19156a8d4096 /src
parentMerge pull request #1467 from meetfranz/fix/windows-close-window-shortcut (diff)
downloadferdium-app-f1711733915a31c715fbb89a1d70aea8f7a75f46.tar.gz
ferdium-app-f1711733915a31c715fbb89a1d70aea8f7a75f46.tar.zst
ferdium-app-f1711733915a31c715fbb89a1d70aea8f7a75f46.zip
Add check for updates menu item
Diffstat (limited to 'src')
-rw-r--r--src/dev-app-update.yml3
-rw-r--r--src/i18n/locales/defaultMessages.json69
-rw-r--r--src/i18n/locales/en-US.json3
-rw-r--r--src/i18n/messages/src/lib/Menu.json69
-rw-r--r--src/lib/Menu.js10
5 files changed, 97 insertions, 57 deletions
diff --git a/src/dev-app-update.yml b/src/dev-app-update.yml
new file mode 100644
index 000000000..8ddca71e3
--- /dev/null
+++ b/src/dev-app-update.yml
@@ -0,0 +1,3 @@
1owner: meetfranz
2repo: franz
3provider: github
diff --git a/src/i18n/locales/defaultMessages.json b/src/i18n/locales/defaultMessages.json
index 9524238f0..63e74628c 100644
--- a/src/i18n/locales/defaultMessages.json
+++ b/src/i18n/locales/defaultMessages.json
@@ -4416,185 +4416,198 @@
4416 } 4416 }
4417 }, 4417 },
4418 { 4418 {
4419 "defaultMessage": "!!!Hide", 4419 "defaultMessage": "!!!Check for Updates",
4420 "end": { 4420 "end": {
4421 "column": 3, 4421 "column": 3,
4422 "line": 174 4422 "line": 174
4423 }, 4423 },
4424 "file": "src/lib/Menu.js", 4424 "file": "src/lib/Menu.js",
4425 "id": "menu.app.checkForUpdates",
4426 "start": {
4427 "column": 19,
4428 "line": 171
4429 }
4430 },
4431 {
4432 "defaultMessage": "!!!Hide",
4433 "end": {
4434 "column": 3,
4435 "line": 178
4436 },
4437 "file": "src/lib/Menu.js",
4425 "id": "menu.app.hide", 4438 "id": "menu.app.hide",
4426 "start": { 4439 "start": {
4427 "column": 8, 4440 "column": 8,
4428 "line": 171 4441 "line": 175
4429 } 4442 }
4430 }, 4443 },
4431 { 4444 {
4432 "defaultMessage": "!!!Hide Others", 4445 "defaultMessage": "!!!Hide Others",
4433 "end": { 4446 "end": {
4434 "column": 3, 4447 "column": 3,
4435 "line": 178 4448 "line": 182
4436 }, 4449 },
4437 "file": "src/lib/Menu.js", 4450 "file": "src/lib/Menu.js",
4438 "id": "menu.app.hideOthers", 4451 "id": "menu.app.hideOthers",
4439 "start": { 4452 "start": {
4440 "column": 14, 4453 "column": 14,
4441 "line": 175 4454 "line": 179
4442 } 4455 }
4443 }, 4456 },
4444 { 4457 {
4445 "defaultMessage": "!!!Unhide", 4458 "defaultMessage": "!!!Unhide",
4446 "end": { 4459 "end": {
4447 "column": 3, 4460 "column": 3,
4448 "line": 182 4461 "line": 186
4449 }, 4462 },
4450 "file": "src/lib/Menu.js", 4463 "file": "src/lib/Menu.js",
4451 "id": "menu.app.unhide", 4464 "id": "menu.app.unhide",
4452 "start": { 4465 "start": {
4453 "column": 10, 4466 "column": 10,
4454 "line": 179 4467 "line": 183
4455 } 4468 }
4456 }, 4469 },
4457 { 4470 {
4458 "defaultMessage": "!!!Quit", 4471 "defaultMessage": "!!!Quit",
4459 "end": { 4472 "end": {
4460 "column": 3, 4473 "column": 3,
4461 "line": 186 4474 "line": 190
4462 }, 4475 },
4463 "file": "src/lib/Menu.js", 4476 "file": "src/lib/Menu.js",
4464 "id": "menu.app.quit", 4477 "id": "menu.app.quit",
4465 "start": { 4478 "start": {
4466 "column": 8, 4479 "column": 8,
4467 "line": 183 4480 "line": 187
4468 } 4481 }
4469 }, 4482 },
4470 { 4483 {
4471 "defaultMessage": "!!!Add New Service...", 4484 "defaultMessage": "!!!Add New Service...",
4472 "end": { 4485 "end": {
4473 "column": 3, 4486 "column": 3,
4474 "line": 190 4487 "line": 194
4475 }, 4488 },
4476 "file": "src/lib/Menu.js", 4489 "file": "src/lib/Menu.js",
4477 "id": "menu.services.addNewService", 4490 "id": "menu.services.addNewService",
4478 "start": { 4491 "start": {
4479 "column": 17, 4492 "column": 17,
4480 "line": 187 4493 "line": 191
4481 } 4494 }
4482 }, 4495 },
4483 { 4496 {
4484 "defaultMessage": "!!!Add New Workspace...", 4497 "defaultMessage": "!!!Add New Workspace...",
4485 "end": { 4498 "end": {
4486 "column": 3, 4499 "column": 3,
4487 "line": 194 4500 "line": 198
4488 }, 4501 },
4489 "file": "src/lib/Menu.js", 4502 "file": "src/lib/Menu.js",
4490 "id": "menu.workspaces.addNewWorkspace", 4503 "id": "menu.workspaces.addNewWorkspace",
4491 "start": { 4504 "start": {
4492 "column": 19, 4505 "column": 19,
4493 "line": 191 4506 "line": 195
4494 } 4507 }
4495 }, 4508 },
4496 { 4509 {
4497 "defaultMessage": "!!!Open workspace drawer", 4510 "defaultMessage": "!!!Open workspace drawer",
4498 "end": { 4511 "end": {
4499 "column": 3, 4512 "column": 3,
4500 "line": 198 4513 "line": 202
4501 }, 4514 },
4502 "file": "src/lib/Menu.js", 4515 "file": "src/lib/Menu.js",
4503 "id": "menu.workspaces.openWorkspaceDrawer", 4516 "id": "menu.workspaces.openWorkspaceDrawer",
4504 "start": { 4517 "start": {
4505 "column": 23, 4518 "column": 23,
4506 "line": 195 4519 "line": 199
4507 } 4520 }
4508 }, 4521 },
4509 { 4522 {
4510 "defaultMessage": "!!!Close workspace drawer", 4523 "defaultMessage": "!!!Close workspace drawer",
4511 "end": { 4524 "end": {
4512 "column": 3, 4525 "column": 3,
4513 "line": 202 4526 "line": 206
4514 }, 4527 },
4515 "file": "src/lib/Menu.js", 4528 "file": "src/lib/Menu.js",
4516 "id": "menu.workspaces.closeWorkspaceDrawer", 4529 "id": "menu.workspaces.closeWorkspaceDrawer",
4517 "start": { 4530 "start": {
4518 "column": 24, 4531 "column": 24,
4519 "line": 199 4532 "line": 203
4520 } 4533 }
4521 }, 4534 },
4522 { 4535 {
4523 "defaultMessage": "!!!Activate next service...", 4536 "defaultMessage": "!!!Activate next service...",
4524 "end": { 4537 "end": {
4525 "column": 3, 4538 "column": 3,
4526 "line": 206 4539 "line": 210
4527 }, 4540 },
4528 "file": "src/lib/Menu.js", 4541 "file": "src/lib/Menu.js",
4529 "id": "menu.services.setNextServiceActive", 4542 "id": "menu.services.setNextServiceActive",
4530 "start": { 4543 "start": {
4531 "column": 23, 4544 "column": 23,
4532 "line": 203 4545 "line": 207
4533 } 4546 }
4534 }, 4547 },
4535 { 4548 {
4536 "defaultMessage": "!!!Activate previous service...", 4549 "defaultMessage": "!!!Activate previous service...",
4537 "end": { 4550 "end": {
4538 "column": 3, 4551 "column": 3,
4539 "line": 210 4552 "line": 214
4540 }, 4553 },
4541 "file": "src/lib/Menu.js", 4554 "file": "src/lib/Menu.js",
4542 "id": "menu.services.activatePreviousService", 4555 "id": "menu.services.activatePreviousService",
4543 "start": { 4556 "start": {
4544 "column": 27, 4557 "column": 27,
4545 "line": 207 4558 "line": 211
4546 } 4559 }
4547 }, 4560 },
4548 { 4561 {
4549 "defaultMessage": "!!!Disable notifications & audio", 4562 "defaultMessage": "!!!Disable notifications & audio",
4550 "end": { 4563 "end": {
4551 "column": 3, 4564 "column": 3,
4552 "line": 214 4565 "line": 218
4553 }, 4566 },
4554 "file": "src/lib/Menu.js", 4567 "file": "src/lib/Menu.js",
4555 "id": "sidebar.muteApp", 4568 "id": "sidebar.muteApp",
4556 "start": { 4569 "start": {
4557 "column": 11, 4570 "column": 11,
4558 "line": 211 4571 "line": 215
4559 } 4572 }
4560 }, 4573 },
4561 { 4574 {
4562 "defaultMessage": "!!!Enable notifications & audio", 4575 "defaultMessage": "!!!Enable notifications & audio",
4563 "end": { 4576 "end": {
4564 "column": 3, 4577 "column": 3,
4565 "line": 218 4578 "line": 222
4566 }, 4579 },
4567 "file": "src/lib/Menu.js", 4580 "file": "src/lib/Menu.js",
4568 "id": "sidebar.unmuteApp", 4581 "id": "sidebar.unmuteApp",
4569 "start": { 4582 "start": {
4570 "column": 13, 4583 "column": 13,
4571 "line": 215 4584 "line": 219
4572 } 4585 }
4573 }, 4586 },
4574 { 4587 {
4575 "defaultMessage": "!!!Workspaces", 4588 "defaultMessage": "!!!Workspaces",
4576 "end": { 4589 "end": {
4577 "column": 3, 4590 "column": 3,
4578 "line": 222 4591 "line": 226
4579 }, 4592 },
4580 "file": "src/lib/Menu.js", 4593 "file": "src/lib/Menu.js",
4581 "id": "menu.workspaces", 4594 "id": "menu.workspaces",
4582 "start": { 4595 "start": {
4583 "column": 14, 4596 "column": 14,
4584 "line": 219 4597 "line": 223
4585 } 4598 }
4586 }, 4599 },
4587 { 4600 {
4588 "defaultMessage": "!!!Default", 4601 "defaultMessage": "!!!Default",
4589 "end": { 4602 "end": {
4590 "column": 3, 4603 "column": 3,
4591 "line": 226 4604 "line": 230
4592 }, 4605 },
4593 "file": "src/lib/Menu.js", 4606 "file": "src/lib/Menu.js",
4594 "id": "menu.workspaces.defaultWorkspace", 4607 "id": "menu.workspaces.defaultWorkspace",
4595 "start": { 4608 "start": {
4596 "column": 20, 4609 "column": 20,
4597 "line": 223 4610 "line": 227
4598 } 4611 }
4599 } 4612 }
4600 ], 4613 ],
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json
index 6c2759dcc..927ac8415 100644
--- a/src/i18n/locales/en-US.json
+++ b/src/i18n/locales/en-US.json
@@ -45,6 +45,7 @@
45 "login.tokenExpired": "Your session expired, please login again.", 45 "login.tokenExpired": "Your session expired, please login again.",
46 "menu.app.about": "About Franz", 46 "menu.app.about": "About Franz",
47 "menu.app.announcement": "What's new?", 47 "menu.app.announcement": "What's new?",
48 "menu.app.checkForUpdates": "Check for Updates",
48 "menu.app.hide": "Hide", 49 "menu.app.hide": "Hide",
49 "menu.app.hideOthers": "Hide Others", 50 "menu.app.hideOthers": "Hide Others",
50 "menu.app.quit": "Quit", 51 "menu.app.quit": "Quit",
@@ -328,4 +329,4 @@
328 "workspaceDrawer.workspaceFeatureInfo": "<p>Franz Workspaces let you focus on what’s important right now. Set up different sets of services and easily switch between them at any time.</p><p>You decide which services you need when and where, so we can help you stay on top of your game - or easily switch off from work whenever you want.</p>", 329 "workspaceDrawer.workspaceFeatureInfo": "<p>Franz Workspaces let you focus on what’s important right now. Set up different sets of services and easily switch between them at any time.</p><p>You decide which services you need when and where, so we can help you stay on top of your game - or easily switch off from work whenever you want.</p>",
329 "workspaceDrawer.workspacesSettingsTooltip": "Edit workspaces settings", 330 "workspaceDrawer.workspacesSettingsTooltip": "Edit workspaces settings",
330 "workspaces.switchingIndicator.switchingTo": "Switching to" 331 "workspaces.switchingIndicator.switchingTo": "Switching to"
331} \ No newline at end of file 332}
diff --git a/src/i18n/messages/src/lib/Menu.json b/src/i18n/messages/src/lib/Menu.json
index 2adf5b787..50633a1de 100644
--- a/src/i18n/messages/src/lib/Menu.json
+++ b/src/i18n/messages/src/lib/Menu.json
@@ -507,15 +507,28 @@
507 } 507 }
508 }, 508 },
509 { 509 {
510 "id": "menu.app.checkForUpdates",
511 "defaultMessage": "!!!Check for Updates",
512 "file": "src/lib/Menu.js",
513 "start": {
514 "line": 171,
515 "column": 19
516 },
517 "end": {
518 "line": 174,
519 "column": 3
520 }
521 },
522 {
510 "id": "menu.app.hide", 523 "id": "menu.app.hide",
511 "defaultMessage": "!!!Hide", 524 "defaultMessage": "!!!Hide",
512 "file": "src/lib/Menu.js", 525 "file": "src/lib/Menu.js",
513 "start": { 526 "start": {
514 "line": 171, 527 "line": 175,
515 "column": 8 528 "column": 8
516 }, 529 },
517 "end": { 530 "end": {
518 "line": 174, 531 "line": 178,
519 "column": 3 532 "column": 3
520 } 533 }
521 }, 534 },
@@ -524,11 +537,11 @@
524 "defaultMessage": "!!!Hide Others", 537 "defaultMessage": "!!!Hide Others",
525 "file": "src/lib/Menu.js", 538 "file": "src/lib/Menu.js",
526 "start": { 539 "start": {
527 "line": 175, 540 "line": 179,
528 "column": 14 541 "column": 14
529 }, 542 },
530 "end": { 543 "end": {
531 "line": 178, 544 "line": 182,
532 "column": 3 545 "column": 3
533 } 546 }
534 }, 547 },
@@ -537,11 +550,11 @@
537 "defaultMessage": "!!!Unhide", 550 "defaultMessage": "!!!Unhide",
538 "file": "src/lib/Menu.js", 551 "file": "src/lib/Menu.js",
539 "start": { 552 "start": {
540 "line": 179, 553 "line": 183,
541 "column": 10 554 "column": 10
542 }, 555 },
543 "end": { 556 "end": {
544 "line": 182, 557 "line": 186,
545 "column": 3 558 "column": 3
546 } 559 }
547 }, 560 },
@@ -550,11 +563,11 @@
550 "defaultMessage": "!!!Quit", 563 "defaultMessage": "!!!Quit",
551 "file": "src/lib/Menu.js", 564 "file": "src/lib/Menu.js",
552 "start": { 565 "start": {
553 "line": 183, 566 "line": 187,
554 "column": 8 567 "column": 8
555 }, 568 },
556 "end": { 569 "end": {
557 "line": 186, 570 "line": 190,
558 "column": 3 571 "column": 3
559 } 572 }
560 }, 573 },
@@ -563,11 +576,11 @@
563 "defaultMessage": "!!!Add New Service...", 576 "defaultMessage": "!!!Add New Service...",
564 "file": "src/lib/Menu.js", 577 "file": "src/lib/Menu.js",
565 "start": { 578 "start": {
566 "line": 187, 579 "line": 191,
567 "column": 17 580 "column": 17
568 }, 581 },
569 "end": { 582 "end": {
570 "line": 190, 583 "line": 194,
571 "column": 3 584 "column": 3
572 } 585 }
573 }, 586 },
@@ -576,11 +589,11 @@
576 "defaultMessage": "!!!Add New Workspace...", 589 "defaultMessage": "!!!Add New Workspace...",
577 "file": "src/lib/Menu.js", 590 "file": "src/lib/Menu.js",
578 "start": { 591 "start": {
579 "line": 191, 592 "line": 195,
580 "column": 19 593 "column": 19
581 }, 594 },
582 "end": { 595 "end": {
583 "line": 194, 596 "line": 198,
584 "column": 3 597 "column": 3
585 } 598 }
586 }, 599 },
@@ -589,11 +602,11 @@
589 "defaultMessage": "!!!Open workspace drawer", 602 "defaultMessage": "!!!Open workspace drawer",
590 "file": "src/lib/Menu.js", 603 "file": "src/lib/Menu.js",
591 "start": { 604 "start": {
592 "line": 195, 605 "line": 199,
593 "column": 23 606 "column": 23
594 }, 607 },
595 "end": { 608 "end": {
596 "line": 198, 609 "line": 202,
597 "column": 3 610 "column": 3
598 } 611 }
599 }, 612 },
@@ -602,11 +615,11 @@
602 "defaultMessage": "!!!Close workspace drawer", 615 "defaultMessage": "!!!Close workspace drawer",
603 "file": "src/lib/Menu.js", 616 "file": "src/lib/Menu.js",
604 "start": { 617 "start": {
605 "line": 199, 618 "line": 203,
606 "column": 24 619 "column": 24
607 }, 620 },
608 "end": { 621 "end": {
609 "line": 202, 622 "line": 206,
610 "column": 3 623 "column": 3
611 } 624 }
612 }, 625 },
@@ -615,11 +628,11 @@
615 "defaultMessage": "!!!Activate next service...", 628 "defaultMessage": "!!!Activate next service...",
616 "file": "src/lib/Menu.js", 629 "file": "src/lib/Menu.js",
617 "start": { 630 "start": {
618 "line": 203, 631 "line": 207,
619 "column": 23 632 "column": 23
620 }, 633 },
621 "end": { 634 "end": {
622 "line": 206, 635 "line": 210,
623 "column": 3 636 "column": 3
624 } 637 }
625 }, 638 },
@@ -628,11 +641,11 @@
628 "defaultMessage": "!!!Activate previous service...", 641 "defaultMessage": "!!!Activate previous service...",
629 "file": "src/lib/Menu.js", 642 "file": "src/lib/Menu.js",
630 "start": { 643 "start": {
631 "line": 207, 644 "line": 211,
632 "column": 27 645 "column": 27
633 }, 646 },
634 "end": { 647 "end": {
635 "line": 210, 648 "line": 214,
636 "column": 3 649 "column": 3
637 } 650 }
638 }, 651 },
@@ -641,11 +654,11 @@
641 "defaultMessage": "!!!Disable notifications & audio", 654 "defaultMessage": "!!!Disable notifications & audio",
642 "file": "src/lib/Menu.js", 655 "file": "src/lib/Menu.js",
643 "start": { 656 "start": {
644 "line": 211, 657 "line": 215,
645 "column": 11 658 "column": 11
646 }, 659 },
647 "end": { 660 "end": {
648 "line": 214, 661 "line": 218,
649 "column": 3 662 "column": 3
650 } 663 }
651 }, 664 },
@@ -654,11 +667,11 @@
654 "defaultMessage": "!!!Enable notifications & audio", 667 "defaultMessage": "!!!Enable notifications & audio",
655 "file": "src/lib/Menu.js", 668 "file": "src/lib/Menu.js",
656 "start": { 669 "start": {
657 "line": 215, 670 "line": 219,
658 "column": 13 671 "column": 13
659 }, 672 },
660 "end": { 673 "end": {
661 "line": 218, 674 "line": 222,
662 "column": 3 675 "column": 3
663 } 676 }
664 }, 677 },
@@ -667,11 +680,11 @@
667 "defaultMessage": "!!!Workspaces", 680 "defaultMessage": "!!!Workspaces",
668 "file": "src/lib/Menu.js", 681 "file": "src/lib/Menu.js",
669 "start": { 682 "start": {
670 "line": 219, 683 "line": 223,
671 "column": 14 684 "column": 14
672 }, 685 },
673 "end": { 686 "end": {
674 "line": 222, 687 "line": 226,
675 "column": 3 688 "column": 3
676 } 689 }
677 }, 690 },
@@ -680,11 +693,11 @@
680 "defaultMessage": "!!!Default", 693 "defaultMessage": "!!!Default",
681 "file": "src/lib/Menu.js", 694 "file": "src/lib/Menu.js",
682 "start": { 695 "start": {
683 "line": 223, 696 "line": 227,
684 "column": 20 697 "column": 20
685 }, 698 },
686 "end": { 699 "end": {
687 "line": 226, 700 "line": 230,
688 "column": 3 701 "column": 3
689 } 702 }
690 } 703 }
diff --git a/src/lib/Menu.js b/src/lib/Menu.js
index 061c83160..65eb83252 100644
--- a/src/lib/Menu.js
+++ b/src/lib/Menu.js
@@ -168,6 +168,10 @@ const menuItems = defineMessages({
168 id: 'menu.app.settings', 168 id: 'menu.app.settings',
169 defaultMessage: '!!!Settings', 169 defaultMessage: '!!!Settings',
170 }, 170 },
171 checkForUpdates: {
172 id: 'menu.app.checkForUpdates',
173 defaultMessage: '!!!Check for Updates',
174 },
171 hide: { 175 hide: {
172 id: 'menu.app.hide', 176 id: 'menu.app.hide',
173 defaultMessage: '!!!Hide', 177 defaultMessage: '!!!Hide',
@@ -643,6 +647,12 @@ export default class FranzMenu {
643 enabled: this.stores.user.isLoggedIn, 647 enabled: this.stores.user.isLoggedIn,
644 }, 648 },
645 { 649 {
650 label: intl.formatMessage(menuItems.checkForUpdates),
651 click: () => {
652 this.actions.app.checkForUpdates();
653 },
654 },
655 {
646 type: 'separator', 656 type: 'separator',
647 }, 657 },
648 { 658 {