-
-
Notifications
You must be signed in to change notification settings - Fork 981
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1585 from pierotofy/optim
JS bundle optimization, placeholder loading screens
- Loading branch information
Showing
19 changed files
with
174 additions
and
102 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/build/potree/potree.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/jquery-ui/jquery-ui.min.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/openlayers3/ol.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/spectrum/spectrum.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/jstree/themes/mixed/style.css"> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,38 +1,23 @@ | ||
{% extends "app/logged_in_base.html" %} | ||
{% load i18n %} | ||
|
||
{% block headers-before-bundle %} | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/build/potree/potree.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/jquery-ui/jquery-ui.min.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/openlayers3/ol.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/spectrum/spectrum.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/jstree/themes/mixed/style.css"> | ||
|
||
<script src="/static/app/js/vendor/potree/libs/spectrum/spectrum.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/jquery-ui/jquery-ui.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/three.js/build/three.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/three.js/extra/lines.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/other/BinaryHeap.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/tween/tween.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/d3/d3.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/proj4/proj4.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/openlayers3/ol.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/i18next/i18next.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/jstree/jstree.js"></script> | ||
<script src="/static/app/js/vendor/potree/build/potree/potree.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/plasio/js/laslaz.js"></script> | ||
{% include "3d_model_css.html" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'ModelView' attrs='async' %} | ||
|
||
<h3 class="model-title" title="{{title}}"><i class="fa fa-cube"></i> {{title}}</h3> | ||
|
||
<div data-modelview class="full-height" | ||
{% for key, value in params %} | ||
data-{{key}}="{{value}}" | ||
{% endfor %} | ||
></div> | ||
> | ||
{% include "3d_model_placeholder.html" %} | ||
</div> | ||
|
||
{% include "3d_model_js.html" %} | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'ModelView' attrs='async' %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<script src="/static/app/js/vendor/potree/libs/spectrum/spectrum.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/jquery-ui/jquery-ui.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/three.js/build/three.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/three.js/extra/lines.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/other/BinaryHeap.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/tween/tween.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/d3/d3.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/proj4/proj4.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/openlayers3/ol.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/i18next/i18next.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/jstree/jstree.js"></script> | ||
<script src="/static/app/js/vendor/potree/build/potree/potree.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/plasio/js/laslaz.js"></script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
<div class="placeholder-item pulse" id="td-model-placeholder" style="margin-top: 16px; display: flex; height: calc(100% - 32px); width: 100%; justify-content: center; align-items: center"> | ||
<i class="fa fa-cube"></i> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,14 +1,14 @@ | ||
{% extends "app/logged_in_base.html" %} | ||
{% load i18n %} | ||
|
||
{% block content %} | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'MapView' attrs='async' %} | ||
|
||
<div data-mapview | ||
<div data-mapview | ||
{% for key, value in params %} | ||
data-{{key}}="{{value}}" | ||
{% endfor %} | ||
></div> | ||
> | ||
{% include "map_placeholder.html" %} | ||
</div> | ||
|
||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'MapView' attrs='async' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<div id="map-placeholder" style="height: 100%"> | ||
<div style="display: flex; margin-top: 4px" id="map-placeholder-header"> | ||
<div class="placeholder-item border" style="width: 34px; height: 34px; border-radius: 100%; margin-right: 8px;"></div> | ||
<div class="placeholder-item shimmer" style="width: 33%; height: 34px;"></div> | ||
<div style="width: 45%"></div> | ||
<div class="placeholder-item border shimmer" style="width: 10%; height: 34px; margin-right: 4px;"></div> | ||
<div class="placeholder-item border shimmer" style="width: 10%; height: 34px;"></div> | ||
</div> | ||
|
||
<div class="placeholder-item pulse" id="map-placeholder-map" style="margin-top: 16px; display: flex; height: calc(100% - 32px); width: 100%; justify-content: center; align-items: center"> | ||
<i class="fa fa-globe"></i> | ||
</div> | ||
</div> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,36 +1,23 @@ | ||
{% extends "app/public/base.html" %} | ||
|
||
{% block headers-before-bundle %} | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/build/potree/potree.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/jquery-ui/jquery-ui.min.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/openlayers3/ol.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/spectrum/spectrum.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/jstree/themes/mixed/style.css"> | ||
|
||
<script src="/static/app/js/vendor/potree/libs/spectrum/spectrum.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/jquery-ui/jquery-ui.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/three.js/build/three.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/three.js/extra/lines.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/other/BinaryHeap.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/tween/tween.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/d3/d3.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/proj4/proj4.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/openlayers3/ol.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/i18next/i18next.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/jstree/jstree.js"></script> | ||
<script src="/static/app/js/vendor/potree/build/potree/potree.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/plasio/js/laslaz.js"></script> | ||
{% include "3d_model_css.html" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'ModelView' attrs='async' %} | ||
|
||
<h3 class="model-title" title="{{title}}"><i class="fa fa-cube"></i> {{title}}</h3> | ||
|
||
<div data-modelview class="full-height" | ||
{% for key, value in params %} | ||
<div data-modelview class="full-height" | ||
{% for key, value in params %} | ||
data-{{key}}="{{value}}" | ||
{% endfor %} | ||
></div> | ||
> | ||
{% include "3d_model_placeholder.html" %} | ||
</div> | ||
|
||
{% include "3d_model_js.html" %} | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'ModelView' attrs='async' %} | ||
|
||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,34 +1,27 @@ | ||
{% extends "app/public/iframe_base.html" %} | ||
|
||
{% block headers-before-bundle %} | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/build/potree/potree.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/jquery-ui/jquery-ui.min.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/openlayers3/ol.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/spectrum/spectrum.css"> | ||
<link rel="stylesheet" type="text/css" href="/static/app/js/vendor/potree/libs/jstree/themes/mixed/style.css"> | ||
|
||
<script src="/static/app/js/vendor/potree/libs/spectrum/spectrum.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/jquery-ui/jquery-ui.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/three.js/build/three.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/three.js/extra/lines.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/other/BinaryHeap.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/tween/tween.min.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/d3/d3.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/proj4/proj4.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/openlayers3/ol.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/i18next/i18next.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/jstree/jstree.js"></script> | ||
<script src="/static/app/js/vendor/potree/build/potree/potree.js"></script> | ||
<script src="/static/app/js/vendor/potree/libs/plasio/js/laslaz.js"></script> | ||
{% include "3d_model_css.html" %} | ||
{% endblock %} | ||
|
||
{% block content %} | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'ModelView' attrs='async' %} | ||
<style type="text/css"> | ||
#td-model-placeholder{ | ||
position: absolute !important; top: 0; bottom: 0; left: 0; right: 0; | ||
margin-top: 0px !important; | ||
height: 100% !important; | ||
} | ||
</style> | ||
|
||
<div data-modelview class="full-height" | ||
{% for key, value in params %} | ||
data-{{key}}="{{value}}" | ||
{% endfor %} | ||
> | ||
{% include "3d_model_placeholder.html" %} | ||
</div> | ||
|
||
<div data-modelview class="full-height" | ||
{% for key, value in params %} | ||
data-{{key}}="{{value}}" | ||
{% endfor %} | ||
></div> | ||
{% include "3d_model_js.html" %} | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'ModelView' attrs='async' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,12 +1,16 @@ | ||
{% extends "app/public/base.html" %} | ||
|
||
{% block content %} | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'MapView' attrs='async' %} | ||
<style type="text/css">#map-placeholder-header{margin-top: 20px !important}</style> | ||
|
||
<div data-mapview | ||
<div data-mapview | ||
{% for key, value in params %} | ||
data-{{key}}="{{value}}" | ||
{% endfor %} | ||
></div> | ||
> | ||
{% include "map_placeholder.html" %} | ||
</div> | ||
|
||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'MapView' attrs='async' %} | ||
{% endblock %} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,11 +1,24 @@ | ||
{% extends "app/public/iframe_base.html" %} | ||
|
||
{% block content %} | ||
<style type="text/css"> | ||
#map-placeholder-header{ | ||
display: none !important; | ||
} | ||
#map-placeholder-map{ | ||
position: absolute; top: 0; bottom: 0; left: 0; right:0; | ||
margin-top: 0 !important; | ||
height: 100% !important; | ||
} | ||
</style> | ||
|
||
<div data-mapview | ||
{% for key, value in params %} | ||
data-{{key}}="{{value}}" | ||
{% endfor %} | ||
> | ||
{% include "map_placeholder.html" %} | ||
</div> | ||
{% load render_bundle from webpack_loader %} | ||
{% render_bundle 'MapView' attrs='async' %} | ||
<div data-mapview | ||
{% for key, value in params %} | ||
data-{{key}}="{{value}}" | ||
{% endfor %} | ||
></div> | ||
{% endblock %} |
Oops, something went wrong.