Commit Graph

2188 Commits

Author SHA1 Message Date
Pablo Vazquez 1d909faf49 CSS: Override margin-bottom for emoji images. 2018-11-16 23:57:00 +01:00
Pablo Vazquez ed35c54361 CSS: Fix alignment on list with custom bullets. 2018-11-16 23:57:00 +01:00
Francesco Siddi 411b15b1a0 Pin versions in package.json
This should lead to predictable results when running ./gulp.
2018-11-16 15:45:46 +01:00
Francesco Siddi 9b85a938f3 Add npm deps: acorn and glob 2018-11-16 14:31:46 +01:00
Tobias Johansson 989a40a7f7 Add missing dependency for transpiling es6 2018-11-16 14:06:50 +01:00
Tobias Johansson 64cc4dc9bf Bug fix: Sharing files failing
Found using sentry
2018-11-16 12:46:30 +01:00
Pablo Vazquez 9182188647 CSS: Minor style tweaks to user login.
Don't use hardcoded white color for container-box mixin.
2018-11-16 12:38:40 +01:00
Pablo Vazquez 5896f4cfdd CSS: Use generic colors for inputs border colors.
More reliable when theming.
2018-11-16 02:31:13 +01:00
Pablo Vazquez f9a407054d CSS: Fix emoji set as block.
When parent styling set images to be block, emoji should always be inline.
2018-11-15 23:54:16 +01:00
Pablo Vazquez 1c46e4c96b CSS: Fix !default setting in config 2018-11-14 02:06:22 +01:00
Tobias Johansson 2990738b5d Lazy Home: Lazy load latest blog posts and assets and group by week and
project.

Javascript tutti.js and timeline.js is needed, and then the following to
init the timeline:

$('.timeline')
    .timeline({
        url: '/api/timeline'
    });

# Javascript Notes:
## ES6 transpile:
* Files in src/scripts/js/es6/common will be transpiled from
modern es6 js to old es5 js, and then added to tutti.js
* Files in src/scripts/js/es6/individual will be transpiled from
modern es6 js to old es5 js to individual module files
## JS Testing
* Added the Jest test framework to write javascript tests.
* `npm test` will run all the javascript tests

Thanks to Sybren for reviewing
2018-11-12 12:57:25 +01:00
Pablo Vazquez e2432f6e9f NPM: Upgrade to Gulp 4
No functional changes. Besides slightly faster thanks to parallel tasks and future proof.
2018-11-10 01:08:30 +01:00
Francesco Siddi aa63389b4f Remove duplicated file
The file was copy-pasted in api/search.
2018-11-04 11:48:08 +01:00
Francesco Siddi 5075cd5bd0 Introducing Flask Debug Toolbar
Display useful information for debugging.
2018-11-01 02:19:13 +01:00
Tobias Johansson ceef04455c Video player in project header bug (firefox):
Unable to play video in in project header in firefox.

Reason:
Firefox is missing ResizeObserver, so as a workaround videoJs inserts an
iframe bellow the video and listens to resize events on that. This iframe
lands in front of the video when we use the class ".embed-responsive",
and therefore we can not start the wideo.

Solution:
I could not see any difference in how the page was rendered
with/without this class so I removed it.
2018-10-24 13:34:08 +02:00
Tobias Johansson c8e62e3610 Loading bar: Introduced two event listeners on window 'pillar:workStart' and 'pillar:workStop' that (de)activates the loading bar.
Reason:
* To decouple code
* Have the loading bar active until whole page stopped working
* Have local loading info

Usage:
$.('.myClass')
   .on('pillar:workStart', function(){
    ... do stuff locally while loading ...
    })
   .on('pillar:workStop', function(){
   ... stop do stuff locally while loading ...
   })

$.('.myClass .mySubClass').trigger('pillar:workStart')
... do stuff ...
$.('.myClass .mySubClass').trigger('pillar:workStop')
2018-10-23 13:57:02 +02:00
Sybren A. Stüvel ce7cf52d70 Refresh badges every 10 minutes
Now that they are new, they should be snappy!
2018-10-11 10:04:16 +02:00
Sybren A. Stüvel dc2105fbb8 Enabled badges in comments 2018-10-10 16:55:10 +02:00
Sybren A. Stüvel 71185af880 Added json jinja filter for debugging purposes 2018-10-10 16:55:10 +02:00
Sybren A. Stüvel 041f8914b2 Show badges on user profile page 2018-10-10 16:55:06 +02:00
Sybren A. Stüvel b4ee5b59bd Sync Blender ID badge as soon as user logs in
This adds a new Blinker signal `user_logged_in` that is only sent when
the user logs in via the web interface (and not on every token
authentication and every API call).
2018-10-10 16:54:58 +02:00
Sybren A. Stüvel 314ce40e71 Send logged-in user in user_authenticated signal 2018-10-10 15:30:35 +02:00
Sybren A. Stüvel 7e941e2299 Added TODOs and removed fetching unused field from MongoDB 2018-10-10 14:40:45 +02:00
Tobias Johansson 53811363ce Search bug fix: Missing video plugins resulted in wrong volume and progress. 2018-10-05 14:37:32 +02:00
Tobias Johansson 51057e4d63 Search bug fix: Grid/List toggle on group nodes also affected the the way search results where presented 2018-10-05 12:37:48 +02:00
Tobias Johansson a1a48c1941 Elasticsearch: Added documentation on how to set the indexing. 2018-10-05 11:35:02 +02:00
Tobias Johansson 19fdc75e60 Free assets: Assets should not be advertised as free if the user is a logged in subscriber. 2018-10-04 17:44:08 +02:00
Tobias Johansson 879bcffc2b Asset list item: Don't show user.full_name in latest and random assets 2018-10-04 12:30:05 +02:00
Tobias Johansson 6ad12d0098 Video Duration: The duration of a video is now shown on thumbnails and bellow the video player
Asset nodes now have a new field called "properties.duration_seconds". This holds a copy of the duration stored on the referenced video file and stays in sync using eve hooks.

To migrate existing duration times from files to nodes you need to run the following:
./manage.py maintenance reconcile_node_video_duration -ag

There are 2 more maintenance commands to be used to determine if there are any missing durations in either files or nodes:
find_video_files_without_duration
find_video_nodes_without_duration

FFProbe is now used to detect what duration a video file has.

Reviewed by Sybren.
2018-10-03 18:30:40 +02:00
Pablo Vazquez a738cdcad8 Fix and tweaks to theatre mode
* Only show width/height if available (would be None otherwise)
* If image width/height is not available, allow zooming
* Fix styling and cleanup
* Remove footer (reported by Vulp35 on Twitter, thanks!)
2018-10-01 11:56:52 +02:00
Tobias Johansson 199f37c5d7 Tagged Asset: Added metadata
Video duration, Project link and pretty date
2018-09-26 11:29:15 +02:00
Pablo Vazquez 4cf93f00f6 Assets: Fix video progress not showing 2018-09-24 13:31:48 +02:00
Pablo Vazquez eaf9235fa9 Fix users listing styling 2018-09-21 17:11:26 +02:00
Pablo Vazquez 24ecf36896 CSS: Brighter primary button 2018-09-21 16:51:45 +02:00
Pablo Vazquez 86aa494aed CSS: Use 3 cards even on media-xl 2018-09-21 16:25:48 +02:00
Pablo Vazquez 5a5b97d362 Introducing Main Dropdown navigation for mobile 2018-09-21 16:13:50 +02:00
Pablo Vazquez 831858a336 CSS: Make buttons use bootstraps' variable for roundness 2018-09-21 16:13:50 +02:00
Tobias Johansson e9d247fe97 Added assertion in test to verify that the asset was deleted 2018-09-21 14:24:37 +02:00
Tobias Johansson 1ddd8525c7 Remove references to node from projects when the node is deleted.
Removes node references  in project fields header_node, nodes_blog, nodes_featured, nodes_latest.
2018-09-21 14:23:47 +02:00
Pablo Vazquez c43941807c Node details: Center only on landing 2018-09-21 12:11:11 +02:00
Pablo Vazquez bbad8eb5c5 Remove unused project macros file
The only macro was render_secondary_navigation, which is in the _navigation.pug
template together with the other Blender Cloud navigation macros.
2018-09-20 16:38:17 +02:00
Pablo Vazquez 04f00cdd4f Loading Bar: Utility to turn it on/off 2018-09-20 15:20:29 +02:00
Pablo Vazquez 66d9fd0908 Center node-details-description 2018-09-20 12:15:08 +02:00
Pablo Vazquez 516ef2ddc7 Navigation: if category is Assets, then call it Libraries 2018-09-20 12:10:35 +02:00
Pablo Vazquez 35fb07ee64 Navigation: Move marker on left side
On the right it looks like a scrollbar.
2018-09-20 12:10:09 +02:00
Pablo Vazquez f1d67894dc Rename secondary_navigation to navigation_project 2018-09-20 12:05:46 +02:00
Pablo Vazquez aef2cf8c2d Navigation: Fix notification number 2018-09-19 19:43:49 +02:00
Pablo Vazquez d347ddac2c Navigation: Films -> Open Projects
And show navigation when in the Blog
2018-09-19 19:33:01 +02:00
Pablo Vazquez 186ba167f1 Navigation: remove extra 's' for assets project
Such a lame solution. We need better categories.
2018-09-19 19:09:04 +02:00
Pablo Vazquez 847e97fe8c Project: remove arrow left/right navigation hotkey 2018-09-19 18:33:53 +02:00