mirror of
https://github.com/filegator/filegator.git
synced 2025-10-23 18:26:19 +02:00
117 lines
4.8 KiB
HTML
117 lines
4.8 KiB
HTML
<!DOCTYPE html>
|
|
<html lang="en">
|
|
<head>
|
|
<meta charset="utf-8">
|
|
<meta name="viewport" content="width=device-width, initial-scale=1">
|
|
|
|
<title></title>
|
|
|
|
<link rel="stylesheet" href="/css/bootstrap.min.css">
|
|
<link rel="stylesheet" href="/css/font-awesome.min.css">
|
|
<link rel="stylesheet" href="/css/highlight.dark.css">
|
|
<link rel="stylesheet" href="/css/main.css">
|
|
</head>
|
|
<body>
|
|
|
|
<header class="navbar navbar-default navbar-fixed-top">
|
|
|
|
<a class="navbar-brand" href="/">
|
|
The title
|
|
<small class="hidden-xs hidden-sm">
|
|
This is the default subtitle!
|
|
</small>
|
|
</a>
|
|
|
|
|
|
</header>
|
|
|
|
<main class="container">
|
|
<div class="row">
|
|
|
|
|
|
<section id="content" class="col-sm-12">
|
|
<h2 id="basic">Basic</h2>
|
|
<p>All services are set with reasonable defaults. For regular users there is no need to change anything. The script should work out of the box.</p>
|
|
<p>You can edit <code>configuration.php</code> file to change the basic things like logo image, title, language and upload restrictions.</p>
|
|
<p>Note: if you've made a mistake in configuration file (forgot to close a quote?) the script will fail to load or throw an error. Please use provided default <code>configuration_sample.php</code> to put everything back to normal.</p>
|
|
<pre><code> 'frontend_config' => [
|
|
'app_name' => 'FileGator',
|
|
'app_version' => APP_VERSION,
|
|
'language' => 'english',
|
|
'logo' => 'https://filegator.io/filegator_logo.svg',
|
|
'upload_max_size' => 100 * 1024 * 1024, // 100MB
|
|
'upload_chunk_size' => 1 * 1024 * 1024, // 1MB
|
|
'upload_simultaneous' => 3,
|
|
'default_archive_name' => 'archive.zip',
|
|
'editable' => ['.txt', '.css', '.js', '.ts', '.html', '.php', '.json', '.md'],
|
|
'date_format' => 'YY/MM/DD hh:mm:ss', // see: https://momentjs.com/docs/#/displaying/format/
|
|
'guest_redirection' => '', // useful for external auth adapters
|
|
'search_simultaneous' => 5, // how many simultaneous getdirs to spawn when searching
|
|
|
|
// filter starts with separator => full path has to match, example: '/all/one/filegator/demo.txt'
|
|
// filter ends with separator => filter only folders (a file with the same name will be shown), example: '.git/'
|
|
// neither of above => it is a file and could be in every folder, example: '.htaccess'
|
|
// both of above => full folder path has to match, example: '/homes/web/filegator/.npm/'
|
|
'filter_entries' => ['Recycle.bin/', 'File System Information/', '.DS_Store', '@eaDir/', '#recycle/'],
|
|
],</code></pre>
|
|
<h2 id="additional-html">Additional HTML</h2>
|
|
<p>You can add additional html to the head and body like this:</p>
|
|
<pre><code> 'Filegator\Services\View\ViewInterface' => [
|
|
'handler' => '\Filegator\Services\View\Adapters\Vuejs',
|
|
'config' => [
|
|
'add_to_head' => '<meta name="author" content="something">',
|
|
'add_to_body' => '<script src="http://example.com/analytics.js"></script>',
|
|
],
|
|
],</code></pre>
|
|
<h2 id="frontend-tweaks">Frontend tweaks</h2>
|
|
<p>To change default color scheme and other options, edit <code>frontend/App.vue</code> When you're done, recompile with <code>npm run build</code> like described <a href="/development.html">here</a></p>
|
|
<pre><code>// Primary color
|
|
$primary: #34B891;
|
|
$primary-invert: findColorInvert($primary);
|
|
|
|
$colors: (
|
|
"primary": ($primary, $primary-invert),
|
|
"info": ($info, $info-invert),
|
|
"success": ($success, $success-invert),
|
|
"warning": ($warning, $warning-invert),
|
|
"danger": ($danger, $danger-invert),
|
|
);
|
|
|
|
// Links
|
|
$link: $primary;
|
|
$link-invert: $primary-invert;
|
|
$link-focus-border: $primary;
|
|
|
|
// Disable the widescreen breakpoint
|
|
$widescreen-enabled: false;
|
|
|
|
// Disable the fullhd breakpoint
|
|
$fullhd-enabled: false;</code></pre>
|
|
</section>
|
|
|
|
</div>
|
|
</main>
|
|
|
|
<footer>
|
|
<div class="container">
|
|
<p class="text-muted">
|
|
website generated with <a href="http://couscous.io" title="Markdown website generator">Couscous</a>
|
|
</p>
|
|
</div>
|
|
</footer>
|
|
|
|
<script src="//code.jquery.com/jquery-1.11.0.min.js"></script>
|
|
<script src="//netdna.bootstrapcdn.com/bootstrap/3.1.1/js/bootstrap.min.js"></script>
|
|
<script src="//yastatic.net/highlightjs/8.2/highlight.min.js"></script>
|
|
|
|
<script>
|
|
$(function() {
|
|
$("section>h1").wrap('<div class="page-header" />');
|
|
// Syntax highlighting
|
|
hljs.initHighlightingOnLoad();
|
|
});
|
|
</script>
|
|
|
|
</body>
|
|
</html>
|