Skip to content

Commit 0676184

Browse files
author
wenzhao.fw
committed
change no-flux to refast flux
1 parent 930a2f4 commit 0676184

File tree

7 files changed

+7
-7
lines changed

7 files changed

+7
-7
lines changed

page.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
exports.prompts = [{
33
name: 'logic',
44
type: 'confirm',
5-
message: 'Use no-flux?'
5+
message: 'Use refast flux?'
66
}];
77

88
// answer for mod

page/src/pages/__name__/Page__Name__.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
import { withRouter } from 'react-router';<% } else { %>
33
import { render } from 'react-dom';<% } %><% if (i18n) { %>
44
import i18n from 'i18n';<% } %><% if (logic) { %>
5-
import { Component } from 'no-flux';
5+
import { Component } from 'refast';
66
import logic from './logic';
77
import './Page<%- Name %>.less';
88

proj/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
"license": "MIT",
1616
"dependencies": {<% if (i18n) { %>
1717
"i18n-helper": "~1.1.1",<% } %>
18-
"no-flux": "latest",
18+
"refast": "latest",
1919
"natty-storage": "~2.0.2",
2020
"natty-fetch": "~2.4.2",
2121
"uxcore": "latest"

proj/src/app/app.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { setup, LogicRender } from 'no-flux';
1+
import { setup, LogicRender } from 'refast';
22
import Message from 'uxcore/lib/Message';
33
import Dialog from 'uxcore/lib/Dialog';
44
import EmptyData from 'uxcore/lib/EmptyData';

proj/src/pages/demo/PageDemo.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, LogicRender } from 'no-flux';<% if (SPA) { %>
1+
import { Component, LogicRender } from 'refast';<% if (SPA) { %>
22
import { withRouter } from 'react-router';<% } else { %>
33
import { render } from 'react-dom';<% } %><% if (i18n) { %>
44
import i18n from 'i18n';<% } %>

proj/src/pages/home/PageHome.jsx

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
import { Component, LogicRender } from 'no-flux';<% if (SPA) { %>
1+
import { Component, LogicRender } from 'refast';<% if (SPA) { %>
22
import { withRouter } from 'react-router';<% } else { %>
33
import { render } from 'react-dom';<% } %><% if (i18n) { %>
44
import i18n from 'i18n';<% } %>

proj/src/pages/home/logic.js

+1-1
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ export default {
1313
// 其第一个参数会被设置为 ctx,
1414
// 它原生带了 setState/getState/getProps 三个方法
1515
// 和用户定义的 fn
16-
// fn 上挂在了在no-flux-conf.js中定义的 dialog 和 message、DB
16+
// fn 上挂在了在app.js中定义的 dialog 和 message、DB
1717
updateState(ctx, data) {
1818
ctx.setState(data);
1919
// 如果返回 false,就不会执行下面的了

0 commit comments

Comments
 (0)