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
Bootstrap (and its dependency popper.js) are now used from npm packages,
allowing better version control and custom building of only the required
components for both styling and javascript.
At this moment the whole styling of bootstrap is included, once the Cloud
redesign is over it will be stripped to only the used components.
This is needed for the copy button on file asset uploading. Rather than
including it on all pages that could feature the file uploader it's now
loaded globally.
Blender Cloud used main.css from Pillar
As we try to strip Blender Cloud-specific content from Pillar,
this commit brings three .sass files over to this repository.
There are still plenty of Blender Cloud classes all over Pillar,
they will be brought here over time.
Called "navigation_user", used at the moment by the
/welcome page for turning "Login" into "Login and Explore"
Also added the block name to {% endblock %} where it makes sense.
There is no functional change, just easier to read.
This removes the loadCSS() call, which uses setTimer() to repeatedly do
stuff while other stuff is loading. This saves quite a bit of CPU time
spent on JavaScript.
These pages were originally in the pillar repository, but they actually belong here. We also extended rsync_ui.sh to build and rsync to the Blender Cloud server.