1
0
mirror of https://github.com/flarum/core.git synced 2025-07-22 17:21:27 +02:00

Massive JavaScript cleanup

- Use JSX for templates
- Docblock/comment everything
- Mostly passes ESLint (still some work to do)
- Lots of renaming, refactoring, etc.

CSS hasn't been updated yet.
This commit is contained in:
Toby Zerner
2015-07-15 14:00:11 +09:30
parent 4480e0a83f
commit ab6c03c0cc
220 changed files with 9785 additions and 5919 deletions
.eslintrc
js
admin
src
bower.json
forum
Gulpfile.js
src
ForumApp.jsapp.js
components
Activity.jsActivityPage.jsAvatarEditor.jsChangeEmailModal.jsChangePasswordModal.jsCommentPost.jsComposerBody.jsComposerButton.jsDeleteAccountModal.jsDiscussionComposer.jsDiscussionHero.jsDiscussionList.jsDiscussionListItem.jsDiscussionPage.jsDiscussionRenamedNotification.jsDiscussionRenamedPost.jsDiscussionsSearchSource.jsEditPostComposer.jsEventPost.jsFooterPrimary.jsFooterSecondary.jsForgotPasswordModal.jsHeaderPrimary.jsHeaderSecondary.jsIndexPage.jsJoinedActivity.jsLoadingPost.jsLogInModal.jsModal.jsNotificationGrid.jsNotificationList.jsNotificationsDropdown.jsNotificationsPage.jsPostEdited.jsPostMeta.jsPostPreview.jsPostStream.jsPostStreamScrubber.jsPostUser.jsPostedActivity.jsReplyComposer.jsReplyPlaceholder.jsSearch.jsSearchSource.jsSessionDropdown.jsSettingsPage.jsSignUpModal.jsTerminalPost.jsTextEditor.jsUserBio.jsUserCard.jsUserPage.jsUsersSearchSource.jsWelcomeHero.jsactivity-page.jsavatar-editor.jschange-email-modal.jschange-password-modal.jscomment-post.jscomposer-body.jscomposer.jsdelete-account-modal.jsdiscussion-composer.jsdiscussion-hero.jsdiscussion-list-item.jsdiscussion-list.jsdiscussion-page.jsdiscussion-renamed-notification.jsdiscussion-renamed-post.jsdiscussions-search-results.jsedit-composer.jsevent-post.jsfooter-primary.jsfooter-secondary.jsforgot-password-modal.jsform-modal.jsheader-primary.jsheader-secondary.jsindex-nav-item.jsjoined-activity.jslogin-modal.jsnotification-grid.jsnotification-list.jsnotification.jsnotifications-page.jspost-header-edited.jspost-header-meta.jspost-header-toggle.jspost-header-user.jspost-loading.jspost-preview.jspost-scrubber.jspost-stream.jspost.jsposted-activity.jsreply-composer.jsreply-placeholder.jssearch-box.jssettings-page.jssignup-modal.jsterminal-post.jsuser-bio.jsuser-card.jsuser-dropdown.jsuser-notifications.jsuser-page.jsusers-search-results.jswelcome-hero.js
initializers
utils
lib
src/Locale
views

@@ -3,13 +3,21 @@ var gulp = require('flarum-gulp');
gulp({
files: [
'node_modules/babel-core/external-helpers.js',
'../bower_components/loader.js/loader.js',
'../bower_components/es6-promise-polyfill/promise.js',
'../bower_components/es6-micro-loader/dist/system-polyfill.js',
'../bower_components/mithril/mithril.js',
'../bower_components/jquery/dist/jquery.js',
'../bower_components/jquery.hotkeys/jquery.hotkeys.js',
'../bower_components/color-thief/js/color-thief.js',
'../bower_components/moment/moment.js',
'../bower_components/bootstrap/dist/js/bootstrap.js',
'../bower_components/bootstrap/js/affix.js',
'../bower_components/bootstrap/js/dropdown.js',
'../bower_components/bootstrap/js/modal.js',
'../bower_components/bootstrap/js/tooltip.js',
'../bower_components/bootstrap/js/transition.js',
'../bower_components/spin.js/spin.js',
'../bower_components/spin.js/jquery.spin.js',
'../bower_components/fastclick/lib/fastclick.js'