diff options
author | Markus Hatvan <markus_hatvan@aon.at> | 2021-11-18 17:37:45 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-11-18 22:07:45 +0530 |
commit | b37a6b07b39c8c7827052dc6fb97f490f1e0f514 (patch) | |
tree | 0276e7c51f5ebfa14c566def7aac39f014c2291d /src/features/publishDebugInfo/index.ts | |
parent | Update github issues template [skip ci] (diff) | |
download | ferdium-app-b37a6b07b39c8c7827052dc6fb97f490f1e0f514.tar.gz ferdium-app-b37a6b07b39c8c7827052dc6fb97f490f1e0f514.tar.zst ferdium-app-b37a6b07b39c8c7827052dc6fb97f490f1e0f514.zip |
chore: convert various files to TS (#2246)
* convert various files to TS
* removed outdated docs/example-feature folder
* turn off unicorn/no-empty-file
* update eslint config
Diffstat (limited to 'src/features/publishDebugInfo/index.ts')
-rw-r--r-- | src/features/publishDebugInfo/index.ts | 19 |
1 files changed, 19 insertions, 0 deletions
diff --git a/src/features/publishDebugInfo/index.ts b/src/features/publishDebugInfo/index.ts new file mode 100644 index 000000000..43841b530 --- /dev/null +++ b/src/features/publishDebugInfo/index.ts | |||
@@ -0,0 +1,19 @@ | |||
1 | import { state as ModalState } from './store'; | ||
2 | |||
3 | export { default as Component } from './Component'; | ||
4 | |||
5 | const state = ModalState; | ||
6 | const debug = require('debug')('Ferdi:feature:publishDebugInfo'); | ||
7 | |||
8 | export default function initialize() { | ||
9 | debug('Initialize publishDebugInfo feature'); | ||
10 | |||
11 | function showModal() { | ||
12 | state.isModalVisible = true; | ||
13 | } | ||
14 | |||
15 | window['ferdi'].features.publishDebugInfo = { | ||
16 | state, | ||
17 | showModal, | ||
18 | }; | ||
19 | } | ||