Skip to content

Commit

Permalink
更新demo的内容
Browse files Browse the repository at this point in the history
  • Loading branch information
leeight committed Sep 24, 2015
1 parent 32c4c9c commit beca565
Show file tree
Hide file tree
Showing 3 changed files with 4 additions and 7 deletions.
6 changes: 2 additions & 4 deletions test/browser/demo/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,6 @@

<div class="collapse navbar-collapse">
<ul class="nav navbar-nav navbar-right">
<li><a href="http://wiki.baidu.com/display/BCE2014/BOS+WEB+SDK">关于BOS WEB SDK</a></li>
<li><a href="http://gitlab.baidu.com/inf/bos-js-sdk/issues" target="_blank">提BUG?</a></li>
<li><a href="#" data-toggle="modal" data-target="#settingsModal"><i class="fa fa-cogs"></i></a></li>
</ul>
</div>
Expand Down Expand Up @@ -74,7 +72,7 @@
<li><a href="#">Separated link</a></li>
</ul>
</div>
<button id="ocrBtn" class="btn btn-primary btn-info" type="button">
<button id="ocrBtn" class="btn btn-primary btn-info" type="button" style="display: none">
<i class="fa fa-magnet"></i> OCR
</button>
<button id="refreshList" class="btn btn-default pull-right" title="刷新">
Expand Down Expand Up @@ -127,7 +125,7 @@ <h4 class="modal-title">参数设置</h4>
</div>

<div class="modal-body">
<div class="alert alert-info">信息只会存储在本地浏览器,不会被其他人看到。</div>
<div class="alert alert-info">信息只会存储在本地浏览器<code>localStorage</code>,不会被其他人看到。</div>
<form class="form-horizontal">
<div class="form-group" hidden>
<label class="col-sm-3 control-label">模式选择</label>
Expand Down
2 changes: 1 addition & 1 deletion test/browser/demo/src/pref.js
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ define(function (require) {
var ak = store.get('ak');
var sk = store.get('sk');

var msg = '信息只会存储在本地浏览器,不会被其他人看到。';
var msg = '信息只会存储在本地浏览器<code>localStorage</code>,不会被其他人看到。';
if (!ak || !sk) {
msg = '初次使用,请先设置 AK 和 SK。' + msg;
}
Expand Down
3 changes: 1 addition & 2 deletions test/browser/proxy/main.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,8 +27,7 @@ var kDefaultHost = 'bos.bj.baidubce.com';
// var kDefaultHost = 'platform.v3.bae.baidu.com';
// var kDefaultTarget = 'http://bs.baidu.com';
// var kDefaultHost = 'bs.baidu.com';
var kWebRoot = '/Users/leeight/hd/local/case/inf/bos/baidubce-sdk/test/browser/demo';
// var kWebRoot = '/Users/leeight/hd/local/case/inf/bec/platform_1-0-8_BRANCH/fe';
var kWebRoot = path.join(__dirname, '..', 'demo');

var proxy = httpProxy.createProxyServer({});
proxy.on('proxyReq', function (proxyReq, req, res, options) {
Expand Down

0 comments on commit beca565

Please sign in to comment.