This repository has been archived by the owner on Jun 12, 2024. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 132
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
refactor(exception): remove window handler
- Loading branch information
1 parent
147a499
commit 9f1d3a2
Showing
5 changed files
with
40 additions
and
57 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,46 +1,24 @@ | ||
import bootstrap from './bootstrap' | ||
import lib from './lib' | ||
import { errorHandler } from 'lib/exception' | ||
import config, { update } from './config' | ||
import { onAnalyticsReady } from './helpers' | ||
|
||
// Directives | ||
import ga from 'directives/ga' | ||
|
||
// Features | ||
import event from 'lib/event' | ||
import exception, { setupErrorHandler } from 'lib/exception' | ||
import page from 'lib/page' | ||
import query from 'lib/query' | ||
import require from 'lib/require' | ||
import set from 'lib/set' | ||
import social from 'lib/social' | ||
import time from 'lib/time' | ||
import untracked from 'lib/untracked' | ||
import ecommerce from 'lib/ecommerce' | ||
|
||
export default function install (Vue, options = {}) { | ||
update(options) | ||
|
||
Vue.directive('ga', ga) | ||
|
||
Vue.prototype.$ga = Vue.$ga = { | ||
event, | ||
exception, | ||
page, | ||
query, | ||
require, | ||
set, | ||
social, | ||
time, | ||
untracked, | ||
ecommerce, | ||
commands: config.commands | ||
} | ||
Vue.prototype.$ga = Vue.$ga = lib | ||
|
||
setupErrorHandler(Vue) | ||
if (!Vue.config.errorHandler) { | ||
Vue.config.errorHandler = errorHandler | ||
} | ||
|
||
bootstrap() | ||
} | ||
|
||
export { | ||
onAnalyticsReady | ||
export { | ||
onAnalyticsReady | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
import event from 'lib/event' | ||
import exception from 'lib/exception' | ||
import page from 'lib/page' | ||
import query from 'lib/query' | ||
import require from 'lib/require' | ||
import set from 'lib/set' | ||
import social from 'lib/social' | ||
import time from 'lib/time' | ||
import untracked from 'lib/untracked' | ||
import ecommerce from 'lib/ecommerce' | ||
import config from '../config' | ||
|
||
export default { | ||
event, | ||
exception, | ||
page, | ||
query, | ||
require, | ||
set, | ||
social, | ||
time, | ||
untracked, | ||
ecommerce, | ||
commands: config.commands | ||
} |