Skip to content

Commit 5c36796

Browse files
committed
Release 0.1.0
1 parent 5ce23ef commit 5c36796

File tree

7 files changed

+11749
-57
lines changed

7 files changed

+11749
-57
lines changed

.idea/workspace.xml

Lines changed: 270 additions & 25 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

README.md

Lines changed: 15 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -12,21 +12,29 @@ Vue error tracker keeps track of vue-resource http related errors, and provides
1212
var VueErrorTracker = require('@deveodk/vue-error-tracker');
1313
Vue.use(VueErrorTracker, {
1414
//options are optional.
15+
AlertHeader: 'Whoops, something went wrong!',
16+
ErrorCode: 'Error code:',
1517
OfflineMessage: 'You are offline',
1618
MessageTimeout: 5000,
17-
Timeout: 'We are experiencing high loads, and therfore we failed to load the resource',
18-
ServerError: 'Something went wrong, please contact the system admin if the problem persist.',
19+
Timeout: 'We are experiencing high loads, and therefore we failed to load the resource.',
20+
ServerError: 'Something went wrong, please contact the system admin if the problem persists.',
1921
BadGateway: 'You have found a bug, please contact the system admin.',
20-
BadRequest: 'There have been a error, please try to reload the site and try again.',
21-
NotFound: 'You have found a bug, please contact the system admin.',
22+
BadRequest: 'There have been a error. Please reload the site and try again.',
23+
NotFound: 'The page was not found. Please contact the system admin.',
2224
});
2325
~~~
2426

2527

2628
####Available options
2729

30+
### AlertHeader: `Whoops, something went wrong!`
31+
* Set the title of the alert.
32+
33+
### ErrorCode: `Error code:`
34+
* Set the equivalent word for errorcode for translations.
35+
2836
### OfflineMessage: `You are offline`
29-
* Set the message when the browser is offline and the user tries to make and request
37+
* Set the message when the browser is offline and the user tries to make and request.
3038

3139
### MessageTimeout: `5000`
3240
* Set the time between fatal error alerts, ideal if you have many http request which fails.
@@ -35,10 +43,10 @@ Vue error tracker keeps track of vue-resource http related errors, and provides
3543
* Set the message when a 504 error appears. due to high load.
3644

3745
### ServerError: `Something went wrong, please contact the system admin if the problem persist.`
38-
* Set the message for when a 500 error appears
46+
* Set the message for when a 500 error appears.
3947

4048
### BadGateway: `You have found a bug, please contact the system admin.`
41-
* Set the message for when a 502 error appears
49+
* Set the message for when a 502 error appears.
4250

4351
### NotFound: `You have found a bug, please contact the system admin.`
4452
* Set the message for when a 404 error appear

0 commit comments

Comments
 (0)