Wykres commitów

44 Commity (57ce9b0a90880a64447f67ac25fdc56b716ba4d4)

Autor SHA1 Wiadomość Data
LB (Ben Johnston) 80f7db750a
Fix gulp watch task (#6117)
- revise watch & task syntax for Gulp v4 requirements
- ensure only one watcher gets created for file type paths
2020-06-30 09:27:50 +01:00
Thibaud Colas 100edcdc09 Update npm dependencies with `npm audit fix`
Apply trickier gulp upgrades

Update react-streamfield, removing extraneous dependency

Upgrade to latest version of stylelint

Add package-lock.json changes from local npm install
2020-06-04 07:02:43 +10:00
Thibaud Colas 7eeb44ad04 Replace gulp-sass with gulp-dart-sass
* Rewrite Sass code that relies on deprecated or removed features in Dart Sass
* Remove unneeded rebuild of node-sass
* Update lockfile
2020-05-17 21:00:20 +10:00
Thibaud Colas 90d606bcef
Fix gulp.dest path rewriter output from Gulp 4 upgrade (#6012) 2020-05-07 22:07:56 +01:00
Jim Jazwiecki 6ea0cc52f3 Upgrade to Gulp v4 & Node 10
* Syntax changes to get Gulp working
* Require Node 10, use node 10 in CircleCI and squash.yml
* Update docs
* resolves #5653
2020-05-01 12:01:03 +10:00
Matt Westcott c76447246d Fix Javascript alerts reported by LGTM 2020-03-05 09:59:18 +00:00
Thibaud Colas df89749d76
Remove empty line from comment block (#5821)
A very crucial change, so I can try our new LGTM integration.
2020-02-12 14:45:20 +00:00
nmorduch 2668c05146 Rearrange SCSS structure according to ITCSS 2019-04-11 11:08:47 +02:00
Matt Westcott 8ea95c5841 Convert the search query chooser to use static onload handlers 2018-06-20 15:35:40 +01:00
Janneke Janssen 4268ed3c3a Update autoprefixer list on browser support 2018-01-17 21:48:17 +02:00
Luiz Boaretto ee9403f7f7 Fix typo for wagtailsnippets JS
Currently, it's not possible to select a snippet because the JS file is not loaded, resulting in the error:
ReferenceError: createSnippetChooser is not defined

This is due to a typo in the gulp config file.
2017-11-30 16:52:49 +00:00
Matt Westcott d73d714e02 Update appNames in gulpfile 2017-11-26 22:43:47 +00:00
Karl Hobley 9a13b09d41 Renamed wagtail.contrib.wagtailstyleguide to wagtail.contrib.styleguide 2017-11-26 22:43:47 +00:00
Karl Hobley 80ff06f988 Rename wagtail.wagtailusers to wagtail.users
Conflicts:
	wagtail/admin/tests/test_pages_views.py
	wagtail/admin/utils.py
	wagtail/admin/views/account.py
	wagtail/users/views/groups.py
	wagtail/users/views/users.py
	wagtail/users/wagtail_hooks.py
2017-11-26 22:43:47 +00:00
Karl Hobley 1ecf48fb3f Rename wagtail.wagtailsnippets to wagtail.snippets
Conflicts:
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/topics/pages.rst
	docs/topics/snippets.rst
	gulpfile.js/config.js
	wagtail/contrib/wagtailstyleguide/views.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/snippets/tests.py
	wagtail/snippets/views/chooser.py
	wagtail/snippets/views/snippets.py
	wagtail/snippets/wagtail_hooks.py
	wagtail/tests/settings.py
	wagtail/tests/snippets/models.py
	wagtail/tests/testapp/models.py
2017-11-26 22:43:47 +00:00
Karl Hobley bf0f3e02ba Rename wagtail.wagtailimages to wagtail.images
Conflicts:
	docs/advanced_topics/api/v2/configuration.rst
	docs/advanced_topics/jinja2.rst
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	docs/getting_started/tutorial.rst
	docs/topics/pages.rst
	docs/topics/streamfield.rst
	gulpfile.js/config.js
	tox.ini
	wagtail/admin/tests/test_compare.py
	wagtail/admin/tests/test_edit_handlers.py
	wagtail/api/v2/signal_handlers.py
	wagtail/contrib/wagtailstyleguide/views.py
	wagtail/core/tests/test_streamfield.py
	wagtail/documents/tests/test_models.py
	wagtail/images/models.py
	wagtail/images/permissions.py
	wagtail/images/tests/test_admin_views.py
	wagtail/images/tests/test_image_operations.py
	wagtail/images/tests/test_models.py
	wagtail/images/tests/test_signal_handlers.py
	wagtail/images/views/chooser.py
	wagtail/images/views/images.py
	wagtail/images/views/multiple.py
	wagtail/images/wagtail_hooks.py
	wagtail/images/widgets.py
	wagtail/project_template/project_name/settings/base.py
	wagtail/tests/demosite/models.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/testapp/migrations/0001_initial.py
	wagtail/tests/testapp/migrations/0008_inlinestreampage_inlinestreampagesection.py
	wagtail/tests/testapp/migrations/0009_defaultstreampage.py
	wagtail/tests/urls.py
2017-11-26 22:43:47 +00:00
Karl Hobley 54d8357f96 Rename wagtail.wagtailembeds to wagtail.embeds
Conflicts:
	gulpfile.js/config.js
	wagtail/embeds/blocks.py
	wagtail/embeds/tests.py
	wagtail/embeds/views/chooser.py
	wagtail/embeds/wagtail_hooks.py
2017-11-26 22:43:47 +00:00
Karl Hobley 78b1372cd4 Rename wagtail.wagtaildocs to wagtail.documents
Conflicts:
	docs/advanced_topics/i18n/index.rst
	docs/advanced_topics/settings.rst
	docs/getting_started/integrating_into_django.rst
	gulpfile.js/config.js
	wagtail/admin/tests/test_collections_views.py
	wagtail/api/v2/signal_handlers.py
	wagtail/contrib/wagtailstyleguide/views.py
	wagtail/core/tests/test_collection_permission_policies.py
	wagtail/documents/permissions.py
	wagtail/documents/tests/test_admin_views.py
	wagtail/documents/tests/test_collection_privacy.py
	wagtail/documents/tests/test_models.py
	wagtail/documents/views/chooser.py
	wagtail/documents/views/documents.py
	wagtail/documents/views/serve.py
	wagtail/documents/wagtail_hooks.py
	wagtail/documents/widgets.py
	wagtail/project_template/project_name/urls.py
	wagtail/tests/demosite/models.py
	wagtail/tests/non_root_urls.py
	wagtail/tests/settings.py
	wagtail/tests/testapp/models.py
	wagtail/tests/urls.py
2017-11-26 22:43:47 +00:00
Karl Hobley 63a32fb77f Fix path to admin SCSS files in gulp config 2017-11-26 22:43:47 +00:00
Thibaud Colas c9095445cb Process CSS with cssnano in development build 2017-11-17 14:38:19 +00:00
Matt Westcott a3e6ebb7d3 Prevent cssnano from 'optimising' z-index:9999 into z-index: 1. Fixes #3944 2017-11-07 16:16:24 +00:00
Vincent Audebert a10e1f0761 Add CSS minification and source maps for Sass 2017-08-27 20:25:53 +02:00
Thibaud Colas 80cbef5b78 Stop using require-dir 2017-08-11 15:40:43 +01:00
Thibaud Colas 61b6de2e4e Tidy up new React + API explorer for mobile (fixes #3607) (#3635)
* Remove useless CSS declaration

* Remove commented out styles

* Merge duplicate declarations

* Remove even more commented out code

* Move footer mq to footer declaration

* Remove more useless code

* Stop vendor prefixing for IE below 11

* Remove useless vendor prefixing

* Merge identical declarations

* Fix 1px overflow in content wrapper

* Fix explorer scrolling when open on mobile

* Remove unused import

* Add Redux performance measurements to explorer menu

* Rewrite explorer reducer to avoid unnecessary operations

* Stop changing reducer state on every action regardless of type

* Remove redundant children.isFetching property in nodes reducer

* Remove redundant children.isLoaded property in nodes reducer

* Remove redundant children.isError property in nodes reducer

* Refactor nodes explorer reducer with sub-reducer

* Fix linting issue

* Remove unused class name

* Change default icon className from empty string to null

* Remove old TODO comment

* Hoist icons in ExplorerItem component for better performance

* Add comment

* Add tooling for performance measurement of React components

* Clean up explorer panel component definition

* Make performance measurements opt-in

* Improve alignment of page explorer menu on mobile

* Close explorer on touchend rather than touchstart

* Comment out performance measurement code

* Remove fade transition completely
2017-06-09 00:08:04 +03:00
Karl Hobley b96be5aa35 Modeladmin scss cleanups (#2481)
* Hyphenate classname: result_list => result-list

* Fixed gulp config for compiling scss

Was compiling to modeladmin/index.css instead of wagtailmodeladmin.css which caused the styles to not load

* Nest scss rules

Makes the scss easier to read I think

* Let choose_parent_page.scss use an id selector

* Converted ids to classes

* scss style tweaks

* Allow choose_parent_page.scss to use id selector

We should definitely solve this. But need to get Drone working right now
2016-04-16 17:15:47 +01:00
Andy Babic dcb67dcfdf Added wagtailmodeladmin to contrib with docs 2016-04-14 15:03:49 +01:00
mr-winter c185e57347 output sass errors in terminal and prevent gulp watch from exiting 2016-03-03 10:07:45 +00:00
Josh Barr 14f02a0b50 Tooling for modern front-end components: React JS, ES6, and BEM CSS
Thanks to @justinvdm for the help

Merges: #2275
2016-02-25 13:32:48 +00:00
Aarni Koskela 6f18c5ea0f Fix static asset building on Windows
Normalize all paths to have only forward slashes before mangling them.
2016-01-19 13:14:05 +00:00
Dave Cranwell 88341b782b removed unnecessary whitelist of sass files to compile. sass knows not to compile partials, which leaves all the _other_ files which it should compile 2015-12-04 10:54:38 +00:00
Dave Cranwell 7bc1c2485a mixins which only do prefixing removed in favour of depending more on autoprefixer 2015-12-02 14:55:06 +00:00
Dave Cranwell 5d43512c38 fixing rebase confusion 2015-11-23 21:39:56 +00:00
Dave Cranwell fc980bd103 updated npm packages. ongoing linting of scss files 2015-11-23 21:39:54 +00:00
Matt Westcott ed84057b07 static path for wagtail.contrib.settings should be 'wagtailsettings' to avoid name clashes 2015-10-23 11:33:48 +01:00
Matt Westcott 42af5c10af Merge branch 'merge-settings' of https://github.com/takeflight/wagtail into takeflight-merge-settings 2015-10-23 10:31:27 +01:00
Tim Heap 5d81269548 Add site switcher to header in settings 2015-10-21 16:39:09 +11:00
Matt Westcott 98e9b24ca0 Remove useless empty page-editor.js from wagtailforms 2015-10-09 20:12:21 +01:00
Karl Hobley b08b7628fb Missing newlines 2015-07-09 12:36:34 +01:00
Dave Cranwell 109f1d799b added new gulpfile directory with modularised tasks 2015-06-04 17:44:08 +01:00
Dave Cranwell 10894e78a8 removed old gulpfile.js 2015-06-04 17:43:27 +01:00
Tim Heap 4614526416 Move `require()` calls out of gulp tasks 2015-05-01 08:53:05 +10:00
Tim Heap 2af8fdf8b6 Build assest as part of watching them 2015-05-01 08:53:05 +10:00
Tim Heap 37816f68cf Move all static assets to `static_src`, compile to `static`
The fonts were also relocated out of the `scss/fonts` directory to their
own `fonts` directory.

All the `static` directories are now ignored, and are completely
generated from the compilation process.
2015-05-01 08:53:04 +10:00
Tim Heap ddebafa119 Remove libsass dependency, precompile CSS for distribution
Depending on libsass for all Wagtail installations was causing issues
with various operating systems, dramatically increasing installation
times, and preventing front end development adopting modern practices.

libsass has been removed as a dependency. Sass files are compiled before
release as a dependency of the `sdist` setup command. Sass compilation
is done through `gulp`. People wishing to hack on the frontend assets
should now install wagtail locally, install the node dependencies, and
run `gulp`:

    $ pip install -e path/to/wagtail
    $ cd path/to/wagtail
    $ npm install
    $ npm start

All the templates and JS files have been updated to reference the new
compiled CSS files instead of the Sass files.

Precompiled CSS for jquery-ui and similar have been moved out of the
`scss/` directory to the `css/` directory.
2015-05-01 08:53:04 +10:00