Skip to content
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
57 changes: 34 additions & 23 deletions src/Module/Templates/Toolkit/assets/css/toolkit.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#toolkit-content{
#toolkit-content {
padding-top: 15px;
}

Expand All @@ -10,58 +10,64 @@
box-sizing: content-box;
}

.sidenav li:not(:last-child){
.sidenav li:not(:last-child) {
border-bottom: 1px solid rgba(0, 0, 0, 0.2);
}

.sidenav .logo-container i.material-icons {
line-height: inherit;
}

iframe{
iframe {
width: 100%;
border: none;
}

.email-iframe{
.email-iframe {
height: 400px;
}

.logs-iframe, .table-iframe{
.logs-iframe,
.table-iframe {
height: 85vh;
}

.collapsible-header .delete-email i{
.collapsible-header .delete-email i {
width: inherit;
}

.collapsible-header > .chevron > i {
.collapsible-header>.chevron>i {
transition: transform 0.2s ease;
}

.active > .collapsible-header > .chevron > i {
.active>.collapsible-header>.chevron>i {
transform: rotate(90deg);
}

#log-collapsible{
#log-collapsible {
text-align: left;
}

.logFiles, .tables{
.logFiles,
.tables {
padding-left: 0 !important;
}

.logFile-item, .table-item, .table-header{
.logFile-item,
.table-item,
.table-header {
cursor: pointer;
display: block !important;
}

.logFile-item:hover, .table-item:hover, .table-header:hover{
.logFile-item:hover,
.table-item:hover,
.table-header:hover {
background-color: #26a69a !important;
color: #eafaf9;
}

.highlight{
.highlight {
table-layout: fixed;
width: 100%;
}
Expand All @@ -73,47 +79,48 @@ iframe{
background-color: white;
}

.table-body{
.table-body {
max-width: 100%;
}

.table-body tr td,.table-body tr th{
.table-body tr td,
.table-body tr th {
width: 13%;
overflow: hidden;
text-overflow: ellipsis;
white-space: nowrap;
padding: 15px 10px;
}

.table-body .actions-column{
.table-body .actions-column {
width: 5%;
}

#jsoneditor{
#jsoneditor {
padding: 0;
}

.modal-footer{
.modal-footer {
padding: 4px 25px !important;
}

.jsoneditor{
.jsoneditor {
border: none !important;
}

div.jsoneditor-field{
div.jsoneditor-field {
word-break: normal;
}

div.jsoneditor-tree button.jsoneditor-invisible{
div.jsoneditor-tree button.jsoneditor-invisible {
display: none !important;
}

.jsoneditor-menu{
.jsoneditor-menu {
background-color: #26a69a !important;
}

#rowEditModal{
#rowEditModal {
width: 50% !important;
}

Expand All @@ -133,4 +140,8 @@ div.jsoneditor-tree button.jsoneditor-invisible{
.has-fixed-sidenav main {
padding: 0 20px;
}
}

.toast-left {
left: 100px !important;
}
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
<div id="database">
<div class="row">

<?php if (session()->has('error')): ?>
<?php echo partial('partials/messages/error') ?>
<?php endif; ?>

<div class="tables col s2">
<ul class="collection with-header">
<li class="collection-header table-header add-table waves-effect create-table">
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
<?php $error = session()->getFlash('error') ?>
<?php if ($error): ?>
<script>
document.addEventListener('DOMContentLoaded', function() {
<?php if (is_array($error)): ?>
<?php foreach ($error as $field => $messages): ?>
<?php foreach ($messages as $message): ?>
M.toast({html: "<?php echo addslashes($message); ?>", classes: 'red toast-left'});
<?php endforeach; ?>
<?php endforeach; ?>
<?php else: ?>
M.toast({html: "<?php echo addslashes($error); ?>", classes: 'red toast-left'});
<?php endif; ?>
});
</script>
<?php endif; ?>
5 changes: 5 additions & 0 deletions src/Module/Templates/Toolkit/src/resources/lang/en/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'table' => 'Table Name'
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'nonEmptyJson' => 'The JSON should not be empty.',
'uniqueTableName' => 'Table name must be unique.',
];
5 changes: 5 additions & 0 deletions src/Module/Templates/Toolkit/src/resources/lang/es/common.php
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
<?php

return [
'table' => 'Nombre de la tabla'
];
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
<?php

return [
'nonEmptyJson' => 'El JSON no debe estar vacío.',
'uniqueTableName' => 'El nombre de la tabla debe ser único.',
];
Loading