Compare commits
3 Commits
2.0.0
...
00167b02d5
Author | SHA1 | Date | |
---|---|---|---|
00167b02d5 | |||
81d1bc21fe | |||
75c7dd95a0 |
@ -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
|
||||||
];
|
];
|
||||||
|
@ -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);
|
||||||
},
|
},
|
||||||
];
|
];
|
||||||
|
BIN
ui/public/images/icons8-at-sign-gradient-16.png
Normal file
BIN
ui/public/images/icons8-at-sign-gradient-16.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 513 B |
BIN
ui/public/images/icons8-at-sign-gradient-32.png
Normal file
BIN
ui/public/images/icons8-at-sign-gradient-32.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 1.1 KiB |
BIN
ui/public/images/icons8-at-sign-gradient-96.png
Normal file
BIN
ui/public/images/icons8-at-sign-gradient-96.png
Normal file
Binary file not shown.
After Width: | Height: | Size: 3.8 KiB |
3
ui/public/robots.txt
Normal file
3
ui/public/robots.txt
Normal file
@ -0,0 +1,3 @@
|
|||||||
|
User-agent: *
|
||||||
|
Disallow: /
|
||||||
|
Disallow: /cgi-bin/
|
@ -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
|
||||||
|
@ -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)
|
||||||
|
@ -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>
|
||||||
|
Reference in New Issue
Block a user