- fix body toggle classlist fixed (#229)
- fix body toggle classlist fixed - change Feed settings link - fix youtube video match
This commit is contained in:
parent
5e18abba2a
commit
7c67ce977e
|
@ -12,7 +12,6 @@ import { router, useRouter } from '../../stores/router'
|
||||||
import { formatDate } from '../../utils'
|
import { formatDate } from '../../utils'
|
||||||
import { getDescription } from '../../utils/meta'
|
import { getDescription } from '../../utils/meta'
|
||||||
import { imageProxy } from '../../utils/imageProxy'
|
import { imageProxy } from '../../utils/imageProxy'
|
||||||
import { isDesktop } from '../../utils/media-query'
|
|
||||||
import { AuthorCard } from '../Author/AuthorCard'
|
import { AuthorCard } from '../Author/AuthorCard'
|
||||||
import { TableOfContents } from '../TableOfContents'
|
import { TableOfContents } from '../TableOfContents'
|
||||||
import { AudioPlayer } from './AudioPlayer'
|
import { AudioPlayer } from './AudioPlayer'
|
||||||
|
@ -61,6 +60,7 @@ export const FullArticle = (props: Props) => {
|
||||||
}, 'bookmark')
|
}, 'bookmark')
|
||||||
}
|
}
|
||||||
|
|
||||||
|
console.log('!!! props.article.media:', props.article.media)
|
||||||
const body = createMemo(() => {
|
const body = createMemo(() => {
|
||||||
if (props.article.layout === 'literature') {
|
if (props.article.layout === 'literature') {
|
||||||
try {
|
try {
|
||||||
|
|
|
@ -171,7 +171,7 @@ export const Sidebar = (props: FeedSidebarProps) => {
|
||||||
</Show>
|
</Show>
|
||||||
|
|
||||||
<div class={styles.settings}>
|
<div class={styles.settings}>
|
||||||
<a href="/feed/settings">
|
<a href="/profile/subscriptions">
|
||||||
<Icon name="settings" class={styles.icon} />
|
<Icon name="settings" class={styles.icon} />
|
||||||
<span class={styles.settingsLabel}>{t('Feed settings')}</span>
|
<span class={styles.settingsLabel}>{t('Feed settings')}</span>
|
||||||
</a>
|
</a>
|
||||||
|
|
|
@ -25,7 +25,7 @@ export const VideoPlayer = (props: Props) => {
|
||||||
setIsVimeo(!isYoutube)
|
setIsVimeo(!isYoutube)
|
||||||
if (isYoutube) {
|
if (isYoutube) {
|
||||||
if (props.videoUrl.includes('youtube.com')) {
|
if (props.videoUrl.includes('youtube.com')) {
|
||||||
const videoIdMatch = props.videoUrl.match(/v=(\w+)/)
|
const videoIdMatch = props.videoUrl.match(/watch=(\w+)/)
|
||||||
setVideoId(videoIdMatch && videoIdMatch[1])
|
setVideoId(videoIdMatch && videoIdMatch[1])
|
||||||
} else {
|
} else {
|
||||||
const videoIdMatch = props.videoUrl.match(/youtu.be\/(\w+)/)
|
const videoIdMatch = props.videoUrl.match(/youtu.be\/(\w+)/)
|
||||||
|
|
|
@ -48,7 +48,7 @@ export const MODALS: Record<ModalType, ModalType> = {
|
||||||
following: 'following'
|
following: 'following'
|
||||||
}
|
}
|
||||||
|
|
||||||
const [modal, setModal] = createSignal<ModalType | null>()
|
const [modal, setModal] = createSignal<ModalType>(null)
|
||||||
|
|
||||||
const [warnings, setWarnings] = createSignal<Warning[]>([])
|
const [warnings, setWarnings] = createSignal<Warning[]>([])
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user