More .editorconfig improvements
This commit is contained in:
parent
85d9e01489
commit
d79d2c87bc
|
@ -8,17 +8,34 @@ root = true
|
||||||
charset = utf-8
|
charset = utf-8
|
||||||
end_of_line = lf
|
end_of_line = lf
|
||||||
indent_style = space
|
indent_style = space
|
||||||
|
indent_size = 4
|
||||||
insert_final_newline = true
|
insert_final_newline = true
|
||||||
trim_trailing_whitespace = true
|
trim_trailing_whitespace = true
|
||||||
max_line_length = 120
|
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]
|
[*.md]
|
||||||
trim_trailing_whitespace = false
|
trim_trailing_whitespace = false
|
||||||
|
indent_size = 2
|
||||||
|
|
||||||
[*.php]
|
[*.php]
|
||||||
indent_size = 4
|
indent_size = 4
|
||||||
|
|
||||||
[*.{js,css,less,sass,scss}]
|
[*.sh]
|
||||||
indent_size = 2
|
indent_size = 2
|
||||||
|
|
||||||
[*.{yml,yaml}]
|
[*.{yml,yaml}]
|
||||||
|
|
|
@ -11,28 +11,28 @@ Please also read the [CONTRIBUTING.md](CONTRIBUTING.md).
|
||||||
## Local build
|
## 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!).
|
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`
|
* 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 [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:
|
* Install project dependencies:
|
||||||
```bash
|
```bash
|
||||||
composer install
|
composer install
|
||||||
yarn
|
yarn
|
||||||
```
|
```
|
||||||
On production systems it is recommended to use
|
On production systems it is recommended to use
|
||||||
```bash
|
```bash
|
||||||
composer install --no-dev
|
composer install --no-dev
|
||||||
composer dump-autoload --optimize
|
composer dump-autoload --optimize
|
||||||
```
|
```
|
||||||
to install the Engelsystem
|
to install the Engelsystem
|
||||||
* Build the frontend assets
|
* Build the frontend assets
|
||||||
```bash
|
```bash
|
||||||
yarn build
|
yarn build
|
||||||
```
|
```
|
||||||
* Optionally (for better performance)
|
* Optionally (for better performance)
|
||||||
* Generate translation files
|
* Generate translation files
|
||||||
```bash
|
```bash
|
||||||
find resources/lang/ -type f -name '*.po' -exec sh -c 'file="{}"; msgfmt "${file%.*}.po" -o "${file%.*}.mo"' \;
|
find resources/lang/ -type f -name '*.po' -exec sh -c 'file="{}"; msgfmt "${file%.*}.po" -o "${file%.*}.mo"' \;
|
||||||
```
|
```
|
||||||
|
|
||||||
## Testing
|
## Testing
|
||||||
To run the unit tests use
|
To run the unit tests use
|
||||||
|
|
|
@ -1,7 +1,8 @@
|
||||||
<phpunit xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
<phpunit
|
||||||
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.1/phpunit.xsd"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
bootstrap="./includes/autoload.php"
|
xsi:noNamespaceSchemaLocation="http://schema.phpunit.de/9.1/phpunit.xsd"
|
||||||
colors="true"
|
bootstrap="./includes/autoload.php"
|
||||||
|
colors="true"
|
||||||
>
|
>
|
||||||
<testsuites>
|
<testsuites>
|
||||||
<testsuite name="Feature">
|
<testsuite name="Feature">
|
||||||
|
|
|
@ -31,7 +31,7 @@
|
||||||
{{ __(name) }}
|
{{ __(name) }}
|
||||||
</a> ·
|
</a> ·
|
||||||
{% endfor %}
|
{% endfor %}
|
||||||
<a href="https://github.com/engelsystem/engelsystem/issues">{{ __('Bugs / Features') }}</a>
|
<a href="https://github.com/engelsystem/engelsystem/issues">{{ __('Bugs / Features') }}</a>
|
||||||
· <a href="https://github.com/engelsystem/engelsystem/">{{ __('Development Platform') }}</a>
|
· <a href="https://github.com/engelsystem/engelsystem/">{{ __('Development Platform') }}</a>
|
||||||
· <a href="{{ url('credits') }}">{{ __('Credits') }}</a>
|
· <a href="{{ url('credits') }}">{{ __('Credits') }}</a>
|
||||||
</div>
|
</div>
|
||||||
|
|
|
@ -3,18 +3,19 @@
|
||||||
{% if label -%}
|
{% if label -%}
|
||||||
<label for="{{ name }}"{% if opt.hide_label|default(false) %} class="sr-only"{% endif %}>{{ label }}</label>
|
<label for="{{ name }}"{% if opt.hide_label|default(false) %} class="sr-only"{% endif %}>{{ label }}</label>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<input type="{{ type|default('text') }}" class="form-control"
|
<input
|
||||||
id="{{ name }}" name="{{ name }}"
|
type="{{ type|default('text') }}" class="form-control"
|
||||||
value="{{ opt.value|default('')|escape('html_attr') }}"
|
id="{{ name }}" name="{{ name }}"
|
||||||
{%- if opt.required|default(false) %}
|
value="{{ opt.value|default('')|escape('html_attr') }}"
|
||||||
required
|
{%- if opt.required|default(false) %}
|
||||||
{%- endif -%}
|
required
|
||||||
{%- if opt.disabled|default(false) %}
|
{%- endif -%}
|
||||||
disabled
|
{%- if opt.disabled|default(false) %}
|
||||||
{%- endif -%}
|
disabled
|
||||||
{%- if opt.readonly|default(false) %}
|
{%- endif -%}
|
||||||
readonly
|
{%- if opt.readonly|default(false) %}
|
||||||
{%- endif -%}
|
readonly
|
||||||
|
{%- endif -%}
|
||||||
>
|
>
|
||||||
</div>
|
</div>
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
@ -25,12 +26,12 @@
|
||||||
<label for="{{ name }}">{{ label }}</label>
|
<label for="{{ name }}">{{ label }}</label>
|
||||||
{%- endif %}
|
{%- endif %}
|
||||||
<textarea class="form-control" id="{{ name }}" name="{{ name }}"
|
<textarea class="form-control" id="{{ name }}" name="{{ name }}"
|
||||||
{%- if opt.required|default(false) %}
|
{%- if opt.required|default(false) %}
|
||||||
required
|
required
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
{%- if opt.rows|default(0) %}
|
{%- if opt.rows|default(0) %}
|
||||||
rows="{{ opt.rows }}"
|
rows="{{ opt.rows }}"
|
||||||
{%- endif -%}
|
{%- endif -%}
|
||||||
>{{ opt.value|default('') }}</textarea>
|
>{{ opt.value|default('') }}</textarea>
|
||||||
</div>
|
</div>
|
||||||
{%- endmacro %}
|
{%- endmacro %}
|
||||||
|
@ -52,7 +53,8 @@
|
||||||
<div class="checkbox">
|
<div class="checkbox">
|
||||||
<label>
|
<label>
|
||||||
<input type="checkbox" id="{{ name }}" name="{{ name }}" value="{{ value|default('1') }}"
|
<input type="checkbox" id="{{ name }}" name="{{ name }}" value="{{ value|default('1') }}"
|
||||||
{%- if checked|default(false) %} checked{% endif %}>
|
{%- if checked|default(false) %} checked{% endif %}
|
||||||
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</label>
|
</label>
|
||||||
</div>
|
</div>
|
||||||
|
@ -64,9 +66,9 @@
|
||||||
|
|
||||||
{% macro button(label, opt) %}
|
{% macro button(label, opt) %}
|
||||||
<button class="btn btn-{{ opt.btn_type|default('primary') }}"
|
<button class="btn btn-{{ opt.btn_type|default('primary') }}"
|
||||||
{%- if opt.type is defined %} type="{{ opt.type }}"{% endif %}
|
{%- if opt.type is defined %} type="{{ opt.type }}"{% endif %}
|
||||||
{%- if opt.name is defined %} name="{{ opt.name }}"{% endif %}
|
{%- if opt.name is defined %} name="{{ opt.name }}"{% endif %}
|
||||||
{%- if opt.value is defined or opt.name is defined %} value="{{ opt.value|default('1') }}"{% endif -%}
|
{%- if opt.value is defined or opt.name is defined %} value="{{ opt.value|default('1') }}"{% endif -%}
|
||||||
>
|
>
|
||||||
{{ label }}
|
{{ label }}
|
||||||
</button>
|
</button>
|
||||||
|
|
|
@ -40,21 +40,23 @@
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon input-lg">{{ m.angel }}</span>
|
<span class="input-group-addon input-lg">{{ m.angel }}</span>
|
||||||
<input
|
<input
|
||||||
class="form-control input-lg"
|
class="form-control input-lg"
|
||||||
id="form_nick"
|
id="form_nick"
|
||||||
type="text"
|
type="text"
|
||||||
name="login"
|
name="login"
|
||||||
value=""
|
value=""
|
||||||
placeholder="{{ __('Nick') }}"
|
placeholder="{{ __('Nick') }}"
|
||||||
autofocus>
|
autofocus>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group">
|
<div class="input-group">
|
||||||
<span class="input-group-addon input-lg">{{ m.glyphicon('lock') }}</span>
|
<span class="input-group-addon input-lg">{{ m.glyphicon('lock') }}</span>
|
||||||
<input class="form-control input-lg" id="form_password"
|
<input
|
||||||
type="password" name="password" value="" placeholder="{{ __('Password') }}">
|
class="form-control input-lg" id="form_password"
|
||||||
|
type="password" name="password" value="" placeholder="{{ __('Password') }}"
|
||||||
|
>
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
|
||||||
|
|
|
@ -6,8 +6,10 @@
|
||||||
<div class="form-group">%start_select%</div>
|
<div class="form-group">%start_select%</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group time">
|
<div class="input-group time">
|
||||||
<input type="time" class="form-control" id="start_time" name="start_time" size="5"
|
<input
|
||||||
pattern="^\d{1,2}:\d{2}$" placeholder="HH:MM" maxlength="5" value="%start_time%">
|
type="time" class="form-control" id="start_time" name="start_time" size="5"
|
||||||
|
pattern="^\d{1,2}:\d{2}$" placeholder="HH:MM" maxlength="5" value="%start_time%"
|
||||||
|
>
|
||||||
<div class="input-group-btn">
|
<div class="input-group-btn">
|
||||||
<button class="btn btn-default" title="Now" type="button">
|
<button class="btn btn-default" title="Now" type="button">
|
||||||
<span class="glyphicon glyphicon-time"></span>
|
<span class="glyphicon glyphicon-time"></span>
|
||||||
|
@ -19,8 +21,10 @@
|
||||||
<div class="form-group">%end_select%</div>
|
<div class="form-group">%end_select%</div>
|
||||||
<div class="form-group">
|
<div class="form-group">
|
||||||
<div class="input-group time">
|
<div class="input-group time">
|
||||||
<input type="time" class="form-control" id="end_time" name="end_time" size="5"
|
<input
|
||||||
pattern="^\d{1,2}:\d{2}$" placeholder="HH:MM" maxlength="5" value="%end_time%">
|
type="time" class="form-control" id="end_time" name="end_time" size="5"
|
||||||
|
pattern="^\d{1,2}:\d{2}$" placeholder="HH:MM" maxlength="5" value="%end_time%"
|
||||||
|
>
|
||||||
<div class="input-group-btn">
|
<div class="input-group-btn">
|
||||||
<button class="btn btn-default" title="Now" type="button">
|
<button class="btn btn-default" title="Now" type="button">
|
||||||
<span class="glyphicon glyphicon-time"></span>
|
<span class="glyphicon glyphicon-time"></span>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version='1.0' encoding='utf-8' ?>
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
<schedule
|
<schedule
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/voc/voctosched/master/schema/basic.xsd"
|
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/voc/voctosched/master/schema/basic.xsd"
|
||||||
>
|
>
|
||||||
<version>dolor</version>
|
<version>dolor</version>
|
||||||
<conference>
|
<conference>
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
<?xml version='1.0' encoding='utf-8' ?>
|
<?xml version='1.0' encoding='utf-8' ?>
|
||||||
<schedule
|
<schedule
|
||||||
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||||
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/voc/voctosched/master/schema/extended.xsd"
|
xsi:noNamespaceSchemaLocation="https://raw.githubusercontent.com/voc/voctosched/master/schema/extended.xsd"
|
||||||
>
|
>
|
||||||
<version>Some version string</version>
|
<version>Some version string</version>
|
||||||
<conference>
|
<conference>
|
||||||
|
|
Loading…
Reference in New Issue