mirror of
https://github.com/flarum/core.git
synced 2025-06-25 20:24:56 +02:00
Replace Ember app with Mithril app
This commit is contained in:
ember
admin
.bowerrc.editorconfig.gitignore.jshintrc.travis.ymlBrocfile.js
app
app.js
bower.jsoncomponents
controllers
index.htmlrouter.jsroutes
styles
templates
.gitkeepappearance.hbsapplication.hbsbasics.hbsdashboard.hbsextensions.hbsloading.hbspermissions.hbs
views
config
package.jsontestem.jsontests
common
.bowerrc.editorconfig.gitignore.jshintrc.npmignore.travis.ymlBrocfile.js
addon
app
.gitkeep
bower.jsonadapters
authenticators
authorizers
components
application
ui
controllers
helpers
.gitkeepabbreviate-number.jsfa-icon.jsfull-time.jshighlight-words.jshuman-time.jsuser-avatar.jsuser-name.js
initializers
mixins
models
.gitkeepactivity.jsdiscussion-result.jsdiscussion.jsgroup.jsnotification.jspost-result.jspost-stream.jspost.jssubject.jsuser.js
serializers
templates
alerts.hbs
components
utils
config
index.jspackage.jsontestem.jsontests
.jshintrc
dummy
app
config
public
helpers
index.htmltest-helper.jsunit
forum
.bowerrc.editorconfig.gitignore.jshintrc.travis.ymlBrocfile.js
app
app.js
bower.jsoncomponents
application
forum-statistic.jsnotification-discussion-renamed.jsnotification-item.jsnotification.jspowered-by.jsuser-dropdown.jsuser-notifications.js
composer
discussion
index
user
controllers
index.htmlinitializers
mixins
router.jsroutes
styles
templates
.gitkeepapplication.hbs
components
.gitkeep
composer.hbsdiscussion.hbserror.hbsindex.hbsloading.hbslogin.hbssignup.hbsuser.hbsapplication
composer
discussion
post-comment.hbspost-controls.hbspost-discussion-renamed.hbs
post-header
stream-content.hbsstream-scrubber.hbsindex
user
user
views
config
package.jsontestem.jsontests
js
admin
forum
.gitignoreGulpfile.jsbower.jsonpackage.json
src
app.js
components
activity-join.jsactivity-page.jsactivity-post.jsavatar-editor.jscomposer-body.jscomposer-discussion.jscomposer-edit.jscomposer-reply.jscomposer.jsdiscussion-list.jsdiscussion-page.jsfooter-primary.jsfooter-secondary.jsheader-primary.jsheader-secondary.jsindex-page.jslogin-modal.jsnotification-discussion-renamed.jsnotification-grid.jsnotification.jspost-comment.jspost-discussion-renamed.jspost-header-edited.jspost-header-meta.jspost-header-toggle.jspost-header-user.jssettings-page.jssignup-modal.jsstream-content.jsstream-item.jsstream-scrubber.jsterminal-post.jsuser-bio.jsuser-card.jsuser-dropdown.jsuser-notifications.jsuser-page.jswelcome-hero.js
initializers
utils
lib
component.js
components
action-button.jsalert.jsalerts.jsback-button.jsbadge.jsdropdown-button.jsdropdown-select.jsdropdown-split.jsfield-set.jsloading-indicator.jsmodal.jsnav-item.jsselect-input.jsseparator.jsswitch-input.jstext-editor.jsyesno-input.js
extension-utils.jshelpers
initializers
model.jsmodels
session.jsstore.jsutils
src
Admin
Forum
views
11
js/lib/utils/mixin.js
Normal file
11
js/lib/utils/mixin.js
Normal file
@ -0,0 +1,11 @@
|
||||
export default function mixin(Parent, ...mixins) {
|
||||
class Mixed extends Parent {}
|
||||
for (var i in mixins) {
|
||||
var keys = Object.keys(mixins[i]);
|
||||
for (var j in keys) {
|
||||
var prop = keys[j];
|
||||
Mixed.prototype[prop] = mixins[i][prop];
|
||||
}
|
||||
}
|
||||
return Mixed;
|
||||
}
|
Reference in New Issue
Block a user