From 9c3fbd31a1187e3b603b1249ba7fc15c62e93c39 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Tue, 27 Oct 2020 19:44:17 +0100 Subject: [PATCH 1/4] #99 Added empty script for profile --- src/javascript/enhancements/profile.js | 8 ++++++++ src/javascript/index.js | 2 ++ 2 files changed, 10 insertions(+) create mode 100644 src/javascript/enhancements/profile.js diff --git a/src/javascript/enhancements/profile.js b/src/javascript/enhancements/profile.js new file mode 100644 index 0000000..34a9aca --- /dev/null +++ b/src/javascript/enhancements/profile.js @@ -0,0 +1,8 @@ +import * as core from '../utils/aniwatchCore'; +import * as helper from '../utils/helpers'; + +export function init() { + core.registerScript(node => { + + }, "^/profile/[0-9]*$"); +} \ No newline at end of file diff --git a/src/javascript/index.js b/src/javascript/index.js index 9d86b8a..97afc57 100644 --- a/src/javascript/index.js +++ b/src/javascript/index.js @@ -5,6 +5,7 @@ import { initHelpers } from './utils/helpers'; // enhancements import { init as animeRequests } from './enhancements/animeRequests'; import { init as languageDisplay } from './enhancements/languageDisplay'; +import { init as profile } from './enhancements/profile'; import { init as quickSearch } from './enhancements/quickSearch'; // core @@ -16,4 +17,5 @@ initHelpers(); // enhancements animeRequests(); languageDisplay(); +profile(); quickSearch(); \ No newline at end of file -- 2.43.5 From ce7ff5d949e5bc3c5897dbb854fff66e4d4d417b Mon Sep 17 00:00:00 2001 From: Serraniel Date: Tue, 27 Oct 2020 19:51:30 +0100 Subject: [PATCH 2/4] Revert "#99 Added empty script for profile" This reverts commit 9c3fbd31a1187e3b603b1249ba7fc15c62e93c39. --- src/javascript/enhancements/profile.js | 8 -------- src/javascript/index.js | 2 -- 2 files changed, 10 deletions(-) delete mode 100644 src/javascript/enhancements/profile.js diff --git a/src/javascript/enhancements/profile.js b/src/javascript/enhancements/profile.js deleted file mode 100644 index 34a9aca..0000000 --- a/src/javascript/enhancements/profile.js +++ /dev/null @@ -1,8 +0,0 @@ -import * as core from '../utils/aniwatchCore'; -import * as helper from '../utils/helpers'; - -export function init() { - core.registerScript(node => { - - }, "^/profile/[0-9]*$"); -} \ No newline at end of file diff --git a/src/javascript/index.js b/src/javascript/index.js index 97afc57..9d86b8a 100644 --- a/src/javascript/index.js +++ b/src/javascript/index.js @@ -5,7 +5,6 @@ import { initHelpers } from './utils/helpers'; // enhancements import { init as animeRequests } from './enhancements/animeRequests'; import { init as languageDisplay } from './enhancements/languageDisplay'; -import { init as profile } from './enhancements/profile'; import { init as quickSearch } from './enhancements/quickSearch'; // core @@ -17,5 +16,4 @@ initHelpers(); // enhancements animeRequests(); languageDisplay(); -profile(); quickSearch(); \ No newline at end of file -- 2.43.5 From 0faa37aecc44b3dc00f218a13b2073638707d247 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Tue, 27 Oct 2020 19:51:47 +0100 Subject: [PATCH 3/4] #99 Hide disabled tabs via style --- src/stylesheets/aniwatchplus.scss | 3 ++- src/stylesheets/enhancements/_tabs.scss | 5 +++++ 2 files changed, 7 insertions(+), 1 deletion(-) create mode 100644 src/stylesheets/enhancements/_tabs.scss diff --git a/src/stylesheets/aniwatchplus.scss b/src/stylesheets/aniwatchplus.scss index cdcb559..ab8fc0e 100644 --- a/src/stylesheets/aniwatchplus.scss +++ b/src/stylesheets/aniwatchplus.scss @@ -2,4 +2,5 @@ @import './vars/colors'; // enhancements -@import './enhancements/lists.scss'; \ No newline at end of file +@import './enhancements/lists'; +@import './enhancements/tabs'; \ No newline at end of file diff --git a/src/stylesheets/enhancements/_tabs.scss b/src/stylesheets/enhancements/_tabs.scss new file mode 100644 index 0000000..74b5990 --- /dev/null +++ b/src/stylesheets/enhancements/_tabs.scss @@ -0,0 +1,5 @@ +md-tab-item{ + &.md-disabled { + display: none; + } +} \ No newline at end of file -- 2.43.5 From 79d8d142c67eaa07f994cc9e0752b2b9f5f4cc08 Mon Sep 17 00:00:00 2001 From: Serraniel Date: Tue, 27 Oct 2020 19:52:05 +0100 Subject: [PATCH 4/4] #99 Added a comment --- src/stylesheets/enhancements/_tabs.scss | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/stylesheets/enhancements/_tabs.scss b/src/stylesheets/enhancements/_tabs.scss index 74b5990..0bcc731 100644 --- a/src/stylesheets/enhancements/_tabs.scss +++ b/src/stylesheets/enhancements/_tabs.scss @@ -1,4 +1,6 @@ md-tab-item{ + + // hide disabled tabs &.md-disabled { display: none; } -- 2.43.5