Skip to content

Commit

Permalink
feat: 增加上报
Browse files Browse the repository at this point in the history
  • Loading branch information
lyxuncle committed Aug 14, 2019
1 parent b2dff58 commit 90cb42a
Show file tree
Hide file tree
Showing 5 changed files with 13 additions and 7 deletions.
4 changes: 2 additions & 2 deletions dist/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -6,13 +6,13 @@
<meta name="format-detection" content="telephone=no">
<title>demo</title>

<link href="//storage.jd.com/ambient/styles-particles_emission.css?6189792f2d187c459a00" rel="stylesheet"></head>
<link href="//storage.jd.com/ambient/styles-particles_emission.css?295143cbe25c1f2aa6ce" rel="stylesheet"></head>
<body>
<!-- S 主体内容 -->
<div class="o2team_ambient_main">
<canvas></canvas>
</div>
<!-- E 主体内容 -->

<script type="text/javascript" src="//storage.jd.com/ambient/control-particles_emission.js?6189792f2d187c459a00"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-particles_emission.js?6189792f2d187c459a00"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-particles_emission.js?6189792f2d187c459a00"></script></body>
<script type="text/javascript" src="//storage.jd.com/ambient/control-particles_emission.js?295143cbe25c1f2aa6ce"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-particles_emission.js?295143cbe25c1f2aa6ce"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-particles_emission.js?295143cbe25c1f2aa6ce"></script></body>
</html>
4 changes: 2 additions & 2 deletions dist/index_demo.html
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@

<script type="text/javascript" src="//storage.jd.com/ambient-global/ambient-autoStop-head.js"></script>

<link href="//storage.jd.com/ambient/styles-particles_emission.css?6189792f2d187c459a00" rel="stylesheet"></head>
<link href="//storage.jd.com/ambient/styles-particles_emission.css?295143cbe25c1f2aa6ce" rel="stylesheet"></head>
<body>
<!-- S 主体内容 -->
<div class="o2team_ambient_main">
Expand All @@ -18,5 +18,5 @@

<script type="text/javascript" src="//storage.jd.com/ambient-global/ambient-autoStop-body.js"></script>

<script type="text/javascript" src="//storage.jd.com/ambient/control-particles_emission.js?6189792f2d187c459a00"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-particles_emission.js?6189792f2d187c459a00"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-particles_emission.js?6189792f2d187c459a00"></script></body>
<script type="text/javascript" src="//storage.jd.com/ambient/control-particles_emission.js?295143cbe25c1f2aa6ce"></script><script type="text/javascript" src="//storage.jd.com/ambient/bundle-particles_emission.js?295143cbe25c1f2aa6ce"></script><script type="text/javascript" src="//storage.jd.com/ambient/config-particles_emission.js?295143cbe25c1f2aa6ce"></script></body>
</html>
6 changes: 3 additions & 3 deletions info.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@
"title": "particles_emission",
"ambName": "粒子呼吸",
"github": "https://github.com/o2team-ambient/particles_emission",
"demoSnippet": "<link href=\"//storage.jd.com/ambient/styles-particles_emission.css?t=1563431559000\" rel=\"stylesheet\"></link><!-- S 主体内容 -->\n <div class=\"o2team_ambient_main\">\n <canvas></canvas>\n </div>\n <!-- E 主体内容 --><script src=\"//storage.jd.com/ambient/bundle-particles_emission.js?t=1563431559000\"></script>",
"controlUrl": "//storage.jd.com/ambient/control-particles_emission.js?t=1563431559000",
"configUrl": "//storage.jd.com/ambient/config-particles_emission.js?t=1563431559000",
"demoSnippet": "<link href=\"//storage.jd.com/ambient/styles-particles_emission.css?t=1565787428000\" rel=\"stylesheet\"></link><!-- S 主体内容 -->\n <div class=\"o2team_ambient_main\">\n <canvas></canvas>\n </div>\n <!-- E 主体内容 --><script src=\"//storage.jd.com/ambient/bundle-particles_emission.js?t=1565787428000\"></script>",
"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"
}
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -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": {
Expand Down
5 changes: 5 additions & 0 deletions src/index.js
Original file line number Diff line number Diff line change
@@ -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'

Expand All @@ -14,3 +16,6 @@ try {
} catch (e) {
console.log(e)
}

Report.init({})
Report.processPV()

0 comments on commit 90cb42a

Please sign in to comment.