Commit Graph

259 Commits

Author SHA1 Message Date
dbcf05d62c DEV: Code style improvements following review
Followup to 05ee1d1aba3d1238867b59d91b72327688358439
2019-02-19 20:02:29 +00:00
05ee1d1aba FEATURE: Added settings/translations support to theme editor UI (#7026)
- These advanced fields are hidden behind an 'advanced' button, so will not affect normal use
- The editor has been refactored into a component, and styling cleaned up so menu items do not overlap on small screens
- Styling has been added to indicate which fields are in use for a theme
- Icons have been added to identify which fields have errors
2019-02-19 12:56:01 +00:00
3bf61fca66 REFACTOR: admin-user-field-item (#7016) 2019-02-19 09:30:38 +01:00
f849169619 UX: Modifications to admin/customize layout 2019-02-07 22:27:35 -05:00
92c52c0724 FEATURE: displays report description when hovering activity metrics (#6983) 2019-02-07 13:33:05 +01:00
a48731e359 FEATURE: Support additional metadata in theme about.json (#6944)
New `about.json` fields (all optional):
 - `authors`: An arbitrary string describing the theme authors
 - `theme_version`: An arbitrary string describing the theme version
 - `minimum_discourse_version`: Theme will be auto-disabled for lower versions. Must be a valid version descriptor.
 - `maximum_discourse_version`: Theme will be auto-disabled for lower versions. Must be a valid version descriptor.

A localized description for a theme can be provided in the language files under the `theme_metadata.description` key

The admin UI has been re-arranged to display this new information, and give more prominence to the remote theme options.
2019-01-25 14:19:01 +00:00
2e59a37687 FEATURE: List unused theme components (#6924) 2019-01-23 09:20:13 +00:00
9886934ef5 DEV: fix some deprecated SVG icon refs 2019-01-22 14:42:00 -05:00
bce9c37f15 DEV: refactoring permalink-form (#6925) 2019-01-22 15:09:21 +01:00
ea8373351b DEV: refactoring ip-lookup (#6923) 2019-01-22 15:09:04 +01:00
9148f7675b FIX: better handling of resizing in stacked charts (#6921) 2019-01-22 11:20:50 +01:00
7161304842 minor cosmetic improvements to charts (#6919) 2019-01-22 10:22:41 +01:00
b1b27d9f7b FEATURE: add total on stacked-chart tooltip (#6917) 2019-01-22 09:57:34 +01:00
3e1e9fce7e FIX: better legend labels for stacked-charts (#6914) 2019-01-21 17:10:10 +01:00
b95165b838 FEATURE: adds a new chart report to track pageviews (#6913) 2019-01-21 15:17:04 +01:00
502b1316d0 DEV: s/this._super()/this._super(...arguments) (#6908) 2019-01-19 10:05:51 +01:00
880311dd4d FEATURE: Support for localized themes (#6848)
- Themes can supply translation files in a format like `/locales/{locale}.yml`. These files should be valid YAML, with a single top level key equal to the locale being defined. For now these can only be defined using the `discourse_theme` CLI, importing a `.tar.gz`, or from a GIT repository.

- Fallback is handled on a global level (if the locale is not defined in the theme), as well as on individual keys (if some keys are missing from the selected interface language).

- Administrators can override individual keys on a per-theme basis in the /admin/customize/themes user interface.

- Theme developers should access defined translations using the new theme prefix variables:
  JavaScript: `I18n.t(themePrefix("my_translation_key"))`
  Handlebars: `{{theme-i18n "my_translation_key"}}` or `{{i18n (theme-prefix "my_translation_key")}}`

- To design for backwards compatibility, theme developers can check for the presence of the `themePrefix` variable in JavaScript

- As part of this, the old `{{themeSetting.setting_name}}` syntax is deprecated in favour of `{{theme-setting "setting_name"}}`
2019-01-17 11:46:11 +00:00
1a3655b787 DEV: s/Em/Ember (#6874) 2019-01-11 17:54:23 +01:00
f9648de897 DEV: upgrades from Ember 2.13 to Ember 3.5.1 (#6808)
Co-Authored-By: Bianca Nenciu <nbianca@users.noreply.github.com>
Co-Authored-By: David Taylor <david@taylorhq.com>
2019-01-10 11:06:01 +01:00
0f09cb50e9 FIX: less fancy pages computation for browser compatibility (#6823) 2018-12-28 19:07:29 +01:00
f0027961c7 FIX: Properly reset controller of admin-user-index. (#6760) 2018-12-17 15:28:29 +01:00
1a8ca68ea3 FEATURE: Improve backup stats on admin dashboard
* Dashboard doesn't timeout anymore when Amazon S3 is used for backups
* Storage stats are now a proper report with the same caching rules
* Changing the backup_location, s3_backup_bucket or creating and deleting backups removes the report from the cache
* It shows the number of backups and the backup location
* It shows the used space for the correct backup location instead of always showing used space on local storage
* It shows the date of the last backup as relative date
2018-12-17 11:35:11 +01:00
793f1274d1 FIX: makes charts more resilient to resizing (#6758) 2018-12-12 11:11:56 +01:00
44391ee8ab FEATURE: Upload Site Settings. (#6573) 2018-11-14 15:03:02 +08:00
7fa21ce199 UX: minor tweaks to theme components selection UI (#6596) 2018-11-13 14:57:50 +01:00
9c616e0679 FIX: handles not found reports in bulk loading (#6582) 2018-11-12 13:47:24 +01:00
7c4d4331bc FEATURE: Better handling of quotation marks in site text search
It also matches 3 dots with the ellipsis symbol.
2018-11-12 13:26:41 +01:00
24e5be3f0c FIX: Relative links in translations should work with subfolder 2018-11-08 23:31:05 +00:00
ae9eddb002 FIX: don't allow adding a value containing vertical bar char to the secret list 2018-11-05 12:14:56 +01:00
c4ca5ed50b FIX: Translation error 2018-11-01 17:44:55 -04:00
ec91450aae FEATURE: Track how many user flags are agreed/disagreed/ignored
Display the percentage when reviewing flags.
2018-11-01 09:59:50 -04:00
e1e392f15b DEV: Use DiscourseIpInfo for all IP queries. (#6482)
* DEV: Use DiscourseIpInfo for all IP queries.

* UX: Use latitude and longitude for more precision.
2018-10-30 22:08:57 +00:00
af465effef FIX: prevents y-axis labels to show useless/wrong values 2018-10-30 09:58:03 +01:00
c219a5fb1e Add btn-default class to all default buttons (#6521) 2018-10-24 16:09:36 -04:00
7ac08f936e FEATURE: Upload tags from CSV (#6484) 2018-10-15 09:12:54 +01:00
27e732a58d FEATURE: allow multiple secrets for Discourse SSO provider
This splits off the logic between SSO keys used incoming vs outgoing, it allows to far better restrict who is allowed to log in using a site.

This allows for better auditing of the SSO provider feature
2018-10-15 16:03:53 +11:00
373d6e3fe6 always loadScript with a script tag (#6411)
to avoid Content Security Policy unsafe-line violations
2018-10-01 10:06:01 +08:00
681262ddce FIX: Backup logs were usually missing the first few lines
And because of debouncing, the log wasn't always reset at the beginning of a backup or restore.
2018-09-19 20:27:35 +02:00
c9a5438a88 use woman_artist emoji 2018-09-17 09:49:53 +10:00
ca28548762 feedback (see commit description for details)
* fill blank space when no theme is selected
* animate row's height in themes/components list when selecting, and hide children list
* show warning when you move to a different page and have unsaved changes
* refactor `adminCustomizeThemes.show` controller
* allow collapsing/expanding children lists
* fix a bug when adding components to a theme (changed the way it works slightly)
* a bunch of other minor things
2018-09-17 09:49:53 +10:00
a4f057a589 UX: improvements to admin theme UI 2018-09-17 09:49:53 +10:00
bb93179609 FEATURE: charts will now use tertiary color (#6342) 2018-08-30 14:56:11 +02:00
5ccf581e1e UX: Improve copying from IP lookup component.
- Removed trailing whitespaces caused by textarea.
- Clicking the Copy button will show "copied" for 2 seconds.
2018-08-26 22:20:24 +02:00
82dcc5cbfa FEATURE: makes reports loadable in bulk (#6309) 2018-08-24 15:28:01 +02:00
e0cc29d658 FEATURE: themes and components split
* FEATURE: themes and components split

* two seperate methods to switch theme type

* use strict equality operator
2018-08-24 11:30:00 +10:00
a48059fd8f FIX: uses localized string for 429 in reports (#6302)
NGINX was retuning an html page instead of single string for some users. Seems safer to not risk showing anything from server anyways.
2018-08-22 18:13:29 +02:00
774e6bc795 FIX: handle rate limiting from nginx (#6300) 2018-08-22 13:10:57 +02:00
599cebf8ad FIX: better message if request for report is rate limited (#6298) 2018-08-22 11:25:12 +02:00
dc5fddbfe6 FIX: Do not show an empty modal when an IP address is allowed or blocked. (#6265) 2018-08-20 17:37:30 +02:00
1d913d3204 UX: Allow admin to copy IP address details of a user. (#6270) 2018-08-20 17:29:20 +02:00