diff options
author | vantezzen <hello@vantezzen.io> | 2020-01-31 21:19:04 +0100 |
---|---|---|
committer | vantezzen <hello@vantezzen.io> | 2020-01-31 21:19:04 +0100 |
commit | b1325c57f380a2411ac669e33ce683c034ad99b5 (patch) | |
tree | d6c6293b1d0b1f6b4bd26dd4231f10c13ae6f2e5 /src | |
parent | Merge branch 'develop' into publish-debug (diff) | |
download | ferdium-app-b1325c57f380a2411ac669e33ce683c034ad99b5.tar.gz ferdium-app-b1325c57f380a2411ac669e33ce683c034ad99b5.tar.zst ferdium-app-b1325c57f380a2411ac669e33ce683c034ad99b5.zip |
Improve debugger feature
Diffstat (limited to 'src')
-rw-r--r-- | src/features/publishDebugInfo/Component.js | 85 | ||||
-rw-r--r-- | src/i18n/locales/defaultMessages.json | 262 | ||||
-rw-r--r-- | src/i18n/locales/en-US.json | 8 | ||||
-rw-r--r-- | src/i18n/messages/src/features/debugger/Component.json | 15 |
4 files changed, 260 insertions, 110 deletions
diff --git a/src/features/publishDebugInfo/Component.js b/src/features/publishDebugInfo/Component.js index 9e59fa205..fbaa88a43 100644 --- a/src/features/publishDebugInfo/Component.js +++ b/src/features/publishDebugInfo/Component.js | |||
@@ -41,12 +41,15 @@ const messages = defineMessages({ | |||
41 | }); | 41 | }); |
42 | 42 | ||
43 | const styles = theme => ({ | 43 | const styles = theme => ({ |
44 | container: { | ||
45 | minWidth: '70vw', | ||
46 | }, | ||
44 | info: { | 47 | info: { |
45 | paddingTop: 20, | 48 | paddingTop: 20, |
46 | paddingBottom: 20, | 49 | paddingBottom: 20, |
47 | }, | 50 | }, |
48 | link: { | 51 | link: { |
49 | color: theme.styleTypes.primary.accent + ' !important', | 52 | color: `${theme.styleTypes.primary.accent} !important`, |
50 | padding: 10, | 53 | padding: 10, |
51 | cursor: 'pointer', | 54 | cursor: 'pointer', |
52 | }, | 55 | }, |
@@ -57,10 +60,18 @@ const styles = theme => ({ | |||
57 | }, | 60 | }, |
58 | url: { | 61 | url: { |
59 | marginTop: 20, | 62 | marginTop: 20, |
63 | width: '100%', | ||
60 | 64 | ||
61 | '& > div': { | 65 | '& div': { |
62 | fontFamily: 'SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace', | 66 | fontFamily: 'SFMono-Regular,Consolas,Liberation Mono,Menlo,Courier,monospace', |
63 | }, | 67 | }, |
68 | |||
69 | '& input': { | ||
70 | width: '100%', | ||
71 | padding: 15, | ||
72 | borderRadius: 6, | ||
73 | border: `solid 1px ${theme.styleTypes.primary.accent}`, | ||
74 | }, | ||
64 | }, | 75 | }, |
65 | }); | 76 | }); |
66 | 77 | ||
@@ -86,22 +97,22 @@ export default @injectSheet(styles) @inject('stores') @observer class PublishDeb | |||
86 | async publishDebugInfo() { | 97 | async publishDebugInfo() { |
87 | this.setState({ | 98 | this.setState({ |
88 | isSendingLog: true, | 99 | isSendingLog: true, |
89 | }) | 100 | }); |
90 | 101 | ||
91 | const debugInfo = JSON.stringify(this.props.stores.app.debugInfo); | 102 | const debugInfo = JSON.stringify(this.props.stores.app.debugInfo); |
92 | 103 | ||
93 | const request = await sendAuthRequest(`${DEBUG_API}/create`, { | 104 | const request = await sendAuthRequest(`${DEBUG_API}/create`, { |
94 | method: 'POST', | 105 | method: 'POST', |
95 | body: JSON.stringify({ | 106 | body: JSON.stringify({ |
96 | log: debugInfo | 107 | log: debugInfo, |
97 | }), | 108 | }), |
98 | }, false); | 109 | }, false); |
99 | const response = await request.json(); | 110 | const response = await request.json(); |
100 | console.log(response); | 111 | |
101 | if (response.id) { | 112 | if (response.id) { |
102 | this.setState({ | 113 | this.setState({ |
103 | log: response.id, | 114 | log: response.id, |
104 | }) | 115 | }); |
105 | } else { | 116 | } else { |
106 | // TODO: Show error message | 117 | // TODO: Show error message |
107 | this.close(); | 118 | this.close(); |
@@ -116,7 +127,7 @@ export default @injectSheet(styles) @inject('stores') @observer class PublishDeb | |||
116 | } = this.props; | 127 | } = this.props; |
117 | 128 | ||
118 | const { | 129 | const { |
119 | log | 130 | log, |
120 | } = this.state; | 131 | } = this.state; |
121 | 132 | ||
122 | const { intl } = this.context; | 133 | const { intl } = this.context; |
@@ -127,43 +138,45 @@ export default @injectSheet(styles) @inject('stores') @observer class PublishDeb | |||
127 | shouldCloseOnOverlayClick | 138 | shouldCloseOnOverlayClick |
128 | close={this.close.bind(this)} | 139 | close={this.close.bind(this)} |
129 | > | 140 | > |
130 | <H1> | 141 | <div className={classes.container}> |
131 | {intl.formatMessage(messages.title)} | 142 | <H1> |
132 | </H1> | 143 | {intl.formatMessage(messages.title)} |
133 | { log ? ( | 144 | </H1> |
134 | <> | 145 | { log ? ( |
135 | <p className={classes.info}>{intl.formatMessage(messages.published)}</p> | 146 | <> |
147 | <p className={classes.info}>{intl.formatMessage(messages.published)}</p> | ||
136 | <Input | 148 | <Input |
137 | className={classes.url} | 149 | className={classes.url} |
138 | showLabel={false} | 150 | showLabel={false} |
139 | field={{ | 151 | field={{ |
140 | type: 'url', | 152 | type: 'url', |
141 | value: DEBUG_API + '/' + log, | 153 | value: `${DEBUG_API}/${log}`, |
142 | disabled: true, | 154 | disabled: true, |
143 | }} | 155 | }} |
144 | readonly | 156 | readonly |
145 | /> | 157 | /> |
146 | </> | 158 | </> |
147 | ) : ( | 159 | ) : ( |
148 | <> | 160 | <> |
149 | <p className={classes.info}>{intl.formatMessage(messages.info)}</p> | 161 | <p className={classes.info}>{intl.formatMessage(messages.info)}</p> |
150 | 162 | ||
151 | <a href={ DEBUG_API + '/privacy.html' } target="_blank" className={classes.link}> | 163 | <a href={`${DEBUG_API}/privacy.html`} target="_blank" className={classes.link}> |
152 | {intl.formatMessage(messages.privacy)} | 164 | {intl.formatMessage(messages.privacy)} |
153 | </a> | 165 | </a> |
154 | <a href={ DEBUG_API + '/terms.html' } target="_blank" className={classes.link}> | 166 | <a href={`${DEBUG_API}/terms.html`} target="_blank" className={classes.link}> |
155 | {intl.formatMessage(messages.terms)} | 167 | {intl.formatMessage(messages.terms)} |
156 | </a> | 168 | </a> |
157 | 169 | ||
158 | <Button | 170 | <Button |
159 | type="button" | 171 | type="button" |
160 | label={intl.formatMessage(messages.publish)} | 172 | label={intl.formatMessage(messages.publish)} |
161 | className={classes.button} | 173 | className={classes.button} |
162 | onClick={this.publishDebugInfo.bind(this)} | 174 | onClick={this.publishDebugInfo.bind(this)} |
163 | disabled={this.state.isSendingLog} | 175 | disabled={this.state.isSendingLog} |
164 | /> | 176 | /> |
165 | </> | 177 | </> |
166 | ) } | 178 | ) } |
179 | </div> | ||
167 | </Modal> | 180 | </Modal> |
168 | ); | 181 | ); |
169 | } | 182 | } |
diff --git a/src/i18n/locales/defaultMessages.json b/src/i18n/locales/defaultMessages.json index 59930a054..8d5a6b9c4 100644 --- a/src/i18n/locales/defaultMessages.json +++ b/src/i18n/locales/defaultMessages.json | |||
@@ -934,52 +934,52 @@ | |||
934 | "defaultMessage": "!!!Your services have been updated.", | 934 | "defaultMessage": "!!!Your services have been updated.", |
935 | "end": { | 935 | "end": { |
936 | "column": 3, | 936 | "column": 3, |
937 | "line": 33 | 937 | "line": 34 |
938 | }, | 938 | }, |
939 | "file": "src/components/layout/AppLayout.js", | 939 | "file": "src/components/layout/AppLayout.js", |
940 | "id": "infobar.servicesUpdated", | 940 | "id": "infobar.servicesUpdated", |
941 | "start": { | 941 | "start": { |
942 | "column": 19, | 942 | "column": 19, |
943 | "line": 30 | 943 | "line": 31 |
944 | } | 944 | } |
945 | }, | 945 | }, |
946 | { | 946 | { |
947 | "defaultMessage": "!!!Reload services", | 947 | "defaultMessage": "!!!Reload services", |
948 | "end": { | 948 | "end": { |
949 | "column": 3, | 949 | "column": 3, |
950 | "line": 37 | 950 | "line": 38 |
951 | }, | 951 | }, |
952 | "file": "src/components/layout/AppLayout.js", | 952 | "file": "src/components/layout/AppLayout.js", |
953 | "id": "infobar.buttonReloadServices", | 953 | "id": "infobar.buttonReloadServices", |
954 | "start": { | 954 | "start": { |
955 | "column": 24, | 955 | "column": 24, |
956 | "line": 34 | 956 | "line": 35 |
957 | } | 957 | } |
958 | }, | 958 | }, |
959 | { | 959 | { |
960 | "defaultMessage": "!!!Could not load services and user information", | 960 | "defaultMessage": "!!!Could not load services and user information", |
961 | "end": { | 961 | "end": { |
962 | "column": 3, | 962 | "column": 3, |
963 | "line": 41 | 963 | "line": 42 |
964 | }, | 964 | }, |
965 | "file": "src/components/layout/AppLayout.js", | 965 | "file": "src/components/layout/AppLayout.js", |
966 | "id": "infobar.requiredRequestsFailed", | 966 | "id": "infobar.requiredRequestsFailed", |
967 | "start": { | 967 | "start": { |
968 | "column": 26, | 968 | "column": 26, |
969 | "line": 38 | 969 | "line": 39 |
970 | } | 970 | } |
971 | }, | 971 | }, |
972 | { | 972 | { |
973 | "defaultMessage": "!!!There were errors while trying to perform an authenticated request. Please try logging out and back in if this error persists.", | 973 | "defaultMessage": "!!!There were errors while trying to perform an authenticated request. Please try logging out and back in if this error persists.", |
974 | "end": { | 974 | "end": { |
975 | "column": 3, | 975 | "column": 3, |
976 | "line": 45 | 976 | "line": 46 |
977 | }, | 977 | }, |
978 | "file": "src/components/layout/AppLayout.js", | 978 | "file": "src/components/layout/AppLayout.js", |
979 | "id": "infobar.authRequestFailed", | 979 | "id": "infobar.authRequestFailed", |
980 | "start": { | 980 | "start": { |
981 | "column": 21, | 981 | "column": 21, |
982 | "line": 42 | 982 | "line": 43 |
983 | } | 983 | } |
984 | } | 984 | } |
985 | ], | 985 | ], |
@@ -4645,6 +4645,24 @@ | |||
4645 | { | 4645 | { |
4646 | "descriptors": [ | 4646 | "descriptors": [ |
4647 | { | 4647 | { |
4648 | "defaultMessage": "!!!Publish debugging information", | ||
4649 | "end": { | ||
4650 | "column": 3, | ||
4651 | "line": 19 | ||
4652 | }, | ||
4653 | "file": "src/features/debugger/Component.js", | ||
4654 | "id": "feature.debugger.title", | ||
4655 | "start": { | ||
4656 | "column": 9, | ||
4657 | "line": 16 | ||
4658 | } | ||
4659 | } | ||
4660 | ], | ||
4661 | "path": "src/features/debugger/Component.json" | ||
4662 | }, | ||
4663 | { | ||
4664 | "descriptors": [ | ||
4665 | { | ||
4648 | "defaultMessage": "!!!Please purchase license to skip waiting", | 4666 | "defaultMessage": "!!!Please purchase license to skip waiting", |
4649 | "end": { | 4667 | "end": { |
4650 | "column": 3, | 4668 | "column": 3, |
@@ -5008,6 +5026,89 @@ | |||
5008 | { | 5026 | { |
5009 | "descriptors": [ | 5027 | "descriptors": [ |
5010 | { | 5028 | { |
5029 | "defaultMessage": "!!!Publish debug information", | ||
5030 | "end": { | ||
5031 | "column": 3, | ||
5032 | "line": 20 | ||
5033 | }, | ||
5034 | "file": "src/features/publishDebugInfo/Component.js", | ||
5035 | "id": "feature.publishDebugInfo.title", | ||
5036 | "start": { | ||
5037 | "column": 9, | ||
5038 | "line": 17 | ||
5039 | } | ||
5040 | }, | ||
5041 | { | ||
5042 | "defaultMessage": "!!!Publishing your debug information helps us find issues and errors in Ferdi. By publishing your debug information you accept Ferdi Debugger's privacy policy and terms of service", | ||
5043 | "end": { | ||
5044 | "column": 3, | ||
5045 | "line": 24 | ||
5046 | }, | ||
5047 | "file": "src/features/publishDebugInfo/Component.js", | ||
5048 | "id": "feature.publishDebugInfo.info", | ||
5049 | "start": { | ||
5050 | "column": 8, | ||
5051 | "line": 21 | ||
5052 | } | ||
5053 | }, | ||
5054 | { | ||
5055 | "defaultMessage": "!!!Privacy policy", | ||
5056 | "end": { | ||
5057 | "column": 3, | ||
5058 | "line": 28 | ||
5059 | }, | ||
5060 | "file": "src/features/publishDebugInfo/Component.js", | ||
5061 | "id": "feature.publishDebugInfo.privacy", | ||
5062 | "start": { | ||
5063 | "column": 11, | ||
5064 | "line": 25 | ||
5065 | } | ||
5066 | }, | ||
5067 | { | ||
5068 | "defaultMessage": "!!!Terms of service", | ||
5069 | "end": { | ||
5070 | "column": 3, | ||
5071 | "line": 32 | ||
5072 | }, | ||
5073 | "file": "src/features/publishDebugInfo/Component.js", | ||
5074 | "id": "feature.publishDebugInfo.terms", | ||
5075 | "start": { | ||
5076 | "column": 9, | ||
5077 | "line": 29 | ||
5078 | } | ||
5079 | }, | ||
5080 | { | ||
5081 | "defaultMessage": "!!!Accept and publish", | ||
5082 | "end": { | ||
5083 | "column": 3, | ||
5084 | "line": 36 | ||
5085 | }, | ||
5086 | "file": "src/features/publishDebugInfo/Component.js", | ||
5087 | "id": "feature.publishDebugInfo.publish", | ||
5088 | "start": { | ||
5089 | "column": 11, | ||
5090 | "line": 33 | ||
5091 | } | ||
5092 | }, | ||
5093 | { | ||
5094 | "defaultMessage": "!!!Your debug log was published and is now availible at", | ||
5095 | "end": { | ||
5096 | "column": 3, | ||
5097 | "line": 40 | ||
5098 | }, | ||
5099 | "file": "src/features/publishDebugInfo/Component.js", | ||
5100 | "id": "feature.publishDebugInfo.published", | ||
5101 | "start": { | ||
5102 | "column": 13, | ||
5103 | "line": 37 | ||
5104 | } | ||
5105 | } | ||
5106 | ], | ||
5107 | "path": "src/features/publishDebugInfo/Component.json" | ||
5108 | }, | ||
5109 | { | ||
5110 | "descriptors": [ | ||
5111 | { | ||
5011 | "defaultMessage": "!!!QuickSwitch", | 5112 | "defaultMessage": "!!!QuickSwitch", |
5012 | "end": { | 5113 | "end": { |
5013 | "column": 3, | 5114 | "column": 3, |
@@ -6593,432 +6694,445 @@ | |||
6593 | } | 6694 | } |
6594 | }, | 6695 | }, |
6595 | { | 6696 | { |
6596 | "defaultMessage": "!!!Ferdi Debug Information", | 6697 | "defaultMessage": "!!!Publish Debug Information", |
6597 | "end": { | 6698 | "end": { |
6598 | "column": 3, | 6699 | "column": 3, |
6599 | "line": 160 | 6700 | "line": 160 |
6600 | }, | 6701 | }, |
6601 | "file": "src/lib/Menu.js", | 6702 | "file": "src/lib/Menu.js", |
6703 | "id": "menu.help.publishDebugInfo", | ||
6704 | "start": { | ||
6705 | "column": 20, | ||
6706 | "line": 157 | ||
6707 | } | ||
6708 | }, | ||
6709 | { | ||
6710 | "defaultMessage": "!!!Ferdi Debug Information", | ||
6711 | "end": { | ||
6712 | "column": 3, | ||
6713 | "line": 164 | ||
6714 | }, | ||
6715 | "file": "src/lib/Menu.js", | ||
6602 | "id": "menu.help.debugInfoCopiedHeadline", | 6716 | "id": "menu.help.debugInfoCopiedHeadline", |
6603 | "start": { | 6717 | "start": { |
6604 | "column": 27, | 6718 | "column": 27, |
6605 | "line": 157 | 6719 | "line": 161 |
6606 | } | 6720 | } |
6607 | }, | 6721 | }, |
6608 | { | 6722 | { |
6609 | "defaultMessage": "!!!Your Debug Information has been copied to your clipboard.", | 6723 | "defaultMessage": "!!!Your Debug Information has been copied to your clipboard.", |
6610 | "end": { | 6724 | "end": { |
6611 | "column": 3, | 6725 | "column": 3, |
6612 | "line": 164 | 6726 | "line": 168 |
6613 | }, | 6727 | }, |
6614 | "file": "src/lib/Menu.js", | 6728 | "file": "src/lib/Menu.js", |
6615 | "id": "menu.help.debugInfoCopiedBody", | 6729 | "id": "menu.help.debugInfoCopiedBody", |
6616 | "start": { | 6730 | "start": { |
6617 | "column": 23, | 6731 | "column": 23, |
6618 | "line": 161 | 6732 | "line": 165 |
6619 | } | 6733 | } |
6620 | }, | 6734 | }, |
6621 | { | 6735 | { |
6622 | "defaultMessage": "!!!Terms of Service", | 6736 | "defaultMessage": "!!!Terms of Service", |
6623 | "end": { | 6737 | "end": { |
6624 | "column": 3, | 6738 | "column": 3, |
6625 | "line": 168 | 6739 | "line": 172 |
6626 | }, | 6740 | }, |
6627 | "file": "src/lib/Menu.js", | 6741 | "file": "src/lib/Menu.js", |
6628 | "id": "menu.help.tos", | 6742 | "id": "menu.help.tos", |
6629 | "start": { | 6743 | "start": { |
6630 | "column": 7, | 6744 | "column": 7, |
6631 | "line": 165 | 6745 | "line": 169 |
6632 | } | 6746 | } |
6633 | }, | 6747 | }, |
6634 | { | 6748 | { |
6635 | "defaultMessage": "!!!Privacy Statement", | 6749 | "defaultMessage": "!!!Privacy Statement", |
6636 | "end": { | 6750 | "end": { |
6637 | "column": 3, | 6751 | "column": 3, |
6638 | "line": 172 | 6752 | "line": 176 |
6639 | }, | 6753 | }, |
6640 | "file": "src/lib/Menu.js", | 6754 | "file": "src/lib/Menu.js", |
6641 | "id": "menu.help.privacy", | 6755 | "id": "menu.help.privacy", |
6642 | "start": { | 6756 | "start": { |
6643 | "column": 11, | 6757 | "column": 11, |
6644 | "line": 169 | 6758 | "line": 173 |
6645 | } | 6759 | } |
6646 | }, | 6760 | }, |
6647 | { | 6761 | { |
6648 | "defaultMessage": "!!!File", | 6762 | "defaultMessage": "!!!File", |
6649 | "end": { | 6763 | "end": { |
6650 | "column": 3, | 6764 | "column": 3, |
6651 | "line": 176 | 6765 | "line": 180 |
6652 | }, | 6766 | }, |
6653 | "file": "src/lib/Menu.js", | 6767 | "file": "src/lib/Menu.js", |
6654 | "id": "menu.file", | 6768 | "id": "menu.file", |
6655 | "start": { | 6769 | "start": { |
6656 | "column": 8, | 6770 | "column": 8, |
6657 | "line": 173 | 6771 | "line": 177 |
6658 | } | 6772 | } |
6659 | }, | 6773 | }, |
6660 | { | 6774 | { |
6661 | "defaultMessage": "!!!View", | 6775 | "defaultMessage": "!!!View", |
6662 | "end": { | 6776 | "end": { |
6663 | "column": 3, | 6777 | "column": 3, |
6664 | "line": 180 | 6778 | "line": 184 |
6665 | }, | 6779 | }, |
6666 | "file": "src/lib/Menu.js", | 6780 | "file": "src/lib/Menu.js", |
6667 | "id": "menu.view", | 6781 | "id": "menu.view", |
6668 | "start": { | 6782 | "start": { |
6669 | "column": 8, | 6783 | "column": 8, |
6670 | "line": 177 | 6784 | "line": 181 |
6671 | } | 6785 | } |
6672 | }, | 6786 | }, |
6673 | { | 6787 | { |
6674 | "defaultMessage": "!!!Services", | 6788 | "defaultMessage": "!!!Services", |
6675 | "end": { | 6789 | "end": { |
6676 | "column": 3, | 6790 | "column": 3, |
6677 | "line": 184 | 6791 | "line": 188 |
6678 | }, | 6792 | }, |
6679 | "file": "src/lib/Menu.js", | 6793 | "file": "src/lib/Menu.js", |
6680 | "id": "menu.services", | 6794 | "id": "menu.services", |
6681 | "start": { | 6795 | "start": { |
6682 | "column": 12, | 6796 | "column": 12, |
6683 | "line": 181 | 6797 | "line": 185 |
6684 | } | 6798 | } |
6685 | }, | 6799 | }, |
6686 | { | 6800 | { |
6687 | "defaultMessage": "!!!Window", | 6801 | "defaultMessage": "!!!Window", |
6688 | "end": { | 6802 | "end": { |
6689 | "column": 3, | 6803 | "column": 3, |
6690 | "line": 188 | 6804 | "line": 192 |
6691 | }, | 6805 | }, |
6692 | "file": "src/lib/Menu.js", | 6806 | "file": "src/lib/Menu.js", |
6693 | "id": "menu.window", | 6807 | "id": "menu.window", |
6694 | "start": { | 6808 | "start": { |
6695 | "column": 10, | 6809 | "column": 10, |
6696 | "line": 185 | 6810 | "line": 189 |
6697 | } | 6811 | } |
6698 | }, | 6812 | }, |
6699 | { | 6813 | { |
6700 | "defaultMessage": "!!!Help", | 6814 | "defaultMessage": "!!!Help", |
6701 | "end": { | 6815 | "end": { |
6702 | "column": 3, | 6816 | "column": 3, |
6703 | "line": 192 | 6817 | "line": 196 |
6704 | }, | 6818 | }, |
6705 | "file": "src/lib/Menu.js", | 6819 | "file": "src/lib/Menu.js", |
6706 | "id": "menu.help", | 6820 | "id": "menu.help", |
6707 | "start": { | 6821 | "start": { |
6708 | "column": 8, | 6822 | "column": 8, |
6709 | "line": 189 | 6823 | "line": 193 |
6710 | } | 6824 | } |
6711 | }, | 6825 | }, |
6712 | { | 6826 | { |
6713 | "defaultMessage": "!!!About Ferdi", | 6827 | "defaultMessage": "!!!About Ferdi", |
6714 | "end": { | 6828 | "end": { |
6715 | "column": 3, | 6829 | "column": 3, |
6716 | "line": 196 | 6830 | "line": 200 |
6717 | }, | 6831 | }, |
6718 | "file": "src/lib/Menu.js", | 6832 | "file": "src/lib/Menu.js", |
6719 | "id": "menu.app.about", | 6833 | "id": "menu.app.about", |
6720 | "start": { | 6834 | "start": { |
6721 | "column": 9, | 6835 | "column": 9, |
6722 | "line": 193 | 6836 | "line": 197 |
6723 | } | 6837 | } |
6724 | }, | 6838 | }, |
6725 | { | 6839 | { |
6726 | "defaultMessage": "!!!What's new?", | 6840 | "defaultMessage": "!!!What's new?", |
6727 | "end": { | 6841 | "end": { |
6728 | "column": 3, | 6842 | "column": 3, |
6729 | "line": 200 | 6843 | "line": 204 |
6730 | }, | 6844 | }, |
6731 | "file": "src/lib/Menu.js", | 6845 | "file": "src/lib/Menu.js", |
6732 | "id": "menu.app.announcement", | 6846 | "id": "menu.app.announcement", |
6733 | "start": { | 6847 | "start": { |
6734 | "column": 16, | 6848 | "column": 16, |
6735 | "line": 197 | 6849 | "line": 201 |
6736 | } | 6850 | } |
6737 | }, | 6851 | }, |
6738 | { | 6852 | { |
6739 | "defaultMessage": "!!!Settings", | 6853 | "defaultMessage": "!!!Settings", |
6740 | "end": { | 6854 | "end": { |
6741 | "column": 3, | 6855 | "column": 3, |
6742 | "line": 204 | 6856 | "line": 208 |
6743 | }, | 6857 | }, |
6744 | "file": "src/lib/Menu.js", | 6858 | "file": "src/lib/Menu.js", |
6745 | "id": "menu.app.settings", | 6859 | "id": "menu.app.settings", |
6746 | "start": { | 6860 | "start": { |
6747 | "column": 12, | 6861 | "column": 12, |
6748 | "line": 201 | 6862 | "line": 205 |
6749 | } | 6863 | } |
6750 | }, | 6864 | }, |
6751 | { | 6865 | { |
6752 | "defaultMessage": "!!!Check for updates", | 6866 | "defaultMessage": "!!!Check for updates", |
6753 | "end": { | 6867 | "end": { |
6754 | "column": 3, | 6868 | "column": 3, |
6755 | "line": 208 | 6869 | "line": 212 |
6756 | }, | 6870 | }, |
6757 | "file": "src/lib/Menu.js", | 6871 | "file": "src/lib/Menu.js", |
6758 | "id": "menu.app.checkForUpdates", | 6872 | "id": "menu.app.checkForUpdates", |
6759 | "start": { | 6873 | "start": { |
6760 | "column": 19, | 6874 | "column": 19, |
6761 | "line": 205 | 6875 | "line": 209 |
6762 | } | 6876 | } |
6763 | }, | 6877 | }, |
6764 | { | 6878 | { |
6765 | "defaultMessage": "!!!Hide", | 6879 | "defaultMessage": "!!!Hide", |
6766 | "end": { | 6880 | "end": { |
6767 | "column": 3, | 6881 | "column": 3, |
6768 | "line": 212 | 6882 | "line": 216 |
6769 | }, | 6883 | }, |
6770 | "file": "src/lib/Menu.js", | 6884 | "file": "src/lib/Menu.js", |
6771 | "id": "menu.app.hide", | 6885 | "id": "menu.app.hide", |
6772 | "start": { | 6886 | "start": { |
6773 | "column": 8, | 6887 | "column": 8, |
6774 | "line": 209 | 6888 | "line": 213 |
6775 | } | 6889 | } |
6776 | }, | 6890 | }, |
6777 | { | 6891 | { |
6778 | "defaultMessage": "!!!Hide Others", | 6892 | "defaultMessage": "!!!Hide Others", |
6779 | "end": { | 6893 | "end": { |
6780 | "column": 3, | 6894 | "column": 3, |
6781 | "line": 216 | 6895 | "line": 220 |
6782 | }, | 6896 | }, |
6783 | "file": "src/lib/Menu.js", | 6897 | "file": "src/lib/Menu.js", |
6784 | "id": "menu.app.hideOthers", | 6898 | "id": "menu.app.hideOthers", |
6785 | "start": { | 6899 | "start": { |
6786 | "column": 14, | 6900 | "column": 14, |
6787 | "line": 213 | 6901 | "line": 217 |
6788 | } | 6902 | } |
6789 | }, | 6903 | }, |
6790 | { | 6904 | { |
6791 | "defaultMessage": "!!!Unhide", | 6905 | "defaultMessage": "!!!Unhide", |
6792 | "end": { | 6906 | "end": { |
6793 | "column": 3, | 6907 | "column": 3, |
6794 | "line": 220 | 6908 | "line": 224 |
6795 | }, | 6909 | }, |
6796 | "file": "src/lib/Menu.js", | 6910 | "file": "src/lib/Menu.js", |
6797 | "id": "menu.app.unhide", | 6911 | "id": "menu.app.unhide", |
6798 | "start": { | 6912 | "start": { |
6799 | "column": 10, | 6913 | "column": 10, |
6800 | "line": 217 | 6914 | "line": 221 |
6801 | } | 6915 | } |
6802 | }, | 6916 | }, |
6803 | { | 6917 | { |
6804 | "defaultMessage": "!!!Auto-hide menu bar", | 6918 | "defaultMessage": "!!!Auto-hide menu bar", |
6805 | "end": { | 6919 | "end": { |
6806 | "column": 3, | 6920 | "column": 3, |
6807 | "line": 224 | 6921 | "line": 228 |
6808 | }, | 6922 | }, |
6809 | "file": "src/lib/Menu.js", | 6923 | "file": "src/lib/Menu.js", |
6810 | "id": "menu.app.autohideMenuBar", | 6924 | "id": "menu.app.autohideMenuBar", |
6811 | "start": { | 6925 | "start": { |
6812 | "column": 19, | 6926 | "column": 19, |
6813 | "line": 221 | 6927 | "line": 225 |
6814 | } | 6928 | } |
6815 | }, | 6929 | }, |
6816 | { | 6930 | { |
6817 | "defaultMessage": "!!!Quit", | 6931 | "defaultMessage": "!!!Quit", |
6818 | "end": { | 6932 | "end": { |
6819 | "column": 3, | 6933 | "column": 3, |
6820 | "line": 228 | 6934 | "line": 232 |
6821 | }, | 6935 | }, |
6822 | "file": "src/lib/Menu.js", | 6936 | "file": "src/lib/Menu.js", |
6823 | "id": "menu.app.quit", | 6937 | "id": "menu.app.quit", |
6824 | "start": { | 6938 | "start": { |
6825 | "column": 8, | 6939 | "column": 8, |
6826 | "line": 225 | 6940 | "line": 229 |
6827 | } | 6941 | } |
6828 | }, | 6942 | }, |
6829 | { | 6943 | { |
6830 | "defaultMessage": "!!!Add New Service...", | 6944 | "defaultMessage": "!!!Add New Service...", |
6831 | "end": { | 6945 | "end": { |
6832 | "column": 3, | 6946 | "column": 3, |
6833 | "line": 232 | 6947 | "line": 236 |
6834 | }, | 6948 | }, |
6835 | "file": "src/lib/Menu.js", | 6949 | "file": "src/lib/Menu.js", |
6836 | "id": "menu.services.addNewService", | 6950 | "id": "menu.services.addNewService", |
6837 | "start": { | 6951 | "start": { |
6838 | "column": 17, | 6952 | "column": 17, |
6839 | "line": 229 | 6953 | "line": 233 |
6840 | } | 6954 | } |
6841 | }, | 6955 | }, |
6842 | { | 6956 | { |
6843 | "defaultMessage": "!!!Add New Workspace...", | 6957 | "defaultMessage": "!!!Add New Workspace...", |
6844 | "end": { | 6958 | "end": { |
6845 | "column": 3, | 6959 | "column": 3, |
6846 | "line": 236 | 6960 | "line": 240 |
6847 | }, | 6961 | }, |
6848 | "file": "src/lib/Menu.js", | 6962 | "file": "src/lib/Menu.js", |
6849 | "id": "menu.workspaces.addNewWorkspace", | 6963 | "id": "menu.workspaces.addNewWorkspace", |
6850 | "start": { | 6964 | "start": { |
6851 | "column": 19, | 6965 | "column": 19, |
6852 | "line": 233 | 6966 | "line": 237 |
6853 | } | 6967 | } |
6854 | }, | 6968 | }, |
6855 | { | 6969 | { |
6856 | "defaultMessage": "!!!Open workspace drawer", | 6970 | "defaultMessage": "!!!Open workspace drawer", |
6857 | "end": { | 6971 | "end": { |
6858 | "column": 3, | 6972 | "column": 3, |
6859 | "line": 240 | 6973 | "line": 244 |
6860 | }, | 6974 | }, |
6861 | "file": "src/lib/Menu.js", | 6975 | "file": "src/lib/Menu.js", |
6862 | "id": "menu.workspaces.openWorkspaceDrawer", | 6976 | "id": "menu.workspaces.openWorkspaceDrawer", |
6863 | "start": { | 6977 | "start": { |
6864 | "column": 23, | 6978 | "column": 23, |
6865 | "line": 237 | 6979 | "line": 241 |
6866 | } | 6980 | } |
6867 | }, | 6981 | }, |
6868 | { | 6982 | { |
6869 | "defaultMessage": "!!!Close workspace drawer", | 6983 | "defaultMessage": "!!!Close workspace drawer", |
6870 | "end": { | 6984 | "end": { |
6871 | "column": 3, | 6985 | "column": 3, |
6872 | "line": 244 | 6986 | "line": 248 |
6873 | }, | 6987 | }, |
6874 | "file": "src/lib/Menu.js", | 6988 | "file": "src/lib/Menu.js", |
6875 | "id": "menu.workspaces.closeWorkspaceDrawer", | 6989 | "id": "menu.workspaces.closeWorkspaceDrawer", |
6876 | "start": { | 6990 | "start": { |
6877 | "column": 24, | 6991 | "column": 24, |
6878 | "line": 241 | 6992 | "line": 245 |
6879 | } | 6993 | } |
6880 | }, | 6994 | }, |
6881 | { | 6995 | { |
6882 | "defaultMessage": "!!!Activate next service...", | 6996 | "defaultMessage": "!!!Activate next service...", |
6883 | "end": { | 6997 | "end": { |
6884 | "column": 3, | 6998 | "column": 3, |
6885 | "line": 248 | 6999 | "line": 252 |
6886 | }, | 7000 | }, |
6887 | "file": "src/lib/Menu.js", | 7001 | "file": "src/lib/Menu.js", |
6888 | "id": "menu.services.setNextServiceActive", | 7002 | "id": "menu.services.setNextServiceActive", |
6889 | "start": { | 7003 | "start": { |
6890 | "column": 23, | 7004 | "column": 23, |
6891 | "line": 245 | 7005 | "line": 249 |
6892 | } | 7006 | } |
6893 | }, | 7007 | }, |
6894 | { | 7008 | { |
6895 | "defaultMessage": "!!!Activate previous service...", | 7009 | "defaultMessage": "!!!Activate previous service...", |
6896 | "end": { | 7010 | "end": { |
6897 | "column": 3, | 7011 | "column": 3, |
6898 | "line": 252 | 7012 | "line": 256 |
6899 | }, | 7013 | }, |
6900 | "file": "src/lib/Menu.js", | 7014 | "file": "src/lib/Menu.js", |
6901 | "id": "menu.services.activatePreviousService", | 7015 | "id": "menu.services.activatePreviousService", |
6902 | "start": { | 7016 | "start": { |
6903 | "column": 27, | 7017 | "column": 27, |
6904 | "line": 249 | 7018 | "line": 253 |
6905 | } | 7019 | } |
6906 | }, | 7020 | }, |
6907 | { | 7021 | { |
6908 | "defaultMessage": "!!!Disable notifications & audio", | 7022 | "defaultMessage": "!!!Disable notifications & audio", |
6909 | "end": { | 7023 | "end": { |
6910 | "column": 3, | 7024 | "column": 3, |
6911 | "line": 256 | 7025 | "line": 260 |
6912 | }, | 7026 | }, |
6913 | "file": "src/lib/Menu.js", | 7027 | "file": "src/lib/Menu.js", |
6914 | "id": "sidebar.muteApp", | 7028 | "id": "sidebar.muteApp", |
6915 | "start": { | 7029 | "start": { |
6916 | "column": 11, | 7030 | "column": 11, |
6917 | "line": 253 | 7031 | "line": 257 |
6918 | } | 7032 | } |
6919 | }, | 7033 | }, |
6920 | { | 7034 | { |
6921 | "defaultMessage": "!!!Enable notifications & audio", | 7035 | "defaultMessage": "!!!Enable notifications & audio", |
6922 | "end": { | 7036 | "end": { |
6923 | "column": 3, | 7037 | "column": 3, |
6924 | "line": 260 | 7038 | "line": 264 |
6925 | }, | 7039 | }, |
6926 | "file": "src/lib/Menu.js", | 7040 | "file": "src/lib/Menu.js", |
6927 | "id": "sidebar.unmuteApp", | 7041 | "id": "sidebar.unmuteApp", |
6928 | "start": { | 7042 | "start": { |
6929 | "column": 13, | 7043 | "column": 13, |
6930 | "line": 257 | 7044 | "line": 261 |
6931 | } | 7045 | } |
6932 | }, | 7046 | }, |
6933 | { | 7047 | { |
6934 | "defaultMessage": "!!!Workspaces", | 7048 | "defaultMessage": "!!!Workspaces", |
6935 | "end": { | 7049 | "end": { |
6936 | "column": 3, | 7050 | "column": 3, |
6937 | "line": 264 | 7051 | "line": 268 |
6938 | }, | 7052 | }, |
6939 | "file": "src/lib/Menu.js", | 7053 | "file": "src/lib/Menu.js", |
6940 | "id": "menu.workspaces", | 7054 | "id": "menu.workspaces", |
6941 | "start": { | 7055 | "start": { |
6942 | "column": 14, | 7056 | "column": 14, |
6943 | "line": 261 | 7057 | "line": 265 |
6944 | } | 7058 | } |
6945 | }, | 7059 | }, |
6946 | { | 7060 | { |
6947 | "defaultMessage": "!!!Default", | 7061 | "defaultMessage": "!!!Default", |
6948 | "end": { | 7062 | "end": { |
6949 | "column": 3, | 7063 | "column": 3, |
6950 | "line": 268 | 7064 | "line": 272 |
6951 | }, | 7065 | }, |
6952 | "file": "src/lib/Menu.js", | 7066 | "file": "src/lib/Menu.js", |
6953 | "id": "menu.workspaces.defaultWorkspace", | 7067 | "id": "menu.workspaces.defaultWorkspace", |
6954 | "start": { | 7068 | "start": { |
6955 | "column": 20, | 7069 | "column": 20, |
6956 | "line": 265 | 7070 | "line": 269 |
6957 | } | 7071 | } |
6958 | }, | 7072 | }, |
6959 | { | 7073 | { |
6960 | "defaultMessage": "!!!Todos", | 7074 | "defaultMessage": "!!!Todos", |
6961 | "end": { | 7075 | "end": { |
6962 | "column": 3, | 7076 | "column": 3, |
6963 | "line": 272 | 7077 | "line": 276 |
6964 | }, | 7078 | }, |
6965 | "file": "src/lib/Menu.js", | 7079 | "file": "src/lib/Menu.js", |
6966 | "id": "menu.todos", | 7080 | "id": "menu.todos", |
6967 | "start": { | 7081 | "start": { |
6968 | "column": 9, | 7082 | "column": 9, |
6969 | "line": 269 | 7083 | "line": 273 |
6970 | } | 7084 | } |
6971 | }, | 7085 | }, |
6972 | { | 7086 | { |
6973 | "defaultMessage": "!!!Open Todos drawer", | 7087 | "defaultMessage": "!!!Open Todos drawer", |
6974 | "end": { | 7088 | "end": { |
6975 | "column": 3, | 7089 | "column": 3, |
6976 | "line": 276 | 7090 | "line": 280 |
6977 | }, | 7091 | }, |
6978 | "file": "src/lib/Menu.js", | 7092 | "file": "src/lib/Menu.js", |
6979 | "id": "menu.Todoss.openTodosDrawer", | 7093 | "id": "menu.Todoss.openTodosDrawer", |
6980 | "start": { | 7094 | "start": { |
6981 | "column": 19, | 7095 | "column": 19, |
6982 | "line": 273 | 7096 | "line": 277 |
6983 | } | 7097 | } |
6984 | }, | 7098 | }, |
6985 | { | 7099 | { |
6986 | "defaultMessage": "!!!Close Todos drawer", | 7100 | "defaultMessage": "!!!Close Todos drawer", |
6987 | "end": { | 7101 | "end": { |
6988 | "column": 3, | 7102 | "column": 3, |
6989 | "line": 280 | 7103 | "line": 284 |
6990 | }, | 7104 | }, |
6991 | "file": "src/lib/Menu.js", | 7105 | "file": "src/lib/Menu.js", |
6992 | "id": "menu.Todoss.closeTodosDrawer", | 7106 | "id": "menu.Todoss.closeTodosDrawer", |
6993 | "start": { | 7107 | "start": { |
6994 | "column": 20, | 7108 | "column": 20, |
6995 | "line": 277 | 7109 | "line": 281 |
6996 | } | 7110 | } |
6997 | }, | 7111 | }, |
6998 | { | 7112 | { |
6999 | "defaultMessage": "!!!Enable Todos", | 7113 | "defaultMessage": "!!!Enable Todos", |
7000 | "end": { | 7114 | "end": { |
7001 | "column": 3, | 7115 | "column": 3, |
7002 | "line": 284 | 7116 | "line": 288 |
7003 | }, | 7117 | }, |
7004 | "file": "src/lib/Menu.js", | 7118 | "file": "src/lib/Menu.js", |
7005 | "id": "menu.todos.enableTodos", | 7119 | "id": "menu.todos.enableTodos", |
7006 | "start": { | 7120 | "start": { |
7007 | "column": 15, | 7121 | "column": 15, |
7008 | "line": 281 | 7122 | "line": 285 |
7009 | } | 7123 | } |
7010 | }, | 7124 | }, |
7011 | { | 7125 | { |
7012 | "defaultMessage": "!!!Home", | 7126 | "defaultMessage": "!!!Home", |
7013 | "end": { | 7127 | "end": { |
7014 | "column": 3, | 7128 | "column": 3, |
7015 | "line": 288 | 7129 | "line": 292 |
7016 | }, | 7130 | }, |
7017 | "file": "src/lib/Menu.js", | 7131 | "file": "src/lib/Menu.js", |
7018 | "id": "menu.services.goHome", | 7132 | "id": "menu.services.goHome", |
7019 | "start": { | 7133 | "start": { |
7020 | "column": 17, | 7134 | "column": 17, |
7021 | "line": 285 | 7135 | "line": 289 |
7022 | } | 7136 | } |
7023 | } | 7137 | } |
7024 | ], | 7138 | ], |
diff --git a/src/i18n/locales/en-US.json b/src/i18n/locales/en-US.json index 1a8e9f743..f523bc380 100644 --- a/src/i18n/locales/en-US.json +++ b/src/i18n/locales/en-US.json | |||
@@ -2,6 +2,7 @@ | |||
2 | "app.errorHandler.action": "Reload", | 2 | "app.errorHandler.action": "Reload", |
3 | "app.errorHandler.headline": "Something went wrong", | 3 | "app.errorHandler.headline": "Something went wrong", |
4 | "feature.announcements.changelog.headline": "Changes in Ferdi {version}", | 4 | "feature.announcements.changelog.headline": "Changes in Ferdi {version}", |
5 | "feature.debugger.title": "Publish debugging information", | ||
5 | "feature.delayApp.headline": "Please purchase a Ferdi Supporter License to skip waiting", | 6 | "feature.delayApp.headline": "Please purchase a Ferdi Supporter License to skip waiting", |
6 | "feature.delayApp.text": "Ferdi will continue in {seconds} seconds.", | 7 | "feature.delayApp.text": "Ferdi will continue in {seconds} seconds.", |
7 | "feature.delayApp.trial.action": "Yes, I want the free 14 day trial of Ferdi Professional", | 8 | "feature.delayApp.trial.action": "Yes, I want the free 14 day trial of Ferdi Professional", |
@@ -25,6 +26,12 @@ | |||
25 | "feature.planSelection.personal.text": "More services, no waiting - ideal for personal use.", | 26 | "feature.planSelection.personal.text": "More services, no waiting - ideal for personal use.", |
26 | "feature.planSelection.pricesBasedOnAnnualPayment": "All prices based on yearly payment", | 27 | "feature.planSelection.pricesBasedOnAnnualPayment": "All prices based on yearly payment", |
27 | "feature.planSelection.pro.text": "Unlimited services and professional features for you - and your team.", | 28 | "feature.planSelection.pro.text": "Unlimited services and professional features for you - and your team.", |
29 | "feature.publishDebugInfo.info": "Publishing your debug information helps us find issues and errors in Ferdi. By publishing your debug information you accept Ferdi Debugger's privacy policy and terms of service", | ||
30 | "feature.publishDebugInfo.privacy": "Privacy policy", | ||
31 | "feature.publishDebugInfo.publish": "Accept and publish", | ||
32 | "feature.publishDebugInfo.published": "Your debug log was published and is now availible at", | ||
33 | "feature.publishDebugInfo.terms": "Terms of service", | ||
34 | "feature.publishDebugInfo.title": "Publish debug information", | ||
28 | "feature.quickSwitch.info": "Select a service with TAB, ↑ and ↓. Open a service with ENTER.", | 35 | "feature.quickSwitch.info": "Select a service with TAB, ↑ and ↓. Open a service with ENTER.", |
29 | "feature.quickSwitch.search": "Search...", | 36 | "feature.quickSwitch.search": "Search...", |
30 | "feature.quickSwitch.title": "QuickSwitch", | 37 | "feature.quickSwitch.title": "QuickSwitch", |
@@ -122,6 +129,7 @@ | |||
122 | "menu.help.debugInfoCopiedHeadline": "Ferdi Debug Information", | 129 | "menu.help.debugInfoCopiedHeadline": "Ferdi Debug Information", |
123 | "menu.help.learnMore": "Learn More", | 130 | "menu.help.learnMore": "Learn More", |
124 | "menu.help.privacy": "Privacy Statement", | 131 | "menu.help.privacy": "Privacy Statement", |
132 | "menu.help.publishDebugInfo": "Publish Debug Information", | ||
125 | "menu.help.support": "Support", | 133 | "menu.help.support": "Support", |
126 | "menu.help.tos": "Terms of Service", | 134 | "menu.help.tos": "Terms of Service", |
127 | "menu.services": "Services", | 135 | "menu.services": "Services", |
diff --git a/src/i18n/messages/src/features/debugger/Component.json b/src/i18n/messages/src/features/debugger/Component.json new file mode 100644 index 000000000..86a5a05f4 --- /dev/null +++ b/src/i18n/messages/src/features/debugger/Component.json | |||
@@ -0,0 +1,15 @@ | |||
1 | [ | ||
2 | { | ||
3 | "id": "feature.debugger.title", | ||
4 | "defaultMessage": "!!!Publish debugging information", | ||
5 | "file": "src/features/debugger/Component.js", | ||
6 | "start": { | ||
7 | "line": 16, | ||
8 | "column": 9 | ||
9 | }, | ||
10 | "end": { | ||
11 | "line": 19, | ||
12 | "column": 3 | ||
13 | } | ||
14 | } | ||
15 | ] \ No newline at end of file | ||