3 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
8 changed files with 14 additions and 8 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' => [
'password' => $_ENV['MYSQL_PASSWORD'] 'name' => $_ENV['MYSQL_USER'],
'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))
@ -163,4 +163,4 @@
mailboxes.setup() mailboxes.setup()
}) })
</script> </script>
@endpush @endpush

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>