feat: add public directory and favicons
|
@ -33,6 +33,7 @@ RUN apt-get clean
|
|||
COPY ./src/ /app/src/
|
||||
COPY ./config/ /app/config/
|
||||
COPY ./storage/ /app/storage/
|
||||
COPY ./public/ /app/storage/
|
||||
COPY ./composer.json /app/
|
||||
COPY ./index.php /app/
|
||||
|
||||
|
|
|
@ -7,8 +7,9 @@ services:
|
|||
- ./.env
|
||||
volumes:
|
||||
- ./src/:/app/src/
|
||||
- ./storage/:/app/storage/
|
||||
- ./config/:/app/config/
|
||||
- ./storage/:/app/storage/
|
||||
- ./public/:/app/public/
|
||||
ports:
|
||||
- '8080:8080'
|
||||
logging:
|
||||
|
|
2
public/browserconfig.xml
Normal file
|
@ -0,0 +1,2 @@
|
|||
<?xml version="1.0" encoding="utf-8"?>
|
||||
<browserconfig><msapplication><tile><square70x70logo src="/ms-icon-70x70.png"/><square150x150logo src="/ms-icon-150x150.png"/><square310x310logo src="/ms-icon-310x310.png"/><TileColor>#ffffff</TileColor></tile></msapplication></browserconfig>
|
BIN
public/favicon.ico
Normal file
After Width: | Height: | Size: 1.1 KiB |
BIN
public/images/android-icon-144x144.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
public/images/android-icon-192x192.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
public/images/android-icon-36x36.png
Normal file
After Width: | Height: | Size: 3.9 KiB |
BIN
public/images/android-icon-48x48.png
Normal file
After Width: | Height: | Size: 5.8 KiB |
BIN
public/images/android-icon-72x72.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
public/images/android-icon-96x96.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
public/images/apple-icon-114x114.png
Normal file
After Width: | Height: | Size: 19 KiB |
BIN
public/images/apple-icon-120x120.png
Normal file
After Width: | Height: | Size: 20 KiB |
BIN
public/images/apple-icon-144x144.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
public/images/apple-icon-152x152.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
public/images/apple-icon-180x180.png
Normal file
After Width: | Height: | Size: 36 KiB |
BIN
public/images/apple-icon-57x57.png
Normal file
After Width: | Height: | Size: 7.4 KiB |
BIN
public/images/apple-icon-60x60.png
Normal file
After Width: | Height: | Size: 7.8 KiB |
BIN
public/images/apple-icon-72x72.png
Normal file
After Width: | Height: | Size: 10 KiB |
BIN
public/images/apple-icon-76x76.png
Normal file
After Width: | Height: | Size: 11 KiB |
BIN
public/images/apple-icon-precomposed.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
public/images/apple-icon.png
Normal file
After Width: | Height: | Size: 37 KiB |
BIN
public/images/favicon-16x16.png
Normal file
After Width: | Height: | Size: 1.7 KiB |
BIN
public/images/favicon-32x32.png
Normal file
After Width: | Height: | Size: 3.3 KiB |
BIN
public/images/favicon-96x96.png
Normal file
After Width: | Height: | Size: 15 KiB |
BIN
public/images/icon-512.png
Normal file
After Width: | Height: | Size: 369 KiB |
BIN
public/images/ms-icon-144x144.png
Normal file
After Width: | Height: | Size: 26 KiB |
BIN
public/images/ms-icon-150x150.png
Normal file
After Width: | Height: | Size: 28 KiB |
BIN
public/images/ms-icon-310x310.png
Normal file
After Width: | Height: | Size: 82 KiB |
BIN
public/images/ms-icon-70x70.png
Normal file
After Width: | Height: | Size: 9.7 KiB |
41
public/manifest.json
Normal file
|
@ -0,0 +1,41 @@
|
|||
{
|
||||
"name": "IPList",
|
||||
"icons": [
|
||||
{
|
||||
"src": "\/android-icon-36x36.png",
|
||||
"sizes": "36x36",
|
||||
"type": "image\/png",
|
||||
"density": "0.75"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-48x48.png",
|
||||
"sizes": "48x48",
|
||||
"type": "image\/png",
|
||||
"density": "1.0"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-72x72.png",
|
||||
"sizes": "72x72",
|
||||
"type": "image\/png",
|
||||
"density": "1.5"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-96x96.png",
|
||||
"sizes": "96x96",
|
||||
"type": "image\/png",
|
||||
"density": "2.0"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-144x144.png",
|
||||
"sizes": "144x144",
|
||||
"type": "image\/png",
|
||||
"density": "3.0"
|
||||
},
|
||||
{
|
||||
"src": "\/android-icon-192x192.png",
|
||||
"sizes": "192x192",
|
||||
"type": "image\/png",
|
||||
"density": "4.0"
|
||||
}
|
||||
]
|
||||
}
|
|
@ -8,7 +8,28 @@ use OpenCCK\App\Controller\TextController;
|
|||
<meta charset="UTF-8">
|
||||
<meta name="viewport" content="width=device-width, user-scalable=no, initial-scale=1.0, maximum-scale=1.0, minimum-scale=1.0">
|
||||
<meta http-equiv="X-UA-Compatible" content="ie=edge">
|
||||
<title>IPList</title>
|
||||
|
||||
<title>IP Address Collection Service</title>
|
||||
|
||||
<link rel="apple-touch-icon" sizes="57x57" href="/images/apple-icon-57x57.png">
|
||||
<link rel="apple-touch-icon" sizes="60x60" href="/images/apple-icon-60x60.png">
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="/images/apple-icon-72x72.png">
|
||||
<link rel="apple-touch-icon" sizes="76x76" href="/images/apple-icon-76x76.png">
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="/images/apple-icon-114x114.png">
|
||||
<link rel="apple-touch-icon" sizes="120x120" href="/images/apple-icon-120x120.png">
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="/images/apple-icon-144x144.png">
|
||||
<link rel="apple-touch-icon" sizes="152x152" href="/images/apple-icon-152x152.png">
|
||||
<link rel="apple-touch-icon" sizes="180x180" href="/images/apple-icon-180x180.png">
|
||||
<link rel="icon" type="image/png" sizes="512x512" href="/images/icon-512.png">
|
||||
<link rel="icon" type="image/png" sizes="192x192" href="/images/android-icon-192x192.png">
|
||||
<link rel="icon" type="image/png" sizes="32x32" href="/images/favicon-32x32.png">
|
||||
<link rel="icon" type="image/png" sizes="96x96" href="/images/favicon-96x96.png">
|
||||
<link rel="icon" type="image/png" sizes="16x16" href="/images/favicon-16x16.png">
|
||||
<link rel="manifest" href="/manifest.json">
|
||||
<meta name="msapplication-TileColor" content="#ffffff">
|
||||
<meta name="msapplication-TileImage" content="/images/ms-icon-144x144.png">
|
||||
<meta name="theme-color" content="#ffffff">
|
||||
|
||||
<style>
|
||||
/* MVP.css v1.15 - https://github.com/andybrewer/mvp */
|
||||
:root {
|
||||
|
|
|
@ -11,7 +11,9 @@ use Amp\Http\Server\Driver\SocketClientFactory;
|
|||
use Amp\Http\Server\ErrorHandler;
|
||||
use Amp\Http\Server\HttpServer;
|
||||
use Amp\Http\Server\HttpServerStatus;
|
||||
use Amp\Http\Server\Router;
|
||||
use Amp\Http\Server\SocketHttpServer;
|
||||
use Amp\Http\Server\StaticContent\DocumentRoot;
|
||||
use Amp\Socket\BindContext;
|
||||
use Amp\Sync\LocalSemaphore;
|
||||
use Amp\Socket;
|
||||
|
@ -95,7 +97,11 @@ final class Server implements AppModuleInterface {
|
|||
// new Socket\InternetAddress('[::]', $_ENV['HTTP_PORT'] ?? 8080),
|
||||
// $this->bindContext
|
||||
//);
|
||||
$this->httpServer->start(HTTPHandler::getInstance($this->logger)->getHandler(), $this->errorHandler);
|
||||
$router = new Router($this->httpServer, $this->logger, $this->errorHandler);
|
||||
$router->addRoute('GET', '/', HTTPHandler::getInstance($this->logger)->getHandler());
|
||||
$router->setFallback(new DocumentRoot($this->httpServer, $this->errorHandler, PATH_ROOT . '/public'));
|
||||
|
||||
$this->httpServer->start($router, $this->errorHandler);
|
||||
} catch (Socket\SocketException $e) {
|
||||
$this->logger->warning($e->getMessage());
|
||||
} catch (Throwable $e) {
|
||||
|
|