ADD: Статью (структура)

This commit is contained in:
Evg 2022-04-03 07:54:04 +03:00
parent b5b52b100b
commit 67c286c185
8 changed files with 91 additions and 2 deletions

View File

@ -4,4 +4,4 @@ We welcome minimalism and try to follow this concept on the website as well.
*Documentation under development ...*
—> [**Go to home page**](/ru/)
—> [**Go to home page**](/en/)

35
files/en/structure.md Normal file
View File

@ -0,0 +1,35 @@
# Directory Structure
## The Root Directory
![The Root Directory](/uploads/content/structure.jpg)
### The App Directory
The `app` directory contains the core code of your application. We'll explore this directory in more detail soon; however, almost all of the classes in your application will be in this directory.
### The Config Directory
The `config` directory, as the name implies, contains all of your application's configuration files. It's a great idea to read through all of these files and familiarize yourself with all of the options available to you.
### The Public Directory
The `public` directory contains the `index.php` file, which is the entry point for all requests entering your application and configures autoloading. This directory also houses your assets such as images, JavaScript, and CSS.
### Каталог (resources)
The `resources` directory contains your site templates as well as raw, uncompiled assets like LESS, SASS.
### The Routes Directory
The `routes` directory contains all of the route definitions for your application. By default, several route files are included with LibArea: `main.php`, `admin.php` and `radjax.php`.
### The Storage Directory
The `storage` directory contains compiled templates, file-based sessions, file caches, error logs, and other files generated by the site.
—> [**Go to home page**](/en/)

View File

@ -12,4 +12,9 @@ A demo is available on the Agouti website (in Russian): https://libarea.ru
GitHub: https://github.com/LibArea
**Some documentation:**
* [Directory Structure](./structure)
*Documentation under development ...*

36
files/ru/structure.md Normal file
View File

@ -0,0 +1,36 @@
# Структура каталогов
## Корневой каталог
![Корневой каталог](/uploads/content/structure.jpg)
### Каталог (app)
Каталог `app` содержит основной код вашего приложения. Вскоре мы рассмотрим этот каталог более подробно; однако почти все классы вашего приложения будут находиться в этом каталоге.
### Каталог (config)
Каталог `config`, как следует из названия, содержит все файлы конфигурации вашего приложения. Это отличная идея, чтобы прочитать все эти файлы и ознакомиться со всеми доступными вам вариантами.
### Каталог (public)
Каталог `public` содержит `index.php` файл, который является точкой входа для всех запросов, поступающих в ваше приложение, и настраивает автозагрузку. В этом каталоге также хранятся ваши активы, такие как изображения, JavaScript и CSS.
### Каталог (resources)
Каталог `resources` содержит шаблоны сайта, а также необработанные, нескомпилированные активы, такие как LESS, SASS.
### Каталог (routes)
Каталог `routes` содержит все определения маршрутов для вашего приложения. По умолчанию в LibArea включены несколько файлов маршрутов: `main.php`, `admin.php` и `radjax.php`.
### Каталог (storage)
Каталог `storage` содержит скомпилированные шаблоны, сеансы на основе файлов, файловые кеши, логи ошибок и другие файлы, сгенерированные сайтом.
—> [**Перейти на главную страницу**](/ru/)

View File

@ -9,8 +9,12 @@ http://libarea.ru
В настоящее время LibArea полностью поддерживает локализацию на английском языке, румынскую и русскую логизацию. Работа над другими языками продолжается.
**Некоторая документация:**
* [Философия сайта](./philosophy)
* [Структура каталогов](./structure)
* [Как добавить код счетчика Яндекс.Метрики?](./metrica)
На GitHub: https://github.com/LibArea

View File

@ -121,7 +121,7 @@ main {
width: calc(100% - 360px);
}
main img { width: 99%; }
main img { max-width: 99%; }
aside {
width: 360px;
@ -213,6 +213,14 @@ blockquote {
margin-left: 3px;
}
code {
color: #9b4f5e;
background-color: #f5f2f0;
padding: 3px;
border-radius: 3px;
font-size: 14px;
}
@media (max-width: 890px) {
aside { display: none; }
main { width: 100%; }

Binary file not shown.

After

Width:  |  Height:  |  Size: 25 KiB

View File

@ -5,3 +5,4 @@ Route::get('/')->controller('HomeController', ['index']);
Route::get('/{lang}')->controller('ArticleController', ['welcome'])->name('welcome');
Route::get('/{lang}/philosophy')->controller('ArticleController', ['philosophy']);
Route::get('/{lang}/metrica')->controller('ArticleController', ['metrica']);
Route::get('/{lang}/structure')->controller('ArticleController', ['structure']);