Sybren A. Stüvel 1a54b723aa Reworked subscription/demo role management from web to API level.
In the old situation, users had to be able to change their own roles. This
is inherently insecure.
2017-05-04 17:49:18 +02:00
2016-08-19 09:19:06 +02:00
2015-10-28 15:33:39 +01:00
2017-03-28 16:04:26 +02:00
2017-04-11 12:08:57 +02:00
2016-11-01 16:47:55 +01:00
2016-09-29 10:01:15 +02:00

Pillar

This is the latest iteration on the Attract project. We are building a unified framework called Pillar. Pillar will combine Blender Cloud and Attract. You can see Pillar in action on the Blender Cloud.

Custom fonts

The icons on the website are drawn using a custom font, stored in pillar/web/static/font. This font is generated via Fontello by uploading pillar/web/static/font/config.json.

Note that we only use the WOFF and WOFF2 formats, and discard the others supplied by Fontello.

After replacing the font files & config.json, edit the Fontello-supplied font.css to remove all font formats except woff and woff2. Then upload it to css2sass to convert it to SASS, and place it in src/styles/_font-pillar.sass.

Don't forget to Gulp!

Installation

Make sure your /data directory exists and is writable by the current user. Alternatively, provide a pillar/config_local.py that changes the relevant settings.

git clone git@git.blender.org:pillar-python-sdk.git ../pillar-python-sdk
pip install -e ../pillar-python-sdk
pip install -U -r requirements.txt
pip install -e .

HDRi viewer

The HDRi viewer uses Google VRView. To upgrade, get those files:

and place them in pillar/web/static/assets/vrview. Replace images/loading.gif in embed.min.js with static/pillar/assets/vrview/loading.gif.

You may also want to compare their index.html to our src/templates/vrview.jade.

When on a HDRi page with the viewer embedded, use this JavaScript code to find the current yaw: vrview_window.contentWindow.yaw(). This can be passed as default_yaw parameter to the iframe.

Description
Pillar
Readme 7.5 MiB
Languages
Python 65.7%
JavaScript 12.5%
Sass 11.8%
Pug 7.9%
CSS 1.7%
Other 0.4%