From 90cb42acf513ef74621b0efd5a52be02feebb0ed Mon Sep 17 00:00:00 2001 From: Lee EC Date: Wed, 14 Aug 2019 20:57:15 +0800 Subject: [PATCH] =?UTF-8?q?feat:=20=E5=A2=9E=E5=8A=A0=E4=B8=8A=E6=8A=A5?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- dist/index.html | 4 ++-- dist/index_demo.html | 4 ++-- info.json | 6 +++--- package.json | 1 + src/index.js | 5 +++++ 5 files changed, 13 insertions(+), 7 deletions(-) diff --git a/dist/index.html b/dist/index.html index e0a6b36..ae0d1eb 100644 --- a/dist/index.html +++ b/dist/index.html @@ -6,7 +6,7 @@ demo - +
@@ -14,5 +14,5 @@
- + diff --git a/dist/index_demo.html b/dist/index_demo.html index cc9e797..b059bda 100644 --- a/dist/index_demo.html +++ b/dist/index_demo.html @@ -8,7 +8,7 @@ - +
@@ -18,5 +18,5 @@ - + diff --git a/info.json b/info.json index c35906c..484bb05 100755 --- a/info.json +++ b/info.json @@ -5,9 +5,9 @@ "title": "particles_emission", "ambName": "粒子呼吸", "github": "https://github.com/o2team-ambient/particles_emission", - "demoSnippet": "\n
\n \n
\n ", - "controlUrl": "//storage.jd.com/ambient/control-particles_emission.js?t=1563431559000", - "configUrl": "//storage.jd.com/ambient/config-particles_emission.js?t=1563431559000", + "demoSnippet": "\n
\n \n
\n ", + "controlUrl": "//storage.jd.com/ambient/control-particles_emission.js?t=1565787428000", + "configUrl": "//storage.jd.com/ambient/config-particles_emission.js?t=1565787428000", "placeholderImg": "//storage.jd.com/ambient/particles_emission_placeholder.png?t=1554259855000", "spriteImg": "//storage.jd.com/ambient/particles_emission_sprite.png?t=1554259855000" } diff --git a/package.json b/package.json index 1414e79..062b9ff 100755 --- a/package.json +++ b/package.json @@ -12,6 +12,7 @@ "license": "ISC", "dependencies": { "@o2team/ambient-dat.gui": "^0.7.9", + "@o2team/ambient-report": "^1.0.3", "p5": "^0.6.1" }, "devDependencies": { diff --git a/src/index.js b/src/index.js index 71fee91..e297707 100755 --- a/src/index.js +++ b/src/index.js @@ -1,6 +1,8 @@ import './css/base.scss' import './css/package.scss' +import Report from '@o2team/ambient-report' + import { O2_AMBIENT_CONFIG } from './js/utils/const' import initAmbient from './js/ambient' @@ -14,3 +16,6 @@ try { } catch (e) { console.log(e) } + +Report.init({}) +Report.processPV()