update demo.

This commit is contained in:
chengpeiquan 2021-01-07 23:16:07 +08:00
parent 350fb3dfd5
commit 4c4c2704a0
1640 changed files with 73579 additions and 133888 deletions

1
.gitignore vendored Normal file
View File

@ -0,0 +1 @@
node_modules

123
README.md
View File

@ -3,7 +3,11 @@ vue-baidu-analytics 使用说明
基于Vue开发的百度统计插件可以在 `Vue-CLI脚手架项目` 或者 `引入了Vue相关CDN的普通页面` 上使用,使用本插件的项目需要引入 `Vue Router` 基于Vue开发的百度统计插件可以在 `Vue-CLI脚手架项目` 或者 `引入了Vue相关CDN的普通页面` 上使用,使用本插件的项目需要引入 `Vue Router`
注意:本插件在 `1.0.0` 版本的部分参数和api现在有所弃用请按照当前最新文档说明使用新版本或者安装以前的 `1.0.0` 旧版本使用。 > @v2.0版本更新:
> 最新版支持 Vue 3.x同时兼容 Vue 2.x 使用具体使用方法请看下方说明及demo。
> 对Vue 3.0感兴趣,但还在观望的同学,欢迎阅读我踩坑总结的:[Vue 3.0 学习教程](https://vue3.chengpeiquan.com/) 持续更新ing
## 功能 ## 功能
@ -17,11 +21,29 @@ vue-baidu-analytics 使用说明
* 支持手动提交事件分析上报 * 支持手动提交事件分析上报
* 自动识别Vue版本自动适配Vue 2.0/3.0使用插件2.0版本新增)
## 预览 ## 预览
demo已开启debug模式可开启控制台查看上报情况。 demo已开启debug模式可开启控制台查看上报情况。
点击预览:[vue-baidu-analytics demo](https://chengpeiquan.github.io/vue-baidu-analytics/demo/ "vue-baidu-analytics demo") Vue 2.0 版本:[vue-baidu-analytics demo for Vue 2.x](https://chengpeiquan.github.io/vue-baidu-analytics/demo/vue2.html "vue-baidu-analytics demo for Vue 2.x")
Vue 3.0 版本:[vue-baidu-analytics demo for Vue 3.x](https://chengpeiquan.github.io/vue-baidu-analytics/demo/vue3.html "vue-baidu-analytics demo for Vue 3.x")
## 安装
方式一通过npm安装
```
npm install vue-baidu-analytics --save-dev
```
方式二通过cdn安装
```html
<script src="https://cdn.jsdelivr.net/npm/vue-baidu-analytics/dist/vue-baidu-analytics.min.js"></script>
```
## 参数 ## 参数
@ -31,20 +53,6 @@ router|是|object|Vue Router本插件基于路由使用
siteIdList|是|object Array|百度统计的站点id列表item为站点id<br>只有一个站点需要上报就保留一个item即可 siteIdList|是|object Array|百度统计的站点id列表item为站点id<br>只有一个站点需要上报就保留一个item即可
isDebug|否|boolean|是否开启debug模式默认 `false`<br>开启后会在控制台打印上报信息,**上线前记得关闭** isDebug|否|boolean|是否开启debug模式默认 `false`<br>开启后会在控制台打印上报信息,**上线前记得关闭**
## 安装
### 通过npm安装
```
npm install vue-baidu-analytics --save-dev
```
### 通过cdn安装
```html
<script src="https://cdn.jsdelivr.net/npm/vue-baidu-analytics/dist/vue-baidu-analytics.min.js"></script>
```
## 使用 ## 使用
通过npm安装的项目需要先在 `main.js` 里引入插件通过cdn则无需该步骤 通过npm安装的项目需要先在 `main.js` 里引入插件通过cdn则无需该步骤
@ -53,10 +61,14 @@ npm install vue-baidu-analytics --save-dev
import baiduAnalytics from 'vue-baidu-analytics' import baiduAnalytics from 'vue-baidu-analytics'
``` ```
安装插件后,在 `main.js` 引入以下代码,即可开启自动上报功能,首次访问页面会部署统计代码并提交第一次访问数据上报。 安装插件后,在 `main.js` 引入以下代码注意区分Vue2.0和Vue3.0的用法区别),即可开启自动上报功能,首次访问页面会部署统计代码并提交第一次访问数据上报。
后续在路由切换过程中也会根据路由的切换提交相应的url信息到友盟统计。 后续在路由切换过程中也会根据路由的切换提交相应的url信息到友盟统计。
### 在 Vue 2.0 里使用
可参考demo[main.js - Vue 2.0 demo](https://chengpeiquan.github.io/vue-baidu-analytics/demo/js/main-for-vue2.js)
```js ```js
Vue.use(baiduAnalytics, { Vue.use(baiduAnalytics, {
router: router, router: router,
@ -69,6 +81,33 @@ Vue.use(baiduAnalytics, {
}); });
``` ```
### 在 Vue 3.0 里使用
可参考demo[main.js - Vue 3.0 demo](https://chengpeiquan.github.io/vue-baidu-analytics/demo/js/main-for-vue3.js)
```js
/**
* 初始化Vue
*/
createApp(app)
// 启动路由
.use(router)
// 启动插件
.use(baiduAnalytics, {
router: router,
siteIdList: [
'aaaaaaaaaaaaaaaaaaa',
'bbbbbbbbbbbbbbbbbbb',
'ccccccccccccccccccc'
],
isDebug: true
})
// 挂载到节点上
.mount('#app');
```
可在开发环境打开debug模式了解相关的上报情况上线前记得关闭debug 可在开发环境打开debug模式了解相关的上报情况上线前记得关闭debug
## 方法 ## 方法
@ -91,17 +130,19 @@ pageUrl|否|String|提交上报的url必须是以 `/` 开头的相对路径<b
**使用示范** **使用示范**
在template里使用 在 Vue 2.0 里使用
```html
<button @click="$pushBAIDU.pv('/test')">手动上报PV</button>
```
在method里使用
```js ```js
// this是Vue实例 this.$pushBAIDU.pv(this.pageUrl);
this.$pushBAIDU.pv('/home'); ```
在 Vue 3.0 里使用需要遵循Vue3的规范引入一个Vue自带的代理组件
```js
const { getCurrentInstance } = Vue;
const { proxy } = getCurrentInstance();
proxy.$pushBAIDU.pv(pageUrl.value);
``` ```
### 手动上报事件分析 ### 手动上报事件分析
@ -121,15 +162,27 @@ value|否|number|该事件的分值默认0
**使用示范** **使用示范**
在template里使用比如点击了一个id为123的首页banner 在 Vue 2.0 里使用
```html
<button @click="$pushBAIDU.event('首页banner', '点击', 'bannerId_123')">手动上报点击事件</button>
```
在method里使用比如点击了一个id为123的首页banner并设置该事件的价值为1
```js ```js
// this是Vue实例 this.$pushBAIDU.event(
this.$pushBAIDU.event('首页banner', '点击', 'bannerId_123', 1); this.category,
this.action,
this.label,
this.value
);
```
在 Vue 3.0 里使用需要遵循Vue3的规范引入一个Vue自带的代理组件
```js
const { getCurrentInstance } = Vue;
const { proxy } = getCurrentInstance();
proxy.$pushBAIDU.event(
category.value,
action.value,
label.value,
value.value
);
``` ```

View File

@ -8,6 +8,17 @@
.section { .section {
margin-bottom: 40px; margin-bottom: 40px;
} }
.title {
font-size: 40px;
color: #000;
}
.link {
color: #666;
text-decoration: none;
}
.link:hover {
color: #000;
}
.nav { .nav {
margin-bottom: 20px; margin-bottom: 20px;
} }
@ -31,6 +42,7 @@
align-items: center; align-items: center;
width: 60px; width: 60px;
font-size: 14px; font-size: 14px;
color: #333;
margin-right: 20px; margin-right: 20px;
} }
.input { .input {

56
demo/js/main-for-vue2.js Normal file
View File

@ -0,0 +1,56 @@
/**
* 初始化路由
* routes是来自 js/routes.js 里面的配置
*/
const router = new VueRouter({
routes,
linkActiveClass: 'cur',
linkExactActiveClass: 'cur'
});
/**
* 引入统计插件
*/
Vue.use(baiduAnalytics, {
router: router,
siteIdList: [
'aaaaaaaaaaaaaaaaaaa',
'bbbbbbbbbbbbbbbbbbb',
'ccccccccccccccccccc'
],
isDebug: true
});
/**
* 初始化Vue
*/
const app = new Vue({
el: '#app',
router,
data () {
return {
pageUrl: '',
category: '',
action: '',
label: '',
value: ''
}
},
mounted () {
},
methods: {
pv () {
this.$pushBAIDU.pv(this.pageUrl);
},
event () {
this.$pushBAIDU.event(
this.category,
this.action,
this.label,
this.value
);
}
}
});

View File

@ -2,7 +2,7 @@
* 导入需要用到的组件 * 导入需要用到的组件
*/ */
const { createRouter, createWebHashHistory } = VueRouter; const { createRouter, createWebHashHistory } = VueRouter;
const { createApp, defineComponent, getCurrentInstance, ref } = Vue; const { createApp, getCurrentInstance, ref } = Vue;
/** /**

View File

@ -1,67 +0,0 @@
// 定义路由信息
const routes = [
{
path: '/',
redirect: '/page1'
},
{
path: '/page1',
component: {
template: '<div class="view">当前是 <strong>Page1</strong> 的路由</div>'
}
},
{
path: '/page2',
component: {
template: '<div class="view">当前是 <strong>Page2</strong> 的路由</div>'
}
},
{
path: '/page3',
component: {
template: '<div class="view">当前是 <strong>Page3</strong> 的路由</div>'
}
}
];
// 初始化路由
const router = new VueRouter({
routes,
linkActiveClass: 'cur',
linkExactActiveClass: 'cur'
});
// 引入统计插件
Vue.use(baiduAnalytics, {
router: router,
siteIdList: [
'8dca8e2532df48ea7f1b15c714588691'
],
isDebug: true
});
// 初始化Vue
const app = new Vue({
el: '#app',
router,
data () {
return {
pageUrl: '',
category: '',
action: '',
label: '',
value: ''
}
},
mounted () {
},
methods: {
pv () {
// this.$pushBAIDU.pv(this.pageUrl);
console.log(baiduAnalytics.pushBAIDU);
},
event () {
this.$pushBAIDU.event(this.category, this.action, this.label, this.value);
}
}
});

66
demo/vue2.html Normal file
View File

@ -0,0 +1,66 @@
<!DOCTYPE html>
<html lang="en">
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<title>[Vue2] vue baidu analytics demo</title>
<script src="https://unpkg.com/vue@2"></script>
<script src="https://unpkg.com/vue-router@3"></script>
<link rel="stylesheet" href="css/style.css">
</head>
<body>
<div id="app">
<section class="section">
<h1 class="title">Hello Vue2 App!</h1>
<a href="./vue3.html" class="link">[ 切换到vue3 ]</a>
</section>
<section class="section">
<h2>切换路由自动上报测试</h2>
<div class="nav">
<router-link class="item" to="/page1" exact>Go to Page1</router-link>
<router-link class="item" to="/page2">Go to Page2</router-link>
<router-link class="item" to="/page3">Go to Page3</router-link>
</div>
<router-view></router-view>
</section>
<section class="section">
<h2>提交pv测试</h2>
<label class="label">
<span class="text">pageUrl</span>
<input class="input" type="text" placeholder="输入页面的url" v-model="pageUrl">
</label>
<button class="button" @click="pv">提交一个pv</button>
</section>
<section class="section">
<h2>提交event测试</h2>
<label class="label">
<span class="text">category</span>
<input class="input" type="text" placeholder="输入产生该事件的位置名称" v-model="category">
</label>
<label class="label">
<span class="text">action</span>
<input class="input" type="text" placeholder="输入产生该事件的行为描述" v-model="action">
</label>
<label class="label">
<span class="text">label</span>
<input class="input" type="text" placeholder="输入产生该事件的标签名称" v-model="label">
</label>
<label class="label">
<span class="text">value</span>
<input class="input" type="text" placeholder="输入该事件的分值" v-model="value">
</label>
<button class="button" @click="event">提交一个event</button>
</section>
</div>
<script src="../dist/vue-baidu-analytics.js"></script>
<script src="js/routes.js"></script>
<script src="js/main-for-vue2.js"></script>
</body>
</html>

View File

@ -11,7 +11,11 @@
<body> <body>
<div id="app"> <div id="app">
<h1>Hello Vue3 App!</h1>
<section class="section">
<h1 class="title">Hello Vue3 App!</h1>
<a href="./vue2.html" class="link">[ 切换到vue2 ]</a>
</section>
<section class="section"> <section class="section">
<h2>切换路由自动上报测试</h2> <h2>切换路由自动上报测试</h2>

View File

@ -6,7 +6,7 @@
(function (global, factory) { (function (global, factory) {
typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() : typeof exports === 'object' && typeof module !== 'undefined' ? module.exports = factory() :
typeof define === 'function' && define.amd ? define(factory) : typeof define === 'function' && define.amd ? define(factory) :
(global = global || self, global.baiduAnalytics = factory()); (global = typeof globalThis !== 'undefined' ? globalThis : global || self, global.baiduAnalytics = factory());
}(this, (function () { 'use strict'; }(this, (function () { 'use strict';
var BAIDU = (function () { var BAIDU = (function () {
@ -116,7 +116,7 @@
throw new Error('[vue-baidu-analytics] Missing tracking domain ID, add at least one of baidu analytics.'); throw new Error('[vue-baidu-analytics] Missing tracking domain ID, add at least one of baidu analytics.');
} }
var pushBAIDU = new PushBAIDU(siteIdList, isDebug); var pushBAIDU = new PushBAIDU(siteIdList, isDebug);
var VUE_VERSION = getVueVersion(Vue) || 0; var VUE_VERSION = getVueVersion(Vue) || 2;
if (VUE_VERSION === 2) { if (VUE_VERSION === 2) {
Vue.prototype.$pushBAIDU = pushBAIDU; Vue.prototype.$pushBAIDU = pushBAIDU;
} }

File diff suppressed because one or more lines are too long

View File

@ -3,5 +3,5 @@
* version: v2.0.0 * version: v2.0.0
* author: chengpeiquan * author: chengpeiquan
*/ */
!function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t=t||self).baiduAnalytics=i()}(this,(function(){"use strict";var t=function(){function t(t,i){void 0===t&&(t=""),void 0===i&&(i=!1),this.siteId=t,this.isDebug=i}return t.prototype.init=function(){window._hmt=window._hmt?window._hmt:[];var t=document.createElement("script");t.async=!0,t.src="https://hm.baidu.com/hm.js?"+this.siteId,document.querySelector("head").appendChild(t),this.isDebug&&console.log("[vue-baidu-analytics] siteId load done.\nsiteId: "+this.siteId)},t.prototype.setAccount=function(){window._hmt.push(["_setAccount",this.siteId])},t.prototype.trackPageview=function(t){if(t&&"string"==typeof t||(t="/"),t.includes("http")){var i=t.split("/"),e=i[0]+"//"+i[2];t=t.replace(e,"")}this.setAccount(),window._hmt.push(["_trackPageview",t]),this.isDebug&&console.log("[vue-baidu-analytics] track pv done.\nsiteId: "+this.siteId+"\npageUrl: "+t)},t.prototype.trackEvent=function(t,i,e,n){if("string"!=typeof t||"string"!=typeof i||!t||!i)throw new Error("[vue-baidu-analytics] Missing necessary category and operation information, and must be of type string.");e&&"string"==typeof e||(e=""),Number(n)||(n=1),this.setAccount(),window._hmt.push(["_trackEvent",t,i,e,n]),this.isDebug&&console.log("[vue-baidu-analytics] track event done.\nsiteId: "+this.siteId+"\ncategory: "+t+"\naction: "+i+"\nlabel: "+e+"\nvalue: "+n)},t}(),i=function(){function i(t,i){this.siteIdList=t,this.isDebug=i}return i.prototype.init=function(){var i=this;this.siteIdList.forEach((function(e){new t(e,i.isDebug).init()}))},i.prototype.pv=function(i){var e=this;this.siteIdList.forEach((function(n){new t(n,e.isDebug).trackPageview(i)}))},i.prototype.event=function(i,e,n,o){var s=this;this.siteIdList.forEach((function(a){new t(a,s.isDebug).trackEvent(i,e,n,o)}))},i}();return function(t,e){var n=e.router,o=e.siteIdList,s=e.isDebug,a=void 0!==s&&s;if("undefined"==typeof document||"undefined"==typeof window)return!1;if(!n)throw new Error("[vue-baidu-analytics] Must pass a Vue-Router instance to vue-baidu-analytics.");if(!o)throw new Error("[vue-baidu-analytics] Missing tracking domain ID, add at least one of baidu analytics.");var r=new i(o,a),u=function(t){var i=2,e=String(t.version);return"2."===e.slice(0,2)&&(i=2),"3."===e.slice(0,2)&&(i=3),i}(t)||0;2===u&&(t.prototype.$pushBAIDU=r),3===u&&(t.config.globalProperties.$pushBAIDU=r),o&&r.init(),n.afterEach((function(t){var i=window.location.pathname.split("/").length,e=window.location.pathname.split("/").slice(0,i-1).join("/"),o="hash"===n.mode?e+"/#"+t.fullPath:""+e+t.fullPath;r.pv(o)}))}})); !function(t,i){"object"==typeof exports&&"undefined"!=typeof module?module.exports=i():"function"==typeof define&&define.amd?define(i):(t="undefined"!=typeof globalThis?globalThis:t||self).baiduAnalytics=i()}(this,(function(){"use strict";var t=function(){function t(t,i){void 0===t&&(t=""),void 0===i&&(i=!1),this.siteId=t,this.isDebug=i}return t.prototype.init=function(){window._hmt=window._hmt?window._hmt:[];var t=document.createElement("script");t.async=!0,t.src="https://hm.baidu.com/hm.js?"+this.siteId,document.querySelector("head").appendChild(t),this.isDebug&&console.log("[vue-baidu-analytics] siteId load done.\nsiteId: "+this.siteId)},t.prototype.setAccount=function(){window._hmt.push(["_setAccount",this.siteId])},t.prototype.trackPageview=function(t){if(t&&"string"==typeof t||(t="/"),t.includes("http")){var i=t.split("/"),e=i[0]+"//"+i[2];t=t.replace(e,"")}this.setAccount(),window._hmt.push(["_trackPageview",t]),this.isDebug&&console.log("[vue-baidu-analytics] track pv done.\nsiteId: "+this.siteId+"\npageUrl: "+t)},t.prototype.trackEvent=function(t,i,e,n){if("string"!=typeof t||"string"!=typeof i||!t||!i)throw new Error("[vue-baidu-analytics] Missing necessary category and operation information, and must be of type string.");e&&"string"==typeof e||(e=""),Number(n)||(n=1),this.setAccount(),window._hmt.push(["_trackEvent",t,i,e,n]),this.isDebug&&console.log("[vue-baidu-analytics] track event done.\nsiteId: "+this.siteId+"\ncategory: "+t+"\naction: "+i+"\nlabel: "+e+"\nvalue: "+n)},t}(),i=function(){function i(t,i){this.siteIdList=t,this.isDebug=i}return i.prototype.init=function(){var i=this;this.siteIdList.forEach((function(e){new t(e,i.isDebug).init()}))},i.prototype.pv=function(i){var e=this;this.siteIdList.forEach((function(n){new t(n,e.isDebug).trackPageview(i)}))},i.prototype.event=function(i,e,n,o){var s=this;this.siteIdList.forEach((function(a){new t(a,s.isDebug).trackEvent(i,e,n,o)}))},i}();return function(t,e){var n=e.router,o=e.siteIdList,s=e.isDebug,a=void 0!==s&&s;if("undefined"==typeof document||"undefined"==typeof window)return!1;if(!n)throw new Error("[vue-baidu-analytics] Must pass a Vue-Router instance to vue-baidu-analytics.");if(!o)throw new Error("[vue-baidu-analytics] Missing tracking domain ID, add at least one of baidu analytics.");var r=new i(o,a),u=function(t){var i=2,e=String(t.version);return"2."===e.slice(0,2)&&(i=2),"3."===e.slice(0,2)&&(i=3),i}(t)||2;2===u&&(t.prototype.$pushBAIDU=r),3===u&&(t.config.globalProperties.$pushBAIDU=r),o&&r.init(),n.afterEach((function(t){var i=window.location.pathname.split("/").length,e=window.location.pathname.split("/").slice(0,i-1).join("/"),o="hash"===n.mode?e+"/#"+t.fullPath:""+e+t.fullPath;r.pv(o)}))}}));
//# sourceMappingURL=vue-baidu-analytics.min.js.map //# sourceMappingURL=vue-baidu-analytics.min.js.map

File diff suppressed because one or more lines are too long

15
node_modules/.bin/browserslist generated vendored
View File

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../browserslist/cli.js" "$@"
ret=$?
else
node "$basedir/../browserslist/cli.js" "$@"
ret=$?
fi
exit $ret

17
node_modules/.bin/browserslist.cmd generated vendored
View File

@ -1,17 +0,0 @@
@ECHO off
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
"%_prog%" "%dp0%\..\browserslist\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b

18
node_modules/.bin/browserslist.ps1 generated vendored
View File

@ -1,18 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
& "$basedir/node$exe" "$basedir/../browserslist/cli.js" $args
$ret=$LASTEXITCODE
} else {
& "node$exe" "$basedir/../browserslist/cli.js" $args
$ret=$LASTEXITCODE
}
exit $ret

15
node_modules/.bin/jsesc generated vendored
View File

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../jsesc/bin/jsesc" "$@"
ret=$?
else
node "$basedir/../jsesc/bin/jsesc" "$@"
ret=$?
fi
exit $ret

17
node_modules/.bin/jsesc.cmd generated vendored
View File

@ -1,17 +0,0 @@
@ECHO off
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
"%_prog%" "%dp0%\..\jsesc\bin\jsesc" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b

18
node_modules/.bin/jsesc.ps1 generated vendored
View File

@ -1,18 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
& "$basedir/node$exe" "$basedir/../jsesc/bin/jsesc" $args
$ret=$LASTEXITCODE
} else {
& "node$exe" "$basedir/../jsesc/bin/jsesc" $args
$ret=$LASTEXITCODE
}
exit $ret

15
node_modules/.bin/json5 generated vendored
View File

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../json5/lib/cli.js" "$@"
ret=$?
else
node "$basedir/../json5/lib/cli.js" "$@"
ret=$?
fi
exit $ret

17
node_modules/.bin/json5.cmd generated vendored
View File

@ -1,17 +0,0 @@
@ECHO off
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
"%_prog%" "%dp0%\..\json5\lib\cli.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b

18
node_modules/.bin/json5.ps1 generated vendored
View File

@ -1,18 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
& "$basedir/node$exe" "$basedir/../json5/lib/cli.js" $args
$ret=$LASTEXITCODE
} else {
& "node$exe" "$basedir/../json5/lib/cli.js" $args
$ret=$LASTEXITCODE
}
exit $ret

15
node_modules/.bin/parser generated vendored
View File

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
ret=$?
else
node "$basedir/../@babel/parser/bin/babel-parser.js" "$@"
ret=$?
fi
exit $ret

17
node_modules/.bin/parser.cmd generated vendored
View File

@ -1,17 +0,0 @@
@ECHO off
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
"%_prog%" "%dp0%\..\@babel\parser\bin\babel-parser.js" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b

18
node_modules/.bin/parser.ps1 generated vendored
View File

@ -1,18 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
& "$basedir/node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
$ret=$LASTEXITCODE
} else {
& "node$exe" "$basedir/../@babel/parser/bin/babel-parser.js" $args
$ret=$LASTEXITCODE
}
exit $ret

15
node_modules/.bin/regjsparser generated vendored
View File

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../regjsparser/bin/parser" "$@"
ret=$?
else
node "$basedir/../regjsparser/bin/parser" "$@"
ret=$?
fi
exit $ret

17
node_modules/.bin/regjsparser.cmd generated vendored
View File

@ -1,17 +0,0 @@
@ECHO off
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
"%_prog%" "%dp0%\..\regjsparser\bin\parser" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b

18
node_modules/.bin/regjsparser.ps1 generated vendored
View File

@ -1,18 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
& "$basedir/node$exe" "$basedir/../regjsparser/bin/parser" $args
$ret=$LASTEXITCODE
} else {
& "node$exe" "$basedir/../regjsparser/bin/parser" $args
$ret=$LASTEXITCODE
}
exit $ret

15
node_modules/.bin/semver generated vendored
View File

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../semver/bin/semver" "$@"
ret=$?
else
node "$basedir/../semver/bin/semver" "$@"
ret=$?
fi
exit $ret

17
node_modules/.bin/semver.cmd generated vendored
View File

@ -1,17 +0,0 @@
@ECHO off
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
"%_prog%" "%dp0%\..\semver\bin\semver" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b

18
node_modules/.bin/semver.ps1 generated vendored
View File

@ -1,18 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
& "$basedir/node$exe" "$basedir/../semver/bin/semver" $args
$ret=$LASTEXITCODE
} else {
& "node$exe" "$basedir/../semver/bin/semver" $args
$ret=$LASTEXITCODE
}
exit $ret

15
node_modules/.bin/terser generated vendored
View File

@ -1,15 +0,0 @@
#!/bin/sh
basedir=$(dirname "$(echo "$0" | sed -e 's,\\,/,g')")
case `uname` in
*CYGWIN*|*MINGW*|*MSYS*) basedir=`cygpath -w "$basedir"`;;
esac
if [ -x "$basedir/node" ]; then
"$basedir/node" "$basedir/../terser/bin/terser" "$@"
ret=$?
else
node "$basedir/../terser/bin/terser" "$@"
ret=$?
fi
exit $ret

17
node_modules/.bin/terser.cmd generated vendored
View File

@ -1,17 +0,0 @@
@ECHO off
SETLOCAL
CALL :find_dp0
IF EXIST "%dp0%\node.exe" (
SET "_prog=%dp0%\node.exe"
) ELSE (
SET "_prog=node"
SET PATHEXT=%PATHEXT:;.JS;=;%
)
"%_prog%" "%dp0%\..\terser\bin\terser" %*
ENDLOCAL
EXIT /b %errorlevel%
:find_dp0
SET dp0=%~dp0
EXIT /b

18
node_modules/.bin/terser.ps1 generated vendored
View File

@ -1,18 +0,0 @@
#!/usr/bin/env pwsh
$basedir=Split-Path $MyInvocation.MyCommand.Definition -Parent
$exe=""
if ($PSVersionTable.PSVersion -lt "6.0" -or $IsWindows) {
# Fix case when both the Windows and Linux builds of Node
# are installed in the same directory
$exe=".exe"
}
$ret=0
if (Test-Path "$basedir/node$exe") {
& "$basedir/node$exe" "$basedir/../terser/bin/terser" $args
$ret=$LASTEXITCODE
} else {
& "node$exe" "$basedir/../terser/bin/terser" $args
$ret=$LASTEXITCODE
}
exit $ret

View File

@ -1 +0,0 @@
{"code":"import PushBAIDU from '@m/pushBAIDU';\r\nimport getVueVersion from '@m/getVueVersion';\r\nexport default function install(Vue, _a) {\r\n var router = _a.router, siteIdList = _a.siteIdList, _b = _a.isDebug, isDebug = _b === void 0 ? false : _b;\r\n if (typeof document === 'undefined' || typeof window === 'undefined') {\r\n return false;\r\n }\r\n if (!router) {\r\n throw new Error('[vue-baidu-analytics] Must pass a Vue-Router instance to vue-baidu-analytics.');\r\n }\r\n if (!siteIdList) {\r\n throw new Error('[vue-baidu-analytics] Missing tracking domain ID, add at least one of baidu analytics.');\r\n }\r\n var pushBAIDU = new PushBAIDU(siteIdList, isDebug);\r\n var VUE_VERSION = getVueVersion(Vue) || 0;\r\n if (VUE_VERSION === 2) {\r\n Vue.prototype.$pushBAIDU = pushBAIDU;\r\n }\r\n if (VUE_VERSION === 3) {\r\n Vue.config.globalProperties.$pushBAIDU = pushBAIDU;\r\n }\r\n if (siteIdList) {\r\n pushBAIDU.init();\r\n }\r\n router.afterEach(function (to) {\r\n var PAGE_PATH_DIR_COUNT = window.location.pathname.split('/').length;\r\n var PAGE_PATH = window.location.pathname.split('/').slice(0, PAGE_PATH_DIR_COUNT - 1).join('/');\r\n var PAGE_URL = router.mode === 'hash' ? PAGE_PATH + \"/#\" + to.fullPath : \"\" + PAGE_PATH + to.fullPath;\r\n pushBAIDU.pv(PAGE_URL);\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map","references":["E:/Project/npm-project/vue-baidu-analytics/src/modules/pushBAIDU.ts","E:/Project/npm-project/vue-baidu-analytics/src/modules/getVueVersion.ts"],"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/main.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAK5C,MAAM,CAAC,OAAO,UAAU,OAAO,CAAE,GAAQ,EAAE,EAAyD;QAAvD,MAAM,YAAA,EAAE,UAAU,gBAAA,EAAE,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IAK9E,IAAK,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,MAAM,KAAK,WAAW,EAAG;QACtE,OAAO,KAAK,CAAC;KACd;IAED,IAAK,CAAC,MAAM,EAAG;QACb,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;KAClG;IAED,IAAK,CAAC,UAAU,EAAG;QACjB,MAAM,IAAI,KAAK,CAAC,wFAAwF,CAAC,CAAC;KAC3G;IAKD,IAAM,SAAS,GAAQ,IAAI,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAG1D,IAAM,WAAW,GAAW,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAGpD,IAAK,WAAW,KAAK,CAAC,EAAG;QACvB,GAAG,CAAC,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;KACtC;IAGD,IAAK,WAAW,KAAK,CAAC,EAAG;QACvB,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,UAAU,GAAG,SAAS,CAAC;KACpD;IAKD,IAAK,UAAU,EAAG;QAChB,SAAS,CAAC,IAAI,EAAE,CAAC;KAClB;IAKD,MAAM,CAAC,SAAS,CAAE,UAAC,EAAM;QACvB,IAAM,mBAAmB,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;QACvE,IAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClG,IAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAI,SAAS,UAAK,EAAE,CAAC,QAAU,CAAC,CAAC,CAAC,KAAG,SAAS,GAAG,EAAE,CAAC,QAAU,CAAC;QAExG,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/main.d.ts","writeByteOrderMark":false,"text":"export default function install(Vue: Vue, { router, siteIdList, isDebug }: Partial<Options>): boolean;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"import BAIDU from '@m/baidu';\r\nvar PushBAIDU = (function () {\r\n function PushBAIDU(siteIdList, isDebug) {\r\n this.siteIdList = siteIdList;\r\n this.isDebug = isDebug;\r\n }\r\n PushBAIDU.prototype.init = function () {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.init();\r\n });\r\n };\r\n PushBAIDU.prototype.pv = function (pageUrl) {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.trackPageview(pageUrl);\r\n });\r\n };\r\n PushBAIDU.prototype.event = function (category, action, label, value) {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.trackEvent(category, action, label, value);\r\n });\r\n };\r\n return PushBAIDU;\r\n}());\r\nexport default PushBAIDU;\r\n//# sourceMappingURL=pushBAIDU.js.map","references":["E:/Project/npm-project/vue-baidu-analytics/src/modules/baidu.ts"],"map":"{\"version\":3,\"file\":\"pushBAIDU.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/modules/pushBAIDU.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,KAAK,MAAM,UAAU,CAAA;AAK5B;IAIE,mBAAa,UAAoB,EAAE,OAAgB;QACjD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAKD,wBAAI,GAAJ;QAAA,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,sBAAE,GAAF,UAAI,OAAe;QAAnB,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,yBAAK,GAAL,UAAO,QAAgB,EAAE,MAAc,EAAE,KAAa,EAAE,KAAa;QAArE,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC;IAEH,gBAAC;AAAD,CAAC,AAvCD,IAuCC;AAED,eAAe,SAAS,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/modules/pushBAIDU.d.ts","writeByteOrderMark":false,"text":"declare class PushBAIDU {\r\n siteIdList: string[];\r\n isDebug: boolean;\r\n constructor(siteIdList: string[], isDebug: boolean);\r\n init(): void;\r\n pv(pageUrl: string): void;\r\n event(category: string, action: string, label: string, value: number): void;\r\n}\r\nexport default PushBAIDU;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"var getVueVersion = function (Vue) {\r\n var version = 2;\r\n var VUE_VERSION = String(Vue.version);\r\n if (VUE_VERSION.slice(0, 2) === '2.') {\r\n version = 2;\r\n }\r\n if (VUE_VERSION.slice(0, 2) === '3.') {\r\n version = 3;\r\n }\r\n return version;\r\n};\r\nexport default getVueVersion;\r\n//# sourceMappingURL=getVueVersion.js.map","references":[],"map":"{\"version\":3,\"file\":\"getVueVersion.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/modules/getVueVersion.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,aAAa,GAAG,UAAC,GAAQ;IAC7B,IAAI,OAAO,GAAW,CAAC,CAAC;IAGxB,IAAM,WAAW,GAAW,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAGhD,IAAK,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAG;QACtC,OAAO,GAAG,CAAC,CAAC;KACb;IAGD,IAAK,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAG;QACtC,OAAO,GAAG,CAAC,CAAC;KACb;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAA;AAED,eAAe,aAAa,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/modules/getVueVersion.d.ts","writeByteOrderMark":false,"text":"declare const getVueVersion: (Vue: Vue) => number;\r\nexport default getVueVersion;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"import BAIDU from '@m/baidu';\r\nvar PushBAIDU = (function () {\r\n function PushBAIDU(siteIdList, isDebug) {\r\n this.siteIdList = siteIdList;\r\n this.isDebug = isDebug;\r\n }\r\n PushBAIDU.prototype.init = function () {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.init();\r\n });\r\n };\r\n PushBAIDU.prototype.pv = function (pageUrl) {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.trackPageview(pageUrl);\r\n });\r\n };\r\n PushBAIDU.prototype.event = function (category, action, label, value) {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.trackEvent(category, action, label, value);\r\n });\r\n };\r\n return PushBAIDU;\r\n}());\r\nexport default PushBAIDU;\r\n//# sourceMappingURL=pushBAIDU.js.map","references":["E:/Project/npm-project/vue-baidu-analytics/src/modules/baidu.ts"],"map":"{\"version\":3,\"file\":\"pushBAIDU.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/modules/pushBAIDU.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,KAAK,MAAM,UAAU,CAAA;AAK5B;IAIE,mBAAa,UAAoB,EAAE,OAAgB;QACjD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAKD,wBAAI,GAAJ;QAAA,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,sBAAE,GAAF,UAAI,OAAe;QAAnB,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,yBAAK,GAAL,UAAO,QAAgB,EAAE,MAAc,EAAE,KAAa,EAAE,KAAa;QAArE,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC;IAEH,gBAAC;AAAD,CAAC,AAvCD,IAuCC;AAED,eAAe,SAAS,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/modules/pushBAIDU.d.ts","writeByteOrderMark":false,"text":"declare class PushBAIDU {\r\n siteIdList: string[];\r\n isDebug: boolean;\r\n constructor(siteIdList: string[], isDebug: boolean);\r\n init(): void;\r\n pv(pageUrl: string): void;\r\n event(category: string, action: string, label: string, value: number): void;\r\n}\r\nexport default PushBAIDU;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"import { isVue2, isVue3 } from 'vue-demi';\r\nimport PushBAIDU from '@m/pushBAIDU';\r\nexport var pushBAIDU = null;\r\nconsole.log({\r\n 'isVue2': isVue2,\r\n 'isVue3': isVue3\r\n});\r\nexport default function install(Vue, _a) {\r\n var router = _a.router, siteIdList = _a.siteIdList, _b = _a.isDebug, isDebug = _b === void 0 ? false : _b;\r\n if (typeof document === 'undefined' || typeof window === 'undefined') {\r\n return false;\r\n }\r\n if (!router) {\r\n throw new Error('[vue-baidu-analytics] Must pass a Vue-Router instance to vue-baidu-analytics.');\r\n }\r\n if (!siteIdList) {\r\n throw new Error('[vue-baidu-analytics] Missing tracking domain ID, add at least one of baidu analytics.');\r\n }\r\n pushBAIDU = new PushBAIDU(siteIdList, isDebug);\r\n if (isVue2) {\r\n Vue.prototype.$pushBAIDU = pushBAIDU;\r\n }\r\n if (siteIdList) {\r\n pushBAIDU.init();\r\n }\r\n router.afterEach(function (to) {\r\n var PAGE_PATH_DIR_COUNT = window.location.pathname.split('/').length;\r\n var PAGE_PATH = window.location.pathname.split('/').slice(0, PAGE_PATH_DIR_COUNT - 1).join('/');\r\n var PAGE_URL = router.mode === 'hash' ? PAGE_PATH + \"/#\" + to.fullPath : \"\" + PAGE_PATH + to.fullPath;\r\n pushBAIDU.pv(PAGE_URL);\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map","references":["E:/Project/npm-project/vue-baidu-analytics/node_modules/vue-demi/lib/index.d.ts","E:/Project/npm-project/vue-baidu-analytics/src/modules/pushBAIDU.ts"],"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/main.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,EAAE,MAAM,EAAE,MAAM,EAAE,MAAM,UAAU,CAAA;AACzC,OAAO,SAAS,MAAM,cAAc,CAAA;AAKpC,MAAM,CAAC,IAAI,SAAS,GAAQ,IAAI,CAAC;AAEjC,OAAO,CAAC,GAAG,CAAC;IACV,QAAQ,EAAE,MAAM;IAChB,QAAQ,EAAE,MAAM;CACjB,CAAC,CAAC;AAGH,MAAM,CAAC,OAAO,UAAU,OAAO,CAAE,GAAQ,EAAE,EAAyD;QAAvD,MAAM,YAAA,EAAE,UAAU,gBAAA,EAAE,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IAK9E,IAAK,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,MAAM,KAAK,WAAW,EAAG;QACtE,OAAO,KAAK,CAAC;KACd;IAED,IAAK,CAAC,MAAM,EAAG;QACb,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;KAClG;IAED,IAAK,CAAC,UAAU,EAAG;QACjB,MAAM,IAAI,KAAK,CAAC,wFAAwF,CAAC,CAAC;KAC3G;IAKD,SAAS,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,IAAK,MAAM,EAAG;QACZ,GAAG,CAAC,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;KACtC;IAKD,IAAK,UAAU,EAAG;QAChB,SAAS,CAAC,IAAI,EAAE,CAAC;KAClB;IAKD,MAAM,CAAC,SAAS,CAAE,UAAC,EAAM;QACvB,IAAM,mBAAmB,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;QACvE,IAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClG,IAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAI,SAAS,UAAK,EAAE,CAAC,QAAU,CAAC,CAAC,CAAC,KAAG,SAAS,GAAG,EAAE,CAAC,QAAU,CAAC;QAExG,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/main.d.ts","writeByteOrderMark":false,"text":"export declare let pushBAIDU: any;\r\nexport default function install(Vue: Vue, { router, siteIdList, isDebug }: Partial<Options>): boolean;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"import PushBAIDU from '@m/pushBAIDU';\r\nexport var pushBAIDU = null;\r\nexport default function install(Vue, _a) {\r\n var router = _a.router, siteIdList = _a.siteIdList, _b = _a.isDebug, isDebug = _b === void 0 ? false : _b;\r\n if (typeof document === 'undefined' || typeof window === 'undefined') {\r\n return false;\r\n }\r\n if (!router) {\r\n throw new Error('[vue-baidu-analytics] Must pass a Vue-Router instance to vue-baidu-analytics.');\r\n }\r\n if (!siteIdList) {\r\n throw new Error('[vue-baidu-analytics] Missing tracking domain ID, add at least one of baidu analytics.');\r\n }\r\n pushBAIDU = new PushBAIDU(siteIdList, isDebug);\r\n try {\r\n Vue.prototype.$pushBAIDU = pushBAIDU;\r\n }\r\n catch (e) {\r\n console.log(e);\r\n }\r\n console.log(Vue);\r\n if ('version' in Vue) {\r\n console.log(Vue.version);\r\n }\r\n if (siteIdList) {\r\n pushBAIDU.init();\r\n }\r\n router.afterEach(function (to) {\r\n var PAGE_PATH_DIR_COUNT = window.location.pathname.split('/').length;\r\n var PAGE_PATH = window.location.pathname.split('/').slice(0, PAGE_PATH_DIR_COUNT - 1).join('/');\r\n var PAGE_URL = router.mode === 'hash' ? PAGE_PATH + \"/#\" + to.fullPath : \"\" + PAGE_PATH + to.fullPath;\r\n pushBAIDU.pv(PAGE_URL);\r\n });\r\n}\r\n//# sourceMappingURL=main.js.map","references":["E:/Project/npm-project/vue-baidu-analytics/src/modules/pushBAIDU.ts"],"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/main.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,SAAS,MAAM,cAAc,CAAA;AAKpC,MAAM,CAAC,IAAI,SAAS,GAAQ,IAAI,CAAC;AAEjC,MAAM,CAAC,OAAO,UAAU,OAAO,CAAE,GAAQ,EAAE,EAAyD;QAAvD,MAAM,YAAA,EAAE,UAAU,gBAAA,EAAE,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IAK9E,IAAK,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,MAAM,KAAK,WAAW,EAAG;QACtE,OAAO,KAAK,CAAC;KACd;IAED,IAAK,CAAC,MAAM,EAAG;QACb,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;KAClG;IAED,IAAK,CAAC,UAAU,EAAG;QACjB,MAAM,IAAI,KAAK,CAAC,wFAAwF,CAAC,CAAC;KAC3G;IAKD,SAAS,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAC/C,IAAI;QACF,GAAG,CAAC,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;KACtC;IAAC,OAAO,CAAC,EAAE;QACV,OAAO,CAAC,GAAG,CAAC,CAAC,CAAC,CAAC;KAChB;IAED,OAAO,CAAC,GAAG,CAAC,GAAG,CAAC,CAAC;IACjB,IAAK,SAAS,IAAI,GAAG,EAAG;QACtB,OAAO,CAAC,GAAG,CAAE,GAAW,CAAC,OAAO,CAAC,CAAC;KACnC;IAKD,IAAK,UAAU,EAAG;QAChB,SAAS,CAAC,IAAI,EAAE,CAAC;KAClB;IAKD,MAAM,CAAC,SAAS,CAAE,UAAC,EAAM;QACvB,IAAM,mBAAmB,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;QACvE,IAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClG,IAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAI,SAAS,UAAK,EAAE,CAAC,QAAU,CAAC,CAAC,CAAC,KAAG,SAAS,GAAG,EAAE,CAAC,QAAU,CAAC;QAExG,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/main.d.ts","writeByteOrderMark":false,"text":"export declare let pushBAIDU: any;\r\nexport default function install(Vue: Vue, { router, siteIdList, isDebug }: Partial<Options>): boolean;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"import BAIDU from '@m/baidu';\r\nvar PushBAIDU = (function () {\r\n function PushBAIDU(siteIdList, isDebug) {\r\n this.siteIdList = siteIdList;\r\n this.isDebug = isDebug;\r\n }\r\n PushBAIDU.prototype.init = function () {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.init();\r\n });\r\n };\r\n PushBAIDU.prototype.pv = function (pageUrl) {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.trackPageview(pageUrl);\r\n });\r\n };\r\n PushBAIDU.prototype.event = function (category, action, label, value) {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.trackEvent(category, action, label, value);\r\n });\r\n };\r\n return PushBAIDU;\r\n}());\r\nexport default PushBAIDU;\r\n//# sourceMappingURL=pushBAIDU.js.map","references":["E:/Project/npm-project/vue-baidu-analytics/src/modules/baidu.ts"],"map":"{\"version\":3,\"file\":\"pushBAIDU.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/modules/pushBAIDU.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,KAAK,MAAM,UAAU,CAAA;AAK5B;IAIE,mBAAa,UAAoB,EAAE,OAAgB;QACjD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAKD,wBAAI,GAAJ;QAAA,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,sBAAE,GAAF,UAAI,OAAe;QAAnB,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,yBAAK,GAAL,UAAO,QAAgB,EAAE,MAAc,EAAE,KAAa,EAAE,KAAa;QAArE,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC;IAEH,gBAAC;AAAD,CAAC,AAvCD,IAuCC;AAED,eAAe,SAAS,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/modules/pushBAIDU.d.ts","writeByteOrderMark":false,"text":"declare class PushBAIDU {\r\n siteIdList: string[];\r\n isDebug: boolean;\r\n constructor(siteIdList: string[], isDebug: boolean);\r\n init(): void;\r\n pv(pageUrl: string): void;\r\n event(category: string, action: string, label: string, value: number): void;\r\n}\r\nexport default PushBAIDU;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"import BAIDU from '@m/baidu';\r\nvar PushBAIDU = (function () {\r\n function PushBAIDU(siteIdList, isDebug) {\r\n this.siteIdList = siteIdList;\r\n this.isDebug = isDebug;\r\n }\r\n PushBAIDU.prototype.init = function () {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.init();\r\n });\r\n };\r\n PushBAIDU.prototype.pv = function (pageUrl) {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.trackPageview(pageUrl);\r\n });\r\n };\r\n PushBAIDU.prototype.event = function (category, action, label, value) {\r\n var _this = this;\r\n this.siteIdList.forEach(function (siteId) {\r\n var SITE = new BAIDU(siteId, _this.isDebug);\r\n SITE.trackEvent(category, action, label, value);\r\n });\r\n };\r\n return PushBAIDU;\r\n}());\r\nexport default PushBAIDU;\r\n//# sourceMappingURL=pushBAIDU.js.map","references":["E:/Project/npm-project/vue-baidu-analytics/src/modules/baidu.ts"],"map":"{\"version\":3,\"file\":\"pushBAIDU.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/modules/pushBAIDU.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,KAAK,MAAM,UAAU,CAAA;AAK5B;IAIE,mBAAa,UAAoB,EAAE,OAAgB;QACjD,IAAI,CAAC,UAAU,GAAG,UAAU,CAAC;QAC7B,IAAI,CAAC,OAAO,GAAG,OAAO,CAAC;IACzB,CAAC;IAKD,wBAAI,GAAJ;QAAA,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,IAAI,EAAE,CAAC;QACd,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,sBAAE,GAAF,UAAI,OAAe;QAAnB,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,aAAa,CAAC,OAAO,CAAC,CAAC;QAC9B,CAAC,CAAC,CAAC;IACL,CAAC;IAKD,yBAAK,GAAL,UAAO,QAAgB,EAAE,MAAc,EAAE,KAAa,EAAE,KAAa;QAArE,iBAKC;QAJC,IAAI,CAAC,UAAU,CAAC,OAAO,CAAE,UAAC,MAAc;YACtC,IAAM,IAAI,GAAG,IAAI,KAAK,CAAC,MAAM,EAAE,KAAI,CAAC,OAAO,CAAC,CAAC;YAC7C,IAAI,CAAC,UAAU,CAAC,QAAQ,EAAE,MAAM,EAAE,KAAK,EAAE,KAAK,CAAC,CAAC;QAClD,CAAC,CAAC,CAAC;IACL,CAAC;IAEH,gBAAC;AAAD,CAAC,AAvCD,IAuCC;AAED,eAAe,SAAS,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/modules/pushBAIDU.d.ts","writeByteOrderMark":false,"text":"declare class PushBAIDU {\r\n siteIdList: string[];\r\n isDebug: boolean;\r\n constructor(siteIdList: string[], isDebug: boolean);\r\n init(): void;\r\n pv(pageUrl: string): void;\r\n event(category: string, action: string, label: string, value: number): void;\r\n}\r\nexport default PushBAIDU;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"var getVueVersion = function (Vue) {\r\n var version = 2;\r\n var VUE_VERSION = String(Vue.version);\r\n if (VUE_VERSION.slice(0, 2) === '2.') {\r\n version = 2;\r\n }\r\n if (VUE_VERSION.slice(0, 2) === '3.') {\r\n version = 3;\r\n }\r\n return version;\r\n};\r\nexport default getVueVersion;\r\n//# sourceMappingURL=getVueVersion.js.map","references":[],"map":"{\"version\":3,\"file\":\"getVueVersion.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../../src/modules/getVueVersion.ts\"],\"names\":[],\"mappings\":\"AAIA,IAAM,aAAa,GAAG,UAAC,GAAQ;IAC7B,IAAI,OAAO,GAAW,CAAC,CAAC;IAGxB,IAAM,WAAW,GAAW,MAAM,CAAC,GAAG,CAAC,OAAO,CAAC,CAAC;IAGhD,IAAK,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAG;QACtC,OAAO,GAAG,CAAC,CAAC;KACb;IAGD,IAAK,WAAW,CAAC,KAAK,CAAC,CAAC,EAAE,CAAC,CAAC,KAAK,IAAI,EAAG;QACtC,OAAO,GAAG,CAAC,CAAC;KACb;IAED,OAAO,OAAO,CAAC;AACjB,CAAC,CAAA;AAED,eAAe,aAAa,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/modules/getVueVersion.d.ts","writeByteOrderMark":false,"text":"declare const getVueVersion: (Vue: Vue) => number;\r\nexport default getVueVersion;\r\n"}}

View File

@ -1 +0,0 @@
{"code":"import PushBAIDU from '@m/pushBAIDU';\r\nimport getVueVersion from '@m/getVueVersion';\r\nexport var pushBAIDU = null;\r\nfunction install(Vue, _a) {\r\n var router = _a.router, siteIdList = _a.siteIdList, _b = _a.isDebug, isDebug = _b === void 0 ? false : _b;\r\n if (typeof document === 'undefined' || typeof window === 'undefined') {\r\n return false;\r\n }\r\n if (!router) {\r\n throw new Error('[vue-baidu-analytics] Must pass a Vue-Router instance to vue-baidu-analytics.');\r\n }\r\n if (!siteIdList) {\r\n throw new Error('[vue-baidu-analytics] Missing tracking domain ID, add at least one of baidu analytics.');\r\n }\r\n pushBAIDU = new PushBAIDU(siteIdList, isDebug);\r\n var VUE_VERSION = getVueVersion(Vue) || 0;\r\n if (VUE_VERSION === 2) {\r\n Vue.prototype.$pushBAIDU = pushBAIDU;\r\n }\r\n if (VUE_VERSION === 3) {\r\n Vue.config.globalProperties.$pushBAIDU = pushBAIDU;\r\n }\r\n if (siteIdList) {\r\n pushBAIDU.init();\r\n }\r\n router.afterEach(function (to) {\r\n var PAGE_PATH_DIR_COUNT = window.location.pathname.split('/').length;\r\n var PAGE_PATH = window.location.pathname.split('/').slice(0, PAGE_PATH_DIR_COUNT - 1).join('/');\r\n var PAGE_URL = router.mode === 'hash' ? PAGE_PATH + \"/#\" + to.fullPath : \"\" + PAGE_PATH + to.fullPath;\r\n pushBAIDU.pv(PAGE_URL);\r\n });\r\n}\r\nexport default install;\r\n//# sourceMappingURL=main.js.map","references":["E:/Project/npm-project/vue-baidu-analytics/src/modules/pushBAIDU.ts","E:/Project/npm-project/vue-baidu-analytics/src/modules/getVueVersion.ts"],"map":"{\"version\":3,\"file\":\"main.js\",\"sourceRoot\":\"\",\"sources\":[\"../../../../src/main.ts\"],\"names\":[],\"mappings\":\"AAAA,OAAO,SAAS,MAAM,cAAc,CAAA;AACpC,OAAO,aAAa,MAAM,kBAAkB,CAAA;AAK5C,MAAM,CAAC,IAAI,SAAS,GAAQ,IAAI,CAAC;AAKjC,SAAS,OAAO,CAAE,GAAQ,EAAE,EAAyD;QAAvD,MAAM,YAAA,EAAE,UAAU,gBAAA,EAAE,eAAe,EAAf,OAAO,mBAAG,KAAK,KAAA;IAK/D,IAAK,OAAO,QAAQ,KAAK,WAAW,IAAI,OAAO,MAAM,KAAK,WAAW,EAAG;QACtE,OAAO,KAAK,CAAC;KACd;IAED,IAAK,CAAC,MAAM,EAAG;QACb,MAAM,IAAI,KAAK,CAAC,+EAA+E,CAAC,CAAC;KAClG;IAED,IAAK,CAAC,UAAU,EAAG;QACjB,MAAM,IAAI,KAAK,CAAC,wFAAwF,CAAC,CAAC;KAC3G;IAKD,SAAS,GAAG,IAAI,SAAS,CAAC,UAAU,EAAE,OAAO,CAAC,CAAC;IAG/C,IAAM,WAAW,GAAW,aAAa,CAAC,GAAG,CAAC,IAAI,CAAC,CAAC;IAGpD,IAAK,WAAW,KAAK,CAAC,EAAG;QACvB,GAAG,CAAC,SAAS,CAAC,UAAU,GAAG,SAAS,CAAC;KACtC;IAGD,IAAK,WAAW,KAAK,CAAC,EAAG;QACvB,GAAG,CAAC,MAAM,CAAC,gBAAgB,CAAC,UAAU,GAAG,SAAS,CAAC;KACpD;IAKD,IAAK,UAAU,EAAG;QAChB,SAAS,CAAC,IAAI,EAAE,CAAC;KAClB;IAKD,MAAM,CAAC,SAAS,CAAE,UAAC,EAAM;QACvB,IAAM,mBAAmB,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,MAAM,CAAC;QACvE,IAAM,SAAS,GAAG,MAAM,CAAC,QAAQ,CAAC,QAAQ,CAAC,KAAK,CAAC,GAAG,CAAC,CAAC,KAAK,CAAC,CAAC,EAAE,mBAAmB,GAAG,CAAC,CAAC,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC;QAClG,IAAM,QAAQ,GAAG,MAAM,CAAC,IAAI,KAAK,MAAM,CAAC,CAAC,CAAI,SAAS,UAAK,EAAE,CAAC,QAAU,CAAC,CAAC,CAAC,KAAG,SAAS,GAAG,EAAE,CAAC,QAAU,CAAC;QAExG,SAAS,CAAC,EAAE,CAAC,QAAQ,CAAC,CAAC;IACzB,CAAC,CAAC,CAAC;AACL,CAAC;AAED,eAAe,OAAO,CAAC\"}","dts":{"name":"E:/Project/npm-project/vue-baidu-analytics/main.d.ts","writeByteOrderMark":false,"text":"export declare let pushBAIDU: any;\r\ndeclare function install(Vue: Vue, { router, siteIdList, isDebug }: Partial<Options>): boolean;\r\nexport default install;\r\n"}}

Some files were not shown because too many files have changed in this diff Show More