qnub / meteor-accounts-react-material-ui Goto Github PK
View Code? Open in Web Editor NEWLicense: Other
License: Other
Firstly, thanks very much for contributing this component/package -- it seems to be exactly what I'm looking for; although, I'm running into a couple of issues utilizing it that I'm hoping you can help me with.
I'm using Meteor with React and React-Router. I've setup a route for the Login like so:
<Router history={ReactRouter.lib.BrowserHistory.history}>
<Route name="home" path="/login" component={Accounts.ui.LoginFormSet}/>
</Router>
Using Material-UI, I have constructed a Toolbar within which I have included the Login and Logout buttons for this Meteor-Accounts-React-Material-UI package:
injectTapEventPlugin();
TopBar = React.createClass({
mixins: [ReactMeteorData],
getInitialState: function() {
return {};
},
getMeteorData() {
return {
currentUser: Meteor.user()
};
},
childContextTypes: {
muiTheme: React.PropTypes.object
},
getChildContext: function() {
return {
muiTheme: ThemeManager.getMuiTheme(Styles.LightRawTheme)
};
},
render: function () {
return (
<Toolbar>
{this.data.currentUser ? <RaisedButton label="Log Out" onClick={Meteor.logout()} /> : <RaisedButton label="Log In" linkButton={true} href="/login" />}
</Toolbar>
);
}
});
When I click the Log In button, I'm routed to the Log In screen as expected.
I'm experiencing two issues:
It would actually be great to see a sample application like the Meteor-React To Do list that incorporates this meteor-accounts-react-material-ui component.
Thank you in advance!
Hi,
I really like your package, but unfortunately its currently using old versions of react (loaded in meteor) and material-ui (v0.13.x).
Would it be possible to upgrade to the latest React (v15.1.0) loaded from npm, and the current material-ui (v.15.0) ?
I'm a newbie at meteor and javascript, but if I can help, please let me know.
I really like your this component, but I still inexperienced, but depending on your method I use this component, it does not appear on the page.I hope you can publish a detailed usage
in Package.js
DEFAULT_LANGUAGES = ['ar', 'zh_cn', 'ca', 'cs', 'da', 'de', 'el', 'en', 'es',
'es_ES', 'fa', 'fr', 'he', 'hr', 'hu', 'id', 'it', 'ja', 'kh', 'ko', 'pl', 'pt', 'pt_PT', 'ro',
'ru', 'sk', 'sl', 'sv', 'tr', 'uk', 'vi', 'no_NB', 'nl', 'zh_tw', 'zh_hk'];
missing 'zh-cn'
A declarative, efficient, and flexible JavaScript library for building user interfaces.
๐ Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. ๐๐๐
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google โค๏ธ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.