From d79d2c87bc71ff5cccbfa460beed90377175f788 Mon Sep 17 00:00:00 2001 From: Igor Scheller Date: Mon, 1 Jun 2020 15:13:21 +0200 Subject: [PATCH] More .editorconfig improvements --- .editorconfig | 19 +++++++- DEVELOPMENT.md | 44 +++++++++--------- phpunit.xml | 9 ++-- resources/views/layouts/parts/footer.twig | 2 +- resources/views/macros/form.twig | 46 ++++++++++--------- resources/views/pages/login.twig | 20 ++++---- resources/views/pages/user-shifts.html | 12 +++-- .../Schedule/Assets/schedule-basic.xml | 4 +- .../Schedule/Assets/schedule-extended.xml | 4 +- 9 files changed, 93 insertions(+), 67 deletions(-) diff --git a/.editorconfig b/.editorconfig index 9b1bb78b..c73db4c6 100644 --- a/.editorconfig +++ b/.editorconfig @@ -8,17 +8,34 @@ root = true charset = utf-8 end_of_line = lf indent_style = space +indent_size = 4 insert_final_newline = true trim_trailing_whitespace = true max_line_length = 120 +[{.babelrc,package.json}] +indent_size = 2 + +[docker/**.conf] +indent_size = 2 + +[*.{htm,html,twig}] +indent_size = 4 + +[*.{js,css,less,sass,scss}] +indent_size = 2 + +[{LICENSE,db/*.sql}] +indent_size = unset + [*.md] trim_trailing_whitespace = false +indent_size = 2 [*.php] indent_size = 4 -[*.{js,css,less,sass,scss}] +[*.sh] indent_size = 2 [*.{yml,yaml}] diff --git a/DEVELOPMENT.md b/DEVELOPMENT.md index 8f6e17a6..69a9bd0c 100644 --- a/DEVELOPMENT.md +++ b/DEVELOPMENT.md @@ -11,28 +11,28 @@ Please also read the [CONTRIBUTING.md](CONTRIBUTING.md). ## Local build The following instructions explain how to get, build and run the latest Engelsystem version directly from the git master branch (may be unstable!). - * Clone the master branch: `git clone https://github.com/engelsystem/engelsystem.git` - * Install [Composer](https://getcomposer.org/download/) and [Yarn](https://yarnpkg.com/en/docs/install) (which requires [Node.js](https://nodejs.org/en/download/package-manager/)) - * Install project dependencies: - ```bash - composer install - yarn - ``` - On production systems it is recommended to use - ```bash - composer install --no-dev - composer dump-autoload --optimize - ``` - to install the Engelsystem - * Build the frontend assets - ```bash - yarn build - ``` - * Optionally (for better performance) - * Generate translation files - ```bash - find resources/lang/ -type f -name '*.po' -exec sh -c 'file="{}"; msgfmt "${file%.*}.po" -o "${file%.*}.mo"' \; - ``` +* Clone the master branch: `git clone https://github.com/engelsystem/engelsystem.git` +* Install [Composer](https://getcomposer.org/download/) and [Yarn](https://yarnpkg.com/en/docs/install) (which requires [Node.js](https://nodejs.org/en/download/package-manager/)) +* Install project dependencies: + ```bash + composer install + yarn + ``` + On production systems it is recommended to use + ```bash + composer install --no-dev + composer dump-autoload --optimize + ``` + to install the Engelsystem +* Build the frontend assets +```bash +yarn build +``` +* Optionally (for better performance) +* Generate translation files + ```bash + find resources/lang/ -type f -name '*.po' -exec sh -c 'file="{}"; msgfmt "${file%.*}.po" -o "${file%.*}.mo"' \; + ``` ## Testing To run the unit tests use diff --git a/phpunit.xml b/phpunit.xml index a5ae4cec..acaccec5 100644 --- a/phpunit.xml +++ b/phpunit.xml @@ -1,7 +1,8 @@ - diff --git a/resources/views/layouts/parts/footer.twig b/resources/views/layouts/parts/footer.twig index 827b635a..01fd5c1a 100644 --- a/resources/views/layouts/parts/footer.twig +++ b/resources/views/layouts/parts/footer.twig @@ -31,7 +31,7 @@ {{ __(name) }} · {% endfor %} - {{ __('Bugs / Features') }} + {{ __('Bugs / Features') }} · {{ __('Development Platform') }} · {{ __('Credits') }} diff --git a/resources/views/macros/form.twig b/resources/views/macros/form.twig index a7a9a7a4..9e9a7483 100644 --- a/resources/views/macros/form.twig +++ b/resources/views/macros/form.twig @@ -3,18 +3,19 @@ {% if label -%} {%- endif %} - {%- endmacro %} @@ -25,12 +26,12 @@ {%- endif %} {%- endmacro %} @@ -52,7 +53,8 @@
@@ -64,9 +66,9 @@ {% macro button(label, opt) %} diff --git a/resources/views/pages/login.twig b/resources/views/pages/login.twig index a6fb0934..399c97ea 100644 --- a/resources/views/pages/login.twig +++ b/resources/views/pages/login.twig @@ -40,21 +40,23 @@
{{ m.angel }} + class="form-control input-lg" + id="form_nick" + type="text" + name="login" + value="" + placeholder="{{ __('Nick') }}" + autofocus>
{{ m.glyphicon('lock') }} - +
diff --git a/resources/views/pages/user-shifts.html b/resources/views/pages/user-shifts.html index e6a0b213..ae92d1af 100644 --- a/resources/views/pages/user-shifts.html +++ b/resources/views/pages/user-shifts.html @@ -6,8 +6,10 @@
%start_select%
- +