Commit Graph

2860 Commits

Author SHA1 Message Date
Samuel Georges 4db7cff62f Remove custom font
After some testing, sans-serif font appears to behave consistently across Windows and Mac
2016-05-24 05:46:20 +10:00
Samuel Georges ef290df3af Custom CSS classes for styling elements
Define allowed tags, allowed empty, do not wrap, remove tags
Refs #2005
2016-05-24 05:33:32 +10:00
Samuel Georges 7563670c49 Minor styling fixes on the table control 2016-05-23 17:32:20 +10:00
Jérémy Gaulin be9d65f372 Fix plugin management page - Ref #907 (#2034)
* Disable activate/deactive and delete buttons after a successful AJAX delete request.

* Allow to load disabled plugin language files for display.
2016-05-23 05:05:19 +10:00
Jérémy Gaulin 09fd6ff74b Add missing LATIN_MAP preset chars and allow specific map based on configured locale (#2031)
Allow specific maps to override the defaults one based on configured backend locale.
Fixes #2026
2016-05-22 09:31:35 +10:00
Samuel Georges e3f777b192 Native Rich Editor messages should remain multi-lingual
Refs #2005
2016-05-22 07:41:38 +10:00
Samuel Georges af19341c01 "Quick Uploads" are dumped in a special folder via media manager
Refs #2005
Remove the active state on media manager table data for consistency with other view modes
2016-05-22 07:24:04 +10:00
Samuel Georges 2013789b0a Merge pull request #2033 from gabsource/fix/transcode-filter-undefined-class
Fix advanced import error  Class StreamFilterTranscode not found
2016-05-22 06:47:02 +10:00
Jérémy Gaulin 3556fe2869 Fix class name used on stream_filter_register to match the refactored class name. 2016-05-21 22:35:29 +02:00
Samuel Georges bcacc326bd Update Froala to latest 2016-05-22 05:21:19 +10:00
Jérémy Gaulin e3812036da Allow usage of namespace alias in the code section a a CMS page, with
unit test. Fixes #2006
2016-05-21 16:27:15 +02:00
Samuel Georges a33cf2ac8c Unify z-index's across all controls
Refs #1021
2016-05-21 15:17:14 +10:00
Samuel Georges aae177e7bc Create "windex" z-index window manager
Convert all storm UI z-indexes to variables
Refs #1021
2016-05-21 14:42:10 +10:00
Samuel Georges f936ff64f8 Continuity styling changes
Remove default predefined links from rich editor
2016-05-21 13:51:11 +10:00
Samuel Georges 79446aa464 Refit the media manager implementation
Refs #2005
2016-05-21 12:38:04 +10:00
Samuel Georges 5a63fb292a Combine media manager global with the core october.js file
This should save 1 extra request, although it is less modular we can address it again later
2016-05-21 12:37:21 +10:00
Samuel Georges 67e05bc976 Remove redactor - Refs #2005 2016-05-21 08:16:40 +10:00
Samuel Georges 115fc0c1ef Refit the Block UI logic
Previously contained in richeditor (this is a bit messy, rich editor should be generic), the block UI logic has been moved to its own "figures" plugin
2016-05-21 06:58:34 +10:00
Samuel Georges 85decc4086 Style tweaks 2016-05-21 06:57:12 +10:00
Jérémy Gaulin de3fdbd268 Fixed AbstractCSV (not imported) to CsvWriter (imported subclass) 2016-05-20 17:40:25 +02:00
Samuel Georges 9ad20d3b8d Continuity styling changes
Remove active states from inspector
Make the close (X) icons larger on CMS tabs and Components
2016-05-20 08:33:23 +10:00
Samuel Georges 066b918d39 Various styling changes
Removed the harsh title on popups
Anything considered an "overlay" now uses a box shading effect
The account menu now uses lighter shading
Introduced highlight states, allowing hover + active to behave independently
2016-05-20 06:33:16 +10:00
Samuel Georges 091705e70e Fixes scrollbars appearing on wide images 2016-05-20 05:20:13 +10:00
Samuel Georges d02a922868 Add custom toolbar button support
Style toolbar
Refs #2005
2016-05-20 04:35:40 +10:00
Samuel Georges a6ac4f50ce Create proposed Editor settings
Prevent Froala files from being added to git
2016-05-19 13:13:31 +10:00
Samuel Georges 4789616190 Initial switch from Redactor to Froala 2016-05-19 13:13:30 +10:00
Samuel Georges 3eb47e679b Remove custom font
After some testing, sans-serif font appears to behave consistently across Windows and Mac
2016-05-19 13:12:52 +10:00
Samuel Georges 61970413a8 More backend styling
Tone down the shading in some areas
Reduce intensity of button icons
2016-05-19 07:00:34 +10:00
Samuel Georges 60893d151f Prevents CMS tabs from sitting atop save buttons 2016-05-18 08:38:46 +10:00
Samuel Georges 6bae91b411 Fix poor sorting UX on tree view
This should fix the RainLab.Pages plugin sorting UX once and for all 👌
2016-05-18 08:38:15 +10:00
Samuel Georges f2e129e821 Fixes logic error
Fixes #2020
2016-05-18 05:57:08 +10:00
Samuel Georges 83ebd24bcc Side panel should be fixed by default 2016-05-18 05:01:19 +10:00
Samuel Georges 9484c400b8 Revert the flash message animation
Looks more consistent with the popup animation, also the intermittent animation jerk issue has been fixed
2016-05-17 05:19:06 +10:00
Samuel Georges 3bad70f041 Relation controller now applies the defined constraints by default
Relation controller now supports scope and conditions for the manage mode (list)
Logic has been modified across recordfinder and filter that only allows one constraint in this order (1. conditions, 2. scope, 3. defined constraints (where applicable))
Fixes #1203
2016-05-17 05:17:40 +10:00
Samuel Georges 41de93a2cb Fixes an issue where the default widgets are not loaded
Ping @ChadStrat
2016-05-16 06:41:15 +10:00
Samuel Georges 0d3566e3f6 We should purge the attributes before saving
This will allow the components to be removed
Fixes #2007
2016-05-15 16:47:10 +10:00
Jérémy GAULIN c43a460064 Allow specifying half bound daterange filter values (treat the missing one as "infinty", ie 0000-00-00 for min and 2999-12-31 for max) 2016-05-15 01:22:28 +02:00
Samuel Georges cb86e655dd Fixes disabled relation nulling value
Just like DatePicker, relation and even regular fields should omitted from the data set
The same logic should apply to hidden fields
Fixes #1827
Recompile assets
2016-05-15 06:47:28 +10:00
Gabe Blair eaea0fc541 Fix close button color modal headers and repeaters
The "close" and "delete" buttons in modal popups and repeaters inside modal popups was nigh invisible on a light background. This should fix it up.
2016-05-15 06:20:58 +10:00
Szabó Gergő 5a031a2e29 Added the missing translations
Replaced the old php array syntax
Minor typo
Updated the Hungarian language
2016-05-15 05:32:06 +10:00
Jérémy GAULIN e988e1a171 Fix error thrown when `$date` is not set 2016-05-14 11:50:14 +02:00
Samuel Georges 36caa651f3 Datepicker was moved to storm, so no need to load it from the widget
Recompile assets
Refs #2008
2016-05-14 16:37:55 +10:00
Jérémy GAULIN 02c000530c Display dates with backend timezone. Manipulate date with app timezone. 2016-05-14 04:14:42 +02:00
Jérémy GAULIN 578319a204 - Fix submitting null dates.
- Allow scope functions for date and date range with Carbon instances at 00:00:00 (date / daterange after) and 23:59:59 (daterange before).
 - Introduced after / before (Y-m-d 00:00:00 / 23:59:59) for date widget. Kept filtered at Y-m-d
 - Introduced afterDate / beforeDate (Y-m-d) for daterange. Kept after / before at Y-m-d 00:00:00 / 23:59:59
2016-05-14 04:14:41 +02:00
Jérémy GAULIN 7170c1460e Streamline daterange popup buttons 2016-05-14 04:14:41 +02:00
Breno Douglas Araujo Souza 8d1670d562 Fix error upload file in midia
rename $title to $name in cleanFileName method
2016-05-12 11:54:39 -03:00
Samuel Georges 75003fb877 Fix arg / var mismatch
Refs #2001
2016-05-12 08:21:17 +10:00
Samuel Georges f3f8676479 The date format should be sourced from moment
Streamline JS formatting
Refs #1651
2016-05-12 07:02:29 +10:00
Samuel Georges 5ce890ba4a Cannot use default as a variable
Add missing date scope partials
2016-05-12 06:48:30 +10:00
Samuel Georges d50c7591cf Move the datepicker to storm
Write docs on usage
2016-05-12 06:48:10 +10:00
Samuel Georges e2647dcf64 Move moment + pickers to storm 2016-05-12 05:54:41 +10:00
Samuel Georges 37403f3ad4 Reorganise some code from #1651
Add getLang helper - Storm cannot depend on Backend
Recompile assets
2016-05-12 05:48:04 +10:00
Samuel Georges cdd280b6e1 Merge pull request #1651 from gabsource/feature/list-scope-filter-by-dates
Feature to allow filtering lists by date scopes (single date or range)
2016-05-12 04:46:06 +10:00
Samuel Georges f900ed8f62 Reshuffle the base color scheme again
Restyle the component area in the CMS
2016-05-12 04:33:01 +10:00
Samuel Georges ff207b91cf onDelete -> onDeleteItem 2016-05-12 04:31:29 +10:00
Jérémy Gaulin 51ac38dff7 Minor refactoring to match latest develop version 2016-05-11 17:27:52 +02:00
Jérémy Gaulin 99dba21c97 Translate filter group dropdown 'all' reset text 2016-05-11 16:13:52 +02:00
Jérémy GAULIN b08c215b72 Filter lists by dates with two new scope types (date and range) 2016-05-11 16:13:52 +02:00
Samuel Georges bab3a0ed5c Improve UI on sign in screen
Fixes a weird issue where the custom logo ratio loses its transparency
2016-05-11 05:29:34 +10:00
Samuel Georges 5400ec7d2d Complete taglist form widget 2016-05-10 06:02:35 +10:00
Samuel Georges 5d27682f25 Create new TagList form widget (Experimental)
Update Select2 to latest
2016-05-08 17:43:21 +10:00
Samuel Georges fc1adb937c Merge pull request #1961 from canthis/translations/lv-translation
Added missing backend/  translations for Latvian language
2016-05-08 11:18:32 +10:00
Samuel Georges 0aaf17c98a Merge pull request #1975 from gabsource/enhance/fr-translation
Translated news keys for french locale
2016-05-08 11:18:22 +10:00
Samuel Georges 05758ed507 Merge pull request #1943 from mcustiel/bugfix-components-autowiring
Bug: Fix for components that support autowiring
2016-05-08 11:17:32 +10:00
Samuel Georges d69053481c Tweak some styles 2016-05-05 17:39:36 +10:00
Samuel Georges a180e37b1d Maintain key integrity. Fixes #1969 2016-05-04 19:20:41 +10:00
Jérémy Gaulin 8e63060a11 Translated news keys for french locale 2016-04-30 12:00:20 +02:00
Samuel Georges f33c3519c9 Minor style tweak 2016-04-30 07:51:01 +10:00
Samuel Georges f5633c1bc6 SQL MODE code may fail in other drivers, use Dongle instead 2016-04-30 06:22:00 +10:00
Samuel Georges f45c04a3aa Minor logic error
Trash strict mode off during default migrations: this will occur as a one-time during the RC->stable since the code exists in the migration.
2016-04-30 06:01:51 +10:00
Samuel Georges 1c8de67610 Merge pull request #1964 from dshoreman/date-fixes
Date fixes
2016-04-30 05:21:32 +10:00
Samuel Georges 1608d80127 Reorganise code editor prefs
Fixes visual bugs
Update dashboard icon
Restyle flash messages
2016-04-30 04:53:33 +10:00
Dave Shoreman e2b110a611 Disable strict mode before running migrations
This will ensure strict mode is not applied while running migrations
for both modules and plugins, either when installing or removing.

We don't need to call disableStrictMode from UpdateManager::uninstall()
as it is called within the plugin removal methods, which are run first.

To force strict mode to be enabled, set 'strict' => true in the database config.
2016-04-29 19:32:11 +01:00
Dave Shoreman 48090351bd Convert current core timestamp columns to nullable
Adds migrations to switch all existing timestamp fields from being
NOT NULL DEFAULT 0, to NULL DEFAULT NULL, in order to get around
issues with new default modes in MySQL that cause errors in 0 dates.
2016-04-29 19:31:17 +01:00
Samuel Georges d6a7fdc74c Reduce the wording on a bunch of messages 2016-04-29 17:36:52 +10:00
Samuel Georges 4511120cb6 Implement ArgonServiceProvider for detect locale
Refs #1968
2016-04-28 17:58:35 +10:00
Samuel Georges e52fa7bd33 Compat with CSV v8 2016-04-28 06:39:35 +10:00
Samuel Georges 0d451eaa78 Be less strict about formExtendModel returning a model 2016-04-28 05:47:14 +10:00
Samuel Georges 0d8a30730e Introduce scope "switch" type, allow options to be passed 2016-04-27 19:09:19 +10:00
Dave Shoreman 34f2aa7dcf Switch to custom Schema facade
Updates the Schema facade to point to the custom one added in the
library repo, and sets all existing migrations to use our own
Blueprint class instead of the one provided by the Laravel framework.
2016-04-27 08:31:58 +01:00
Samuel Georges 28a8f84692 Add "outline" buttons and restyle callouts 2016-04-27 06:54:21 +10:00
Samuel Georges adbde0ad09 If the cache should fail, don't bring down the whole app 2016-04-27 05:44:32 +10:00
Samuel Georges a5acbc7bff Add before/after events for component::onRun 2016-04-27 05:44:32 +10:00
Samuel Georges 589f6d1551 Restyle flash message animation 2016-04-27 04:44:02 +10:00
SlaviX.DnB 14bfaf00e8 One more string translated in import/export section.
Missed it in previous commit.
2016-04-26 17:54:26 +03:00
SlaviX.DnB 169a93e9d4 Backend Latvian translations
Added missing strings, fixed typos.
2016-04-26 17:44:55 +03:00
Mariano Custiel aa08a83420 Fix for components that support autowiring
Removed unneeded null object and call App::make without arguments
2016-04-26 11:49:41 +02:00
Samuel Georges ad484d56cf Fix tab styling inside preview container 2016-04-26 07:08:36 +10:00
Samuel Georges 94af417d8a Set default backend timezone to app value
Consider that some users may have already set app.timezone to their local timezone, so we don't want these values converted back to UTC
2016-04-26 07:00:08 +10:00
Samuel Georges d3efc1af4c Make the datepicker preview mode show pretty dates
Improve styles of preview form controls
2016-04-26 06:59:02 +10:00
Alexander Shapoval 2f81d2fe0b Export with utf-8 characters (#1958) 2016-04-26 06:27:33 +10:00
Samuel Georges 41fe2407be Add support for TIME db columns
Tacks on todays date so it remains compatible with the datepicker control. Without this, it returns "Invalid date"
2016-04-26 06:18:04 +10:00
Samuel Georges 733c77c3f1 Improvements to clockpicker
AM/PM time now loads correctly
Updating the input field manually is reflected in the data locker
2016-04-26 06:12:16 +10:00
Samuel Georges 39e91575af Write docs for datepicker plugin 2016-04-24 09:43:26 +10:00
Samuel Georges e772e87de5 Complete rebuild of datepicker form widget
The datepicker now handles timezones and locale mainly on the client side. When a user selects a date/time, the value is chosen in their timezone preference, the script will then convert the value to the application timezone (UTC) for storage in the database. The reverse is true: when the value is loaded, it is converted from UTC to the user preference. The entire process is seamless. Dates are also formatted in the locale preference.

Example scenario: This fixes the issue when selecting the blog post published date. In some cases, the date could be set to 24th April but the server time is 23rd April, so the post appears unpublished against the user's intent.

There is still some issues around DATE and TIME column types stored in the database. It is best to always use TIMESTAMP/DATETIME to retain the timezone conversions. DATE will reset the time to 00:00 UTC which can cause issues and TIME does not play nicely with Carbon at all. We should still try to add support for these columns in the datepicker, even though they are not recommended.
2016-04-24 09:33:39 +10:00
Samuel Georges d49cef2201 Pass the app timezone for conversions 2016-04-24 05:36:02 +10:00
Samuel Georges 706f0637f4 Move menu mode to its own tab
This should get a fancy form field soon
2016-04-23 13:17:40 +10:00
Samuel Georges 02165a8a4a Introduce a new localized date control
Added a helped Backend::DateTime() for rendering the appropriate HTML output as a <time /> tag
The meta now specifies the locale and timezone preference used here
Lists now take advantage of this to display dates relative to the timezone and language (awesome sauce)
@todo Still need to get apply this logic to the datepicker form widget
2016-04-23 13:17:04 +10:00
Samuel Georges 4df7c6704e Introduce locale variants
Australia
Canada
UK
2016-04-23 13:13:52 +10:00
Samuel Georges e75b01b878 Compiled client locale files now include moment config 2016-04-23 13:12:41 +10:00
Samuel Georges 13fb0e6388 Update moment, add moment.timezone library + locales 2016-04-23 13:11:26 +10:00
Samuel Georges 6c081d9265 Combine editor preferences and backend preferences
Add backend timezone setting used for converting display dates
2016-04-23 05:31:05 +10:00
Samuel Georges 7cb9087ffb DateTime throws an invalid arg exception to prevent Twig crashing
Remove rounded search style
2016-04-23 05:29:42 +10:00
Samuel Georges 0504da41f2 Add hasFields methods
formHasOutsideFields, formHasPrimaryTabs + formHasSecondaryTabs
2016-04-23 05:13:08 +10:00
Samuel Georges 72d3fe3ebd More styling updates 2016-04-23 05:11:02 +10:00
Samuel Georges abaa65cc0e Cut back the design
Switch to hard lines
2016-04-22 08:21:08 +10:00
Alwin Drenth db9dc40ab0 Fix redirect to wrong url after creating layout #1905 2016-04-22 04:52:06 +10:00
Samuel Georges 76faef7c17 Sync styles on media picker and file upload 2016-04-21 06:11:31 +10:00
Alexander Guth 13276a500e Add conditions config to RecordFinder
Fixes #1524
2016-04-21 05:36:53 +10:00
Samuel Georges f2d8fcaf14 Record finder now supports scopes and search options 2016-04-21 05:36:29 +10:00
Samuel Georges 51bef96db9 More styling changes and other minor improvements 2016-04-21 04:52:21 +10:00
Samuel Georges cfd53375ac Fixes to editor preferences 2016-04-21 04:50:05 +10:00
Samuel Georges 788ffbb417 Minor fix to custom list search scope 2016-04-20 05:29:24 +10:00
Samuel Georges bff35e5f1a Lists can now define search scope or mode (see docs) 2016-04-19 19:54:22 +10:00
Lucas Martín e2566c36a0 update codeeditor with new features (#1863)
update ace v1.2.0 to v1.2.3
add codecompletion and live codecompletion(with documentation inline)
add snippets to lenguajes(php,javascript,html,css)
add translation to spanish
add search and replace buttons
2016-04-19 16:36:45 +10:00
Samuel Georges be7b3b3009 Remove the cray defaults on datepicker
Recompile assets
Fixes #1920
2016-04-19 05:59:32 +10:00
jfoliveira 6a897b1072 Datepicker: allow specify display format (#1919)
* Apply datepicker `format` property reading from config.

* Using the format property on partial.
2016-04-19 05:11:40 +10:00
Samuel Georges c351ff8411 Merge pull request #1932 from ariponce/pr2
Add SES configuration for mailer
2016-04-19 05:09:54 +10:00
Jérémy Gaulin f6b9c780e7 Added missing french tanslation keys including changes from PR #1898 with some accentuated character fixes 2016-04-16 16:14:08 +02:00
Samuel Georges 87a4de40de Address serialize/unserialize issues
This will require a cache clear for the combiner
Ref https://davidwalsh.name/php-serialize-unserialize-issues
2016-04-16 08:22:31 +10:00
Samuel Georges cb6cf45156 Fixes issue where Cache helper does not flush framework 2016-04-16 08:10:14 +10:00
Samuel Georges b534006f35 DbDongle -> App::hasDatabase 2016-04-16 07:44:18 +10:00
Samuel Georges 42534b2e9d Add the ability to customize the main menu
Fix radio styles
2016-04-16 05:11:14 +10:00
Samuel Georges 9fd0681ee7 Refit backend brand settings to latest UI changes 2016-04-16 04:43:34 +10:00
Samuel Georges cafd5d7ffa ComponentPartial properties should be publically accessible
Fixes caching issue when updating a component partial
2016-04-16 04:42:34 +10:00
Samuel Georges b15cdadd99 Restrict scrolling to thead
Fixes fluidity issue on Apple trackpad
We can now use combo scroll for Windows users / more obvious UX
2016-04-14 05:24:19 +10:00
Rafał Soboń 7ed50690a2 UI fix for multiple dropdowns inside the same context 2016-04-13 15:21:30 +02:00
ariponce 5b8bab4e06 Add SES configuration for mailer 2016-04-13 14:10:21 +02:00
Samuel Georges 6c30e542a7 Replace the mobile list control with drag scroll implementation
Disable dragging if there is nothing to drag to
Fixes accidental list.rowlink clicks when dragging
List headers no longer wrap
2016-04-13 18:18:29 +10:00
Samuel Georges ba57dd8993 clearAssetDefinitions -> flushAssets 2016-04-12 18:04:15 +10:00
Samuel Georges d652c854b1 Lots of small UI fixes 2016-04-12 18:03:55 +10:00
Samuel Georges cff42387ae Minor fix to checkbox align class 2016-04-12 06:24:04 +10:00
Samuel Georges b02f0c2230 Trial Noto font, adjust primary tab sizing
Noto appears to be much easier to read and is more consistent for other languages. Eg, on windows, sans-serif appears to change completely when mb characters are introduced.
2016-04-11 04:59:59 +10:00
Samuel Georges 04fc95bac3 Return button on class 2016-04-08 22:18:53 +10:00
Samuel Georges 4043921834 Adds extra flavor to buttons
Reduce font sizes a bit
Fixes rogue hand from appearing when clicking drag scroll enabled elements
2016-04-07 20:17:48 +10:00
Samuel Georges c5362652c1 Begin the process of refitting brand settings
Introduce secondary and accent colors
Switch some CSS to use the new storm utils
Other minor improvements
2016-04-05 20:04:11 +10:00
Samuel Georges 03c7cbbeed Adds an API to the sidenav script for setting the active item
setActiveItem function
This will be useful for setting a custom active class
2016-04-05 20:02:25 +10:00
Samuel Georges 7a33146348 Add CSS utilities to Storm lib 2016-04-05 20:00:57 +10:00
Samuel Georges ed6e01c2c5 File model is now abstract 2016-04-05 19:47:06 +10:00
Samuel Georges 594f9958cb Rebuilt the mobile navigation. 2016-04-04 22:12:19 +10:00
Samuel Georges f68eb3f20f Move halcyon registration to model boot
Attempt to fix issue where service provider looks at system_preferences database table that doesn't exist yet as part of the boot() method
Fixes #1897
2016-04-04 18:37:56 +10:00
Samuel Georges 838f836051 Revert the nav to the classic style
Various sizing fixes
Set the standard padding to 20px
Mute system links unless hover or active
Fixes an issue where the scroll indicator appears always on fancy layout, these containers cannot use padding!
Refs #1895
2016-04-04 18:37:55 +10:00
Vojta Svoboda 28a859d9ae Fix cs_CZ locale typo 2016-04-03 10:55:24 +02:00
Samuel Georges ca3e13ed33 Fixes issue related to PHP 5.5.12
For some reason the closure did not like static calls inside, bye bye array_map(...)
2016-04-02 17:39:23 +11:00
Samuel Georges 8dd2e97cf7 ~1.0 -> dev-develop 2016-04-01 14:07:43 +11:00
Samuel Georges a548d6ee56 Merge remote-tracking branch 'remotes/origin/stable' into develop
Conflicts:
	modules/backend/lang/en/lang.php
	modules/backend/lang/fr/lang.php
2016-04-01 13:00:32 +11:00
Samuel Georges b51b5a112e dev-stable -> ~1.0 2016-04-01 12:52:11 +11:00
Samuel Georges ea5193e4c8 Merge pull request #1887 from gpasztor87/ui
Update AssetList + Clean up
2016-03-31 07:41:05 +11:00
Pásztor Gábor ef228c4915 Minro style improvements 2016-03-30 21:29:30 +02:00
Pásztor Gábor 9f3fcf27ed Update AssetsList 2016-03-30 18:17:18 +02:00