mirror of
https://github.com/snipe/snipe-it.git
synced 2025-01-11 13:57:41 -08:00
Merge branch 'master' into fixes/accessibility_fixes
This commit is contained in:
commit
c906026acd
|
@ -1,4 +1,4 @@
|
|||
#!/bin/sh
|
||||
#!/bin/bash
|
||||
|
||||
# fix key if needed
|
||||
if [ -z "$APP_KEY" ]
|
||||
|
@ -41,6 +41,14 @@ chown -R docker:root /var/lib/snipeit/data/*
|
|||
chown -R docker:root /var/lib/snipeit/dumps
|
||||
chown -R docker:root /var/lib/snipeit/keys
|
||||
|
||||
# Fix php settings
|
||||
if [ -v "PHP_UPLOAD_LIMIT" ]
|
||||
then
|
||||
echo "Changing upload limit to ${PHP_UPLOAD_LIMIT}"
|
||||
sed -i "s/^upload_max_filesize.*/upload_max_filesize = ${PHP_UPLOAD_LIMIT}M/" /etc/php/*/apache2/php.ini
|
||||
fi
|
||||
|
||||
|
||||
# If the Oauth DB files are not present copy the vendor files over to the db migrations
|
||||
if [ ! -f "/var/www/html/database/migrations/*create_oauth*" ]
|
||||
then
|
||||
|
|
|
@ -16,6 +16,21 @@
|
|||
[v-cloak] {
|
||||
display:none;
|
||||
}
|
||||
|
||||
/* Rules for the div table */
|
||||
.tbl_head {
|
||||
font-weight: bold
|
||||
}
|
||||
.div_tbl {
|
||||
display: table
|
||||
}
|
||||
.div_tbl_row {
|
||||
display: table-row
|
||||
}
|
||||
.div_tbl_cell {
|
||||
display: table-cell;
|
||||
padding: 2px
|
||||
}
|
||||
</style>
|
||||
|
||||
<div id="app">
|
||||
|
@ -53,33 +68,34 @@
|
|||
</div>
|
||||
<div class="row">
|
||||
<div class="col-md-12" style="padding-top: 30px;">
|
||||
<table class="table table-striped" id="upload-table">
|
||||
<thead>
|
||||
<th>File</th>
|
||||
<th>Created</th>
|
||||
<th>Size</th>
|
||||
<th><span class="sr-only">Delete</span></th>
|
||||
</thead>
|
||||
<tbody>
|
||||
<template v-for="currentFile in files">
|
||||
<tr>
|
||||
<td>@{{ currentFile.file_path }}</td>
|
||||
<td>@{{ currentFile.created_at }} </td>
|
||||
<td>@{{ currentFile.filesize }}</td>
|
||||
<td>
|
||||
<button class="btn btn-sm btn-info" @click="toggleEvent(currentFile.id)">Process</button>
|
||||
<button class="btn btn-sm btn-danger" @click="deleteFile(currentFile)"><i class="fa fa-trash icon-white" aria-hidden="true"></i></button>
|
||||
</td>
|
||||
</tr>
|
||||
<import-file
|
||||
:key="currentFile.id"
|
||||
:file="currentFile"
|
||||
:custom-fields="customFields"
|
||||
@alert="updateAlert(alert)">
|
||||
</import-file>
|
||||
</template>
|
||||
</tbody>
|
||||
</table>
|
||||
<div class="table table-striped" id="upload-table">
|
||||
<div class="div_tbl_row">
|
||||
<div class="tbl_head">File</div>
|
||||
<div class="tbl_head">Created</div>
|
||||
<div class="tbl_head">Size</div>
|
||||
<div class="tbl_head"></div>
|
||||
</div>
|
||||
|
||||
<template v-for="currentFile in files">
|
||||
<div class="div_tbl_row">
|
||||
<div class="div_tbl_cell">@{{ currentFile.file_path }}</div>
|
||||
<div class="div_tbl_cell">@{{ currentFile.created_at }} </div>
|
||||
<div class="div_tbl_cell">@{{ currentFile.filesize }}</div>
|
||||
|
||||
<div class="div_tbl_cell">
|
||||
<button class="btn btn-sm btn-info" @click="toggleEvent(currentFile.id)">Process</button>
|
||||
<button class="btn btn-sm btn-danger" @click="deleteFile(currentFile)"><i class="fa fa-trash icon-white"></i></button>
|
||||
</div>
|
||||
</div>
|
||||
|
||||
<import-file
|
||||
:key="currentFile.id"
|
||||
:file="currentFile"
|
||||
:custom-fields="customFields"
|
||||
@alert="updateAlert(alert)">
|
||||
</import-file>
|
||||
</template>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
|
|
Loading…
Reference in a new issue