http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/syntax/template-class.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/syntax/template-class.js b/android/playground/app/src/main/assets/vue/syntax/template-class.js deleted file mode 100644 index c6969d9..0000000 --- a/android/playground/app/src/main/assets/vue/syntax/template-class.js +++ /dev/null @@ -1,165 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(255) - ) - - /* script */ - __vue_exports__ = __webpack_require__(256) - - /* template */ - var __vue_template__ = __webpack_require__(257) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/syntax/template-class.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-8a4acb8e" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 255: -/***/ (function(module, exports) { - - module.exports = { - "a": { - "fontSize": 48 - }, - "b": { - "color": "#ff0000" - } - } - -/***/ }), - -/***/ 256: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - - module.exports = { - data: { - x: '' - }, - methods: { - update: function update(e) { - this.x = 'b'; - console.log('x', this.x); - } - } - }; - -/***/ }), - -/***/ 257: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', { - on: { - "click": _vm.update - } - }, [_c('text', { - staticClass: ["a"] - }, [_vm._v("Hello")]), _c('text', { - staticClass: ["b"] - }, [_vm._v("Hello")]), _c('text', { - class: ['a', _vm.x] - }, [_vm._v("Hello")])]) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/syntax/template-content.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/syntax/template-content.js b/android/playground/app/src/main/assets/vue/syntax/template-content.js deleted file mode 100644 index d03f1a9..0000000 --- a/android/playground/app/src/main/assets/vue/syntax/template-content.js +++ /dev/null @@ -1,199 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* script */ - __vue_exports__ = __webpack_require__(258) - - /* template */ - var __vue_template__ = __webpack_require__(262) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/syntax/template-content.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 258: -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - // - // - - module.exports = { - components: { - btn: __webpack_require__(259) - } - }; - -/***/ }), - -/***/ 259: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(260) - ) - - /* template */ - var __vue_template__ = __webpack_require__(261) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/syntax/include/btn.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-08edab5e" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - - -/***/ }), - -/***/ 260: -/***/ (function(module, exports) { - - module.exports = { - "btn": { - "fontSize": 36, - "textAlign": "center", - "color": "#FFFFFF", - "backgroundColor": "#808080", - "paddingTop": 20, - "paddingRight": 20, - "paddingBottom": 20, - "paddingLeft": 20, - "borderRadius": 5 - } - } - -/***/ }), - -/***/ 261: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', { - staticClass: ["btn"] - }, [_vm._t("default")], 2) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }), - -/***/ 262: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', [_c('btn', [_c('text', [_vm._v("Click!")])])], 1) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/syntax/template-event.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/syntax/template-event.js b/android/playground/app/src/main/assets/vue/syntax/template-event.js deleted file mode 100644 index dd74769..0000000 --- a/android/playground/app/src/main/assets/vue/syntax/template-event.js +++ /dev/null @@ -1,204 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(263) - ) - - /* script */ - __vue_exports__ = __webpack_require__(264) - - /* template */ - var __vue_template__ = __webpack_require__(265) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/syntax/template-event.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-8563fb4a" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 263: -/***/ (function(module, exports) { - - module.exports = { - "title": { - "fontSize": 48 - }, - "subtitle": { - "fontSize": 36 - }, - "btn": { - "fontSize": 36, - "textAlign": "center", - "color": "#FFFFFF", - "backgroundColor": "#808080", - "paddingTop": 20, - "paddingRight": 20, - "paddingBottom": 20, - "paddingLeft": 20, - "borderRadius": 5 - } - } - -/***/ }), - -/***/ 264: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - - module.exports = { - data: function data() { - return { - name: 'Steve', - temp: 'Mike' - }; - }, - methods: { - update: function update(e) { - this.setName('David'); - console.log('setName', this.name); - }, - setName: function setName(value) { - this.name = value; - console.log('name', this.name); - } - } - }; - -/***/ }), - -/***/ 265: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', [_c('text', { - staticClass: ["title"] - }, [_vm._v("Hello " + _vm._s(_vm.name))]), _c('text', { - staticClass: ["btn"], - on: { - "click": _vm.update - } - }, [_vm._v("Update 1")]), _c('text', { - staticClass: ["btn"], - on: { - "click": function($event) { - _vm.update($event) - } - } - }, [_vm._v("Update 1")]), _c('text', { - staticClass: ["btn"], - on: { - "click": function($event) { - _vm.setName(_vm.temp, $event) - } - } - }, [_vm._v("Update 2")]), _c('text', { - staticClass: ["btn"], - on: { - "click": function($event) { - _vm.setName('John') - } - } - }, [_vm._v("Update 3")])]) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/syntax/template-if.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/syntax/template-if.js b/android/playground/app/src/main/assets/vue/syntax/template-if.js deleted file mode 100644 index 8fb9aa6..0000000 --- a/android/playground/app/src/main/assets/vue/syntax/template-if.js +++ /dev/null @@ -1,172 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(266) - ) - - /* script */ - __vue_exports__ = __webpack_require__(267) - - /* template */ - var __vue_template__ = __webpack_require__(268) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/syntax/template-if.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-5e6af0a8" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 266: -/***/ (function(module, exports) { - - module.exports = { - "title": { - "fontSize": 48 - }, - "btn": { - "fontSize": 36, - "textAlign": "center", - "color": "#FFFFFF", - "backgroundColor": "#808080", - "paddingTop": 20, - "paddingRight": 20, - "paddingBottom": 20, - "paddingLeft": 20, - "borderRadius": 5 - } - } - -/***/ }), - -/***/ 267: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - - module.exports = { - data: { - flag: true - }, - methods: { - toggle: function toggle(e) { - this.flag = !this.flag; - console.log('this.flag:', this.flag); - } - } - }; - -/***/ }), - -/***/ 268: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', [_c('text', { - staticClass: ["btn"], - on: { - "click": _vm.toggle - } - }, [_vm._v("Toggle")]), (_vm.flag) ? _c('text', { - staticClass: ["title"] - }, [_vm._v("I'm ON")]) : _vm._e(), (!_vm.flag) ? _c('text', { - staticClass: ["title"] - }, [_vm._v("I'm Off")]) : _vm._e()]) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/syntax/template-repeat-update.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/syntax/template-repeat-update.js b/android/playground/app/src/main/assets/vue/syntax/template-repeat-update.js deleted file mode 100644 index af0fd09..0000000 --- a/android/playground/app/src/main/assets/vue/syntax/template-repeat-update.js +++ /dev/null @@ -1,202 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(272) - ) - - /* script */ - __vue_exports__ = __webpack_require__(273) - - /* template */ - var __vue_template__ = __webpack_require__(274) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/syntax/template-repeat-update.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-dd21c108" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 272: -/***/ (function(module, exports) { - - module.exports = { - "title": { - "fontSize": 48 - }, - "subtitle": { - "fontSize": 36 - }, - "btn": { - "fontSize": 36, - "textAlign": "center", - "color": "#FFFFFF", - "backgroundColor": "#808080", - "paddingTop": 20, - "paddingRight": 20, - "paddingBottom": 20, - "paddingLeft": 20, - "borderRadius": 5 - } - } - -/***/ }), - -/***/ 273: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - - module.exports = { - data: function data() { - return { - list: [{ key: 1, text: 'a' }, { key: 2, text: 'a' }, { key: 3, text: 'b' }, { key: 4, text: 'c' }, { key: 5, text: 'a' }], - flag: true - }; - }, - methods: { - update: function update(e) { - // equals to `this.list.text = 'foo'` - // DO NOT USE: `this.list[2] = {key: 3, text: 'foo'}}` - Vue.set(this.list, 2, { key: 3, text: 'foo' }); - console.log('this.list', this.list); - }, - mutate: function mutate(e) { - if (this.list.length % 2) { - this.list.push({ key: 'x', text: 'bar' }); - } else { - this.list.pop(); - } - console.log('this.list', this.list); - } - } - }; - -/***/ }), - -/***/ 274: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', [_c('text', { - staticClass: ["title"] - }, [_vm._v("Track by")]), _vm._l((_vm.list), function(item, k, $index) { - return _c('text', { - staticClass: ["subtitle"], - attrs: { - "trackBy": "item.key" - } - }, [_vm._v(_vm._s($index) + "-" + _vm._s(item.text))]) - }), _c('text', { - staticClass: ["btn"], - on: { - "click": _vm.update - } - }, [_vm._v("Update")]), _c('text', { - staticClass: ["btn"], - on: { - "click": _vm.mutate - } - }, [_vm._v("Mutate")])], 2) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/syntax/template-repeat.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/syntax/template-repeat.js b/android/playground/app/src/main/assets/vue/syntax/template-repeat.js deleted file mode 100644 index 4344d6f..0000000 --- a/android/playground/app/src/main/assets/vue/syntax/template-repeat.js +++ /dev/null @@ -1,177 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(269) - ) - - /* script */ - __vue_exports__ = __webpack_require__(270) - - /* template */ - var __vue_template__ = __webpack_require__(271) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/syntax/template-repeat.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-0cf7b4ac" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 269: -/***/ (function(module, exports) { - - module.exports = { - "title": { - "fontSize": 48 - }, - "subtitle": { - "fontSize": 36 - } - } - -/***/ }), - -/***/ 270: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - - module.exports = { - data: function data() { - return { - list: ['a', 'b', 'c', 'd', 'e'], - list2: [{ text: 'a' }, { text: 'b' }, { text: 'c' }, { text: 'd' }, { text: 'e' }] - }; - } - }; - -/***/ }), - -/***/ 271: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', [_c('text', { - staticClass: ["title"] - }, [_vm._v("Custom item")]), _vm._l((_vm.list), function(item) { - return _c('text', { - key: item.index, - staticClass: ["subtitle"] - }, [_vm._v(_vm._s(item))]) - }), _c('text', { - staticClass: ["title"] - }, [_vm._v("Custom key and item")]), _vm._l((_vm.list), function(v, i) { - return _c('text', { - key: i, - staticClass: ["subtitle"] - }, [_vm._v(_vm._s(i) + "-" + _vm._s(v))]) - }), _c('text', { - staticClass: ["title"] - }, [_vm._v("Array of Object")]), _vm._l((_vm.list2), function(item, k, index) { - return _c('text', { - key: index, - staticClass: ["subtitle"] - }, [_vm._v("> " + _vm._s(index) + "-" + _vm._s(item.text))]) - })], 2) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/syntax/template-style.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/syntax/template-style.js b/android/playground/app/src/main/assets/vue/syntax/template-style.js deleted file mode 100644 index 4a6a043..0000000 --- a/android/playground/app/src/main/assets/vue/syntax/template-style.js +++ /dev/null @@ -1,147 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* script */ - __vue_exports__ = __webpack_require__(275) - - /* template */ - var __vue_template__ = __webpack_require__(276) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/syntax/template-style.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 275: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - - module.exports = { - data: function data() { - return { - size: 32, - color: '#ff0000' - }; - }, - methods: { - update: function update(e) { - this.size = 48; - console.log('this.size', this.size); - } - } - }; - -/***/ }), - -/***/ 276: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', { - on: { - "click": _vm.update - } - }, [_c('text', { - staticStyle: { - fontSize: "48px", - color: "#0000ff" - } - }, [_vm._v("Hello")]), _c('text', { - style: { - fontSize: _vm.size, - color: _vm.color - } - }, [_vm._v("Hello")])]) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/template.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/template.js b/android/playground/app/src/main/assets/vue/template.js deleted file mode 100644 index bfb172d..0000000 --- a/android/playground/app/src/main/assets/vue/template.js +++ /dev/null @@ -1,821 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* script */ - __vue_exports__ = __webpack_require__(277) - - /* template */ - var __vue_template__ = __webpack_require__(282) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/template.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 3: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(4) - ) - - /* script */ - __vue_exports__ = __webpack_require__(5) - - /* template */ - var __vue_template__ = __webpack_require__(6) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/include/panel.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-58511ff6" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - - -/***/ }), - -/***/ 4: -/***/ (function(module, exports) { - - module.exports = { - "panel": { - "marginBottom": 20, - "backgroundColor": "#ffffff", - "borderColor": "#dddddd", - "borderWidth": 1 - }, - "panel-primary": { - "borderColor": "rgb(40,96,144)" - }, - "panel-success": { - "borderColor": "rgb(76,174,76)" - }, - "panel-info": { - "borderColor": "rgb(70,184,218)" - }, - "panel-warning": { - "borderColor": "rgb(238,162,54)" - }, - "panel-danger": { - "borderColor": "rgb(212,63,58)" - }, - "panel-header": { - "backgroundColor": "#f5f5f5", - "fontSize": 40, - "color": "#333333" - }, - "panel-header-primary": { - "backgroundColor": "rgb(40,96,144)", - "color": "#ffffff" - }, - "panel-header-success": { - "backgroundColor": "rgb(92,184,92)", - "color": "#ffffff" - }, - "panel-header-info": { - "backgroundColor": "rgb(91,192,222)", - "color": "#ffffff" - }, - "panel-header-warning": { - "backgroundColor": "rgb(240,173,78)", - "color": "#ffffff" - }, - "panel-header-danger": { - "backgroundColor": "rgb(217,83,79)", - "color": "#ffffff" - }, - "panel-body": { - "paddingLeft": 12, - "paddingRight": 12, - "paddingTop": 20, - "paddingBottom": 20 - } - } - -/***/ }), - -/***/ 5: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - - module.exports = { - props: { - type: { default: 'default' }, - title: { default: '' }, - paddingBody: { default: 20 }, - paddingHead: { default: 20 }, - dataClass: { default: '' }, // FIXME transfer class - border: { default: 0 } - } - }; - -/***/ }), - -/***/ 6: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', { - class: ['panel', 'panel-' + _vm.type], - style: { - borderWidth: _vm.border - } - }, [_c('text', { - class: ['panel-header', 'panel-header-' + _vm.type], - style: { - paddingTop: _vm.paddingHead, - paddingBottom: _vm.paddingHead, - paddingLeft: _vm.paddingHead * 1.5, - paddingRight: _vm.paddingHead * 1.5 - } - }, [_vm._v(_vm._s(_vm.title))]), _c('div', { - class: ['panel-body', 'panel-body-' + _vm.type], - style: { - paddingTop: _vm.paddingBody, - paddingBottom: _vm.paddingBody, - paddingLeft: _vm.paddingBody * 1.5, - paddingRight: _vm.paddingBody * 1.5 - } - }, [_vm._t("default")], 2)]) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }), - -/***/ 7: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(8) - ) - - /* script */ - __vue_exports__ = __webpack_require__(9) - - /* template */ - var __vue_template__ = __webpack_require__(10) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/include/button.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-71b34881" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - - -/***/ }), - -/***/ 8: -/***/ (function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", - "borderColor": "#333333" - }, - "btn-default": { - "color": "rgb(51,51,51)" - }, - "btn-primary": { - "backgroundColor": "rgb(40,96,144)", - "borderColor": "rgb(40,96,144)" - }, - "btn-success": { - "backgroundColor": "rgb(92,184,92)", - "borderColor": "rgb(76,174,76)" - }, - "btn-info": { - "backgroundColor": "rgb(91,192,222)", - "borderColor": "rgb(70,184,218)" - }, - "btn-warning": { - "backgroundColor": "rgb(240,173,78)", - "borderColor": "rgb(238,162,54)" - }, - "btn-danger": { - "backgroundColor": "rgb(217,83,79)", - "borderColor": "rgb(212,63,58)" - }, - "btn-link": { - "borderColor": "rgba(0,0,0,0)", - "borderRadius": 0 - }, - "btn-txt-default": { - "color": "rgb(51,51,51)" - }, - "btn-txt-primary": { - "color": "rgb(255,255,255)" - }, - "btn-txt-success": { - "color": "rgb(255,255,255)" - }, - "btn-txt-info": { - "color": "rgb(255,255,255)" - }, - "btn-txt-warning": { - "color": "rgb(255,255,255)" - }, - "btn-txt-danger": { - "color": "rgb(255,255,255)" - }, - "btn-txt-link": { - "color": "rgb(51,122,183)" - }, - "btn-sz-large": { - "width": 300, - "height": 100, - "paddingTop": 25, - "paddingBottom": 25, - "paddingLeft": 40, - "paddingRight": 40, - "borderRadius": 15 - }, - "btn-sz-middle": { - "width": 240, - "height": 80, - "paddingTop": 15, - "paddingBottom": 15, - "paddingLeft": 30, - "paddingRight": 30, - "borderRadius": 10 - }, - "btn-sz-small": { - "width": 170, - "height": 60, - "paddingTop": 12, - "paddingBottom": 12, - "paddingLeft": 25, - "paddingRight": 25, - "borderRadius": 7 - }, - "btn-txt-sz-large": { - "fontSize": 45 - }, - "btn-txt-sz-middle": { - "fontSize": 35 - }, - "btn-txt-sz-small": { - "fontSize": 30 - } - } - -/***/ }), - -/***/ 9: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - - module.exports = { - props: { - type: { default: 'default' }, - size: { default: 'large' }, - value: { default: '' } - } - }; - -/***/ }), - -/***/ 10: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', { - class: ['btn', 'btn-' + _vm.type, 'btn-sz-' + _vm.size] - }, [_c('text', { - class: ['btn-txt', 'btn-txt-' + _vm.type, 'btn-txt-sz-' + _vm.size] - }, [_vm._v(_vm._s(_vm.value))])]) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }), - -/***/ 13: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(14) - ) - - /* script */ - __vue_exports__ = __webpack_require__(15) - - /* template */ - var __vue_template__ = __webpack_require__(16) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/include/tip.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-36fe495c" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - - -/***/ }), - -/***/ 14: -/***/ (function(module, exports) { - - module.exports = { - "tip": { - "paddingLeft": 36, - "paddingRight": 36, - "paddingTop": 36, - "paddingBottom": 36, - "borderRadius": 10 - }, - "tip-txt": { - "fontSize": 28 - }, - "tip-success": { - "backgroundColor": "#dff0d8", - "borderColor": "#d6e9c6" - }, - "tip-txt-success": { - "color": "#3c763d" - }, - "tip-info": { - "backgroundColor": "#d9edf7", - "borderColor": "#bce8f1" - }, - "tip-txt-info": { - "color": "#31708f" - }, - "tip-warning": { - "backgroundColor": "#fcf8e3", - "borderColor": "#faebcc" - }, - "tip-txt-warning": { - "color": "#8a6d3b" - }, - "tip-danger": { - "backgroundColor": "#f2dede", - "borderColor": "#ebccd1" - }, - "tip-txt-danger": { - "color": "#a94442" - } - } - -/***/ }), - -/***/ 15: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - // - - module.exports = { - props: { - type: { default: 'success' }, - value: { default: '' } - } - }; - -/***/ }), - -/***/ 16: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', { - class: ['tip', 'tip-' + _vm.type] - }, [_c('text', { - class: ['tip-txt', 'tip-txt-' + _vm.type] - }, [_vm._v(_vm._s(_vm.value))])]) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }), - -/***/ 277: -/***/ (function(module, exports, __webpack_require__) { - - 'use strict'; - - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - // - - var modal = weex.requireModule('modal'); - module.exports = { - data: function data() { - return { - img: '//gw.alicdn.com/tps/i2/TB1DpsmMpXXXXabaXXX20ySQVXX-512-512.png_400x400.jpg' - }; - }, - components: { - panel: __webpack_require__(3), - hn: __webpack_require__(278), - tip: __webpack_require__(13), - button: __webpack_require__(7) - }, - methods: { - toast: function toast() { - modal.toast({ message: 'a toast', duration: 2 }); - } - } - }; - -/***/ }), - -/***/ 278: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(279) - ) - - /* script */ - __vue_exports__ = __webpack_require__(280) - - /* template */ - var __vue_template__ = __webpack_require__(281) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/include/hn.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-79d897d5" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - - -/***/ }), - -/***/ 279: -/***/ (function(module, exports) { - - module.exports = { - "h1": { - "height": 110, - "paddingTop": 20, - "paddingBottom": 20 - }, - "h2": { - "height": 110, - "paddingTop": 20, - "paddingBottom": 20 - }, - "h3": { - "height": 110, - "paddingTop": 20, - "paddingBottom": 20 - }, - "txt-h1": { - "fontSize": 70 - }, - "txt-h2": { - "fontSize": 52 - }, - "txt-h3": { - "fontSize": 42 - } - } - -/***/ }), - -/***/ 280: -/***/ (function(module, exports) { - - 'use strict'; - - // - // - // - // - // - // - - module.exports = { - props: { - level: { default: 1 }, - value: { default: '' } - } - }; - -/***/ }), - -/***/ 281: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('div', { - class: ['h' + _vm.level], - staticStyle: { - justifyContent: "center" - } - }, [_c('text', { - class: ['txt-h' + _vm.level] - }, [_vm._v(_vm._s(_vm.value))])]) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }), - -/***/ 282: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('scroller', [_c('panel', { - attrs: { - "title": "Dialog", - "type": "primary" - } - }, [_c('tip', { - staticStyle: { - marginBottom: "20px" - }, - attrs: { - "type": "success", - "value": "It's a weex example template." - } - }), _c('hn', { - attrs: { - "level": "1", - "value": "H1" - } - }), _c('button', { - attrs: { - "type": "primary", - "value": "Toast" - }, - nativeOn: { - "click": function($event) { - _vm.toast($event) - } - } - }), _c('hn', { - attrs: { - "level": "2", - "value": "H3" - } - }), _c('button', { - attrs: { - "type": "warning", - "value": "Toast" - }, - nativeOn: { - "click": function($event) { - _vm.toast($event) - } - } - })], 1), _c('panel', { - attrs: { - "title": "Image", - "type": "primary" - } - }, [_c('tip', { - staticStyle: { - marginBottom: "20px" - }, - attrs: { - "type": "warning", - "value": "Weex screen width is 750" - } - }), _c('image', { - staticClass: ["img"], - staticStyle: { - width: "400px", - height: "400px" - }, - attrs: { - "src": _vm.img - } - }), _c('panel', { - attrs: { - "title": "Image", - "type": "default" - } - }, [_c('text', [_vm._v("sub info")])])], 1)], 1) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/assets/vue/transition.js ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/assets/vue/transition.js b/android/playground/app/src/main/assets/vue/transition.js deleted file mode 100644 index 30b9fc5..0000000 --- a/android/playground/app/src/main/assets/vue/transition.js +++ /dev/null @@ -1,265 +0,0 @@ -// { "framework": "Vue" } - -/******/ (function(modules) { // webpackBootstrap -/******/ // The module cache -/******/ var installedModules = {}; - -/******/ // The require function -/******/ function __webpack_require__(moduleId) { - -/******/ // Check if module is in cache -/******/ if(installedModules[moduleId]) -/******/ return installedModules[moduleId].exports; - -/******/ // Create a new module (and put it into the cache) -/******/ var module = installedModules[moduleId] = { -/******/ exports: {}, -/******/ id: moduleId, -/******/ loaded: false -/******/ }; - -/******/ // Execute the module function -/******/ modules[moduleId].call(module.exports, module, module.exports, __webpack_require__); - -/******/ // Flag the module as loaded -/******/ module.loaded = true; - -/******/ // Return the exports of the module -/******/ return module.exports; -/******/ } - - -/******/ // expose the modules object (__webpack_modules__) -/******/ __webpack_require__.m = modules; - -/******/ // expose the module cache -/******/ __webpack_require__.c = installedModules; - -/******/ // __webpack_public_path__ -/******/ __webpack_require__.p = ""; - -/******/ // Load entry module and return exports -/******/ return __webpack_require__(0); -/******/ }) -/************************************************************************/ -/******/ ({ - -/***/ 0: -/***/ (function(module, exports, __webpack_require__) { - - var __vue_exports__, __vue_options__ - var __vue_styles__ = [] - - /* styles */ - __vue_styles__.push(__webpack_require__(283) - ) - - /* script */ - __vue_exports__ = __webpack_require__(284) - - /* template */ - var __vue_template__ = __webpack_require__(285) - __vue_options__ = __vue_exports__ = __vue_exports__ || {} - if ( - typeof __vue_exports__.default === "object" || - typeof __vue_exports__.default === "function" - ) { - if (Object.keys(__vue_exports__).some(function (key) { return key !== "default" && key !== "__esModule" })) {console.error("named exports are not supported in *.vue files.")} - __vue_options__ = __vue_exports__ = __vue_exports__.default - } - if (typeof __vue_options__ === "function") { - __vue_options__ = __vue_options__.options - } - __vue_options__.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/transition.vue" - __vue_options__.render = __vue_template__.render - __vue_options__.staticRenderFns = __vue_template__.staticRenderFns - __vue_options__._scopeId = "data-v-1de2b95d" - __vue_options__.style = __vue_options__.style || {} - __vue_styles__.forEach(function (module) { - for (var name in module) { - __vue_options__.style[name] = module[name] - } - }) - if (typeof __register_static_styles__ === "function") { - __register_static_styles__(__vue_options__._scopeId, __vue_styles__) - } - - module.exports = __vue_exports__ - module.exports.el = 'true' - new Vue(module.exports) - - -/***/ }), - -/***/ 283: -/***/ (function(module, exports) { - - module.exports = { - "panel": { - "marginTop": 10, - "marginRight": 10, - "marginBottom": 10, - "marginLeft": 10, - "top": 10, - "alignItems": "center", - "justifyContent": "center", - "border": "solid", - "borderRadius": 10, - "transitionProperty": "right,left,top,bottom,width,height,backgroundColor,opacity,transform", - "transitionDuration": 500, - "transitionDelay": 0, - "transitionTimingFunction": "cubic-bezier(0.58,0.1,0.42,1)" - }, - "@TRANSITION": { - "panel": { - "property": "right,left,top,bottom,width,height,backgroundColor,opacity,transform", - "duration": 500, - "delay": 0, - "timingFunction": "cubic-bezier(0.58,0.1,0.42,1)" - } - }, - "cell": { - "backgroundColor": "#FFFFFF", - "flexDirection": "row" - }, - "text": { - "fontSize": 60, - "textAlign": "center", - "color": "#FFFFFF" - }, - "list": { - "backgroundColor": "#FFFFFF" - } - } - -/***/ }), - -/***/ 284: -/***/ (function(module, exports) { - - 'use strict'; - - Object.defineProperty(exports, "__esModule", { - value: true - }); - // - // - // - // - // - // - // - // - // - // - // - // - - exports.default = { - created: function created() { - this.datasource = ['width+height', 'backgroundColor', 'opactity', 'transform/translateX', 'transform/translateY', 'transform/scaleX', 'transform/scaleY', 'transform/rotate']; - this.panels = this.randomfn(); - }, - data: function data() { - return { - panels: [] - }; - }, - - methods: { - change: function change(i) { - var item = this.panels[i]; - if (item) { - - if (i == 0) { - item.height = item.height === 330 ? 200 : 330; - item.width = item.width === 350 ? 730 : 350; - } - if (i == 1) { - item.bgc = item.bgc === '#69BE96' ? 'red' : '#69BE96'; - } - if (i == 2) { - item.opacity = item.opacity === 1.0 ? 0.6 : 1.0; - } - if (i == 3) { - item.bgc = item.bgc === '#69BE96' ? '#72B8DF' : '#69BE96'; - item.transform = item.transform === 'translateX(200px)' ? 'translateX(0px)' : 'translateX(200px)'; - } - if (i == 4) { - item.bgc = item.bgc === '#69BE96' ? '#72B8DF' : '#69BE96'; - item.transform = item.transform === 'translateY(-150px)' ? 'translateY(0px)' : 'translateY(-150px)'; - } - if (i == 5) { - item.bgc = item.bgc === '#69BE96' ? '#72B8DF' : '#69BE96'; - item.transform = item.transform === 'scaleX(0.5)' ? 'scaleX(1)' : 'scaleX(0.5)'; - } - if (i == 6) { - item.bgc = item.bgc === '#69BE96' ? '#72B8DF' : '#69BE96'; - item.transform = item.transform === 'scaleY(0.5)' ? 'scaleY(1)' : 'scaleY(0.5)'; - } - if (i == 7) { - item.bgc = item.bgc === '#69BE96' ? '#72B8DF' : '#69BE96'; - item.transform = item.transform === 'rotate(40deg)' ? 'rotate(0deg)' : 'rotate(40deg)'; - } - } - }, - randomfn: function randomfn() { - var ary = []; - for (var i = 0; i <= 7; i++) { - ary.push({ label: this.datasource[i], height: 200, width: 730, bgc: '#69BE96', opacity: 1, right: 20 }); - } - return ary; - } - } - }; - -/***/ }), - -/***/ 285: -/***/ (function(module, exports) { - - module.exports={render:function (){var _vm=this;var _h=_vm.$createElement;var _c=_vm._self._c||_h; - return _c('list', { - staticClass: ["list"] - }, _vm._l((_vm.panels), function(item, i) { - return _c('cell', { - staticClass: ["cell"], - appendAsTree: true, - attrs: { - "append": "tree" - }, - on: { - "click": function($event) { - _vm.change(i) - } - } - }, [_c('div', { - staticClass: ["panel"], - style: { - height: item.height, - width: item.width, - backgroundColor: item.bgc, - opacity: item.opacity, - transform: item.transform - } - }, [_c('text', { - staticClass: ["text"] - }, [_vm._v(_vm._s(item.label))])]), _c('div', { - staticClass: ["panel"], - style: { - height: item.height, - width: item.width, - backgroundColor: item.bgc, - opacity: item.opacity, - transform: item.transform - } - }, [_c('text', { - staticClass: ["text"] - }, [_vm._v(_vm._s(item.label))])])]) - })) - },staticRenderFns: []} - module.exports.render._withStripped = true - -/***/ }) - -/******/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/43564f3b/android/playground/app/src/main/java/com/alibaba/weex/IndexActivity.java ---------------------------------------------------------------------- diff --git a/android/playground/app/src/main/java/com/alibaba/weex/IndexActivity.java b/android/playground/app/src/main/java/com/alibaba/weex/IndexActivity.java index fa14490..3cc1c5e 100644 --- a/android/playground/app/src/main/java/com/alibaba/weex/IndexActivity.java +++ b/android/playground/app/src/main/java/com/alibaba/weex/IndexActivity.java @@ -6,9 +6,9 @@ * 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 @@ -83,7 +83,7 @@ public class IndexActivity extends AbstractWeexActivity { } if (TextUtils.equals(sCurrentIp, DEFAULT_IP)) { - renderPage(WXFileUtils.loadAsset("vue/index.js", this), getIndexUrl()); + renderPage(WXFileUtils.loadAsset("landing.weex.js", this), getIndexUrl()); } else { renderPageByURL(getIndexUrl()); } @@ -94,7 +94,7 @@ public class IndexActivity extends AbstractWeexActivity { public void onReceive(Context context, Intent intent) { createWeexInstance(); if (TextUtils.equals(sCurrentIp, DEFAULT_IP)) { - renderPage(WXFileUtils.loadAsset("vue/index.js", getApplicationContext()), getIndexUrl()); + renderPage(WXFileUtils.loadAsset("landing.weex.js", getApplicationContext()), getIndexUrl()); } else { renderPageByURL(getIndexUrl()); }
