refactor: ♻️ Sistemazione e riformattazione del codice

- Fix typography mancante
- Fix icona nel FAB
- Fixati alcuni stili nel tema "Alto contrasto"
- Riformattazione del codice
This commit is contained in:
Maicol Battistini 2021-11-09 10:34:22 +01:00
parent 0fd3c9a313
commit 5a1576d3c8
No known key found for this signature in database
GPG Key ID: 4FDB0F87CDB1D34A
7 changed files with 175 additions and 149 deletions

View File

@ -4,6 +4,7 @@
<directives>
<data directive="@append" />
<data directive="@auth" injection="true" prefix="&lt;?php if(auth()-&gt;guard(" suffix=")-&gt;check()): ?&gt;" />
<data directive="@aware" injection="true" prefix="&lt;?php $attributes = $attributes-&gt;exceptProps(" suffix="); ?&gt;" />
<data directive="@break" injection="true" prefix="&lt;?php if(" suffix=") break; ?&gt;" />
<data directive="@can" injection="true" prefix="&lt;?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)-&gt;check(" suffix=")): ?&gt;" />
<data directive="@canany" injection="true" prefix="&lt;?php if (app(\Illuminate\Contracts\Auth\Access\Gate::class)-&gt;any(" suffix=")): ?&gt;" />

View File

@ -98,7 +98,7 @@
<inspection_tool class="HtmlUnknownTag" enabled="true" level="WARNING" enabled_by_default="true">
<option name="myValues">
<value>
<list size="18">
<list size="20">
<item index="0" class="java.lang.String" itemvalue="nobr" />
<item index="1" class="java.lang.String" itemvalue="noembed" />
<item index="2" class="java.lang.String" itemvalue="comment" />
@ -117,6 +117,8 @@
<item index="15" class="java.lang.String" itemvalue="top-app-bar" />
<item index="16" class="java.lang.String" itemvalue="material-drawer" />
<item index="17" class="java.lang.String" itemvalue="mwc-dialog" />
<item index="18" class="java.lang.String" itemvalue="text-field" />
<item index="19" class="java.lang.String" itemvalue="text-area" />
</list>
</value>
</option>

View File

@ -2,6 +2,7 @@
namespace App\Providers;
use Exception;
use Illuminate\Support\ServiceProvider;
use Nette\Utils\Json;
@ -12,11 +13,11 @@ class AppServiceProvider extends ServiceProvider
*/
public function register(): void
{
//
}
/**
* Bootstrap any application services.
* @throws Exception
*/
public function boot(): void
{

View File

@ -46,6 +46,7 @@
"classnames": "^2.3.1",
"collect.js": "^4.29.0",
"coloquent": "^2.4.0",
"include-media": "^1.4.10",
"lit": "^2.0.2",
"locale-code": "^2.0.2",
"lodash-es": "^4.17.21",

View File

@ -64,6 +64,7 @@ specifiers:
eslint-plugin-you-dont-need-lodash-underscore: ^6.12.0
flow-bin: ^0.162.0
flow-remove-types: ^2.162.0
include-media: ^1.4.10
laravel-vite: ^0.0.21
lit: ^2.0.2
locale-code: ^2.0.2
@ -114,6 +115,7 @@ dependencies:
classnames: 2.3.1
collect.js: 4.29.0
coloquent: 2.4.0
include-media: 1.4.10
lit: 2.0.2
locale-code: 2.0.2
lodash-es: 4.17.21
@ -134,7 +136,7 @@ devDependencies:
'@babel/preset-react': 7.14.5_@babel+core@7.15.8
'@bunchtogether/vite-plugin-flow': 1.0.1
'@open-wc/eslint-config': 4.3.0_@babel+eslint-plugin@7.14.5
'@openstamanager/eslint-config': github.com/maicol07/eslint-config-openstamanager/cd8b395e3f23084b1a300a1a65a73ea11d654821_645634cedbf0182b3f972b44724377bd
'@openstamanager/eslint-config': github.com/maicol07/eslint-config-openstamanager/1eafa549ce83e3ea90686924f9e535b4ace0503a_645634cedbf0182b3f972b44724377bd
'@openstamanager/vite-config': github.com/maicol07/openstamanager-vite-config/53fdbc306e7250b2f95e9433492becfeb9052248_5a7a7ab02ecc6da2e2ef0feae8baad2c
babel-plugin-transform-flow-enums: 0.0.2_@babel+core@7.15.8
concurrently: 6.3.0
@ -4726,6 +4728,10 @@ packages:
engines: {node: '>=0.8.19'}
dev: true
/include-media/1.4.10:
resolution: {integrity: sha512-TymQzKF7oWHbItEcEHOCponZ90lRr1I9QbYeD+qCxXy4Z0/pSpS4Ocz2bq3FMOERlXXrY9Sawsh9GjiObVQA6A==}
dev: false
/indent-string/4.0.0:
resolution: {integrity: sha512-EdDDZu4A2OyIK7Lr/2zG+w5jmbuk1DVBnEwREQvBzspBJkCEbRa8GxU1lghYcaGJCnRWibjDXlq779X1/y5xwg==}
engines: {node: '>=8'}
@ -6803,11 +6809,11 @@ packages:
resolution: {integrity: sha512-V50KMwwzqJV0NpZIZFwfOD5/lyny3WlSzRiXgA0G7VUnRlqttta1L6UQIHzd6EuBY/cHGfwTIck7w1yH6Q5zUw==}
dev: true
github.com/maicol07/eslint-config-openstamanager/cd8b395e3f23084b1a300a1a65a73ea11d654821_645634cedbf0182b3f972b44724377bd:
resolution: { tarball: https://codeload.github.com/maicol07/eslint-config-openstamanager/tar.gz/cd8b395e3f23084b1a300a1a65a73ea11d654821 }
id: github.com/maicol07/eslint-config-openstamanager/cd8b395e3f23084b1a300a1a65a73ea11d654821
name: '@openstamanager/eslint-config'
version: 1.0.0
github.com/maicol07/eslint-config-openstamanager/1eafa549ce83e3ea90686924f9e535b4ace0503a_645634cedbf0182b3f972b44724377bd:
resolution: {tarball: https://codeload.github.com/maicol07/eslint-config-openstamanager/tar.gz/1eafa549ce83e3ea90686924f9e535b4ace0503a}
id: github.com/maicol07/eslint-config-openstamanager/1eafa549ce83e3ea90686924f9e535b4ace0503a
name: '@maicol07/eslint-config'
version: 1.0.1
peerDependencies:
'@adeira/eslint-config': '>=6.5.1'
'@babel/eslint-parser': '>=7.15.7'

View File

@ -6,11 +6,14 @@
@use "@material/card";
@use "@material/layout-grid/mdc-layout-grid";
@use "@material/data-table/data-table";
@use "@material/typography/mdc-typography";
@use "@material/typography";
@import "include-media/dist/include-media";
@include card.core-styles;
@include data-table.core-styles;
@include data-table.theme-baseline;
@include typography.core-styles;
/* ---------------------------
MWC Components
@ -129,13 +132,19 @@ top-app-bar {
MDC FABs
--------------------------- */
mwc-fab {
--mdc-icon-font: inherit;
--mdc-icon-font: none;
&.sticky {
position: fixed;
right: 16px;
bottom: 16px;
}
@include media('>desktop') {
&.sticky {
right: 1.5rem;
}
}
}
top-app-bar mwc-fab.sticky {
@ -192,7 +201,9 @@ top-app-bar mwc-fab.sticky {
color: var(--mdc-theme-primary, #{variables.$primary});
}
mwc-textfield {
mwc-textfield,
text-field,
text-area {
--mdc-theme-primary: var(--mdc-theme-secondary, #{variables.$secondary});
}
@ -212,4 +223,8 @@ top-app-bar mwc-fab.sticky {
}
}
}
mwc-fab {
--mdc-theme-on-secondary: white;
}
}

View File

@ -1,7 +1,7 @@
@use 'variables';
@use 'material';
@import 'modern-normalize/modern-normalize.css';
@import 'material';
h1,
h2,