aboutsummaryrefslogtreecommitdiffstats
path: root/src/actions/app.ts
diff options
context:
space:
mode:
authorLibravatar Markus Hatvan <markus_hatvan@aon.at>2021-09-14 10:34:04 +0200
committerLibravatar GitHub <noreply@github.com>2021-09-14 10:34:04 +0200
commit979ec02c9a1019152be08705986337e470eabb57 (patch)
tree6021179ad8649112717a499780f475275af487f2 /src/actions/app.ts
parentrefactor: defensive programming to avoid javascript error for unread badges (diff)
downloadferdium-app-979ec02c9a1019152be08705986337e470eabb57.tar.gz
ferdium-app-979ec02c9a1019152be08705986337e470eabb57.tar.zst
ferdium-app-979ec02c9a1019152be08705986337e470eabb57.zip
chore: codebase improvements (#1930)
Diffstat (limited to 'src/actions/app.ts')
-rw-r--r--src/actions/app.ts29
1 files changed, 29 insertions, 0 deletions
diff --git a/src/actions/app.ts b/src/actions/app.ts
new file mode 100644
index 000000000..e6f7f22ba
--- /dev/null
+++ b/src/actions/app.ts
@@ -0,0 +1,29 @@
1import PropTypes from 'prop-types';
2
3export default {
4 setBadge: {
5 unreadDirectMessageCount: PropTypes.number.isRequired,
6 unreadIndirectMessageCount: PropTypes.number,
7 },
8 notify: {
9 title: PropTypes.string.isRequired,
10 options: PropTypes.object.isRequired,
11 serviceId: PropTypes.string,
12 },
13 launchOnStartup: {
14 enable: PropTypes.bool.isRequired,
15 },
16 openExternalUrl: {
17 url: PropTypes.string.isRequired,
18 },
19 checkForUpdates: {},
20 resetUpdateStatus: {},
21 installUpdate: {},
22 healthCheck: {},
23 muteApp: {
24 isMuted: PropTypes.bool.isRequired,
25 overrideSystemMute: PropTypes.bool,
26 },
27 toggleMuteApp: {},
28 clearAllCache: {},
29};