Commit Graph

2041 Commits

Author SHA1 Message Date
Pablo Vazquez d7fd90ded1 Videoplayer: Custom playback speed 2018-09-10 15:23:05 +02:00
Pablo Vazquez b9268337c3 Videoplayer: Move loop functions outside of videojs() 2018-09-10 15:22:05 +02:00
Pablo Vazquez 9b62daec74 Search: Cleanup and minor fixes. 2018-09-10 11:56:31 +02:00
Pablo Vazquez 5cc5698477 Pillar Font: A couple new icons and update.
Also added comments on how to update this file in the future.
2018-09-10 11:55:59 +02:00
Pablo Vazquez 00ba98d279 Search: replace spinning loader with page-bar loader 2018-09-10 11:10:25 +02:00
Pablo Vazquez e818c92d4e Assets: License style 2018-09-07 18:17:50 +02:00
Pablo Vazquez 612862c048 Use bootstrap classes where possible 2018-09-07 18:13:04 +02:00
Pablo Vazquez 6b3f025e16 Project Edit: Cleanup and styling 2018-09-07 17:21:02 +02:00
Pablo Vazquez 8a90cd00e9 Pug mixin components for jumbotron, secondary navigation and more. 2018-09-07 17:20:22 +02:00
Pablo Vazquez 17a69b973e Videoplayer: thicker progress bar 2018-09-07 14:55:42 +02:00
Pablo Vazquez 8380270128 Fixes on buttons/dropdown layout 2018-09-07 14:55:27 +02:00
Pablo Vazquez 35225a189d Replace #project-loading spinning icon with a .loader-bar 2018-09-07 14:55:04 +02:00
Pablo Vazquez be98a95fc0 Assets: Fix download dropdown 2018-09-07 12:27:37 +02:00
Pablo Vazquez 95c1f913c6 Videoplayer small improvements
* Disable volume change on scroll
* Add L key shortcut to toggle loop
* Minor style fixes (missing font family)
2018-09-07 11:49:34 +02:00
Pablo Vazquez 9bcd6cec89 Cleanup and minor tweaks for apps with a sidebar
Like Attract or Flamenco
2018-09-06 18:18:22 +02:00
Sybren A. Stüvel 4532c1ea39 Updated package-lock.json 2018-09-06 16:09:25 +02:00
Sybren A. Stüvel e19dd27099 API endpoint /api/nodes/tagged/<tag>
This endpoint returns nodes in public projects that have the given tag.
The returned JSON is cached for 5 minutes.
2018-09-06 15:42:50 +02:00
Sybren A. Stüvel f54e56bad8 Allow predefined tags on nodes
Whenever a node has a 'tags' property of type 'list' it will be handled as
if it has {'allowed': app.config['NODE_TAGS']} in the node type definition.
2018-09-06 15:42:20 +02:00
Sybren A. Stüvel eb851ce6e1 Added some type declarations
I added those for a certain use that ended up not being committed, but
those declarations are useful anyway.
2018-09-06 15:42:20 +02:00
Sybren A. Stüvel 586d9c0d3b Create MongoDB indices at Pillar startup, and not at first request
This makes things a little more predictable, and allowed me to actually
find & fix a bug in a unittest.
2018-09-06 15:42:20 +02:00
Pablo Vazquez ac23c7b00b Bootstrap popovers are no longer used. 2018-09-06 14:24:09 +02:00
Pablo Vazquez 811edc5a2a Gulp: generate sourcemaps when not in production 2018-09-06 14:14:15 +02:00
Sybren A. Stüvel cb95bf989a Updated package.lock by running ./gulp 2018-09-06 13:44:03 +02:00
Sybren A. Stüvel e4fa32b8e4 Fixed bug in attachment code 2018-09-06 13:36:01 +02:00
Pablo Vazquez 08bf63c2ee Merge branch 'wip-redesign'
# Conflicts:
#	src/templates/projects/view.pug
2018-09-06 13:30:24 +02:00
Pablo Vazquez 0baf5b38c3 Project view: dim title link 2018-09-06 12:52:54 +02:00
Pablo Vazquez 858a75af8d Pug: Move project home templates to blender-cloud
These are super hard-coded to the Cloud anyway.
2018-09-06 12:51:58 +02:00
Pablo Vazquez 6b1a5e24e8 Pug: Use templates from blender-cloud
Affects the following templates:

/projects/view.pug
/projects/index_dashboard.pug
/organizations/index.pug

A lot of this layout is hardcoded for blender-cloud anyway. Eventually
Pillar should have its own templates to use as starting point for building
other Pillar apps. This should be built using the minimal amount of code
possible and rely on styling possible via Bootstrap.
2018-09-06 12:46:33 +02:00
Pablo Vazquez 1500e20291 Blog: cleanup of layout and style
Simpler markup reusing bootstrap 4 classes.
2018-09-06 12:42:37 +02:00
Pablo Vazquez d347534fea Pug: Move navigation macro to blender-cloud 2018-09-06 12:19:28 +02:00
Pablo Vazquez 4546469d37 Pug: Move blog macros to blender-cloud 2018-09-06 12:19:00 +02:00
Pablo Vazquez b0d8da821f CSS: Blog cleanup 2018-09-06 12:11:18 +02:00
Pablo Vazquez 1821bb6b7d CSS general cleanup and minor style tweaks 2018-09-06 12:11:10 +02:00
Pablo Vazquez 278eebd235 Style jsTree 2018-09-06 12:06:14 +02:00
Pablo Vazquez 2777c37085 Style videoplayer. 2018-09-06 12:05:45 +02:00
Sybren A. Stüvel bc16bb6e56 Send the request URL to Sentry
Also removed some dead code.
2018-09-05 14:54:30 +02:00
Sybren A. Stüvel 0fcafddbd1 Added unit test for creating comments
We had an issue creating comments, so I wrote a test for it. The test
succeeds on a new project, so the problem lies with the older projects.
In the end it was the comment node type that still had
`{'coerce': 'markdown'}`.
2018-09-05 14:54:08 +02:00
Sybren A. Stüvel f29e01c78e Video player: remember volume in local storage 2018-09-04 12:16:24 +02:00
Sybren A. Stüvel 2698be3e12 Saving & restoring video watching progress
Video progress updates:

- Mark as 'done' when 90% or more is watched.
- Keep 'done' flag when re-watching.

The video progress is stored on three events, whichever comes first:

- Every 30 seconds of video.
- Every 10% of the video.
- Every pause/stop/navigation to another page.
- When we detect the video is looping.
2018-09-04 12:16:24 +02:00
Pablo Vazquez 9c2ded79dd CSS: Cleanup and simplification
Mainly to rely more on bootstrap styling
2018-08-31 19:32:17 +02:00
Pablo Vazquez b4acfb89fa Layout: use bootstrap classes 2018-08-31 19:31:36 +02:00
Sybren A. Stüvel 3f8e0396cf VideoJS: don't use videojs.registerPlugin() to start Google Analytics
The `registerPlugin()` call should only be done once, and not for every
video shown.

This removes the warning about the 'analytics' plugin already being
registered, which you see when navigating from one video to another via
the JSTree.
2018-08-31 17:19:27 +02:00
Sybren A. Stüvel 05c488c484 Authentication: also accept user from session on API calls
When loading the user from the session, a CSRF check is performed.
2018-08-31 17:18:46 +02:00
Pablo Vazquez 33bd2c5880 Sass: Import modules on top level 2018-08-31 14:26:42 +02:00
Pablo Vazquez 76338b4568 Sass config: Bootstrap overrides 2018-08-31 14:24:25 +02:00
Pablo Vazquez 7405e198eb Use .displayAs() instead of .show()
Needed for CSS display to be set as inline-block instead of show()'s inline.
2018-08-31 14:23:23 +02:00
Pablo Vazquez 2332bc0960 jQuery: Small utility to set CSS display type
Showing elements with jQuery's native .show() sets display as 'inline',
but sometimes we need to set 'flex' or 'inline-block'.
2018-08-31 14:20:59 +02:00
Pablo Vazquez ac3a599bb6 Gulp: build our own bootstrap js only using the needed modules.
At this point we only use tooltip and dropdown code, but we could use
tabs or carousels in the future. Just add them to the toUglify list.
2018-08-31 14:19:09 +02:00
Pablo Vazquez 814275fc95 Gulp: only chmod when running --production 2018-08-31 14:17:39 +02:00
Sybren A. Stüvel 40c19a3cb0 pillar.api.utils.utcnow() now truncates microseconds to milliseconds
MongoDB stores datetimes in millisecond precision, to keep datetimes the
same when roundtripping via MongoDB we now truncate the microseconds.
2018-08-31 11:26:32 +02:00