Skip to content

Commit

Permalink
v1.0.0
Browse files Browse the repository at this point in the history
  • Loading branch information
MikeTatsky committed Jan 23, 2017
1 parent 3bcfd01 commit d97697c
Show file tree
Hide file tree
Showing 5 changed files with 125 additions and 1 deletion.
17 changes: 17 additions & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1,17 @@
# Auto detect text files and perform LF normalization
* text=auto

# Custom for Visual Studio
*.cs diff=csharp

# Standard to msysgit
*.doc diff=astextplain
*.DOC diff=astextplain
*.docx diff=astextplain
*.DOCX diff=astextplain
*.dot diff=astextplain
*.DOT diff=astextplain
*.pdf diff=astextplain
*.PDF diff=astextplain
*.rtf diff=astextplain
*.RTF diff=astextplain
11 changes: 11 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
# OS generated files #
######################
.DS_Store
.DS_Store?
._*
.Spotlight-V100
.Trashes
ehthumbs.db
Thumbs.db


69 changes: 68 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,2 +1,69 @@
# FancyTrack
JavaScript Error Tracking library

Build v1.0.0

Free Tiny FancyTrack JavaScript error tracking library from FancyGrid team.
FancyTrack is light alternative to https://trackjs.org service.

##Pros and Cons
It is free and light.
But at the moment it overrides window.onerror handler.
window.onerror is not supported by IE Edge

## Install

#### *bower*
```
bower install fancytrack
```

## Quick Start
Include a reference to the FancyTrack library

```html
<script src="/fancytrack/fancytrack.min.js"></script>
```
The `FancyTrack` object is now accessible. Happy error tracking!
```html
<script>
FancyTrack.init({
url: '/trackerror/'
});
</script>
```

## Method
```html
<script>
FancyTrack.init({
url: '/trackerror/',
method: 'POST'
});
</script>
```

## Parametres that FancyTrack sends

* url
* errorText
* errorName
* errorStack
* lineNumber
* columnNumber

## Package Directory
The package includes the following:
```
| README.md
├── client
│ ├── fancytrack.min.js
│ ├── modules
| ...
```

## Resources
Capture and report JavaScript errors with window.onerror
https://blog.sentry.io/2016/01/04/client-javascript-reporting-window-onerror.html

## Support
If you need any assistance or would like to report any bugs found in FancyTrack, please contact us at support@fancygrid.com
22 changes: 22 additions & 0 deletions bower.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,22 @@
{
"name": "fancytrack",
"description": "Repo to allow easy downloading of FancyTrack via Bower.",
"main": "client/fancytrack.min.js",
"keywords": [
"fancygrid",
"error",
"tracking",
"javascript"
],
"homepage": "https://github.com/FancyGrid/FancyTrack",
"ignore": [
"**/.*",
"node_modules",
"bower_components",
"test",
"tests"
],
"dependencies": {},
"devDependencies": {},
"private": false
}
7 changes: 7 additions & 0 deletions client/fancytrack.min.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

0 comments on commit d97697c

Please sign in to comment.