You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@weex.apache.org by ac...@apache.org on 2018/01/17 08:33:29 UTC
[1/3] incubator-weex git commit: * [iOS] support openURL for scan
viewController
Repository: incubator-weex
Updated Branches:
refs/heads/master bbb0817f6 -> 3f3c80910
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/bundlejs/landing.weex.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/landing.weex.js b/ios/playground/bundlejs/landing.weex.js
new file mode 100644
index 0000000..06367ba
--- /dev/null
+++ b/ios/playground/bundlejs/landing.weex.js
@@ -0,0 +1,4 @@
+// { "framework": "Vue" }
+"use weex:vue";
+
+!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=37)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(3),o=n(11);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(9),o=n(29),i=n(17),u=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)tr
y{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(55),o=n(15);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(21)("wks"),o=n(12),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.expo
rts=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fetchNews=e.fetchDoodle=e.readAbout=e.saveAbout=e.fetchAbout=e.readGuide=e.saveGuide=e.fetchGuide=e.readExamples=e.saveExamples=e.fetchExamples=void 0;var r=i(n(44)),o=i(n(46));function i(t){return t&&t.__esModule?t:{default:t}}e.createLink=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];for(var r in e)"string"==typeof e[r]&&n.push(f(r)+"="+f(e[r]));if("Web"===WXEnvironment.platform)return n.unshift("page="+t+".web.js"),"/?"+n.join("&");return""+function(){var t=weex.config.bundleUrl,e=t.indexOf("your_current_IP")>=0||t.indexOf("file://assets/")>=0,n=t.indexOf("file:///")>=0&&t.indexOf("WeexDemo.app")>0;if(e)return"file://assets/";if(n)return t.substring(0,t.lastIndexOf("/")+1);return""}()+t+".weex.js"+(n.length?"?"+n.join("&"):"")},e.createURL=s,e.i18n=l,e.parseLanguage=d,e.setLanguage=fu
nction(t){var e=d(t);e&&a.setItem("WEEX_PLAYGROUND_LANGUAGE",e)},e.clearStorageLanguage=function(){a.removeItem("WEEX_PLAYGROUND_LANGUAGE")},e.getStorageLanguage=v,e.getSystemLanguage=h,e.getLanguage=y,e.jumpTo=function(t,e){y(function(n){a.setItem("CURRENT_DOCUMENT_URL",l(t,n)),c.push({url:s("bf0305c14b511b24a4e616f53926432b",{language:n,title:l(e,n)})})})},e.viewSource=function(t){y(function(e){c.push({url:s("f6ce29faf686eabc38b410bf4828fa5a",{hash:t,language:e})})})},e.setTitleBar=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if("[object Object]"!==Object.prototype.toString.apply(t))return;var n=weex.requireModule("titleBar");if(t.color||t.backgroundColor)try{n.setStyle({foregroundColor:t.color||"#FFFFFF",backgroundColor:t.backgroundColor||"#00B4FF"})}catch(t){}var r=l(t.title,e);if(r)try{n.setTitle(r)}catch(t){}},e.fetchData=b,e.saveData=x,e.readData=w;var u=weex.requireModule("stream"),a=weex.requireModule("storage"),c=weex.requireModule("navigat
or"),f="function"==typeof encodeURIComponent?encodeURIComponent:"function"==typeof encodeURI?encodeURI:function(t){return t};function s(t,e){if("Web"===WXEnvironment.platform)return"http://dotwe.org/raw/htmlVue/"+t;var n="http://dotwe.org/raw/dist/"+t+".bundle.wx",r=function(t){if(!t||"object"!==(void 0===t?"undefined":(0,o.default)(t)))return"";var e=[];for(var n in t)"string"==typeof t[n]&&e.push(f(n)+"="+f(t[n]));return e.join("&")}(e);return"TB"===WXEnvironment.appName?n+"?_wx_tpl="+n+"&"+r:"WXSample"===WXEnvironment.appName?n+"?"+r:n+"?wx_weex=true&"+r}function l(t,e){return"string"==typeof t?t:"[object Object]"===Object.prototype.toString.call(t)?t[this&&this.language||e||"en"]:void 0}var p=/(en|zh)\_?\w*/i;function d(t){var e=p.exec(t+"");return e&&e[1]?e[1]:""}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===t||(0,o.default)(t)))try{a.getItem("WEEX_PLAYGROUND_LANGUAGE",function(n){if("success"===n.result){var
r=d(n.data);r?t(r):e()}else e(n)})}catch(t){e(t)}}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===t||(0,o.default)(t)))if("web"===WXEnvironment.platform.toLowerCase()){var n=d(window.navigator.language);n?t(n):e()}else try{var r=weex.requireModule("locale")||weex.requireModule("local"),i=!1,u=d(r.getLanguage(function(n){var r=d(n);r?i||t(r):e()}));u?(i=!0,t(u)):e()}catch(t){e(t)}}var g=/.+[\?\&]{1}language=([\d\w]+)[\?\&]?.*/i;function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=g.exec(weex.config.bundleUrl||""),n=d(e&&e[1]);n?t(n):v(t,function(){h(t,function(){t("en")})})}var m={doodle:"WEEX_PLAYGROUND_APP_DOODLE",guide:"WEEX_PLAYGROUND_APP_GUIDE",examples:"WEEX_PLAYGROUND_APP_EXAMPLES",news:"WEEX_PLAYGROUND_APP_NEWS",about:"WEEX_PLAYGROUND_APP_ABOUT"};function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2
]?arguments[2]:function(){};try{u.fetch({url:"http://dotwe.org/query/weex-playground-app",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"json",body:"name="+t},function(t){t.ok&&t.data&&t.data.success?e(t.data):n(t)})}catch(t){n(t)}}function x(t,e){var n=m[t];n&&e&&"object"===(void 0===e?"undefined":(0,o.default)(e))&&(e.timestamp=Date.now(),a.setItem(n,(0,r.default)(e)))}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=m[t];if(!r)return n();try{a.getItem(r,function(r){if("success"===r.result){var o=JSON.parse(r.data);if(o&&Array.isArray(o[t]))return e(o[t])}n(r)})}catch(t){n(t)}}e.fetchExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["examples"].concat(e))},e.saveExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["exampl
es"].concat(e))},e.readExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return w.apply(void 0,["examples"].concat(e))},e.fetchGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["guide"].concat(e))},e.saveGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["guide"].concat(e))},e.readGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return w.apply(void 0,["guide"].concat(e))},e.fetchAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["about"].concat(e))},e.saveAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["about"].concat(e))},e.readAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return w.apply(void 0,["about"].concat(e))},e.fetchDoodle=function(){fo
r(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["doodle"].concat(e))},e.fetchNews=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["news"].concat(e))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!0},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,n){var r=n(33),o=n(22);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(21)("keys"),o=n(12);t.exports=function(t){return
r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(3).f,o=n(1),i=n(6)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(6)},function(t,e,n){var r=n(0),o=n(8),i=n(16),u=n(24),a=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var r=n(16),o=n(28),i=n(31),u=n(2),a=n(1),c=n(18),f=n(53),s=n(23),l=n(60),p=n(6)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,g,y,m){f(n,e,h);var b,x,w,_=function(t){if(!d&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(
this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",S="values"==g,E=!1,j=t.prototype,L=j[p]||j["@@iterator"]||g&&j[g],A=!d&&L||_(g),C=g?S?_("entries"):A:void 0,P="Array"==e?j.entries||L:L;if(P&&(w=l(P.call(new t)))!==Object.prototype&&w.next&&(s(w,O,!0),r||a(w,p)||u(w,p,v)),S&&L&&"values"!==L.name&&(E=!0,A=function(){return L.call(this)}),r&&!m||!d&&!E&&j[p]||u(j,p,A),c[e]=A,c[O]=v,g)if(b={values:S?A:_("values"),keys:y?A:_("keys"),entries:C},m)for(x in b)x in j||i(j,x,b[x]);else o(o.P+o.F*(d||E),e,b);return b}},function(t,e,n){var r=n(0),o=n(8),i=n(51),u=n(2),a="prototype",c=function(t,e,n){var f,s,l,p=t&c.F,d=t&c.G,v=t&c.S,h=t&c.P,g=t&c.B,y=t&c.W,m=d?o:o[e]||(o[e]={}),b=m[a],x=d?r:v?r[e]:(r[e]||{})[a];d&&(n=e);for(f in n)(s=!p&&x&&void 0!==x[f])&&f in m||(l=s?x[f]:n[f],m[f]=d&&"function"!=typeof x[f]?n[f]:g&&s?i(l,r):y&&x[f]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new
t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[a]=t[a],e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((m.virtual||(m.virtual={}))[f]=l,t&c.R&&b&&!b[f]&&u(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){t.exports=!n(4)&&!n(10)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=n(2)},function(t,e,n){var r=n(9),o=n(54),i=n(22),u=n(20)("IE_PROTO"),a=function(){},c=function(){var t,e=n(30)("iframe"),r=i.length;for(e.style.display="none",n(59).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype=null,n[u]=t):n
=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(1),o=n(5),i=n(56)(!1),u=n(20)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,f=[];for(n in a)n!=u&&r(a,n)&&f.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(f,n)||f.push(n));return f}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(33),o=n(22).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=u(n(38)),o=u(n(79)),i=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(13));function u(t){return t&&t.__esModule?t:{default:t}}try{weex.requireModule("titleBar").showTitleBar(!1)}catch(t){}Vue.mixin(o.default),setTimeout(function(){i.fetchExamples(i.saveExamples),i.fetchGuide(i.saveGuide),i.fetchAbout(i.saveAbout)},10),r.default.el="#root",new Vue(r.default)}
,function(t,e,n){var r,o,i=[];i.push(n(39)),r=n(40);var u=n(78);if(o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o=r=r.default),"function"==typeof o&&(o=o.options),o.__file="/Users/Hanks/Codes/work/weex-vue-examples/src/pages/Landing.vue",o.render=u.render,o.staticRenderFns=u.staticRenderFns,o._scopeId="data-v-50791ba3",o.style=o.style||{},i.forEach(function(t){for(var e in t)o.style[e]=t[e]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(o._scopeId,i)}catch(t){}t.exports=r},function(t,e){t.exports={doodle:{width:"750",height:"880"},"menu-list":{flex:1},"menu-row":{flex:1,flexDirection:"row",justifyContent:"center",borderTopWidth:"1",borderTopStyle:"solid",borderTopColor:"#CCCCCC"},"menu-item":{flex:1,backgroundColor:"#FBFBFB",justifyContent:"center",paddingTop:"50",paddingBottom:"50","back
groundColor:active":"#F2F2F2"},"menu-item-1":{borderRightWidth:"1",borderRightStyle:"solid",borderRightColor:"#CCCCCC"},"menu-text":{textAlign:"center",fontSize:"52",fontWeight:"bold",color:"#8B8B8B"},"menu-text-zh":{fontSize:"56"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(41),i=(r=o)&&r.__esModule?r:{default:r};e.default={components:{Doodle:i.default},data:function(){return{language:"en",menus:[[{name:"guide",title:{en:"Guide",zh:"教程"}},{name:"examples",title:{en:"Examples",zh:"实例"}}],[{name:"news",title:{en:"News",zh:"资讯"}},{name:"about",title:{en:"About",zh:"关于"}}]]}}}},function(t,e,n){var r,o,i=[];i.push(n(42)),r=n(43);var u=n(77);if(o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o=r=r.default),"function"==typeof o&&(o=o.options),o.__file="/Users/Hanks/Codes/
work/weex-vue-examples/src/components/Doodle.vue",o.render=u.render,o.staticRenderFns=u.staticRenderFns,o._scopeId="data-v-312c24c9",o.style=o.style||{},i.forEach(function(t){for(var e in t)o.style[e]=t[e]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(o._scopeId,i)}catch(t){}t.exports=r},function(t,e){t.exports={wrapper:{alignItems:"center",justifyContent:"space-between",backgroundColor:"#FFFFFF"},center:{alignItems:"center",justifyContent:"center"},logo:{width:"750",height:"318"},btn:{width:"450",height:"160",marginTop:"50",marginRight:"50",marginBottom:"50",marginLeft:"50",opacity:.7,"opacity:active":1},"scan-bg":{width:"450",height:"160",position:"absolute",top:0,left:0},"btn-text":{color:"#505050",fontSize:"56",textAlign:"center"},"btn-text-zh":{fontSize:"64"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13),o=(weex.requireModule("modal"),weex.requireModule("navigator")),i=weex.requireModule("event")
;e.default={props:["lang"],data:function(){return{language:this.lang||"en",showDoodle:!1,seenDoodle:!1,SCAN:{en:"Scan QR Code",zh:"扫描二维码"},doodle:{}}},beforeCreate:function(){var t=this;(0,r.fetchDoodle)(function(e){var n,r,o=e.doodle;n=o,r=(new Date).getTime(),n&&n.src&&parseInt(n.from,10)<r&&r<parseInt(n.to,10)&&!t.seenDoodle&&(t.doodle=o,t.showDoodle=!0,setTimeout(function(){t.showDoodle=!1,t.seenDoodle=!0},o.duration||8e3))})},methods:{scan:function(){try{i.openURL("weex://go/scan")}catch(t){try{o.push({url:"weex://go/scan"})}catch(t){}}},magic:function(){this.doodle&&this.doodle.next&&(this.showDoodle=!1,o.push({url:this.createURL(this.doodle.next,{language:this.language})}))}}}},function(t,e,n){t.exports={default:n(45),__esModule:!0}},function(t,e,n){var r=n(8),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(47)),o=u(n(66)),i="function"==typeof o.default
&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,n){t.exports={default:n(48),__esModule:!0}},function(t,e,n){n(49),n(62),t.exports=n(24).f("iterator")},function(t,e,n){"use strict";var r=n(50)(!0);n(27)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(14),o=n(15);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),c=r(n),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charC
odeAt(c))<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){var r=n(52);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(32),o=n(11),i=n(23),u={};n(2)(u,n(6)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(9),i=n(19);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,c=0;a>c;)r.f(t,n=u[c++],e[n]);return t}},function(t,e,n){var r=n(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"
String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(5),o=n(57),i=n(58);t.exports=function(t){return function(e,n,u){var a,c=r(e),f=o(c.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(14),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(14),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(1),o=n(61),i=n(20)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(63);for(var r=n(0),o=n(2),i=n(18),u=n(6)("toStringTag"),a="CSSRuleList,CSSStyleDeclara
tion,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var f=a[c],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,e,n){"use strict";var r=n(64),o=n(65),i=n(18),u=n(5);t.exports=n(27)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(67
),__esModule:!0}},function(t,e,n){n(68),n(74),n(75),n(76),t.exports=n(8).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(4),u=n(28),a=n(31),c=n(69).KEY,f=n(10),s=n(21),l=n(23),p=n(12),d=n(6),v=n(24),h=n(25),g=n(70),y=n(71),m=n(9),b=n(7),x=n(5),w=n(17),_=n(11),O=n(32),S=n(72),E=n(73),j=n(3),L=n(19),A=E.f,C=j.f,P=S.f,M=r.Symbol,T=r.JSON,D=T&&T.stringify,R="prototype",k=d("_hidden"),N=d("toPrimitive"),F={}.propertyIsEnumerable,I=s("symbol-registry"),U=s("symbols"),G=s("op-symbols"),W=Object[R],X="function"==typeof M,B=r.QObject,q=!B||!B[R]||!B[R].findChild,z=i&&f(function(){return 7!=O(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=A(W,e);r&&delete W[e],C(t,e,n),r&&t!==W&&C(W,e,r)}:C,V=function(t){var e=U[t]=O(M[R]);return e._k=t,e},H=X&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},J=function(t,e,n){return t===W&&J(G,e,n),m(t),e=w(e,!0),m(n),o(U,e)?(n.enumerable?(o(t,k)&&t[k][e]&&(
t[k][e]=!1),n=O(n,{enumerable:_(0,!1)})):(o(t,k)||C(t,k,_(1,{})),t[k][e]=!0),z(t,e,n)):C(t,e,n)},Y=function(t,e){m(t);for(var n,r=g(e=x(e)),o=0,i=r.length;i>o;)J(t,n=r[o++],e[n]);return t},K=function(t){var e=F.call(this,t=w(t,!0));return!(this===W&&o(U,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,k)&&this[k][t])||e)},Q=function(t,e){if(t=x(t),e=w(e,!0),t!==W||!o(U,e)||o(G,e)){var n=A(t,e);return!n||!o(U,e)||o(t,k)&&t[k][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=P(x(t)),r=[],i=0;n.length>i;)o(U,e=n[i++])||e==k||e==c||r.push(e);return r},Z=function(t){for(var e,n=t===W,r=P(n?G:x(t)),i=[],u=0;r.length>u;)!o(U,e=r[u++])||n&&!o(W,e)||i.push(U[e]);return i};X||(a((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(G,n),o(this,k)&&o(this[k],t)&&(this[k][t]=!1),z(this,t,_(1,n))};return i&&q&&z(W,t,{configurable:!0,set:e}),V(t)})[R],"toString",function(){return this._k}
),E.f=Q,j.f=J,n(36).f=S.f=$,n(26).f=K,n(35).f=Z,i&&!n(16)&&a(W,"propertyIsEnumerable",K,!0),v.f=function(t){return V(d(t))}),u(u.G+u.W+u.F*!X,{Symbol:M});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=L(d.store),rt=0;nt.length>rt;)h(nt[rt++]);u(u.S+u.F*!X,"Symbol",{for:function(t){return o(I,t+="")?I[t]:I[t]=M(t)},keyFor:function(t){if(!H(t))throw TypeError(t+" is not a symbol!");for(var e in I)if(I[e]===t)return e},useSetter:function(){q=!0},useSimple:function(){q=!1}}),u(u.S+u.F*!X,"Object",{create:function(t,e){return void 0===e?O(t):Y(O(t),e)},defineProperty:J,defineProperties:Y,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),T&&u(u.S+u.F*(!X||f(function(){var t=M();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n
=e=r[1],(b(e)||void 0!==t)&&!H(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!H(e))return e}),r[1]=e,D.apply(T,r)}}),M[R][N]||n(2)(M[R],N,M[R].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(12)("meta"),o=n(7),i=n(1),u=n(3).f,a=0,c=Object.isExtensible||function(){return!0},f=!n(10)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";s(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,r)&&s(t),t}}},function(t,e,n){var r=n(19),o=n(35),i=n(26);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var u,a=n(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&e.push(u);return e}},function(t,e,n){var r=n(34);t.exports=Arr
ay.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5),o=n(36).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(26),o=n(11),i=n(5),u=n(17),a=n(1),c=n(29),f=Object.getOwnPropertyDescriptor;e.f=n(4)?f:function(t,e){if(t=i(t),e=u(e,!0),c)try{return f(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(25)("asyncIterator")},function(t,e,n){n(25)("observable")},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:["wrapper"]},[this.showDoodle&&this.doodle.src?e("embed",{staticStyle:{flex:"1"},attrs:{src:this._f("url")(this.doodle.src)},on:{click:this.magic}}):e("div",{staticClass:["center"],staticStyle:{flex:"1"}},[e("image",{staticClass:["logo"],attr
s:{src:"https://gw.alicdn.com/tfs/TB1Q9VBkRfH8KJjy1XbXXbLdXXa-3799-1615.png"}}),e("div",{staticClass:["btn","center"],on:{click:this.scan}},[e("image",{staticClass:["scan-bg"],attrs:{src:"https://gw.alicdn.com/tfs/TB1qnO0kLDH8KJjy1XcXXcpdXXa-900-320.png"}}),e("text",{class:["btn-text","btn-text-"+this.language]},[this._v(this._s(this.i18n(this.SCAN)))])])])])},staticRenderFns:[]},t.exports.render._withStripped=!0},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:["wrapper"]},[n("doodle",{staticClass:["doodle"],attrs:{lang:t.language}}),n("div",{staticClass:["menu-list"]},t._l(t.menus,function(e,r){return n("div",{key:r,class:["menu-row","menu-row-"+(r+1)]},t._l(e,function(e,r){return n("a",{key:e.name,class:["menu-item","menu-item-"+(r+1)],attrs:{href:t._f("link")(e.name,{language:t.language})}},[n("text",{class:["menu-text","menu-text-"+t.language]},[t._v(t._s(t.i18n(e.title)))])])}))}))],1)},staticRenderFns:[]},t.
exports.render._withStripped=!0},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(13));var o=weex.requireModule("storage");e.default={filters:{i18n:r.i18n,url:r.createURL,link:r.createLink},methods:{createLink:r.createLink,createURL:r.createURL,i18n:r.i18n,getLanguage:r.getLanguage,fetchData:r.fetchData,saveData:r.saveData,readData:r.readData,jumpTo:r.jumpTo},created:function(){var t=this;r.getLanguage(function(e){t.language=e,r.setTitleBar(t.navigationBarOptions,e)}),new BroadcastChannel("language").onmessage=function(e){e.data&&e.data.language&&(t.language=e.data.language)}},beforeDestroy:function(){o.removeItem("CURRENT_DOCUMENT_URL"),o.removeItem("CURRENT_SOURCE_HASH")}}}]);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/bundlejs/lesson.weex.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/lesson.weex.js b/ios/playground/bundlejs/lesson.weex.js
new file mode 100644
index 0000000..d7d88d0
--- /dev/null
+++ b/ios/playground/bundlejs/lesson.weex.js
@@ -0,0 +1,4 @@
+// { "framework": "Vue" }
+"use weex:vue";
+
+!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=9)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){e.exports=!n(3)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e
&&(__e=n)},function(e,t,n){var o=n(6),r=n(7);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(30);e.exports=Object("z").propertyIsEnumerable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t,n){"use strict";var o,r=n(10),i=(o=r)&&o.__esModule?o:{default:o},c=n(42);Vue.filter("url",c.createURL),Vue.mixin({methods:{i18n:c.i18n,createURL:c.createURL,jumpTo:c.jumpTo}}),i.default.el="#root",new Vue(i.default)},function(e,t,n){var o,r,i=[];i.push(n(11)),o=n(12);var c=n(41);if(r=o=o||{},"object"!=typeof o.default&&"function"!=typeof o.default||(Object.keys(o).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.error("named exports are not supported in *.vue files."),r=o=o.default),"function"==typeof r&&(r=r.options),r.__file="/User
s/Hanks/Codes/work/weex-vue-examples/src/pages/Lesson.vue",r.render=c.render,r.staticRenderFns=c.staticRenderFns,r._scopeId="data-v-0ade5a48",r.style=r.style||{},i.forEach(function(e){for(var t in e)r.style[t]=e[t]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(r._scopeId,i)}catch(e){}e.exports=o},function(e,t){e.exports={banner:{height:"350",boxShadow:"0 5px 10px rgba(0, 0, 0, 0.2)",marginBottom:"10"},center:{alignItems:"center",justifyContent:"center"},title:{textAlign:"center",marginTop:"60",marginBottom:"60",color:"#606060"},lesson:{borderBottomWidth:"1",borderBottomStyle:"solid",borderBottomColor:"#EEEEEE",flexDirection:"row",alignItems:"center"},"lesson-zh":{width:"600"},"lesson-en":{width:"630"},"lesson-index":{color:"#777777",textAlign:"right",paddingRight:"30"},"lesson-title":{paddingTop:"35",paddingBottom:"35"},"lesson-index-zh":{fontSize:"46",width:"120"},"lesson-title-zh":{fontSize:"42",width:"480"},"lesson-index-en":{fontSize:"42",wid
th:"100"},"lesson-title-en":{fontSize:"38",width:"530"},footer:{height:"120",paddingTop:"40"},copyright:{fontSize:"22",color:"#A0A0A0",textAlign:"center"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r=n(13),i=(o=r)&&o.__esModule?o:{default:o};var c={mainColor:"#00B4FF",poster:"https://gw.alicdn.com/tfs/TB17hlIdgoQMeJjy0FpXXcTxpXa-328-328.png",posterBg:"#E5F7FF",title:{zh:"学习 Weex",en:"Learn Weex"},copyright:{zh:"来自 http://weex-project.io/cn/",en:"From http://weex-project.io/"},lessons:[{title:{zh:"快速上手",en:"Get Started"},docLink:{zh:"http://weex-project.io/cn/guide/index.html",en:"http://weex-project.io/guide/index.html"}},{title:{zh:"工作原理",en:"How it works"},docLink:{zh:"http://weex-project.io/cn/guide/intro/how-it-works.html",en:"http://weex-project.io/guide/intro/how-it-works.html"}},{title:{zh:"用 Weex 构建移动应用",en:"Mobile App Architecture"},docLink:{zh:"http://weex-project.io/cn/guide/intro/app-archite
cture.html",en:"http://weex-project.io/guide/intro/app-architecture.html"}},{title:{zh:"Weex 页面结构",en:"Weex Page Architecture"},docLink:{zh:"http://weex-project.io/cn/guide/intro/page-architecture.html",en:"http://weex-project.io/guide/intro/page-architecture.html"}},{title:{zh:"集成 Weex 到已有应用",en:"Integrate to Your App"},docLink:{zh:"http://weex-project.io/cn/guide/integrate-to-your-app.html",en:"http://weex-project.io/guide/integrate-to-your-app.html"}},{title:{zh:"和 Web 平台的差异",en:"Platform difference with Web"},docLink:{zh:"http://weex-project.io/cn/references/platform-difference.html",en:"http://weex-project.io/references/platform-difference.html"}},{title:{zh:"搭建开发环境",en:"Set Up Dev Environment"},docLink:{zh:"http://weex-project.io/cn/guide/set-up-env.html",en:"http://weex-project.io/guide/set-up-env.html"}},{title:{zh:"使用 Vue 开发页面",en:"Using Vue"},docLink:{zh:"http://weex-project.io/cn/guide/intro/using-vue.html",en:"htt
p://weex-project.io/guide/intro/using-vue.html"}},{title:{zh:"Vue 在 Weex 中的差异",en:"Vue.js Difference with Web"},docLink:{zh:"http://weex-project.io/cn/references/vue/difference-with-web.html",en:"http://weex-project.io/references/vue/difference-with-web.html"}},{title:{zh:"通用样式",en:"Common Styles"},docLink:{zh:"http://weex-project.io/cn/references/common-style.html",en:"http://weex-project.io/references/common-style.html"}},{title:{zh:"通用事件",en:"Common Events"},docLink:{zh:"http://weex-project.io/cn/references/common-event.html",en:"http://weex-project.io/references/common-event.html"}},{title:{zh:"手势",en:"Gestures"},docLink:{zh:"http://weex-project.io/cn/references/gesture.html",en:"http://weex-project.io/references/gesture.html"}},{title:{zh:"Weex 实例变量",en:'The "weex" Variable'},docLink:{zh:"http://weex-project.io/cn/references/weex-variable.html",en:"http://weex-project.io/references/weex-variable.html"}},{title:{zh:"内置组件",en:"Build-i
n Components"},docLink:{zh:"http://weex-project.io/cn/references/components/index.html",en:"http://weex-project.io/references/components/index.html"}},{title:{zh:"内置模块",en:"Build-in Modules"},docLink:{zh:"http://weex-project.io/cn/references/modules/index.html",en:"http://weex-project.io/references/modules/index.html"}},{title:{zh:"Android 扩展",en:"Extend to Android"},docLink:{zh:"http://weex-project.io/cn/references/advanced/extend-to-android.html",en:"http://weex-project.io/references/advanced/extend-to-android.html"}},{title:{zh:"iOS 扩展",en:"Extend to iOS"},docLink:{zh:"http://weex-project.io/cn/references/advanced/extend-to-ios.html",en:"http://weex-project.io/references/advanced/extend-to-ios.html"}},{title:{zh:"Web 扩展",en:"Extend to Web"},docLink:{zh:"http://weex-project.io/cn/references/advanced/extend-to-html5.html",en:"http://weex-project.io/references/advanced/extend-to-html5.html"}},{title:{zh:"使用 weex-toolkit",en:"Using weex-toolkit"},docLink:{zh:"
http://weex-project.io/cn/guide/tools/toolkit.html",en:"http://weex-project.io/guide/tools/toolkit.html"}},{title:{zh:"集成 Devtools 到 Android",en:"Integrate Devtool to Android"},docLink:{zh:"http://weex-project.io/cn/references/advanced/integrate-devtool-to-android.html",en:"http://weex-project.io/references/advanced/integrate-devtool-to-android.html"}},{title:{zh:"集成 Devtools 到 iOS",en:"Integrate Devtool to iOS"},docLink:{zh:"http://weex-project.io/cn/references/advanced/integrate-devtool-to-ios.html",en:"http://weex-project.io/references/advanced/integrate-devtool-to-ios.html"}},{title:{zh:"使用 Vuex 和 vue-router",en:"Using Vuex and vue-router"},docLink:{zh:"http://weex-project.io/cn/references/vue/difference-of-vuex.html",en:"http://weex-project.io/references/vue/difference-of-vuex.html"}},{title:"JS Service",docLink:{zh:"http://weex-project.io/cn/references/js-service/index.html",en:"http://weex-project.io/references/js-service/index.html"}},{title:{zh:"如何参�
��社区",en:"How to Contribute"},docLink:{zh:"http://weex-project.io/cn/guide/contributing.html",en:"http://weex-project.io/guide/contributing.html"}},{title:"FAQ",docLink:{zh:"http://weex-project.io/cn/faq.html",en:"http://weex-project.io/faq.html"}}]},s={mainColor:"#f56fc6",poster:"https://gw.alicdn.com/tfs/TB1k6anhMMPMeJjy1XdXXasrXXa-427-190.jpg",posterBg:"#ffa2de",posterStyle:{width:"517px",height:"230px"},title:{zh:"学习 CSS",en:"Learn CSS"},copyright:{zh:"来自 MDN (Mozilla Developer Network)",en:"From MDN (Mozilla Developer Network)"},lessons:[{title:{zh:"什么是 CSS ?",en:"What is CSS ?"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Getting_started/What_is_CSS",en:"https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/What_is_CSS"}},{title:{zh:"CSS 语法",en:"CSS Syntax"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/Introduction_to_CSS/Syntax",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/Introducti
on_to_CSS/Syntax"}},{title:{zh:"CSS的值和单位",en:"CSS Values and Units"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/Introduction_to_CSS/Values_and_units",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Values_and_units"}},{title:{zh:"盒模型",en:"The Box Model"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/Introduction_to_CSS/Box_model",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Box_model"}},{title:{zh:"盒模型的属性",en:"Box Model Properties"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model",en:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model"}},{title:{zh:"定位布局",en:"Positioning"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/CSS_layout/%E5%AE%9A%E4%BD%8Dx",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/positioning"}},{title:{zh:"定位布局的属性",en:"CSS Positioning"},docLink:{zh
:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Positioning",en:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning"}},{title:{zh:"Flexbox 布局",en:"Flexbox Layout"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/CSS_layout/Flexbox",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox"}},{title:{zh:"Flexbox 布局的属性",en:"CSS Flexible Box Layout"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout",en:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout"}},{title:{zh:"Weex 中的通用样式",en:"Common Styles in Weex"},docLink:{zh:"http://weex-project.io/cn/references/common-style.html",en:"http://weex-project.io/references/common-style.html"}},{title:{zh:"Weex 中的文本样式",en:"Text Styles in Weex"},docLink:{zh:"http://weex-project.io/cn/references/text-style.html",en:"http://weex-project.io/references/text-style.html"}},{title:{zh:"块格式化上下文
(BFC)",en:"Block Formatting Context"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Block_formatting_context",en:"https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context"}},{title:{zh:"视觉格式化模型",en:"Visual Formatting Model"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Visual_formatting_model",en:"https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Visual_formatting_model"}},{title:"CSS Reference",docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference",en:"https://developer.mozilla.org/en-US/docs/Web/CSS/Reference"}}]},l={mainColor:"#F7BD2A",poster:"https://gw.alicdn.com/tfs/TB1bT98hMoQMeJjy0FpXXcTxpXa-1500-700.png",posterBg:"#FAF3EB",posterStyle:{width:"750px",height:"350px"},title:{zh:"学习 Javascript",en:"Learn Javascript"},copyright:{zh:"来自 MDN (Mozilla Developer Network)",en:"From MDN (Mozilla Developer Network)"},lessons:[{title:{zh:"什么是 Javascript ?",en:"What is
Javascript ?"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/What_is_JavaScript",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript"}},{title:{zh:"JavaScript基础",en:"JavaScript basics"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/Getting_started_with_the_web/JavaScript_basics",en:"https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics"}},{title:{zh:"重新介绍 JavaScript",en:"A re-introduction to JavaScript"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/A_re-introduction_to_JavaScript",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript"}},{title:{zh:"语法和数据类型",en:"Grammar and types"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Grammar_and_types#Variable_scope",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_t
ypes#Variable_scope"}},{title:{zh:"数据类型和数据结构",en:"Data types and data structures"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Data_structures",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures"}},{title:{zh:"变量",en:"Variables"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Variables",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Variables"}},{title:{zh:"数字和操作符",en:"Numbers and operators"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Math",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Math"}},{title:{zh:"字符串",en:"Handling text"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Strings",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Strings"}},{title:{zh:"常用的 String 方法",en:"Useful string methods"
},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Useful_string_methods",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Useful_string_methods"}},{title:{zh:"数组",en:"Arrays"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Arrays",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Arrays"}},{title:{zh:"函数",en:"Functions"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Functions",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions"}},{title:{zh:"JavaScript 对象基础",en:"JavaScript object basics"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/Basics",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics"}},{title:{zh:"使用对象",en:"Working with objects"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objec
ts",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects"}},{title:{zh:"使用 JSON 数据",en:"Working with JSON"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/JSON",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON"}},{title:{zh:"对象模型的细节",en:"Details of the object model"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Details_of_the_Object_Model"}},{title:{zh:"对象原型",en:"Object prototypes"},docLink:{zh:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes",en:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/Object_prototypes"}},{title:{zh:"JavaScript 中的继承",en:"Inheritance in JavaScript"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/Inheritance",en:"https://de
veloper.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Inheritance"}},{title:{zh:"继承与原型链",en:"Inheritance and the prototype chain"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Inheritance_and_the_prototype_chain",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain"}},{title:{zh:"严格模式",en:"Strict mode"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Strict_mode",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode"}},{title:{zh:"内存管理",en:"Memory Management"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Memory_Management",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management"}},{title:{zh:"并发模型与事件循环",en:"Concurrency model and Event Loop"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/EventLoop",en:"https://developer.mozilla.org/en-US/docs/We
b/JavaScript/EventLoop"}},{title:{zh:"JavaScript 标准库",en:"Standard built-in objects"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects"}}]},a={mainColor:"#42b983",poster:"https://gw.alicdn.com/tfs/TB1J_uKcMMPMeJjy1XdXXasrXXa-400-400.png",posterBg:"#E7FBF2",title:{zh:"学习 Vue.js",en:"Learn Vue.js"},copyright:{zh:"来自 https://cn.vuejs.org/",en:"From https://vuejs.org/"},lessons:[{title:{zh:"Vue.js 是什么?",en:"What is Vue.js ?"},docLink:{zh:"https://cn.vuejs.org/v2/guide/index.html",en:"https://vuejs.org/v2/guide/index.html"}},{title:{zh:"单文件组件",en:"Single File Components"},docLink:{zh:"https://cn.vuejs.org/v2/guide/single-file-components.html",en:"https://vuejs.org/v2/guide/single-file-components.html"}},{title:{zh:"模板语法",en:"Template Syntax"},docLink:{zh:"https://cn.vuejs.org/v2/guide/syntax.html",en:"https://vuejs.org/
v2/guide/syntax.html"}},{title:{zh:"Class 与 Style 绑定",en:"Class and Style Bindings"},docLink:{zh:"https://cn.vuejs.org/v2/guide/class-and-style.html",en:"https://vuejs.org/v2/guide/class-and-style.html"}},{title:{zh:"条件渲染",en:"Conditional Rendering"},docLink:{zh:"https://cn.vuejs.org/v2/guide/conditional.html",en:"https://vuejs.org/v2/guide/conditional.html"}},{title:{zh:"列表渲染",en:"List Rendering"},docLink:{zh:"https://cn.vuejs.org/v2/guide/list.html",en:"https://vuejs.org/v2/guide/list.html"}},{title:{zh:"事件处理",en:"Event Handling"},docLink:{zh:"https://cn.vuejs.org/v2/guide/events.html",en:"https://vuejs.org/v2/guide/events.html"}},{title:{zh:"表单输入绑定",en:"Form Input Bindings"},docLink:{zh:"https://cn.vuejs.org/v2/guide/forms.html",en:"https://vuejs.org/v2/guide/forms.html"}},{title:{zh:"Vue 实例",en:"The Vue Instance"},docLink:{zh:"https://cn.vuejs.org/v2/guide/instance.html",en:"https://vuejs.org/v2/guide/instance.html"}},{title:{zh:"在
Weex 中的差异",en:"Difference in Weex"},docLink:{zh:"http://weex-project.io/cn/references/vue/difference-with-web.html",en:"http://weex-project.io/references/vue/difference-with-web.html"}},{title:{zh:"混合(mixins)",en:"Mixins"},docLink:{zh:"https://cn.vuejs.org/v2/guide/mixins.html",en:"https://vuejs.org/v2/guide/mixins.html"}},{title:{zh:"过滤器(filters)",en:"Filters"},docLink:{zh:"https://cn.vuejs.org/v2/guide/filters.html",en:"https://vuejs.org/v2/guide/filters.html"}},{title:{zh:"插件(plugins)",en:"Plugins"},docLink:{zh:"https://cn.vuejs.org/v2/guide/plugins.html",en:"https://vuejs.org/v2/guide/plugins.html"}},{title:{zh:"自定义指令",en:"Custom Directives"},docLink:{zh:"https://cn.vuejs.org/v2/guide/custom-directive.html",en:"https://vuejs.org/v2/guide/custom-directive.html"}},{title:{zh:"状态管理",en:"State Management"},docLink:{zh:"https://cn.vuejs.org/v2/guide/state-management.html",en:"https://vuejs.org/v2/guide/state-management.html"}},{tit
le:{zh:"深入响应式原理",en:"Reactivity in Depth"},docLink:{zh:"https://cn.vuejs.org/v2/guide/reactivity.html",en:"https://vuejs.org/v2/guide/reactivity.html"}},{title:{zh:"渲染函数",en:"Render Functions"},docLink:{zh:"https://cn.vuejs.org/v2/guide/render-function.html",en:"https://vuejs.org/v2/guide/render-function.html"}},{title:{zh:"TypeScript 支持",en:"TypeScript Support"},docLink:{zh:"https://cn.vuejs.org/v2/guide/typescript.html",en:"https://vuejs.org/v2/guide/typescript.html"}},{title:"API",docLink:{zh:"https://cn.vuejs.org/v2/api/",en:"https://vuejs.org/v2/api/"}}]},p={startAt:0,mainColor:"#42b983",poster:"https://gw.alicdn.com/tfs/TB1j0fGdaagSKJjy0FbXXa.mVXa-700-328.png",title:"使用 Weex 和 Vue 开发原生应用",titleFontSize:46,posterStyle:{width:"650px",height:"304px"},copyright:{zh:"来自 SegmentFault",en:"From SegmentFault"},lessons:[{title:"项目介绍和文章目录",docLink:"https://segmentfault.com/a/1190000008342533"},{title:"如何配置开发�
�境",docLink:"https://segmentfault.com/a/1190000008344148"},{title:"编写独立页面",docLink:"https://segmentfault.com/a/1190000008366358"},{title:"使用 Vue 框架的特性",docLink:"https://segmentfault.com/a/1190000008432907"},{title:"使用 Weex 平台的功能",docLink:"https://segmentfault.com/a/1190000008464683"},{title:"使用 Vuex",docLink:"https://segmentfault.com/a/1190000008520677"},{title:"使用 vue-router",docLink:"https://segmentfault.com/a/1190000009101411"},{title:"完整项目目录详解",docLink:"https://segmentfault.com/a/1190000009101907"}]},h=(weex.requireModule("navigator"),weex.requireModule("clipboard")),d=weex.requireModule("storage"),u=weex.requireModule("modal");t.default={data:function(){var e=/.+\/?[\?\&]{1}subject=([\d\w]+)$/i.exec(weex.config.bundleUrl||""),t="weex";e&&(t=e[1]);var n=c;switch(t.toLowerCase()){case"vue":n=a;break;case"javascript":case"js":n=l;break;case"css":n=s;break;case"hackernews":n=p}return(0,i.default)({subject:t,language:
"en",startAt:1,titleFontSize:"60px",posterBg:"#F5F5F5",posterStyle:{width:"300px",height:"300px"},mainColor:"#00B4FF"},n)},beforeCreate:function(){var e=this;d.getItem("WEEX_PLAYGROUND_LANGUAGE",function(t){"success"===t.result&&(e.language=t.data)})},methods:{copyLinks:function(){var e=this;u.confirm({message:this.i18n({en:"Copy all article address ?",zh:"复制所有文章链接?"})},function(t){if("OK"===t){var n=e.i18n(e.title)+"\n\n";n+=e.lessons.map(function(t,n){return n+e.startAt+". "+e.i18n(t.title)+" "+e.i18n(t.docLink)}).join("\n"),n+="\n\n"+e.i18n(e.copyright),h.setString(n),u.toast({message:e.i18n({en:"Article address is copied",zh:"文章链接已复制"})})}})}}}},function(e,t,n){e.exports={default:n(14),__esModule:!0}},function(e,t,n){n(15),e.exports=n(4).Object.assign},function(e,t,n){var o=n(16);o(o.S+o.F,"Object",{assign:n(26)})},function(e,t,n){var o=n(0),r=n(4),i=n(17),c=n(19),s="prototype",l=function(e,t,n){var a,p,h,d=e&l.F,u=e&l.G,f=e&l.S,v=e&l.P,g=e&l.B,m=
e&l.W,z=u?r:r[t]||(r[t]={}),S=z[s],x=u?o:f?o[t]:(o[t]||{})[s];u&&(n=t);for(a in n)(p=!d&&x&&void 0!==x[a])&&a in z||(h=p?x[a]:n[a],z[a]=u&&"function"!=typeof x[a]?n[a]:g&&p?i(h,o):m&&x[a]==h?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t[s]=e[s],t}(h):v&&"function"==typeof h?i(Function.call,h):h,v&&((z.virtual||(z.virtual={}))[a]=h,e&l.R&&S&&!S[a]&&c(S,a,h)))};l.F=1,l.G=2,l.S=4,l.P=8,l.B=16,l.W=32,l.U=64,l.R=128,e.exports=l},function(e,t,n){var o=n(18);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},fu
nction(e,t,n){var o=n(20),r=n(25);e.exports=n(2)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(21),r=n(22),i=n(24),c=Object.defineProperty;t.f=n(2)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return c(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){var o=n(1);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t,n){e.exports=!n(2)&&!n(3)(function(){return 7!=Object.defineProperty(n(23)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(1),r=n(0).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){var o=n(1);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e
.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t,n){"use strict";var o=n(27),r=n(38),i=n(39),c=n(40),s=n(6),l=Object.assign;e.exports=!l||n(3)(function(){var e={},t={},n=Symbol(),o="abcdefghijklmnopqrst";return e[n]=7,o.split("").forEach(function(e){t[e]=e}),7!=l({},e)[n]||Object.keys(l({},t)).join("")!=o})?function(e,t){for(var n=c(e),l=arguments.length,a=1,p=r.f,h=i.f;l>a;)for(var d,u=s(arguments[a++]),f=p?o(u).concat(p(u)):o(u),v=f.length,g=0;v>g;)h.call(u,d=f[g++])&&(n[d]=u[d]);return n}:l},function(e,t,n){var o=n(28),r=n(37);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){var o=n(29),r=n(5),i=n(31)(!1),c=n(34)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),l=0,a=[];for(n in s)n!=c&&o(s,n)&&a.push(n);for(;t.length>l;)o(s,n=t[l++])&&(~i(a,n)||a.push(n));return a}},function(e,t){var n={}.has
OwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t,n){var o=n(5),r=n(32),i=n(33);e.exports=function(e){return function(t,n,c){var s,l=o(t),a=r(l.length),p=i(c,a);if(e&&n!=n){for(;a>p;)if((s=l[p++])!=s)return!0}else for(;a>p;p++)if((e||p in l)&&l[p]===n)return e||p||0;return!e&&-1}}},function(e,t,n){var o=n(8),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(8),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(35)("keys"),r=n(36);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(0),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});e.exports=function(e){return r[e]||(r[e]={})}},function(e,t){var n=0,o=Math.random();e.exports=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){e.exports="constructor,hasOwnPropert
y,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){var o=n(7);e.exports=function(e){return Object(o(e))}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("list",{staticClass:["wrapper"]},[n("cell",{appendAsTree:!0,attrs:{append:"tree"},on:{longpress:e.copyLinks}},[n("div",{staticClass:["banner","center"],style:{backgroundColor:e.posterBg}},[n("image",{staticClass:["poster"],style:e.posterStyle,attrs:{resize:"cover",src:e.poster}})])]),n("cell",{staticClass:["center"],appendAsTree:!0,attrs:{append:"tree"},on:{longpress:e.copyLinks}},[n("text",{staticClass:["title"],style:{fontSize:e.titleFontSize}},[e._v(e._s(e.i18n(e.title)))])]),e._l(e.lessons,function(t,o){return n("cell",{key:o,staticClass:["center"],appendAsTree:!0,attrs:{append:"tree"}},[n("div",{class:["lesson","lesson-"+e.language],on:{click
:function(n){e.jumpTo(t.docLink)}}},[n("text",{class:["lesson-index","lesson-index-"+e.language]},[e._v(e._s(e.startAt+o)+".")]),n("text",{class:["lesson-title","lesson-title-"+e.language],style:{color:e.mainColor}},[e._v(e._s(e.i18n(t.title)))])])])}),n("cell",{staticClass:["footer","center"],appendAsTree:!0,attrs:{append:"tree"}},[n("text",{staticClass:["copyright"]},[e._v(e._s(e.i18n(e.copyright)))])])],2)},staticRenderFns:[]},e.exports.render._withStripped=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.createLink=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];for(var o in t)"string"==typeof t[o]&&n.push(o+"="+t[o]);if("Web"===WXEnvironment.platform)return n.unshift("page="+e+".web.js"),"/?"+n.join("&");return""+function(){var e=weex.config.bundleUrl,t=e.indexOf("your_current_IP")>=0||e.indexOf("file://assets/")>=0,n=e.indexOf("file:///")>=0&&e.indexOf("WeexDemo.app")>0;if(t)return"file://assets/";if(n)return
e.substring(0,e.lastIndexOf("/")+1);return""}()+e+".weex.js"+(n.length?"?"+n.join("&"):"")},t.createURL=c,t.i18n=s,t.setLanguage=function(e){r.setItem("WEEX_PLAYGROUND_LANGUAGE",e||"en")},t.getLanguage=l,t.jumpTo=function(e){var t={en:"06f6a4f7a03ceffc93ec09ddaebb0a51",zh:"fa7d084ea1dc617e1c4e03ecd65263db"},n=function(n){r.setItem("CURRENT_DOCUMENT_URL",s(e,n)),i.push({url:c(s(t,n))})};l(function(e){return n(e)},function(e){return n("en")})},t.viewSource=function(e){var t={en:"032afafed7947de7d5123a45b3ca9704",zh:"785cf2804ac6a6dd807a0c988b5729cd"},n=function(n){r.setItem("CURRENT_SOURCE_HASH",s(e,n)),i.push({url:c(s(t,n))})};l(function(e){return n(e)},function(e){return n("en")})},t.fetchData=a,t.fetchDoodle=function(e,t){a("doodle",e,t)},t.fetchExamples=function(e,t){a("examples",e,t)},t.fetchNews=function(e,t){a("news",e,t)};var o=weex.requireModule("stream"),r=weex.requireModule("storage"),i=weex.requireModule("navigator");function c(e){if("Web"===WXEnvironment.platform)return"h
ttp://dotwe.org/raw/htmlVue/"+e;var t="http://dotwe.org/raw/dist/"+e+".bundle.wx";return t+"?_wx_tpl="+t}function s(e,t){return"string"==typeof e?e:"[object Object]"===Object.prototype.toString.call(e)?e[this&&this.language||t||"en"]:void 0}function l(e,t){try{r.getItem("WEEX_PLAYGROUND_LANGUAGE",function(n){"success"===n.result&&"function"==typeof e?e(n.data):"function"==typeof t&&t(n)})}catch(e){"function"==typeof t&&t(e)}}function a(e,t,n){try{o.fetch({url:"http://dotwe.org/query/weex-playground-app",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"json",body:"name="+e},function(e){e.ok&&e.data&&"function"==typeof t?t(e.data):"function"==typeof n&&n(e)})}catch(e){"function"==typeof n&&n(e)}}}]);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/bundlejs/news.weex.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/news.weex.js b/ios/playground/bundlejs/news.weex.js
new file mode 100644
index 0000000..9ffb909
--- /dev/null
+++ b/ios/playground/bundlejs/news.weex.js
@@ -0,0 +1,4 @@
+// { "framework": "Vue" }
+"use weex:vue";
+
+!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=37)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(3),o=n(11);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(9),o=n(29),i=n(16),u=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)tr
y{return u(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(52),o=n(14);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(20)("wks"),o=n(12),i=n(0).Symbol,u="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=u&&i[t]||(u?i:o)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.expo
rts=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!0},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,n){var r=n(33),o=n(21);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20)("keys"),o=n(12);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e
){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(3).f,o=n(1),i=n(6)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(6)},function(t,e,n){var r=n(0),o=n(8),i=n(15),u=n(23),a=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||a(e,t,{value:u.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fetchNews=e.fetchDoodle=e.readAbout=e.saveAbout=e.fetchAbout=e.readGuide=e.saveGuide=e.fetchGuide=e.readExamples=e.saveExamples=e.fetchExamples=void 0;var r=i(n(41)),o=i(n(43));function i(t){return t&&t.__esModule?t:{default:t}}e.createLink=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];for(var r in e)"string"==typeof e[r]&&n.push(f(r)+"="+f(e[r]));if("Web"===WXEnviron
ment.platform)return n.unshift("page="+t+".web.js"),"/?"+n.join("&");return""+function(){var t=weex.config.bundleUrl,e=t.indexOf("your_current_IP")>=0||t.indexOf("file://assets/")>=0,n=t.indexOf("file:///")>=0&&t.indexOf("WeexDemo.app")>0;if(e)return"file://assets/";if(n)return t.substring(0,t.lastIndexOf("/")+1);return""}()+t+".weex.js"+(n.length?"?"+n.join("&"):"")},e.createURL=s,e.i18n=l,e.parseLanguage=d,e.setLanguage=function(t){var e=d(t);e&&a.setItem("WEEX_PLAYGROUND_LANGUAGE",e)},e.clearStorageLanguage=function(){a.removeItem("WEEX_PLAYGROUND_LANGUAGE")},e.getStorageLanguage=v,e.getSystemLanguage=g,e.getLanguage=h,e.jumpTo=function(t,e){h(function(n){a.setItem("CURRENT_DOCUMENT_URL",l(t,n)),c.push({url:s("bf0305c14b511b24a4e616f53926432b",{language:n,title:l(e,n)})})})},e.viewSource=function(t){h(function(e){c.push({url:s("f6ce29faf686eabc38b410bf4828fa5a",{hash:t,language:e})})})},e.setTitleBar=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if
("[object Object]"!==Object.prototype.toString.apply(t))return;var n=weex.requireModule("titleBar");if(t.color||t.backgroundColor)try{n.setStyle({foregroundColor:t.color||"#FFFFFF",backgroundColor:t.backgroundColor||"#00B4FF"})}catch(t){}var r=l(t.title,e);if(r)try{n.setTitle(r)}catch(t){}},e.fetchData=b,e.saveData=x,e.readData=_;var u=weex.requireModule("stream"),a=weex.requireModule("storage"),c=weex.requireModule("navigator"),f="function"==typeof encodeURIComponent?encodeURIComponent:"function"==typeof encodeURI?encodeURI:function(t){return t};function s(t,e){if("Web"===WXEnvironment.platform)return"http://dotwe.org/raw/htmlVue/"+t;var n="http://dotwe.org/raw/dist/"+t+".bundle.wx",r=function(t){if(!t||"object"!==(void 0===t?"undefined":(0,o.default)(t)))return"";var e=[];for(var n in t)"string"==typeof t[n]&&e.push(f(n)+"="+f(t[n]));return e.join("&")}(e);return"TB"===WXEnvironment.appName?n+"?_wx_tpl="+n+"&"+r:"WXSample"===WXEnvironment.appName?n+"?"+r:n+"?wx_weex=true&"+r}funct
ion l(t,e){return"string"==typeof t?t:"[object Object]"===Object.prototype.toString.call(t)?t[this&&this.language||e||"en"]:void 0}var p=/(en|zh)\_?\w*/i;function d(t){var e=p.exec(t+"");return e&&e[1]?e[1]:""}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===t||(0,o.default)(t)))try{a.getItem("WEEX_PLAYGROUND_LANGUAGE",function(n){if("success"===n.result){var r=d(n.data);r?t(r):e()}else e(n)})}catch(t){e(t)}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===t||(0,o.default)(t)))if("web"===WXEnvironment.platform.toLowerCase()){var n=d(window.navigator.language);n?t(n):e()}else try{var r=weex.requireModule("locale")||weex.requireModule("local"),i=!1,u=d(r.getLanguage(function(n){var r=d(n);r?i||t(r):e()}));u?(i=!0,t(u)):e()}catch(t){e(t)}}var y=/.+[\?\&]{1}language=([\d\w]+)[\?\&]?.*/i;function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[
0]:function(){},e=y.exec(weex.config.bundleUrl||""),n=d(e&&e[1]);n?t(n):v(t,function(){g(t,function(){t("en")})})}var m={doodle:"WEEX_PLAYGROUND_APP_DOODLE",guide:"WEEX_PLAYGROUND_APP_GUIDE",examples:"WEEX_PLAYGROUND_APP_EXAMPLES",news:"WEEX_PLAYGROUND_APP_NEWS",about:"WEEX_PLAYGROUND_APP_ABOUT"};function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};try{u.fetch({url:"http://dotwe.org/query/weex-playground-app",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"json",body:"name="+t},function(t){t.ok&&t.data&&t.data.success?e(t.data):n(t)})}catch(t){n(t)}}function x(t,e){var n=m[t];n&&e&&"object"===(void 0===e?"undefined":(0,o.default)(e))&&(e.timestamp=Date.now(),a.setItem(n,(0,r.default)(e)))}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=m
[t];if(!r)return n();try{a.getItem(r,function(r){if("success"===r.result){var o=JSON.parse(r.data);if(o&&Array.isArray(o[t]))return e(o[t])}n(r)})}catch(t){n(t)}}e.fetchExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["examples"].concat(e))},e.saveExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["examples"].concat(e))},e.readExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return _.apply(void 0,["examples"].concat(e))},e.fetchGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["guide"].concat(e))},e.saveGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["guide"].concat(e))},e.readGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return _.apply(void 0,["guide"].concat(e))},e.fet
chAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["about"].concat(e))},e.saveAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["about"].concat(e))},e.readAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return _.apply(void 0,["about"].concat(e))},e.fetchDoodle=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["doodle"].concat(e))},e.fetchNews=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["news"].concat(e))}},function(t,e,n){"use strict";var r=n(15),o=n(28),i=n(31),u=n(2),a=n(1),c=n(17),f=n(50),s=n(22),l=n(57),p=n(6)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,g,y,h,m){f(n,e,g);var b,x,_,w=function(t){if(!d&&t in L)return L[t];switch(t){case"keys":case"values":return function(
){return new n(this,t)}}return function(){return new n(this,t)}},O=e+" Iterator",S="values"==y,E=!1,L=t.prototype,j=L[p]||L["@@iterator"]||y&&L[y],A=!d&&j||w(y),P=y?S?w("entries"):A:void 0,C="Array"==e?L.entries||j:j;if(C&&(_=l(C.call(new t)))!==Object.prototype&&_.next&&(s(_,O,!0),r||a(_,p)||u(_,p,v)),S&&j&&"values"!==j.name&&(E=!0,A=function(){return j.call(this)}),r&&!m||!d&&!E&&L[p]||u(L,p,A),c[e]=A,c[O]=v,y)if(b={values:S?A:w("values"),keys:h?A:w("keys"),entries:P},m)for(x in b)x in L||i(L,x,b[x]);else o(o.P+o.F*(d||E),e,b);return b}},function(t,e,n){var r=n(0),o=n(8),i=n(48),u=n(2),a="prototype",c=function(t,e,n){var f,s,l,p=t&c.F,d=t&c.G,v=t&c.S,g=t&c.P,y=t&c.B,h=t&c.W,m=d?o:o[e]||(o[e]={}),b=m[a],x=d?r:v?r[e]:(r[e]||{})[a];d&&(n=e);for(f in n)(s=!p&&x&&void 0!==x[f])&&f in m||(l=s?x[f]:n[f],m[f]=d&&"function"!=typeof x[f]?n[f]:y&&s?i(l,r):h&&x[f]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);cas
e 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[a]=t[a],e}(l):g&&"function"==typeof l?i(Function.call,l):l,g&&((m.virtual||(m.virtual={}))[f]=l,t&c.R&&b&&!b[f]&&u(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){t.exports=!n(4)&&!n(10)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=n(2)},function(t,e,n){var r=n(9),o=n(51),i=n(21),u=n(19)("IE_PROTO"),a=function(){},c=function(){var t,e=n(30)("iframe"),r=i.length;for(e.style.display="none",n(56).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(a.prototype=r(t),n=new a,a.prototype
=null,n[u]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(1),o=n(5),i=n(53)(!1),u=n(19)("IE_PROTO");t.exports=function(t,e){var n,a=o(t),c=0,f=[];for(n in a)n!=u&&r(a,n)&&f.push(n);for(;e.length>c;)r(a,n=e[c++])&&(~i(f,n)||f.push(n));return f}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(33),o=n(21).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=i(n(38)),o=i(n(75));function i(t){return t&&t.__esModule?t:{default:t}}Vue.mixin(o.default),r.default.el="#root",new Vue(r.default)},function(t,e,n){var r,o,i=[];i.push(n(39)),r=n(40);var u=n(74);if(o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o=r=r.default),"function"==typeof o&&(o=o.opt
ions),o.__file="/Users/Hanks/Codes/work/weex-vue-examples/src/pages/News.vue",o.render=u.render,o.staticRenderFns=u.staticRenderFns,o._scopeId="data-v-a2748412",o.style=o.style||{},i.forEach(function(t){for(var e in t)o.style[e]=t[e]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(o._scopeId,i)}catch(t){}t.exports=r},function(t,e){t.exports={list:{backgroundColor:"#F1F1F1"},cell:{alignItems:"center"},"message-time":{marginTop:"25",justifyContent:"center"},"time-text":{paddingTop:"5",paddingBottom:"5",paddingLeft:"18",paddingRight:"18",backgroundColor:"rgba(0,0,0,0.1)",fontSize:"25",borderRadius:"8",color:"#FEFEFE"},"message-box":{borderWidth:"1",borderColor:"#DDDDDD",borderRadius:"15",backgroundColor:"#FFFFFF",marginTop:"25",marginBottom:"35","backgroundColor:active":"#F8F8F8"},"related-article":{borderTopWidth:"1",borderTopColor:"#E6E6E6",flexDirection:"row",alignItems:"center",paddingTop:"10",paddingBottom:"15",paddingLeft:"30",paddingRight:"20",
backgroundColor:"#FEFEFE"},poster:{width:"680",height:"340",backgroundColor:"#D2D2D2"},title:{width:"680",paddingTop:"30",paddingRight:"30",paddingBottom:"30",paddingLeft:"30",fontSize:"38",color:"#323232"},shortcut:{width:"80",height:"80"},subtitle:{width:"550",paddingRight:"25",fontSize:"34",color:"#454545"},summary:{width:"680",marginTop:"-20",paddingLeft:"30",paddingRight:"30",paddingBottom:"30",fontSize:"28",color:"#929292",lines:3}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(26);e.default={data:function(){return{navigationBarOptions:{title:{zh:"资讯",en:"News"}},visibleCount:8,news:[]}},computed:{visibleNews:function(){return this.news.slice(0,this.visibleCount)}},beforeCreate:function(){var t=this;(0,r.fetchNews)(function(e){Array.isArray(e.news)&&(t.news=e.news)})}}},function(t,e,n){t.exports={default:n(42),__esModule:!0}},function(t,e,n){var r=n(8),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stri
ngify.apply(o,arguments)}},function(t,e,n){"use strict";e.__esModule=!0;var r=u(n(44)),o=u(n(63)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function u(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,n){t.exports={default:n(45),__esModule:!0}},function(t,e,n){n(46),n(59),t.exports=n(23).f("iterator")},function(t,e,n){"use strict";var r=n(47)(!0);n(27)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(13),o=n
(14);t.exports=function(t){return function(e,n){var i,u,a=String(o(e)),c=r(n),f=a.length;return c<0||c>=f?t?"":void 0:(i=a.charCodeAt(c))<55296||i>56319||c+1===f||(u=a.charCodeAt(c+1))<56320||u>57343?t?a.charAt(c):i:t?a.slice(c,c+2):u-56320+(i-55296<<10)+65536}}},function(t,e,n){var r=n(49);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(32),o=n(11),i=n(22),u={};n(2)(u,n(6)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(u,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(9),i=n(18);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,u=i(e),a=u.length,c=0;a>c;)r.f(
t,n=u[c++],e[n]);return t}},function(t,e,n){var r=n(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(5),o=n(54),i=n(55);t.exports=function(t){return function(e,n,u){var a,c=r(e),f=o(c.length),s=i(u,f);if(t&&n!=n){for(;f>s;)if((a=c[s++])!=a)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(13),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(13),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(1),o=n(58),i=n(19)("IE_PROTO"),u=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?u:null}},function(t,e,n){var r=n(14);t.exports=function(t
){return Object(r(t))}},function(t,e,n){n(60);for(var r=n(0),o=n(2),i=n(17),u=n(6)("toStringTag"),a="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<a.length;c++){var f=a[c],s=r[f],l=s&&s.prototype;l&&!l[u]&&o(l,u,f),i[f]=i.Array}},function(t,e,n){"use strict";var r=n(61),o=n(62),i=n(17),u=n(5);t.exports=n(27)(Array,"Array",function(t,e){this._t=u(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){
t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){n(65),n(71),n(72),n(73),t.exports=n(8).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(4),u=n(28),a=n(31),c=n(66).KEY,f=n(10),s=n(20),l=n(22),p=n(12),d=n(6),v=n(23),g=n(24),y=n(67),h=n(68),m=n(9),b=n(7),x=n(5),_=n(16),w=n(11),O=n(32),S=n(69),E=n(70),L=n(3),j=n(18),A=E.f,P=L.f,C=S.f,T=r.Symbol,D=r.JSON,N=D&&D.stringify,F="prototype",M=d("_hidden"),R=d("toPrimitive"),k={}.propertyIsEnumerable,U=s("symbol-registry"),I=s("symbols"),G=s("op-symbols"),W=Object[F],B="function"==typeof T,X=r.QObject,z=!X||!X[F]||!X[F].findChild,V=i&&f(function(){return 7!=O(P({},"a",{get:function(){return P(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=A(W,e);r&&delete W[e],P(t,e,n),r&&t!==W&&P(W,e,r)}:P,Y=function(t){var e=I[t]=O(T[F]);return e._k=t,e},q=B&&"symbol"==typeof T.iterator?function(t){return"symbol"==typeof t}:function
(t){return t instanceof T},J=function(t,e,n){return t===W&&J(G,e,n),m(t),e=_(e,!0),m(n),o(I,e)?(n.enumerable?(o(t,M)&&t[M][e]&&(t[M][e]=!1),n=O(n,{enumerable:w(0,!1)})):(o(t,M)||P(t,M,w(1,{})),t[M][e]=!0),V(t,e,n)):P(t,e,n)},H=function(t,e){m(t);for(var n,r=y(e=x(e)),o=0,i=r.length;i>o;)J(t,n=r[o++],e[n]);return t},K=function(t){var e=k.call(this,t=_(t,!0));return!(this===W&&o(I,t)&&!o(G,t))&&(!(e||!o(this,t)||!o(I,t)||o(this,M)&&this[M][t])||e)},Q=function(t,e){if(t=x(t),e=_(e,!0),t!==W||!o(I,e)||o(G,e)){var n=A(t,e);return!n||!o(I,e)||o(t,M)&&t[M][e]||(n.enumerable=!0),n}},$=function(t){for(var e,n=C(x(t)),r=[],i=0;n.length>i;)o(I,e=n[i++])||e==M||e==c||r.push(e);return r},Z=function(t){for(var e,n=t===W,r=C(n?G:x(t)),i=[],u=0;r.length>u;)!o(I,e=r[u++])||n&&!o(W,e)||i.push(I[e]);return i};B||(a((T=function(){if(this instanceof T)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===W&&e.call(G,n),o(this,M)&&o(this[M],t
)&&(this[M][t]=!1),V(this,t,w(1,n))};return i&&z&&V(W,t,{configurable:!0,set:e}),Y(t)})[F],"toString",function(){return this._k}),E.f=Q,L.f=J,n(36).f=S.f=$,n(25).f=K,n(35).f=Z,i&&!n(15)&&a(W,"propertyIsEnumerable",K,!0),v.f=function(t){return Y(d(t))}),u(u.G+u.W+u.F*!B,{Symbol:T});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=j(d.store),rt=0;nt.length>rt;)g(nt[rt++]);u(u.S+u.F*!B,"Symbol",{for:function(t){return o(U,t+="")?U[t]:U[t]=T(t)},keyFor:function(t){if(!q(t))throw TypeError(t+" is not a symbol!");for(var e in U)if(U[e]===t)return e},useSetter:function(){z=!0},useSimple:function(){z=!1}}),u(u.S+u.F*!B,"Object",{create:function(t,e){return void 0===e?O(t):H(O(t),e)},defineProperty:J,defineProperties:H,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),D&&u(u.S+u.F*(!B||f(function(){var t=T();return"[null]"!=N([t])||"{}"!=N({
a:t})||"{}"!=N(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!q(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!q(e))return e}),r[1]=e,N.apply(D,r)}}),T[F][R]||n(2)(T[F],R,T[F].valueOf),l(T,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(12)("meta"),o=n(7),i=n(1),u=n(3).f,a=0,c=Object.isExtensible||function(){return!0},f=!n(10)(function(){return c(Object.preventExtensions({}))}),s=function(t){u(t,r,{value:{i:"O"+ ++a,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";s(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;s(t)}return t[r].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,r)&&s(t),t}}},function(t,e,n){var r=n(18),o=n(35),i=n(25);t.exports=function(t){var e=r(t),n=o.
f;if(n)for(var u,a=n(t),c=i.f,f=0;a.length>f;)c.call(t,u=a[f++])&&e.push(u);return e}},function(t,e,n){var r=n(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5),o=n(36).f,i={}.toString,u="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return u&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return u.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(25),o=n(11),i=n(5),u=n(16),a=n(1),c=n(29),f=Object.getOwnPropertyDescriptor;e.f=n(4)?f:function(t,e){if(t=i(t),e=u(e,!0),c)try{return f(t,e)}catch(t){}if(a(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(24)("asyncIterator")},function(t,e,n){n(24)("observable")},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("list",{staticClass:["list"]},t._l(t.visibleNews,function(e,r){return n("cell",{key:r,staticClass:["cell"],appendAsTree:!0,attrs:{ap
pend:"tree"}},[e.time?n("div",{staticClass:["message-time"]},[n("text",{staticClass:["time-text"]},[t._v(t._s(t.i18n(e.time)))])]):t._e(),"article"===e.type?n("div",{staticClass:["message-box"]},[n("div",{staticClass:["article"],on:{click:function(n){t.jumpTo(e.link)}}},[n("image",{staticClass:["poster"],attrs:{resize:"cover",src:e.poster}}),n("text",{staticClass:["title"]},[t._v(t._s(e.title))]),e.summary?n("text",{staticClass:["summary"],attrs:{lines:3}},[t._v(t._s(e.summary))]):t._e(),n("div",{staticClass:["related"]},t._l(e.related,function(e){return n("div",{key:e.title,staticClass:["related-article"],on:{click:function(n){t.jumpTo(e.link)}}},[n("text",{staticClass:["subtitle"]},[t._v(t._s(e.title))]),n("image",{staticClass:["shortcut"],attrs:{resize:"cover",src:e.poster}})])}))])]):t._e()])}))},staticRenderFns:[]},t.exports.render._withStripped=!0},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e=
{};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(26));var o=weex.requireModule("storage");e.default={filters:{i18n:r.i18n,url:r.createURL,link:r.createLink},methods:{createLink:r.createLink,createURL:r.createURL,i18n:r.i18n,getLanguage:r.getLanguage,fetchData:r.fetchData,saveData:r.saveData,readData:r.readData,jumpTo:r.jumpTo},created:function(){var t=this;r.getLanguage(function(e){t.language=e,r.setTitleBar(t.navigationBarOptions,e)}),new BroadcastChannel("language").onmessage=function(e){e.data&&e.data.language&&(t.language=e.data.language)}},beforeDestroy:function(){o.removeItem("CURRENT_DOCUMENT_URL"),o.removeItem("CURRENT_SOURCE_HASH")}}}]);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
index 3bcf46f..5cdfd3d 100644
--- a/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
+++ b/ios/sdk/WeexSDK/Sources/Component/WXTextComponent.m
@@ -206,6 +206,23 @@ do {\
}\
} while(0);
+#define WX_STYLE_FILL_TEXT_WITH_DEFAULT_VALUE(key, prop, type, defaultValue,needLayout)\
+do {\
+ id value = styles[@#key];\
+ if (value) {\
+ if([WXUtility isBlankString:value]){\
+ _##prop = defaultValue;\
+ }else {\
+ _##prop = [WXConvert type:value];\
+ }\
+ [self setNeedsRepaint];\
+ if (needLayout) {\
+ [self setNeedsLayout];\
+ }\
+ }\
+} while(0);
+
+
#define WX_STYLE_FILL_TEXT_PIXEL(key, prop, needLayout)\
do {\
id value = styles[@#key];\
@@ -220,7 +237,7 @@ do {\
- (void)fillCSSStyles:(NSDictionary *)styles
{
- WX_STYLE_FILL_TEXT(color, color, UIColor, NO)
+ WX_STYLE_FILL_TEXT_WITH_DEFAULT_VALUE(color, color, UIColor, [UIColor blackColor], NO)
WX_STYLE_FILL_TEXT(fontFamily, fontFamily, NSString, YES)
WX_STYLE_FILL_TEXT_PIXEL(fontSize, fontSize, YES)
WX_STYLE_FILL_TEXT(fontWeight, fontWeight, WXTextWeight, YES)
@@ -623,8 +640,11 @@ do {\
- (void)_updateStylesOnComponentThread:(NSDictionary *)styles resetStyles:(NSMutableArray *)resetStyles isUpdateStyles:(BOOL)isUpdateStyles
{
[super _updateStylesOnComponentThread:styles resetStyles:(NSMutableArray *)resetStyles isUpdateStyles:isUpdateStyles];
-
- [self fillCSSStyles:styles];
+ NSMutableDictionary * newStyles = [styles mutableCopy];
+ for (NSString * key in [resetStyles copy]) {
+ [newStyles setObject:@"" forKey:key];
+ }
+ [self fillCSSStyles:newStyles];
[self syncTextStorageForView];
}
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/sdk/WeexSDK/Sources/Module/WXLocaleModule.m
----------------------------------------------------------------------
diff --git a/ios/sdk/WeexSDK/Sources/Module/WXLocaleModule.m b/ios/sdk/WeexSDK/Sources/Module/WXLocaleModule.m
index c993ddc..182fc5b 100644
--- a/ios/sdk/WeexSDK/Sources/Module/WXLocaleModule.m
+++ b/ios/sdk/WeexSDK/Sources/Module/WXLocaleModule.m
@@ -27,7 +27,10 @@ WX_EXPORT_METHOD_SYNC(@selector(getLanguages))
/**
Get preferred language of the user
*/
-- (NSString *)getLanguage {
+- (NSString *)getLanguage:(WXCallback)callback {
+ if (callback) {
+ callback([NSLocale preferredLanguages][0]);
+ }
return [NSLocale preferredLanguages][0];
}
[3/3] incubator-weex git commit: * [iOS] support openURL for scan
viewController
Posted by ac...@apache.org.
* [iOS] support openURL for scan viewController
* [iOS] add title bar modules
* [iOS] register titleBar
* [iOS] add titlebar file to project
* [iOS] remove devtool in release mode
* [example] update examples of playground app on ios
* [iOS] fix bug
* [example] update examples of playground app on ios
* [iOS] rewrite navigation handler
* [iOS] bugfix
* [iOS] bugfix about sanner ViewController
close #985
Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo
Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/3f3c8091
Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/3f3c8091
Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/3f3c8091
Branch: refs/heads/master
Commit: 3f3c809100c0048b929899c4a1457fcc26bb550b
Parents: bbb0817
Author: acton393 <zh...@gmail.com>
Authored: Fri Jan 12 18:05:27 2018 +0800
Committer: acton393 <zh...@gmail.com>
Committed: Wed Jan 17 16:32:33 2018 +0800
----------------------------------------------------------------------
ios/playground/Podfile | 2 +-
.../WeexDemo.xcodeproj/project.pbxproj | 36 ++++++++++
ios/playground/WeexDemo/AppDelegate.m | 13 ++--
ios/playground/WeexDemo/DemoDefine.h | 2 +-
ios/playground/WeexDemo/Scanner/WXScannerVC.m | 8 ++-
.../WeexDemo/UIViewController+WXDemoNaviBar.m | 8 +--
ios/playground/WeexDemo/WXDemoViewController.h | 2 +-
ios/playground/WeexDemo/WXDemoViewController.m | 22 ++++--
.../WeexDemo/WXNavigationHandlerImpl.h | 25 +++++++
.../WeexDemo/WXNavigationHandlerImpl.m | 74 ++++++++++++++++++++
.../WeexDemo/extend/module/WXEventModule.m | 7 +-
.../WeexDemo/extend/module/WXTitleBarModule.h | 14 ++++
.../WeexDemo/extend/module/WXTitleBarModule.m | 48 +++++++++++++
ios/playground/bundlejs/about.weex.js | 4 ++
ios/playground/bundlejs/examples.weex.js | 4 ++
ios/playground/bundlejs/guide.weex.js | 4 ++
ios/playground/bundlejs/landing.weex.js | 4 ++
ios/playground/bundlejs/lesson.weex.js | 4 ++
ios/playground/bundlejs/news.weex.js | 4 ++
.../WeexSDK/Sources/Component/WXTextComponent.m | 26 ++++++-
ios/sdk/WeexSDK/Sources/Module/WXLocaleModule.m | 5 +-
21 files changed, 284 insertions(+), 32 deletions(-)
----------------------------------------------------------------------
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/Podfile
----------------------------------------------------------------------
diff --git a/ios/playground/Podfile b/ios/playground/Podfile
index b65ccd4..22f97bd 100644
--- a/ios/playground/Podfile
+++ b/ios/playground/Podfile
@@ -7,7 +7,7 @@ def common
pod 'WXDevtool', '0.15.3'
pod 'SDWebImage', '3.7.5'
pod 'SocketRocket', '0.4.2'
- pod 'ATSDK-Weex', '0.0.1'
+ pod 'ATSDK-Weex', '0.0.1',:configurations => ['Debug']
# WeexGcanvas is added by Weex Plugin, more info at https://market.dotwe.org/ext/list.htm
pod 'WeexGcanvas'
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo.xcodeproj/project.pbxproj
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo.xcodeproj/project.pbxproj b/ios/playground/WeexDemo.xcodeproj/project.pbxproj
index 351693b..2f27f17 100644
--- a/ios/playground/WeexDemo.xcodeproj/project.pbxproj
+++ b/ios/playground/WeexDemo.xcodeproj/project.pbxproj
@@ -37,6 +37,8 @@
8A0B5EFFF75BF82EA481983D /* libPods-WeexUITestDemo.a in Frameworks */ = {isa = PBXBuildFile; fileRef = E48C20F443AA337D1FE97622 /* libPods-WeexUITestDemo.a */; };
C43CDA031F1C6E01005A6B03 /* libz.tbd in Frameworks */ = {isa = PBXBuildFile; fileRef = C43CDA021F1C6E01005A6B03 /* libz.tbd */; };
C47B78D21F299E27001D3B0C /* WXExtendCallNativeTest.m in Sources */ = {isa = PBXBuildFile; fileRef = C47B78D11F299E27001D3B0C /* WXExtendCallNativeTest.m */; };
+ DC15A3C7200C505C009C8977 /* WXTitleBarModule.m in Sources */ = {isa = PBXBuildFile; fileRef = DC15A3C6200C505C009C8977 /* WXTitleBarModule.m */; };
+ DC15A3D0200E30FC009C8977 /* WXNavigationHandlerImpl.m in Sources */ = {isa = PBXBuildFile; fileRef = DC15A3CE200E30FC009C8977 /* WXNavigationHandlerImpl.m */; };
DC20B8E61ECADA2500845F39 /* WXConfigCenterDefaultImpl.m in Sources */ = {isa = PBXBuildFile; fileRef = DC20B8E51ECADA2500845F39 /* WXConfigCenterDefaultImpl.m */; };
DC5B53691E8CED9400E02125 /* WXScannerHistoryVC.m in Sources */ = {isa = PBXBuildFile; fileRef = DC5B53681E8CED9400E02125 /* WXScannerHistoryVC.m */; };
DC5E503E1D0D97130059F0EB /* weex.png in Resources */ = {isa = PBXBuildFile; fileRef = DC5E503C1D0D97130059F0EB /* weex.png */; };
@@ -100,6 +102,10 @@
C43CDA021F1C6E01005A6B03 /* libz.tbd */ = {isa = PBXFileReference; lastKnownFileType = "sourcecode.text-based-dylib-definition"; name = libz.tbd; path = usr/lib/libz.tbd; sourceTree = SDKROOT; };
C47B78D01F299E27001D3B0C /* WXExtendCallNativeTest.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WXExtendCallNativeTest.h; sourceTree = "<group>"; };
C47B78D11F299E27001D3B0C /* WXExtendCallNativeTest.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WXExtendCallNativeTest.m; sourceTree = "<group>"; };
+ DC15A3C5200C505C009C8977 /* WXTitleBarModule.h */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.h; name = WXTitleBarModule.h; path = extend/module/WXTitleBarModule.h; sourceTree = "<group>"; };
+ DC15A3C6200C505C009C8977 /* WXTitleBarModule.m */ = {isa = PBXFileReference; lastKnownFileType = sourcecode.c.objc; name = WXTitleBarModule.m; path = extend/module/WXTitleBarModule.m; sourceTree = "<group>"; };
+ DC15A3CE200E30FC009C8977 /* WXNavigationHandlerImpl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WXNavigationHandlerImpl.m; sourceTree = "<group>"; };
+ DC15A3CF200E30FC009C8977 /* WXNavigationHandlerImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WXNavigationHandlerImpl.h; sourceTree = "<group>"; };
DC20B8E41ECADA2500845F39 /* WXConfigCenterDefaultImpl.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; path = WXConfigCenterDefaultImpl.h; sourceTree = "<group>"; };
DC20B8E51ECADA2500845F39 /* WXConfigCenterDefaultImpl.m */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.objc; path = WXConfigCenterDefaultImpl.m; sourceTree = "<group>"; };
DC5B53671E8CED9400E02125 /* WXScannerHistoryVC.h */ = {isa = PBXFileReference; fileEncoding = 4; lastKnownFileType = sourcecode.c.h; name = WXScannerHistoryVC.h; path = Scanner/WXScannerHistoryVC.h; sourceTree = "<group>"; };
@@ -306,6 +312,8 @@
children = (
DCABAFFF1D02975E001C8592 /* WXEventModule.h */,
DCABB0001D02975E001C8592 /* WXEventModule.m */,
+ DC15A3C5200C505C009C8977 /* WXTitleBarModule.h */,
+ DC15A3C6200C505C009C8977 /* WXTitleBarModule.m */,
7478481C1E0CD4910044500D /* WXSyncTestModule.h */,
7478481D1E0CD4910044500D /* WXSyncTestModule.m */,
847CAF2F1F39E3F100551725 /* WXExtModule.h */,
@@ -317,6 +325,8 @@
DCABAFF71D0296E8001C8592 /* handler */ = {
isa = PBXGroup;
children = (
+ DC15A3CF200E30FC009C8977 /* WXNavigationHandlerImpl.h */,
+ DC15A3CE200E30FC009C8977 /* WXNavigationHandlerImpl.m */,
DC20B8E41ECADA2500845F39 /* WXConfigCenterDefaultImpl.h */,
DC20B8E51ECADA2500845F39 /* WXConfigCenterDefaultImpl.m */,
DCABAFFC1D029753001C8592 /* WXImgLoaderDefaultImpl.h */,
@@ -507,6 +517,7 @@
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-WeexUITestDemo-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
@@ -519,9 +530,20 @@
files = (
);
inputPaths = (
+ "${SRCROOT}/Pods/Target Support Files/Pods-WeexUITestDemo/Pods-WeexUITestDemo-resources.sh",
+ "${PODS_ROOT}/ATSDK-Weex/ATSDK.framework/Versions/A/Resources/ATSDK.bundle",
+ "${PODS_ROOT}/ATSDK-Weex/ATSDK.framework/Versions/A/Resources/en.lproj",
+ "${PODS_ROOT}/ATSDK-Weex/ATSDK.framework/Versions/A/Resources/zh-Hans.lproj",
+ "${PODS_ROOT}/GCanvas/GCanvas.framework/default.glsl",
+ "${PODS_ROOT}/GCanvas/GCanvas.framework/grad.glsl",
+ "${PODS_ROOT}/GCanvas/GCanvas.framework/pattern.glsl",
+ "${PODS_ROOT}/GCanvas/GCanvas.framework/radiation.glsl",
+ "${PODS_ROOT}/../../../pre-build/native-bundle-main.js",
+ "${PODS_ROOT}/../../sdk/WeexSDK/Resources/wx_load_error@3x.png",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
@@ -554,6 +576,7 @@
);
name = "[CP] Check Pods Manifest.lock";
outputPaths = (
+ "$(DERIVED_FILE_DIR)/Pods-WeexDemo-checkManifestLockResult.txt",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
@@ -566,9 +589,20 @@
files = (
);
inputPaths = (
+ "${SRCROOT}/Pods/Target Support Files/Pods-WeexDemo/Pods-WeexDemo-resources.sh",
+ "${PODS_ROOT}/ATSDK-Weex/ATSDK.framework/Versions/A/Resources/ATSDK.bundle",
+ "${PODS_ROOT}/ATSDK-Weex/ATSDK.framework/Versions/A/Resources/en.lproj",
+ "${PODS_ROOT}/ATSDK-Weex/ATSDK.framework/Versions/A/Resources/zh-Hans.lproj",
+ "${PODS_ROOT}/GCanvas/GCanvas.framework/default.glsl",
+ "${PODS_ROOT}/GCanvas/GCanvas.framework/grad.glsl",
+ "${PODS_ROOT}/GCanvas/GCanvas.framework/pattern.glsl",
+ "${PODS_ROOT}/GCanvas/GCanvas.framework/radiation.glsl",
+ "${PODS_ROOT}/../../../pre-build/native-bundle-main.js",
+ "${PODS_ROOT}/../../sdk/WeexSDK/Resources/wx_load_error@3x.png",
);
name = "[CP] Copy Pods Resources";
outputPaths = (
+ "${TARGET_BUILD_DIR}/${UNLOCALIZED_RESOURCES_FOLDER_PATH}",
);
runOnlyForDeploymentPostprocessing = 0;
shellPath = /bin/sh;
@@ -583,6 +617,7 @@
buildActionMask = 2147483647;
files = (
DCABAFF31D029685001C8592 /* WXATLoggerPlugin.m in Sources */,
+ DC15A3D0200E30FC009C8977 /* WXNavigationHandlerImpl.m in Sources */,
2AE88A2C1C8544E6003329DE /* WXScannerVC.m in Sources */,
775BEE861C1E8ECC008D1629 /* WXDemoViewController.m in Sources */,
DC5B53691E8CED9400E02125 /* WXScannerHistoryVC.m in Sources */,
@@ -591,6 +626,7 @@
7478481E1E0CD4910044500D /* WXSyncTestModule.m in Sources */,
775BEE831C1E8ECC008D1629 /* AppDelegate.m in Sources */,
847CAF311F39E3F100551725 /* WXExtModule.m in Sources */,
+ DC15A3C7200C505C009C8977 /* WXTitleBarModule.m in Sources */,
DC20B8E61ECADA2500845F39 /* WXConfigCenterDefaultImpl.m in Sources */,
DCABAFF41D029685001C8592 /* WXATViewHierarchyPlugin.m in Sources */,
775BEE801C1E8ECC008D1629 /* main.m in Sources */,
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/AppDelegate.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/AppDelegate.m b/ios/playground/WeexDemo/AppDelegate.m
index 0414933..3bf6c31 100644
--- a/ios/playground/WeexDemo/AppDelegate.m
+++ b/ios/playground/WeexDemo/AppDelegate.m
@@ -35,6 +35,7 @@
#import <ATSDK/ATManager.h>
#import "WXConfigCenterProtocol.h"
#import "WXConfigCenterDefaultImpl.h"
+#import "WXNavigationHandlerImpl.h"
@interface AppDelegate ()
@end
@@ -115,11 +116,12 @@
[WXSDKEngine registerHandler:[WXImgLoaderDefaultImpl new] withProtocol:@protocol(WXImgLoaderProtocol)];
[WXSDKEngine registerHandler:[WXEventModule new] withProtocol:@protocol(WXEventModuleProtocol)];
[WXSDKEngine registerHandler:[WXConfigCenterDefaultImpl new] withProtocol:@protocol(WXConfigCenterProtocol)];
-
+ [WXSDKEngine registerHandler:[WXNavigationHandlerImpl new] withProtocol:@protocol(WXNavigationProtocol)];
[WXSDKEngine registerComponent:@"select" withClass:NSClassFromString(@"WXSelectComponent")];
[WXSDKEngine registerModule:@"event" withClass:[WXEventModule class]];
[WXSDKEngine registerModule:@"syncTest" withClass:[WXSyncTestModule class]];
+ [WXSDKEngine registerModule:@"titleBar" withClass:NSClassFromString(@"WXTitleBarModule")];
[WXSDKEngine registerExtendCallNative:@"test" withClass:NSClassFromString(@"WXExtendCallNativeTest")];
[WXSDKEngine registerModule:@"ext" withClass:[WXExtModule class]];
@@ -144,13 +146,7 @@
- (UIViewController *)demoController
{
UIViewController *demo = [[WXDemoViewController alloc] init];
-
-#if DEBUG
- //If you are debugging in device , please change the host to current IP of your computer.
- ((WXDemoViewController *)demo).url = [NSURL URLWithString:HOME_URL];
-#else
((WXDemoViewController *)demo).url = [NSURL URLWithString:BUNDLE_URL];
-#endif
return demo;
}
@@ -213,12 +209,13 @@
#pragma mark
- (void)atAddPlugin {
-
+#if DEBUG
[[ATManager shareInstance] addPluginWithId:@"weex" andName:@"weex" andIconName:@"../weex" andEntry:@"" andArgs:@[@""]];
[[ATManager shareInstance] addSubPluginWithParentId:@"weex" andSubId:@"logger" andName:@"logger" andIconName:@"log" andEntry:@"WXATLoggerPlugin" andArgs:@[@""]];
// [[ATManager shareInstance] addSubPluginWithParentId:@"weex" andSubId:@"viewHierarchy" andName:@"hierarchy" andIconName:@"log" andEntry:@"WXATViewHierarchyPlugin" andArgs:@[@""]];
[[ATManager shareInstance] addSubPluginWithParentId:@"weex" andSubId:@"test2" andName:@"test" andIconName:@"at_arr_refresh" andEntry:@"" andArgs:@[]];
[[ATManager shareInstance] addSubPluginWithParentId:@"weex" andSubId:@"test3" andName:@"test" andIconName:@"at_arr_refresh" andEntry:@"" andArgs:@[]];
+#endif
}
- (void)checkUpdate {
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/DemoDefine.h
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/DemoDefine.h b/ios/playground/WeexDemo/DemoDefine.h
index 1a7abaf..04840bb 100644
--- a/ios/playground/WeexDemo/DemoDefine.h
+++ b/ios/playground/WeexDemo/DemoDefine.h
@@ -31,7 +31,7 @@
#define HOME_URL [NSString stringWithFormat:@"http://%@:12580/examples/build/vue/index.js", DEMO_HOST]
-#define BUNDLE_URL [NSString stringWithFormat:@"file://%@/bundlejs/index.js",[NSBundle mainBundle].bundlePath]
+#define BUNDLE_URL [NSString stringWithFormat:@"file://%@/bundlejs/landing.weex.js",[NSBundle mainBundle].bundlePath]
#define UITEST_HOME_URL @"http://test?_wx_tpl=http://localhost:12580/test/build/TC__Home.js"
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/Scanner/WXScannerVC.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/Scanner/WXScannerVC.m b/ios/playground/WeexDemo/Scanner/WXScannerVC.m
index e5a0c96..d2be0c6 100644
--- a/ios/playground/WeexDemo/Scanner/WXScannerVC.m
+++ b/ios/playground/WeexDemo/Scanner/WXScannerVC.m
@@ -23,7 +23,9 @@
#import "UIViewController+WXDemoNaviBar.h"
#import "WXDemoViewController.h"
#import "WXDebugTool.h"
+#if DEBUG
#import <TBWXDevTool/WXDevTool.h>
+#endif
#import <AudioToolbox/AudioToolbox.h>
@interface WXScannerVC ()
@@ -45,7 +47,6 @@
- (void)viewDidLoad {
[super viewDidLoad];
self.edgesForExtendedLayout = UIRectEdgeNone;
- [self setupNaviBar];
#if !(TARGET_IPHONE_SIMULATOR)
self.session = [[AVCaptureSession alloc]init];
@@ -68,7 +69,8 @@
- (void)viewWillAppear:(BOOL)animated {
[super viewWillAppear:animated];
-
+ [self.navigationController setNavigationBarHidden:NO];
+ [self setupNaviBar];
[self.view.layer addSublayer:_captureLayer];
[_session startRunning];
}
@@ -208,12 +210,14 @@
}
return YES;
} else if ([[elts firstObject] isEqualToString:@"_wx_devtool"]) {
+#ifdef DEBUG
NSString *devToolURL = [[elts lastObject] stringByReplacingPercentEscapesUsingEncoding:NSUTF8StringEncoding];
[WXDevTool launchDevToolDebugWithUrl:devToolURL];
if ([[[self.navigationController viewControllers] objectAtIndex:0] isKindOfClass:NSClassFromString(@"WXDemoViewController")]) {
WXDemoViewController * vc = (WXDemoViewController*)[[self.navigationController viewControllers] objectAtIndex:0];
[self.navigationController popToViewController:vc animated:NO];
}
+#endif
return YES;
}
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/UIViewController+WXDemoNaviBar.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/UIViewController+WXDemoNaviBar.m b/ios/playground/WeexDemo/UIViewController+WXDemoNaviBar.m
index 4490bd4..ba0a645 100644
--- a/ios/playground/WeexDemo/UIViewController+WXDemoNaviBar.m
+++ b/ios/playground/WeexDemo/UIViewController+WXDemoNaviBar.m
@@ -37,15 +37,9 @@
// iOS 7.0 or later
self.navigationController.navigationBar.barTintColor = WEEX_COLOR;
self.navigationController.navigationBar.tintColor = [UIColor whiteColor];
+ [self.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[UIColor whiteColor]}];
self.navigationController.navigationBar.translucent = NO;
- }else {
- // iOS 6.1 or earlier
- self.navigationController.navigationBar.tintColor = WEEX_COLOR;
}
-
- [self.navigationController.navigationBar setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys:
- [UIColor whiteColor], NSForegroundColorAttributeName, nil]];
- self.navigationItem.title = @"Weex Playground";
if (!self.navigationItem.leftBarButtonItem) {
UIBarButtonItem *leftItem;
if(![[self.navigationController.viewControllers objectAtIndex:0] isEqual:self]) {
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/WXDemoViewController.h
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/WXDemoViewController.h b/ios/playground/WeexDemo/WXDemoViewController.h
index fa83801..be2935d 100644
--- a/ios/playground/WeexDemo/WXDemoViewController.h
+++ b/ios/playground/WeexDemo/WXDemoViewController.h
@@ -24,7 +24,7 @@
@property (nonatomic, strong) NSString *script;
@property (nonatomic, strong) NSURL *url;
-
+@property (nonatomic, assign) BOOL showNavigationBar;
@property (nonatomic, strong) SRWebSocket *hotReloadSocket;
@property (nonatomic, strong) NSString *source;
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/WXDemoViewController.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/WXDemoViewController.m b/ios/playground/WeexDemo/WXDemoViewController.m
index 280ba75..c1f62b1 100644
--- a/ios/playground/WeexDemo/WXDemoViewController.m
+++ b/ios/playground/WeexDemo/WXDemoViewController.m
@@ -57,15 +57,14 @@
{
[super viewDidLoad];
- [self setupNaviBar];
- [self setupRightBarItem];
self.view.backgroundColor = [UIColor whiteColor];
[self.view setClipsToBounds:YES];
- _weexHeight = self.view.frame.size.height - 64;
+ _showNavigationBar = NO;
+ [self.navigationController setNavigationBarHidden:_showNavigationBar];
+ _weexHeight = self.view.frame.size.height - CGRectGetMaxY(self.navigationController.navigationBar.frame);
[[NSNotificationCenter defaultCenter] addObserver:self selector:@selector(notificationRefreshInstance:) name:@"RefreshInstance" object:nil];
-
[self render];
}
@@ -84,13 +83,15 @@
- (void)viewWillAppear:(BOOL)animated
{
[super viewWillAppear:animated];
- self.navigationController.navigationBarHidden = NO;
+ [self setupNaviBar];
+ [self setupRightBarItem];
+ [self.navigationController setNavigationBarHidden:_showNavigationBar];
}
//TODO get height
- (void)viewDidLayoutSubviews
{
- _weexHeight = self.view.frame.size.height;
+ _weexHeight = self.view.frame.size.height - CGRectGetMaxY(self.navigationController.navigationBar.frame);
UIEdgeInsets safeArea = UIEdgeInsetsZero;
#ifdef __IPHONE_11_0
if (@available(iOS 11.0, *)) {
@@ -99,7 +100,7 @@
// Fallback on earlier versions
}
#endif
- _instance.frame = CGRectMake(safeArea.left, safeArea.top, self.view.frame.size.width-safeArea.left-safeArea.right, _weexHeight-safeArea.bottom);
+ _instance.frame = CGRectMake(safeArea.left, safeArea.top, self.view.frame.size.width-safeArea.left-safeArea.right, _weexHeight-safeArea.top-safeArea.bottom);
}
- (void)didReceiveMemoryWarning {
@@ -121,6 +122,9 @@
- (void)render
{
CGFloat width = self.view.frame.size.width;
+// if ([_url.absoluteString isEqualToString:HOME_URL]) {
+// [self.navigationController setNavigationBarHidden:YES];
+// }
[_instance destroyInstance];
_instance = [[WXSDKInstance alloc] init];
if([WXPrerenderManager isTaskExist:[self.url absoluteString]]){
@@ -181,9 +185,13 @@
[WXPrerenderManager renderFromCache:[self.url absoluteString]];
return;
}
+ _instance.viewController = self;
NSURL *URL = [self testURL: [self.url absoluteString]];
NSString *randomURL = [NSString stringWithFormat:@"%@%@random=%d",URL.absoluteString,URL.query?@"&":@"?",arc4random()];
[_instance renderWithURL:[NSURL URLWithString:randomURL] options:@{@"bundleUrl":URL.absoluteString} data:nil];
+ [self.navigationController.navigationBar setTitleTextAttributes: [NSDictionary dictionaryWithObjectsAndKeys:
+ [UIColor whiteColor], NSForegroundColorAttributeName, nil]];
+ self.navigationItem.title = _instance.pageName;
}
- (void)updateInstanceState:(WXState)state
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/WXNavigationHandlerImpl.h
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/WXNavigationHandlerImpl.h b/ios/playground/WeexDemo/WXNavigationHandlerImpl.h
new file mode 100644
index 0000000..edad34b
--- /dev/null
+++ b/ios/playground/WeexDemo/WXNavigationHandlerImpl.h
@@ -0,0 +1,25 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#import <Foundation/Foundation.h>
+#import "WXNavigationProtocol.h"
+
+@interface WXNavigationHandlerImpl : NSObject <WXNavigationProtocol>
+
+@end
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/WXNavigationHandlerImpl.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/WXNavigationHandlerImpl.m b/ios/playground/WeexDemo/WXNavigationHandlerImpl.m
new file mode 100644
index 0000000..ef657b2
--- /dev/null
+++ b/ios/playground/WeexDemo/WXNavigationHandlerImpl.m
@@ -0,0 +1,74 @@
+/*
+ * Licensed to the Apache Software Foundation (ASF) under one
+ * or more contributor license agreements. See the NOTICE file
+ * distributed with this work for additional information
+ * regarding copyright ownership. The ASF licenses this file
+ * to you under the Apache License, Version 2.0 (the
+ * "License"); you may not use this file except in compliance
+ * with the License. You may obtain a copy of the License at
+ *
+ * http://www.apache.org/licenses/LICENSE-2.0
+ *
+ * Unless required by applicable law or agreed to in writing,
+ * software distributed under the License is distributed on an
+ * "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY
+ * KIND, either express or implied. See the License for the
+ * specific language governing permissions and limitations
+ * under the License.
+ */
+
+#import "WXNavigationHandlerImpl.h"
+#import "WXDemoViewController.h"
+#import <WeexSDK/WeexSDK.h>
+
+@implementation WXNavigationHandlerImpl
+
+
+
+- (void)clearNavigationItemWithParam:(NSDictionary *)param position:(WXNavigationItemPosition)position completion:(WXNavigationResultBlock)block withContainer:(UIViewController *)container {
+
+}
+
+- (id)navigationControllerOfContainer:(UIViewController *)container {
+ return container.navigationController;
+}
+
+- (void)popViewControllerWithParam:(NSDictionary *)param completion:(WXNavigationResultBlock)block withContainer:(UIViewController *)container {
+ BOOL animated = YES;
+ id obj = [param objectForKey:@"animated"];
+ if (obj) {
+ animated = [WXConvert BOOL:obj];
+ }
+ [container.navigationController popViewControllerAnimated:animated];
+}
+
+- (void)pushViewControllerWithParam:(NSDictionary *)param completion:(WXNavigationResultBlock)block withContainer:(UIViewController *)container {
+ BOOL animated = YES;
+ NSString *obj = [[param objectForKey:@"animated"] lowercaseString];
+ if (obj && [obj isEqualToString:@"false"]) {
+ animated = NO;
+ }
+
+ WXDemoViewController *vc = [[WXDemoViewController alloc] init];
+ vc.url = [NSURL URLWithString:param[@"url"]];
+ vc.hidesBottomBarWhenPushed = YES;
+ [container.navigationController pushViewController:vc animated:animated];
+}
+
+- (void)setNavigationBackgroundColor:(UIColor *)backgroundColor withContainer:(UIViewController *)container {
+
+}
+
+- (void)setNavigationBarHidden:(BOOL)hidden animated:(BOOL)animated withContainer:(UIViewController *)container {
+ if (![container isKindOfClass:[WXBaseViewController class]]) {
+ return;
+ }
+
+ container.navigationController.navigationBarHidden = hidden;
+}
+
+- (void)setNavigationItemWithParam:(NSDictionary *)param position:(WXNavigationItemPosition)position completion:(WXNavigationResultBlock)block withContainer:(UIViewController *)container {
+
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/extend/module/WXEventModule.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/extend/module/WXEventModule.m b/ios/playground/WeexDemo/extend/module/WXEventModule.m
index 9f58090..59e9158 100644
--- a/ios/playground/WeexDemo/extend/module/WXEventModule.m
+++ b/ios/playground/WeexDemo/extend/module/WXEventModule.m
@@ -19,7 +19,8 @@
#import "WXEventModule.h"
#import "WXDemoViewController.h"
-#import <WeexSDK/WXBaseViewController.h>
+#import "WXScannerVC.h"
+#import <WeexSDK/WeexSDK.h>
@implementation WXEventModule
@@ -34,6 +35,10 @@ WX_EXPORT_METHOD(@selector(fireNativeGlobalEvent:callback:))
NSString *newURL = url;
if ([url hasPrefix:@"//"]) {
newURL = [NSString stringWithFormat:@"http:%@", url];
+ } else if ([url hasPrefix:@"weex://go/scan"]){
+ WXScannerVC * sannerVC = [WXScannerVC new];
+ [[weexInstance.viewController navigationController] pushViewController:sannerVC animated:YES];
+ return;
} else if (![url hasPrefix:@"http"]) {
// relative path
newURL = [NSURL URLWithString:url relativeToURL:weexInstance.scriptURL].absoluteString;
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/extend/module/WXTitleBarModule.h
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/extend/module/WXTitleBarModule.h b/ios/playground/WeexDemo/extend/module/WXTitleBarModule.h
new file mode 100644
index 0000000..057c618
--- /dev/null
+++ b/ios/playground/WeexDemo/extend/module/WXTitleBarModule.h
@@ -0,0 +1,14 @@
+//
+// WXTitleBarModule.h
+// WeexDemo
+//
+// Created by zifan.zx on 2018/1/15.
+// Copyright © 2018年 taobao. All rights reserved.
+//
+
+#import <Foundation/Foundation.h>
+#import <WeexSDK/WeexSDK.h>
+
+@interface WXTitleBarModule : NSObject<WXModuleProtocol>
+
+@end
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/WeexDemo/extend/module/WXTitleBarModule.m
----------------------------------------------------------------------
diff --git a/ios/playground/WeexDemo/extend/module/WXTitleBarModule.m b/ios/playground/WeexDemo/extend/module/WXTitleBarModule.m
new file mode 100644
index 0000000..09c0182
--- /dev/null
+++ b/ios/playground/WeexDemo/extend/module/WXTitleBarModule.m
@@ -0,0 +1,48 @@
+//
+// WXTitleBarModule.m
+// WeexDemo
+//
+// Created by zifan.zx on 2018/1/15.
+// Copyright © 2018年 taobao. All rights reserved.
+//
+
+#import "WXTitleBarModule.h"
+#import "WXDemoViewController.h"
+
+@implementation WXTitleBarModule
+@synthesize weexInstance;
+
+WX_EXPORT_METHOD(@selector(setTitle:))
+WX_EXPORT_METHOD(@selector(showTitleBar:))
+WX_EXPORT_METHOD(@selector(setStyle:))
+
+- (void)setTitle:(NSString*)title
+{
+ if (title) {
+ [weexInstance.viewController.navigationItem setTitle:title];
+ }
+}
+
+- (void)setStyle:(NSDictionary*)styles
+{
+ if (styles[@"backgroundColor"]) {
+ weexInstance.viewController.navigationController.navigationBar.barTintColor = [WXConvert UIColor:styles[@"backgroundColor"]];
+ }
+ if (styles[@"foregroundColor"]) {
+ weexInstance.viewController.navigationController.navigationBar.tintColor = [WXConvert UIColor:styles[@"foregroundColor"]];
+ [weexInstance.viewController.navigationController.navigationBar setTitleTextAttributes:@{NSForegroundColorAttributeName:[WXConvert UIColor:styles[@"foregroundColor"]]}];
+ }
+}
+
+- (void)dealloc
+{
+ weexInstance.viewController.navigationController.navigationBar.tintColor = [UIColor whiteColor];
+}
+
+- (void)showTitleBar:(bool)show
+{
+ [weexInstance.viewController.navigationController setNavigationBarHidden:!show];
+ ((WXDemoViewController*)weexInstance.viewController).showNavigationBar = !show;
+}
+
+@end
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/bundlejs/about.weex.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/about.weex.js b/ios/playground/bundlejs/about.weex.js
new file mode 100644
index 0000000..ca5df16
--- /dev/null
+++ b/ios/playground/bundlejs/about.weex.js
@@ -0,0 +1,4 @@
+// { "framework": "Vue" }
+"use weex:vue";
+
+!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=38)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(3),o=n(11);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(9),o=n(30),i=n(16),a=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)tr
y{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(52),o=n(14);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(20)("wks"),o=n(12),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.expo
rts=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!0},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,n){var r=n(34),o=n(21);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(20)("keys"),o=n(12);t.exports=function(t){return r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o="__core-js_shared__",i=r[o]||(r[o]={});t.exports=function(t){return i[t]||(i[t]={})}},function(t,e){t.exports="co
nstructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(3).f,o=n(1),i=n(6)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(6)},function(t,e,n){var r=n(0),o=n(8),i=n(15),a=n(23),u=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fetchNews=e.fetchDoodle=e.readAbout=e.saveAbout=e.fetchAbout=e.readGuide=e.saveGuide=e.fetchGuide=e.readExamples=e.saveExamples=e.fetchExamples=void 0;var r=i(n(42)),o=i(n(27));function i(t){return t&&t.__esModule?t:{default:t}}e.createLink=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];for(var r in e)"string"==typeof e[r]&&n.push(s(r)+"="+s(e[r]));if("Web"===WXEnvironment.platform)r
eturn n.unshift("page="+t+".web.js"),"/?"+n.join("&");return""+function(){var t=weex.config.bundleUrl,e=t.indexOf("your_current_IP")>=0||t.indexOf("file://assets/")>=0,n=t.indexOf("file:///")>=0&&t.indexOf("WeexDemo.app")>0;if(e)return"file://assets/";if(n)return t.substring(0,t.lastIndexOf("/")+1);return""}()+t+".weex.js"+(n.length?"?"+n.join("&"):"")},e.createURL=f,e.i18n=l,e.parseLanguage=d,e.setLanguage=function(t){var e=d(t);e&&u.setItem("WEEX_PLAYGROUND_LANGUAGE",e)},e.clearStorageLanguage=function(){u.removeItem("WEEX_PLAYGROUND_LANGUAGE")},e.getStorageLanguage=v,e.getSystemLanguage=h,e.getLanguage=y,e.jumpTo=function(t,e){y(function(n){u.setItem("CURRENT_DOCUMENT_URL",l(t,n)),c.push({url:f("bf0305c14b511b24a4e616f53926432b",{language:n,title:l(e,n)})})})},e.viewSource=function(t){y(function(e){c.push({url:f("f6ce29faf686eabc38b410bf4828fa5a",{hash:t,language:e})})})},e.setTitleBar=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if("[object Objec
t]"!==Object.prototype.toString.apply(t))return;var n=weex.requireModule("titleBar");if(t.color||t.backgroundColor)try{n.setStyle({foregroundColor:t.color||"#FFFFFF",backgroundColor:t.backgroundColor||"#00B4FF"})}catch(t){}var r=l(t.title,e);if(r)try{n.setTitle(r)}catch(t){}},e.fetchData=x,e.saveData=b,e.readData=w;var a=weex.requireModule("stream"),u=weex.requireModule("storage"),c=weex.requireModule("navigator"),s="function"==typeof encodeURIComponent?encodeURIComponent:"function"==typeof encodeURI?encodeURI:function(t){return t};function f(t,e){if("Web"===WXEnvironment.platform)return"http://dotwe.org/raw/htmlVue/"+t;var n="http://dotwe.org/raw/dist/"+t+".bundle.wx",r=function(t){if(!t||"object"!==(void 0===t?"undefined":(0,o.default)(t)))return"";var e=[];for(var n in t)"string"==typeof t[n]&&e.push(s(n)+"="+s(t[n]));return e.join("&")}(e);return"TB"===WXEnvironment.appName?n+"?_wx_tpl="+n+"&"+r:"WXSample"===WXEnvironment.appName?n+"?"+r:n+"?wx_weex=true&"+r}function l(t,e){retu
rn"string"==typeof t?t:"[object Object]"===Object.prototype.toString.call(t)?t[this&&this.language||e||"en"]:void 0}var p=/(en|zh)\_?\w*/i;function d(t){var e=p.exec(t+"");return e&&e[1]?e[1]:""}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===t||(0,o.default)(t)))try{u.getItem("WEEX_PLAYGROUND_LANGUAGE",function(n){if("success"===n.result){var r=d(n.data);r?t(r):e()}else e(n)})}catch(t){e(t)}}function h(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===t||(0,o.default)(t)))if("web"===WXEnvironment.platform.toLowerCase()){var n=d(window.navigator.language);n?t(n):e()}else try{var r=weex.requireModule("locale")||weex.requireModule("local"),i=!1,a=d(r.getLanguage(function(n){var r=d(n);r?i||t(r):e()}));a?(i=!0,t(a)):e()}catch(t){e(t)}}var g=/.+[\?\&]{1}language=([\d\w]+)[\?\&]?.*/i;function y(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){}
,e=g.exec(weex.config.bundleUrl||""),n=d(e&&e[1]);n?t(n):v(t,function(){h(t,function(){t("en")})})}var m={doodle:"WEEX_PLAYGROUND_APP_DOODLE",guide:"WEEX_PLAYGROUND_APP_GUIDE",examples:"WEEX_PLAYGROUND_APP_EXAMPLES",news:"WEEX_PLAYGROUND_APP_NEWS",about:"WEEX_PLAYGROUND_APP_ABOUT"};function x(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};try{a.fetch({url:"http://dotwe.org/query/weex-playground-app",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"json",body:"name="+t},function(t){t.ok&&t.data&&t.data.success?e(t.data):n(t)})}catch(t){n(t)}}function b(t,e){var n=m[t];n&&e&&"object"===(void 0===e?"undefined":(0,o.default)(e))&&(e.timestamp=Date.now(),u.setItem(n,(0,r.default)(e)))}function w(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=m[t];if(!r)retur
n n();try{u.getItem(r,function(r){if("success"===r.result){var o=JSON.parse(r.data);if(o&&Array.isArray(o[t]))return e(o[t])}n(r)})}catch(t){n(t)}}e.fetchExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["examples"].concat(e))},e.saveExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["examples"].concat(e))},e.readExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return w.apply(void 0,["examples"].concat(e))},e.fetchGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["guide"].concat(e))},e.saveGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["guide"].concat(e))},e.readGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return w.apply(void 0,["guide"].concat(e))},e.fetchAbout=functio
n(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["about"].concat(e))},e.saveAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["about"].concat(e))},e.readAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return w.apply(void 0,["about"].concat(e))},e.fetchDoodle=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["doodle"].concat(e))},e.fetchNews=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["news"].concat(e))}},function(t,e,n){"use strict";e.__esModule=!0;var r=a(n(44)),o=a(n(63)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.defa
ult="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,n){"use strict";var r=n(15),o=n(29),i=n(32),a=n(2),u=n(1),c=n(17),s=n(50),f=n(22),l=n(57),p=n(6)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,h,g,y,m){s(n,e,h);var x,b,w,_=function(t){if(!d&&t in j)return j[t];switch(t){case"keys":case"values":return function(){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",O="values"==g,E=!1,j=t.prototype,A=j[p]||j["@@iterator"]||g&&j[g],L=!d&&A||_(g),C=g?O?_("entries"):L:void 0,P="Array"==e?j.entries||A:A;if(P&&(w=l(P.call(new t)))!==Object.prototype&&w.next&&(f(w,S,!0),r||u(w,p)||a(w,p,v)),O&&A&&"values"!==A.name&&(E=!0,L=function(){return A.call(this)}),r&&!m||!d&&!E&&j[p]||a(j,p,L),c[e]=L,c[S]=v,g)if(x={valu
es:O?L:_("values"),keys:y?L:_("keys"),entries:C},m)for(b in x)b in j||i(j,b,x[b]);else o(o.P+o.F*(d||E),e,x);return x}},function(t,e,n){var r=n(0),o=n(8),i=n(48),a=n(2),u="prototype",c=function(t,e,n){var s,f,l,p=t&c.F,d=t&c.G,v=t&c.S,h=t&c.P,g=t&c.B,y=t&c.W,m=d?o:o[e]||(o[e]={}),x=m[u],b=d?r:v?r[e]:(r[e]||{})[u];d&&(n=e);for(s in n)(f=!p&&b&&void 0!==b[s])&&s in m||(l=f?b[s]:n[s],m[s]=d&&"function"!=typeof b[s]?n[s]:g&&f?i(l,r):y&&b[s]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);case 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(l):h&&"function"==typeof l?i(Function.call,l):l,h&&((m.virtual||(m.virtual={}))[s]=l,t&c.R&&x&&!x[s]&&a(x,s,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){t.exports=!n(4)&&!n(10)(function(){return 7!=Object.defineProperty(n(31)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var
r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=n(2)},function(t,e,n){var r=n(9),o=n(51),i=n(21),a=n(19)("IE_PROTO"),u=function(){},c=function(){var t,e=n(31)("iframe"),r=i.length;for(e.style.display="none",n(56).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(1),o=n(5),i=n(53)(!1),a=n(19)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,s=[];for(n in u)n!=a&&r(u,n)&&s.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(s,n)||s.push(n));return s}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(34),o=n(21).conc
at("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=i(n(39)),o=i(n(79));function i(t){return t&&t.__esModule?t:{default:t}}Vue.mixin(o.default),r.default.el="#root",new Vue(r.default)},function(t,e,n){var r,o,i=[];i.push(n(40)),r=n(41);var a=n(78);if(o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o=r=r.default),"function"==typeof o&&(o=o.options),o.__file="/Users/Hanks/Codes/work/weex-vue-examples/src/pages/About.vue",o.render=a.render,o.staticRenderFns=a.staticRenderFns,o._scopeId="data-v-6a7331ce",o.style=o.style||{},i.forEach(function(t){for(var e in t)o.style[e]=t[e]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(o._scopeId,i)}catch(t){}t.exports=r},function(t,e){t.exports={list:{backgroundColor:"#F5F5F5"},item:{padding
Top:"30",paddingBottom:"30",paddingLeft:"60",paddingRight:"40",borderBottomWidth:"1",borderBottomStyle:"solid",borderBottomColor:"#E6E6E6",backgroundColor:"#FFFFFF",flexDirection:"row",justifyContent:"space-between",alignItems:"center"},"item-1":{borderTopWidth:"1",borderTopStyle:"solid",borderTopColor:"#E6E6E6"},"item-title":{fontSize:"42",color:"#606060"},"item-value":{fontSize:"36",color:"#999999"},"arrow-icon":{width:"22",height:"36"},copyright:{marginTop:"50",paddingBottom:"20"},"copyright-text":{fontSize:"22",color:"#A0A0A0",textAlign:"center"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(26)),i=n(74),a=(r=i)&&r.__esModule?r:{default:r};var u=weex.requireModule("picker"),c=new BroadcastChannel("language"),s={en:"Follow System",zh:"跟随系统"};e.default={components:{AppInfoCard:a.d
efault},data:function(){return{language:"en",followSystem:!0,navigationBarOptions:{title:{zh:"关于 Weex",en:"About Weex"}},tips:{LANGUAGE:{en:"Language",zh:"语言"}},items:[{title:{en:"Weex Official Website",zh:"Weex 官方网站"},link:{en:"http://weex-project.io/",zh:"http://weex-project.io/cn/"}},{title:{en:"Apache Software Foundation",zh:"Apache 软件基金会"},link:"http://www.apache.org/"},{title:{en:"Who is using Weex",zh:"谁在使用 Weex"},link:{en:"http://weex-project.io/who-is-using-weex.html",zh:"http://weex-project.io/cn/who-is-using-weex.html"}},{title:{en:"Contribution",zh:"参与贡献"},link:{en:"http://weex-project.io/guide/contributing.html",zh:"http://weex-project.io/cn/guide/contributing.html"}},{title:{en:"Release Note",zh:"版本变更"},link:{en:"http://weex-project.io/releasenote.html",zh:"http://weex-project.io/cn/releasenote.html"}},{title:{en:"FAQ",zh:"常见问题"},link:{en:"http://weex-project.io/faq.html",zh:"http://weex-project.io/cn/faq.html"}
}]}},watch:{language:function(){this.followSystem||o.setLanguage(this.language),c.postMessage({language:this.language})}},computed:{languageName:function(){return this.followSystem?this.i18n(s):this.i18n({en:"English",zh:"简体中文"})}},created:function(){var t=this;o.readAbout(function(e){t.items=e}),o.getStorageLanguage(function(e){return t.followSystem=!1},function(){return t.followSystem=!0})},methods:{chooseLanguage:function(){var t=this,e=["","en","zh"],n=this.followSystem?0:e.indexOf(this.language);u.pick({index:n,items:[this.i18n(s),"English","中文"]},function(n){var r=n.result,i=n.data;if("success"===r){var a=e[i];a?(t.followSystem=!1,t.language=a):(t.followSystem=!0,o.clearStorageLanguage(),o.getSystemLanguage(function(e){t.language=e},function(e){t.language="en"}))}})}}}},function(t,e,n){t.exports={default:n(43),__esModule:!0}},function(t,e,n){var r=n(8),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},functi
on(t,e,n){t.exports={default:n(45),__esModule:!0}},function(t,e,n){n(46),n(59),t.exports=n(23).f("iterator")},function(t,e,n){"use strict";var r=n(47)(!0);n(28)(String,"String",function(t){this._t=String(t),this._i=0},function(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(13),o=n(14);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),s=u.length;return c<0||c>=s?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===s||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){var r=n(49);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)thro
w TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(33),o=n(11),i=n(22),a={};n(2)(a,n(6)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(9),i=n(18);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(35);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(5),o=n(54),i=n(55);t.exports=function(t){return function(e,n,a){var u,c=r(e),s=o(c.length),f=i(a,s);if(t&&n!=n){for(;s>f;)if((u=c[f++])!=u)return!0}else for(;s>f;f++)if((t||f in c)&&c[f]===n)return t||f||0;return!t&&-1}}},function(t,e,n){var r=n(13),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(13),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)
}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(1),o=n(58),i=n(19)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"function"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(14);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(60);for(var r=n(0),o=n(2),i=n(17),a=n(6)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var s=u[c],f=r[s],l=f&&f.prototype;l&&!l[a]&&o(l
,a,s),i[s]=i.Array}},function(t,e,n){"use strict";var r=n(61),o=n(62),i=n(17),a=n(5);t.exports=n(28)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t||n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){n(65),n(71),n(72),n(73),t.exports=n(8).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(4),a=n(29),u=n(32),c=n(66).KEY,s=n(10),f=n(20),l=n(22),p=n(12),d=n(6),v=n(23),h=n(24),g=n(67),y=n(68),m=n(9),x=n(7),b=n(5),w=n(16),_=n(11),S=n(33),O=n(69),E=n(70),j=n(3),A=n(18),L=E.f,C=j.f,P=O.f,M=r.Symbol,T=r.JSON,k=T&&T.stringify,F="prototype",D=d("_hidden"),N=d("toPrimitive"),R={}.propertyIsEnumerable,W=f("symbol-registry"),U=f("symbols"),I=f("op-symbol
s"),G=Object[F],z="function"==typeof M,X=r.QObject,B=!X||!X[F]||!X[F].findChild,V=i&&s(function(){return 7!=S(C({},"a",{get:function(){return C(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=L(G,e);r&&delete G[e],C(t,e,n),r&&t!==G&&C(G,e,r)}:C,q=function(t){var e=U[t]=S(M[F]);return e._k=t,e},J=z&&"symbol"==typeof M.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof M},Y=function(t,e,n){return t===G&&Y(I,e,n),m(t),e=w(e,!0),m(n),o(U,e)?(n.enumerable?(o(t,D)&&t[D][e]&&(t[D][e]=!1),n=S(n,{enumerable:_(0,!1)})):(o(t,D)||C(t,D,_(1,{})),t[D][e]=!0),V(t,e,n)):C(t,e,n)},H=function(t,e){m(t);for(var n,r=g(e=b(e)),o=0,i=r.length;i>o;)Y(t,n=r[o++],e[n]);return t},K=function(t){var e=R.call(this,t=w(t,!0));return!(this===G&&o(U,t)&&!o(I,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,D)&&this[D][t])||e)},$=function(t,e){if(t=b(t),e=w(e,!0),t!==G||!o(U,e)||o(I,e)){var n=L(t,e);return!n||!o(U,e)||o(t,D)&&t[D][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=P(b(t)),r=[
],i=0;n.length>i;)o(U,e=n[i++])||e==D||e==c||r.push(e);return r},Z=function(t){for(var e,n=t===G,r=P(n?I:b(t)),i=[],a=0;r.length>a;)!o(U,e=r[a++])||n&&!o(G,e)||i.push(U[e]);return i};z||(u((M=function(){if(this instanceof M)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(I,n),o(this,D)&&o(this[D],t)&&(this[D][t]=!1),V(this,t,_(1,n))};return i&&B&&V(G,t,{configurable:!0,set:e}),q(t)})[F],"toString",function(){return this._k}),E.f=$,j.f=Y,n(37).f=O.f=Q,n(25).f=K,n(36).f=Z,i&&!n(15)&&u(G,"propertyIsEnumerable",K,!0),v.f=function(t){return q(d(t))}),a(a.G+a.W+a.F*!z,{Symbol:M});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=A(d.store),rt=0;nt.length>rt;)h(nt[rt++]);a(a.S+a.F*!z,"Symbol",{for:function(t){return o(W,t+="")?W[t]:W[t]=M(t)},keyFor:function(t){if(!J(t))throw TypeError(t
+" is not a symbol!");for(var e in W)if(W[e]===t)return e},useSetter:function(){B=!0},useSimple:function(){B=!1}}),a(a.S+a.F*!z,"Object",{create:function(t,e){return void 0===e?S(t):H(S(t),e)},defineProperty:Y,defineProperties:H,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),T&&a(a.S+a.F*(!z||s(function(){var t=M();return"[null]"!=k([t])||"{}"!=k({a:t})||"{}"!=k(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(x(e)||void 0!==t)&&!J(t))return y(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!J(e))return e}),r[1]=e,k.apply(T,r)}}),M[F][N]||n(2)(M[F],N,M[F].valueOf),l(M,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(12)("meta"),o=n(7),i=n(1),a=n(3).f,u=0,c=Object.isExtensible||function(){return!0},s=!n(10)(function(){return c(Object.preventExtensions({}))}),f=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:fu
nction(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";f(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;f(t)}return t[r].w},onFreeze:function(t){return s&&l.NEED&&c(t)&&!i(t,r)&&f(t),t}}},function(t,e,n){var r=n(18),o=n(36),i=n(25);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,s=0;u.length>s;)c.call(t,a=u[s++])&&e.push(a);return e}},function(t,e,n){var r=n(35);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5),o=n(37).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(25),o=n(11),i=n(5),a=n(16),u=n(1),c=n(30),s=Object.getOwnPropertyDescriptor;e.f=n(4)?s:function(t,e){if(t=i(t),e=a(e,!0),c)try{return s(t,
e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(24)("asyncIterator")},function(t,e,n){n(24)("observable")},function(t,e,n){var r,o,i=[];i.push(n(75)),r=n(76);var a=n(77);if(o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o=r=r.default),"function"==typeof o&&(o=o.options),o.__file="/Users/Hanks/Codes/work/weex-vue-examples/src/components/AppInfoCard.vue",o.render=a.render,o.staticRenderFns=a.staticRenderFns,o._scopeId="data-v-6e3be69f",o.style=o.style||{},i.forEach(function(t){for(var e in t)o.style[e]=t[e]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(o._scopeId,i)}catch(t){}t.exports=r},function(t,e){t.exports={card:{width:"650",justifyContent:"center",borderWidth:"1",borderColor:"#DDDDDD",borderRadius:"20",paddingTop:"50",paddingRight:"50",paddingB
ottom:"50",paddingLeft:"50",marginTop:"50",marginRight:"50",marginBottom:"50",marginLeft:"50",backgroundColor:"#FFFFFF"},title:{fontSize:"34",textAlign:"center",color:"#808080",marginBottom:"20"},version:{fontSize:"80",textAlign:"center",marginBottom:"30",color:"#323232"},group:{marginTop:"10",flexDirection:"row"},label:{width:"260",fontSize:"32",textAlign:"right",color:"#888888"},value:{width:"230",paddingLeft:"50",fontSize:"32",color:"#414141"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r,o=n(27),i=(r=o)&&r.__esModule?r:{default:r};var a="- invalid -";e.default={data:function(){return{version:a,jsfmVersion:a,platform:a,osVersion:a,deviceModel:a}},created:function(){try{this.jsfmVersion=getJSFMVersion()}catch(t){this.jsfmVersion="≤ 0.15.6"}"object"===("undefined"==typeof WXEnvironment?"undefined":(0,i.default)(WXEnvironment))&&(this.version=WXEnvironment.weexVersion||"- - -",this.platform=WXEnvironment.platform||"- - -",this.osVersion=WXEn
vironment.osVersion||"- - -",this.deviceModel=WXEnvironment.deviceModel||"- - -")}}},function(t,e){t.exports={render:function(){var t=this.$createElement,e=this._self._c||t;return e("div",{staticClass:["card"]},[e("div",{staticClass:["info"]},[e("text",{staticClass:["title"]},[this._v("Weex SDK Version")]),e("text",{staticClass:["version"]},[this._v(this._s(this.version))]),e("div",{staticClass:["group"]},[e("text",{staticClass:["label"]},[this._v("JS Framework")]),e("text",{staticClass:["value"]},[this._v(this._s(this.jsfmVersion))])]),e("div",{staticClass:["group"]},[e("text",{staticClass:["label"]},[this._v("platform")]),e("text",{staticClass:["value"]},[this._v(this._s(this.platform))])]),e("div",{staticClass:["group"]},[e("text",{staticClass:["label"]},[this._v("osVersion")]),e("text",{staticClass:["value"]},[this._v(this._s(this.osVersion))])]),e("div",{staticClass:["group"]},[e("text",{staticClass:["label"]},[this._v("deviceModel")]),e("text",{staticClass:["value"]},[this._v(
this._s(this.deviceModel))])])])])},staticRenderFns:[]},t.exports.render._withStripped=!0},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("list",{staticClass:["list"]},[n("cell",{appendAsTree:!0,attrs:{append:"tree"}},[n("app-info-card")],1),t._l(t.items,function(e,r){return n("cell",{key:r,class:["item-cell","item-cell-"+(r+1)],appendAsTree:!0,attrs:{append:"tree"}},[e.link?n("div",{class:["item","item-"+(r+1)],on:{click:function(n){t.jumpTo(e.link,e.title)}}},[n("text",{staticClass:["item-title"]},[t._v(t._s(t.i18n(e.title)))]),n("image",{staticClass:["arrow-icon"],attrs:{src:"https://gw.alicdn.com/tfs/TB1iL2fkLDH8KJjy1XcXXcpdXXa-32-49.png"}})]):t._e()])}),n("cell",{staticClass:["item-cell"],appendAsTree:!0,attrs:{append:"tree"}},[n("div",{staticClass:["item"],on:{click:t.chooseLanguage}},[n("text",{staticClass:["item-title"]},[t._v(t._s(t.i18n(t.tips.LANGUAGE)))]),n("text",{staticClass:["item-value"]},[t._v(t._s(t.languageName))]
)])]),t._m(0)],2)},staticRenderFns:[function(){var t=this.$createElement,e=this._self._c||t;return e("cell",{appendAsTree:!0,attrs:{append:"tree"}},[e("div",{staticClass:["copyright"]},[e("text",{staticClass:["copyright-text"]},[this._v("Copyright(c) 2017 The Apache Software Foundation.")]),e("text",{staticClass:["copyright-text"]},[this._v("Licensed under the Apache License, Version 2.0")])])])}]},t.exports.render._withStripped=!0},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(26));var o=weex.requireModule("storage");e.default={filters:{i18n:r.i18n,url:r.createURL,link:r.createLink},methods:{createLink:r.createLink,createURL:r.createURL,i18n:r.i18n,getLanguage:r.getLanguage,fetchData:r.fetchData,saveData:r.saveData,readData:r.readData,jumpTo:r.jumpTo},created:function(){var t=this;r.getLanguag
e(function(e){t.language=e,r.setTitleBar(t.navigationBarOptions,e)}),new BroadcastChannel("language").onmessage=function(e){e.data&&e.data.language&&(t.language=e.data.language)}},beforeDestroy:function(){o.removeItem("CURRENT_DOCUMENT_URL"),o.removeItem("CURRENT_SOURCE_HASH")}}}]);
\ No newline at end of file
[2/3] incubator-weex git commit: * [iOS] support openURL for scan
viewController
Posted by ac...@apache.org.
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/bundlejs/examples.weex.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/examples.weex.js b/ios/playground/bundlejs/examples.weex.js
new file mode 100644
index 0000000..2fcb1a1
--- /dev/null
+++ b/ios/playground/bundlejs/examples.weex.js
@@ -0,0 +1,4 @@
+// { "framework": "Vue" }
+"use weex:vue";
+
+!function(t){var e={};function n(r){if(e[r])return e[r].exports;var o=e[r]={i:r,l:!1,exports:{}};return t[r].call(o.exports,o,o.exports,n),o.l=!0,o.exports}n.m=t,n.c=e,n.d=function(t,e,r){n.o(t,e)||Object.defineProperty(t,e,{configurable:!1,enumerable:!0,get:r})},n.n=function(t){var e=t&&t.__esModule?function(){return t.default}:function(){return t};return n.d(e,"a",e),e},n.o=function(t,e){return Object.prototype.hasOwnProperty.call(t,e)},n.p="",n(n.s=37)}([function(t,e){var n=t.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(t,e){var n={}.hasOwnProperty;t.exports=function(t,e){return n.call(t,e)}},function(t,e,n){var r=n(3),o=n(11);t.exports=n(4)?function(t,e,n){return r.f(t,e,o(1,n))}:function(t,e,n){return t[e]=n,t}},function(t,e,n){var r=n(9),o=n(29),i=n(17),a=Object.defineProperty;e.f=n(4)?Object.defineProperty:function(t,e,n){if(r(t),e=i(e,!0),r(n),o)tr
y{return a(t,e,n)}catch(t){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(t[e]=n.value),t}},function(t,e,n){t.exports=!n(10)(function(){return 7!=Object.defineProperty({},"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(52),o=n(15);t.exports=function(t){return r(o(t))}},function(t,e,n){var r=n(21)("wks"),o=n(12),i=n(0).Symbol,a="function"==typeof i;(t.exports=function(t){return r[t]||(r[t]=a&&i[t]||(a?i:o)("Symbol."+t))}).store=r},function(t,e){t.exports=function(t){return"object"==typeof t?null!==t:"function"==typeof t}},function(t,e){var n=t.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(t,e,n){var r=n(7);t.exports=function(t){if(!r(t))throw TypeError(t+" is not an object!");return t}},function(t,e){t.exports=function(t){try{return!!t()}catch(t){return!0}}},function(t,e){t.exports=function(t,e){return{enumerable:!(1&t),configurable:!(2&t),writable:!(4&t),value:e}}},function(t,e){var n=0,r=Math.random();t.expo
rts=function(t){return"Symbol(".concat(void 0===t?"":t,")_",(++n+r).toString(36))}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0}),e.fetchNews=e.fetchDoodle=e.readAbout=e.saveAbout=e.fetchAbout=e.readGuide=e.saveGuide=e.fetchGuide=e.readExamples=e.saveExamples=e.fetchExamples=void 0;var r=i(n(41)),o=i(n(43));function i(t){return t&&t.__esModule?t:{default:t}}e.createLink=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];for(var r in e)"string"==typeof e[r]&&n.push(f(r)+"="+f(e[r]));if("Web"===WXEnvironment.platform)return n.unshift("page="+t+".web.js"),"/?"+n.join("&");return""+function(){var t=weex.config.bundleUrl,e=t.indexOf("your_current_IP")>=0||t.indexOf("file://assets/")>=0,n=t.indexOf("file:///")>=0&&t.indexOf("WeexDemo.app")>0;if(e)return"file://assets/";if(n)return t.substring(0,t.lastIndexOf("/")+1);return""}()+t+".weex.js"+(n.length?"?"+n.join("&"):"")},e.createURL=s,e.i18n=l,e.parseLanguage=d,e.setLanguage=fu
nction(t){var e=d(t);e&&u.setItem("WEEX_PLAYGROUND_LANGUAGE",e)},e.clearStorageLanguage=function(){u.removeItem("WEEX_PLAYGROUND_LANGUAGE")},e.getStorageLanguage=v,e.getSystemLanguage=g,e.getLanguage=h,e.jumpTo=function(t,e){h(function(n){u.setItem("CURRENT_DOCUMENT_URL",l(t,n)),c.push({url:s("bf0305c14b511b24a4e616f53926432b",{language:n,title:l(e,n)})})})},e.viewSource=function(t){h(function(e){c.push({url:s("f6ce29faf686eabc38b410bf4828fa5a",{hash:t,language:e})})})},e.setTitleBar=function(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if("[object Object]"!==Object.prototype.toString.apply(t))return;var n=weex.requireModule("titleBar");if(t.color||t.backgroundColor)try{n.setStyle({foregroundColor:t.color||"#FFFFFF",backgroundColor:t.backgroundColor||"#00B4FF"})}catch(t){}var r=l(t.title,e);if(r)try{n.setTitle(r)}catch(t){}},e.fetchData=b,e.saveData=x,e.readData=_;var a=weex.requireModule("stream"),u=weex.requireModule("storage"),c=weex.requireModule("navigat
or"),f="function"==typeof encodeURIComponent?encodeURIComponent:"function"==typeof encodeURI?encodeURI:function(t){return t};function s(t,e){if("Web"===WXEnvironment.platform)return"http://dotwe.org/raw/htmlVue/"+t;var n="http://dotwe.org/raw/dist/"+t+".bundle.wx",r=function(t){if(!t||"object"!==(void 0===t?"undefined":(0,o.default)(t)))return"";var e=[];for(var n in t)"string"==typeof t[n]&&e.push(f(n)+"="+f(t[n]));return e.join("&")}(e);return"TB"===WXEnvironment.appName?n+"?_wx_tpl="+n+"&"+r:"WXSample"===WXEnvironment.appName?n+"?"+r:n+"?wx_weex=true&"+r}function l(t,e){return"string"==typeof t?t:"[object Object]"===Object.prototype.toString.call(t)?t[this&&this.language||e||"en"]:void 0}var p=/(en|zh)\_?\w*/i;function d(t){var e=p.exec(t+"");return e&&e[1]?e[1]:""}function v(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===t||(0,o.default)(t)))try{u.getItem("WEEX_PLAYGROUND_LANGUAGE",function(n){if("success"===n.result){var
r=d(n.data);r?t(r):e()}else e(n)})}catch(t){e(t)}}function g(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===t||(0,o.default)(t)))if("web"===WXEnvironment.platform.toLowerCase()){var n=d(window.navigator.language);n?t(n):e()}else try{var r=weex.requireModule("locale")||weex.requireModule("local"),i=!1,a=d(r.getLanguage(function(n){var r=d(n);r?i||t(r):e()}));a?(i=!0,t(a)):e()}catch(t){e(t)}}var y=/.+[\?\&]{1}language=([\d\w]+)[\?\&]?.*/i;function h(){var t=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},e=y.exec(weex.config.bundleUrl||""),n=d(e&&e[1]);n?t(n):v(t,function(){g(t,function(){t("en")})})}var m={doodle:"WEEX_PLAYGROUND_APP_DOODLE",guide:"WEEX_PLAYGROUND_APP_GUIDE",examples:"WEEX_PLAYGROUND_APP_EXAMPLES",news:"WEEX_PLAYGROUND_APP_NEWS",about:"WEEX_PLAYGROUND_APP_ABOUT"};function b(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2
]?arguments[2]:function(){};try{a.fetch({url:"http://dotwe.org/query/weex-playground-app",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"json",body:"name="+t},function(t){t.ok&&t.data&&t.data.success?e(t.data):n(t)})}catch(t){n(t)}}function x(t,e){var n=m[t];n&&e&&"object"===(void 0===e?"undefined":(0,o.default)(e))&&(e.timestamp=Date.now(),u.setItem(n,(0,r.default)(e)))}function _(t){var e=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},r=m[t];if(!r)return n();try{u.getItem(r,function(r){if("success"===r.result){var o=JSON.parse(r.data);if(o&&Array.isArray(o[t]))return e(o[t])}n(r)})}catch(t){n(t)}}e.fetchExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["examples"].concat(e))},e.saveExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["exampl
es"].concat(e))},e.readExamples=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return _.apply(void 0,["examples"].concat(e))},e.fetchGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["guide"].concat(e))},e.saveGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["guide"].concat(e))},e.readGuide=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return _.apply(void 0,["guide"].concat(e))},e.fetchAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["about"].concat(e))},e.saveAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return x.apply(void 0,["about"].concat(e))},e.readAbout=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return _.apply(void 0,["about"].concat(e))},e.fetchDoodle=function(){fo
r(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["doodle"].concat(e))},e.fetchNews=function(){for(var t=arguments.length,e=Array(t),n=0;n<t;n++)e[n]=arguments[n];return b.apply(void 0,["news"].concat(e))}},function(t,e){var n=Math.ceil,r=Math.floor;t.exports=function(t){return isNaN(t=+t)?0:(t>0?r:n)(t)}},function(t,e){t.exports=function(t){if(void 0==t)throw TypeError("Can't call method on "+t);return t}},function(t,e){t.exports=!0},function(t,e,n){var r=n(7);t.exports=function(t,e){if(!r(t))return t;var n,o;if(e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;if("function"==typeof(n=t.valueOf)&&!r(o=n.call(t)))return o;if(!e&&"function"==typeof(n=t.toString)&&!r(o=n.call(t)))return o;throw TypeError("Can't convert object to primitive value")}},function(t,e){t.exports={}},function(t,e,n){var r=n(33),o=n(22);t.exports=Object.keys||function(t){return r(t,o)}},function(t,e,n){var r=n(21)("keys"),o=n(12);t.exports=function(t){return
r[t]||(r[t]=o(t))}},function(t,e,n){var r=n(0),o=r["__core-js_shared__"]||(r["__core-js_shared__"]={});t.exports=function(t){return o[t]||(o[t]={})}},function(t,e){t.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(t,e,n){var r=n(3).f,o=n(1),i=n(6)("toStringTag");t.exports=function(t,e,n){t&&!o(t=n?t:t.prototype,i)&&r(t,i,{configurable:!0,value:e})}},function(t,e,n){e.f=n(6)},function(t,e,n){var r=n(0),o=n(8),i=n(16),a=n(24),u=n(3).f;t.exports=function(t){var e=o.Symbol||(o.Symbol=i?{}:r.Symbol||{});"_"==t.charAt(0)||t in e||u(e,t,{value:a.f(t)})}},function(t,e){e.f={}.propertyIsEnumerable},function(t,e,n){"use strict";var r=n(16),o=n(28),i=n(31),a=n(2),u=n(1),c=n(18),f=n(50),s=n(23),l=n(57),p=n(6)("iterator"),d=!([].keys&&"next"in[].keys()),v=function(){return this};t.exports=function(t,e,n,g,y,h,m){f(n,e,g);var b,x,_,w=function(t){if(!d&&t in A)return A[t];switch(t){case"keys":case"values":return function(
){return new n(this,t)}}return function(){return new n(this,t)}},S=e+" Iterator",O="values"==y,E=!1,A=t.prototype,C=A[p]||A["@@iterator"]||y&&A[y],j=!d&&C||w(y),L=y?O?w("entries"):j:void 0,T="Array"==e?A.entries||C:C;if(T&&(_=l(T.call(new t)))!==Object.prototype&&_.next&&(s(_,S,!0),r||u(_,p)||a(_,p,v)),O&&C&&"values"!==C.name&&(E=!0,j=function(){return C.call(this)}),r&&!m||!d&&!E&&A[p]||a(A,p,j),c[e]=j,c[S]=v,y)if(b={values:O?j:w("values"),keys:h?j:w("keys"),entries:L},m)for(x in b)x in A||i(A,x,b[x]);else o(o.P+o.F*(d||E),e,b);return b}},function(t,e,n){var r=n(0),o=n(8),i=n(48),a=n(2),u="prototype",c=function(t,e,n){var f,s,l,p=t&c.F,d=t&c.G,v=t&c.S,g=t&c.P,y=t&c.B,h=t&c.W,m=d?o:o[e]||(o[e]={}),b=m[u],x=d?r:v?r[e]:(r[e]||{})[u];d&&(n=e);for(f in n)(s=!p&&x&&void 0!==x[f])&&f in m||(l=s?x[f]:n[f],m[f]=d&&"function"!=typeof x[f]?n[f]:y&&s?i(l,r):h&&x[f]==l?function(t){var e=function(e,n,r){if(this instanceof t){switch(arguments.length){case 0:return new t;case 1:return new t(e);cas
e 2:return new t(e,n)}return new t(e,n,r)}return t.apply(this,arguments)};return e[u]=t[u],e}(l):g&&"function"==typeof l?i(Function.call,l):l,g&&((m.virtual||(m.virtual={}))[f]=l,t&c.R&&b&&!b[f]&&a(b,f,l)))};c.F=1,c.G=2,c.S=4,c.P=8,c.B=16,c.W=32,c.U=64,c.R=128,t.exports=c},function(t,e,n){t.exports=!n(4)&&!n(10)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},function(t,e,n){var r=n(7),o=n(0).document,i=r(o)&&r(o.createElement);t.exports=function(t){return i?o.createElement(t):{}}},function(t,e,n){t.exports=n(2)},function(t,e,n){var r=n(9),o=n(51),i=n(22),a=n(20)("IE_PROTO"),u=function(){},c=function(){var t,e=n(30)("iframe"),r=i.length;for(e.style.display="none",n(56).appendChild(e),e.src="javascript:",(t=e.contentWindow.document).open(),t.write("<script>document.F=Object<\/script>"),t.close(),c=t.F;r--;)delete c.prototype[i[r]];return c()};t.exports=Object.create||function(t,e){var n;return null!==t?(u.prototype=r(t),n=new u,u.prototype
=null,n[a]=t):n=c(),void 0===e?n:o(n,e)}},function(t,e,n){var r=n(1),o=n(5),i=n(53)(!1),a=n(20)("IE_PROTO");t.exports=function(t,e){var n,u=o(t),c=0,f=[];for(n in u)n!=a&&r(u,n)&&f.push(n);for(;e.length>c;)r(u,n=e[c++])&&(~i(f,n)||f.push(n));return f}},function(t,e){var n={}.toString;t.exports=function(t){return n.call(t).slice(8,-1)}},function(t,e){e.f=Object.getOwnPropertySymbols},function(t,e,n){var r=n(33),o=n(22).concat("length","prototype");e.f=Object.getOwnPropertyNames||function(t){return r(t,o)}},function(t,e,n){"use strict";var r=i(n(38)),o=i(n(79));function i(t){return t&&t.__esModule?t:{default:t}}Vue.mixin(o.default),r.default.el="#root",new Vue(r.default)},function(t,e,n){var r,o,i=[];i.push(n(39)),r=n(40);var a=n(78);if(o=r=r||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o=r=r.default),"function"==typeof o&&(o=o.opt
ions),o.__file="/Users/Hanks/Codes/work/weex-vue-examples/src/pages/Examples.vue",o.render=a.render,o.staticRenderFns=a.staticRenderFns,o._scopeId="data-v-25a5be6d",o.style=o.style||{},i.forEach(function(t){for(var e in t)o.style[e]=t[e]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(o._scopeId,i)}catch(t){}t.exports=r},function(t,e){t.exports={"example-list":{width:"750",position:"absolute",top:0,bottom:"100",backgroundColor:"#F5F5F5"},"group-info":{backgroundColor:"#FFFFFF"},loading:{flex:1,justifyContent:"center",alignItems:"center"},"loading-text":{fontSize:"60",color:"#BBBBBB"},"group-title":{width:"750",paddingTop:"20",paddingBottom:"35",fontSize:"40",textAlign:"center",color:"#00B4FF",backgroundImage:"linear-gradient(to bottom, #E3F5FB, #F9FEFF)"},"group-desc":{fontSize:"28",color:"#999999",marginTop:"10",marginLeft:"30",marginRight:"40"},"doc-link":{fontSize:"26",color:"rgba(0,189,255,0.6)",textAlign:"right",marginTop:"10",marginRight:"60"
,marginBottom:"20"},section:{paddingBottom:"30"},tabbar:{width:"750",position:"fixed",bottom:0,height:"100",flexDirection:"row",justifyContent:"space-around",alignItems:"flex-end",backgroundColor:"#E6E6E6"},"tab-cell":{width:"186",height:"100",borderTopWidth:"2",borderTopStyle:"solid",borderTopColor:"#DDDDDD",justifyContent:"center",backgroundColor:"#FCFCFC",transitionProperty:"backgroundColor",transitionDuration:200},"@TRANSITION":{"tab-cell":{property:"backgroundColor",duration:200},"tab-name":{property:"color,fontSize",duration:100}},"active-tab-cell":{borderTopColor:"rgba(0,189,255,0.8)",backgroundColor:"#BDECFF"},"tab-name":{textAlign:"center",color:"#666666",transitionProperty:"color,fontSize",transitionDuration:100},"tab-name-zh":{fontSize:"36"},"tab-name-en":{fontSize:"30"},"active-tab-name-zh":{color:"#00B4FF",fontSize:"42",fontWeight:"bold"},"active-tab-name-en":{color:"#00B4FF",fontSize:"30",fontWeight:"bold"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esMo
dule",{value:!0});var r,o=n(13),i=n(74),a=(r=i)&&r.__esModule?r:{default:r};var u=[],c=!1;e.default={components:{ExampleScroller:a.default},data:function(){return{navigationBarOptions:{title:{zh:"使用 Weex 的例子",en:"Weex Examples"}},examples:u,showLoading:!1,language:"en",activeTab:"component",activeGroup:"div",tips:{VIEW_SOURCE:{en:"view source",zh:"查看源码"},READ_MORE:{en:"read more",zh:"查看更多"}}}},beforeCreate:function(){var t=this;(0,o.readExamples)(function(e){t.examples=e,"web"!==WXEnvironment.platform.toLowerCase()&&(c=!0)}),(0,o.fetchExamples)(function(e){(0,o.saveExamples)(e),c||(t.examples=e.examples)}),setTimeout(function(){t.showLoading=!0},400)},computed:{tabs:function(){return this.examples.map(function(t){return{type:t.type,name:t.name}})},currentTab:function(){var t=this;return this.examples.filter(function(e){return e.type===t.activeTab})[0]}},methods:{toggleTab:function(t){this.activeTab=t,this.activeGroup=this.currentTab.group[0].type}}}},functi
on(t,e,n){t.exports={default:n(42),__esModule:!0}},function(t,e,n){var r=n(8),o=r.JSON||(r.JSON={stringify:JSON.stringify});t.exports=function(t){return o.stringify.apply(o,arguments)}},function(t,e,n){"use strict";e.__esModule=!0;var r=a(n(44)),o=a(n(63)),i="function"==typeof o.default&&"symbol"==typeof r.default?function(t){return typeof t}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":typeof t};function a(t){return t&&t.__esModule?t:{default:t}}e.default="function"==typeof o.default&&"symbol"===i(r.default)?function(t){return void 0===t?"undefined":i(t)}:function(t){return t&&"function"==typeof o.default&&t.constructor===o.default&&t!==o.default.prototype?"symbol":void 0===t?"undefined":i(t)}},function(t,e,n){t.exports={default:n(45),__esModule:!0}},function(t,e,n){n(46),n(59),t.exports=n(24).f("iterator")},function(t,e,n){"use strict";var r=n(47)(!0);n(27)(String,"String",function(t){this._t=String(t),this._i=0},f
unction(){var t,e=this._t,n=this._i;return n>=e.length?{value:void 0,done:!0}:(t=r(e,n),this._i+=t.length,{value:t,done:!1})})},function(t,e,n){var r=n(14),o=n(15);t.exports=function(t){return function(e,n){var i,a,u=String(o(e)),c=r(n),f=u.length;return c<0||c>=f?t?"":void 0:(i=u.charCodeAt(c))<55296||i>56319||c+1===f||(a=u.charCodeAt(c+1))<56320||a>57343?t?u.charAt(c):i:t?u.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(t,e,n){var r=n(49);t.exports=function(t,e,n){if(r(t),void 0===e)return t;switch(n){case 1:return function(n){return t.call(e,n)};case 2:return function(n,r){return t.call(e,n,r)};case 3:return function(n,r,o){return t.call(e,n,r,o)}}return function(){return t.apply(e,arguments)}}},function(t,e){t.exports=function(t){if("function"!=typeof t)throw TypeError(t+" is not a function!");return t}},function(t,e,n){"use strict";var r=n(32),o=n(11),i=n(23),a={};n(2)(a,n(6)("iterator"),function(){return this}),t.exports=function(t,e,n){t.prototype=r(a,{next:o(1,n)}),i(t
,e+" Iterator")}},function(t,e,n){var r=n(3),o=n(9),i=n(19);t.exports=n(4)?Object.defineProperties:function(t,e){o(t);for(var n,a=i(e),u=a.length,c=0;u>c;)r.f(t,n=a[c++],e[n]);return t}},function(t,e,n){var r=n(34);t.exports=Object("z").propertyIsEnumerable(0)?Object:function(t){return"String"==r(t)?t.split(""):Object(t)}},function(t,e,n){var r=n(5),o=n(54),i=n(55);t.exports=function(t){return function(e,n,a){var u,c=r(e),f=o(c.length),s=i(a,f);if(t&&n!=n){for(;f>s;)if((u=c[s++])!=u)return!0}else for(;f>s;s++)if((t||s in c)&&c[s]===n)return t||s||0;return!t&&-1}}},function(t,e,n){var r=n(14),o=Math.min;t.exports=function(t){return t>0?o(r(t),9007199254740991):0}},function(t,e,n){var r=n(14),o=Math.max,i=Math.min;t.exports=function(t,e){return(t=r(t))<0?o(t+e,0):i(t,e)}},function(t,e,n){var r=n(0).document;t.exports=r&&r.documentElement},function(t,e,n){var r=n(1),o=n(58),i=n(20)("IE_PROTO"),a=Object.prototype;t.exports=Object.getPrototypeOf||function(t){return t=o(t),r(t,i)?t[i]:"fu
nction"==typeof t.constructor&&t instanceof t.constructor?t.constructor.prototype:t instanceof Object?a:null}},function(t,e,n){var r=n(15);t.exports=function(t){return Object(r(t))}},function(t,e,n){n(60);for(var r=n(0),o=n(2),i=n(18),a=n(6)("toStringTag"),u="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<u.length;c++){var f=u[c],s=r[f],l=s&&s.prototype;l&&!l[a]&&o(l,a,f),i[f]=i.Array}},function(t,e,n){"use strict";var r=n(61),o=n(62),i=n(18),a=n(5);t.exports=n(27)(Array,"Array",function(t,e){this._t=a(t),this._i=0,this._k=e},function(){var t=this._t,e=this._k,n=this._i++;return!t|
|n>=t.length?(this._t=void 0,o(1)):o(0,"keys"==e?n:"values"==e?t[n]:[n,t[n]])},"values"),i.Arguments=i.Array,r("keys"),r("values"),r("entries")},function(t,e){t.exports=function(){}},function(t,e){t.exports=function(t,e){return{value:e,done:!!t}}},function(t,e,n){t.exports={default:n(64),__esModule:!0}},function(t,e,n){n(65),n(71),n(72),n(73),t.exports=n(8).Symbol},function(t,e,n){"use strict";var r=n(0),o=n(1),i=n(4),a=n(28),u=n(31),c=n(66).KEY,f=n(10),s=n(21),l=n(23),p=n(12),d=n(6),v=n(24),g=n(25),y=n(67),h=n(68),m=n(9),b=n(7),x=n(5),_=n(17),w=n(11),S=n(32),O=n(69),E=n(70),A=n(3),C=n(19),j=E.f,L=A.f,T=O.f,P=r.Symbol,F=r.JSON,D=F&&F.stringify,k="prototype",R=d("_hidden"),M=d("toPrimitive"),I={}.propertyIsEnumerable,N=s("symbol-registry"),U=s("symbols"),W=s("op-symbols"),G=Object[k],B="function"==typeof P,z=r.QObject,X=!z||!z[k]||!z[k].findChild,V=i&&f(function(){return 7!=S(L({},"a",{get:function(){return L(this,"a",{value:7}).a}})).a})?function(t,e,n){var r=j(G,e);r&&delete G[e],L
(t,e,n),r&&t!==G&&L(G,e,r)}:L,q=function(t){var e=U[t]=S(P[k]);return e._k=t,e},Y=B&&"symbol"==typeof P.iterator?function(t){return"symbol"==typeof t}:function(t){return t instanceof P},H=function(t,e,n){return t===G&&H(W,e,n),m(t),e=_(e,!0),m(n),o(U,e)?(n.enumerable?(o(t,R)&&t[R][e]&&(t[R][e]=!1),n=S(n,{enumerable:w(0,!1)})):(o(t,R)||L(t,R,w(1,{})),t[R][e]=!0),V(t,e,n)):L(t,e,n)},J=function(t,e){m(t);for(var n,r=y(e=x(e)),o=0,i=r.length;i>o;)H(t,n=r[o++],e[n]);return t},K=function(t){var e=I.call(this,t=_(t,!0));return!(this===G&&o(U,t)&&!o(W,t))&&(!(e||!o(this,t)||!o(U,t)||o(this,R)&&this[R][t])||e)},$=function(t,e){if(t=x(t),e=_(e,!0),t!==G||!o(U,e)||o(W,e)){var n=j(t,e);return!n||!o(U,e)||o(t,R)&&t[R][e]||(n.enumerable=!0),n}},Q=function(t){for(var e,n=T(x(t)),r=[],i=0;n.length>i;)o(U,e=n[i++])||e==R||e==c||r.push(e);return r},Z=function(t){for(var e,n=t===G,r=T(n?W:x(t)),i=[],a=0;r.length>a;)!o(U,e=r[a++])||n&&!o(G,e)||i.push(U[e]);return i};B||(u((P=function(){if(this instance
of P)throw TypeError("Symbol is not a constructor!");var t=p(arguments.length>0?arguments[0]:void 0),e=function(n){this===G&&e.call(W,n),o(this,R)&&o(this[R],t)&&(this[R][t]=!1),V(this,t,w(1,n))};return i&&X&&V(G,t,{configurable:!0,set:e}),q(t)})[k],"toString",function(){return this._k}),E.f=$,A.f=H,n(36).f=O.f=Q,n(26).f=K,n(35).f=Z,i&&!n(16)&&u(G,"propertyIsEnumerable",K,!0),v.f=function(t){return q(d(t))}),a(a.G+a.W+a.F*!B,{Symbol:P});for(var tt="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),et=0;tt.length>et;)d(tt[et++]);for(var nt=C(d.store),rt=0;nt.length>rt;)g(nt[rt++]);a(a.S+a.F*!B,"Symbol",{for:function(t){return o(N,t+="")?N[t]:N[t]=P(t)},keyFor:function(t){if(!Y(t))throw TypeError(t+" is not a symbol!");for(var e in N)if(N[e]===t)return e},useSetter:function(){X=!0},useSimple:function(){X=!1}}),a(a.S+a.F*!B,"Object",{create:function(t,e){return void 0===e?S(t):J(S(t),e)},defineProperty:H,definePro
perties:J,getOwnPropertyDescriptor:$,getOwnPropertyNames:Q,getOwnPropertySymbols:Z}),F&&a(a.S+a.F*(!B||f(function(){var t=P();return"[null]"!=D([t])||"{}"!=D({a:t})||"{}"!=D(Object(t))})),"JSON",{stringify:function(t){for(var e,n,r=[t],o=1;arguments.length>o;)r.push(arguments[o++]);if(n=e=r[1],(b(e)||void 0!==t)&&!Y(t))return h(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!Y(e))return e}),r[1]=e,D.apply(F,r)}}),P[k][M]||n(2)(P[k],M,P[k].valueOf),l(P,"Symbol"),l(Math,"Math",!0),l(r.JSON,"JSON",!0)},function(t,e,n){var r=n(12)("meta"),o=n(7),i=n(1),a=n(3).f,u=0,c=Object.isExtensible||function(){return!0},f=!n(10)(function(){return c(Object.preventExtensions({}))}),s=function(t){a(t,r,{value:{i:"O"+ ++u,w:{}}})},l=t.exports={KEY:r,NEED:!1,fastKey:function(t,e){if(!o(t))return"symbol"==typeof t?t:("string"==typeof t?"S":"P")+t;if(!i(t,r)){if(!c(t))return"F";if(!e)return"E";s(t)}return t[r].i},getWeak:function(t,e){if(!i(t,r)){if(!c(t))return!0;if(!e)return!1;s(t)}r
eturn t[r].w},onFreeze:function(t){return f&&l.NEED&&c(t)&&!i(t,r)&&s(t),t}}},function(t,e,n){var r=n(19),o=n(35),i=n(26);t.exports=function(t){var e=r(t),n=o.f;if(n)for(var a,u=n(t),c=i.f,f=0;u.length>f;)c.call(t,a=u[f++])&&e.push(a);return e}},function(t,e,n){var r=n(34);t.exports=Array.isArray||function(t){return"Array"==r(t)}},function(t,e,n){var r=n(5),o=n(36).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];t.exports.f=function(t){return a&&"[object Window]"==i.call(t)?function(t){try{return o(t)}catch(t){return a.slice()}}(t):o(r(t))}},function(t,e,n){var r=n(26),o=n(11),i=n(5),a=n(17),u=n(1),c=n(29),f=Object.getOwnPropertyDescriptor;e.f=n(4)?f:function(t,e){if(t=i(t),e=a(e,!0),c)try{return f(t,e)}catch(t){}if(u(t,e))return o(!r.f.call(t,e),t[e])}},function(t,e){},function(t,e,n){n(25)("asyncIterator")},function(t,e,n){n(25)("observable")},function(t,e,n){var r,o,i=[];i.push(n(75)),r=n(76);var a=n(77);if(o=r=r
||{},"object"!=typeof r.default&&"function"!=typeof r.default||(Object.keys(r).some(function(t){return"default"!==t&&"__esModule"!==t})&&console.error("named exports are not supported in *.vue files."),o=r=r.default),"function"==typeof o&&(o=o.options),o.__file="/Users/Hanks/Codes/work/weex-vue-examples/src/components/ExampleScroller.vue",o.render=a.render,o.staticRenderFns=a.staticRenderFns,o._scopeId="data-v-d9e80478",o.style=o.style||{},i.forEach(function(t){for(var e in t)o.style[e]=t[e]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(o._scopeId,i)}catch(t){}t.exports=r},function(t,e){t.exports={scroller:{flexDirection:"row",backgroundColor:"#FDFDFD",paddingTop:"20",paddingRight:"20",paddingBottom:"20",paddingLeft:"20",height:"600"},"example-box":{justifyContent:"space-between",alignItems:"center",paddingLeft:"6",paddingRight:"6",width:"310"},screenshot:{width:"270",height:"422",borderWidth:"1",borderColor:"#DDDDDD"},title:{height:"75",justifyC
ontent:"center"},"title-text":{fontSize:"32",textAlign:"center",color:"#606060",paddingTop:"10",paddingBottom:"10"},"example-tips":{fontSize:"28",textAlign:"center",color:"#A5A5A5",paddingTop:"10",paddingBottom:"10"}}},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=n(13);e.default={methods:{viewSource:r.viewSource},props:{language:{type:String,default:"en"},examples:{type:Array,required:!0}},data:function(){return{VIEW_SOURCE:{en:"view source",zh:"查看源码"}}}}},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("scroller",{staticClass:["scroller"],attrs:{scrollDirection:"horizontal"}},t._l(t.examples,function(e,r){return n("div",{key:r,staticClass:["example-box"]},[n("div",{staticClass:["title"]},[n("text",{staticClass:["title-text"]},[t._v(t._s(t.i18n(e.title)))])]),n("div",{staticStyle:{alignItems:"center"}},[n("a",{attrs:{href:t._f("url")(t.i18n(e.hash))}},[n("image",{staticClass:["screenshot
"],attrs:{src:t.i18n(e.screenshot)}})]),n("text",{staticClass:["example-tips"],on:{click:function(n){t.viewSource(t.i18n(e.hash))}}},[t._v(t._s(t.i18n(t.VIEW_SOURCE)))])])])}))},staticRenderFns:[]},t.exports.render._withStripped=!0},function(t,e){t.exports={render:function(){var t=this,e=t.$createElement,n=t._self._c||e;return n("div",{staticClass:["wrapper"]},[t.examples&&t.examples.length?n("list",{staticClass:["example-list"]},[t._l(t.currentTab.group,function(e){return[e&&e.title||e.name?n("cell",{key:e.type,ref:e.type,refInFor:!0,staticClass:["group-info"],appendAsTree:!0,attrs:{append:"tree"}},[n("text",{staticClass:["group-title"]},[t._v(t._s(t.i18n(e.title||e.name)))]),e.desc?n("text",{staticClass:["group-desc"]},[t._v(t._s(t.i18n(e.desc)))]):t._e(),e.desc&&e.docLink?n("text",{staticClass:["doc-link"],on:{click:function(n){t.jumpTo(t.i18n(e.docLink))}}},[t._v(t._s(t.i18n(t.tips.READ_MORE))+" >>")]):t._e()]):t._e(),n("cell",{key:e.type+"-examples",staticClass:["section"],appe
ndAsTree:!0,attrs:{append:"tree"}},[n("example-scroller",{attrs:{language:t.language,examples:e.examples}})],1)]})],2):t.showLoading?n("div",{staticClass:["loading"]},[n("text",{staticClass:["loading-text"]},[t._v("loading ...")])]):t._e(),t.tabs&&t.tabs.length?n("div",{staticClass:["tabbar"]},t._l(t.tabs,function(e){return n("div",{key:e.type,class:["tab-cell",e.type===t.activeTab?"active-tab-cell":""],on:{click:function(n){t.toggleTab(e.type)}}},[n("text",{class:["tab-name","tab-name-"+t.language,e.type===t.activeTab?"active-tab-name-"+t.language:""]},[t._v(t._s(t.i18n(e.name)))])])})):t._e()])},staticRenderFns:[]},t.exports.render._withStripped=!0},function(t,e,n){"use strict";Object.defineProperty(e,"__esModule",{value:!0});var r=function(t){if(t&&t.__esModule)return t;var e={};if(null!=t)for(var n in t)Object.prototype.hasOwnProperty.call(t,n)&&(e[n]=t[n]);return e.default=t,e}(n(13));var o=weex.requireModule("storage");e.default={filters:{i18n:r.i18n,url:r.createURL,link:r.cre
ateLink},methods:{createLink:r.createLink,createURL:r.createURL,i18n:r.i18n,getLanguage:r.getLanguage,fetchData:r.fetchData,saveData:r.saveData,readData:r.readData,jumpTo:r.jumpTo},created:function(){var t=this;r.getLanguage(function(e){t.language=e,r.setTitleBar(t.navigationBarOptions,e)}),new BroadcastChannel("language").onmessage=function(e){e.data&&e.data.language&&(t.language=e.data.language)}},beforeDestroy:function(){o.removeItem("CURRENT_DOCUMENT_URL"),o.removeItem("CURRENT_SOURCE_HASH")}}}]);
\ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/3f3c8091/ios/playground/bundlejs/guide.weex.js
----------------------------------------------------------------------
diff --git a/ios/playground/bundlejs/guide.weex.js b/ios/playground/bundlejs/guide.weex.js
new file mode 100644
index 0000000..9133156
--- /dev/null
+++ b/ios/playground/bundlejs/guide.weex.js
@@ -0,0 +1,4 @@
+// { "framework": "Vue" }
+"use weex:vue";
+
+!function(e){var t={};function n(o){if(t[o])return t[o].exports;var r=t[o]={i:o,l:!1,exports:{}};return e[o].call(r.exports,r,r.exports,n),r.l=!0,r.exports}n.m=e,n.c=t,n.d=function(e,t,o){n.o(e,t)||Object.defineProperty(e,t,{configurable:!1,enumerable:!0,get:o})},n.n=function(e){var t=e&&e.__esModule?function(){return e.default}:function(){return e};return n.d(t,"a",t),t},n.o=function(e,t){return Object.prototype.hasOwnProperty.call(e,t)},n.p="",n(n.s=37)}([function(e,t){var n=e.exports="undefined"!=typeof window&&window.Math==Math?window:"undefined"!=typeof self&&self.Math==Math?self:Function("return this")();"number"==typeof __g&&(__g=n)},function(e,t,n){var o=n(9),r=n(29),i=n(17),a=Object.defineProperty;t.f=n(2)?Object.defineProperty:function(e,t,n){if(o(e),t=i(t,!0),o(n),r)try{return a(e,t,n)}catch(e){}if("get"in n||"set"in n)throw TypeError("Accessors not supported!");return"value"in n&&(e[t]=n.value),e}},function(e,t,n){e.exports=!n(10)(function(){return 7!=Object.defineProper
ty({},"a",{get:function(){return 7}}).a})},function(e,t){var n={}.hasOwnProperty;e.exports=function(e,t){return n.call(e,t)}},function(e,t,n){var o=n(1),r=n(11);e.exports=n(2)?function(e,t,n){return o.f(e,t,r(1,n))}:function(e,t,n){return e[t]=n,e}},function(e,t,n){var o=n(52),r=n(14);e.exports=function(e){return o(r(e))}},function(e,t,n){var o=n(21)("wks"),r=n(12),i=n(0).Symbol,a="function"==typeof i;(e.exports=function(e){return o[e]||(o[e]=a&&i[e]||(a?i:r)("Symbol."+e))}).store=o},function(e,t){var n=e.exports={version:"2.5.3"};"number"==typeof __e&&(__e=n)},function(e,t){e.exports=function(e){return"object"==typeof e?null!==e:"function"==typeof e}},function(e,t,n){var o=n(8);e.exports=function(e){if(!o(e))throw TypeError(e+" is not an object!");return e}},function(e,t){e.exports=function(e){try{return!!e()}catch(e){return!0}}},function(e,t){e.exports=function(e,t){return{enumerable:!(1&e),configurable:!(2&e),writable:!(4&e),value:t}}},function(e,t){var n=0,o=Math.random();e.expo
rts=function(e){return"Symbol(".concat(void 0===e?"":e,")_",(++n+o).toString(36))}},function(e,t){var n=Math.ceil,o=Math.floor;e.exports=function(e){return isNaN(e=+e)?0:(e>0?o:n)(e)}},function(e,t){e.exports=function(e){if(void 0==e)throw TypeError("Can't call method on "+e);return e}},function(e,t){e.exports=!0},function(e,t,n){var o=n(0),r=n(7),i=n(48),a=n(4),s="prototype",c=function(e,t,n){var l,u,p,d=e&c.F,f=e&c.G,h=e&c.S,v=e&c.P,g=e&c.B,m=e&c.W,S=f?r:r[t]||(r[t]={}),y=S[s],z=f?o:h?o[t]:(o[t]||{})[s];f&&(n=t);for(l in n)(u=!d&&z&&void 0!==z[l])&&l in S||(p=u?z[l]:n[l],S[l]=f&&"function"!=typeof z[l]?n[l]:g&&u?i(p,o):m&&z[l]==p?function(e){var t=function(t,n,o){if(this instanceof e){switch(arguments.length){case 0:return new e;case 1:return new e(t);case 2:return new e(t,n)}return new e(t,n,o)}return e.apply(this,arguments)};return t[s]=e[s],t}(p):v&&"function"==typeof p?i(Function.call,p):p,v&&((S.virtual||(S.virtual={}))[l]=p,e&c.R&&y&&!y[l]&&a(y,l,p)))};c.F=1,c.G=2,c.S=4,c.P
=8,c.B=16,c.W=32,c.U=64,c.R=128,e.exports=c},function(e,t,n){var o=n(8);e.exports=function(e,t){if(!o(e))return e;var n,r;if(t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;if("function"==typeof(n=e.valueOf)&&!o(r=n.call(e)))return r;if(!t&&"function"==typeof(n=e.toString)&&!o(r=n.call(e)))return r;throw TypeError("Can't convert object to primitive value")}},function(e,t){e.exports={}},function(e,t,n){var o=n(33),r=n(22);e.exports=Object.keys||function(e){return o(e,r)}},function(e,t,n){var o=n(21)("keys"),r=n(12);e.exports=function(e){return o[e]||(o[e]=r(e))}},function(e,t,n){var o=n(0),r=o["__core-js_shared__"]||(o["__core-js_shared__"]={});e.exports=function(e){return r[e]||(r[e]={})}},function(e,t){e.exports="constructor,hasOwnProperty,isPrototypeOf,propertyIsEnumerable,toLocaleString,toString,valueOf".split(",")},function(e,t,n){var o=n(1).f,r=n(3),i=n(6)("toStringTag");e.exports=function(e,t,n){e&&!r(e=n?e:e.prototype,i)&&o(e,i,{configurable:!0,value:t})}},funct
ion(e,t,n){t.f=n(6)},function(e,t,n){var o=n(0),r=n(7),i=n(15),a=n(24),s=n(1).f;e.exports=function(e){var t=r.Symbol||(r.Symbol=i?{}:o.Symbol||{});"_"==e.charAt(0)||e in t||s(t,e,{value:a.f(e)})}},function(e,t){t.f={}.propertyIsEnumerable},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.fetchNews=t.fetchDoodle=t.readAbout=t.saveAbout=t.fetchAbout=t.readGuide=t.saveGuide=t.fetchGuide=t.readExamples=t.saveExamples=t.fetchExamples=void 0;var o=i(n(41)),r=i(n(43));function i(e){return e&&e.__esModule?e:{default:e}}t.createLink=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:{},n=[];for(var o in t)"string"==typeof t[o]&&n.push(l(o)+"="+l(t[o]));if("Web"===WXEnvironment.platform)return n.unshift("page="+e+".web.js"),"/?"+n.join("&");return""+function(){var e=weex.config.bundleUrl,t=e.indexOf("your_current_IP")>=0||e.indexOf("file://assets/")>=0,n=e.indexOf("file:///")>=0&&e.indexOf("WeexDemo.app")>0;if(t)return"file://assets/";if(n)
return e.substring(0,e.lastIndexOf("/")+1);return""}()+e+".weex.js"+(n.length?"?"+n.join("&"):"")},t.createURL=u,t.i18n=p,t.parseLanguage=f,t.setLanguage=function(e){var t=f(e);t&&s.setItem("WEEX_PLAYGROUND_LANGUAGE",t)},t.clearStorageLanguage=function(){s.removeItem("WEEX_PLAYGROUND_LANGUAGE")},t.getStorageLanguage=h,t.getSystemLanguage=v,t.getLanguage=m,t.jumpTo=function(e,t){m(function(n){s.setItem("CURRENT_DOCUMENT_URL",p(e,n)),c.push({url:u("bf0305c14b511b24a4e616f53926432b",{language:n,title:p(t,n)})})})},t.viewSource=function(e){m(function(t){c.push({url:u("f6ce29faf686eabc38b410bf4828fa5a",{hash:e,language:t})})})},t.setTitleBar=function(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"en";if("[object Object]"!==Object.prototype.toString.apply(e))return;var n=weex.requireModule("titleBar");if(e.color||e.backgroundColor)try{n.setStyle({foregroundColor:e.color||"#FFFFFF",backgroundColor:e.backgroundColor||"#00B4FF"})}catch(e){}var o=p(e.title,t);if(o)try{n.setT
itle(o)}catch(e){}},t.fetchData=y,t.saveData=z,t.readData=x;var a=weex.requireModule("stream"),s=weex.requireModule("storage"),c=weex.requireModule("navigator"),l="function"==typeof encodeURIComponent?encodeURIComponent:"function"==typeof encodeURI?encodeURI:function(e){return e};function u(e,t){if("Web"===WXEnvironment.platform)return"http://dotwe.org/raw/htmlVue/"+e;var n="http://dotwe.org/raw/dist/"+e+".bundle.wx",o=function(e){if(!e||"object"!==(void 0===e?"undefined":(0,r.default)(e)))return"";var t=[];for(var n in e)"string"==typeof e[n]&&t.push(l(n)+"="+l(e[n]));return t.join("&")}(t);return"TB"===WXEnvironment.appName?n+"?_wx_tpl="+n+"&"+o:"WXSample"===WXEnvironment.appName?n+"?"+o:n+"?wx_weex=true&"+o}function p(e,t){return"string"==typeof e?e:"[object Object]"===Object.prototype.toString.call(e)?e[this&&this.language||t||"en"]:void 0}var d=/(en|zh)\_?\w*/i;function f(e){var t=d.exec(e+"");return t&&t[1]?t[1]:""}function h(e){var t=arguments.length>1&&void 0!==arguments[1]?
arguments[1]:function(){};if("function"!==!(void 0===e||(0,r.default)(e)))try{s.getItem("WEEX_PLAYGROUND_LANGUAGE",function(n){if("success"===n.result){var o=f(n.data);o?e(o):t()}else t(n)})}catch(e){t(e)}}function v(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){};if("function"!==!(void 0===e||(0,r.default)(e)))if("web"===WXEnvironment.platform.toLowerCase()){var n=f(window.navigator.language);n?e(n):t()}else try{var o=weex.requireModule("locale")||weex.requireModule("local"),i=!1,a=f(o.getLanguage(function(n){var o=f(n);o?i||e(o):t()}));a?(i=!0,e(a)):t()}catch(e){t(e)}}var g=/.+[\?\&]{1}language=([\d\w]+)[\?\&]?.*/i;function m(){var e=arguments.length>0&&void 0!==arguments[0]?arguments[0]:function(){},t=g.exec(weex.config.bundleUrl||""),n=f(t&&t[1]);n?e(n):h(e,function(){v(e,function(){e("en")})})}var S={doodle:"WEEX_PLAYGROUND_APP_DOODLE",guide:"WEEX_PLAYGROUND_APP_GUIDE",examples:"WEEX_PLAYGROUND_APP_EXAMPLES",news:"WEEX_PLAYGROUND_APP_NEWS",about:"WE
EX_PLAYGROUND_APP_ABOUT"};function y(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){};try{a.fetch({url:"http://dotwe.org/query/weex-playground-app",method:"post",headers:{"Content-Type":"application/x-www-form-urlencoded"},type:"json",body:"name="+e},function(e){e.ok&&e.data&&e.data.success?t(e.data):n(e)})}catch(e){n(e)}}function z(e,t){var n=S[e];n&&t&&"object"===(void 0===t?"undefined":(0,r.default)(t))&&(t.timestamp=Date.now(),s.setItem(n,(0,o.default)(t)))}function x(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:function(){},n=arguments.length>2&&void 0!==arguments[2]?arguments[2]:function(){},o=S[e];if(!o)return n();try{s.getItem(o,function(o){if("success"===o.result){var r=JSON.parse(o.data);if(r&&Array.isArray(r[e]))return t(r[e])}n(o)})}catch(e){n(e)}}t.fetchExamples=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(
void 0,["examples"].concat(t))},t.saveExamples=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return z.apply(void 0,["examples"].concat(t))},t.readExamples=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["examples"].concat(t))},t.fetchGuide=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(void 0,["guide"].concat(t))},t.saveGuide=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return z.apply(void 0,["guide"].concat(t))},t.readGuide=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["guide"].concat(t))},t.fetchAbout=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(void 0,["about"].concat(t))},t.saveAbout=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return z.apply(void 0,["about"].concat(t))},t.read
About=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return x.apply(void 0,["about"].concat(t))},t.fetchDoodle=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(void 0,["doodle"].concat(t))},t.fetchNews=function(){for(var e=arguments.length,t=Array(e),n=0;n<e;n++)t[n]=arguments[n];return y.apply(void 0,["news"].concat(t))}},function(e,t,n){"use strict";var o=n(15),r=n(16),i=n(31),a=n(4),s=n(3),c=n(18),l=n(50),u=n(23),p=n(57),d=n(6)("iterator"),f=!([].keys&&"next"in[].keys()),h=function(){return this};e.exports=function(e,t,n,v,g,m,S){l(n,t,v);var y,z,x,_=function(e){if(!f&&e in j)return j[e];switch(e){case"keys":case"values":return function(){return new n(this,e)}}return function(){return new n(this,e)}},b=t+" Iterator",w="values"==g,L=!1,j=e.prototype,C=j[d]||j["@@iterator"]||g&&j[g],k=!f&&C||_(g),O=g?w?_("entries"):k:void 0,E="Array"==t?j.entries||C:C;if(E&&(x=p(E.call(new e)))!==Object.prototype&&x.next&&
(u(x,b,!0),o||s(x,d)||a(x,d,h)),w&&C&&"values"!==C.name&&(L=!0,k=function(){return C.call(this)}),o&&!S||!f&&!L&&j[d]||a(j,d,k),c[t]=k,c[b]=h,g)if(y={values:w?k:_("values"),keys:m?k:_("keys"),entries:O},S)for(z in y)z in j||i(j,z,y[z]);else r(r.P+r.F*(f||L),t,y);return y}},function(e,t,n){e.exports=!n(2)&&!n(10)(function(){return 7!=Object.defineProperty(n(30)("div"),"a",{get:function(){return 7}}).a})},function(e,t,n){var o=n(8),r=n(0).document,i=o(r)&&o(r.createElement);e.exports=function(e){return i?r.createElement(e):{}}},function(e,t,n){e.exports=n(4)},function(e,t,n){var o=n(9),r=n(51),i=n(22),a=n(20)("IE_PROTO"),s=function(){},c=function(){var e,t=n(30)("iframe"),o=i.length;for(t.style.display="none",n(56).appendChild(t),t.src="javascript:",(e=t.contentWindow.document).open(),e.write("<script>document.F=Object<\/script>"),e.close(),c=e.F;o--;)delete c.prototype[i[o]];return c()};e.exports=Object.create||function(e,t){var n;return null!==e?(s.prototype=o(e),n=new s,s.prototype
=null,n[a]=e):n=c(),void 0===t?n:r(n,t)}},function(e,t,n){var o=n(3),r=n(5),i=n(53)(!1),a=n(20)("IE_PROTO");e.exports=function(e,t){var n,s=r(e),c=0,l=[];for(n in s)n!=a&&o(s,n)&&l.push(n);for(;t.length>c;)o(s,n=t[c++])&&(~i(l,n)||l.push(n));return l}},function(e,t){var n={}.toString;e.exports=function(e){return n.call(e).slice(8,-1)}},function(e,t){t.f=Object.getOwnPropertySymbols},function(e,t,n){var o=n(33),r=n(22).concat("length","prototype");t.f=Object.getOwnPropertyNames||function(e){return o(e,r)}},function(e,t,n){"use strict";var o=i(n(38)),r=i(n(84));function i(e){return e&&e.__esModule?e:{default:e}}Vue.mixin(r.default),o.default.el="#root",new Vue(o.default)},function(e,t,n){var o,r,i=[];i.push(n(39)),o=n(40);var a=n(83);if(r=o=o||{},"object"!=typeof o.default&&"function"!=typeof o.default||(Object.keys(o).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.error("named exports are not supported in *.vue files."),r=o=o.default),"function"==typeof r&&(r=r.opt
ions),r.__file="/Users/Hanks/Codes/work/weex-vue-examples/src/pages/Guide.vue",r.render=a.render,r.staticRenderFns=a.staticRenderFns,r._scopeId="data-v-c247a1f0",r.style=r.style||{},i.forEach(function(e){for(var t in e)r.style[t]=e[t]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(r._scopeId,i)}catch(e){}e.exports=o},function(e,t){e.exports={size:{width:"750",height:"320"},center:{alignItems:"center",justifyContent:"center"},slider:{width:"750",height:"400",boxShadow:"0 5px 10px rgba(0, 0, 0, 0.2)",marginBottom:"10"},"slider-title":{width:"750",paddingTop:0,paddingRight:"30",paddingBottom:"30",paddingLeft:"30",fontSize:"46",textAlign:"center",color:"#FFFFFF"},indicator:{position:"absolute",left:0,right:0,bottom:0,width:"750",height:"30",itemSize:"12",itemColor:"#DDDDDD",itemSelectedColor:"rgb(0,180,255)"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=n(27),r=a(n(74)),i=a(n(78));function a(e){return e&&e.__es
Module?e:{default:e}}var s=!1;t.default={components:{Lesson:r.default},data:function(){return{language:"en",navigationBarOptions:{title:{zh:"Weex 入门",en:"Weex Guide"}},lenssonIndex:0,sliders:i.default}},computed:{chosenLesson:function(){return this.sliders[this.lenssonIndex]}},watch:{lenssonIndex:function(){this.navigationBarOptions.backgroundColor=this.chosenLesson.mainColor,this.navigationBarOptions.title=this.chosenLesson.title},navigationBarOptions:function(){(0,o.setTitleBar)(this.navigationBarOptions,this.language)}},beforeCreate:function(){var e=this;(0,o.readGuide)(function(t){e.sliders=t,"web"!==WXEnvironment.platform.toLowerCase()&&(s=!0)}),(0,o.fetchGuide)(function(t){(0,o.saveGuide)(t),s||(e.sliders=t.guide)})}}},function(e,t,n){e.exports={default:n(42),__esModule:!0}},function(e,t,n){var o=n(7),r=o.JSON||(o.JSON={stringify:JSON.stringify});e.exports=function(e){return r.stringify.apply(r,arguments)}},function(e,t,n){"use strict";t.__esModule=!0;var o=a(n(44)),r=a(n(
63)),i="function"==typeof r.default&&"symbol"==typeof o.default?function(e){return typeof e}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":typeof e};function a(e){return e&&e.__esModule?e:{default:e}}t.default="function"==typeof r.default&&"symbol"===i(o.default)?function(e){return void 0===e?"undefined":i(e)}:function(e){return e&&"function"==typeof r.default&&e.constructor===r.default&&e!==r.default.prototype?"symbol":void 0===e?"undefined":i(e)}},function(e,t,n){e.exports={default:n(45),__esModule:!0}},function(e,t,n){n(46),n(59),e.exports=n(24).f("iterator")},function(e,t,n){"use strict";var o=n(47)(!0);n(28)(String,"String",function(e){this._t=String(e),this._i=0},function(){var e,t=this._t,n=this._i;return n>=t.length?{value:void 0,done:!0}:(e=o(t,n),this._i+=e.length,{value:e,done:!1})})},function(e,t,n){var o=n(13),r=n(14);e.exports=function(e){return function(t,n){var i,a,s=String(r(t)),c=o(n),l=s.length;retu
rn c<0||c>=l?e?"":void 0:(i=s.charCodeAt(c))<55296||i>56319||c+1===l||(a=s.charCodeAt(c+1))<56320||a>57343?e?s.charAt(c):i:e?s.slice(c,c+2):a-56320+(i-55296<<10)+65536}}},function(e,t,n){var o=n(49);e.exports=function(e,t,n){if(o(e),void 0===t)return e;switch(n){case 1:return function(n){return e.call(t,n)};case 2:return function(n,o){return e.call(t,n,o)};case 3:return function(n,o,r){return e.call(t,n,o,r)}}return function(){return e.apply(t,arguments)}}},function(e,t){e.exports=function(e){if("function"!=typeof e)throw TypeError(e+" is not a function!");return e}},function(e,t,n){"use strict";var o=n(32),r=n(11),i=n(23),a={};n(4)(a,n(6)("iterator"),function(){return this}),e.exports=function(e,t,n){e.prototype=o(a,{next:r(1,n)}),i(e,t+" Iterator")}},function(e,t,n){var o=n(1),r=n(9),i=n(19);e.exports=n(2)?Object.defineProperties:function(e,t){r(e);for(var n,a=i(t),s=a.length,c=0;s>c;)o.f(e,n=a[c++],t[n]);return e}},function(e,t,n){var o=n(34);e.exports=Object("z").propertyIsEnume
rable(0)?Object:function(e){return"String"==o(e)?e.split(""):Object(e)}},function(e,t,n){var o=n(5),r=n(54),i=n(55);e.exports=function(e){return function(t,n,a){var s,c=o(t),l=r(c.length),u=i(a,l);if(e&&n!=n){for(;l>u;)if((s=c[u++])!=s)return!0}else for(;l>u;u++)if((e||u in c)&&c[u]===n)return e||u||0;return!e&&-1}}},function(e,t,n){var o=n(13),r=Math.min;e.exports=function(e){return e>0?r(o(e),9007199254740991):0}},function(e,t,n){var o=n(13),r=Math.max,i=Math.min;e.exports=function(e,t){return(e=o(e))<0?r(e+t,0):i(e,t)}},function(e,t,n){var o=n(0).document;e.exports=o&&o.documentElement},function(e,t,n){var o=n(3),r=n(58),i=n(20)("IE_PROTO"),a=Object.prototype;e.exports=Object.getPrototypeOf||function(e){return e=r(e),o(e,i)?e[i]:"function"==typeof e.constructor&&e instanceof e.constructor?e.constructor.prototype:e instanceof Object?a:null}},function(e,t,n){var o=n(14);e.exports=function(e){return Object(o(e))}},function(e,t,n){n(60);for(var o=n(0),r=n(4),i=n(18),a=n(6)("toStringT
ag"),s="CSSRuleList,CSSStyleDeclaration,CSSValueList,ClientRectList,DOMRectList,DOMStringList,DOMTokenList,DataTransferItemList,FileList,HTMLAllCollection,HTMLCollection,HTMLFormElement,HTMLSelectElement,MediaList,MimeTypeArray,NamedNodeMap,NodeList,PaintRequestList,Plugin,PluginArray,SVGLengthList,SVGNumberList,SVGPathSegList,SVGPointList,SVGStringList,SVGTransformList,SourceBufferList,StyleSheetList,TextTrackCueList,TextTrackList,TouchList".split(","),c=0;c<s.length;c++){var l=s[c],u=o[l],p=u&&u.prototype;p&&!p[a]&&r(p,a,l),i[l]=i.Array}},function(e,t,n){"use strict";var o=n(61),r=n(62),i=n(18),a=n(5);e.exports=n(28)(Array,"Array",function(e,t){this._t=a(e),this._i=0,this._k=t},function(){var e=this._t,t=this._k,n=this._i++;return!e||n>=e.length?(this._t=void 0,r(1)):r(0,"keys"==t?n:"values"==t?e[n]:[n,e[n]])},"values"),i.Arguments=i.Array,o("keys"),o("values"),o("entries")},function(e,t){e.exports=function(){}},function(e,t){e.exports=function(e,t){return{value:t,done:!!e}}},func
tion(e,t,n){e.exports={default:n(64),__esModule:!0}},function(e,t,n){n(65),n(71),n(72),n(73),e.exports=n(7).Symbol},function(e,t,n){"use strict";var o=n(0),r=n(3),i=n(2),a=n(16),s=n(31),c=n(66).KEY,l=n(10),u=n(21),p=n(23),d=n(12),f=n(6),h=n(24),v=n(25),g=n(67),m=n(68),S=n(9),y=n(8),z=n(5),x=n(17),_=n(11),b=n(32),w=n(69),L=n(70),j=n(1),C=n(19),k=L.f,O=j.f,E=w.f,F=o.Symbol,N=o.JSON,W=N&&N.stringify,M="prototype",A=f("_hidden"),J=f("toPrimitive"),P={}.propertyIsEnumerable,U=u("symbol-registry"),D=u("symbols"),G=u("op-symbols"),T=Object[M],B="function"==typeof F,I=o.QObject,R=!I||!I[M]||!I[M].findChild,V=i&&l(function(){return 7!=b(O({},"a",{get:function(){return O(this,"a",{value:7}).a}})).a})?function(e,t,n){var o=k(T,t);o&&delete T[t],O(e,t,n),o&&e!==T&&O(T,t,o)}:O,X=function(e){var t=D[e]=b(F[M]);return t._k=e,t},H=B&&"symbol"==typeof F.iterator?function(e){return"symbol"==typeof e}:function(e){return e instanceof F},Y=function(e,t,n){return e===T&&Y(G,t,n),S(e),t=x(t,!0),S(n),r(D,t
)?(n.enumerable?(r(e,A)&&e[A][t]&&(e[A][t]=!1),n=b(n,{enumerable:_(0,!1)})):(r(e,A)||O(e,A,_(1,{})),e[A][t]=!0),V(e,t,n)):O(e,t,n)},q=function(e,t){S(e);for(var n,o=g(t=z(t)),r=0,i=o.length;i>r;)Y(e,n=o[r++],t[n]);return e},K=function(e){var t=P.call(this,e=x(e,!0));return!(this===T&&r(D,e)&&!r(G,e))&&(!(t||!r(this,e)||!r(D,e)||r(this,A)&&this[A][e])||t)},Q=function(e,t){if(e=z(e),t=x(t,!0),e!==T||!r(D,t)||r(G,t)){var n=k(e,t);return!n||!r(D,t)||r(e,A)&&e[A][t]||(n.enumerable=!0),n}},$=function(e){for(var t,n=E(z(e)),o=[],i=0;n.length>i;)r(D,t=n[i++])||t==A||t==c||o.push(t);return o},Z=function(e){for(var t,n=e===T,o=E(n?G:z(e)),i=[],a=0;o.length>a;)!r(D,t=o[a++])||n&&!r(T,t)||i.push(D[t]);return i};B||(s((F=function(){if(this instanceof F)throw TypeError("Symbol is not a constructor!");var e=d(arguments.length>0?arguments[0]:void 0),t=function(n){this===T&&t.call(G,n),r(this,A)&&r(this[A],e)&&(this[A][e]=!1),V(this,e,_(1,n))};return i&&R&&V(T,e,{configurable:!0,set:t}),X(e)})[M],"t
oString",function(){return this._k}),L.f=Q,j.f=Y,n(36).f=w.f=$,n(26).f=K,n(35).f=Z,i&&!n(15)&&s(T,"propertyIsEnumerable",K,!0),h.f=function(e){return X(f(e))}),a(a.G+a.W+a.F*!B,{Symbol:F});for(var ee="hasInstance,isConcatSpreadable,iterator,match,replace,search,species,split,toPrimitive,toStringTag,unscopables".split(","),te=0;ee.length>te;)f(ee[te++]);for(var ne=C(f.store),oe=0;ne.length>oe;)v(ne[oe++]);a(a.S+a.F*!B,"Symbol",{for:function(e){return r(U,e+="")?U[e]:U[e]=F(e)},keyFor:function(e){if(!H(e))throw TypeError(e+" is not a symbol!");for(var t in U)if(U[t]===e)return t},useSetter:function(){R=!0},useSimple:function(){R=!1}}),a(a.S+a.F*!B,"Object",{create:function(e,t){return void 0===t?b(e):q(b(e),t)},defineProperty:Y,defineProperties:q,getOwnPropertyDescriptor:Q,getOwnPropertyNames:$,getOwnPropertySymbols:Z}),N&&a(a.S+a.F*(!B||l(function(){var e=F();return"[null]"!=W([e])||"{}"!=W({a:e})||"{}"!=W(Object(e))})),"JSON",{stringify:function(e){for(var t,n,o=[e],r=1;arguments.le
ngth>r;)o.push(arguments[r++]);if(n=t=o[1],(y(t)||void 0!==e)&&!H(e))return m(t)||(t=function(e,t){if("function"==typeof n&&(t=n.call(this,e,t)),!H(t))return t}),o[1]=t,W.apply(N,o)}}),F[M][J]||n(4)(F[M],J,F[M].valueOf),p(F,"Symbol"),p(Math,"Math",!0),p(o.JSON,"JSON",!0)},function(e,t,n){var o=n(12)("meta"),r=n(8),i=n(3),a=n(1).f,s=0,c=Object.isExtensible||function(){return!0},l=!n(10)(function(){return c(Object.preventExtensions({}))}),u=function(e){a(e,o,{value:{i:"O"+ ++s,w:{}}})},p=e.exports={KEY:o,NEED:!1,fastKey:function(e,t){if(!r(e))return"symbol"==typeof e?e:("string"==typeof e?"S":"P")+e;if(!i(e,o)){if(!c(e))return"F";if(!t)return"E";u(e)}return e[o].i},getWeak:function(e,t){if(!i(e,o)){if(!c(e))return!0;if(!t)return!1;u(e)}return e[o].w},onFreeze:function(e){return l&&p.NEED&&c(e)&&!i(e,o)&&u(e),e}}},function(e,t,n){var o=n(19),r=n(35),i=n(26);e.exports=function(e){var t=o(e),n=r.f;if(n)for(var a,s=n(e),c=i.f,l=0;s.length>l;)c.call(e,a=s[l++])&&t.push(a);return t}},functi
on(e,t,n){var o=n(34);e.exports=Array.isArray||function(e){return"Array"==o(e)}},function(e,t,n){var o=n(5),r=n(36).f,i={}.toString,a="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[];e.exports.f=function(e){return a&&"[object Window]"==i.call(e)?function(e){try{return r(e)}catch(e){return a.slice()}}(e):r(o(e))}},function(e,t,n){var o=n(26),r=n(11),i=n(5),a=n(17),s=n(3),c=n(29),l=Object.getOwnPropertyDescriptor;t.f=n(2)?l:function(e,t){if(e=i(e),t=a(t,!0),c)try{return l(e,t)}catch(e){}if(s(e,t))return r(!o.f.call(e,t),e[t])}},function(e,t){},function(e,t,n){n(25)("asyncIterator")},function(e,t,n){n(25)("observable")},function(e,t,n){var o,r,i=[];i.push(n(75)),o=n(76);var a=n(77);if(r=o=o||{},"object"!=typeof o.default&&"function"!=typeof o.default||(Object.keys(o).some(function(e){return"default"!==e&&"__esModule"!==e})&&console.error("named exports are not supported in *.vue files."),r=o=o.default),"function"==typeof r&&(r=r.options)
,r.__file="/Users/Hanks/Codes/work/weex-vue-examples/src/components/Lesson.vue",r.render=a.render,r.staticRenderFns=a.staticRenderFns,r._scopeId="data-v-712a3d30",r.style=r.style||{},i.forEach(function(e){for(var t in e)r.style[t]=e[t]}),"object"==typeof weex&&weex&&weex.document)try{weex.document.registerStyleSheets(r._scopeId,i)}catch(e){}e.exports=o},function(e,t){e.exports={center:{alignItems:"center",justifyContent:"center"},title:{fontSize:"60",textAlign:"center",marginTop:"60",marginBottom:"60",color:"#606060"},lesson:{borderBottomWidth:"1",borderBottomStyle:"solid",borderBottomColor:"#EEEEEE",flexDirection:"row",alignItems:"center"},"lesson-zh":{width:"600"},"lesson-en":{width:"630"},"lesson-index":{color:"#777777",textAlign:"right",paddingRight:"30"},"lesson-title":{paddingTop:"35",paddingBottom:"35"},"lesson-index-zh":{fontSize:"46",width:"120"},"lesson-title-zh":{fontSize:"42",width:"480"},"lesson-index-en":{fontSize:"42",width:"100"},"lesson-title-en":{fontSize:"38",widt
h:"530"},footer:{height:"120",paddingTop:"40"},copyright:{fontSize:"22",color:"#A0A0A0",textAlign:"center"}}},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0}),t.default={props:["mainColor","title","copyright","lessons"],data:function(){return{language:"en"}}}},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("div",{staticClass:["wrapper"]},[n("div",{staticClass:["center"]},[n("text",{staticClass:["title"]},[e._v(e._s(e.i18n(e.title)))])]),e._l(e.lessons,function(t,o){return n("div",{key:o,staticClass:["center"]},[n("div",{class:["lesson","lesson-"+e.language],on:{click:function(n){e.jumpTo(t.docLink,t.title)}}},[n("text",{class:["lesson-index","lesson-index-"+e.language]},[e._v(e._s(o+1)+".")]),n("text",{class:["lesson-title","lesson-title-"+e.language],style:{color:e.mainColor}},[e._v(e._s(e.i18n(t.title)))])])])}),n("div",{staticClass:["footer","center"]},[n("text",{staticClass:["copyright"]},[e._v(e._s(
e.i18n(e.copyright)))])])],2)},staticRenderFns:[]},e.exports.render._withStripped=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o,r,i,a,s=n(79),c=(o=s)&&o.__esModule?o:{default:o};t.default=[{subject:"weex",mainColor:"#00B4FF",title:{zh:"学习 Weex",en:"Learn Weex"},poster:"https://gw.alicdn.com/tfs/TB1.8Vdl9_I8KJjy0FoXXaFnVXa-3799-1615.png",posterBg:"#E5F7FF",posterStyle:{width:"650px",height:"304px"},copyright:{zh:"来自 http://weex-project.io/cn/",en:"From http://weex-project.io/"},lessons:[{title:{zh:"快速入门",en:"Getting Started"},docLink:{zh:"http://weex-project.io/cn/guide/index.html",en:"http://weex-project.io/guide/index.html"}},{title:{zh:"工作原理",en:"How it Works"},docLink:{zh:"http://weex-project.io/cn/guide/intro/how-it-works.html",en:"http://weex-project.io/guide/intro/how-it-works.html"}},{title:{zh:"与 Web 平台的差异",en:"Platform difference with Web"},docLink:{zh:"http://weex-project.io/cn/references/platfor
m-difference.html",en:"http://weex-project.io/references/platform-difference.html"}},{title:{zh:"集成 Weex 到已有应用",en:"Integrate to Your App"},docLink:{zh:"http://weex-project.io/cn/guide/integrate-to-your-app.html",en:"http://weex-project.io/guide/integrate-to-your-app.html"}},{title:{zh:"搭建开发环境",en:"Set Up Dev Environment"},docLink:{zh:"http://weex-project.io/cn/guide/set-up-env.html",en:"http://weex-project.io/guide/set-up-env.html"}},{title:{zh:"通用样式",en:"Common Styles"},docLink:{zh:"http://weex-project.io/cn/references/common-style.html",en:"http://weex-project.io/references/common-style.html"}},{title:{zh:"通用事件",en:"Common Events"},docLink:{zh:"http://weex-project.io/cn/references/common-event.html",en:"http://weex-project.io/references/common-event.html"}},{title:{zh:"Weex 实例变量",en:'The "weex" Variable'},docLink:{zh:"http://weex-project.io/cn/references/weex-variable.html",en:"http://weex-project.io/references/weex-variable.html"
}},{title:{zh:"内置组件",en:"Built-in Components"},docLink:{zh:"http://weex-project.io/cn/references/components/index.html",en:"http://weex-project.io/references/components/index.html"}},{title:{zh:"内置模块",en:"Built-in Modules"},docLink:{zh:"http://weex-project.io/cn/references/modules/index.html",en:"http://weex-project.io/references/modules/index.html"}},{title:{zh:"扩展 Android 组件/模块",en:"Extend Android"},docLink:{zh:"http://weex-project.io/cn/references/advanced/extend-to-android.html",en:"http://weex-project.io/references/advanced/extend-to-android.html"}},{title:{zh:"扩展 iOS 组件/模块",en:"Extend iOS"},docLink:{zh:"http://weex-project.io/cn/references/advanced/extend-to-ios.html",en:"http://weex-project.io/references/advanced/extend-to-ios.html"}},{title:{zh:"使用 weex-toolkit",en:"Use weex-toolkit"},docLink:{zh:"http://weex-project.io/cn/guide/tools/toolkit.html",en:"http://weex-project.io/guide/tools/toolkit.html"}},{title:{zh:"如何参与贡�
�",en:"How to Contribute"},docLink:{zh:"http://weex-project.io/cn/guide/contributing.html",en:"http://weex-project.io/guide/contributing.html"}}]},(r={subject:"vue",mainColor:"#42b983",title:{zh:"学习 Vue.js",en:"Learn Vue.js"},poster:"https://gw.alicdn.com/tfs/TB1J_uKcMMPMeJjy1XdXXasrXXa-400-400.png",posterBg:"#E7FBF2",posterStyle:{width:"300px",height:"300px"}},(0,c.default)(r,"title",{zh:"学习 Vue.js",en:"Learn Vue.js"}),(0,c.default)(r,"copyright",{zh:"来自 https://cn.vuejs.org/",en:"From https://vuejs.org/"}),(0,c.default)(r,"lessons",[{title:{zh:"Vue.js 是什么?",en:"What is Vue.js ?"},docLink:{zh:"https://cn.vuejs.org/v2/guide/index.html",en:"https://vuejs.org/v2/guide/index.html"}},{title:{zh:"单文件组件",en:"Single File Components"},docLink:{zh:"https://cn.vuejs.org/v2/guide/single-file-components.html",en:"https://vuejs.org/v2/guide/single-file-components.html"}},{title:{zh:"模板语法",en:"Template Syntax"},docLink:{zh:"https://cn.vuejs.org/v2/guide/synta
x.html",en:"https://vuejs.org/v2/guide/syntax.html"}},{title:{zh:"Class 与 Style 绑定",en:"Class and Style Bindings"},docLink:{zh:"https://cn.vuejs.org/v2/guide/class-and-style.html",en:"https://vuejs.org/v2/guide/class-and-style.html"}},{title:{zh:"条件渲染",en:"Conditional Rendering"},docLink:{zh:"https://cn.vuejs.org/v2/guide/conditional.html",en:"https://vuejs.org/v2/guide/conditional.html"}},{title:{zh:"列表渲染",en:"List Rendering"},docLink:{zh:"https://cn.vuejs.org/v2/guide/list.html",en:"https://vuejs.org/v2/guide/list.html"}},{title:{zh:"事件处理",en:"Event Handling"},docLink:{zh:"https://cn.vuejs.org/v2/guide/events.html",en:"https://vuejs.org/v2/guide/events.html"}},{title:{zh:"表单输入绑定",en:"Form Input Bindings"},docLink:{zh:"https://cn.vuejs.org/v2/guide/forms.html",en:"https://vuejs.org/v2/guide/forms.html"}},{title:{zh:"Vue 实例",en:"The Vue Instance"},docLink:{zh:"https://cn.vuejs.org/v2/guide/instance.html",en:"https://vuejs.org/v2/guide/in
stance.html"}},{title:{zh:"在 Weex 中的差异",en:"Difference in Weex"},docLink:{zh:"http://weex-project.io/cn/references/vue/difference-with-web.html",en:"http://weex-project.io/references/vue/difference-with-web.html"}},{title:{zh:"混合(mixins)",en:"Mixins"},docLink:{zh:"https://cn.vuejs.org/v2/guide/mixins.html",en:"https://vuejs.org/v2/guide/mixins.html"}},{title:{zh:"过滤器(filters)",en:"Filters"},docLink:{zh:"https://cn.vuejs.org/v2/guide/filters.html",en:"https://vuejs.org/v2/guide/filters.html"}},{title:{zh:"插件(plugins)",en:"Plugins"},docLink:{zh:"https://cn.vuejs.org/v2/guide/plugins.html",en:"https://vuejs.org/v2/guide/plugins.html"}},{title:{zh:"自定义指令",en:"Custom Directives"},docLink:{zh:"https://cn.vuejs.org/v2/guide/custom-directive.html",en:"https://vuejs.org/v2/guide/custom-directive.html"}},{title:{zh:"状态管理",en:"State Management"},docLink:{zh:"https://cn.vuejs.org/v2/guide/state-management.html",en:"https://vuejs.org/v2/guide
/state-management.html"}},{title:{zh:"深入响应式原理",en:"Reactivity in Depth"},docLink:{zh:"https://cn.vuejs.org/v2/guide/reactivity.html",en:"https://vuejs.org/v2/guide/reactivity.html"}},{title:{zh:"渲染函数",en:"Render Functions"},docLink:{zh:"https://cn.vuejs.org/v2/guide/render-function.html",en:"https://vuejs.org/v2/guide/render-function.html"}},{title:{zh:"TypeScript 支持",en:"TypeScript Support"},docLink:{zh:"https://cn.vuejs.org/v2/guide/typescript.html",en:"https://vuejs.org/v2/guide/typescript.html"}},{title:"API",docLink:{zh:"https://cn.vuejs.org/v2/api/",en:"https://vuejs.org/v2/api/"}}]),r),(i={subject:"javascript",mainColor:"#F7BD2A",title:{zh:"学习 Javascript",en:"Learn Javascript"},poster:"https://gw.alicdn.com/tfs/TB1bT98hMoQMeJjy0FpXXcTxpXa-1500-700.png",posterBg:"#FAF3EB",posterStyle:{width:"750px",height:"350px"}},(0,c.default)(i,"title",{zh:"学习 Javascript",en:"Learn Javascript"}),(0,c.default)(i,"copyright",{zh:"来自 MDN (Mozilla Developer
Network)",en:"From MDN (Mozilla Developer Network)"}),(0,c.default)(i,"lessons",[{title:{zh:"什么是 Javascript ?",en:"What is Javascript ?"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/What_is_JavaScript",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/What_is_JavaScript"}},{title:{zh:"JavaScript基础",en:"JavaScript basics"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/Getting_started_with_the_web/JavaScript_basics",en:"https://developer.mozilla.org/en-US/docs/Learn/Getting_started_with_the_web/JavaScript_basics"}},{title:{zh:"重新介绍 JavaScript",en:"A re-introduction to JavaScript"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/A_re-introduction_to_JavaScript",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/A_re-introduction_to_JavaScript"}},{title:{zh:"语法和数据类型",en:"Grammar and types"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web
/JavaScript/Guide/Grammar_and_types#Variable_scope",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Grammar_and_types#Variable_scope"}},{title:{zh:"数据类型和数据结构",en:"Data types and data structures"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Data_structures",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Data_structures"}},{title:{zh:"变量",en:"Variables"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Variables",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Variables"}},{title:{zh:"数字和操作符",en:"Numbers and operators"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Math",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Math"}},{title:{zh:"字符串",en:"Handling text"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Strings",en:"https://devel
oper.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Strings"}},{title:{zh:"常用的 String 方法",en:"Useful string methods"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Useful_string_methods",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Useful_string_methods"}},{title:{zh:"数组",en:"Arrays"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/First_steps/Arrays",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/First_steps/Arrays"}},{title:{zh:"函数",en:"Functions"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Functions",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Functions"}},{title:{zh:"JavaScript 对象基础",en:"JavaScript object basics"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/Basics",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Basics"}},{title:{zh:"使
用对象",en:"Working with objects"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Working_with_Objects",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Working_with_Objects"}},{title:{zh:"使用 JSON 数据",en:"Working with JSON"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/JSON",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/JSON"}},{title:{zh:"对象模型的细节",en:"Details of the object model"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Guide/Details_of_the_Object_Model",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Guide/Details_of_the_Object_Model"}},{title:{zh:"对象原型",en:"Object prototypes"},docLink:{zh:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Object_prototypes",en:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/Object_prototypes"}},{title:{zh:"JavaScript 中的继承",en:"Inh
eritance in JavaScript"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/JavaScript/Objects/Inheritance",en:"https://developer.mozilla.org/en-US/docs/Learn/JavaScript/Objects/Inheritance"}},{title:{zh:"继承与原型链",en:"Inheritance and the prototype chain"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Inheritance_and_the_prototype_chain",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Inheritance_and_the_prototype_chain"}},{title:{zh:"严格模式",en:"Strict mode"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Strict_mode",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Strict_mode"}},{title:{zh:"内存管理",en:"Memory Management"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Memory_Management",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Memory_Management"}},{title:{zh:"并发模型与事件循环",en:"Concurrency model and Event Loo
p"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/EventLoop",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/EventLoop"}},{title:{zh:"JavaScript 标准库",en:"Standard built-in objects"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/JavaScript/Reference/Global_Objects",en:"https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Global_Objects"}}]),i),(a={subject:"css",mainColor:"#F56FC6",title:{zh:"学习 CSS",en:"Learn CSS"},titleColor:"#FFFFFF",poster:"https://gw.alicdn.com/tfs/TB1k6anhMMPMeJjy1XdXXasrXXa-427-190.jpg",posterBg:"#FFA2DE",posterStyle:{width:"517px",height:"230px"}},(0,c.default)(a,"title",{zh:"学习 CSS",en:"Learn CSS"}),(0,c.default)(a,"copyright",{zh:"来自 MDN (Mozilla Developer Network)",en:"From MDN (Mozilla Developer Network)"}),(0,c.default)(a,"lessons",[{title:{zh:"什么是 CSS ?",en:"What is CSS ?"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Getting_started/What_is_CSS",
en:"https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Getting_started/What_is_CSS"}},{title:{zh:"CSS 语法",en:"CSS Syntax"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/Introduction_to_CSS/Syntax",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Syntax"}},{title:{zh:"CSS的值和单位",en:"CSS Values and Units"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/Introduction_to_CSS/Values_and_units",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Values_and_units"}},{title:{zh:"盒模型",en:"The Box Model"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/Introduction_to_CSS/Box_model",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/Introduction_to_CSS/Box_model"}},{title:{zh:"盒模型的属性",en:"Box Model Properties"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Box_Model",en:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Box_Model"}},{
title:{zh:"定位布局",en:"Positioning"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/CSS_layout/%E5%AE%9A%E4%BD%8Dx",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/positioning"}},{title:{zh:"定位布局的属性",en:"CSS Positioning"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Positioning",en:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Positioning"}},{title:{zh:"Flexbox 布局",en:"Flexbox Layout"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Learn/CSS/CSS_layout/Flexbox",en:"https://developer.mozilla.org/en-US/docs/Learn/CSS/CSS_layout/Flexbox"}},{title:{zh:"Flexbox 布局的属性",en:"CSS Flexible Box Layout"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/CSS_Flexible_Box_Layout",en:"https://developer.mozilla.org/en-US/docs/Web/CSS/CSS_Flexible_Box_Layout"}},{title:{zh:"Weex 中的通用样式",en:"Common Styles in Weex"},docLink:{zh:"http://weex-project.io/cn/references/common-sty
le.html",en:"http://weex-project.io/references/common-style.html"}},{title:{zh:"Weex 中的文本样式",en:"Text Styles in Weex"},docLink:{zh:"http://weex-project.io/cn/references/text-style.html",en:"http://weex-project.io/references/text-style.html"}},{title:{zh:"块格式化上下文(BFC)",en:"Block Formatting Context"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Block_formatting_context",en:"https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Block_formatting_context"}},{title:{zh:"视觉格式化模型",en:"Visual Formatting Model"},docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/Guide/CSS/Visual_formatting_model",en:"https://developer.mozilla.org/en-US/docs/Web/Guide/CSS/Visual_formatting_model"}},{title:"CSS Reference",docLink:{zh:"https://developer.mozilla.org/zh-CN/docs/Web/CSS/Reference",en:"https://developer.mozilla.org/en-US/docs/Web/CSS/Reference"}}]),a)]},function(e,t,n){"use strict";t.__esModule=!0;var o,r=n(80),i=(o=r)&&o.__esMod
ule?o:{default:o};t.default=function(e,t,n){return t in e?(0,i.default)(e,t,{value:n,enumerable:!0,configurable:!0,writable:!0}):e[t]=n,e}},function(e,t,n){e.exports={default:n(81),__esModule:!0}},function(e,t,n){n(82);var o=n(7).Object;e.exports=function(e,t,n){return o.defineProperty(e,t,n)}},function(e,t,n){var o=n(16);o(o.S+o.F*!n(2),"Object",{defineProperty:n(1).f})},function(e,t){e.exports={render:function(){var e=this,t=e.$createElement,n=e._self._c||t;return n("scroller",{staticClass:["wrapper"]},[n("slider",{staticClass:["slider"],attrs:{autoPlay:"true"}},[e._l(e.sliders,function(t,o){return n("div",{key:t.subject,staticClass:["center"],style:{backgroundColor:t.posterBg},on:{click:function(t){e.lenssonIndex=o}}},[n("div",{staticClass:["center","size"]},[n("image",{style:t.posterStyle,attrs:{resize:"cover",src:t.poster}})]),n("text",{staticClass:["slider-title"],style:{color:t.titleColor||t.mainColor}},[e._v(e._s(e.i18n(t.title)))])])}),n("indicator",{staticClass:["indicator
"]})],2),n("lesson",{attrs:{mainColor:e.chosenLesson.mainColor,title:e.chosenLesson.title,lessons:e.chosenLesson.lessons,copyright:e.chosenLesson.copyright}})],1)},staticRenderFns:[]},e.exports.render._withStripped=!0},function(e,t,n){"use strict";Object.defineProperty(t,"__esModule",{value:!0});var o=function(e){if(e&&e.__esModule)return e;var t={};if(null!=e)for(var n in e)Object.prototype.hasOwnProperty.call(e,n)&&(t[n]=e[n]);return t.default=e,t}(n(27));var r=weex.requireModule("storage");t.default={filters:{i18n:o.i18n,url:o.createURL,link:o.createLink},methods:{createLink:o.createLink,createURL:o.createURL,i18n:o.i18n,getLanguage:o.getLanguage,fetchData:o.fetchData,saveData:o.saveData,readData:o.readData,jumpTo:o.jumpTo},created:function(){var e=this;o.getLanguage(function(t){e.language=t,o.setTitleBar(e.navigationBarOptions,t)}),new BroadcastChannel("language").onmessage=function(t){t.data&&t.data.language&&(e.language=t.data.language)}},beforeDestroy:function(){r.removeItem(
"CURRENT_DOCUMENT_URL"),r.removeItem("CURRENT_SOURCE_HASH")}}}]);
\ No newline at end of file