1
0
mirror of https://github.com/flarum/core.git synced 2025-07-18 15:21:16 +02:00
Commit Graph

706 Commits

Author SHA1 Message Date
Toby Zerner
0b1a76ec94 And remove unused import 2017-07-22 12:31:23 +09:30
Toby Zerner
98663b74b7 Fix missed instance of back button tooltip 2017-07-22 12:30:55 +09:30
Toby Zerner
5d1f204ffb Oops, forgot to correct test code 2017-07-22 12:29:03 +09:30
Toby Zerner
bf93ae652f Recompile JS 2017-07-22 12:08:17 +09:30
Toby Zerner
2516be8b22 Simplify global back button
The behaviour is not overly intuitive, and the icon wasn't helping
(hamburger icon usually means "menu"). Now the back button always goes
back to the index, no matter where you are, and there's a tooltip that
says "Back to discussion list".
2017-07-22 12:08:09 +09:30
Toby Zerner
1af83fad99 Only display "show language selector" toggle if there is more than one language 2017-07-22 11:47:50 +09:30
Toby Zerner
20006b395d Clean up appearance of Rename Discussion modal
Also fix infinite loading if there's a validation error.
2017-07-22 11:47:04 +09:30
Toby Zerner
1e2753502b Use default dropdown appearance for sort dropdown 2017-07-22 11:46:16 +09:30
Toby Zerner
aabb55e1dd Remove fa-fw class from all icons
Often it is desirable to NOT have this class applied, and it is easier
to apply its styles if needed rather than un-apply it.
2017-07-22 11:45:42 +09:30
David Sevilla Martín
204dedb59b Use dropdown for discussion list order input (#1191)
* Use dropdown menu for index select input

* Fix space before `:`
2017-07-17 13:40:35 +09:30
Toby Zerner
edf693bde1 Revise Remember Me checkbox appearance
Use a generic checkbox instead of a switch — it's more familiar and accessible.

Signed-off-by: Toby Zerner <toby.zerner@gmail.com>
2017-07-08 22:25:24 +09:30
Toby Zerner
53aa4b94ba Update dependencies 2017-07-08 21:50:54 +09:30
David Sevilla Martín
acb92282a5 Add viewUserList permission (#1190) 2017-05-24 22:06:56 +09:30
Franz Liedke
4c71f193ef Recompile dist JavaScript 2017-05-18 09:14:06 +02:00
Daniël Klabbers
31ca6dad1b Update UserControls.js
Possibly c/p mistake with argument name. UserControls using argument discussion in controls method.
2017-05-17 14:07:38 +02:00
Daniël Klabbers
24d224c986 Update mixin.js
Typo fixed
2017-05-09 13:58:07 +02:00
issyrocks12
70fd50314d Change to switch to fit style 2017-05-04 22:36:37 +02:00
Timotheus Pokorra
7c33befc48 Admin: fix default language selector
the binding of the control to the value was missing
fixes #1164
2017-05-01 18:46:12 +02:00
Franz Liedke
c48ff264e8 Prevent reverting editable user bio on click
Turns out the click handler was bound to the surrounding element
rather than the one that wraps the rendered bio when it is not
being edited.

Fixes #1145.
2017-03-17 22:14:51 +01:00
Franz Liedke
4c2070c192 Fix indentation 2017-03-12 23:05:04 +01:00
Franz Liedke
b68d7c6107 Fix indentation 2017-03-12 23:03:46 +01:00
David Sevilla Martín
1d047909e8 Add option to hide the language selector (#1106)
* Added option to hide the language selector in the header
* Added `hide_language_selector` Switch to BasicsPage
* Added `hideLanguageSelector` property to ForumSerializer
* Apparently fixed the "Add Extension" button locale.... someone must not have compiled their changes :P

* Changed hideLanguageSelector (and such) to showLanguageSelector

* Change `core.admin.basics.show_language_selector_heading` to be `_label`

* Change showLanguageSelector in ForumSerializer to be boolean, default: true

* Ooops! Remove console.log 🤦‍♂️
2017-03-07 10:04:44 +10:30
Toby Zerner
747138402d Merge pull request #1131 from flarum/866/affixSidebar-resize
Affix sidebar when window is resized
2017-03-03 15:24:13 +10:30
Franz Liedke
47ca69d131 Fix nesting of rename_discussion translations
Refs flarum/flarum-ext-english#98.
2017-02-28 22:42:41 +01:00
Franz Liedke
2f80e93874 Rename translation key 2017-02-26 23:47:20 +01:00
Franz Liedke
1836923959 Rename modal component 2017-02-26 23:44:57 +01:00
Franz Liedke
71a510abe0 Compile dist JS 2017-02-17 00:19:33 +01:00
Franz Liedke
a5e6ae6afc Affix sidebar when window is resized
Fixes #866.
2017-02-17 00:08:20 +01:00
Franz Liedke
49a1873ce2 Recompile dist JS 2017-02-04 00:08:16 +01:00
renyuneyun
a04ca29ae5 Allow to manually activate users (#1093)
* Allow to manually activate users

* Use resources instead of hard-coded strings
2017-02-03 21:13:32 +01:00
David Sevilla Martín
b40567559d Turn "Rename Discussion" dialog into a modal, closes #616 (#1083)
* Changed "Rename Discussion" prompt into a modal.
* Added DiscussionRenameModal component (Modal)
* Changed DiscussionControls.renameAction to use the modal (I may have removed the ability to return a promise)

* Added punycode.js back to js/forum dist

* Fixed some formatting, removed some unnecessary variables
2017-02-03 20:56:28 +01:00
Franz Liedke
b21859286a Merge pull request #1009 2017-02-03 18:44:03 +01:00
Miles Cellar
e5dd75db94 Make Add Extension modal's title translatable 2016-12-27 01:52:54 +01:00
Sajjad Hashemian
01051c1708 Remember checkbox (#1075)
* Add session option to Rememberer class

* Update session login function to allow send additional data

* Add Remember me checkbox

* Cleanup login modal
2016-11-29 18:02:12 +10:30
Toby Zerner
d248e8abf7 Add punycode. ref #1049 2016-11-29 16:35:45 +10:30
David Sevilla Martin
2880f17983 Added search input types to 3 inputs total, closes #726
* Added type search to search bar (forum)
* Added CSS `box-sizing: inherit` to search <input> because bootstrap styles mess up the search box
* Added type color to both color settings in appearance (admin)
2016-11-27 19:39:47 -05:00
Sajjad Hashemian
629bf0f030 Fix syntax errors when compiling js files 2016-11-08 00:32:44 +03:30
Toby Zerner
14ee7614ac Remove duplicated code 2016-09-03 23:14:17 +09:30
Sheldon Fernandes
ed0691a071 Automatically focus on composer textarea on iOS. closes flarum/core#995 2016-09-03 23:11:56 +09:30
David Sevilla Martin
e33c33a58f Fixed error when user is not logged in; fixed notification count not updating when clicking home link (added m.redraw) 2016-08-30 10:35:31 -04:00
Toby Zerner
f07abda4e6 Make search dropdown filtering case-insensitive. closes flarum/core#961 2016-08-28 00:00:20 +09:30
Toby Zerner
883e1188b4 Fix post header items sometimes getting out of order. closes flarum/core#975
Interesting bug. Turns out that the JSX for the post header item list was producing m('ul', null, [children]), as you would expect. But Mithril 0.1.x interprets the null as another child rather than an attributes splat. This results in an empty text node being added to the DOM, which mucks up Mithril's diffing algorithm when it tries to add/move the items that we provide in the children array. The workaround is to not use JSX so we can get rid of that null/empty text node. This behaviour has been fixed in Mithril 1.0 so we will be able to remove the workaround.
2016-08-27 23:41:54 +09:30
Toby Zerner
c80eb02c51 Update bower deps 2016-08-27 23:37:16 +09:30
Toby Zerner
cf7e132a8a Avoid JSX to workaround Mithril 0.1.x weirdness. closes flarum/core#975 2016-08-27 23:33:34 +09:30
David Sevilla Martin
f0e96a0002 Bringing back those "use strict";. Sorry 'bout that 2016-07-28 10:47:09 -04:00
David Sevilla Martin
d74367141e Commiting dist/app.js 2016-07-26 11:34:47 -04:00
David Sevilla Martin
f79d0eea19 Refresh notifications with discussion list refresh
* When clicking "refresh" button for discussion list (on homepage) refresh notifications
* When clicking forum title (on homepage) refresh notifications
2016-07-26 11:25:05 -04:00
Franz Liedke
85dd911d4d Recompile dist file 2016-06-14 23:09:02 +09:00
Franz Liedke
fb7d1968c5 Remove unused import 2016-06-13 21:09:16 +09:00
Toby Zerner
79fff37bce Add ability to upload a logo + favicon, and add custom header HTML
Closes #268. Not going to bother with a preview SVG or anything fancy for now – we can think about that as part of #746. Right now it's just good to finally get this functionality in!

Also need to think about apple-touch-icon, msTile stuff, and social sharing image. Not sure if this is all too much for core, but it's definitely too much for the current Appearance page layout. Again, something to think about as part of #746.

Code is a bit rough around the edges, but figured there's not much point in using the command bus properly since #870.
2016-06-04 18:05:46 +09:30