mirror of
https://github.com/inventree/InvenTree
synced 2024-08-30 18:33:04 +00:00
74bec86675
* Lazy load the pricing bom table when the "pricing" tab is selected * Update django-debug-toolbar configuration * Major refactoring for the 'can_build' function - Use a single annotated query to the db, rather than a for loop (which is what a caveman would use) - Query performance is greatly improved - Also refactors existing variant-part-stock subquery code, to make it re-usable * Use minified JS and CSS where possible * Render a 'preview' version of each part image - Saves load time when the image is quite large - Adds a data migration to render out the new variation * Adds 'preview' version of company images * Defer loading of javascript files Note: some cannot be deferred - jquery in particular * Crucial bugfix for user roles context - Previously was *not* being calculated correctly - A non-superuser role would most likely display pages incorrectly * Prevent loading of "about" on every page - Load dynamically when requested - Takes ~400ms! - Cuts out a lot of fat * Match displayed image size to preview image size * Utilize caching framework for accessing user "role" information - Reduces number of DB queries required by rendering framework * Remove redundant query elements * Remove 'stock' field from PartBrief serializer - A calculated field on a serializer is a *bad idea* when that calculation requires a DB hit * Query improvements for StockItem serializer - Remove calculated fields - Fix annotations * Bug fixes * Remove JS load test - Loading of JS files is now deferred, so the unit test does not work as it used to * Fix broken template for "maintenance" page * Remove thumbnail generation migrations - Already performed manually as part of ''invoke migrate" - Running as a migration causes unit test problems - Not sensible to run this as a data-migration anyway * tweak for build table
38 lines
2.8 KiB
HTML
38 lines
2.8 KiB
HTML
{% load static %}
|
|
|
|
<!-- jquery -->
|
|
<script type="text/javascript" src="{% static 'script/jquery_3.3.1_jquery.min.js' %}"></script>
|
|
<script type='text/javascript' src="{% static 'script/jquery.form.min.js' %}"></script>
|
|
<script type='text/javascript' src="{% static 'script/jquery-ui/jquery-ui.min.js' %}"></script>
|
|
|
|
<!-- Bootstrap-->
|
|
<script type="text/javascript" src="{% static 'bootstrap/js/bootstrap.bundle.min.js' %}"></script>
|
|
|
|
<!-- Bootstrap Table -->
|
|
<script defer type='text/javascript' src="{% static 'script/bootstrap/bootstrap-treeview.js' %}"></script>
|
|
<script defer type='text/javascript' src='{% static "treegrid/js/jquery.treegrid.js" %}'></script>
|
|
<script defer type='text/javascript' src='{% static "treegrid/js/jquery.treegrid.bootstrap3.js" %}'></script>
|
|
<script defer type='text/javascript' src="{% static 'bootstrap-table/bootstrap-table.min.js' %}"></script>
|
|
<script defer type='text/javascript' src='{% static "bootstrap-table/extensions/group-by-v2/bootstrap-table-group-by.min.js" %}'></script>
|
|
<script defer type='text/javascript' src='{% static "bootstrap-table/extensions/filter-control/bootstrap-table-filter-control.min.js" %}'></script>
|
|
<script defer type='text/javascript' src='{% static "bootstrap-table/extensions/treegrid/bootstrap-table-treegrid.min.js" %}'></script>
|
|
<script defer type='text/javascript' src='{% static "bootstrap-table/extensions/custom-view/bootstrap-table-custom-view.min.js" %}'></script>
|
|
|
|
<!-- fontawesome -->
|
|
<script defer type='text/javascript' src="{% static 'fontawesome/js/solid.min.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'fontawesome/js/regular.min.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'fontawesome/js/brands.min.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'fontawesome/js/fontawesome.min.js' %}"></script>
|
|
|
|
<!-- 3rd party general js -->
|
|
<script defer type="text/javascript" src="{% static 'fullcalendar/main.min.js' %}"></script>
|
|
<script defer type="text/javascript" src="{% static 'fullcalendar/locales-all.min.js' %}"></script>
|
|
<script defer type="text/javascript" src="{% static 'select2/js/select2.full.min.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'script/moment.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'script/chart.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'script/chartjs-adapter-moment.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'script/clipboard.min.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'easymde/easymde.min.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'script/randomColor.min.js' %}"></script>
|
|
<script defer type='text/javascript' src="{% static 'script/qr-scanner.umd.min.js' %}"></script>
|