Website generation with Couscous

This commit is contained in:
Milos Stojanovic
2019-06-21 12:00:20 +02:00
parent e2a58034cd
commit 8fb05e6d0c
6 changed files with 13 additions and 13 deletions

View File

@@ -148,14 +148,14 @@
<h2 id="resetting-admins-password">Resetting Admin's password</h2>
<p>If you forgot your admin password you can follow these steps to reset it:</p>
<ul>
<li>Backup your current users file <code>/private/users.json</code> to a safe place</li>
<li>Copy blank template <code>/private/users.json.blank</code> over <code>/private/users.json</code> or simply refresh your browser</li>
<li>Backup your current users file <code>private/users.json</code> to a safe place</li>
<li>Copy blank template <code>private/users.json.blank</code> over <code>private/users.json</code> or simply refresh your browser</li>
<li>Login as admin with default credentials <code>admin/admin123</code></li>
<li>Put your original users file back to <code>/private/users.json</code> replacing the template</li>
<li>Put your original users file back to <code>private/users.json</code> replacing the template</li>
<li>Since you are now logged in as admin, simply go to users page and change your password</li>
<li>Log out and try to login with the new password</li>
</ul>
<p>Note: If you're using database Auth adapter then simply run this query to set default password back to <code>admin123</code>:</p>
<p>Note: If you're using database Auth adapter then simply run this query to set default password back to <code>admin123</code></p>
<pre><code>UPDATE `users`
SET `password` = '$2y$10$Nu35w4pteLfc7BDCIkDPkecjw8wsH8Y2GMfIewUbXLT7zzW6WOxwq'
WHERE `username` = 'admin';</code></pre>

View File

@@ -72,12 +72,12 @@
</p>
<ul class="nav nav-pills nav-stacked">
<li class="active">
<li class="">
<a href="https://docs.filegator.io/configuration/basic.html">
Basic
</a>
</li>
<li class="">
<li class="active">
<a href="https://docs.filegator.io/configuration/auth.html">
Auth
</a>
@@ -126,7 +126,7 @@
<section class="col-sm-offset-3 col-lg-offset-2 col-sm-9 col-lg-10">
<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>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' =&gt; [
'app_name' =&gt; 'FileGator',
@@ -148,7 +148,7 @@
],
],</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>.</p>
<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></p>
<pre><code>// Primary color
$primary: #34B891;
$primary-invert: findColorInvert($primary);

View File

@@ -126,7 +126,7 @@
<section class="col-sm-offset-3 col-lg-offset-2 col-sm-9 col-lg-10">
<h2 id="configuring-logging-service">Configuring Logging service</h2>
<p>Logging is provided trough the powerful <a href="https://github.com/Seldaek/monolog">Monolog</a> library. Please check their docs for more info.</p>
<p>Default handler will use simple <code>/private/logs/app.log</code> file to store application logs and errors.</p>
<p>Default handler will use simple <code>private/logs/app.log</code> file to store application logs and errors.</p>
<pre><code> 'Filegator\Services\Logger\LoggerInterface' =&gt; [
'handler' =&gt; '\Filegator\Services\Logger\Adapters\MonoLogger',
'config' =&gt; [

View File

@@ -133,7 +133,7 @@
<li><code>http://example.com/?r=/user/{user_id}&amp;param1=val1</code></li>
</ul>
<h2 id="routes-file">Routes file</h2>
<p>Routes file is located here <code>/backend/Controllers/routes.php</code>. Each route in the routes array looks like this:</p>
<p>Routes file is located here <code>backend/Controllers/routes.php</code> Each route in the routes array looks like this:</p>
<pre><code> [
'route' =&gt; [
'GET', '/download/{path_encoded}', '\Filegator\Controllers\DownloadController@download',

View File

@@ -163,7 +163,7 @@
],
</code></pre>
<h2 id="sftp-adapter">SFTP Adapter</h2>
<p>You must require additional library <code>composer require league/flysystem-sftp</code>.</p>
<p>You must require additional library <code>composer require league/flysystem-sftp</code></p>
<p>See official <a href="https://flysystem.thephpleague.com/docs/adapter/sftp/">documentation</a>.</p>
<pre><code> 'Filegator\Services\Storage\Filesystem' =&gt; [
'handler' =&gt; '\Filegator\Services\Storage\Filesystem',
@@ -183,7 +183,7 @@
],
</code></pre>
<h2 id="dropbox-adapter">Dropbox Adapter</h2>
<p>You must require additional library <code>composer require spatie/flysystem-dropbox</code>.</p>
<p>You must require additional library <code>composer require spatie/flysystem-dropbox</code></p>
<p>See official <a href="https://flysystem.thephpleague.com/docs/adapter/dropbox/">documentation</a></p>
<pre><code> 'Filegator\Services\Storage\Filesystem' =&gt; [
'handler' =&gt; '\Filegator\Services\Storage\Filesystem',

View File

@@ -125,7 +125,7 @@
<section class="col-sm-offset-3 col-lg-offset-2 col-sm-9 col-lg-10">
<h2 id="translations">Translations</h2>
<p>Default language file is located under <code>/frontend/translations/english.js</code>. You can add more languages in the same folder and adjust <code>language</code> variable in your <code>configuration.php</code> file to use it.</p>
<p>Default language file is located under <code>frontend/translations/english.js</code> You can add more languages in the same folder and adjust <code>language</code> variable in your <code>configuration.php</code> file to use it.</p>
<p>You should only translate value on the right, for example:</p>
<pre><code>'Close': 'Schliessen',</code></pre>
<p>Default language file is:</p>