CodeIgniter 4 website:
- Catalog 999 SGK (lớp 1-12) từ API, lọc theo lớp/môn/NXB, tìm kiếm
- Trang chủ grouped browse (bậc học -> lớp -> môn, ưu tiên môn quan trọng)
- Chi tiết sách: metadata đầy đủ, cover nghệ thuật /thumb/{W}x{H}/
- Đọc online qua gate captcha + countdown, PDF viewer pdf.js
- Download: captcha + token một lần + auto cache-bust version
- Tự đồng bộ catalog/cover khi API thay đổi (refresh:catalog)
- Legal: DMCA, miễn trừ trách nhiệm, điều khoản, bảo mật, liên hệ
64 lines
1.8 KiB
PHP
64 lines
1.8 KiB
PHP
<?php
|
|
|
|
namespace Config;
|
|
|
|
use Kint\Parser\ConstructablePluginInterface;
|
|
use Kint\Renderer\Rich\TabPluginInterface;
|
|
use Kint\Renderer\Rich\ValuePluginInterface;
|
|
|
|
/**
|
|
* --------------------------------------------------------------------------
|
|
* Kint
|
|
* --------------------------------------------------------------------------
|
|
*
|
|
* We use Kint's `RichRenderer` and `CLIRenderer`. This area contains options
|
|
* that you can set to customize how Kint works for you.
|
|
*
|
|
* @see https://kint-php.github.io/kint/ for details on these settings.
|
|
*/
|
|
class Kint
|
|
{
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| Global Settings
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
|
|
/**
|
|
* @var list<class-string<ConstructablePluginInterface>|ConstructablePluginInterface>|null
|
|
*/
|
|
public $plugins;
|
|
|
|
public int $maxDepth = 6;
|
|
public bool $displayCalledFrom = true;
|
|
public bool $expanded = false;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| RichRenderer Settings
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
public string $richTheme = 'aante-light.css';
|
|
public bool $richFolder = false;
|
|
|
|
/**
|
|
* @var array<string, class-string<ValuePluginInterface>>|null
|
|
*/
|
|
public $richObjectPlugins;
|
|
|
|
/**
|
|
* @var array<string, class-string<TabPluginInterface>>|null
|
|
*/
|
|
public $richTabPlugins;
|
|
|
|
/*
|
|
|--------------------------------------------------------------------------
|
|
| CLI Settings
|
|
|--------------------------------------------------------------------------
|
|
*/
|
|
public bool $cliColors = true;
|
|
public bool $cliForceUTF8 = false;
|
|
public bool $cliDetectWidth = true;
|
|
public int $cliMinWidth = 40;
|
|
}
|