[06/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/components/warning.js -- diff --git a/html5/render/vue/components/warning.js b/html5/render/vue/components/warning.js deleted file mode 100644 index 45f9737..000 --- a/html5/render/vue/components/warning.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ -export default { - render () { -// TODO: add tag nesting validation -if (process.env.NODE_ENV === 'development') { - const tag = this.$options._componentTag - const parentTag = this.$parent.$options._componentTag - console.warn(`[Vue Render] The <${tag}> can't be the child of <${parentTag}>.`) -} -return null - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/components/web.js -- diff --git a/html5/render/vue/components/web.js b/html5/render/vue/components/web.js deleted file mode 100644 index 906fb03..000 --- a/html5/render/vue/components/web.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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. - */ - -const _css = ` -.weex-web { - position: relative; - width: 100%; - height: 100%; - border: none; - box-sizing: border-box; -} -` - -function getWeb (weex) { - const { extractComponentStyle, createEventMap } = weex - const { createEvent } = weex.utils - - return { -name: 'weex-web', -props: { - src: String -}, -methods: { - // TODO: check cross-origin - goBack () { -if (this.$el) { - this.$el.contentWindow.history.back() -} - }, - goForward () { -if (this.$el) { - this.$el.contentWindow.history.forward() -} - }, - reload () { -if (this.$el) { - this.$el.contentWindow.history.reload() -} - } -}, - -mounted () { - if (this.$el) { -this.$emit('pagestart', createEvent(this.$el, 'pagestart', { url: this.src })) -this.$el.addEventListener('load', event => { - this.$emit('pagefinish', createEvent(this.$el, 'pagefinish', { url: this.src })) -}) - } -}, - -render (createElement) { - /* istanbul ignore next */ - // if (process.env.NODE_ENV === 'development') { - // validateStyles('web', this.$vnode.data && this.$vnode.data.staticStyle) - // } - return createElement('iframe', { -attrs: { - 'weex-type': 'web', - src: this.src -}, -on: createEventMap(this, ['error']), -staticClass: 'weex-web weex-el', -staticStyle: extractComponentStyle(this) - }) -}, -_css - } -} - -export default { - init (weex) { -weex.registerComponent('web', getWeb(weex)) - } -} - http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/config.js -- diff --git a/html5/render/vue/config.js b/html5/render/vue/config.js deleted file mode 100644 index bccf1e3..000 --- a/html5/render/vue/config.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 - *
[04/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/utils/style.js -- diff --git a/html5/render/vue/utils/style.js b/html5/render/vue/utils/style.js deleted file mode 100644 index 5f823d7..000 --- a/html5/render/vue/utils/style.js +++ /dev/null @@ -1,370 +0,0 @@ -/* - * 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. - */ - -// @flow - -import { getViewportInfo } from '../env/viewport' -import addPrefix from 'inline-style-prefixer/static/index' - -const noUnitsNumberKeys = [ - 'flex', - 'opacity', - 'zIndex', - 'fontWeight', - 'lines' -] - -// whether to support using 0.5px to paint 1px width border. -let _supportHairlines: ?boolean -export function supportHairlines () { - if (typeof _supportHairlines === 'undefined') { -const dpr = window.devicePixelRatio -if (dpr && dpr >= 2 && document.documentElement) { - const docElm = document.documentElement - const testElm = document.createElement('div') - const fakeBody = document.createElement('body') - const beforeNode = docElm.firstElementChild || docElm.firstChild - testElm.style.border = '0.5px solid transparent' - fakeBody.appendChild(testElm) - docElm.insertBefore(fakeBody, beforeNode) - _supportHairlines = testElm.offsetHeight === 1 - docElm.removeChild(fakeBody) -} -else { - _supportHairlines = false -} - } - return _supportHairlines -} - -/** - * remove comments from a cssText. - */ -export function trimComment (cssText: string): string { - return cssText.replace(/(?:\/\*)[\s\S]*?\*\//g, '') -} - -let support: boolean | null = null - -export function supportSticky (): boolean { - if (support !== null) { -return support - } - const element = window.document.createElement('div') - const elementStyle = element.style - elementStyle.cssText = 'position:-webkit-sticky;position:sticky;' - support = elementStyle.position.indexOf('sticky') !== -1 - return support -} - -const regPercentage = /^[+-]?\d+(\.\d+)?%$/ -export function isPercentage (val: string) { - return regPercentage.test(val) -} - -const regUnitsNum = /^([+-]?\d+(?:\.\d+)?)([p,w]x)?$/ // support units: px, wx. -export function normalizeUnitsNum (val: string): string { - const match = val.match(regUnitsNum) - if (!match) { return '' } - let unit = 'px' // px by default. - if (match[2]) { -unit = match[2] - } - return parseScale(parseFloat(match[1]), unit) -} - -function getUnitScaleMap () { - const { scale } = getViewportInfo() - return { -px: scale, -wx: 1 // use px straight, not adaptable to screens. - } -} - -function limitScale (val, limit) { - limit = limit || 1 - const sign = val === 0 ? 0 : val > 0 ? 1 : -1 - let newVal = Math.abs(val) > limit ? val : sign * limit - // support 1px device width. - if (newVal === 1 && val < 1 && supportHairlines()) { -newVal = 0.5 - } - return newVal -} - -function parseScale (val: number, unit: string): string { - const unitScaleMap = getUnitScaleMap() - return limitScale(val * unitScaleMap[unit]) + 'px' -} - -export function normalizeString (styleKey: string, styleVal: string): string { - if (isPercentage(styleVal)) { -return styleVal - } - - /** - * 1. test if is a regular scale css. e.g. `width: 100px;` - * this should be a standalone number value with or without unit, otherwise - * it shouldn't be changed. - */ - const unitsNum = normalizeUnitsNum(styleVal) - if (unitsNum) { return unitsNum } - - /** - * 2. if a string contains multiple px values, than they should be all normalized. - * values should have wx or px units, otherwise they should be left unchanged. - * e.g. - *transform: translate(10px, 6px, 0) - *border: 2px solid red - */ - const numReg = /([+-]?[\d.]+)([p,w]x)/ig - if (numReg.test(styleVal)) { -const unitScaleMap = getUnitScaleMap() -const val = styleVal.replace(numReg, function (m, $0, $1) { - const res = parseFloat($0) * unitScaleMap[$1] - return limitScale(res) + 'px' -}) -return val - } - - // otherwise - return styleVal -} - -export function autoPrefix (style: {}): {} { - const
[08/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/index.js -- diff --git a/html5/render/browser/index.js b/html5/render/browser/index.js deleted file mode 100644 index 305d76f..000 --- a/html5/render/browser/index.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ -'use strict' - -import Weex from './render/index' - -import root from './base/root' -import div from './base/div' -import droot from './base/droot' - -// install the extended apis and components. -import extensions from './extend' - -Weex.install(root) -Weex.install(div) -Weex.install(droot) - -Weex.install(extensions) - -global.registerComponents([ - { type: 'input', methods: ['focus', 'blur'] } -]) - -export default Weex http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/render/config.js -- diff --git a/html5/render/browser/render/config.js b/html5/render/browser/render/config.js deleted file mode 100644 index e407ef0..000 --- a/html5/render/browser/render/config.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. - */ -'use strict' - -const config = { - weexVersion: '0.5.0', - debug: false, - validRoots: ['div', 'list', 'vlist', 'scroller'], - downgrade: { -// root: true - } -} - -export default config http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/render/gesture.js -- diff --git a/html5/render/browser/render/gesture.js b/html5/render/browser/render/gesture.js deleted file mode 100644 index 24ef581..000 --- a/html5/render/browser/render/gesture.js +++ /dev/null @@ -1,511 +0,0 @@ -/* - * 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. - */ -/* eslint-disable */ - -'use strict' - -var isInitialized = false - -// major events supported: -// panstart -// panmove -// panend -// swipe -// longpress -// extra events supported: -// dualtouchstart -// dualtouch -// dualtouchend -// tap -// doubletap -// pressend - -var doc = window.document -var docEl = doc.documentElement -var slice = Array.prototype.slice -var gestures = {} -var lastTap = null - -/** - * find the closest common ancestor - * if there's no one, return null - * - * @param {Element} el1 first element - * @param {Element} el2 second element - * @return {Element} common ancestor - */ -function getCommonAncestor(el1, el2) { - var el = el1 - while (el) { -if (el.contains(el2) || el
[14/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/rollup-plugin-json_vx.x.x.js -- diff --git a/flow-typed/npm/rollup-plugin-json_vx.x.x.js b/flow-typed/npm/rollup-plugin-json_vx.x.x.js deleted file mode 100644 index ffa9a45..000 --- a/flow-typed/npm/rollup-plugin-json_vx.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: 68c51e9216afd9798d898289d7675b5a -// flow-typed version: <>/rollup-plugin-json_v^2.0.2/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'rollup-plugin-json' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'rollup-plugin-json' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'rollup-plugin-json/dist/rollup-plugin-json.cjs' { - declare module.exports: any; -} - -declare module 'rollup-plugin-json/dist/rollup-plugin-json.es' { - declare module.exports: any; -} - -declare module 'rollup-plugin-json/src/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'rollup-plugin-json/dist/rollup-plugin-json.cjs.js' { - declare module.exports: $Exports<'rollup-plugin-json/dist/rollup-plugin-json.cjs'>; -} -declare module 'rollup-plugin-json/dist/rollup-plugin-json.es.js' { - declare module.exports: $Exports<'rollup-plugin-json/dist/rollup-plugin-json.es'>; -} -declare module 'rollup-plugin-json/src/index.js' { - declare module.exports: $Exports<'rollup-plugin-json/src/index'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js -- diff --git a/flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js b/flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js deleted file mode 100644 index e439a72..000 --- a/flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: 77087eb25686219194e4dbba6f9cd202 -// flow-typed version: <>/rollup-plugin-node-resolve_v^2.0.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'rollup-plugin-node-resolve' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'rollup-plugin-node-resolve' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs' { - declare module.exports: any; -} - -declare module 'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es6' { - declare module.exports: any; -} - -declare module 'rollup-plugin-node-resolve/src/empty' { - declare module.exports: any; -} - -declare module 'rollup-plugin-node-resolve/src/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js' { - declare module.exports: $Exports<'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs'>; -} -declare module 'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es6.js' { - declare module.exports: $Exports<'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es6'>; -} -declare module 'rollup-plugin-node-resolve/src/empty.js' { - declare module.exports: $Exports<'rollup-plugin-node-resolve/src/empty'>; -} -declare module 'rollup-plugin-node-resolve/src/index.js' { - declare module.exports: $Exports<'rollup-plugin-node-resolve/src/index'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/rollup-plugin-postcss_vx.x.x.js -- diff --git a/flow-typed/npm/rollup-plugin-postcss_vx.x.x.js b/flow-typed/npm/rollup-plugin-postcss_vx.x.x.js deleted file mode 100644 index 3ed88e1..000 --- a/flow-typed/npm/rollup-plugin-postcss_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: ffee129c2c2545168f37519a266d3609 -// flow-typed version: <>/rollup-plugin-postcss_v^0.2.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'rollup-plugin-postcss' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - *
[12/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/base/component/lazyload.js -- diff --git a/html5/render/browser/base/component/lazyload.js b/html5/render/browser/base/component/lazyload.js deleted file mode 100644 index 05f4c70..000 --- a/html5/render/browser/base/component/lazyload.js +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 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. - */ -/* global lib, HTMLElement */ - -'use strict' - -import 'lazyimg' - -let lazyloadTimer - -// fire lazyimg on images. -function fire () { - setTimeout(() => lib.img.fire(), 0) -} - -// we don't know when all images are appended -// just use setTimeout to do delay lazyload -// -// -- actually everytime we add a element or update styles, -// the component manager will call startIfNeed to fire -// lazyload once again in the handleAppend function. so there -// is no way that any image element can miss it. See source -// code in componentMangager.js. - -// just for the image component to start lazyload. -function startIfNeeded (target) { - if (!lazyloadTimer) { -lazyloadTimer = setTimeout(function () { - fire() - clearTimeout(lazyloadTimer) - lazyloadTimer = null -}, 16) - } -} - -// for a scope of element, not for a image. -function loadIfNeeded (elementScope) { - const notPreProcessed = elementScope.querySelectorAll('[img-src]') - // image elements which have attribute 'i-lazy-src' were elements - // that had been preprocessed by lib-img-core, but not loaded yet, and - // must be loaded when 'appear' events were fired. It turns out the - // 'appear' event was not fired correctly in the css-translate-transition - // situation, so 'i-lazy-src' must be checked and lazyload must be - // fired manually. - const preProcessed = elementScope.querySelectorAll('[i-lazy-src]') - if (notPreProcessed.length > 0 || preProcessed.length > 0) { -fire() - } -} - -export function makeImageLazy (image, src) { - image.removeAttribute('img-src') - image.removeAttribute('i-lazy-src') - image.removeAttribute('src') - image.setAttribute('img-src', src) - fire() -} - -export function fireLazyload (target) { - if (typeof target === 'object' && !(target instanceof HTMLElement)) { -target = target.node - } - if (!target) { -return - } - if (target.tagName.toLowerCase() === 'image') { -return startIfNeeded(target) - } - return loadIfNeeded(target) -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/base/component/operate.js -- diff --git a/html5/render/browser/base/component/operate.js b/html5/render/browser/base/component/operate.js deleted file mode 100644 index f73f4a3..000 --- a/html5/render/browser/base/component/operate.js +++ /dev/null @@ -1,311 +0,0 @@ -/* - * 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. - */ -'use strict' - -import { extend, camelToKebab } from '../../utils' -import { getFilters } from './valueFilter' - -let pseudoId = 0 -function getPseudoId () { - return '' + (pseudoId++) -} - -export function create (nodeType) { - return document.createElement(nodeType || 'div') -} - -export function createChildren () { - const children = this.data.children - const parentRef = this.data.ref - const componentManager = this.getComponentManager() - if (children
[01/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958) [Forced Update!]
Repository: incubator-weex Updated Branches: refs/heads/master 5b9aa2cad -> ceef728d3 (forced update) http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/packages/weex-vue-plugins/weex-vue-video/package.json -- diff --git a/packages/weex-vue-plugins/weex-vue-video/package.json b/packages/weex-vue-plugins/weex-vue-video/package.json deleted file mode 100644 index 6d8b5b1..000 --- a/packages/weex-vue-plugins/weex-vue-video/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "weex-vue-video", - "version": "0.1.2", - "description": "Weex built-in 'video' component for Vue 2.x.", - "license": "Apache-2.0", - "main": "dist/index.js", - "repository": { -"type": "git", -"url": "g...@github.com:apache/incubator-weex.git" - }, - "homepage": "http://weex.apache.org/;, - "bugs": { -"url": "https://issues.apache.org/jira/browse/WEEX/; - }, - "keywords": [ -"weex", -"vue", -"web", -"component", -"video" - ], - "peerDependencies": { -"weex-vue-render": "^0.12.0", -"vue-loader": "^12.0" - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/packages/weex-vue-plugins/weex-vue-video/src/index.js -- diff --git a/packages/weex-vue-plugins/weex-vue-video/src/index.js b/packages/weex-vue-plugins/weex-vue-video/src/index.js deleted file mode 100644 index 30eab90..000 --- a/packages/weex-vue-plugins/weex-vue-video/src/index.js +++ /dev/null @@ -1,2 +0,0 @@ -import video from '../../../../html5/render/vue/components/video' -export default video http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/packages/weex-vue-plugins/weex-vue-web/README.md -- diff --git a/packages/weex-vue-plugins/weex-vue-web/README.md b/packages/weex-vue-plugins/weex-vue-web/README.md deleted file mode 100644 index 847db62..000 --- a/packages/weex-vue-plugins/weex-vue-web/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# weex-vue-web - -Weex built-in 'web' component for Vue 2.x. http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/packages/weex-vue-plugins/weex-vue-web/package.json -- diff --git a/packages/weex-vue-plugins/weex-vue-web/package.json b/packages/weex-vue-plugins/weex-vue-web/package.json deleted file mode 100644 index 1373c55..000 --- a/packages/weex-vue-plugins/weex-vue-web/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "weex-vue-web", - "version": "0.1.2", - "description": "Weex built-in 'web' component for Vue 2.x.", - "license": "Apache-2.0", - "main": "dist/index.js", - "repository": { -"type": "git", -"url": "g...@github.com:apache/incubator-weex.git" - }, - "homepage": "http://weex.apache.org/;, - "bugs": { -"url": "https://issues.apache.org/jira/browse/WEEX/; - }, - "keywords": [ -"weex", -"vue", -"web", -"component", -"web" - ], - "peerDependencies": { -"weex-vue-render": "^0.12.0", -"vue-loader": "^12.0" - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/packages/weex-vue-plugins/weex-vue-web/src/index.js -- diff --git a/packages/weex-vue-plugins/weex-vue-web/src/index.js b/packages/weex-vue-plugins/weex-vue-web/src/index.js deleted file mode 100644 index e80e14c..000 --- a/packages/weex-vue-plugins/weex-vue-web/src/index.js +++ /dev/null @@ -1,2 +0,0 @@ -import web from '../../../../html5/render/vue/components/web' -export default web http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/packages/weex-vue-plugins/weex-vue-websocket/README.md -- diff --git a/packages/weex-vue-plugins/weex-vue-websocket/README.md b/packages/weex-vue-plugins/weex-vue-websocket/README.md deleted file mode 100644 index db3ca34..000 --- a/packages/weex-vue-plugins/weex-vue-websocket/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# weex-vue-websocket - -Weex built-in API module 'websocket' for Vue 2.x. http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/packages/weex-vue-plugins/weex-vue-websocket/package.json -- diff --git a/packages/weex-vue-plugins/weex-vue-websocket/package.json b/packages/weex-vue-plugins/weex-vue-websocket/package.json deleted file mode 100644 index 92d974e..000 --- a/packages/weex-vue-plugins/weex-vue-websocket/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "weex-vue-websocket", - "version": "0.1.2", - "description": "Weex built-in API module 'websocket' for Vue 2.x.", - "license": "Apache-2.0", - "main": "dist/index.js", - "repository": { -"type": "git", -"url":
[15/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/karma-coverage_vx.x.x.js -- diff --git a/flow-typed/npm/karma-coverage_vx.x.x.js b/flow-typed/npm/karma-coverage_vx.x.x.js deleted file mode 100644 index c042531..000 --- a/flow-typed/npm/karma-coverage_vx.x.x.js +++ /dev/null @@ -1,81 +0,0 @@ -// flow-typed signature: a3641137850fff0b7b41d98b95bfaca8 -// flow-typed version: <>/karma-coverage_v^1.1.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'karma-coverage' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'karma-coverage' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'karma-coverage/gruntfile' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/coverage-map' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/in-memory-report' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/index' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/preprocessor' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/reporter' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/source-cache-store' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/source-cache' { - declare module.exports: any; -} - -// Filename aliases -declare module 'karma-coverage/gruntfile.js' { - declare module.exports: $Exports<'karma-coverage/gruntfile'>; -} -declare module 'karma-coverage/lib/coverage-map.js' { - declare module.exports: $Exports<'karma-coverage/lib/coverage-map'>; -} -declare module 'karma-coverage/lib/in-memory-report.js' { - declare module.exports: $Exports<'karma-coverage/lib/in-memory-report'>; -} -declare module 'karma-coverage/lib/index.js' { - declare module.exports: $Exports<'karma-coverage/lib/index'>; -} -declare module 'karma-coverage/lib/preprocessor.js' { - declare module.exports: $Exports<'karma-coverage/lib/preprocessor'>; -} -declare module 'karma-coverage/lib/reporter.js' { - declare module.exports: $Exports<'karma-coverage/lib/reporter'>; -} -declare module 'karma-coverage/lib/source-cache-store.js' { - declare module.exports: $Exports<'karma-coverage/lib/source-cache-store'>; -} -declare module 'karma-coverage/lib/source-cache.js' { - declare module.exports: $Exports<'karma-coverage/lib/source-cache'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/karma-mocha-reporter_vx.x.x.js -- diff --git a/flow-typed/npm/karma-mocha-reporter_vx.x.x.js b/flow-typed/npm/karma-mocha-reporter_vx.x.x.js deleted file mode 100644 index 4838e3d..000 --- a/flow-typed/npm/karma-mocha-reporter_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: 3994e81f768a28c55ca2d39910be5c67 -// flow-typed version: <>/karma-mocha-reporter_v^2.2.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'karma-mocha-reporter' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'karma-mocha-reporter' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'karma-mocha-reporter/symbols' { - declare module.exports: any; -} - -// Filename aliases -declare module 'karma-mocha-reporter/index' { - declare module.exports: $Exports<'karma-mocha-reporter'>; -} -declare module 'karma-mocha-reporter/index.js' { - declare module.exports: $Exports<'karma-mocha-reporter'>; -} -declare module 'karma-mocha-reporter/symbols.js' { - declare module.exports: $Exports<'karma-mocha-reporter/symbols'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/karma-mocha_vx.x.x.js -- diff --git a/flow-typed/npm/karma-mocha_vx.x.x.js b/flow-typed/npm/karma-mocha_vx.x.x.js deleted file mode 100644 index b6b6d18..000 --- a/flow-typed/npm/karma-mocha_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: d3244e361f648af2e67f7835973cd3bb -// flow-typed version: <>/karma-mocha_v^1.3.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'karma-mocha' - * - *
[02/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/test/render/vue/utils/event.js -- diff --git a/html5/test/render/vue/utils/event.js b/html5/test/render/vue/utils/event.js deleted file mode 100644 index 406f359..000 --- a/html5/test/render/vue/utils/event.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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 * as event from '../../../../render/vue/utils/event' -describe('utils', function () { - describe('event', function () { -it('createEvent', () => { - const { -createEvent - } = event - const clickEvent = createEvent('', 'click') - expect(createEvent).to.be.a('function') - expect(clickEvent.type).to.be.equal('click') - expect(clickEvent.target).to.be.a('null') -}) -it('createBubblesEvent', () => { - const { -createBubblesEvent - } = event - const clickEvent = createBubblesEvent('', 'click') - expect(createBubblesEvent).to.be.a('function') - expect(clickEvent.type).to.be.equal('click') - expect(clickEvent.target).to.be.a('null') - expect(clickEvent.bubbles).to.be.true -}) -it('createCustomEvent', () => { - const { -createCustomEvent - } = event - const customEvent = createCustomEvent('', 'customEvent') - expect(createCustomEvent).to.be.a('function') - expect(customEvent.type).to.be.equal('customEvent') - expect(customEvent.target).to.be.a('null') -}) -it('dispatchEvent', (done) => { - const { -dispatchEvent - } = event - const node = document.createElement('div') - let expected - const shouldBe = 'test' - document.body.appendChild(node) - node.addEventListener('click', () => { -expected = shouldBe -document.body.removeChild(node) -expect(expected).to.be.equal(shouldBe) -done() - }) - const clickevent = document.createEvent('HTMLEvents') - clickevent.initEvent('click', false, true) - dispatchEvent(node, clickevent) - expected(dispatchEvent).to.be.a('function') -}) -it('mapFormEvents', () => { - const { -mapFormEvents - } = event - const context = { -$el: { - value: 'test' -}, -$emit: () => {} - } - const spy = sinon.spy(context, '$emit') - const map = mapFormEvents(context) - const events = { -value: '' - } - map.input(events) - expect(spy.callCount).to.equal(1) -}) - }) -}) http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/test/render/vue/utils/func.js -- diff --git a/html5/test/render/vue/utils/func.js b/html5/test/render/vue/utils/func.js deleted file mode 100644 index 57eb32f..000 --- a/html5/test/render/vue/utils/func.js +++ /dev/null @@ -1,303 +0,0 @@ -/* - * 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 * as utils from '../../../../render/vue/utils/func' -describe('utils', function () { - describe('function', function () { -before(() => { - this.clock = sinon.useFakeTimers() -}) -after(() => { - this.clock.restore() -}) -it('extend', () => { - const { -extend - } = utils - expect(extend).to.be.a('function') - const abc = { -
[20/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
[WEEX-181] rm web renderer codes and scripts (resolve #958) commit f8682e47664ef7a1c6ca3cd102ce0cef3a1dbe03 Author: MrRaindropDate: Tue Dec 26 13:35:17 2017 +0800 * [html5] rm web renderer codes and scripts. Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/ceef728d Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/ceef728d Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/ceef728d Branch: refs/heads/master Commit: ceef728d351e39283bb41e573591343923969049 Parents: 8c6690d Author: Hanks Authored: Thu Dec 28 13:25:56 2017 +0800 Committer: Hanks Committed: Thu Dec 28 13:25:56 2017 +0800 -- .wwprc | 40 - HOW-TO-BUILD.md | 31 +- POSSIBLE-NOTICES-FOR-BIN-DIST | 28 +- README.md | 62 +- SCRIPTS.md |3 +- build/build.js | 103 +- build/config.js | 85 +- build/karma.vue.conf.js | 112 - build/webpack.test.web.config.js| 99 - build/webpack.vue.config.js | 70 - entry.js| 11 - flow-typed/npm/animationjs_vx.x.x.js| 60 - flow-typed/npm/babel-core_vx.x.x.js | 227 - flow-typed/npm/babel-eslint_vx.x.x.js | 73 - flow-typed/npm/babel-istanbul_vx.x.x.js | 353 - flow-typed/npm/babel-loader_vx.x.x.js | 67 - flow-typed/npm/babel-plugin-coverage_vx.x.x.js | 32 - flow-typed/npm/babel-preset-es2015_vx.x.x.js| 32 - flow-typed/npm/babel-runtime_vx.x.x.js | 1691 flow-typed/npm/chai_v3.5.x.js | 212 - flow-typed/npm/chromedriver_vx.x.x.js | 46 - flow-typed/npm/core-js_vx.x.x.js| 9390 -- flow-typed/npm/cross-spawn_vx.x.x.js| 59 - flow-typed/npm/css-loader_vx.x.x.js | 87 - flow-typed/npm/cubicbezier_vx.x.x.js| 109 - flow-typed/npm/danger_vx.x.x.js | 284 - flow-typed/npm/envd_vx.x.x.js | 109 - flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js | 319 - flow-typed/npm/eslint_vx.x.x.js | 1978 flow-typed/npm/flow-bin_v0.x.x.js |6 - flow-typed/npm/fs-extra_vx.x.x.js | 221 - flow-typed/npm/http-server_vx.x.x.js| 39 - flow-typed/npm/httpurl_vx.x.x.js| 67 - flow-typed/npm/inline-style-prefixer_vx.x.x.js | 347 - flow-typed/npm/json-loader_vx.x.x.js| 33 - flow-typed/npm/karma-coverage_vx.x.x.js | 81 - flow-typed/npm/karma-mocha-reporter_vx.x.x.js | 38 - flow-typed/npm/karma-mocha_vx.x.x.js| 53 - .../npm/karma-phantomjs-launcher_vx.x.x.js | 59 - .../npm/karma-rollup-preprocessor_vx.x.x.js | 53 - flow-typed/npm/karma-sinon-chai_vx.x.x.js | 38 - flow-typed/npm/karma-sourcemap-loader_vx.x.x.js | 33 - flow-typed/npm/karma-webpack_vx.x.x.js | 45 - flow-typed/npm/karma_vx.x.x.js | 445 - flow-typed/npm/lazyimg_vx.x.x.js| 32 - flow-typed/npm/macaca-cli_vx.x.x.js | 123 - flow-typed/npm/macaca-utils_vx.x.x.js | 39 - flow-typed/npm/mocha_v2.4.x.js | 25 - flow-typed/npm/modals_vx.x.x.js | 81 - flow-typed/npm/nightwatch_vx.x.x.js | 633 -- flow-typed/npm/phantomjs-prebuilt_vx.x.x.js | 389 - flow-typed/npm/query-string_vx.x.x.js | 33 - flow-typed/npm/reify_vx.x.x.js | 95 - flow-typed/npm/rollup-plugin-buble_vx.x.x.js| 39 - flow-typed/npm/rollup-plugin-commonjs_vx.x.x.js | 81 - flow-typed/npm/rollup-plugin-eslint_vx.x.x.js | 39 - .../rollup-plugin-flow-no-whitespace_vx.x.x.js | 33 - flow-typed/npm/rollup-plugin-flow_vx.x.x.js | 33 - flow-typed/npm/rollup-plugin-json_vx.x.x.js | 46 - .../npm/rollup-plugin-node-resolve_vx.x.x.js| 53 - flow-typed/npm/rollup-plugin-postcss_vx.x.x.js | 38 - flow-typed/npm/rollup-plugin-replace_vx.x.x.js | 46 - flow-typed/npm/rollup-plugin-uglify_vx.x.x.js | 32 - flow-typed/npm/rollup-watch_vx.x.x.js | 67 - flow-typed/npm/rollup_vx.x.x.js | 46 - flow-typed/npm/scroll-to_vx.x.x.js | 33 - flow-typed/npm/selenium-server_vx.x.x.js| 39 - flow-typed/npm/semver_v5.1.x.js | 81 - flow-typed/npm/serve_vx.x.x.js | 18 - flow-typed/npm/sinon-chai_vx.x.x.js | 32 - flow-typed/npm/sinon_vx.x.x.js
[19/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/babel-runtime_vx.x.x.js -- diff --git a/flow-typed/npm/babel-runtime_vx.x.x.js b/flow-typed/npm/babel-runtime_vx.x.x.js deleted file mode 100644 index f2a20cd..000 --- a/flow-typed/npm/babel-runtime_vx.x.x.js +++ /dev/null @@ -1,1691 +0,0 @@ -// flow-typed signature: 6ad8552d1995b82ccd1c953fef0ba503 -// flow-typed version: <>/babel-runtime_v^6.11.6/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-runtime' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'babel-runtime' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'babel-runtime/core-js' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/concat' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/copy-within' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/entries' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/every' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/fill' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/filter' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/find-index' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/find' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/for-each' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/from' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/includes' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/index-of' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/join' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/keys' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/last-index-of' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/map' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/of' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/pop' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/push' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/reduce-right' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/reduce' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/reverse' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/shift' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/slice' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/some' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/sort' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/splice' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/unshift' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/values' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/asap' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/clear-immediate' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/error/is-error' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/get-iterator' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/is-iterable' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/json/stringify' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/map' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/acosh' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/asinh' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/atanh' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/cbrt' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/clz32' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/cosh' { - declare module.exports: any; -} -
[GitHub] incubator-weex pull request #958: [WEEX-181] rm web renderer codes and scrip...
Github user asfgit closed the pull request at: https://github.com/apache/incubator-weex/pull/958 ---
[17/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/cross-spawn_vx.x.x.js -- diff --git a/flow-typed/npm/cross-spawn_vx.x.x.js b/flow-typed/npm/cross-spawn_vx.x.x.js deleted file mode 100644 index 92ca2f1..000 --- a/flow-typed/npm/cross-spawn_vx.x.x.js +++ /dev/null @@ -1,59 +0,0 @@ -// flow-typed signature: 61abc04328de805c914647ba9f60e747 -// flow-typed version: <>/cross-spawn_v^4.0.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'cross-spawn' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'cross-spawn' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'cross-spawn/lib/enoent' { - declare module.exports: any; -} - -declare module 'cross-spawn/lib/hasBrokenSpawn' { - declare module.exports: any; -} - -declare module 'cross-spawn/lib/parse' { - declare module.exports: any; -} - -declare module 'cross-spawn/lib/resolveCommand' { - declare module.exports: any; -} - -// Filename aliases -declare module 'cross-spawn/index' { - declare module.exports: $Exports<'cross-spawn'>; -} -declare module 'cross-spawn/index.js' { - declare module.exports: $Exports<'cross-spawn'>; -} -declare module 'cross-spawn/lib/enoent.js' { - declare module.exports: $Exports<'cross-spawn/lib/enoent'>; -} -declare module 'cross-spawn/lib/hasBrokenSpawn.js' { - declare module.exports: $Exports<'cross-spawn/lib/hasBrokenSpawn'>; -} -declare module 'cross-spawn/lib/parse.js' { - declare module.exports: $Exports<'cross-spawn/lib/parse'>; -} -declare module 'cross-spawn/lib/resolveCommand.js' { - declare module.exports: $Exports<'cross-spawn/lib/resolveCommand'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/css-loader_vx.x.x.js -- diff --git a/flow-typed/npm/css-loader_vx.x.x.js b/flow-typed/npm/css-loader_vx.x.x.js deleted file mode 100644 index 8bb20bd..000 --- a/flow-typed/npm/css-loader_vx.x.x.js +++ /dev/null @@ -1,87 +0,0 @@ -// flow-typed signature: 3d15dceba7ae8991811d8fc44cdcd354 -// flow-typed version: <>/css-loader_v^0.26.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'css-loader' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'css-loader' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'css-loader/lib/compile-exports' { - declare module.exports: any; -} - -declare module 'css-loader/lib/css-base' { - declare module.exports: any; -} - -declare module 'css-loader/lib/getImportPrefix' { - declare module.exports: any; -} - -declare module 'css-loader/lib/getLocalIdent' { - declare module.exports: any; -} - -declare module 'css-loader/lib/loader' { - declare module.exports: any; -} - -declare module 'css-loader/lib/localsLoader' { - declare module.exports: any; -} - -declare module 'css-loader/lib/processCss' { - declare module.exports: any; -} - -declare module 'css-loader/locals' { - declare module.exports: any; -} - -// Filename aliases -declare module 'css-loader/index' { - declare module.exports: $Exports<'css-loader'>; -} -declare module 'css-loader/index.js' { - declare module.exports: $Exports<'css-loader'>; -} -declare module 'css-loader/lib/compile-exports.js' { - declare module.exports: $Exports<'css-loader/lib/compile-exports'>; -} -declare module 'css-loader/lib/css-base.js' { - declare module.exports: $Exports<'css-loader/lib/css-base'>; -} -declare module 'css-loader/lib/getImportPrefix.js' { - declare module.exports: $Exports<'css-loader/lib/getImportPrefix'>; -} -declare module 'css-loader/lib/getLocalIdent.js' { - declare module.exports: $Exports<'css-loader/lib/getLocalIdent'>; -} -declare module 'css-loader/lib/loader.js' { - declare module.exports: $Exports<'css-loader/lib/loader'>; -} -declare module 'css-loader/lib/localsLoader.js' { - declare module.exports: $Exports<'css-loader/lib/localsLoader'>; -} -declare module 'css-loader/lib/processCss.js' { - declare module.exports: $Exports<'css-loader/lib/processCss'>; -} -declare module 'css-loader/locals.js' { - declare module.exports: $Exports<'css-loader/locals'>; -}
[10/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/extend/components/richtext.js -- diff --git a/html5/render/browser/extend/components/richtext.js b/html5/render/browser/extend/components/richtext.js deleted file mode 100644 index cc3ce4f..000 --- a/html5/render/browser/extend/components/richtext.js +++ /dev/null @@ -1,113 +0,0 @@ -/* - * 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. - */ -'use strict' - -const displayMap = { - a: 'inline', - image: 'inline-block', - span: 'inline-block' -} - -const typeMap = { - a: 'a', - image: 'image', - span: 'text' -} - -let _richTextNodeRef = 0 -const getRichTextNodeRef = function () { - return `rtn-${_richTextNodeRef++}` -} - -function _isArray (arr) { - return Object.prototype.toString.call(arr).slice(8, -1) === 'Array' -} - -function _isPlainObject (obj) { - return Object.prototype.toString.call(obj).slice(8, -1) === 'Object' -} - -function _parse (parent, parentNode, value) { - if (_isArray(value)) { -return value.forEach((node) => _parse(parent, parentNode, node)) - } - if (_isPlainObject(value)) { -const { type, attr, style, children } = value -// don't pass children to componnent's own `createChildren` method. -// otherwise there's no chance to set children's display to `inline`. -delete value.children -const comp = parent.getComponentManager().createElement({ - type: typeMap[type], - ref: getRichTextNodeRef(), - attr, - style -}) -comp.node.style.display = displayMap[type] -parentNode.appendChild(comp.node) -if (_isArray(children)) { - children.forEach((child) => _parse(comp, comp.node, child)) -} - } -} - -const proto = { - create () { -const node = document.createElement('div') -node.classList.add('weex-element') -node.classList.add('weex-richtext') -return node - }, - - parse () { -Array.prototype.slice.call(this.node.children) - .forEach((child) => this.node.removeChild(child)) -if (!this.value) { - return -} -_parse(this, this.node, this.value) - } -} - -// updatable attributes -const attr = { - value (val) { -this.value = val -this.parse() - } -} - -function init (Weex) { - const Atomic = Weex.Atomic - const extend = Weex.utils.extend - - /** - * attrs: - * - value - */ - function RichText (data) { -Atomic.call(this, data) - } - RichText.prototype = Object.create(Atomic.prototype) - extend(RichText.prototype, proto) - extend(RichText.prototype, { attr }) - - Weex.registerComponent('richtext', RichText) -} - -export default { init } http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/extend/components/scrollable/index.js -- diff --git a/html5/render/browser/extend/components/scrollable/index.js b/html5/render/browser/extend/components/scrollable/index.js deleted file mode 100644 index 200c1c8..000 --- a/html5/render/browser/extend/components/scrollable/index.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ -'use strict' - -import list from './list' -import scroller from './scroller' -import refresh from './refresh' -import loading from './loading' - -export default { - init: function (Weex) { -Weex.install(list) -
[05/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/modules/animation.js -- diff --git a/html5/render/vue/modules/animation.js b/html5/render/vue/modules/animation.js deleted file mode 100644 index ce747c2..000 --- a/html5/render/vue/modules/animation.js +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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. - */ -const utils = {} -let endEvent -let styleName - -const EVENT_NAME_MAP = { - transition: 'transitionend', - WebkitTransition: 'webkitTransitionEnd', - MozTransition: 'mozTransitionEnd', - OTransition: 'oTransitionEnd', - msTransition: 'MSTransitionEnd' -} - -function detectEvents () { - const testEl = document.createElement('div') - const style = testEl.style - for (const name in EVENT_NAME_MAP) { -if (name in style) { - endEvent = EVENT_NAME_MAP[name] - styleName = name - break -} - } -} - -detectEvents() - -function transitionOnce (vnode, config, callback) { - const { -nextFrame, -toCSSText, -autoPrefix, -camelizeKeys, -normalizeStyle, -isArray - } = utils - - if (isArray(vnode)) { -if (process.env.NODE_ENV === 'development') { - console.warn('[vue-render] the ref passed to animation.transitionOnce is a array.') -} -vnode = vnode[0] - } - - const duration = config.duration || 0 // ms - const timing = config.timingFunction || 'linear' - const delay = config.delay || 0 // ms - - // TODO: parse transition properties - const transitionValue = `all ${duration}ms ${timing} ${delay}ms` - - const dom = vnode.$el - // trigger image lazyloading by force. - dom && weex.utils.fireLazyload(dom, true) - - const transitionEndHandler = function (event) { -event && event.stopPropagation() -if (endEvent) { - dom.removeEventListener(endEvent, transitionEndHandler) - dom.style[styleName] = '' -} -callback() - } - if (endEvent) { -dom.style[styleName] = transitionValue -dom.addEventListener(endEvent, transitionEndHandler) - } - nextFrame(() => { -dom.style.cssText - += toCSSText(autoPrefix(normalizeStyle(camelizeKeys(config.styles))) || {}) - }) -} - -const animation = { - /** - * transition - * @param {String} vnode - * @param {Object} config - * @param {String} callback - */ - transition (vnode, config, callback) { -if (!config.styles) { return } -return transitionOnce(vnode, config, () => { - callback && callback() -}) - } -} - -export default { - init (weex) { -const extendKeys = weex.utils.extendKeys -extendKeys(utils, weex.utils, [ - 'nextFrame', - 'toCSSText', - 'autoPrefix', - 'camelizeKeys', - 'normalizeStyle', - 'isArray' -]) - -weex.registerModule('animation', animation) - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/modules/dom.js -- diff --git a/html5/render/vue/modules/dom.js b/html5/render/vue/modules/dom.js deleted file mode 100644 index 797e774..000 --- a/html5/render/vue/modules/dom.js +++ /dev/null @@ -1,242 +0,0 @@ -/* - * 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 config from '../config' -const utils = {} - -function getParentScroller (vnode) { - if (!vnode) return null - const vm = vnode.$el - ? vnode :
[07/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/components/scrollable/loading.js -- diff --git a/html5/render/vue/components/scrollable/loading.js b/html5/render/vue/components/scrollable/loading.js deleted file mode 100644 index cd37151..000 --- a/html5/render/vue/components/scrollable/loading.js +++ /dev/null @@ -1,107 +0,0 @@ -/* - * 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. - */ - -function getLoading () { - const { extractComponentStyle } = weex - - return { -name: 'weex-loading', -props: { - display: { -type: String, -default: 'show', -validator (value) { - return ['show', 'hide'].indexOf(value) !== -1 -} - } -}, -data () { - return { -height: -1, -viewHeight: 0 - } -}, -mounted () { - this.viewHeight = this.$el.offsetHeight - if (this.display === 'hide') { -this.height = 0 - } - else { -this.height = this.viewHeight - } -}, -watch: { - height (val) { -this.$el.style.height = `${val}px` - }, - display (val) { -if (val === 'hide') { - this.height = 0 -} -else { - this.height = this.viewHeight -} - } -}, -methods: { - pulling (offsetY = 0) { -this.height = offsetY - }, - pullingUp (offsetY) { -this.$el.style.transition = `height 0s` -this.pulling(offsetY) - }, - pullingEnd () { -this.$el.style.transition = `height .2s` -if (this.height >= this.viewHeight) { - this.pulling(this.viewHeight) - this.$emit('loading') -} -else { - this.pulling(0) -} - }, - getChildren () { -const children = this.$slots.default || [] -if (this.display === 'show') { - return children -} -return children.filter(vnode => { - return vnode.componentOptions -&& vnode.componentOptions.tag !== 'loading-indicator' -}) - } -}, -render (createElement) { - this.$parent._loading = this - return createElement('aside', { -ref: 'loading', -attrs: { 'weex-type': 'loading' }, -staticClass: 'weex-loading weex-ct', -staticStyle: extractComponentStyle(this) - }, this.getChildren()) -} - } -} - -export default { - init (weex) { -weex.registerComponent('loading', getLoading(weex)) - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/components/scrollable/mixins/index.js -- diff --git a/html5/render/vue/components/scrollable/mixins/index.js b/html5/render/vue/components/scrollable/mixins/index.js deleted file mode 100644 index 560f958..000 --- a/html5/render/vue/components/scrollable/mixins/index.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 scrollable from './scrollable' -import list from './list' - -export { - scrollable, - list -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/vue/components/scrollable/mixins/list.js -- diff --git
[18/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/core-js_vx.x.x.js -- diff --git a/flow-typed/npm/core-js_vx.x.x.js b/flow-typed/npm/core-js_vx.x.x.js deleted file mode 100644 index 150c10b..000 --- a/flow-typed/npm/core-js_vx.x.x.js +++ /dev/null @@ -1,9390 +0,0 @@ -// flow-typed signature: daa8424f2304f99318c18d60d49ff641 -// flow-typed version: <>/core-js_v^2.4.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'core-js' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'core-js' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'core-js/build/config' { - declare module.exports: any; -} - -declare module 'core-js/build/index' { - declare module.exports: any; -} - -declare module 'core-js/client/core' { - declare module.exports: any; -} - -declare module 'core-js/client/core.min' { - declare module.exports: any; -} - -declare module 'core-js/client/library' { - declare module.exports: any; -} - -declare module 'core-js/client/library.min' { - declare module.exports: any; -} - -declare module 'core-js/client/shim' { - declare module.exports: any; -} - -declare module 'core-js/client/shim.min' { - declare module.exports: any; -} - -declare module 'core-js/core/_' { - declare module.exports: any; -} - -declare module 'core-js/core/delay' { - declare module.exports: any; -} - -declare module 'core-js/core/dict' { - declare module.exports: any; -} - -declare module 'core-js/core/function' { - declare module.exports: any; -} - -declare module 'core-js/core/index' { - declare module.exports: any; -} - -declare module 'core-js/core/number' { - declare module.exports: any; -} - -declare module 'core-js/core/object' { - declare module.exports: any; -} - -declare module 'core-js/core/regexp' { - declare module.exports: any; -} - -declare module 'core-js/core/string' { - declare module.exports: any; -} - -declare module 'core-js/es5/index' { - declare module.exports: any; -} - -declare module 'core-js/es6/array' { - declare module.exports: any; -} - -declare module 'core-js/es6/date' { - declare module.exports: any; -} - -declare module 'core-js/es6/function' { - declare module.exports: any; -} - -declare module 'core-js/es6/index' { - declare module.exports: any; -} - -declare module 'core-js/es6/map' { - declare module.exports: any; -} - -declare module 'core-js/es6/math' { - declare module.exports: any; -} - -declare module 'core-js/es6/number' { - declare module.exports: any; -} - -declare module 'core-js/es6/object' { - declare module.exports: any; -} - -declare module 'core-js/es6/parse-float' { - declare module.exports: any; -} - -declare module 'core-js/es6/parse-int' { - declare module.exports: any; -} - -declare module 'core-js/es6/promise' { - declare module.exports: any; -} - -declare module 'core-js/es6/reflect' { - declare module.exports: any; -} - -declare module 'core-js/es6/regexp' { - declare module.exports: any; -} - -declare module 'core-js/es6/set' { - declare module.exports: any; -} - -declare module 'core-js/es6/string' { - declare module.exports: any; -} - -declare module 'core-js/es6/symbol' { - declare module.exports: any; -} - -declare module 'core-js/es6/typed' { - declare module.exports: any; -} - -declare module 'core-js/es6/weak-map' { - declare module.exports: any; -} - -declare module 'core-js/es6/weak-set' { - declare module.exports: any; -} - -declare module 'core-js/es7/array' { - declare module.exports: any; -} - -declare module 'core-js/es7/asap' { - declare module.exports: any; -} - -declare module 'core-js/es7/error' { - declare module.exports: any; -} - -declare module 'core-js/es7/index' { - declare module.exports: any; -} - -declare module 'core-js/es7/map' { - declare module.exports: any; -} - -declare module 'core-js/es7/math' { - declare module.exports: any; -} - -declare module 'core-js/es7/object' { - declare module.exports: any; -} - -declare module 'core-js/es7/observable' { - declare module.exports: any; -} - -declare module 'core-js/es7/reflect' { - declare module.exports: any; -} - -declare module 'core-js/es7/set' { - declare module.exports: any; -} - -declare module 'core-js/es7/string' { - declare module.exports: any; -} - -declare module 'core-js/es7/symbol' { - declare module.exports: any; -} - -declare module 'core-js/es7/system' { - declare module.exports: any; -} - -declare module 'core-js/fn/_' { - declare module.exports: any; -} - -declare module 'core-js/fn/array/concat' { - declare module.exports: any;
[09/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/extend/components/slider/carrousel.js -- diff --git a/html5/render/browser/extend/components/slider/carrousel.js b/html5/render/browser/extend/components/slider/carrousel.js deleted file mode 100644 index 5b2a10b..000 --- a/html5/render/browser/extend/components/slider/carrousel.js +++ /dev/null @@ -1,455 +0,0 @@ -/* - * 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. - */ -/* eslint-disable */ - - -'use strict' - -// require('./gesture') -import 'cubicbezier' -import 'animationjs' -import './carrousel.css' - -var doc = window.document -var ua = window.navigator.userAgent -var Firefox = !!ua.match(/Firefox/i) -var IEMobile = !!ua.match(/IEMobile/i) -var cssPrefix = Firefox ? '-moz-' : IEMobile ? '-ms-' : '-webkit-' -var stylePrefix = Firefox ? 'Moz' : IEMobile ? 'ms' : 'webkit' - -import * as timer from './timer' -var setTimeout = timer.setTimeout -var clearTimeout = timer.clearTimeout - -function getTransformOffset(element) { - var offset = { x: 0, y: 0 } - var transform = getComputedStyle(element)[stylePrefix + 'Transform'] - var regMatrix3d = new RegExp('^matrix3d\\((?:[-\\d.]+,\\s*){12}([-\\d.]+),' -+ '\\s*([-\\d.]+)(?:,\\s*[-\\d.]+){2}\\)') - var regMatrix = /^matrix\((?:[-\d.]+,\s*){4}([-\d.]+),\s*([-\d.]+)\)$/ - var matched - - if (transform !== 'none') { -if ((matched = transform.match(regMatrix3d) - || transform.match(regMatrix))) { - offset.x = parseFloat(matched[1]) || 0 - offset.y = parseFloat(matched[2]) || 0 -} - } - - return offset -} - -var CSSMatrix = IEMobile ? 'MSCSSMatrix' : 'WebKitCSSMatrix' -var has3d = !!Firefox || CSSMatrix in window && 'm11' in new window[CSSMatrix]() -function getTranslate(x, y) { - x = parseFloat(x) - y = parseFloat(y) - - if (x != 0) { -x += 'px' - } - - if (y != 0) { -y += 'px' - } - - if (has3d) { -return 'translate3d(' + x + ', ' + y + ', 0)' - } - - return 'translate(' + x + ', ' + y + ')' -} - -var slice = Array.prototype.slice -function ArrayFrom(a) { - return slice.call(a) -} - -var incId = 0 -function Carrousel(element, options) { - var that = this - var views = [] - var pages = {} - var id = Date.now() + '-' + (++incId) - var root = document.createDocumentFragment() - - if (arguments.length === 1 && !(arguments[0] instanceof HTMLElement)) { -options = arguments[0] -element = null - } - - if (!element) { -element = document.createElement('ul') -root.appendChild(element) - } - options = options || {} - - element.setAttribute('data-ctrl-name', 'carrousel') - element.setAttribute('data-ctrl-id', id) - - function fireEvent(name, extra) { -var ev = doc.createEvent('HTMLEvents') -ev.initEvent(name, false, false) -if (extra) { - for (var key in extra) { -ev[key] = extra[key] - } -} -root.dispatchEvent(ev) - } - - element.style.position = 'relative' - element.style[stylePrefix + 'Transform'] = getTranslate(0, 0) - - var transformOffset = 0 - var items = {} - var itemLength = 0 - var itemStep = options.step || element.getBoundingClientRect().width - var itemIndex = 0 - - items.add = function (html) { -var li = document.createElement('li') -li.style.display = 'none' -li.style.float = 'left' -li.index = itemLength -if (typeof html === 'string') { - li.innerHTML = html -} else if (html instanceof HTMLElement) { - li.appendChild(html) -} -element.appendChild(li) - -Object.defineProperty(items, itemLength + '', { - get: function () { -return li - } -}) - -itemLength++ -return li - } - - function normalizeIndex(index) { -while (index < 0) { - index += itemLength -} - -while (index >= itemLength) { - index -= itemLength -} - -return index - } - - items.get = function (index) { -return items[normalizeIndex(index)] - } - - items.getCloned = function (index) { -var index = normalizeIndex(index) -var item = element.querySelector('[cloned="cloned-' + index + '"]') -var originalItem = items[index] - -//
[13/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/flow-typed/npm/webpack_vx.x.x.js -- diff --git a/flow-typed/npm/webpack_vx.x.x.js b/flow-typed/npm/webpack_vx.x.x.js deleted file mode 100644 index 3d12a68..000 --- a/flow-typed/npm/webpack_vx.x.x.js +++ /dev/null @@ -1,1523 +0,0 @@ -// flow-typed signature: 8e146dea52794d287a37416ec3386c72 -// flow-typed version: <>/webpack_v^1.13.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'webpack' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'webpack' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'webpack/bin/config-optimist' { - declare module.exports: any; -} - -declare module 'webpack/bin/convert-argv' { - declare module.exports: any; -} - -declare module 'webpack/bin/webpack' { - declare module.exports: any; -} - -declare module 'webpack/buildin/amd-define' { - declare module.exports: any; -} - -declare module 'webpack/buildin/amd-options' { - declare module.exports: any; -} - -declare module 'webpack/buildin/module' { - declare module.exports: any; -} - -declare module 'webpack/buildin/return-require' { - declare module.exports: any; -} - -declare module 'webpack/hot/dev-server' { - declare module.exports: any; -} - -declare module 'webpack/hot/log-apply-result' { - declare module.exports: any; -} - -declare module 'webpack/hot/only-dev-server' { - declare module.exports: any; -} - -declare module 'webpack/hot/poll' { - declare module.exports: any; -} - -declare module 'webpack/hot/signal' { - declare module.exports: any; -} - -declare module 'webpack/lib/AbstractPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/AmdMainTemplatePlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/APIPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/ArrayMap' { - declare module.exports: any; -} - -declare module 'webpack/lib/AsyncDependenciesBlock' { - declare module.exports: any; -} - -declare module 'webpack/lib/AutomaticPrefetchPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/BannerPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/BasicEvaluatedExpression' { - declare module.exports: any; -} - -declare module 'webpack/lib/CachePlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/CaseSensitiveModulesWarning' { - declare module.exports: any; -} - -declare module 'webpack/lib/Chunk' { - declare module.exports: any; -} - -declare module 'webpack/lib/ChunkRenderError' { - declare module.exports: any; -} - -declare module 'webpack/lib/ChunkTemplate' { - declare module.exports: any; -} - -declare module 'webpack/lib/CompatibilityPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/Compilation' { - declare module.exports: any; -} - -declare module 'webpack/lib/Compiler' { - declare module.exports: any; -} - -declare module 'webpack/lib/ConcatSource' { - declare module.exports: any; -} - -declare module 'webpack/lib/ConstPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/ContextModule' { - declare module.exports: any; -} - -declare module 'webpack/lib/ContextModuleFactory' { - declare module.exports: any; -} - -declare module 'webpack/lib/ContextReplacementPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/CriticalDependenciesWarning' { - declare module.exports: any; -} - -declare module 'webpack/lib/DefinePlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/DelegatedModule' { - declare module.exports: any; -} - -declare module 'webpack/lib/DelegatedModuleFactoryPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/DelegatedPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDDefineDependency' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDDefineDependencyParserPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDRequireArrayDependency' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDRequireContextDependency' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDRequireDependenciesBlock' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDRequireDependenciesBlockParserPlugin' { - declare
[11/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/extend/api/modal.js -- diff --git a/html5/render/browser/extend/api/modal.js b/html5/render/browser/extend/api/modal.js deleted file mode 100644 index 691174e..000 --- a/html5/render/browser/extend/api/modal.js +++ /dev/null @@ -1,89 +0,0 @@ -/* - * 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. - */ -'use strict' - -import modal from 'modals' - -const msg = { - - // duration: default is 0.8 seconds. - toast: function (config) { -modal.toast(config.message, config.duration) - }, - - // config: - // - message: string - // - okTitle: title of ok button - // - callback - alert: function (config, callbackId) { -const sender = this.sender -config.callback = function () { - sender.performCallback(callbackId) -} -modal.alert(config) - }, - - // config: - // - message: string - // - okTitle: title of ok button - // - cancelTitle: title of cancel button - // - callback - confirm: function (config, callbackId) { -const sender = this.sender -config.callback = function (val) { - sender.performCallback(callbackId, val) -} -modal.confirm(config) - }, - - // config: - // - message: string - // - okTitle: title of ok button - // - cancelTitle: title of cancel button - // - callback - prompt: function (config, callbackId) { -const sender = this.sender -config.callback = function (val) { - sender.performCallback(callbackId, val) -} -modal.prompt(config) - } -} - -const meta = { - modal: [{ -name: 'toast', -args: ['object'] - }, { -name: 'alert', -args: ['object', 'function'] - }, { -name: 'confirm', -args: ['object', 'function'] - }, { -name: 'prompt', -args: ['object', 'function'] - }] -} - -export default { - init: function (Weex) { -Weex.registerApiModule('modal', msg, meta) - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/extend/api/navigator.js -- diff --git a/html5/render/browser/extend/api/navigator.js b/html5/render/browser/extend/api/navigator.js deleted file mode 100644 index 8c16a4d..000 --- a/html5/render/browser/extend/api/navigator.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ -'use strict' - -const navigator = { - - // config - // - url: the url to push - // - animated: this configuration item is native only - // callback is not currently supported - push: function (config, callbackId) { -window.location.href = config.url -this.sender.performCallback(callbackId) - }, - - // config - // - animated: this configuration item is native only - // callback is note currently supported - pop: function (config, callbackId) { -window.history.back() -this.sender.performCallback(callbackId) - } - -} - -const meta = { - navigator: [{ -name: 'push', -args: ['object', 'function'] - }, { -name: 'pop', -args: ['object', 'function'] - }] -} - -export default { - init: function (Weex) { -Weex.registerApiModule('navigator', navigator, meta) - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/render/browser/extend/api/pageInfo.js
[03/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (resolve #958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/ceef728d/html5/test/render/vue/data/css/head8.css -- diff --git a/html5/test/render/vue/data/css/head8.css b/html5/test/render/vue/data/css/head8.css deleted file mode 100644 index 8f25208..000 --- a/html5/test/render/vue/data/css/head8.css +++ /dev/null @@ -1,507 +0,0 @@ -/*/*/ -.weex-root * { - border-width: 0; - border-color: inherit; - border-style: solid; -} - -.weex-ct { - box-sizing: border-box; - display: -webkit-box; - display: -webkit-flex; - display: flex; - position: relative; - -webkit-box-orient: vertical; - -webkit-flex-direction: column; - flex-direction: column; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - -webkit-flex-grow: 0; - -ms-flex-grow: 0; - flex-grow: 0; - -webkit-flex-basis: auto; - flex-basis: auto; - -webkit-box-align: stretch; - -webkit-align-items: stretch; - -ms-flex-align: stretch; - align-items: stretch; - -webkit-align-content: flex-start; - -ms-flex-line-pack: start; - align-content: flex-start; - border: 0 solid black; - margin: 0; - padding: 0; - min-width: 0; -} - -.weex-ct.horizontal { - -webkit-box-orient: horizontal; - -webkit-flex-direction: row; - flex-direction: row; -} - -.weex-el { - display: block; - box-sizing: border-box; - position: relative; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - -webkit-flex-grow: 0; - -ms-flex-grow: 0; - flex-grow: 0; - -webkit-flex-basis: auto; - flex-basis: auto; - border: 0 solid black; - margin: 0; - padding: 0; - min-width: 0; -} - -.weex-a { - text-decoration: none; -} - -body > .weex-div { - min-height: 100%; -} - -.weex-input, .weex-textarea { - font-size: 0.426667rem; -} -.weex-input:focus, .weex-textarea:focus { - outline: none; -} - -.weex-image, .weex-img { - background-repeat: no-repeat; - background-position: 50% 50%; -} - -.weex-toast { - font-size: 0.426667rem; - line-height: 0.426667rem; - position: fixed; - z-index: 19; - box-sizing: border-box; - max-width: 80%; - bottom: 50%; - left: 50%; - padding: 0.21rem; - background-color: #000; - color: #fff; - text-align: center; - opacity: 0.6; - -webkit-transition: all 0.4s ease-in-out; - transition: all 0.4s ease-in-out; - border-radius: 0.07rem; - -webkit-transform: translateX(-50%); - -ms-transform: translateX(-50%); - transform: translateX(-50%); - } - -.weex-toast.hide { - opacity: 0; -} - -.weex-alert .weex-alert-ok { - width: 100%; -} - -.weex-confirm .btn-group .btn { - float: left; - width: 50%; -} - -.weex-confirm .btn-group .btn.btn-ok { - border-right: 0.01rem solid #ddd; -} - -.weex-modal-wrap { - display: none; - position: fixed; - z-index: 9; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: #000; - opacity: 0.5; -} - -.weex-modal-node { - position: fixed; - z-index: 99; - top: 50%; - left: 50%; - width: 6.67rem; - min-height: 2.67rem; - border-radius: 0.07rem; - -webkit-transform: translate(-50%, -50%); - -ms-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - background-color: #fff; -} - -.weex-modal-node.hide { - display: none; -} - -.weex-modal-node .content { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - width: 100%; - min-height: 1.87rem; - box-sizing: border-box; - font-size: 0.426667rem; - line-height: 0.426667rem; - padding: 0.21rem; - border-bottom: 0.01rem solid #ddd; -} - -.weex-modal-node .btn-group { - width: 100%; - height: 0.8rem; - font-size: 0.37rem; - text-align: center; - margin: 0; - padding: 0; - border: none; -} - -.amfe-modal-node .btn-group .btn { - text-align: center; -} - -.weex-modal-node .btn-group .btn { - box-sizing: border-box; - height: 0.8rem; - line-height: 0.8rem; - margin: 0; - padding: 0; - border: none; - background: none; - text-align: center; -} - -.weex-prompt .input-wrap { - box-sizing: border-box; - width: 100%; - margin-top: 0.13rem; - height: 0.96rem; -} - -.weex-prompt .input-wrap .input { - box-sizing: border-box; - width: 100%; - height: 0.56rem; - line-height: 0.56rem; - font-size: 0.426667rem; - border: 0.01rem solid #999; -} - -.weex-prompt .btn-group .btn { - float: left; - width: 50%; -} - -.weex-prompt .btn-group .btn.btn-ok { - border-right: 0.01rem solid #ddd; -} - -body >
[11/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/extend/api/modal.js -- diff --git a/html5/render/browser/extend/api/modal.js b/html5/render/browser/extend/api/modal.js deleted file mode 100644 index 691174e..000 --- a/html5/render/browser/extend/api/modal.js +++ /dev/null @@ -1,89 +0,0 @@ -/* - * 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. - */ -'use strict' - -import modal from 'modals' - -const msg = { - - // duration: default is 0.8 seconds. - toast: function (config) { -modal.toast(config.message, config.duration) - }, - - // config: - // - message: string - // - okTitle: title of ok button - // - callback - alert: function (config, callbackId) { -const sender = this.sender -config.callback = function () { - sender.performCallback(callbackId) -} -modal.alert(config) - }, - - // config: - // - message: string - // - okTitle: title of ok button - // - cancelTitle: title of cancel button - // - callback - confirm: function (config, callbackId) { -const sender = this.sender -config.callback = function (val) { - sender.performCallback(callbackId, val) -} -modal.confirm(config) - }, - - // config: - // - message: string - // - okTitle: title of ok button - // - cancelTitle: title of cancel button - // - callback - prompt: function (config, callbackId) { -const sender = this.sender -config.callback = function (val) { - sender.performCallback(callbackId, val) -} -modal.prompt(config) - } -} - -const meta = { - modal: [{ -name: 'toast', -args: ['object'] - }, { -name: 'alert', -args: ['object', 'function'] - }, { -name: 'confirm', -args: ['object', 'function'] - }, { -name: 'prompt', -args: ['object', 'function'] - }] -} - -export default { - init: function (Weex) { -Weex.registerApiModule('modal', msg, meta) - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/extend/api/navigator.js -- diff --git a/html5/render/browser/extend/api/navigator.js b/html5/render/browser/extend/api/navigator.js deleted file mode 100644 index 8c16a4d..000 --- a/html5/render/browser/extend/api/navigator.js +++ /dev/null @@ -1,56 +0,0 @@ -/* - * 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. - */ -'use strict' - -const navigator = { - - // config - // - url: the url to push - // - animated: this configuration item is native only - // callback is not currently supported - push: function (config, callbackId) { -window.location.href = config.url -this.sender.performCallback(callbackId) - }, - - // config - // - animated: this configuration item is native only - // callback is note currently supported - pop: function (config, callbackId) { -window.history.back() -this.sender.performCallback(callbackId) - } - -} - -const meta = { - navigator: [{ -name: 'push', -args: ['object', 'function'] - }, { -name: 'pop', -args: ['object', 'function'] - }] -} - -export default { - init: function (Weex) { -Weex.registerApiModule('navigator', navigator, meta) - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/extend/api/pageInfo.js
[16/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/eslint_vx.x.x.js -- diff --git a/flow-typed/npm/eslint_vx.x.x.js b/flow-typed/npm/eslint_vx.x.x.js deleted file mode 100644 index ddc0c86..000 --- a/flow-typed/npm/eslint_vx.x.x.js +++ /dev/null @@ -1,1978 +0,0 @@ -// flow-typed signature: da6806e3fae70af833ecac5fcc52f0c1 -// flow-typed version: <>/eslint_v^2.11.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'eslint' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'eslint' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'eslint/bin/eslint' { - declare module.exports: any; -} - -declare module 'eslint/conf/cli-options' { - declare module.exports: any; -} - -declare module 'eslint/conf/environments' { - declare module.exports: any; -} - -declare module 'eslint/conf/eslint-all' { - declare module.exports: any; -} - -declare module 'eslint/lib/api' { - declare module.exports: any; -} - -declare module 'eslint/lib/ast-utils' { - declare module.exports: any; -} - -declare module 'eslint/lib/cli-engine' { - declare module.exports: any; -} - -declare module 'eslint/lib/cli' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/code-path-analyzer' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/code-path-segment' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/code-path-state' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/code-path' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/debug-helpers' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/fork-context' { - declare module.exports: any; -} - -declare module 'eslint/lib/code-path-analysis/id-generator' { - declare module.exports: any; -} - -declare module 'eslint/lib/config' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/autoconfig' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-file' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-initializer' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-ops' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-rule' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/config-validator' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/environments' { - declare module.exports: any; -} - -declare module 'eslint/lib/config/plugins' { - declare module.exports: any; -} - -declare module 'eslint/lib/eslint' { - declare module.exports: any; -} - -declare module 'eslint/lib/file-finder' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/checkstyle' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/compact' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/html' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/jslint-xml' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/json' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/junit' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/stylish' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/table' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/tap' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/unix' { - declare module.exports: any; -} - -declare module 'eslint/lib/formatters/visualstudio' { - declare module.exports: any; -} - -declare module 'eslint/lib/ignored-paths' { - declare module.exports: any; -} - -declare module 'eslint/lib/load-rules' { - declare module.exports: any; -} - -declare module 'eslint/lib/logging' { - declare module.exports: any; -} - -declare module 'eslint/lib/options' { - declare module.exports: any; -} - -declare module 'eslint/lib/rule-context' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/accessor-pairs' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/array-bracket-spacing' { - declare module.exports: any; -} - -declare module 'eslint/lib/rules/array-callback-return' { - declare module.exports: any; -} - -declare
[07/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/components/scrollable/loading.js -- diff --git a/html5/render/vue/components/scrollable/loading.js b/html5/render/vue/components/scrollable/loading.js deleted file mode 100644 index cd37151..000 --- a/html5/render/vue/components/scrollable/loading.js +++ /dev/null @@ -1,107 +0,0 @@ -/* - * 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. - */ - -function getLoading () { - const { extractComponentStyle } = weex - - return { -name: 'weex-loading', -props: { - display: { -type: String, -default: 'show', -validator (value) { - return ['show', 'hide'].indexOf(value) !== -1 -} - } -}, -data () { - return { -height: -1, -viewHeight: 0 - } -}, -mounted () { - this.viewHeight = this.$el.offsetHeight - if (this.display === 'hide') { -this.height = 0 - } - else { -this.height = this.viewHeight - } -}, -watch: { - height (val) { -this.$el.style.height = `${val}px` - }, - display (val) { -if (val === 'hide') { - this.height = 0 -} -else { - this.height = this.viewHeight -} - } -}, -methods: { - pulling (offsetY = 0) { -this.height = offsetY - }, - pullingUp (offsetY) { -this.$el.style.transition = `height 0s` -this.pulling(offsetY) - }, - pullingEnd () { -this.$el.style.transition = `height .2s` -if (this.height >= this.viewHeight) { - this.pulling(this.viewHeight) - this.$emit('loading') -} -else { - this.pulling(0) -} - }, - getChildren () { -const children = this.$slots.default || [] -if (this.display === 'show') { - return children -} -return children.filter(vnode => { - return vnode.componentOptions -&& vnode.componentOptions.tag !== 'loading-indicator' -}) - } -}, -render (createElement) { - this.$parent._loading = this - return createElement('aside', { -ref: 'loading', -attrs: { 'weex-type': 'loading' }, -staticClass: 'weex-loading weex-ct', -staticStyle: extractComponentStyle(this) - }, this.getChildren()) -} - } -} - -export default { - init (weex) { -weex.registerComponent('loading', getLoading(weex)) - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/components/scrollable/mixins/index.js -- diff --git a/html5/render/vue/components/scrollable/mixins/index.js b/html5/render/vue/components/scrollable/mixins/index.js deleted file mode 100644 index 560f958..000 --- a/html5/render/vue/components/scrollable/mixins/index.js +++ /dev/null @@ -1,26 +0,0 @@ -/* - * 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 scrollable from './scrollable' -import list from './list' - -export { - scrollable, - list -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/components/scrollable/mixins/list.js -- diff --git
[06/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/components/warning.js -- diff --git a/html5/render/vue/components/warning.js b/html5/render/vue/components/warning.js deleted file mode 100644 index 45f9737..000 --- a/html5/render/vue/components/warning.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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. - */ -export default { - render () { -// TODO: add tag nesting validation -if (process.env.NODE_ENV === 'development') { - const tag = this.$options._componentTag - const parentTag = this.$parent.$options._componentTag - console.warn(`[Vue Render] The <${tag}> can't be the child of <${parentTag}>.`) -} -return null - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/components/web.js -- diff --git a/html5/render/vue/components/web.js b/html5/render/vue/components/web.js deleted file mode 100644 index 906fb03..000 --- a/html5/render/vue/components/web.js +++ /dev/null @@ -1,91 +0,0 @@ -/* - * 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. - */ - -const _css = ` -.weex-web { - position: relative; - width: 100%; - height: 100%; - border: none; - box-sizing: border-box; -} -` - -function getWeb (weex) { - const { extractComponentStyle, createEventMap } = weex - const { createEvent } = weex.utils - - return { -name: 'weex-web', -props: { - src: String -}, -methods: { - // TODO: check cross-origin - goBack () { -if (this.$el) { - this.$el.contentWindow.history.back() -} - }, - goForward () { -if (this.$el) { - this.$el.contentWindow.history.forward() -} - }, - reload () { -if (this.$el) { - this.$el.contentWindow.history.reload() -} - } -}, - -mounted () { - if (this.$el) { -this.$emit('pagestart', createEvent(this.$el, 'pagestart', { url: this.src })) -this.$el.addEventListener('load', event => { - this.$emit('pagefinish', createEvent(this.$el, 'pagefinish', { url: this.src })) -}) - } -}, - -render (createElement) { - /* istanbul ignore next */ - // if (process.env.NODE_ENV === 'development') { - // validateStyles('web', this.$vnode.data && this.$vnode.data.staticStyle) - // } - return createElement('iframe', { -attrs: { - 'weex-type': 'web', - src: this.src -}, -on: createEventMap(this, ['error']), -staticClass: 'weex-web weex-el', -staticStyle: extractComponentStyle(this) - }) -}, -_css - } -} - -export default { - init (weex) { -weex.registerComponent('web', getWeb(weex)) - } -} - http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/config.js -- diff --git a/html5/render/vue/config.js b/html5/render/vue/config.js deleted file mode 100644 index bccf1e3..000 --- a/html5/render/vue/config.js +++ /dev/null @@ -1,29 +0,0 @@ -/* - * 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 - *
[05/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/modules/animation.js -- diff --git a/html5/render/vue/modules/animation.js b/html5/render/vue/modules/animation.js deleted file mode 100644 index ce747c2..000 --- a/html5/render/vue/modules/animation.js +++ /dev/null @@ -1,120 +0,0 @@ -/* - * 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. - */ -const utils = {} -let endEvent -let styleName - -const EVENT_NAME_MAP = { - transition: 'transitionend', - WebkitTransition: 'webkitTransitionEnd', - MozTransition: 'mozTransitionEnd', - OTransition: 'oTransitionEnd', - msTransition: 'MSTransitionEnd' -} - -function detectEvents () { - const testEl = document.createElement('div') - const style = testEl.style - for (const name in EVENT_NAME_MAP) { -if (name in style) { - endEvent = EVENT_NAME_MAP[name] - styleName = name - break -} - } -} - -detectEvents() - -function transitionOnce (vnode, config, callback) { - const { -nextFrame, -toCSSText, -autoPrefix, -camelizeKeys, -normalizeStyle, -isArray - } = utils - - if (isArray(vnode)) { -if (process.env.NODE_ENV === 'development') { - console.warn('[vue-render] the ref passed to animation.transitionOnce is a array.') -} -vnode = vnode[0] - } - - const duration = config.duration || 0 // ms - const timing = config.timingFunction || 'linear' - const delay = config.delay || 0 // ms - - // TODO: parse transition properties - const transitionValue = `all ${duration}ms ${timing} ${delay}ms` - - const dom = vnode.$el - // trigger image lazyloading by force. - dom && weex.utils.fireLazyload(dom, true) - - const transitionEndHandler = function (event) { -event && event.stopPropagation() -if (endEvent) { - dom.removeEventListener(endEvent, transitionEndHandler) - dom.style[styleName] = '' -} -callback() - } - if (endEvent) { -dom.style[styleName] = transitionValue -dom.addEventListener(endEvent, transitionEndHandler) - } - nextFrame(() => { -dom.style.cssText - += toCSSText(autoPrefix(normalizeStyle(camelizeKeys(config.styles))) || {}) - }) -} - -const animation = { - /** - * transition - * @param {String} vnode - * @param {Object} config - * @param {String} callback - */ - transition (vnode, config, callback) { -if (!config.styles) { return } -return transitionOnce(vnode, config, () => { - callback && callback() -}) - } -} - -export default { - init (weex) { -const extendKeys = weex.utils.extendKeys -extendKeys(utils, weex.utils, [ - 'nextFrame', - 'toCSSText', - 'autoPrefix', - 'camelizeKeys', - 'normalizeStyle', - 'isArray' -]) - -weex.registerModule('animation', animation) - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/modules/dom.js -- diff --git a/html5/render/vue/modules/dom.js b/html5/render/vue/modules/dom.js deleted file mode 100644 index 797e774..000 --- a/html5/render/vue/modules/dom.js +++ /dev/null @@ -1,242 +0,0 @@ -/* - * 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 config from '../config' -const utils = {} - -function getParentScroller (vnode) { - if (!vnode) return null - const vm = vnode.$el - ? vnode :
[02/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/test/render/vue/utils/event.js -- diff --git a/html5/test/render/vue/utils/event.js b/html5/test/render/vue/utils/event.js deleted file mode 100644 index 406f359..000 --- a/html5/test/render/vue/utils/event.js +++ /dev/null @@ -1,88 +0,0 @@ -/* - * 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 * as event from '../../../../render/vue/utils/event' -describe('utils', function () { - describe('event', function () { -it('createEvent', () => { - const { -createEvent - } = event - const clickEvent = createEvent('', 'click') - expect(createEvent).to.be.a('function') - expect(clickEvent.type).to.be.equal('click') - expect(clickEvent.target).to.be.a('null') -}) -it('createBubblesEvent', () => { - const { -createBubblesEvent - } = event - const clickEvent = createBubblesEvent('', 'click') - expect(createBubblesEvent).to.be.a('function') - expect(clickEvent.type).to.be.equal('click') - expect(clickEvent.target).to.be.a('null') - expect(clickEvent.bubbles).to.be.true -}) -it('createCustomEvent', () => { - const { -createCustomEvent - } = event - const customEvent = createCustomEvent('', 'customEvent') - expect(createCustomEvent).to.be.a('function') - expect(customEvent.type).to.be.equal('customEvent') - expect(customEvent.target).to.be.a('null') -}) -it('dispatchEvent', (done) => { - const { -dispatchEvent - } = event - const node = document.createElement('div') - let expected - const shouldBe = 'test' - document.body.appendChild(node) - node.addEventListener('click', () => { -expected = shouldBe -document.body.removeChild(node) -expect(expected).to.be.equal(shouldBe) -done() - }) - const clickevent = document.createEvent('HTMLEvents') - clickevent.initEvent('click', false, true) - dispatchEvent(node, clickevent) - expected(dispatchEvent).to.be.a('function') -}) -it('mapFormEvents', () => { - const { -mapFormEvents - } = event - const context = { -$el: { - value: 'test' -}, -$emit: () => {} - } - const spy = sinon.spy(context, '$emit') - const map = mapFormEvents(context) - const events = { -value: '' - } - map.input(events) - expect(spy.callCount).to.equal(1) -}) - }) -}) http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/test/render/vue/utils/func.js -- diff --git a/html5/test/render/vue/utils/func.js b/html5/test/render/vue/utils/func.js deleted file mode 100644 index 57eb32f..000 --- a/html5/test/render/vue/utils/func.js +++ /dev/null @@ -1,303 +0,0 @@ -/* - * 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 * as utils from '../../../../render/vue/utils/func' -describe('utils', function () { - describe('function', function () { -before(() => { - this.clock = sinon.useFakeTimers() -}) -after(() => { - this.clock.restore() -}) -it('extend', () => { - const { -extend - } = utils - expect(extend).to.be.a('function') - const abc = { -
[04/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/vue/utils/style.js -- diff --git a/html5/render/vue/utils/style.js b/html5/render/vue/utils/style.js deleted file mode 100644 index 5f823d7..000 --- a/html5/render/vue/utils/style.js +++ /dev/null @@ -1,370 +0,0 @@ -/* - * 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. - */ - -// @flow - -import { getViewportInfo } from '../env/viewport' -import addPrefix from 'inline-style-prefixer/static/index' - -const noUnitsNumberKeys = [ - 'flex', - 'opacity', - 'zIndex', - 'fontWeight', - 'lines' -] - -// whether to support using 0.5px to paint 1px width border. -let _supportHairlines: ?boolean -export function supportHairlines () { - if (typeof _supportHairlines === 'undefined') { -const dpr = window.devicePixelRatio -if (dpr && dpr >= 2 && document.documentElement) { - const docElm = document.documentElement - const testElm = document.createElement('div') - const fakeBody = document.createElement('body') - const beforeNode = docElm.firstElementChild || docElm.firstChild - testElm.style.border = '0.5px solid transparent' - fakeBody.appendChild(testElm) - docElm.insertBefore(fakeBody, beforeNode) - _supportHairlines = testElm.offsetHeight === 1 - docElm.removeChild(fakeBody) -} -else { - _supportHairlines = false -} - } - return _supportHairlines -} - -/** - * remove comments from a cssText. - */ -export function trimComment (cssText: string): string { - return cssText.replace(/(?:\/\*)[\s\S]*?\*\//g, '') -} - -let support: boolean | null = null - -export function supportSticky (): boolean { - if (support !== null) { -return support - } - const element = window.document.createElement('div') - const elementStyle = element.style - elementStyle.cssText = 'position:-webkit-sticky;position:sticky;' - support = elementStyle.position.indexOf('sticky') !== -1 - return support -} - -const regPercentage = /^[+-]?\d+(\.\d+)?%$/ -export function isPercentage (val: string) { - return regPercentage.test(val) -} - -const regUnitsNum = /^([+-]?\d+(?:\.\d+)?)([p,w]x)?$/ // support units: px, wx. -export function normalizeUnitsNum (val: string): string { - const match = val.match(regUnitsNum) - if (!match) { return '' } - let unit = 'px' // px by default. - if (match[2]) { -unit = match[2] - } - return parseScale(parseFloat(match[1]), unit) -} - -function getUnitScaleMap () { - const { scale } = getViewportInfo() - return { -px: scale, -wx: 1 // use px straight, not adaptable to screens. - } -} - -function limitScale (val, limit) { - limit = limit || 1 - const sign = val === 0 ? 0 : val > 0 ? 1 : -1 - let newVal = Math.abs(val) > limit ? val : sign * limit - // support 1px device width. - if (newVal === 1 && val < 1 && supportHairlines()) { -newVal = 0.5 - } - return newVal -} - -function parseScale (val: number, unit: string): string { - const unitScaleMap = getUnitScaleMap() - return limitScale(val * unitScaleMap[unit]) + 'px' -} - -export function normalizeString (styleKey: string, styleVal: string): string { - if (isPercentage(styleVal)) { -return styleVal - } - - /** - * 1. test if is a regular scale css. e.g. `width: 100px;` - * this should be a standalone number value with or without unit, otherwise - * it shouldn't be changed. - */ - const unitsNum = normalizeUnitsNum(styleVal) - if (unitsNum) { return unitsNum } - - /** - * 2. if a string contains multiple px values, than they should be all normalized. - * values should have wx or px units, otherwise they should be left unchanged. - * e.g. - *transform: translate(10px, 6px, 0) - *border: 2px solid red - */ - const numReg = /([+-]?[\d.]+)([p,w]x)/ig - if (numReg.test(styleVal)) { -const unitScaleMap = getUnitScaleMap() -const val = styleVal.replace(numReg, function (m, $0, $1) { - const res = parseFloat($0) * unitScaleMap[$1] - return limitScale(res) + 'px' -}) -return val - } - - // otherwise - return styleVal -} - -export function autoPrefix (style: {}): {} { - const
[01/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
Repository: incubator-weex Updated Branches: refs/heads/master 8c6690d59 -> 5b9aa2cad http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/packages/weex-vue-plugins/weex-vue-video/package.json -- diff --git a/packages/weex-vue-plugins/weex-vue-video/package.json b/packages/weex-vue-plugins/weex-vue-video/package.json deleted file mode 100644 index 6d8b5b1..000 --- a/packages/weex-vue-plugins/weex-vue-video/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "weex-vue-video", - "version": "0.1.2", - "description": "Weex built-in 'video' component for Vue 2.x.", - "license": "Apache-2.0", - "main": "dist/index.js", - "repository": { -"type": "git", -"url": "g...@github.com:apache/incubator-weex.git" - }, - "homepage": "http://weex.apache.org/;, - "bugs": { -"url": "https://issues.apache.org/jira/browse/WEEX/; - }, - "keywords": [ -"weex", -"vue", -"web", -"component", -"video" - ], - "peerDependencies": { -"weex-vue-render": "^0.12.0", -"vue-loader": "^12.0" - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/packages/weex-vue-plugins/weex-vue-video/src/index.js -- diff --git a/packages/weex-vue-plugins/weex-vue-video/src/index.js b/packages/weex-vue-plugins/weex-vue-video/src/index.js deleted file mode 100644 index 30eab90..000 --- a/packages/weex-vue-plugins/weex-vue-video/src/index.js +++ /dev/null @@ -1,2 +0,0 @@ -import video from '../../../../html5/render/vue/components/video' -export default video http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/packages/weex-vue-plugins/weex-vue-web/README.md -- diff --git a/packages/weex-vue-plugins/weex-vue-web/README.md b/packages/weex-vue-plugins/weex-vue-web/README.md deleted file mode 100644 index 847db62..000 --- a/packages/weex-vue-plugins/weex-vue-web/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# weex-vue-web - -Weex built-in 'web' component for Vue 2.x. http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/packages/weex-vue-plugins/weex-vue-web/package.json -- diff --git a/packages/weex-vue-plugins/weex-vue-web/package.json b/packages/weex-vue-plugins/weex-vue-web/package.json deleted file mode 100644 index 1373c55..000 --- a/packages/weex-vue-plugins/weex-vue-web/package.json +++ /dev/null @@ -1,26 +0,0 @@ -{ - "name": "weex-vue-web", - "version": "0.1.2", - "description": "Weex built-in 'web' component for Vue 2.x.", - "license": "Apache-2.0", - "main": "dist/index.js", - "repository": { -"type": "git", -"url": "g...@github.com:apache/incubator-weex.git" - }, - "homepage": "http://weex.apache.org/;, - "bugs": { -"url": "https://issues.apache.org/jira/browse/WEEX/; - }, - "keywords": [ -"weex", -"vue", -"web", -"component", -"web" - ], - "peerDependencies": { -"weex-vue-render": "^0.12.0", -"vue-loader": "^12.0" - } -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/packages/weex-vue-plugins/weex-vue-web/src/index.js -- diff --git a/packages/weex-vue-plugins/weex-vue-web/src/index.js b/packages/weex-vue-plugins/weex-vue-web/src/index.js deleted file mode 100644 index e80e14c..000 --- a/packages/weex-vue-plugins/weex-vue-web/src/index.js +++ /dev/null @@ -1,2 +0,0 @@ -import web from '../../../../html5/render/vue/components/web' -export default web http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/packages/weex-vue-plugins/weex-vue-websocket/README.md -- diff --git a/packages/weex-vue-plugins/weex-vue-websocket/README.md b/packages/weex-vue-plugins/weex-vue-websocket/README.md deleted file mode 100644 index db3ca34..000 --- a/packages/weex-vue-plugins/weex-vue-websocket/README.md +++ /dev/null @@ -1,3 +0,0 @@ -# weex-vue-websocket - -Weex built-in API module 'websocket' for Vue 2.x. http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/packages/weex-vue-plugins/weex-vue-websocket/package.json -- diff --git a/packages/weex-vue-plugins/weex-vue-websocket/package.json b/packages/weex-vue-plugins/weex-vue-websocket/package.json deleted file mode 100644 index 92d974e..000 --- a/packages/weex-vue-plugins/weex-vue-websocket/package.json +++ /dev/null @@ -1,27 +0,0 @@ -{ - "name": "weex-vue-websocket", - "version": "0.1.2", - "description": "Weex built-in API module 'websocket' for Vue 2.x.", - "license": "Apache-2.0", - "main": "dist/index.js", - "repository": { -"type": "git", -"url":
[14/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/rollup-plugin-json_vx.x.x.js -- diff --git a/flow-typed/npm/rollup-plugin-json_vx.x.x.js b/flow-typed/npm/rollup-plugin-json_vx.x.x.js deleted file mode 100644 index ffa9a45..000 --- a/flow-typed/npm/rollup-plugin-json_vx.x.x.js +++ /dev/null @@ -1,46 +0,0 @@ -// flow-typed signature: 68c51e9216afd9798d898289d7675b5a -// flow-typed version: <>/rollup-plugin-json_v^2.0.2/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'rollup-plugin-json' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'rollup-plugin-json' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'rollup-plugin-json/dist/rollup-plugin-json.cjs' { - declare module.exports: any; -} - -declare module 'rollup-plugin-json/dist/rollup-plugin-json.es' { - declare module.exports: any; -} - -declare module 'rollup-plugin-json/src/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'rollup-plugin-json/dist/rollup-plugin-json.cjs.js' { - declare module.exports: $Exports<'rollup-plugin-json/dist/rollup-plugin-json.cjs'>; -} -declare module 'rollup-plugin-json/dist/rollup-plugin-json.es.js' { - declare module.exports: $Exports<'rollup-plugin-json/dist/rollup-plugin-json.es'>; -} -declare module 'rollup-plugin-json/src/index.js' { - declare module.exports: $Exports<'rollup-plugin-json/src/index'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js -- diff --git a/flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js b/flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js deleted file mode 100644 index e439a72..000 --- a/flow-typed/npm/rollup-plugin-node-resolve_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: 77087eb25686219194e4dbba6f9cd202 -// flow-typed version: <>/rollup-plugin-node-resolve_v^2.0.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'rollup-plugin-node-resolve' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'rollup-plugin-node-resolve' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs' { - declare module.exports: any; -} - -declare module 'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es6' { - declare module.exports: any; -} - -declare module 'rollup-plugin-node-resolve/src/empty' { - declare module.exports: any; -} - -declare module 'rollup-plugin-node-resolve/src/index' { - declare module.exports: any; -} - -// Filename aliases -declare module 'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs.js' { - declare module.exports: $Exports<'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.cjs'>; -} -declare module 'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es6.js' { - declare module.exports: $Exports<'rollup-plugin-node-resolve/dist/rollup-plugin-node-resolve.es6'>; -} -declare module 'rollup-plugin-node-resolve/src/empty.js' { - declare module.exports: $Exports<'rollup-plugin-node-resolve/src/empty'>; -} -declare module 'rollup-plugin-node-resolve/src/index.js' { - declare module.exports: $Exports<'rollup-plugin-node-resolve/src/index'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/rollup-plugin-postcss_vx.x.x.js -- diff --git a/flow-typed/npm/rollup-plugin-postcss_vx.x.x.js b/flow-typed/npm/rollup-plugin-postcss_vx.x.x.js deleted file mode 100644 index 3ed88e1..000 --- a/flow-typed/npm/rollup-plugin-postcss_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: ffee129c2c2545168f37519a266d3609 -// flow-typed version: <>/rollup-plugin-postcss_v^0.2.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'rollup-plugin-postcss' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - *
[03/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/test/render/vue/data/css/head8.css -- diff --git a/html5/test/render/vue/data/css/head8.css b/html5/test/render/vue/data/css/head8.css deleted file mode 100644 index 8f25208..000 --- a/html5/test/render/vue/data/css/head8.css +++ /dev/null @@ -1,507 +0,0 @@ -/*/*/ -.weex-root * { - border-width: 0; - border-color: inherit; - border-style: solid; -} - -.weex-ct { - box-sizing: border-box; - display: -webkit-box; - display: -webkit-flex; - display: flex; - position: relative; - -webkit-box-orient: vertical; - -webkit-flex-direction: column; - flex-direction: column; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - -webkit-flex-grow: 0; - -ms-flex-grow: 0; - flex-grow: 0; - -webkit-flex-basis: auto; - flex-basis: auto; - -webkit-box-align: stretch; - -webkit-align-items: stretch; - -ms-flex-align: stretch; - align-items: stretch; - -webkit-align-content: flex-start; - -ms-flex-line-pack: start; - align-content: flex-start; - border: 0 solid black; - margin: 0; - padding: 0; - min-width: 0; -} - -.weex-ct.horizontal { - -webkit-box-orient: horizontal; - -webkit-flex-direction: row; - flex-direction: row; -} - -.weex-el { - display: block; - box-sizing: border-box; - position: relative; - -webkit-flex-shrink: 0; - -ms-flex-negative: 0; - flex-shrink: 0; - -webkit-flex-grow: 0; - -ms-flex-grow: 0; - flex-grow: 0; - -webkit-flex-basis: auto; - flex-basis: auto; - border: 0 solid black; - margin: 0; - padding: 0; - min-width: 0; -} - -.weex-a { - text-decoration: none; -} - -body > .weex-div { - min-height: 100%; -} - -.weex-input, .weex-textarea { - font-size: 0.426667rem; -} -.weex-input:focus, .weex-textarea:focus { - outline: none; -} - -.weex-image, .weex-img { - background-repeat: no-repeat; - background-position: 50% 50%; -} - -.weex-toast { - font-size: 0.426667rem; - line-height: 0.426667rem; - position: fixed; - z-index: 19; - box-sizing: border-box; - max-width: 80%; - bottom: 50%; - left: 50%; - padding: 0.21rem; - background-color: #000; - color: #fff; - text-align: center; - opacity: 0.6; - -webkit-transition: all 0.4s ease-in-out; - transition: all 0.4s ease-in-out; - border-radius: 0.07rem; - -webkit-transform: translateX(-50%); - -ms-transform: translateX(-50%); - transform: translateX(-50%); - } - -.weex-toast.hide { - opacity: 0; -} - -.weex-alert .weex-alert-ok { - width: 100%; -} - -.weex-confirm .btn-group .btn { - float: left; - width: 50%; -} - -.weex-confirm .btn-group .btn.btn-ok { - border-right: 0.01rem solid #ddd; -} - -.weex-modal-wrap { - display: none; - position: fixed; - z-index: 9; - top: 0; - left: 0; - width: 100%; - height: 100%; - background-color: #000; - opacity: 0.5; -} - -.weex-modal-node { - position: fixed; - z-index: 99; - top: 50%; - left: 50%; - width: 6.67rem; - min-height: 2.67rem; - border-radius: 0.07rem; - -webkit-transform: translate(-50%, -50%); - -ms-transform: translate(-50%, -50%); - transform: translate(-50%, -50%); - background-color: #fff; -} - -.weex-modal-node.hide { - display: none; -} - -.weex-modal-node .content { - display: -webkit-box; - display: -webkit-flex; - display: -ms-flexbox; - display: flex; - -webkit-box-orient: vertical; - -webkit-flex-direction: column; - -ms-flex-direction: column; - flex-direction: column; - -webkit-box-align: center; - -webkit-align-items: center; - -ms-flex-align: center; - align-items: center; - -webkit-box-pack: center; - -webkit-justify-content: center; - -ms-flex-pack: center; - justify-content: center; - width: 100%; - min-height: 1.87rem; - box-sizing: border-box; - font-size: 0.426667rem; - line-height: 0.426667rem; - padding: 0.21rem; - border-bottom: 0.01rem solid #ddd; -} - -.weex-modal-node .btn-group { - width: 100%; - height: 0.8rem; - font-size: 0.37rem; - text-align: center; - margin: 0; - padding: 0; - border: none; -} - -.amfe-modal-node .btn-group .btn { - text-align: center; -} - -.weex-modal-node .btn-group .btn { - box-sizing: border-box; - height: 0.8rem; - line-height: 0.8rem; - margin: 0; - padding: 0; - border: none; - background: none; - text-align: center; -} - -.weex-prompt .input-wrap { - box-sizing: border-box; - width: 100%; - margin-top: 0.13rem; - height: 0.96rem; -} - -.weex-prompt .input-wrap .input { - box-sizing: border-box; - width: 100%; - height: 0.56rem; - line-height: 0.56rem; - font-size: 0.426667rem; - border: 0.01rem solid #999; -} - -.weex-prompt .btn-group .btn { - float: left; - width: 50%; -} - -.weex-prompt .btn-group .btn.btn-ok { - border-right: 0.01rem solid #ddd; -} - -body >
[10/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/extend/components/richtext.js -- diff --git a/html5/render/browser/extend/components/richtext.js b/html5/render/browser/extend/components/richtext.js deleted file mode 100644 index cc3ce4f..000 --- a/html5/render/browser/extend/components/richtext.js +++ /dev/null @@ -1,113 +0,0 @@ -/* - * 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. - */ -'use strict' - -const displayMap = { - a: 'inline', - image: 'inline-block', - span: 'inline-block' -} - -const typeMap = { - a: 'a', - image: 'image', - span: 'text' -} - -let _richTextNodeRef = 0 -const getRichTextNodeRef = function () { - return `rtn-${_richTextNodeRef++}` -} - -function _isArray (arr) { - return Object.prototype.toString.call(arr).slice(8, -1) === 'Array' -} - -function _isPlainObject (obj) { - return Object.prototype.toString.call(obj).slice(8, -1) === 'Object' -} - -function _parse (parent, parentNode, value) { - if (_isArray(value)) { -return value.forEach((node) => _parse(parent, parentNode, node)) - } - if (_isPlainObject(value)) { -const { type, attr, style, children } = value -// don't pass children to componnent's own `createChildren` method. -// otherwise there's no chance to set children's display to `inline`. -delete value.children -const comp = parent.getComponentManager().createElement({ - type: typeMap[type], - ref: getRichTextNodeRef(), - attr, - style -}) -comp.node.style.display = displayMap[type] -parentNode.appendChild(comp.node) -if (_isArray(children)) { - children.forEach((child) => _parse(comp, comp.node, child)) -} - } -} - -const proto = { - create () { -const node = document.createElement('div') -node.classList.add('weex-element') -node.classList.add('weex-richtext') -return node - }, - - parse () { -Array.prototype.slice.call(this.node.children) - .forEach((child) => this.node.removeChild(child)) -if (!this.value) { - return -} -_parse(this, this.node, this.value) - } -} - -// updatable attributes -const attr = { - value (val) { -this.value = val -this.parse() - } -} - -function init (Weex) { - const Atomic = Weex.Atomic - const extend = Weex.utils.extend - - /** - * attrs: - * - value - */ - function RichText (data) { -Atomic.call(this, data) - } - RichText.prototype = Object.create(Atomic.prototype) - extend(RichText.prototype, proto) - extend(RichText.prototype, { attr }) - - Weex.registerComponent('richtext', RichText) -} - -export default { init } http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/extend/components/scrollable/index.js -- diff --git a/html5/render/browser/extend/components/scrollable/index.js b/html5/render/browser/extend/components/scrollable/index.js deleted file mode 100644 index 200c1c8..000 --- a/html5/render/browser/extend/components/scrollable/index.js +++ /dev/null @@ -1,37 +0,0 @@ -/* - * 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. - */ -'use strict' - -import list from './list' -import scroller from './scroller' -import refresh from './refresh' -import loading from './loading' - -export default { - init: function (Weex) { -Weex.install(list) -
[08/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/index.js -- diff --git a/html5/render/browser/index.js b/html5/render/browser/index.js deleted file mode 100644 index 305d76f..000 --- a/html5/render/browser/index.js +++ /dev/null @@ -1,40 +0,0 @@ -/* - * 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. - */ -'use strict' - -import Weex from './render/index' - -import root from './base/root' -import div from './base/div' -import droot from './base/droot' - -// install the extended apis and components. -import extensions from './extend' - -Weex.install(root) -Weex.install(div) -Weex.install(droot) - -Weex.install(extensions) - -global.registerComponents([ - { type: 'input', methods: ['focus', 'blur'] } -]) - -export default Weex http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/render/config.js -- diff --git a/html5/render/browser/render/config.js b/html5/render/browser/render/config.js deleted file mode 100644 index e407ef0..000 --- a/html5/render/browser/render/config.js +++ /dev/null @@ -1,30 +0,0 @@ -/* - * 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. - */ -'use strict' - -const config = { - weexVersion: '0.5.0', - debug: false, - validRoots: ['div', 'list', 'vlist', 'scroller'], - downgrade: { -// root: true - } -} - -export default config http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/render/gesture.js -- diff --git a/html5/render/browser/render/gesture.js b/html5/render/browser/render/gesture.js deleted file mode 100644 index 24ef581..000 --- a/html5/render/browser/render/gesture.js +++ /dev/null @@ -1,511 +0,0 @@ -/* - * 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. - */ -/* eslint-disable */ - -'use strict' - -var isInitialized = false - -// major events supported: -// panstart -// panmove -// panend -// swipe -// longpress -// extra events supported: -// dualtouchstart -// dualtouch -// dualtouchend -// tap -// doubletap -// pressend - -var doc = window.document -var docEl = doc.documentElement -var slice = Array.prototype.slice -var gestures = {} -var lastTap = null - -/** - * find the closest common ancestor - * if there's no one, return null - * - * @param {Element} el1 first element - * @param {Element} el2 second element - * @return {Element} common ancestor - */ -function getCommonAncestor(el1, el2) { - var el = el1 - while (el) { -if (el.contains(el2) || el
[13/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/webpack_vx.x.x.js -- diff --git a/flow-typed/npm/webpack_vx.x.x.js b/flow-typed/npm/webpack_vx.x.x.js deleted file mode 100644 index 3d12a68..000 --- a/flow-typed/npm/webpack_vx.x.x.js +++ /dev/null @@ -1,1523 +0,0 @@ -// flow-typed signature: 8e146dea52794d287a37416ec3386c72 -// flow-typed version: <>/webpack_v^1.13.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'webpack' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'webpack' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'webpack/bin/config-optimist' { - declare module.exports: any; -} - -declare module 'webpack/bin/convert-argv' { - declare module.exports: any; -} - -declare module 'webpack/bin/webpack' { - declare module.exports: any; -} - -declare module 'webpack/buildin/amd-define' { - declare module.exports: any; -} - -declare module 'webpack/buildin/amd-options' { - declare module.exports: any; -} - -declare module 'webpack/buildin/module' { - declare module.exports: any; -} - -declare module 'webpack/buildin/return-require' { - declare module.exports: any; -} - -declare module 'webpack/hot/dev-server' { - declare module.exports: any; -} - -declare module 'webpack/hot/log-apply-result' { - declare module.exports: any; -} - -declare module 'webpack/hot/only-dev-server' { - declare module.exports: any; -} - -declare module 'webpack/hot/poll' { - declare module.exports: any; -} - -declare module 'webpack/hot/signal' { - declare module.exports: any; -} - -declare module 'webpack/lib/AbstractPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/AmdMainTemplatePlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/APIPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/ArrayMap' { - declare module.exports: any; -} - -declare module 'webpack/lib/AsyncDependenciesBlock' { - declare module.exports: any; -} - -declare module 'webpack/lib/AutomaticPrefetchPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/BannerPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/BasicEvaluatedExpression' { - declare module.exports: any; -} - -declare module 'webpack/lib/CachePlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/CaseSensitiveModulesWarning' { - declare module.exports: any; -} - -declare module 'webpack/lib/Chunk' { - declare module.exports: any; -} - -declare module 'webpack/lib/ChunkRenderError' { - declare module.exports: any; -} - -declare module 'webpack/lib/ChunkTemplate' { - declare module.exports: any; -} - -declare module 'webpack/lib/CompatibilityPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/Compilation' { - declare module.exports: any; -} - -declare module 'webpack/lib/Compiler' { - declare module.exports: any; -} - -declare module 'webpack/lib/ConcatSource' { - declare module.exports: any; -} - -declare module 'webpack/lib/ConstPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/ContextModule' { - declare module.exports: any; -} - -declare module 'webpack/lib/ContextModuleFactory' { - declare module.exports: any; -} - -declare module 'webpack/lib/ContextReplacementPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/CriticalDependenciesWarning' { - declare module.exports: any; -} - -declare module 'webpack/lib/DefinePlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/DelegatedModule' { - declare module.exports: any; -} - -declare module 'webpack/lib/DelegatedModuleFactoryPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/DelegatedPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDDefineDependency' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDDefineDependencyParserPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDPlugin' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDRequireArrayDependency' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDRequireContextDependency' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDRequireDependenciesBlock' { - declare module.exports: any; -} - -declare module 'webpack/lib/dependencies/AMDRequireDependenciesBlockParserPlugin' { - declare
[12/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/base/component/lazyload.js -- diff --git a/html5/render/browser/base/component/lazyload.js b/html5/render/browser/base/component/lazyload.js deleted file mode 100644 index 05f4c70..000 --- a/html5/render/browser/base/component/lazyload.js +++ /dev/null @@ -1,86 +0,0 @@ -/* - * 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. - */ -/* global lib, HTMLElement */ - -'use strict' - -import 'lazyimg' - -let lazyloadTimer - -// fire lazyimg on images. -function fire () { - setTimeout(() => lib.img.fire(), 0) -} - -// we don't know when all images are appended -// just use setTimeout to do delay lazyload -// -// -- actually everytime we add a element or update styles, -// the component manager will call startIfNeed to fire -// lazyload once again in the handleAppend function. so there -// is no way that any image element can miss it. See source -// code in componentMangager.js. - -// just for the image component to start lazyload. -function startIfNeeded (target) { - if (!lazyloadTimer) { -lazyloadTimer = setTimeout(function () { - fire() - clearTimeout(lazyloadTimer) - lazyloadTimer = null -}, 16) - } -} - -// for a scope of element, not for a image. -function loadIfNeeded (elementScope) { - const notPreProcessed = elementScope.querySelectorAll('[img-src]') - // image elements which have attribute 'i-lazy-src' were elements - // that had been preprocessed by lib-img-core, but not loaded yet, and - // must be loaded when 'appear' events were fired. It turns out the - // 'appear' event was not fired correctly in the css-translate-transition - // situation, so 'i-lazy-src' must be checked and lazyload must be - // fired manually. - const preProcessed = elementScope.querySelectorAll('[i-lazy-src]') - if (notPreProcessed.length > 0 || preProcessed.length > 0) { -fire() - } -} - -export function makeImageLazy (image, src) { - image.removeAttribute('img-src') - image.removeAttribute('i-lazy-src') - image.removeAttribute('src') - image.setAttribute('img-src', src) - fire() -} - -export function fireLazyload (target) { - if (typeof target === 'object' && !(target instanceof HTMLElement)) { -target = target.node - } - if (!target) { -return - } - if (target.tagName.toLowerCase() === 'image') { -return startIfNeeded(target) - } - return loadIfNeeded(target) -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/html5/render/browser/base/component/operate.js -- diff --git a/html5/render/browser/base/component/operate.js b/html5/render/browser/base/component/operate.js deleted file mode 100644 index f73f4a3..000 --- a/html5/render/browser/base/component/operate.js +++ /dev/null @@ -1,311 +0,0 @@ -/* - * 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. - */ -'use strict' - -import { extend, camelToKebab } from '../../utils' -import { getFilters } from './valueFilter' - -let pseudoId = 0 -function getPseudoId () { - return '' + (pseudoId++) -} - -export function create (nodeType) { - return document.createElement(nodeType || 'div') -} - -export function createChildren () { - const children = this.data.children - const parentRef = this.data.ref - const componentManager = this.getComponentManager() - if (children
[18/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/core-js_vx.x.x.js -- diff --git a/flow-typed/npm/core-js_vx.x.x.js b/flow-typed/npm/core-js_vx.x.x.js deleted file mode 100644 index 150c10b..000 --- a/flow-typed/npm/core-js_vx.x.x.js +++ /dev/null @@ -1,9390 +0,0 @@ -// flow-typed signature: daa8424f2304f99318c18d60d49ff641 -// flow-typed version: <>/core-js_v^2.4.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'core-js' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'core-js' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'core-js/build/config' { - declare module.exports: any; -} - -declare module 'core-js/build/index' { - declare module.exports: any; -} - -declare module 'core-js/client/core' { - declare module.exports: any; -} - -declare module 'core-js/client/core.min' { - declare module.exports: any; -} - -declare module 'core-js/client/library' { - declare module.exports: any; -} - -declare module 'core-js/client/library.min' { - declare module.exports: any; -} - -declare module 'core-js/client/shim' { - declare module.exports: any; -} - -declare module 'core-js/client/shim.min' { - declare module.exports: any; -} - -declare module 'core-js/core/_' { - declare module.exports: any; -} - -declare module 'core-js/core/delay' { - declare module.exports: any; -} - -declare module 'core-js/core/dict' { - declare module.exports: any; -} - -declare module 'core-js/core/function' { - declare module.exports: any; -} - -declare module 'core-js/core/index' { - declare module.exports: any; -} - -declare module 'core-js/core/number' { - declare module.exports: any; -} - -declare module 'core-js/core/object' { - declare module.exports: any; -} - -declare module 'core-js/core/regexp' { - declare module.exports: any; -} - -declare module 'core-js/core/string' { - declare module.exports: any; -} - -declare module 'core-js/es5/index' { - declare module.exports: any; -} - -declare module 'core-js/es6/array' { - declare module.exports: any; -} - -declare module 'core-js/es6/date' { - declare module.exports: any; -} - -declare module 'core-js/es6/function' { - declare module.exports: any; -} - -declare module 'core-js/es6/index' { - declare module.exports: any; -} - -declare module 'core-js/es6/map' { - declare module.exports: any; -} - -declare module 'core-js/es6/math' { - declare module.exports: any; -} - -declare module 'core-js/es6/number' { - declare module.exports: any; -} - -declare module 'core-js/es6/object' { - declare module.exports: any; -} - -declare module 'core-js/es6/parse-float' { - declare module.exports: any; -} - -declare module 'core-js/es6/parse-int' { - declare module.exports: any; -} - -declare module 'core-js/es6/promise' { - declare module.exports: any; -} - -declare module 'core-js/es6/reflect' { - declare module.exports: any; -} - -declare module 'core-js/es6/regexp' { - declare module.exports: any; -} - -declare module 'core-js/es6/set' { - declare module.exports: any; -} - -declare module 'core-js/es6/string' { - declare module.exports: any; -} - -declare module 'core-js/es6/symbol' { - declare module.exports: any; -} - -declare module 'core-js/es6/typed' { - declare module.exports: any; -} - -declare module 'core-js/es6/weak-map' { - declare module.exports: any; -} - -declare module 'core-js/es6/weak-set' { - declare module.exports: any; -} - -declare module 'core-js/es7/array' { - declare module.exports: any; -} - -declare module 'core-js/es7/asap' { - declare module.exports: any; -} - -declare module 'core-js/es7/error' { - declare module.exports: any; -} - -declare module 'core-js/es7/index' { - declare module.exports: any; -} - -declare module 'core-js/es7/map' { - declare module.exports: any; -} - -declare module 'core-js/es7/math' { - declare module.exports: any; -} - -declare module 'core-js/es7/object' { - declare module.exports: any; -} - -declare module 'core-js/es7/observable' { - declare module.exports: any; -} - -declare module 'core-js/es7/reflect' { - declare module.exports: any; -} - -declare module 'core-js/es7/set' { - declare module.exports: any; -} - -declare module 'core-js/es7/string' { - declare module.exports: any; -} - -declare module 'core-js/es7/symbol' { - declare module.exports: any; -} - -declare module 'core-js/es7/system' { - declare module.exports: any; -} - -declare module 'core-js/fn/_' { - declare module.exports: any; -} - -declare module 'core-js/fn/array/concat' { - declare module.exports: any;
[17/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/cross-spawn_vx.x.x.js -- diff --git a/flow-typed/npm/cross-spawn_vx.x.x.js b/flow-typed/npm/cross-spawn_vx.x.x.js deleted file mode 100644 index 92ca2f1..000 --- a/flow-typed/npm/cross-spawn_vx.x.x.js +++ /dev/null @@ -1,59 +0,0 @@ -// flow-typed signature: 61abc04328de805c914647ba9f60e747 -// flow-typed version: <>/cross-spawn_v^4.0.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'cross-spawn' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'cross-spawn' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'cross-spawn/lib/enoent' { - declare module.exports: any; -} - -declare module 'cross-spawn/lib/hasBrokenSpawn' { - declare module.exports: any; -} - -declare module 'cross-spawn/lib/parse' { - declare module.exports: any; -} - -declare module 'cross-spawn/lib/resolveCommand' { - declare module.exports: any; -} - -// Filename aliases -declare module 'cross-spawn/index' { - declare module.exports: $Exports<'cross-spawn'>; -} -declare module 'cross-spawn/index.js' { - declare module.exports: $Exports<'cross-spawn'>; -} -declare module 'cross-spawn/lib/enoent.js' { - declare module.exports: $Exports<'cross-spawn/lib/enoent'>; -} -declare module 'cross-spawn/lib/hasBrokenSpawn.js' { - declare module.exports: $Exports<'cross-spawn/lib/hasBrokenSpawn'>; -} -declare module 'cross-spawn/lib/parse.js' { - declare module.exports: $Exports<'cross-spawn/lib/parse'>; -} -declare module 'cross-spawn/lib/resolveCommand.js' { - declare module.exports: $Exports<'cross-spawn/lib/resolveCommand'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/css-loader_vx.x.x.js -- diff --git a/flow-typed/npm/css-loader_vx.x.x.js b/flow-typed/npm/css-loader_vx.x.x.js deleted file mode 100644 index 8bb20bd..000 --- a/flow-typed/npm/css-loader_vx.x.x.js +++ /dev/null @@ -1,87 +0,0 @@ -// flow-typed signature: 3d15dceba7ae8991811d8fc44cdcd354 -// flow-typed version: <>/css-loader_v^0.26.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'css-loader' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'css-loader' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'css-loader/lib/compile-exports' { - declare module.exports: any; -} - -declare module 'css-loader/lib/css-base' { - declare module.exports: any; -} - -declare module 'css-loader/lib/getImportPrefix' { - declare module.exports: any; -} - -declare module 'css-loader/lib/getLocalIdent' { - declare module.exports: any; -} - -declare module 'css-loader/lib/loader' { - declare module.exports: any; -} - -declare module 'css-loader/lib/localsLoader' { - declare module.exports: any; -} - -declare module 'css-loader/lib/processCss' { - declare module.exports: any; -} - -declare module 'css-loader/locals' { - declare module.exports: any; -} - -// Filename aliases -declare module 'css-loader/index' { - declare module.exports: $Exports<'css-loader'>; -} -declare module 'css-loader/index.js' { - declare module.exports: $Exports<'css-loader'>; -} -declare module 'css-loader/lib/compile-exports.js' { - declare module.exports: $Exports<'css-loader/lib/compile-exports'>; -} -declare module 'css-loader/lib/css-base.js' { - declare module.exports: $Exports<'css-loader/lib/css-base'>; -} -declare module 'css-loader/lib/getImportPrefix.js' { - declare module.exports: $Exports<'css-loader/lib/getImportPrefix'>; -} -declare module 'css-loader/lib/getLocalIdent.js' { - declare module.exports: $Exports<'css-loader/lib/getLocalIdent'>; -} -declare module 'css-loader/lib/loader.js' { - declare module.exports: $Exports<'css-loader/lib/loader'>; -} -declare module 'css-loader/lib/localsLoader.js' { - declare module.exports: $Exports<'css-loader/lib/localsLoader'>; -} -declare module 'css-loader/lib/processCss.js' { - declare module.exports: $Exports<'css-loader/lib/processCss'>; -} -declare module 'css-loader/locals.js' { - declare module.exports: $Exports<'css-loader/locals'>; -}
[20/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
[WEEX-181] rm web renderer codes and scripts (#958) commit f8682e47664ef7a1c6ca3cd102ce0cef3a1dbe03 Author: MrRaindropDate: Tue Dec 26 13:35:17 2017 +0800 * [html5] rm web renderer codes and scripts. Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/5b9aa2ca Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/5b9aa2ca Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/5b9aa2ca Branch: refs/heads/master Commit: 5b9aa2cad493ab992ae44a1836b294a16936acc3 Parents: 8c6690d Author: Hanks Authored: Thu Dec 28 13:23:46 2017 +0800 Committer: Hanks Committed: Thu Dec 28 13:23:46 2017 +0800 -- .wwprc | 40 - HOW-TO-BUILD.md | 31 +- POSSIBLE-NOTICES-FOR-BIN-DIST | 28 +- README.md | 62 +- SCRIPTS.md |3 +- build/build.js | 103 +- build/config.js | 85 +- build/karma.vue.conf.js | 112 - build/webpack.test.web.config.js| 99 - build/webpack.vue.config.js | 70 - entry.js| 11 - flow-typed/npm/animationjs_vx.x.x.js| 60 - flow-typed/npm/babel-core_vx.x.x.js | 227 - flow-typed/npm/babel-eslint_vx.x.x.js | 73 - flow-typed/npm/babel-istanbul_vx.x.x.js | 353 - flow-typed/npm/babel-loader_vx.x.x.js | 67 - flow-typed/npm/babel-plugin-coverage_vx.x.x.js | 32 - flow-typed/npm/babel-preset-es2015_vx.x.x.js| 32 - flow-typed/npm/babel-runtime_vx.x.x.js | 1691 flow-typed/npm/chai_v3.5.x.js | 212 - flow-typed/npm/chromedriver_vx.x.x.js | 46 - flow-typed/npm/core-js_vx.x.x.js| 9390 -- flow-typed/npm/cross-spawn_vx.x.x.js| 59 - flow-typed/npm/css-loader_vx.x.x.js | 87 - flow-typed/npm/cubicbezier_vx.x.x.js| 109 - flow-typed/npm/danger_vx.x.x.js | 284 - flow-typed/npm/envd_vx.x.x.js | 109 - flow-typed/npm/eslint-plugin-flowtype_vx.x.x.js | 319 - flow-typed/npm/eslint_vx.x.x.js | 1978 flow-typed/npm/flow-bin_v0.x.x.js |6 - flow-typed/npm/fs-extra_vx.x.x.js | 221 - flow-typed/npm/http-server_vx.x.x.js| 39 - flow-typed/npm/httpurl_vx.x.x.js| 67 - flow-typed/npm/inline-style-prefixer_vx.x.x.js | 347 - flow-typed/npm/json-loader_vx.x.x.js| 33 - flow-typed/npm/karma-coverage_vx.x.x.js | 81 - flow-typed/npm/karma-mocha-reporter_vx.x.x.js | 38 - flow-typed/npm/karma-mocha_vx.x.x.js| 53 - .../npm/karma-phantomjs-launcher_vx.x.x.js | 59 - .../npm/karma-rollup-preprocessor_vx.x.x.js | 53 - flow-typed/npm/karma-sinon-chai_vx.x.x.js | 38 - flow-typed/npm/karma-sourcemap-loader_vx.x.x.js | 33 - flow-typed/npm/karma-webpack_vx.x.x.js | 45 - flow-typed/npm/karma_vx.x.x.js | 445 - flow-typed/npm/lazyimg_vx.x.x.js| 32 - flow-typed/npm/macaca-cli_vx.x.x.js | 123 - flow-typed/npm/macaca-utils_vx.x.x.js | 39 - flow-typed/npm/mocha_v2.4.x.js | 25 - flow-typed/npm/modals_vx.x.x.js | 81 - flow-typed/npm/nightwatch_vx.x.x.js | 633 -- flow-typed/npm/phantomjs-prebuilt_vx.x.x.js | 389 - flow-typed/npm/query-string_vx.x.x.js | 33 - flow-typed/npm/reify_vx.x.x.js | 95 - flow-typed/npm/rollup-plugin-buble_vx.x.x.js| 39 - flow-typed/npm/rollup-plugin-commonjs_vx.x.x.js | 81 - flow-typed/npm/rollup-plugin-eslint_vx.x.x.js | 39 - .../rollup-plugin-flow-no-whitespace_vx.x.x.js | 33 - flow-typed/npm/rollup-plugin-flow_vx.x.x.js | 33 - flow-typed/npm/rollup-plugin-json_vx.x.x.js | 46 - .../npm/rollup-plugin-node-resolve_vx.x.x.js| 53 - flow-typed/npm/rollup-plugin-postcss_vx.x.x.js | 38 - flow-typed/npm/rollup-plugin-replace_vx.x.x.js | 46 - flow-typed/npm/rollup-plugin-uglify_vx.x.x.js | 32 - flow-typed/npm/rollup-watch_vx.x.x.js | 67 - flow-typed/npm/rollup_vx.x.x.js | 46 - flow-typed/npm/scroll-to_vx.x.x.js | 33 - flow-typed/npm/selenium-server_vx.x.x.js| 39 - flow-typed/npm/semver_v5.1.x.js | 81 - flow-typed/npm/serve_vx.x.x.js | 18 - flow-typed/npm/sinon-chai_vx.x.x.js | 32 - flow-typed/npm/sinon_vx.x.x.js | 263
[19/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/babel-runtime_vx.x.x.js -- diff --git a/flow-typed/npm/babel-runtime_vx.x.x.js b/flow-typed/npm/babel-runtime_vx.x.x.js deleted file mode 100644 index f2a20cd..000 --- a/flow-typed/npm/babel-runtime_vx.x.x.js +++ /dev/null @@ -1,1691 +0,0 @@ -// flow-typed signature: 6ad8552d1995b82ccd1c953fef0ba503 -// flow-typed version: <>/babel-runtime_v^6.11.6/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'babel-runtime' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'babel-runtime' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'babel-runtime/core-js' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/concat' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/copy-within' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/entries' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/every' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/fill' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/filter' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/find-index' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/find' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/for-each' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/from' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/includes' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/index-of' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/join' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/keys' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/last-index-of' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/map' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/of' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/pop' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/push' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/reduce-right' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/reduce' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/reverse' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/shift' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/slice' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/some' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/sort' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/splice' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/unshift' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/array/values' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/asap' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/clear-immediate' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/error/is-error' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/get-iterator' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/is-iterable' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/json/stringify' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/map' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/acosh' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/asinh' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/atanh' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/cbrt' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/clz32' { - declare module.exports: any; -} - -declare module 'babel-runtime/core-js/math/cosh' { - declare module.exports: any; -} -
[15/20] incubator-weex git commit: [WEEX-181] rm web renderer codes and scripts (#958)
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/karma-coverage_vx.x.x.js -- diff --git a/flow-typed/npm/karma-coverage_vx.x.x.js b/flow-typed/npm/karma-coverage_vx.x.x.js deleted file mode 100644 index c042531..000 --- a/flow-typed/npm/karma-coverage_vx.x.x.js +++ /dev/null @@ -1,81 +0,0 @@ -// flow-typed signature: a3641137850fff0b7b41d98b95bfaca8 -// flow-typed version: <>/karma-coverage_v^1.1.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'karma-coverage' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'karma-coverage' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'karma-coverage/gruntfile' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/coverage-map' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/in-memory-report' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/index' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/preprocessor' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/reporter' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/source-cache-store' { - declare module.exports: any; -} - -declare module 'karma-coverage/lib/source-cache' { - declare module.exports: any; -} - -// Filename aliases -declare module 'karma-coverage/gruntfile.js' { - declare module.exports: $Exports<'karma-coverage/gruntfile'>; -} -declare module 'karma-coverage/lib/coverage-map.js' { - declare module.exports: $Exports<'karma-coverage/lib/coverage-map'>; -} -declare module 'karma-coverage/lib/in-memory-report.js' { - declare module.exports: $Exports<'karma-coverage/lib/in-memory-report'>; -} -declare module 'karma-coverage/lib/index.js' { - declare module.exports: $Exports<'karma-coverage/lib/index'>; -} -declare module 'karma-coverage/lib/preprocessor.js' { - declare module.exports: $Exports<'karma-coverage/lib/preprocessor'>; -} -declare module 'karma-coverage/lib/reporter.js' { - declare module.exports: $Exports<'karma-coverage/lib/reporter'>; -} -declare module 'karma-coverage/lib/source-cache-store.js' { - declare module.exports: $Exports<'karma-coverage/lib/source-cache-store'>; -} -declare module 'karma-coverage/lib/source-cache.js' { - declare module.exports: $Exports<'karma-coverage/lib/source-cache'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/karma-mocha-reporter_vx.x.x.js -- diff --git a/flow-typed/npm/karma-mocha-reporter_vx.x.x.js b/flow-typed/npm/karma-mocha-reporter_vx.x.x.js deleted file mode 100644 index 4838e3d..000 --- a/flow-typed/npm/karma-mocha-reporter_vx.x.x.js +++ /dev/null @@ -1,38 +0,0 @@ -// flow-typed signature: 3994e81f768a28c55ca2d39910be5c67 -// flow-typed version: <>/karma-mocha-reporter_v^2.2.1/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'karma-mocha-reporter' - * - * Fill this stub out by replacing all the `any` types. - * - * Once filled out, we encourage you to share your work with the - * community by sending a pull request to: - * https://github.com/flowtype/flow-typed - */ - -declare module 'karma-mocha-reporter' { - declare module.exports: any; -} - -/** - * We include stubs for each file inside this npm package in case you need to - * require those files directly. Feel free to delete any files that aren't - * needed. - */ -declare module 'karma-mocha-reporter/symbols' { - declare module.exports: any; -} - -// Filename aliases -declare module 'karma-mocha-reporter/index' { - declare module.exports: $Exports<'karma-mocha-reporter'>; -} -declare module 'karma-mocha-reporter/index.js' { - declare module.exports: $Exports<'karma-mocha-reporter'>; -} -declare module 'karma-mocha-reporter/symbols.js' { - declare module.exports: $Exports<'karma-mocha-reporter/symbols'>; -} http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/5b9aa2ca/flow-typed/npm/karma-mocha_vx.x.x.js -- diff --git a/flow-typed/npm/karma-mocha_vx.x.x.js b/flow-typed/npm/karma-mocha_vx.x.x.js deleted file mode 100644 index b6b6d18..000 --- a/flow-typed/npm/karma-mocha_vx.x.x.js +++ /dev/null @@ -1,53 +0,0 @@ -// flow-typed signature: d3244e361f648af2e67f7835973cd3bb -// flow-typed version: <>/karma-mocha_v^1.3.0/flow_v0.42.0 - -/** - * This is an autogenerated libdef stub for: - * - * 'karma-mocha' - * - *
[GitHub] incubator-weex issue #960: [jsfm] Enhance the multi-instance isolation (sand...
Github user Hanks10100 commented on the issue: https://github.com/apache/incubator-weex/pull/960 @yacheng @acton393 @yangshengtao Please take a review. ---
[GitHub] incubator-weex pull request #960: [jsfm] Enhance the multi-instance isolatio...
GitHub user Hanks10100 reopened a pull request: https://github.com/apache/incubator-weex/pull/960 [jsfm] Enhance the multi-instance isolation (sandbox) According to the discussion in the mailing list ([Use multi-context for Weex page](https://lists.apache.org/thread.html/87bf83253ed7ee318a8cf98d693bc534b3e08b4d28655a1290f2e0c7@%3Cdev.weex.apache.org%3E)), the current isolation strategy is vulnerable, distinguish the **"Global Context"** and the **"Instance Context"** is a more reasonable solution. In practice, **the logic of instance management and code execution will be moved from js framework to native render engines.** This PR implement a new `createInstanceContext` API instead of the former `createInstance` to create the instance context for each page. Refer to [this PR](https://github.com/vuejs/vue/pull/7272) to see the modification in the Vue.js framework. Rax doesn't support it yet. As for native render engines, they should also call `createInstanceContext` instead of `createInstance`, and parse the bundle type of the code (Vue or Rax) and then send it to js framework. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Hanks10100/incubator-weex jsfm-feature-sandbox Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-weex/pull/960.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #960 commit 7c40162445403df8f4f25e35dfa377cba24da217 Author: HanksDate: 2017-12-28T04:15:29Z * [jsfm] upgrade vue and rax upgrade weex-vue-framework to 2.5.11-weex.1 upgrade weex-rax-framework to 0.4.20 commit f8f8a15061e11710fe225b3376e5c584748f Author: Hanks Date: 2017-12-28T04:18:12Z * [jsfm] enhance the multi-instance isolation (sandbox) Use "createInstanceContext" instead of "createInstance". JS Framework only needs to prepare the instance context and no longer execute the js code. The js code will be executed by native. This *sandbox* feature requires native to cooperate to achieve. ---
[GitHub] incubator-weex pull request #960: [jsfm] Enhance the multi-instance isolatio...
Github user Hanks10100 closed the pull request at: https://github.com/apache/incubator-weex/pull/960 ---
[GitHub] incubator-weex issue #960: [jsfm] Enhance the multi-instance isolation (sand...
Github user weex-bot commented on the issue: https://github.com/apache/incubator-weex/pull/960 Warnings :warning: No Changelog changes! :warning: This PR should update related documents as well. Messages :book: danger test finished. Generated by :no_entry_sign: http://github.com/danger/danger-js/;>dangerJS ---
[GitHub] incubator-weex pull request #960: [jsfm] Enhance the multi-instance isolatio...
GitHub user Hanks10100 opened a pull request: https://github.com/apache/incubator-weex/pull/960 [jsfm] Enhance the multi-instance isolation (sandbox) According to the discussion in the mailing list ([Use multi-context for Weex page](https://lists.apache.org/thread.html/87bf83253ed7ee318a8cf98d693bc534b3e08b4d28655a1290f2e0c7@%3Cdev.weex.apache.org%3E)), the current isolation strategy is vulnerable, distinguish the **"Global Context"** and the **"Instance Context"** is a more reasonable solution. In practice, **the logic of instance management and code execution will be moved from js framework to native render engines.** This PR implement a new `createInstanceContext` API instead of the former `createInstance` to create the instance context for each page. Refer to [this PR](https://github.com/vuejs/vue/pull/7272) to see the modification in the Vue.js framework. Rax doesn't support it yet. As for native render engines, they should also call `createInstanceContext` instead of `createInstance`, and parse the bundle type of the code (Vue or Rax) and then send it to js framework. You can merge this pull request into a Git repository by running: $ git pull https://github.com/Hanks10100/incubator-weex jsfm-feature-sandbox Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-weex/pull/960.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #960 commit 7c40162445403df8f4f25e35dfa377cba24da217 Author: HanksDate: 2017-12-28T04:15:29Z * [jsfm] upgrade vue and rax upgrade weex-vue-framework to 2.5.11-weex.1 upgrade weex-rax-framework to 0.4.20 commit f8f8a15061e11710fe225b3376e5c584748f Author: Hanks Date: 2017-12-28T04:18:12Z * [jsfm] enhance the multi-instance isolation (sandbox) Use "createInstanceContext" instead of "createInstance". JS Framework only needs to prepare the instance context and no longer execute the js code. The js code will be executed by native. This *sandbox* feature requires native to cooperate to achieve. ---
[GitHub] incubator-weex pull request #958: [WEEX-181] rm web renderer codes and scrip...
Github user MrRaindrop closed the pull request at: https://github.com/apache/incubator-weex/pull/958 ---
[GitHub] incubator-weex pull request #958: [WEEX-181] rm web renderer codes and scrip...
GitHub user MrRaindrop reopened a pull request: https://github.com/apache/incubator-weex/pull/958 [WEEX-181] rm web renderer codes and scripts. clean main repo and move web renderer relative codes to [weexteam group](https://github.com/weexteam/weex-vue-render). You can merge this pull request into a Git repository by running: $ git pull https://github.com/MrRaindrop/incubator-weex html5-feature-remove Alternatively you can review and apply these changes as the patch at: https://github.com/apache/incubator-weex/pull/958.patch To close this pull request, make a commit to your master/trunk branch with (at least) the following in the commit message: This closes #958 commit f8682e47664ef7a1c6ca3cd102ce0cef3a1dbe03 Author: MrRaindropDate: 2017-12-26T05:35:17Z * [html5] rm web renderer codes and scripts. ---
[26/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/calculator.js -- diff --git a/android/playground/app/src/main/assets/showcase/calculator.js b/android/playground/app/src/main/assets/showcase/calculator.js deleted file mode 100644 index 33b2729..000 --- a/android/playground/app/src/main/assets/showcase/calculator.js +++ /dev/null @@ -1,2506 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(231) - var __weex_style__ = __webpack_require__(232) - var __weex_script__ = __webpack_require__(233) - - __weex_define__('@weex-component/603eadccfc85e9db6c45c597933fe8fe', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/603eadccfc85e9db6c45c597933fe8fe',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, -
[47/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/input-demo.js -- diff --git a/android/playground/app/src/main/assets/component/input-demo.js b/android/playground/app/src/main/assets/component/input-demo.js deleted file mode 100644 index f7ba9ec..000 --- a/android/playground/app/src/main/assets/component/input-demo.js +++ /dev/null @@ -1,2351 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "7433ba4d5d8f30fe6d5e3d9db6fb3cf5" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(94) - var __weex_style__ = __webpack_require__(95) - var __weex_script__ = __webpack_require__(96) - - __weex_define__('@weex-component/9b05297660bffdeefca2cb266249ee4d', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/9b05297660bffdeefca2cb266249ee4d',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module,
[51/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
- [example] remove legacy .we examples Remove source codes of .we examples, then rebuild the examples, replace the generated bundles in ios and android. Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8668b0f9 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8668b0f9 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8668b0f9 Branch: refs/heads/master Commit: 8668b0f9ee4c42407c69240542b80dda4729848f Parents: a45d51b Author: HanksAuthored: Fri Dec 22 15:40:06 2017 +0800 Committer: Hanks Committed: Fri Dec 22 15:40:06 2017 +0800 -- .../playground/app/src/main/assets/animation.js | 2295 - .../app/src/main/assets/component/a-demo.js | 2087 - .../src/main/assets/component/countdown-demo.js | 2288 - .../app/src/main/assets/component/image-demo.js | 2336 - .../app/src/main/assets/component/input-demo.js | 2351 - .../main/assets/component/list/list-basic.js| 319 - .../assets/component/list/list-demo-horizon.js | 1230 - .../src/main/assets/component/list/list-demo.js | 1231 - .../src/main/assets/component/marquee-demo.js | 2151 - .../src/main/assets/component/navigator-demo.js | 3054 -- .../main/assets/component/process-bar-demo.js | 2165 - .../src/main/assets/component/scroller-demo.js | 2326 - .../assets/component/slider-neighbor/index.js | 264 - .../slider-neighbor/slider-neighbor-item.js | 141 - .../slider-neighbor/slider-neighbor-page.js | 221 - .../src/main/assets/component/slider/index.js | 2748 -- .../main/assets/component/slider/slider-item.js | 126 - .../main/assets/component/slider/slider-page.js | 208 - .../main/assets/component/tabbar/tabbar-demo.js | 3030 -- .../main/assets/component/tabbar/tabbar-item.js | 157 - .../app/src/main/assets/component/text-demo.js | 2637 -- .../app/src/main/assets/component/video-demo.js | 2236 - .../app/src/main/assets/component/web-demo.js | 2286 - android/playground/app/src/main/assets/error.js | 2217 - .../app/src/main/assets/geolocation.js | 183 - android/playground/app/src/main/assets/hello.js |88 - .../playground/app/src/main/assets/iconfont.js | 184 - android/playground/app/src/main/assets/index.js | 3160 -- .../app/src/main/assets/linear-gradient.js | 367 - .../app/src/main/assets/module/clipboard.js | 2321 - .../app/src/main/assets/module/componentRect.js | 563 - .../app/src/main/assets/module/instance-api.js | 2225 - .../app/src/main/assets/module/modal.js | 2311 - .../app/src/main/assets/module/picker-demo.js | 2353 - .../app/src/main/assets/module/storage-demo.js | 2331 - .../app/src/main/assets/module/stream-demo.js | 2451 -- .../src/main/assets/module/websocket-demo.js| 2412 - .../app/src/main/assets/showcase/calculator.js | 2506 -- .../assets/showcase/dropdown/dropdown-demo.js | 638 - .../assets/showcase/dropdown/we-dropdown.js | 357 - .../app/src/main/assets/showcase/minesweeper.js | 345 - .../main/assets/showcase/new-fashion/banner.js | 116 - .../main/assets/showcase/new-fashion/banners.js | 235 - .../main/assets/showcase/new-fashion/brand.js | 359 - .../assets/showcase/new-fashion/category.js | 791 - .../main/assets/showcase/new-fashion/coupon.js | 209 - .../main/assets/showcase/new-fashion/fashion.js | 361 - .../main/assets/showcase/new-fashion/goods.js | 321 - .../assets/showcase/new-fashion/headlines.js| 479 - .../main/assets/showcase/new-fashion/index.js | 3139 -- .../main/assets/showcase/new-fashion/link.js| 109 - .../main/assets/showcase/new-fashion/main.js| 6051 --- .../main/assets/showcase/new-fashion/match.js | 273 - .../assets/showcase/new-fashion/resource.js | 333 - .../main/assets/showcase/new-fashion/scene.js | 506 - .../src/main/assets/showcase/pseudo-class.js| 2425 -- .../app/src/main/assets/showcase/ui.js | 2441 -- .../app/src/main/assets/style/index.js | 3496 -- .../app/src/main/assets/style/style-box.js | 2629 -- .../app/src/main/assets/style/style-flex.js | 2982 -- .../app/src/main/assets/style/style-item.js | 128 - .../app/src/main/assets/syntax/hello-world-1.js |77 - .../app/src/main/assets/syntax/hello-world-2.js |94 - .../app/src/main/assets/syntax/hello-world-3.js | 114 - .../app/src/main/assets/syntax/hello-world-4.js | 136 - .../app/src/main/assets/syntax/hello-world-5.js | 144 - .../app/src/main/assets/syntax/hello-world.js | 144 - .../app/src/main/assets/syntax/index.js | 3285 -- .../src/main/assets/syntax/script-component.js | 180 - .../app/src/main/assets/syntax/script-data.js | 165 - .../app/src/main/assets/syntax/script-events.js | 176 -
[50/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/a-demo.js -- diff --git a/android/playground/app/src/main/assets/component/a-demo.js b/android/playground/app/src/main/assets/component/a-demo.js deleted file mode 100644 index 56e085d..000 --- a/android/playground/app/src/main/assets/component/a-demo.js +++ /dev/null @@ -1,2087 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "bd7d951b8dffd3ab47133123e937e3a0" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(86) - var __weex_script__ = __webpack_require__(87) - - __weex_define__('@weex-component/c1a5ee0b8eec58d4b53a6bf8756f068b', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/c1a5ee0b8eec58d4b53a6bf8756f068b',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", -
[43/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/navigator-demo.js -- diff --git a/android/playground/app/src/main/assets/component/navigator-demo.js b/android/playground/app/src/main/assets/component/navigator-demo.js deleted file mode 100644 index 8c7e365..000 --- a/android/playground/app/src/main/assets/component/navigator-demo.js +++ /dev/null @@ -1,3054 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "992133479ab7de90b597406bf57d9e30" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(108) - var __weex_script__ = __webpack_require__(109) - - __weex_define__('@weex-component/b61c889e8b46c55f4d9373e71beced64', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/b61c889e8b46c55f4d9373e71beced64',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, -
[14/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/syntax/index.js -- diff --git a/android/playground/app/src/main/assets/syntax/index.js b/android/playground/app/src/main/assets/syntax/index.js deleted file mode 100644 index 18c01bf..000 --- a/android/playground/app/src/main/assets/syntax/index.js +++ /dev/null @@ -1,3285 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(328) - var __weex_script__ = __webpack_require__(329) - - __weex_define__('@weex-component/7c0aa0b76c7fe063e27065c721bee1a0', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/7c0aa0b76c7fe063e27065c721bee1a0',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", - "borderColor": "#33" - }, - "btn-default": { - "color": "rgb(51,51,51)" - }, -
[48/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/image-demo.js -- diff --git a/android/playground/app/src/main/assets/component/image-demo.js b/android/playground/app/src/main/assets/component/image-demo.js deleted file mode 100644 index fb15249..000 --- a/android/playground/app/src/main/assets/component/image-demo.js +++ /dev/null @@ -1,2336 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "e2de07c3eed6548e5195268fa9599669" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(91) - var __weex_style__ = __webpack_require__(92) - var __weex_script__ = __webpack_require__(93) - - __weex_define__('@weex-component/edbf120a9d73e4b4dc26be7677e984ea', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/edbf120a9d73e4b4dc26be7677e984ea',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module,
[49/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/countdown-demo.js -- diff --git a/android/playground/app/src/main/assets/component/countdown-demo.js b/android/playground/app/src/main/assets/component/countdown-demo.js deleted file mode 100644 index 434348c..000 --- a/android/playground/app/src/main/assets/component/countdown-demo.js +++ /dev/null @@ -1,2288 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "42bc563b62a414952e3bc04aace7897c" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(88) - var __weex_style__ = __webpack_require__(89) - var __weex_script__ = __webpack_require__(90) - - __weex_define__('@weex-component/d7fb6937f4dc3cd5e71cdd30037cf729', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/d7fb6937f4dc3cd5e71cdd30037cf729',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/
[35/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/error.js -- diff --git a/android/playground/app/src/main/assets/error.js b/android/playground/app/src/main/assets/error.js deleted file mode 100644 index 2b0ade1..000 --- a/android/playground/app/src/main/assets/error.js +++ /dev/null @@ -1,2217 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(185) - var __weex_script__ = __webpack_require__(186) - - __weex_define__('@weex-component/a62071d3ca8239528c69d72539119e08', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/a62071d3ca8239528c69d72539119e08',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", - "borderColor": "#33" - }, - "btn-default": { - "color": "rgb(51,51,51)" - }, - "btn-primary": { -
[52/52] incubator-weex git commit: [WEEX-90][example] remove legacy .we examples (#955)
[WEEX-90][example] remove legacy .we examples (#955) Project: http://git-wip-us.apache.org/repos/asf/incubator-weex/repo Commit: http://git-wip-us.apache.org/repos/asf/incubator-weex/commit/8c6690d5 Tree: http://git-wip-us.apache.org/repos/asf/incubator-weex/tree/8c6690d5 Diff: http://git-wip-us.apache.org/repos/asf/incubator-weex/diff/8c6690d5 Branch: refs/heads/master Commit: 8c6690d593dc0608c6dddb69f98ffa3e825a13a9 Parents: 07f80f8 8668b0f Author: HanksAuthored: Thu Dec 28 11:27:26 2017 +0800 Committer: Hanks Committed: Thu Dec 28 11:27:26 2017 +0800 -- .../playground/app/src/main/assets/animation.js | 2295 - .../app/src/main/assets/component/a-demo.js | 2087 - .../src/main/assets/component/countdown-demo.js | 2288 - .../app/src/main/assets/component/image-demo.js | 2336 - .../app/src/main/assets/component/input-demo.js | 2351 - .../main/assets/component/list/list-basic.js| 319 - .../assets/component/list/list-demo-horizon.js | 1230 - .../src/main/assets/component/list/list-demo.js | 1231 - .../src/main/assets/component/marquee-demo.js | 2151 - .../src/main/assets/component/navigator-demo.js | 3054 -- .../main/assets/component/process-bar-demo.js | 2165 - .../src/main/assets/component/scroller-demo.js | 2326 - .../assets/component/slider-neighbor/index.js | 264 - .../slider-neighbor/slider-neighbor-item.js | 141 - .../slider-neighbor/slider-neighbor-page.js | 221 - .../src/main/assets/component/slider/index.js | 2748 -- .../main/assets/component/slider/slider-item.js | 126 - .../main/assets/component/slider/slider-page.js | 208 - .../main/assets/component/tabbar/tabbar-demo.js | 3030 -- .../main/assets/component/tabbar/tabbar-item.js | 157 - .../app/src/main/assets/component/text-demo.js | 2637 -- .../app/src/main/assets/component/video-demo.js | 2236 - .../app/src/main/assets/component/web-demo.js | 2286 - android/playground/app/src/main/assets/error.js | 2217 - .../app/src/main/assets/geolocation.js | 183 - android/playground/app/src/main/assets/hello.js |88 - .../playground/app/src/main/assets/iconfont.js | 184 - android/playground/app/src/main/assets/index.js | 3160 -- .../app/src/main/assets/linear-gradient.js | 367 - .../app/src/main/assets/module/clipboard.js | 2321 - .../app/src/main/assets/module/componentRect.js | 563 - .../app/src/main/assets/module/instance-api.js | 2225 - .../app/src/main/assets/module/modal.js | 2311 - .../app/src/main/assets/module/picker-demo.js | 2353 - .../app/src/main/assets/module/storage-demo.js | 2331 - .../app/src/main/assets/module/stream-demo.js | 2451 -- .../src/main/assets/module/websocket-demo.js| 2412 - .../app/src/main/assets/showcase/calculator.js | 2506 -- .../assets/showcase/dropdown/dropdown-demo.js | 638 - .../assets/showcase/dropdown/we-dropdown.js | 357 - .../app/src/main/assets/showcase/minesweeper.js | 345 - .../main/assets/showcase/new-fashion/banner.js | 116 - .../main/assets/showcase/new-fashion/banners.js | 235 - .../main/assets/showcase/new-fashion/brand.js | 359 - .../assets/showcase/new-fashion/category.js | 791 - .../main/assets/showcase/new-fashion/coupon.js | 209 - .../main/assets/showcase/new-fashion/fashion.js | 361 - .../main/assets/showcase/new-fashion/goods.js | 321 - .../assets/showcase/new-fashion/headlines.js| 479 - .../main/assets/showcase/new-fashion/index.js | 3139 -- .../main/assets/showcase/new-fashion/link.js| 109 - .../main/assets/showcase/new-fashion/main.js| 6051 --- .../main/assets/showcase/new-fashion/match.js | 273 - .../assets/showcase/new-fashion/resource.js | 333 - .../main/assets/showcase/new-fashion/scene.js | 506 - .../src/main/assets/showcase/pseudo-class.js| 2425 -- .../app/src/main/assets/showcase/ui.js | 2441 -- .../app/src/main/assets/style/index.js | 3496 -- .../app/src/main/assets/style/style-box.js | 2629 -- .../app/src/main/assets/style/style-flex.js | 2982 -- .../app/src/main/assets/style/style-item.js | 128 - .../app/src/main/assets/syntax/hello-world-1.js |77 - .../app/src/main/assets/syntax/hello-world-2.js |94 - .../app/src/main/assets/syntax/hello-world-3.js | 114 - .../app/src/main/assets/syntax/hello-world-4.js | 136 - .../app/src/main/assets/syntax/hello-world-5.js | 144 - .../app/src/main/assets/syntax/hello-world.js | 144 - .../app/src/main/assets/syntax/index.js | 3285 -- .../src/main/assets/syntax/script-component.js | 180 - .../app/src/main/assets/syntax/script-data.js | 165 - .../app/src/main/assets/syntax/script-events.js | 176 - .../src/main/assets/syntax/script-instance.js | 145 - .../src/main/assets/syntax/script-lifecycle.js |
[09/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/components/input.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/components/input.js b/android/playground/app/src/main/assets/vue-web/vue/components/input.js new file mode 100644 index 000..7a08db8 --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/components/input.js @@ -0,0 +1,1283 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(43) + App.el = '#root' + new Vue(App) + + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); + } + } +
[40/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/slider/index.js -- diff --git a/android/playground/app/src/main/assets/component/slider/index.js b/android/playground/app/src/main/assets/component/slider/index.js deleted file mode 100644 index 3dd51b6..000 --- a/android/playground/app/src/main/assets/component/slider/index.js +++ /dev/null @@ -1,2748 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "c856213bf680d7edaca1e292bf1c353e" - * } - !*/ -/**/ (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__) { - - __webpack_require__(160) - var __weex_template__ = __webpack_require__(168) - var __weex_style__ = __webpack_require__(169) - var __weex_script__ = __webpack_require__(170) - - __weex_define__('@weex-component/0f29733e34d42a0cdfe7b98eb53bff4c', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/0f29733e34d42a0cdfe7b98eb53bff4c',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } -
[38/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/text-demo.js -- diff --git a/android/playground/app/src/main/assets/component/text-demo.js b/android/playground/app/src/main/assets/component/text-demo.js deleted file mode 100644 index 6fb0fab..000 --- a/android/playground/app/src/main/assets/component/text-demo.js +++ /dev/null @@ -1,2637 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "7a417d023cb6eb6ea5079386a155fec5" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(176) - var __weex_style__ = __webpack_require__(177) - var __weex_script__ = __webpack_require__(178) - - __weex_define__('@weex-component/c0ea4ed580d5c38f82bd25b5602f26fe', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/c0ea4ed580d5c38f82bd25b5602f26fe',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module,
[20/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/pseudo-class.js -- diff --git a/android/playground/app/src/main/assets/showcase/pseudo-class.js b/android/playground/app/src/main/assets/showcase/pseudo-class.js deleted file mode 100644 index 59a8b52..000 --- a/android/playground/app/src/main/assets/showcase/pseudo-class.js +++ /dev/null @@ -1,2425 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(294) - var __weex_style__ = __webpack_require__(295) - var __weex_script__ = __webpack_require__(296) - - __weex_define__('@weex-component/07aaf1221ad656e37ebe37291f40d193', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/07aaf1221ad656e37ebe37291f40d193',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, -
[46/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/list/list-demo-horizon.js -- diff --git a/android/playground/app/src/main/assets/component/list/list-demo-horizon.js b/android/playground/app/src/main/assets/component/list/list-demo-horizon.js deleted file mode 100644 index db9b80f..000 --- a/android/playground/app/src/main/assets/component/list/list-demo-horizon.js +++ /dev/null @@ -1,1230 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "0fe05660e286b278d48fbe62da79bf4e" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(103) - var __weex_style__ = __webpack_require__(104) - var __weex_script__ = __webpack_require__(105) - - __weex_define__('@weex-component/a089a89d3221f94935162af3aa4db1af', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/a089a89d3221f94935162af3aa4db1af',undefined,undefined) - -/***/ }, - -/***/ 103: -/***/ function(module, exports) { - - module.exports = { - "type": "scroller", - "children": [ - { - "type": "div", - "classList": [ - "block" - ], - "children": [ - { - "type": "text", - "attr": { - "value": "Horizontal list" - } - } - ] - }, - { - "type": "hlist", - "classList": [ - "list" - ], - "events": { - "loadmore": "loadmore" - }, - "attr": { - "loadmoreoffset": "2000", - "transform": "opacity(0.8);translate(100,0);rotate(80);" - }, - "children": [ - { - "type": "cell", - "append": "tree", - "classList": [ - "cell" - ], - "events": { - "click": "oncellclick" - }, - "attr": { - "rownumber": function () {return this.id}, - "scope": function () {return this.scopeValue}, - "composite": function () {return this.composite} - }, - "repeat": function () {return this.shopList}, - "children": [ - { - "type": "div", - "classList": [ - "shopDiv" - ], - "children": [ - { - "type": "div", -
[23/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/index.js -- diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/index.js b/android/playground/app/src/main/assets/showcase/new-fashion/index.js deleted file mode 100644 index cfe73f4..000 --- a/android/playground/app/src/main/assets/showcase/new-fashion/index.js +++ /dev/null @@ -1,3139 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(271) - var __weex_style__ = __webpack_require__(272) - var __weex_script__ = __webpack_require__(273) - - __weex_define__('@weex-component/5e0e45b25bc002a471e5967e4452d911', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/5e0e45b25bc002a471e5967e4452d911',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", -
[27/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/module/websocket-demo.js -- diff --git a/android/playground/app/src/main/assets/module/websocket-demo.js b/android/playground/app/src/main/assets/module/websocket-demo.js deleted file mode 100644 index 00a7fbb..000 --- a/android/playground/app/src/main/assets/module/websocket-demo.js +++ /dev/null @@ -1,2412 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(228) - var __weex_style__ = __webpack_require__(229) - var __weex_script__ = __webpack_require__(230) - - __weex_define__('@weex-component/f1edaa994f4c5a505cfb7f32ca9ee569', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/f1edaa994f4c5a505cfb7f32ca9ee569',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, -
[31/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/module/modal.js -- diff --git a/android/playground/app/src/main/assets/module/modal.js b/android/playground/app/src/main/assets/module/modal.js deleted file mode 100644 index a98d0d0..000 --- a/android/playground/app/src/main/assets/module/modal.js +++ /dev/null @@ -1,2311 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(218) - var __weex_style__ = __webpack_require__(219) - var __weex_script__ = __webpack_require__(220) - - __weex_define__('@weex-component/3e30f1e2562a57b329ab7ebd1387f07b', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/3e30f1e2562a57b329ab7ebd1387f07b',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", -
[33/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/linear-gradient.js -- diff --git a/android/playground/app/src/main/assets/linear-gradient.js b/android/playground/app/src/main/assets/linear-gradient.js deleted file mode 100644 index 3866ce5..000 --- a/android/playground/app/src/main/assets/linear-gradient.js +++ /dev/null @@ -1,367 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(205) - var __weex_style__ = __webpack_require__(206) - - __weex_define__('@weex-component/695f94322dfa977e2812d2616f20e495', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/695f94322dfa977e2812d2616f20e495',undefined,undefined) - -/***/ }, - -/***/ 205: -/***/ function(module, exports) { - - module.exports = { - "type": "scroller", - "style": { - "backgroundColor": "#3a3a3a" - }, - "children": [ - { - "type": "div", - "classList": [ - "container1" - ], - "style": { - "backgroundImage": "linear-gradient(to right,#43C6AC,#F8FFAE)" - }, - "children": [ - { - "type": "text", - "classList": [ - "direction" - ], - "attr": { - "value": "to right" - } - } - ] - }, - { - "type": "div", - "classList": [ - "container1" - ], - "style": { - "backgroundImage": "linear-gradient(to left,#DCE35B,#45B649)" - }, - "children": [ - { - "type": "text", - "classList": [ - "direction" - ], - "attr": { - "value": "to left" - } - } - ] - }, - { - "type": "div", - "classList": [ - "container1" - ], - "style": { - "backgroundImage": "linear-gradient(to bottom,#3494E6,#EC6EAD)" - }, - "children": [ - { - "type": "text", - "classList": [ - "direction" - ], - "attr": { - "value": "to bottom" - } - } - ] - }, - { - "type": "div", - "classList": [ - "container1" - ], - "style": { - "backgroundImage": "linear-gradient(to top,#ee0979,#ff6a00)" - }, - "children": [ - { - "type": "text", - "classList": [ - "direction" - ], - "attr": { - "value": "to top" -
[18/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/style/index.js -- diff --git a/android/playground/app/src/main/assets/style/index.js b/android/playground/app/src/main/assets/style/index.js deleted file mode 100644 index 3bf..000 --- a/android/playground/app/src/main/assets/style/index.js +++ /dev/null @@ -1,3496 +0,0 @@ -/**/ (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__) { - - __webpack_require__(300) - __webpack_require__(308) - __webpack_require__(301) - var __weex_template__ = __webpack_require__(312) - var __weex_style__ = __webpack_require__(313) - var __weex_script__ = __webpack_require__(314) - - __weex_define__('@weex-component/2bb97ed0198ea3308e26ee13c0047c9c', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/2bb97ed0198ea3308e26ee13c0047c9c',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", -
[02/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/market/gcanvas.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/market/gcanvas.js b/android/playground/app/src/main/assets/vue-web/vue/market/gcanvas.js new file mode 100644 index 000..67da6e1 --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/market/gcanvas.js @@ -0,0 +1,3641 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(161) + App.el = '#root' + new Vue(App) + + +/***/ }), + +/***/ 7: +/***/ (function(module, exports) { + + /* globals __VUE_SSR_CONTEXT__ */ + + // this module is a runtime utility for cleaner component module output and will + // be included in the final webpack user bundle + + module.exports = function normalizeComponent ( + rawScriptExports, + compiledTemplate, + injectStyles, + scopeId, + moduleIdentifier /* server only */ + ) { + var esModule + var scriptExports = rawScriptExports = rawScriptExports || {} + + // ES6 modules interop + var type = typeof rawScriptExports.default + if (type === 'object' || type === 'function') { + esModule = rawScriptExports + scriptExports = rawScriptExports.default + } + + // Vue.extend constructor export interop + var options = typeof scriptExports === 'function' + ? scriptExports.options + : scriptExports + + // render functions + if (compiledTemplate) { + options.render = compiledTemplate.render + options.staticRenderFns = compiledTemplate.staticRenderFns + } + + // scopedId + if (scopeId) { + options._scopeId = scopeId + } + + var hook + if (moduleIdentifier) { // server build + hook = function (context) { + // 2.3 injection + context = + context || // cached call + (this.$vnode && this.$vnode.ssrContext) || // stateful + (this.parent && this.parent.$vnode && this.parent.$vnode.ssrContext) // functional + // 2.2 with runInNewContext: true + if (!context && typeof __VUE_SSR_CONTEXT__ !== 'undefined') { + context = __VUE_SSR_CONTEXT__ + } + // inject component styles + if (injectStyles) { + injectStyles.call(this, context) + } + // register component module identifier for async chunk inferrence + if (context && context._registeredComponents) { + context._registeredComponents.add(moduleIdentifier) + } + } + // used by ssr in case component is cached and beforeCreate + // never gets called + options._ssrRegister = hook + } else if (injectStyles) { + hook = injectStyles + } + + if (hook) { + var functional = options.functional + var existing = functional + ? options.render + :
[GitHub] incubator-weex pull request #955: [WEEX-90][example] remove legacy .we examp...
Github user asfgit closed the pull request at: https://github.com/apache/incubator-weex/pull/955 ---
[44/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/marquee-demo.js -- diff --git a/android/playground/app/src/main/assets/component/marquee-demo.js b/android/playground/app/src/main/assets/component/marquee-demo.js deleted file mode 100644 index 3261b55..000 --- a/android/playground/app/src/main/assets/component/marquee-demo.js +++ /dev/null @@ -1,2151 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "ae96d8382266c0d24fad5c641b084827" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(106) - var __weex_script__ = __webpack_require__(107) - - __weex_define__('@weex-component/eeaccd3d9c9113871c5ec6aa21c1c2cd', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/eeaccd3d9c9113871c5ec6aa21c1c2cd',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, -
[21/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/match.js -- diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/match.js b/android/playground/app/src/main/assets/showcase/new-fashion/match.js deleted file mode 100644 index 96976e4..000 --- a/android/playground/app/src/main/assets/showcase/new-fashion/match.js +++ /dev/null @@ -1,273 +0,0 @@ -/**/ (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__) { - - __webpack_require__(246) - var __weex_template__ = __webpack_require__(287) - var __weex_style__ = __webpack_require__(288) - var __weex_script__ = __webpack_require__(289) - - __weex_define__('@weex-component/e4f94096a035d75578fa1eb2d8967b5f', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/e4f94096a035d75578fa1eb2d8967b5f',undefined,undefined) - -/***/ }, - -/***/ 244: -/***/ function(module, exports) { - - module.exports = { - "type": "image", - "style": { - "width": function () {return this.width}, - "height": function () {return this.height} - }, - "attr": { - "src": function () {return this.src}, - "imageQuality": function () {return this.quality} - }, - "events": { - "click": "_clickHandler" - } - } - -/***/ }, - -/***/ 245: -/***/ function(module, exports) { - - module.exports = function(module, exports, __weex_require__){'use strict'; - - module.exports = { - data: function () {return { - quality: 'normal', - width: 0, - height: 0, - src: '', - href: '', - spmc: 0, - spmd: 0 - }}, - methods: { - ready: function ready() {}, - _clickHandler: function _clickHandler() { - this.$call('modal', 'toast', { - message: 'click', - duration: 1 - }); - } - } - };} - /* generated by weex-loader */ - - -/***/ }, - -/***/ 246: -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(244) - var __weex_script__ = __webpack_require__(245) - - __weex_define__('@weex-component/banner', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - -/***/ }, - -/***/ 287: -/***/ function(module, exports) { - - module.exports = { - "type":
[37/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/video-demo.js -- diff --git a/android/playground/app/src/main/assets/component/video-demo.js b/android/playground/app/src/main/assets/component/video-demo.js deleted file mode 100644 index fbefb37..000 --- a/android/playground/app/src/main/assets/component/video-demo.js +++ /dev/null @@ -1,2236 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "29348b4180a8c78e3a6cd4b260b74774" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(179) - var __weex_style__ = __webpack_require__(180) - var __weex_script__ = __webpack_require__(181) - - __weex_define__('@weex-component/a6ac855fc70c0bffbf2b317f9487878f', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/a6ac855fc70c0bffbf2b317f9487878f',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module,
[30/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/module/picker-demo.js -- diff --git a/android/playground/app/src/main/assets/module/picker-demo.js b/android/playground/app/src/main/assets/module/picker-demo.js deleted file mode 100644 index 2f2e1c8..000 --- a/android/playground/app/src/main/assets/module/picker-demo.js +++ /dev/null @@ -1,2353 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(221) - var __weex_style__ = __webpack_require__(222) - var __weex_script__ = __webpack_require__(223) - - __weex_define__('@weex-component/713f21e067b638ad251dbcb7d5b37be5', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/713f21e067b638ad251dbcb7d5b37be5',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle":
[22/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/main.js -- diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/main.js b/android/playground/app/src/main/assets/showcase/new-fashion/main.js deleted file mode 100644 index ff4ffd4..000 --- a/android/playground/app/src/main/assets/showcase/new-fashion/main.js +++ /dev/null @@ -1,6051 +0,0 @@ -/**/ (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__) { - - __webpack_require__(274) - __webpack_require__(275) - __webpack_require__(276) - __webpack_require__(277) - __webpack_require__(278) - __webpack_require__(282) - __webpack_require__(286) - __webpack_require__(290) - var __weex_template__ = __webpack_require__(291) - var __weex_style__ = __webpack_require__(292) - var __weex_script__ = __webpack_require__(293) - - __weex_define__('@weex-component/7e1771848154855ce84d79183d543f9a', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/7e1771848154855ce84d79183d543f9a',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } -
[41/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/scroller-demo.js -- diff --git a/android/playground/app/src/main/assets/component/scroller-demo.js b/android/playground/app/src/main/assets/component/scroller-demo.js deleted file mode 100644 index 6513791..000 --- a/android/playground/app/src/main/assets/component/scroller-demo.js +++ /dev/null @@ -1,2326 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "7e81a5d2d50e2dcff9daf08e7329aff1" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(148) - var __weex_style__ = __webpack_require__(149) - var __weex_script__ = __webpack_require__(150) - - __weex_define__('@weex-component/3999ea06e04b487185c2565d7cda9180', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/3999ea06e04b487185c2565d7cda9180',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/
[03/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/index.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/index.js b/android/playground/app/src/main/assets/vue-web/vue/index.js new file mode 100644 index 000..c59d115 --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/index.js @@ -0,0 +1,1056 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(145) + App.el = '#root' + new Vue(App) + + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); + } + } + }; + return list; +
[19/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/ui.js -- diff --git a/android/playground/app/src/main/assets/showcase/ui.js b/android/playground/app/src/main/assets/showcase/ui.js deleted file mode 100644 index fb73ceb..000 --- a/android/playground/app/src/main/assets/showcase/ui.js +++ /dev/null @@ -1,2441 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(297) - var __weex_style__ = __webpack_require__(298) - var __weex_script__ = __webpack_require__(299) - - __weex_define__('@weex-component/045f40e22d4b6e9c9f36354367812ecd', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/045f40e22d4b6e9c9f36354367812ecd',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", -
[12/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/template.js -- diff --git a/android/playground/app/src/main/assets/template.js b/android/playground/app/src/main/assets/template.js deleted file mode 100644 index bde736f..000 --- a/android/playground/app/src/main/assets/template.js +++ /dev/null @@ -1,2251 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(376) - var __weex_style__ = __webpack_require__(377) - var __weex_script__ = __webpack_require__(378) - - __weex_define__('@weex-component/b40420dfe575cbe06a71dd757f5b9128', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/b40420dfe575cbe06a71dd757f5b9128',undefined,undefined) - -/***/ }, - -/***/ 4: -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, - -/***/ 5: -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, - -/***/ 6: -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, - -/***/ 7: -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", - "borderColor": "#33" -
[04/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/components/web.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/components/web.js b/android/playground/app/src/main/assets/vue-web/vue/components/web.js new file mode 100644 index 000..e169b03 --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/components/web.js @@ -0,0 +1,861 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(133) + App.el = '#root' + new Vue(App) + + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); + } + } +
[08/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/components/navigator.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/components/navigator.js b/android/playground/app/src/main/assets/vue-web/vue/components/navigator.js new file mode 100644 index 000..788148a --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/components/navigator.js @@ -0,0 +1,1537 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(61) + App.el = '#root' + new Vue(App) + + +/***/ }), +/* 1 */, +/* 2 */, +/* 3 */, +/* 4 */ +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); +
[34/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/index.js -- diff --git a/android/playground/app/src/main/assets/index.js b/android/playground/app/src/main/assets/index.js deleted file mode 100644 index 1264d6b..000 --- a/android/playground/app/src/main/assets/index.js +++ /dev/null @@ -1,3160 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(195) - var __weex_script__ = __webpack_require__(196) - - __weex_define__('@weex-component/677c57764d82d558f236d5241843a2a2', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/677c57764d82d558f236d5241843a2a2',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", - "borderColor": "#33" - }, - "btn-default": { - "color": "rgb(51,51,51)" - }, - "btn-primary": { -
[17/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/style/style-box.js -- diff --git a/android/playground/app/src/main/assets/style/style-box.js b/android/playground/app/src/main/assets/style/style-box.js deleted file mode 100644 index 21eb15b..000 --- a/android/playground/app/src/main/assets/style/style-box.js +++ /dev/null @@ -1,2629 +0,0 @@ -/**/ (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__) { - - __webpack_require__(301) - var __weex_template__ = __webpack_require__(305) - var __weex_style__ = __webpack_require__(306) - var __weex_script__ = __webpack_require__(307) - - __weex_define__('@weex-component/1cc382dbc23ca75e8dd34af712ba54f1', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/1cc382dbc23ca75e8dd34af712ba54f1',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, -
[01/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
Repository: incubator-weex Updated Branches: refs/heads/master 07f80f81a -> 8c6690d59 http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/modules/clipboard.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/modules/clipboard.js b/android/playground/app/src/main/assets/vue-web/vue/modules/clipboard.js new file mode 100644 index 000..647af44 --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/modules/clipboard.js @@ -0,0 +1,1102 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(172) + App.el = '#root' + new Vue(App) + + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } +
[15/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/syntax/hello-world-5.js -- diff --git a/android/playground/app/src/main/assets/syntax/hello-world-5.js b/android/playground/app/src/main/assets/syntax/hello-world-5.js deleted file mode 100644 index c49f915..000 --- a/android/playground/app/src/main/assets/syntax/hello-world-5.js +++ /dev/null @@ -1,144 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(325) - var __weex_style__ = __webpack_require__(326) - var __weex_script__ = __webpack_require__(327) - - __weex_define__('@weex-component/06cb3b1cf32d7e68eb4f41a491128601', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/06cb3b1cf32d7e68eb4f41a491128601',undefined,undefined) - -/***/ }, - -/***/ 325: -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": [ - "wrapper" - ], - "events": { - "click": "update" - }, - "children": [ - { - "type": "image", - "attr": { - "src": function () {return this.logoUrl} - }, - "classList": [ - "logo" - ] - }, - { - "type": "text", - "classList": [ - "title" - ], - "attr": { - "value": function () {return 'Hello ' + (this.target)} - } - } - ] - } - -/***/ }, - -/***/ 326: -/***/ function(module, exports) { - - module.exports = { - "wrapper": { - "alignItems": "center", - "marginTop": 120 - }, - "title": { - "fontSize": 48 - }, - "logo": { - "width": 360, - "height": 82 - } - } - -/***/ }, - -/***/ 327: -/***/ function(module, exports) { - - module.exports = function(module, exports, __weex_require__){'use strict'; - - module.exports = { - data: function () {return { - logoUrl: 'https://alibaba.github.io/weex/img/weex_logo_b...@3x.png', - target: 'World' - }}, - methods: { - update: function update(e) { - this.target = 'Weex'; - } - } - };} - /* generated by weex-loader */ - - -/***/ } - -/**/ }); \ No newline at end of file http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/syntax/hello-world.js -- diff --git a/android/playground/app/src/main/assets/syntax/hello-world.js b/android/playground/app/src/main/assets/syntax/hello-world.js
[11/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/animation.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/animation.js b/android/playground/app/src/main/assets/vue-web/vue/animation.js new file mode 100644 index 000..9f103b2 --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/animation.js @@ -0,0 +1,1110 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(1) + App.el = '#root' + new Vue(App) + + +/***/ }), +/* 1 */ +/***/ (function(module, exports, __webpack_require__) { + + var disposed = false + function injectStyle (ssrContext) { + if (disposed) return + __webpack_require__(2) + } + var Component = __webpack_require__(7)( + /* script */ + __webpack_require__(8), + /* template */ + __webpack_require__(19), + /* styles */ + injectStyle, + /* scopeId */ + "data-v-48e47b99", + /* moduleIdentifier (server only) */ + null + ) + Component.options.__file = "/Users/Hanks/Codes/work/incubator-weex/examples/vue/animation.vue" + if (Component.esModule && Object.keys(Component.esModule).some(function (key) {return key !== "default" && key.substr(0, 2) !== "__"})) {console.error("named exports are not supported in *.vue files.")} + if (Component.options.functional) {console.error("[vue-loader] animation.vue: functional components are not supported with templates, they should use render functions.")} + + /* hot reload */ + if (false) {(function () { + var hotAPI = require("vue-hot-reload-api") + hotAPI.install(require("vue"), false) + if (!hotAPI.compatible) return + module.hot.accept() + if (!module.hot.data) { + hotAPI.createRecord("data-v-48e47b99", Component.options) + } else { + hotAPI.reload("data-v-48e47b99", Component.options) + } + module.hot.dispose(function (data) { + disposed = true + }) + })()} + + module.exports = Component.exports + + +/***/ }), +/* 2 */ +/***/ (function(module, exports, __webpack_require__) { + + // style-loader: Adds some css to the DOM by adding a
[16/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/style/style-flex.js -- diff --git a/android/playground/app/src/main/assets/style/style-flex.js b/android/playground/app/src/main/assets/style/style-flex.js deleted file mode 100644 index a19e84a..000 --- a/android/playground/app/src/main/assets/style/style-flex.js +++ /dev/null @@ -1,2982 +0,0 @@ -/**/ (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__) { - - __webpack_require__(301) - var __weex_template__ = __webpack_require__(309) - var __weex_style__ = __webpack_require__(310) - var __weex_script__ = __webpack_require__(311) - - __weex_define__('@weex-component/601bcbb157cb7b89fd0d4cc63178b528', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/601bcbb157cb7b89fd0d4cc63178b528',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, -
[36/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/web-demo.js -- diff --git a/android/playground/app/src/main/assets/component/web-demo.js b/android/playground/app/src/main/assets/component/web-demo.js deleted file mode 100644 index 61a3248..000 --- a/android/playground/app/src/main/assets/component/web-demo.js +++ /dev/null @@ -1,2286 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "3a484987637f61a6bce81312d94081e0" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(182) - var __weex_style__ = __webpack_require__(183) - var __weex_script__ = __webpack_require__(184) - - __weex_define__('@weex-component/1a81fb780319a63605d941949f4ff5d7', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/1a81fb780319a63605d941949f4ff5d7',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) {
[06/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/components/tabbar.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/components/tabbar.js b/android/playground/app/src/main/assets/vue-web/vue/components/tabbar.js new file mode 100644 index 000..5fe793c --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/components/tabbar.js @@ -0,0 +1,1105 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(100) + App.el = '#root' + new Vue(App) + + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); + } + } +
[25/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/minesweeper.js -- diff --git a/android/playground/app/src/main/assets/showcase/minesweeper.js b/android/playground/app/src/main/assets/showcase/minesweeper.js deleted file mode 100644 index 06fa880..000 --- a/android/playground/app/src/main/assets/showcase/minesweeper.js +++ /dev/null @@ -1,345 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(241) - var __weex_style__ = __webpack_require__(242) - var __weex_script__ = __webpack_require__(243) - - __weex_define__('@weex-component/c0df89e239d226d3a0c6f418314cda04', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/c0df89e239d226d3a0c6f418314cda04',undefined,undefined) - -/***/ }, - -/***/ 241: -/***/ function(module, exports) { - - module.exports = { - "type": "container", - "children": [ - { - "type": "text", - "classList": [ - "btn" - ], - "attr": { - "value": function () {return this.board} - } - }, - { - "type": "container", - "repeat": function () {return this.row}, - "style": { - "flexDirection": "row", - "flex": 1 - }, - "children": [ - { - "type": "container", - "repeat": function () {return this.col}, - "style": { - "flex": 1 - }, - "children": [ - { - "type": "text", - "attr": { - "tid": function () {return this.tid}, - "around": function () {return this.around}, - "value": function () {return this.text} - }, - "events": { - "click": "onclick", - "longpress": "onlongpress" - }, - "classList": function () {return [this.state, 'tile']} - } - ] - } - ] - }, - { - "type": "text", - "events": { - "click": "restart" - }, - "classList": [ - "btn" - ], - "attr": { - "value": "START" - } - } - ] - } - -/***/ }, - -/***/ 242: -/***/ function(module, exports) { - - module.exports = { - "btn": { - "margin": 2, - "backgroundColor": "#e74c3c", - "color": "#ff", - "textAlign":
[10/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/components/countdown.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/components/countdown.js b/android/playground/app/src/main/assets/vue-web/vue/components/countdown.js new file mode 100644 index 000..2bd9274 --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/components/countdown.js @@ -0,0 +1,1142 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(28) + App.el = '#root' + new Vue(App) + + +/***/ }), +/* 1 */, +/* 2 */, +/* 3 */, +/* 4 */ +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); +
[07/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/components/slider.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/components/slider.js b/android/playground/app/src/main/assets/vue-web/vue/components/slider.js new file mode 100644 index 000..ccc3ecc --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/components/slider.js @@ -0,0 +1,1496 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(80) + App.el = '#root' + new Vue(App) + + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); + } + } +
[28/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/module/stream-demo.js -- diff --git a/android/playground/app/src/main/assets/module/stream-demo.js b/android/playground/app/src/main/assets/module/stream-demo.js deleted file mode 100644 index 36cfffe..000 --- a/android/playground/app/src/main/assets/module/stream-demo.js +++ /dev/null @@ -1,2451 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(226) - var __weex_script__ = __webpack_require__(227) - - __weex_define__('@weex-component/2c445dcf67fa0895d197edb5ffa2f439', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/2c445dcf67fa0895d197edb5ffa2f439',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", - "borderColor": "#33" - }, - "btn-default": { - "color":
[32/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/module/instance-api.js -- diff --git a/android/playground/app/src/main/assets/module/instance-api.js b/android/playground/app/src/main/assets/module/instance-api.js deleted file mode 100644 index 512d721..000 --- a/android/playground/app/src/main/assets/module/instance-api.js +++ /dev/null @@ -1,2225 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(216) - var __weex_script__ = __webpack_require__(217) - - __weex_define__('@weex-component/2c1f438ffab50b73880065c54d5a1b0c', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/2c1f438ffab50b73880065c54d5a1b0c',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", - "borderColor": "#33" - }, - "btn-default": { - "color":
[05/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/vue-web/vue/components/video.js -- diff --git a/android/playground/app/src/main/assets/vue-web/vue/components/video.js b/android/playground/app/src/main/assets/vue-web/vue/components/video.js new file mode 100644 index 000..0ed3c23 --- /dev/null +++ b/android/playground/app/src/main/assets/vue-web/vue/components/video.js @@ -0,0 +1,816 @@ +// NOTE: for vue2.0 and platform:web only. + +/**/ (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 App = __webpack_require__(123) + App.el = '#root' + new Vue(App) + + +/***/ }), + +/***/ 4: +/***/ (function(module, exports) { + + /* + MIT License http://www.opensource.org/licenses/mit-license.php + Author Tobias Koppers @sokra + */ + // css base code, injected by the css-loader + module.exports = function() { + var list = []; + + // return the list of modules as css string + list.toString = function toString() { + var result = []; + for(var i = 0; i < this.length; i++) { + var item = this[i]; + if(item[2]) { + result.push("@media " + item[2] + "{" + item[1] + "}"); + } else { + result.push(item[1]); + } + } + return result.join(""); + }; + + // import a list of modules into the list + list.i = function(modules, mediaQuery) { + if(typeof modules === "string") + modules = [[null, modules, ""]]; + var alreadyImportedModules = {}; + for(var i = 0; i < this.length; i++) { + var id = this[i][0]; + if(typeof id === "number") + alreadyImportedModules[id] = true; + } + for(i = 0; i < modules.length; i++) { + var item = modules[i]; + // skip already imported module + // this implementation is not 100% perfect for weird media query combinations + // when a module is imported multiple times with different media queries. + // I hope this will never occur (Hey this way we have smaller bundles) + if(typeof item[0] !== "number" || !alreadyImportedModules[item[0]]) { + if(mediaQuery && !item[2]) { + item[2] = mediaQuery; + } else if(mediaQuery) { + item[2] = "(" + item[2] + ") and (" + mediaQuery + ")"; + } + list.push(item); + } + } +
[24/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/showcase/new-fashion/headlines.js -- diff --git a/android/playground/app/src/main/assets/showcase/new-fashion/headlines.js b/android/playground/app/src/main/assets/showcase/new-fashion/headlines.js deleted file mode 100644 index 23f0fac..000 --- a/android/playground/app/src/main/assets/showcase/new-fashion/headlines.js +++ /dev/null @@ -1,479 +0,0 @@ -/**/ (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__) { - - __webpack_require__(265) - __webpack_require__(249) - var __weex_template__ = __webpack_require__(268) - var __weex_style__ = __webpack_require__(269) - var __weex_script__ = __webpack_require__(270) - - __weex_define__('@weex-component/5efec0a39c4d8f94c5e8f7170c422834', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/5efec0a39c4d8f94c5e8f7170c422834',undefined,undefined) - -/***/ }, - -/***/ 244: -/***/ function(module, exports) { - - module.exports = { - "type": "image", - "style": { - "width": function () {return this.width}, - "height": function () {return this.height} - }, - "attr": { - "src": function () {return this.src}, - "imageQuality": function () {return this.quality} - }, - "events": { - "click": "_clickHandler" - } - } - -/***/ }, - -/***/ 245: -/***/ function(module, exports) { - - module.exports = function(module, exports, __weex_require__){'use strict'; - - module.exports = { - data: function () {return { - quality: 'normal', - width: 0, - height: 0, - src: '', - href: '', - spmc: 0, - spmd: 0 - }}, - methods: { - ready: function ready() {}, - _clickHandler: function _clickHandler() { - this.$call('modal', 'toast', { - message: 'click', - duration: 1 - }); - } - } - };} - /* generated by weex-loader */ - - -/***/ }, - -/***/ 246: -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(244) - var __weex_script__ = __webpack_require__(245) - - __weex_define__('@weex-component/banner', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - -/***/ }, - -/***/ 247: -/***/ function(module, exports) { - -
[42/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/process-bar-demo.js -- diff --git a/android/playground/app/src/main/assets/component/process-bar-demo.js b/android/playground/app/src/main/assets/component/process-bar-demo.js deleted file mode 100644 index 90a3206..000 --- a/android/playground/app/src/main/assets/component/process-bar-demo.js +++ /dev/null @@ -1,2165 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "3771bf113fd85c270d38518ea7af1a5f" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(145) - var __weex_style__ = __webpack_require__(146) - var __weex_script__ = __webpack_require__(147) - - __weex_define__('@weex-component/0a82ae39306363e81eeac009d30abc0a', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/0a82ae39306363e81eeac009d30abc0a',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */
[39/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/tabbar/tabbar-demo.js -- diff --git a/android/playground/app/src/main/assets/component/tabbar/tabbar-demo.js b/android/playground/app/src/main/assets/component/tabbar/tabbar-demo.js deleted file mode 100644 index 8f2019d..000 --- a/android/playground/app/src/main/assets/component/tabbar/tabbar-demo.js +++ /dev/null @@ -1,3030 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "912dfb1184b615aad9a037b71b619c20" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(171) - var __weex_script__ = __webpack_require__(172) - - __weex_define__('@weex-component/e76831b20ac1521dc607984f55a74c02', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/e76831b20ac1521dc607984f55a74c02',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { -
[29/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/module/storage-demo.js -- diff --git a/android/playground/app/src/main/assets/module/storage-demo.js b/android/playground/app/src/main/assets/module/storage-demo.js deleted file mode 100644 index 5aa0088..000 --- a/android/playground/app/src/main/assets/module/storage-demo.js +++ /dev/null @@ -1,2331 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(224) - var __weex_script__ = __webpack_require__(225) - - __weex_define__('@weex-component/6f110d391fd7b90c9a19583f6ee1a7cf', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/6f110d391fd7b90c9a19583f6ee1a7cf',undefined,undefined) - -/***/ }, -/* 1 */, -/* 2 */, -/* 3 */, -/* 4 */ -/***/ function(module, exports, __webpack_require__) { - - __webpack_require__(5); - __webpack_require__(9); - __webpack_require__(13); - __webpack_require__(17); - __webpack_require__(21); - __webpack_require__(25); - __webpack_require__(66); - __webpack_require__(70); - __webpack_require__(74); - __webpack_require__(78); - __webpack_require__(79); - - -/***/ }, -/* 5 */ -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(6) - var __weex_style__ = __webpack_require__(7) - var __weex_script__ = __webpack_require__(8) - - __weex_define__('@weex-component/wxc-button', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, -/* 6 */ -/***/ function(module, exports) { - - module.exports = { - "type": "div", - "classList": function () {return ['btn', 'btn-' + (this.type), 'btn-sz-' + (this.size)]}, - "children": [ - { - "type": "text", - "classList": function () {return ['btn-txt', 'btn-txt-' + (this.type), 'btn-txt-sz-' + (this.size)]}, - "attr": { - "value": function () {return this.value} - } - } - ] - } - -/***/ }, -/* 7 */ -/***/ function(module, exports) { - - module.exports = { - "btn": { - "marginBottom": 0, - "alignItems": "center", - "justifyContent": "center", - "borderWidth": 1, - "borderStyle": "solid", - "borderColor": "#33" - }, - "btn-default": { - "color":
[13/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/syntax/script-component.js -- diff --git a/android/playground/app/src/main/assets/syntax/script-component.js b/android/playground/app/src/main/assets/syntax/script-component.js deleted file mode 100644 index 69c5cde..000 --- a/android/playground/app/src/main/assets/syntax/script-component.js +++ /dev/null @@ -1,180 +0,0 @@ -/**/ (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 __weex_template__ = __webpack_require__(330) - var __weex_script__ = __webpack_require__(331) - - __weex_define__('@weex-component/2a5ba7e55afcba45accf15b3179f0016', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - }) - - __weex_bootstrap__('@weex-component/2a5ba7e55afcba45accf15b3179f0016',undefined,undefined) - -/***/ }, - -/***/ 330: -/***/ function(module, exports) { - - module.exports = { - "type": "list", - "children": [ - { - "type": "cell", - "append": "tree", - "repeat": { - "expression": function () {return this.items}, - "value": "item" - }, - "children": [ - { - "type": "text", - "attr": { - "value": function () {return this.item.title} - } - }, - { - "type": "sub", - "attr": { - "title": "a" - } - } - ] - } - ] - } - -/***/ }, - -/***/ 331: -/***/ function(module, exports, __webpack_require__) { - - module.exports = function(module, exports, __weex_require__){'use strict'; - - __webpack_require__(332); - module.exports = { - data: function () {return { - items: [{ title: 'A', url: 'a' }, { title: 'B', url: 'b' }, { title: 'C', url: 'c' }] - }} - };} - /* generated by weex-loader */ - - -/***/ }, - -/***/ 332: -/***/ function(module, exports, __webpack_require__) { - - var __weex_template__ = __webpack_require__(333) - var __weex_style__ = __webpack_require__(334) - var __weex_script__ = __webpack_require__(335) - - __weex_define__('@weex-component/sub', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - -/***/ }, - -/***/ 333: -/***/ function(module, exports) { - - module.exports = { - "type": "text", - "classList": [ -
[45/52] [partial] incubator-weex git commit: - [example] remove legacy .we examples
http://git-wip-us.apache.org/repos/asf/incubator-weex/blob/8668b0f9/android/playground/app/src/main/assets/component/list/list-demo.js -- diff --git a/android/playground/app/src/main/assets/component/list/list-demo.js b/android/playground/app/src/main/assets/component/list/list-demo.js deleted file mode 100644 index 4db50da..000 --- a/android/playground/app/src/main/assets/component/list/list-demo.js +++ /dev/null @@ -1,1231 +0,0 @@ -/*!197 - * { - * version: "0.4.0.20170207", - * create: "20170207145011", - * git: "origin-taobao/u4_v8_shared_sdk_jsfm-feature-0.19--027e045", - * digest: "f49cbcb21d54f4a3a48fecc9429d1df2" - * } - !*/ -/**/ (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 __weex_template__ = __webpack_require__(100) - var __weex_style__ = __webpack_require__(101) - var __weex_script__ = __webpack_require__(102) - - __weex_define__('@weex-component/3226d5b3a8f5b1ae43875db22de0785e', [], function(__weex_require__, __weex_exports__, __weex_module__) { - - __weex_script__(__weex_module__, __weex_exports__, __weex_require__) - if (__weex_exports__.__esModule && __weex_exports__.default) { - __weex_module__.exports = __weex_exports__.default - } - - __weex_module__.exports.template = __weex_template__ - - __weex_module__.exports.style = __weex_style__ - - }) - - __weex_bootstrap__('@weex-component/3226d5b3a8f5b1ae43875db22de0785e',undefined,undefined) - -/***/ }, - -/***/ 100: -/***/ function(module, exports) { - - module.exports = { - "type": "list", - "classList": [ - "list" - ], - "attr": { - "loadmoreoffset": "2000" - }, - "children": [ - { - "type": "cell", - "append": "tree", - "classList": [ - "cell" - ], - "events": { - "click": "oncellclick" - }, - "attr": { - "rownumber": function () {return this.id}, - "scope": function () {return this.scopeValue}, - "composite": function () {return this.composite} - }, - "repeat": function () {return this.shopList}, - "children": [ - { - "type": "div", - "classList": [ - "shopDiv" - ], - "children": [ - { - "type": "div", - "classList": [ - "shopHeader" - ], - "style": { - "flexDirection": "row", - "overflow": "hidden" - }, - "children": [ - { - "type": "div", - "style": { - "flex": 2, - "flexDirection": "row" - }, - "children": [ - { - "type": "div", - "children": [ - { -
[GitHub] incubator-weex pull request #954: [WEEX-183][jsfm] support append tree on ro...
Github user asfgit closed the pull request at: https://github.com/apache/incubator-weex/pull/954 ---