I rightly do not know what this all is
This commit is contained in:
parent
af6b2b752e
commit
287c1f67c5
78 changed files with 3484 additions and 3365 deletions
|
@ -18,6 +18,7 @@
|
||||||
"symfony/uid": "^7.1",
|
"symfony/uid": "^7.1",
|
||||||
"php-curl-class/php-curl-class": "^9.19",
|
"php-curl-class/php-curl-class": "^9.19",
|
||||||
"symfony/cache": "^7.1",
|
"symfony/cache": "^7.1",
|
||||||
"phpoffice/phpspreadsheet": "^2.1"
|
"phpoffice/phpspreadsheet": "^2.1",
|
||||||
|
"symfony/polyfill-iconv": "^1.31"
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
452
composer.lock
generated
452
composer.lock
generated
File diff suppressed because it is too large
Load diff
|
@ -6,6 +6,7 @@ import { Tab } from 'bootstrap';
|
||||||
import {init as initImport} from "./import";
|
import {init as initImport} from "./import";
|
||||||
import {init as initTable} from "./table";
|
import {init as initTable} from "./table";
|
||||||
import {init as initUserLists} from "./userlists";
|
import {init as initUserLists} from "./userlists";
|
||||||
|
import {initShare} from "./share";
|
||||||
|
|
||||||
document.addEventListener('DOMContentLoaded', () => {
|
document.addEventListener('DOMContentLoaded', () => {
|
||||||
const triggerTabList = document.querySelectorAll('#key-tab button')
|
const triggerTabList = document.querySelectorAll('#key-tab button')
|
||||||
|
@ -21,4 +22,5 @@ document.addEventListener('DOMContentLoaded', () => {
|
||||||
initImport();
|
initImport();
|
||||||
initTable();
|
initTable();
|
||||||
initUserLists();
|
initUserLists();
|
||||||
|
initShare();
|
||||||
})
|
})
|
24
src/js/pages/keys/share.ts
Normal file
24
src/js/pages/keys/share.ts
Normal file
|
@ -0,0 +1,24 @@
|
||||||
|
import DataTable from "datatables.net-bs5";
|
||||||
|
|
||||||
|
export function initShare() {
|
||||||
|
const table = document.querySelector<HTMLTableElement>('#shared-users-table');
|
||||||
|
if (!table) {
|
||||||
|
return;
|
||||||
|
}
|
||||||
|
|
||||||
|
new DataTable(table, {
|
||||||
|
columns: [
|
||||||
|
{
|
||||||
|
name: '',
|
||||||
|
data: 'icon',
|
||||||
|
searchable: false,
|
||||||
|
orderable: false,
|
||||||
|
},
|
||||||
|
{
|
||||||
|
name: 'Name',
|
||||||
|
data: 'name',
|
||||||
|
}
|
||||||
|
],
|
||||||
|
order: [ [1, "desc"] ]
|
||||||
|
});
|
||||||
|
}
|
|
@ -68,7 +68,8 @@ export function init() {
|
||||||
columns: [
|
columns: [
|
||||||
{
|
{
|
||||||
data: 'gamePicture',
|
data: 'gamePicture',
|
||||||
searchable: false
|
searchable: false,
|
||||||
|
orderable: false
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
data: 'name',
|
data: 'name',
|
||||||
|
@ -82,7 +83,6 @@ export function init() {
|
||||||
searchable: false,
|
searchable: false,
|
||||||
}
|
}
|
||||||
],
|
],
|
||||||
ordering: false,
|
|
||||||
order: [ [1, 'asc'] ],
|
order: [ [1, 'asc'] ],
|
||||||
createdRow(row: Node, data: any) {
|
createdRow(row: Node, data: any) {
|
||||||
const tableRow = <HTMLTableRowElement>row;
|
const tableRow = <HTMLTableRowElement>row;
|
||||||
|
|
|
@ -62,10 +62,10 @@ $this->layout('layout/main', [ 'resourceEntry' => 'keys' ]);
|
||||||
<table class="table table-striped key-table">
|
<table class="table table-striped key-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td></td>
|
<th></th>
|
||||||
<td>Game Name</td>
|
<th>Game Name</th>
|
||||||
<td>Amount Keys</td>
|
<th>Amount Keys</th>
|
||||||
<td>IGDB State</td>
|
<th>IGDB State</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody></tbody>
|
<tbody></tbody>
|
||||||
|
@ -86,9 +86,9 @@ $this->layout('layout/main', [ 'resourceEntry' => 'keys' ]);
|
||||||
<table class="table table-striped w-100" id="import-attribute-table">
|
<table class="table table-striped w-100" id="import-attribute-table">
|
||||||
<thead>
|
<thead>
|
||||||
<tr>
|
<tr>
|
||||||
<td>Column</td>
|
<th>Column</th>
|
||||||
<td>Header</td>
|
<th>Header</th>
|
||||||
<td>Attribute</td>
|
<th>Attribute</th>
|
||||||
</tr>
|
</tr>
|
||||||
</thead>
|
</thead>
|
||||||
<tbody></tbody>
|
<tbody></tbody>
|
||||||
|
@ -105,11 +105,21 @@ $this->layout('layout/main', [ 'resourceEntry' => 'keys' ]);
|
||||||
</h2>
|
</h2>
|
||||||
|
|
||||||
<label for="share-user-search">Search for a user...</label>
|
<label for="share-user-search">Search for a user...</label>
|
||||||
<div class="input-group">
|
<div class="input-group mb-3">
|
||||||
<input type="text" class="form-control" id="share-user-search" placeholder="">
|
<input type="text" class="form-control" id="share-user-search" placeholder="">
|
||||||
<button class="btn btn-primary js--search-shared-user">Search</button>
|
<button class="btn btn-primary js--search-shared-user">Search</button>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
<h3>Users shared to</h3>
|
||||||
|
<table id="shared-users-table" class="table table-striped w-100">
|
||||||
|
<thead>
|
||||||
|
<tr>
|
||||||
|
<th width="2.4rem"></th>
|
||||||
|
<th>Name</th>
|
||||||
|
</tr>
|
||||||
|
</thead>
|
||||||
|
<tbody></tbody>
|
||||||
|
</table>
|
||||||
|
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
Loading…
Reference in a new issue