3 Commits

Author SHA1 Message Date
00167b02d5 DB connection settings diff 2023-10-31 13:41:15 -03:00
81d1bc21fe Icon and mailboxes button 2023-10-31 13:38:24 -03:00
75c7dd95a0 Better UI in home 2023-10-31 13:03:49 -03:00
9 changed files with 23 additions and 11 deletions

View File

@ -20,13 +20,15 @@ return [
$arr = [
'host' => 'db',
'name' => $_ENV['MYSQL_DATABASE'],
'username' => $_ENV['MYSQL_USER'],
'password' => $_ENV['MYSQL_PASSWORD']
'user' => [
'name' => $_ENV['MYSQL_USER'],
'password' => $_ENV['MYSQL_PASSWORD']
]
];
if (isset($_ENV['MYSQL_PORT'])) {
$arr['port'] = $_ENV['MYSQL_PORT'];
}
return (object) $arr;
return json_decode(json_encode($arr));
},
'max_update_days' => 7
];

View File

@ -22,6 +22,6 @@ return [
}
$dsn []= "dbname={$database->name}";
$dsn = implode(';', $dsn);
return new PDO($dsn, $database->username, $database->password);
return new PDO($dsn, $database->user->name, $database->user->password);
},
];

Binary file not shown.

After

Width:  |  Height:  |  Size: 513 B

Binary file not shown.

After

Width:  |  Height:  |  Size: 1.1 KiB

Binary file not shown.

After

Width:  |  Height:  |  Size: 3.8 KiB

3
ui/public/robots.txt Normal file
View File

@ -0,0 +1,3 @@
User-agent: *
Disallow: /
Disallow: /cgi-bin/

View File

@ -27,11 +27,11 @@
$('<a></a>').attr('href', '{{$urls->base}}/emails/mailbox/' + this.id).html(this.name)
)
register.append(
$('<a></a>').attr('href', '{{$urls->base}}/emails/mailbox/' + this.id).append(
$('<a></a>').attr('href', '{{$urls->base}}/emails/mailbox/' + this.id).attr('title', 'Show').append(
$('<i></i>').addClass('ui big green check circle icon')
)
).append(
$('<button></button>').addClass('ui mini circular red icon button').append(
$('<button></button>').addClass('ui mini circular red icon button').attr('title', 'Remove').append(
$('<i></i>').addClass('remove icon')
).click(e => {
this.unregister($(e.currentTarget))
@ -163,4 +163,4 @@
mailboxes.setup()
})
</script>
@endpush
@endpush

View File

@ -48,14 +48,20 @@
this.draw().empty()
return
}
const list = $('<div></div>').addClass('ui list')
const list = $('<div></div>').addClass('ui selection divided list')
this.mailboxes.forEach(mb => {
let count = ''
if (typeof mb.last_checked !== 'undefined') {
count = ' (' + mb.last_checked.count + ')'
count = ' (<i class="envelope outline icon"></i>' + mb.last_checked.count + ')'
}
list.append(
$('<a></a>').addClass('item').attr('href', '{{$urls->base}}/emails/mailbox/' + mb.id).html(mb.name + count)
$('<div></div>').addClass('item').append(
$('<i></i>').addClass('inbox icon')
).append(
$('<div></div>').addClass('content').append(
$('<a></a>').addClass('header').attr('href', '{{$urls->base}}/emails/mailbox/' + mb.id).html(mb.name).append(count)
)
)
)
})
parent.append(list)

View File

@ -7,5 +7,6 @@
@yield('page_title')
@endif
</title>
<link type="image/png" sizes="32x32" rel="icon" href="{{$urls->base}}/images/icons8-at-sign-gradient-32.png">
@include('layout.head.styles')
</head>
</head>