Skip to content

Commit

Permalink
* [jsfm] fixed browser render file structure
Browse files Browse the repository at this point in the history
  • Loading branch information
Jinjiang committed Sep 22, 2016
1 parent 4ea4a2b commit ba7a40b
Show file tree
Hide file tree
Showing 10 changed files with 20 additions and 20 deletions.
6 changes: 3 additions & 3 deletions html5/render/browser/runtime/app/bundle/bootstrap.js
@@ -1,14 +1,14 @@
import Vm from '../../../../default/vm'
import Vm from '../../../../../frameworks/legacy/vm'
import {
requireCustomComponent
} from '../../../../default/app/register'
} from '../../../../../frameworks/legacy/app/register'
import {
isPlainObject,
isWeexComponent,
isNpmModule,
removeWeexPrefix,
removeJSSurfix
} from '../../../../default/util'
} from '../../../../../frameworks/legacy/util'

/**
* bootstrap app from a certain custom component with config & data
Expand Down
2 changes: 1 addition & 1 deletion html5/render/browser/runtime/app/bundle/index.js
Expand Up @@ -13,4 +13,4 @@
*/

export { bootstrap } from './bootstrap'
export { clearCommonModules, defineFn, register } from '../../../../default/app/bundle/define'
export { clearCommonModules, defineFn, register } from '../../../../../frameworks/legacy/app/bundle/define'
2 changes: 1 addition & 1 deletion html5/render/browser/runtime/app/ctrl/index.js
Expand Up @@ -19,4 +19,4 @@ export {
callback,
updateActions,
callTasks
} from '../../../../default/app/ctrl/misc'
} from '../../../../../frameworks/legacy/app/ctrl/misc'
6 changes: 3 additions & 3 deletions html5/render/browser/runtime/app/ctrl/init.js
Expand Up @@ -7,14 +7,14 @@
* corresponded with the API of instance manager (framework.js)
*/

import Vm from '../../../../default/vm'
import { removeWeexPrefix } from '../../../../default/util'
import Vm from '../../../../../frameworks/legacy/vm'
import { removeWeexPrefix } from '../../../../../frameworks/legacy/util'
import {
defineFn,
bootstrap,
register
} from '../bundle'
import { updateActions } from '../../../../default/app/ctrl/misc'
import { updateActions } from '../../../../../frameworks/legacy/app/ctrl/misc'

/**
* Init an app by run code witgh data
Expand Down
4 changes: 2 additions & 2 deletions html5/render/browser/runtime/app/index.js
Expand Up @@ -3,9 +3,9 @@
* Weex instance constructor & definition
*/

import { requireModule } from '../../../default/app/register'
import { requireModule } from '../../../../frameworks/legacy/app/register'
import { updateActions, callTasks } from './ctrl'
import App from '../../../default/app/instance'
import App from '../../../../frameworks/legacy/app/instance'

/**
* @deprecated
Expand Down
8 changes: 4 additions & 4 deletions html5/render/browser/runtime/default/index.js
Expand Up @@ -13,7 +13,7 @@
* - callback(funcId, data)
*/
export { createInstance } from '../static/create'
export { init, refreshInstance, destroyInstance } from '../../../default/static/life'
export { registerComponents, registerModules, registerMethods } from '../../../default/static/register'
export { receiveTasks } from '../../../default/static/bridge'
export { getRoot } from '../../../default/static/misc'
export { init, refreshInstance, destroyInstance } from '../../../../frameworks/legacy/static/life'
export { registerComponents, registerModules, registerMethods } from '../../../../frameworks/legacy/static/register'
export { receiveTasks } from '../../../../frameworks/legacy/static/bridge'
export { getRoot } from '../../../../frameworks/legacy/static/misc'
4 changes: 2 additions & 2 deletions html5/render/browser/runtime/index.js
Expand Up @@ -4,9 +4,9 @@ import './shared'
// import init from '../../runtime/init'
import init from './init'
import frameworks from './config'
import { Document, Element, Comment } from '../../vdom'
import { Document, Element, Comment } from '../../../runtime/vdom'
// import { subversion } from '../../../package.json'
import * as methods from '../../default/api/methods'
import * as methods from '../../../frameworks/legacy/api/methods'
import Listener from '../dom/componentManager'

const config = {
Expand Down
4 changes: 2 additions & 2 deletions html5/render/browser/runtime/shared.js
@@ -1,4 +1,4 @@
import '../../shared/promise'
import '../../../shared/promise'
// import '../../shared/console'

export {
Expand All @@ -10,4 +10,4 @@ export {
toArray,
isObject,
isPlainObject
} from '../../shared/utils'
} from '../../../shared/utils'
2 changes: 1 addition & 1 deletion html5/render/browser/runtime/static/create.js
@@ -1,5 +1,5 @@
import App from '../app'
import { instanceMap } from '../../../default/static/map'
import { instanceMap } from '../../../../frameworks/legacy/static/map'
import { init as initApp } from '../app/ctrl'

/**
Expand Down
2 changes: 1 addition & 1 deletion html5/render/browser/utils/index.js
Expand Up @@ -17,7 +17,7 @@ export {
isObject,
isPlainObject,
typof
} from '../../default/util'
} from '../../../frameworks/legacy/util'

import { isArray, slice } from './array'
export { isArray, slice }
Expand Down

0 comments on commit ba7a40b

Please sign in to comment.