- fix body toggle classlist fixed (#229)

- fix body toggle classlist fixed 
- change Feed settings link
- fix youtube video match
This commit is contained in:
Ilya Y 2023-09-21 20:16:07 +03:00 committed by GitHub
parent 5e18abba2a
commit 7c67ce977e
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
4 changed files with 4 additions and 4 deletions

View File

@ -12,7 +12,6 @@ import { router, useRouter } from '../../stores/router'
import { formatDate } from '../../utils'
import { getDescription } from '../../utils/meta'
import { imageProxy } from '../../utils/imageProxy'
import { isDesktop } from '../../utils/media-query'
import { AuthorCard } from '../Author/AuthorCard'
import { TableOfContents } from '../TableOfContents'
import { AudioPlayer } from './AudioPlayer'
@ -61,6 +60,7 @@ export const FullArticle = (props: Props) => {
}, 'bookmark')
}
console.log('!!! props.article.media:', props.article.media)
const body = createMemo(() => {
if (props.article.layout === 'literature') {
try {

View File

@ -171,7 +171,7 @@ export const Sidebar = (props: FeedSidebarProps) => {
</Show>
<div class={styles.settings}>
<a href="/feed/settings">
<a href="/profile/subscriptions">
<Icon name="settings" class={styles.icon} />
<span class={styles.settingsLabel}>{t('Feed settings')}</span>
</a>

View File

@ -25,7 +25,7 @@ export const VideoPlayer = (props: Props) => {
setIsVimeo(!isYoutube)
if (isYoutube) {
if (props.videoUrl.includes('youtube.com')) {
const videoIdMatch = props.videoUrl.match(/v=(\w+)/)
const videoIdMatch = props.videoUrl.match(/watch=(\w+)/)
setVideoId(videoIdMatch && videoIdMatch[1])
} else {
const videoIdMatch = props.videoUrl.match(/youtu.be\/(\w+)/)

View File

@ -48,7 +48,7 @@ export const MODALS: Record<ModalType, ModalType> = {
following: 'following'
}
const [modal, setModal] = createSignal<ModalType | null>()
const [modal, setModal] = createSignal<ModalType>(null)
const [warnings, setWarnings] = createSignal<Warning[]>([])