Feature/#3 better display of language icons #55

Merged
Serraniel merged 18 commits from feature/#3-better-display-of-language-icons into develop 2020-10-01 21:34:19 +02:00
2 changed files with 13 additions and 6 deletions
Showing only changes of commit d14040ceb6 - Show all commits

View file

@ -1,9 +1,14 @@
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
registerScript(node => {
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
// run the scripts
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
if (isHtmlElement(node)) {
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
updateLanguageDisplay(node)
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
}
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
}, "^/anime/[0-9]*$");
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
import * as core from '../utils/aniwatchCore';
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
import * as helper from '../utils/helpers';
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
export function init() {
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
core.registerScript(node => {
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
// run the scripts
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
if (helper.isHtmlElement(node)) {
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
updateLanguageDisplay(node)
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
}
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
}, "^/anime/[0-9]*$");
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
}
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
function updateLanguageDisplay(node) {
const langPrefix = 'ep.lang.';

kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```
kaffem commented 2020-10-01 19:36:31 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, false);
```suggestion doUpdateLanguageDisplay(col, false); ```
kaffem commented 2020-10-01 19:37:25 +02:00 (Migrated from github.com)
Review
    doUpdateLanguageDisplay(col, true);
```suggestion doUpdateLanguageDisplay(col, true); ```
kaffem commented 2020-10-01 19:37:29 +02:00 (Migrated from github.com)
Review
function doUpdateLanguageDisplay(parent, isBoxedModed) {
```suggestion function doUpdateLanguageDisplay(parent, isBoxedModed) { ```

View file

@ -4,6 +4,7 @@ import { initCore } from './utils/aniwatchCore';
import { initHelpers } from './utils/helpers';
// enhancements
import { init as animeRequests } from './enhancements/animeRequests';
import { init as languageDisplay } from './enhancements/languageDisplay';
import { init as lists } from './enhancements/lists';
import { init as quickSearch } from './enhancements/quickSearch';
@ -15,5 +16,6 @@ initHelpers();
// enhancements
animeRequests();
languageDisplay();
lists();
quickSearch();