Joffrey JAFFEUX
eb1607bd98
DEV: local-dates refactoring ( #6692 )
2018-11-28 16:19:25 +01:00
Joffrey JAFFEUX
04558b6ca4
FIX: makes sure we have a zone ( #6686 )
2018-11-27 16:42:23 +01:00
Joffrey JAFFEUX
3e116bb14e
FIX: better handling of same offset timezones ( #6680 )
2018-11-27 15:17:23 +01:00
Joffrey JAFFEUX
75dac31323
FIX: compares timezones on utc offset and not name ( #6672 )
2018-11-27 12:36:19 +01:00
Joffrey JAFFEUX
d461794fbf
FIX: removes country from timezone indicator ( #6677 )
2018-11-27 11:52:02 +01:00
Joffrey JAFFEUX
ac556298ca
FIX: resets timezone default after callback ( #6675 )
2018-11-27 09:56:31 +01:00
Guo Xiang Tan
9cf9dee4cc
DEV: Locale dates test needs to set default moment timzone.
...
The tests were breaking on a machine configured to use SGT timezone.
2018-11-27 13:50:57 +08:00
Penar Musaraj
03deda2147
Upgrade to FontAwesome 5 (take two) ( #6673 )
...
* Add missing icons to set
* Revert FA5 revert
This reverts commit 42572ff
* use new SVG syntax in locales
* Noscript page changes (remove login button, center "powered by" footer text)
* Cast wider net for SVG icons in settings
- include any _icon setting for SVG registry (offers better support for plugin settings)
- let themes store multiple pipe-delimited icons in a setting
- also replaces broken onebox image icon with SVG reference in cooked post processor
* interpolate icons in locales
* Fix composer whisper icon alignment
* Add support for stacked icons
* SECURITY: enforce hostname to match discourse hostname
This ensures that the hostname rails uses for various helpers always matches
the Discourse hostname
* load SVG sprite with pre-initializers
* FIX: enable caching on SVG sprites
* PERF: use JSONP for SVG sprites so they are served from CDN
This avoids needing to deal with CORS for loading of the SVG
Note, added the svg- prefix to the filename so we can quickly tell in
dev tools what the file is
* Add missing SVG sprite JSONP script to CSP
* Upgrade to FA 5.5.0
* Add support for all FA4.7 icons
- adds complete frontend and backend for renamed FA4.7 icons
- improves performance of SvgSprite.bundle and SvgSprite.all_icons
* Fix group avatar flair preview
- adds an endpoint at /svg-sprites/search/:keyword
- adds frontend ajax call that pulls icon in avatar flair preview even when it is not in subset
* Remove FA 4.7 font files
2018-11-26 16:49:57 -05:00
Joffrey JAFFEUX
b0d08b5a8c
FEATURE: refactoring and better handling of special cases ( #6666 )
2018-11-26 14:20:32 +01:00
Joffrey JAFFEUX
3ff3bb6e2a
FIX: improves code, tests and utc handling of local-dates ( #6644 )
2018-11-22 17:19:24 +01:00
Joffrey JAFFEUX
c4ed353fae
DEV: removes _.map from codebase ( #6616 )
2018-11-19 10:46:46 +01:00
Gerhard Schlager
42f693adfa
Update translations
2018-11-08 23:31:05 +00:00
Sam
42572ff138
Revert font awesome 5 changes
...
We are still pushing ahead on this 100% just need a bit longer to prepare
all plugins
2018-11-08 16:12:18 +11:00
Penar Musaraj
52440415c5
Fix SVG icon in local-dates
2018-11-07 13:22:23 -05:00
Penar Musaraj
005e1ecb9b
FEATURE: Update Font Awesome to v5.4.1 and SVGs ( #6557 )
...
* First take on subsetting svg icons
* FontAwesome 5 svg subset WIP
* Include icons from plugins/badges into svg sprite subset
* add svg icon support to themes
* Add spec for SvgSprite
* Misc. SVG icon fixes
* Use FA5 svgs in local-dates plugin
* CSS adjustments, fix SVG icons in group flair
* Use SVG icons in poll plugin
* Add SVG icons to /wizard
2018-11-07 13:05:43 -05:00
David Taylor
d963f96fa4
Update translations
2018-11-05 11:16:58 +00:00
Sam
df62b48d51
UX: remove "at" word from relative dates in local dates
...
Previously we would render "Today at 2:42 PM"
Now we render "Today 2:42 PM"
This also introduces new strings so it can be properly translated
Finally it introduces tests so we can make sure this keeps working
2018-10-31 11:55:43 +11:00
Kris
c219a5fb1e
Add btn-default class to all default buttons ( #6521 )
2018-10-24 16:09:36 -04:00
Vinoth Kannan
bfa25487eb
FIX: Support for local-date email preview without time attribute
2018-10-16 16:19:43 +05:30
Vinoth Kannan
2c8c1bf188
Rename timezone attribute and add it to local date details field
2018-10-16 05:04:55 +05:30
Vinoth Kannan
5550f405d3
minor css tweaks
2018-10-12 13:44:37 +05:30
Vinoth Kannan
f07bece17f
FIX: Make time attribute as optional for local-dates bbcode
2018-10-12 05:44:00 +05:30
Vinoth Kannan
2502a3f780
FIX: email preview content not updated in second local date
2018-10-12 03:56:35 +05:30
Vinoth Kannan
f38caf30fb
Add qunit test and fix the rspec method
2018-10-12 03:32:38 +05:30
Vinoth Kannan
f54052d796
minor css tweak on local dates style
2018-10-12 03:15:42 +05:30
Vinoth Kannan
ee9d4f5516
UX: Make time attribute optional and set default timezones
2018-10-12 03:11:57 +05:30
Vinoth Kannan
8cb59b9757
UX: Use dashed underline for local dates
2018-10-12 02:32:44 +05:30
Vinoth Kannan
b54d940182
FIX: Do not use force timezone value in display timezone
2018-10-11 19:49:40 +05:30
Vinoth Kannan
6b7bb543af
SPEC: Check data-email-preview existance on cooked
2018-10-10 11:50:05 +05:30
Vinoth Kannan
e8e5276f30
Remove extra semicolon
2018-10-10 04:29:34 +05:30
Vinoth Kannan
98865e86da
DEV: Use simple UTC datetime format for local date inner text
2018-10-10 03:49:49 +05:30
Vinoth Kannan
7a6c227fa4
UX: Use local timezone for insert date modal result
2018-10-09 20:15:32 +05:30
Joe
9d2f855790
UX: changes CSS class added to local dates
2018-10-09 15:04:42 +08:00
Gerhard Schlager
b0a383561e
FEATURE: Add Lithuanian locale
2018-09-27 05:26:38 +02:00
Vinoth Kannan
16d7132ba1
SPEC: Check date and time values separately
2018-09-17 18:39:59 +05:30
Vinoth Kannan
b13b6e30d6
DEV: Skip converting local dates as json
2018-09-17 18:18:43 +05:30
Guo Xiang Tan
53d34c69fc
Fix lint.
2018-09-17 10:26:48 +08:00
Joffrey JAFFEUX
4b3c2490c3
FIX: allowes forcing timezone displayed in local-dates
...
Use case being you might want to always display a specific timezone, but still have the possibility to show the tooltip with various timezones.
2018-09-17 10:06:57 +08:00
Guo Xiang Tan
89e5d91f0a
FIX: Tooltip should use format option instead of defaulting to "LLL".
2018-09-07 11:32:44 +08:00
Guo Xiang Tan
def4fbaf01
UX: Join dates in tooltips using line breaks.
2018-09-07 11:24:05 +08:00
Vinoth Kannan
e894f895d4
DEV: Extract dates before post_process_cooked event
2018-09-07 00:31:45 +05:30
Vinoth Kannan
f0dab5a5e4
DEV: Add local_dates post custom field
2018-09-06 23:43:24 +05:30
Neil Lalonde
5a4d6f9656
Update translations
2018-08-30 09:40:31 -04:00
Joffrey JAFFEUX
3ed9533066
FEATURE: adds support for seconds in local-dates ( #6339 )
2018-08-30 12:38:05 +02:00
Joffrey JAFFEUX
5afb09ebbe
FEATURE: displays "today" if event is... today ( #6336 )
2018-08-30 11:25:36 +02:00
Joffrey JAFFEUX
89e7d95cc7
SECURITY: prevents XSS in local-dates
2018-08-27 11:19:30 +02:00
Neil Lalonde
6d79be29f2
Update translations
2018-08-21 11:28:13 -04:00
Neil Lalonde
0cf98f1ad9
Revert "Update translations"
2018-08-21 11:17:53 -04:00
Neil Lalonde
3c6d5c8241
Update translations
2018-08-21 10:36:59 -04:00
Peter Borsa
a6820d8767
Add Hungarian locale ( #6260 )
2018-08-13 01:02:35 +02:00
Neil Lalonde
5c248e3a7a
Update translations
2018-08-07 12:05:45 -04:00
Neil Lalonde
58ecc84d61
Update translations, excluding Japanese and config/locales/client.zh_TW.yml due to errors
2018-07-26 13:01:39 -04:00
Gerhard Schlager
d3e04daa95
Add Swahili language
2018-07-16 18:11:38 +02:00
Joffrey JAFFEUX
c580a39d49
FIX: infers time from tz creator to ensure day shown is the one expected
2018-07-16 01:04:50 +02:00
Kris
b79fedd540
Streamlining some breakpoint mixins
2018-07-12 16:39:16 -04:00
Joffrey JAFFEUX
6e3a2197f8
FIX: removes UTC conversion when date and no time
2018-07-05 10:58:53 +02:00
Joffrey JAFFEUX
d12194c438
FIX: uses a non cooked to emoji arrow for local dates ranges
2018-07-04 23:56:56 +02:00
Jeff Wong
61955d2aa1
FIX: only change to time format when dealing with today's time
2018-07-02 16:50:15 -07:00
Joffrey JAFFEUX
acd1693dac
FEATURE: simplifies the same day hour to hour use case in local dates
2018-06-25 22:16:07 +02:00
Neil Lalonde
072659c22a
Update translations
2018-06-21 10:34:09 -04:00
Joffrey JAFFEUX
60ff0e9b8c
missing prettified files
2018-06-15 18:42:20 +02:00
Joffrey JAFFEUX
41b71b58a9
UX: experimental ranges for local dates
2018-06-11 13:16:03 +02:00
Neil Lalonde
79854198c1
Update translations
2018-06-08 10:27:53 -04:00
Joffrey JAFFEUX
174d392e5a
DEV: adds prettier ( #5956 )
...
Run `prettier --write "app/assets/stylesheets/**/*.scss" "plugins/**/*.scss"` after making sure you installed it with `yarn`
It's recommended to configure your editor to run prettier on file save.
2018-06-08 11:49:31 +02:00
Joffrey JAFFEUX
a58fb817c0
FIX: removes buggy/unnecessary local-dates margin
2018-06-06 15:28:56 +02:00
Neil Lalonde
dee9af2877
Update translations
2018-05-31 17:03:38 -04:00
Joffrey JAFFEUX
e32ccde72d
FIX: uses mixin instead of mobile file for local-dates modal
2018-05-30 19:14:31 +02:00
Joffrey JAFFEUX
0c3a0b59cd
unused code
2018-05-30 19:07:08 +02:00
Joffrey JAFFEUX
c3ec758107
UX: improves local-dates modal form UI
2018-05-30 19:05:41 +02:00
Joffrey JAFFEUX
8128cbd7db
UX: adds subtitle support for modals
2018-05-30 17:14:00 +02:00
Gerhard Schlager
b7bf0e96aa
Update translations
2018-05-29 22:01:57 +02:00
Gerhard Schlager
864ada835b
FEATURE: Add Bulgarian language
2018-05-29 21:07:17 +02:00
Joffrey JAFFEUX
42b2bfe262
FIX: adds quotes around format when creating a local date
2018-05-28 11:05:37 +02:00
Joffrey JAFFEUX
54a9073d94
FIX: do not cook local date without attributes
2018-05-24 10:56:04 +02:00
Joffrey JAFFEUX
391ee4dfbb
FIX: makes sure email-preview is set
2018-05-23 13:44:39 +02:00
Joffrey JAFFEUX
7285e7fbba
FIX: uses tooltip to display local dates previews
2018-05-22 13:58:06 +02:00
Sam
cd4250737a
SECURITY: remove alert dialog from local dates
2018-05-21 12:20:33 +10:00
Joffrey JAFFEUX
d57a17879a
fix spec and simplify code
2018-05-18 17:13:58 +02:00
Joffrey JAFFEUX
9a5aa39740
FIX: improves discourse-local-dates rendering in emails
2018-05-18 15:35:37 +02:00
Gerhard Schlager
01b0d9d235
Update translations
2018-05-17 00:08:33 +02:00
Jeff Wong
4bd3362d0b
Fix: copyedit plugin to feature for built ins
2018-05-15 17:36:08 -07:00
Jeff Wong
19605e8b0b
Feature: Hide plugins that ship with core from plugins panel
2018-05-15 15:50:17 -07:00
Sam
bb377e2021
delete swap files
2018-05-05 15:28:07 +10:00
Neil Lalonde
cc701d2f7c
better fix
2018-05-04 14:45:32 -04:00
Neil Lalonde
b4f6beebd1
FIX: recurring attribute was undefined on local-dates cooked posts
2018-05-04 14:22:37 -04:00
Gerhard Schlager
7bf01fd769
Update translations
2018-05-04 10:58:21 +02:00
Gerhard Schlager
88217ca0b6
Configure Transifex for local-dates plugin
2018-05-04 10:13:15 +02:00
Sam
2ed7b6e459
lots of missing files
2018-05-04 16:54:31 +10:00
Sam
1fadc3d8fe
missed this file
2018-05-04 16:18:33 +10:00
Sam
c81854ad14
FEATURE: Rename discourse-cronos to discourse-local-dates
2018-05-04 16:11:50 +10:00