5 Commits

Author SHA1 Message Date
eafdd71505 Merge branch 'develop' into release 2023-10-31 13:41:46 -03:00
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
970258d00e Merge branch 'develop' into release 2023-10-31 13:04:09 -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 = [ $arr = [
'host' => 'db', 'host' => 'db',
'name' => $_ENV['MYSQL_DATABASE'], 'name' => $_ENV['MYSQL_DATABASE'],
'username' => $_ENV['MYSQL_USER'], 'user' => [
'name' => $_ENV['MYSQL_USER'],
'password' => $_ENV['MYSQL_PASSWORD'] 'password' => $_ENV['MYSQL_PASSWORD']
]
]; ];
if (isset($_ENV['MYSQL_PORT'])) { if (isset($_ENV['MYSQL_PORT'])) {
$arr['port'] = $_ENV['MYSQL_PORT']; $arr['port'] = $_ENV['MYSQL_PORT'];
} }
return (object) $arr; return json_decode(json_encode($arr));
}, },
'max_update_days' => 7 'max_update_days' => 7
]; ];

View File

@ -22,6 +22,6 @@ return [
} }
$dsn []= "dbname={$database->name}"; $dsn []= "dbname={$database->name}";
$dsn = implode(';', $dsn); $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) $('<a></a>').attr('href', '{{$urls->base}}/emails/mailbox/' + this.id).html(this.name)
) )
register.append( 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') $('<i></i>').addClass('ui big green check circle icon')
) )
).append( ).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') $('<i></i>').addClass('remove icon')
).click(e => { ).click(e => {
this.unregister($(e.currentTarget)) this.unregister($(e.currentTarget))

View File

@ -48,14 +48,20 @@
this.draw().empty() this.draw().empty()
return return
} }
const list = $('<div></div>').addClass('ui list') const list = $('<div></div>').addClass('ui selection divided list')
this.mailboxes.forEach(mb => { this.mailboxes.forEach(mb => {
let count = '' let count = ''
if (typeof mb.last_checked !== 'undefined') { if (typeof mb.last_checked !== 'undefined') {
count = ' (' + mb.last_checked.count + ')' count = ' (<i class="envelope outline icon"></i>' + mb.last_checked.count + ')'
} }
list.append( 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) parent.append(list)

View File

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