From a394f38fe990a339837d1d57eeaaf078b3ef60d0 Mon Sep 17 00:00:00 2001 From: advplyr Date: Sat, 28 May 2022 11:38:51 -0500 Subject: [PATCH] Add:Full podcast episode description parsed and viewable in modal #492 --- client/assets/app.css | 1 + client/assets/defaultStyles.css | 44 +++++++++++ .../components/modals/podcast/ViewEpisode.vue | 75 +++++++++++++++++++ .../tables/podcast/EpisodeTableRow.vue | 17 +++-- .../tables/podcast/EpisodesTable.vue | 7 +- client/layouts/default.vue | 1 + client/store/globals.js | 4 + server/utils/htmlSanitizer.js | 2 +- server/utils/podcastUtils.js | 9 ++- 9 files changed, 150 insertions(+), 10 deletions(-) create mode 100644 client/assets/defaultStyles.css create mode 100644 client/components/modals/podcast/ViewEpisode.vue diff --git a/client/assets/app.css b/client/assets/app.css index c323a37b..5d67df53 100644 --- a/client/assets/app.css +++ b/client/assets/app.css @@ -1,6 +1,7 @@ @import './fonts.css'; @import './transitions.css'; @import './draggable.css'; +@import './defaultStyles.css'; :root { --bookshelf-texture-img: url(/textures/wood_default.jpg); diff --git a/client/assets/defaultStyles.css b/client/assets/defaultStyles.css new file mode 100644 index 00000000..a4bef5e2 --- /dev/null +++ b/client/assets/defaultStyles.css @@ -0,0 +1,44 @@ +/* + + This is for setting regular html styles for places where embedding HTML will be + like podcast episode descriptions. Otherwise TailwindCSS will have stripped all default markup. + +*/ + +.default-style p { + display: block; + margin-block-start: 1em; + margin-block-end: 1em; + margin-inline-start: 0px; + margin-inline-end: 0px; +} + +.default-style a { + text-decoration: none; + color: #5985ff; +} + +.default-style ul { + display: block; + list-style: circle; + list-style-type: disc; + margin-block-start: 1em; + margin-block-end: 1em; + margin-inline-start: 0px; + margin-inline-end: 0px; + padding-inline-start: 40px; +} + +.default-style li { + display: list-item; + text-align: -webkit-match-parent; +} + +.default-style li::marker { + unicode-bidi: isolate; + font-variant-numeric: tabular-nums; + text-transform: none; + text-indent: 0px !important; + text-align: start !important; + text-align-last: start !important; +} \ No newline at end of file diff --git a/client/components/modals/podcast/ViewEpisode.vue b/client/components/modals/podcast/ViewEpisode.vue new file mode 100644 index 00000000..04ab78c4 --- /dev/null +++ b/client/components/modals/podcast/ViewEpisode.vue @@ -0,0 +1,75 @@ + + + diff --git a/client/components/tables/podcast/EpisodeTableRow.vue b/client/components/tables/podcast/EpisodeTableRow.vue index 0e318858..b7040098 100644 --- a/client/components/tables/podcast/EpisodeTableRow.vue +++ b/client/components/tables/podcast/EpisodeTableRow.vue @@ -1,16 +1,18 @@