mirror of
https://github.com/snipe/snipe-it.git
synced 2024-12-25 21:54:14 -08:00
Added localization for bootstrap-tables
Signed-off-by: snipe <snipe@snipe.net>
This commit is contained in:
parent
3b3a7e2757
commit
86c0a3ecad
BIN
public/js/dist/bootstrap-table-locale-all.min.js
vendored
Normal file
BIN
public/js/dist/bootstrap-table-locale-all.min.js
vendored
Normal file
Binary file not shown.
|
@ -29,6 +29,7 @@
|
||||||
"/css/webfonts/fa-solid-900.woff2": "/css/webfonts/fa-solid-900.woff2?id=96d16b1bdb177fd796c810b9e706c780",
|
"/css/webfonts/fa-solid-900.woff2": "/css/webfonts/fa-solid-900.woff2?id=96d16b1bdb177fd796c810b9e706c780",
|
||||||
"/css/webfonts/fa-v4compatibility.ttf": "/css/webfonts/fa-v4compatibility.ttf?id=8994b282f9f3b7a00380bb1e2731a4bf",
|
"/css/webfonts/fa-v4compatibility.ttf": "/css/webfonts/fa-v4compatibility.ttf?id=8994b282f9f3b7a00380bb1e2731a4bf",
|
||||||
"/css/webfonts/fa-v4compatibility.woff2": "/css/webfonts/fa-v4compatibility.woff2?id=111e341dba724e1df946e8d1f406a7bd",
|
"/css/webfonts/fa-v4compatibility.woff2": "/css/webfonts/fa-v4compatibility.woff2?id=111e341dba724e1df946e8d1f406a7bd",
|
||||||
|
"/js/dist/bootstrap-table-locale-all.min.js": "/js/dist/bootstrap-table-locale-all.min.js?id=7373e7d7017cceca6c32928080cea0fb",
|
||||||
"/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=5f79123a6750afd34dbf565faec3dda3",
|
"/css/dist/bootstrap-table.css": "/css/dist/bootstrap-table.css?id=5f79123a6750afd34dbf565faec3dda3",
|
||||||
"/js/build/vendor.js": "/js/build/vendor.js?id=e27070bdbc5fce3bfd132b952d641fd6",
|
"/js/build/vendor.js": "/js/build/vendor.js?id=e27070bdbc5fce3bfd132b952d641fd6",
|
||||||
"/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=e5918703a22f8992c4c98f1dbbecb8f7",
|
"/js/dist/bootstrap-table.js": "/js/dist/bootstrap-table.js?id=e5918703a22f8992c4c98f1dbbecb8f7",
|
||||||
|
|
|
@ -5,11 +5,11 @@
|
||||||
@push('js')
|
@push('js')
|
||||||
|
|
||||||
<script src="{{ url(mix('js/dist/bootstrap-table.js')) }}"></script>
|
<script src="{{ url(mix('js/dist/bootstrap-table.js')) }}"></script>
|
||||||
|
<script src="{{ url(mix('js/dist/bootstrap-table-locale-all.min.js')) }}"></script>
|
||||||
|
|
||||||
<script nonce="{{ csrf_token() }}">
|
<script nonce="{{ csrf_token() }}">
|
||||||
$(function () {
|
$(function () {
|
||||||
|
|
||||||
var locale = '{{ app()->getLocale() }}';
|
|
||||||
var blockedFields = "searchable,sortable,switchable,title,visible,formatter,class".split(",");
|
var blockedFields = "searchable,sortable,switchable,title,visible,formatter,class".split(",");
|
||||||
|
|
||||||
var keyBlocked = function(key) {
|
var keyBlocked = function(key) {
|
||||||
|
@ -87,6 +87,7 @@
|
||||||
export: 'fa-download',
|
export: 'fa-download',
|
||||||
clearSearch: 'fa-times'
|
clearSearch: 'fa-times'
|
||||||
},
|
},
|
||||||
|
locale: '{{ app()->getLocale() }}',
|
||||||
exportOptions: export_options,
|
exportOptions: export_options,
|
||||||
exportTypes: ['xlsx', 'excel', 'csv', 'pdf','json', 'xml', 'txt', 'sql', 'doc' ],
|
exportTypes: ['xlsx', 'excel', 'csv', 'pdf','json', 'xml', 'txt', 'sql', 'doc' ],
|
||||||
onLoadSuccess: function () {
|
onLoadSuccess: function () {
|
||||||
|
|
|
@ -45,6 +45,12 @@ mix
|
||||||
mix
|
mix
|
||||||
.copy("./node_modules/@fortawesome/fontawesome-free/webfonts", "./public/css/webfonts")
|
.copy("./node_modules/@fortawesome/fontawesome-free/webfonts", "./public/css/webfonts")
|
||||||
|
|
||||||
|
/**
|
||||||
|
* Copy BS tables js file
|
||||||
|
*/
|
||||||
|
mix
|
||||||
|
.copy( './node_modules/bootstrap-table/dist/bootstrap-table-locale-all.min.js', 'public/js/dist' )
|
||||||
|
|
||||||
// Combine main SnipeIT JS files
|
// Combine main SnipeIT JS files
|
||||||
mix
|
mix
|
||||||
.js(
|
.js(
|
||||||
|
|
Loading…
Reference in a new issue