erasaur / binary Goto Github PK
View Code? Open in Web Editor NEWA social network for debate, made with Meteor
Home Page: https://binary10.co
License: MIT License
A social network for debate, made with Meteor
Home Page: https://binary10.co
License: MIT License
e.g lifecycle hooks
Hi,
I saw there is a Follow button on each question, but I can't find a place which list all the questions I am following. Would it be ok to add it to the user's following tab?
Several consequences as a result:
Both can be relatively easily worked around but we should think of a way to do the transition better. (Maybe we can have a separate template for the single comment page?)
See https://github.com/meteor/meteor/blob/devel/packages/accounts-base/accounts_server.js. The onCreateUser hooks are run before validation happens (e.g duplicate email).
currentTab
can be a reactiveVar on a parent template (e.g pageLayout
), with child templates accessing the var with template extension (template.get('currentTab').get()
) rather than part of controller stateUsing a session to store the token and immediately calling done
when the link is clicked (onResetPasswordLink
and onEmailVerificationLink
) is not exactly the best way. Also, customize the urls for these links (e.g remove the #
)
E.g tracking pageviews and clicks. Eventually, we would want to display analytics to topic creators as well -- maybe have some metrics about the response to the topic.
Related to #2
Edit: This is an untested pattern but it seems like it might work.
Even for things like showing the list of comments in a topic, subscribing at the route-level is problematic. When infinite scrolling causes Session.get('itemsLimit')
to change, the layout-related calls (e.g this.render('nav', { to: 'nav' })
) are re-run so the entire page 'flashes' and shoots back up to the top. Handling the topic comments as a component is a convenient way to fix this.
Alternatively, for things like topic lists that don't seem to fit well within template subs (or that we want to handle with subs-manager or fast-render), we could store the limit on the controller and handle subscriptions as usual. The drawback is that rendering any templates outside of this.ready()
block in the action hook will cause the page 'flash' issue so there is less flexibility with the loading template.
Maybe use nested layouts, where the wrapping layout won't rerun? (e.g things like the container and the nav shouldn't have to be rerendered)
Also preserve original value
Toastr errors are quick and easy but not the greatest looking.
As of now including the signup modal in the dom by default is problematic since it can be easily triggered even when the user is logged in. With a package that handles modals with Blaze.render
we can make things a bit cleaner and make it harder to accidentally trigger a modal we shouldn't see.
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.