Skip to content

Commit

Permalink
Added noscript message and <=IE9 warning; Closes #213
Browse files Browse the repository at this point in the history
  • Loading branch information
TheMaaarc committed May 15, 2019
1 parent 36e93b2 commit 85684c8
Show file tree
Hide file tree
Showing 25 changed files with 141 additions and 47 deletions.
1 change: 1 addition & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,7 @@ This release contains new migrations and requires to run the `migrate` command a

### Added

+ [#213](https://github.com/luyadev/luya-module-admin/issues/213) Added noscript message and <=IE9 warning.
+ [#288](https://github.com/luyadev/luya-module-admin/issues/288) Filemanager add file id in tooltip.
+ [#225](https://github.com/luyadev/luya-module-admin/issues/225) Added configuration for default behavior with inline disposition when uploading new files.
+ [#289](https://github.com/luyadev/luya-module-admin/issues/289) Added new input field methods checkbox, checkboxList, radioList, imageUpload, fileUpload, date and datetime picker.
Expand Down
2 changes: 1 addition & 1 deletion src/assets/Login.php
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ class Login extends \luya\web\Asset
*/
public $css = [
'dist/main.css',
'css/login.css',
'dist/login.css',
];

/**
Expand Down
3 changes: 2 additions & 1 deletion src/messages/de/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -414,5 +414,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',

'login_noscript_error' => 'Sie müssen Javascript aktivieren um das LUYA CMS zu verwenden.',
'login_browsehappy' => 'Sie verwenden einen <strong>veralteten</strong> Browser. Bitte <a href="https://browsehappy.com/?locale=de_de" target="_blank">aktualisieren Sie Ihren Browser</a> um Ihre Sicherheit zu erhöhen.',
];
2 changes: 2 additions & 0 deletions src/messages/el/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,4 +401,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/en/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,4 +412,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/es/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,4 +393,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/fa/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -393,4 +393,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/fr/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,4 +412,6 @@
'aw_requestinsight_toggle_error' => 'Erreur durant l\'activation de Request Insight.',
'aw_requestinsight_cleared' => 'Données effacées.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/it/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -401,4 +401,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/nl/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -386,4 +386,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/pl/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -409,4 +409,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/pt/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,4 +413,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/ru/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -415,4 +415,6 @@
'aw_requestinsight_toggle_error' => 'Ошибка при включении Insight запросов.',
'aw_requestinsight_cleared' => 'Данные очищены.',
'aw_requestinsight_default_label' => 'Insight запросов',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/tr/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,4 +412,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/ua/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -413,4 +413,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
2 changes: 2 additions & 0 deletions src/messages/vi/admin.php
Original file line number Diff line number Diff line change
Expand Up @@ -412,4 +412,6 @@
'aw_requestinsight_toggle_error' => 'Error while enabling Request Insight.',
'aw_requestinsight_cleared' => 'Data has been cleared.',
'aw_requestinsight_default_label' => 'Request Insight',
'login_noscript_error' => 'You have to activate Javascript to use the LUYA CMS.',
'login_browsehappy' => 'You are using an <strong>outdated</strong> browser. Please <a href="https://browsehappy.com/" target="_blank">upgrade your browser</a> to improve your experience and security.',
];
37 changes: 0 additions & 37 deletions src/resources/css/login.css

This file was deleted.

1 change: 1 addition & 0 deletions src/resources/dist/login.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 1 addition & 1 deletion src/resources/dist/login.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions src/resources/dist/login.unglue
Original file line number Diff line number Diff line change
@@ -1,4 +1,7 @@
{
"css": [
"../scss/login.scss"
],
"js": [
"../js/login.js"
]
Expand Down
4 changes: 2 additions & 2 deletions src/resources/dist/main.css

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion src/resources/dist/main.js

Large diffs are not rendered by default.

4 changes: 0 additions & 4 deletions src/resources/scss/components/_login.scss
Original file line number Diff line number Diff line change
Expand Up @@ -40,10 +40,6 @@
top: -100px;
opacity: 1;

@include media-breakpoint-up(sm) {
top: -160px;
}

@media screen and (max-height: 450px) {
top: -100px;
}
Expand Down
93 changes: 93 additions & 0 deletions src/resources/scss/login.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,93 @@
// Custom styles / style-overrides for the login page

@import 'variables/colors';

.card {
margin-top: 100px;
}

.btn {
padding-left: 10px;
padding-right: 10px;
}

.preloader-wrapper.login__spinner {
height: 20px;
margin-left: 10px;
margin-right: 4px;
margin-top: 8px;
width: 20px;

.spinner-layer {
border-color: #fff !important;
}
}

.hidden {
display: none;
}

.login__success {
padding: 50px 0 44px 0;
text-align: center;
}

.login__success-icon {
font-size: 14rem;
}

form .row {
margin-bottom: 20px;
}

.login-noscript {
background-color: $luya;
color: $white;
left: 50%;
min-width: 320px;
padding: 125px 50px;
position: absolute;
top: 50%;
transform: translate(-50%, -50%);

@media (min-width: 593px) {
min-width: 593px;
}

p {
display: block;
font-size: 1.3rem;
margin: 0;
text-align: center;
}
}

.login-browsehappy {
display: none;
position: absolute;
top: 0;
left: 0;
right: 0;
text-align: center;

p {
display: inline-block;
margin: 0;
padding: 25px;
background-color: #FFE65C;
}

a {
text-decoration: underline;
}

@media (min-width: 800px) and (min-height: 430px) {
display: block;
}
@media (min-width: 500px) and (min-height: 500px) {
display: block;
}
@media (max-width: 800px) and (min-height: 730px) {
display: block;
}
}
10 changes: 10 additions & 0 deletions src/views/login/index.php
Original file line number Diff line number Diff line change
Expand Up @@ -75,3 +75,13 @@
</li>
</ul>
</div>

<noscript>
<div class="login-noscript">
<p><?= Module::t('login_noscript_error');?></p>
</div>
</noscript>

<!--[if IE]>
<div class="login-browsehappy"><p><?= Module::t('login_browsehappy');?></p></div>
<![endif]-->

0 comments on commit 85684c8

Please sign in to comment.