1
0
mirror of https://github.com/flarum/core.git synced 2025-07-21 08:41:17 +02:00
Commit Graph

117 Commits

Author SHA1 Message Date
zinsserzh
3517d4e86c Add isEmpty function to ItemList (#1218)
* Add isEmpty function to ItemList

* Fix coding style to be consistent.

* Recompiled app.js for both js/admin/ and js/forum/
2017-08-10 11:37:00 +09:30
Franz Liedke
c7767e45b5 Remove faulty default value
Fixes #1210.
2017-07-27 00:55:33 +02:00
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
1af83fad99 Only display "show language selector" toggle if there is more than one language 2017-07-22 11:47:50 +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
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
4c2070c192 Fix indentation 2017-03-12 23:05:04 +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
Franz Liedke
49a1873ce2 Recompile dist JS 2017-02-04 00:08:16 +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
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
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
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
Toby Zerner
5ca9b43b7e Convert EditCustomCssModal into a SettingsModal 2016-06-03 14:51:51 +09:30
Toby Zerner
9810952d1d Recompile dist JS using latest version of babel 2016-06-03 10:57:42 +09:30
Toby Zerner
971a1a5cdd Make discussion "hidden" state more explicit
Previously a discussion was classified on the front-end as "hidden" if it had zero posts. This was technically a correct statement as the discussion would not be visible to the public... but it also meant that a discussion with zero posts (like one awaiting approval) was impossible for the OP to delete/hide (i.e. indicate that they made a mistake and they don't want the discussion to be approved).
2016-05-28 09:43:21 +09:30
Toby Zerner
ed2257efb0 Remove space characters from in-between list items
They were causing some weirdness with spacing between redraws.
2016-05-28 09:38:58 +09:30
Toby Zerner
8d26d2ee8f Improve permissions page
- Introduce the concept of "required permissions" - basically a permission dependency tree. In order for a group to be granted one permission, they must also have another.
- Improve redraw performance by not building dropdown menu contents until dropdown is opened

ref #904
2016-05-27 12:42:19 +09:30
Davis
6061f404f9 Fix Permission Name (#965) 2016-05-26 23:54:25 +09:00
Toby Zerner
d2bce5d756 Refactor the web app bootstrapping code
- All custom JS variables are now preloaded into the `app.data` object, rather than directly on the `app` object. This means that admin settings are available in `app.data.settings` rather than `app.settings`, etc.
- Cleaner route handler generation
- Renamed ConfigureClientView to ConfigureWebApp, though the former still exists and is deprecated
- Partial fix for #881 (strips ?nojs=1 from URL if possible, so that refreshing will attempt to load JS version again)
2016-05-26 19:04:24 +09:30
Franz Liedke
e07b5eb8eb Recompile dist JS 2016-05-23 22:54:48 +09:00
Davis
e4a758dfdf Show post IP address in meta dropdown. closes #956 closes #657 2016-05-21 22:02:42 +09:30
Toby Zerner
edbc1164d1 Automatically support basic HTML tags in translations
This allows front-end translations to use basic (attributeless) HTML tags freely, without the need for the translator call to supply a matching vdom element. Translations can thus make use of styling (<em>, <code>, etc.) as they see fit. The translator call can still optionally supply a vdom element to substitute in more complex tags where necessary (e.g. hyperlinks).

/cc @dcsjapan
2016-05-21 20:25:32 +09:30
Franz Liedke
3e8cffeb90 Add a heading to the admin mail page 2016-05-15 20:46:58 +09:00
Franz Liedke
e273796e1c Admin menu: Move email tab closer to the top 2016-05-15 20:31:23 +09:00
Franz Liedke
65dfb749c0 Tweak structure of mail settings page
Refs #258 and #933.
2016-05-15 20:28:05 +09:00
Franz Liedke
57989e32a2 Fix translation keys 2016-05-15 12:08:11 +09:00
Franz Liedke
98b68c6c45 Remove unused import 2016-05-13 00:25:11 +09:00
David Sevilla Martín
1934d51b8a Changed "Advanced" to "Mail"
+ Added labels above inputs
-  Removed Placeholders
2016-04-23 09:19:02 -04:00
David Sevilla Martín
25b3439d2e Added "Advanced" page on admin & SMTP settings
Refs #258
2016-04-17 09:54:41 -04:00
Toby Zerner
6a0ea61c55 Fix buttons being given incorrect title 2016-04-08 13:38:50 +09:30
Toby Zerner
2a0bca218a Retain global page components between routes 2016-04-08 13:38:16 +09:30
Franz Liedke
38e0fc53ab Improve Button component to only show tooltip if textual content is available 2016-04-01 09:51:18 +09:00
Toby Zerner
b89bfc5194 Fix settings not automatically showing when an extension is enabled 2016-03-31 17:11:23 +10:30
Franz Liedke
9df3bbae53 Only update human time objects every ten seconds 2016-03-30 19:47:40 +09:00
Franz Liedke
630215b742 Show full button content as tooltip
Refs #494.
2016-03-30 10:04:08 +09:00
Franz Liedke
43c4c1fe9f extractText: Avoid unnecessary variable 2016-03-30 09:59:54 +09:00
Franz Liedke
c67d6c8c61 Revert "Use GroupBadge component since we already have that"
This reverts commit f6e2a7a7e5.
2016-03-29 22:46:23 +09:00
Franz Liedke
f6e2a7a7e5 Use GroupBadge component since we already have that 2016-03-29 22:39:26 +09:00
Franz Liedke
edc15d3163 Remove unused mixin imports 2016-03-29 22:32:15 +09:00
Franz Liedke
adcda98f30 Prevent humanTime helper to generate future times
Fixes #592.
2016-03-29 22:23:11 +09:00
Franz Liedke
e00661125a Use group ID instead of name in generated class names
This fixes #847.
2016-03-29 22:08:44 +09:00
Toby Zerner
0c624f6c45 Oops, back to Mithril 0.2.3! 2016-03-21 21:25:00 +10:30
Toby Zerner
b45bd3a581 Upgrade to flarum-gulp 0.2.0 / Babel 6 2016-03-18 09:31:01 +10:30
Sajjad Hasehmian
cba1868d9f Update Mithril 2016-03-16 00:48:01 +03:30