Merge pull request #4691 from RSSNext/hotfix/11.11
chore(desktop): Release v1.1.2 for hotfix
This commit is contained in:
@@ -9,7 +9,7 @@ export const appUpdaterConfig = {
|
||||
|
||||
// Disable app update will also disable renderer hot update and core update
|
||||
enableAppUpdate: true,
|
||||
enableDistributionStoreUpdate: true,
|
||||
enableDistributionStoreUpdate: isStoreDistribution,
|
||||
|
||||
app: {
|
||||
autoCheckUpdate: true,
|
||||
|
||||
@@ -116,25 +116,8 @@ class FollowUpdater {
|
||||
}
|
||||
|
||||
const payload = await getUpdateInfo(options.refresh ? { refresh: true } : {})
|
||||
const { decision } = payload
|
||||
|
||||
if (!decision || decision.type === "none") {
|
||||
logger.info("Update decision: none")
|
||||
return { hasUpdate: false }
|
||||
}
|
||||
|
||||
if (decision.type === "renderer") {
|
||||
logger.info("Update decision: renderer")
|
||||
return await this.handleRendererDecision(payload)
|
||||
}
|
||||
|
||||
if (decision.type === "app") {
|
||||
logger.info("Update decision: app")
|
||||
return await this.handleAppDecision(payload)
|
||||
}
|
||||
|
||||
logger.warn("Unknown update decision type", { type: decision.type })
|
||||
return { hasUpdate: false }
|
||||
return this.handleDirectAppDecision(payload)
|
||||
} catch (error) {
|
||||
logger.error("Failed to check for updates", error)
|
||||
return { hasUpdate: false, error: error instanceof Error ? error.message : "Unknown error" }
|
||||
@@ -143,6 +126,28 @@ class FollowUpdater {
|
||||
}
|
||||
}
|
||||
|
||||
async handleDirectAppDecision(payload: LatestReleasePayload): Promise<UpdateCheckResult> {
|
||||
const { decision } = payload
|
||||
|
||||
if (!decision || decision.type === "none") {
|
||||
logger.info("Update decision: none")
|
||||
return { hasUpdate: false }
|
||||
}
|
||||
|
||||
if (decision.type === "renderer") {
|
||||
logger.info("Update decision: renderer")
|
||||
return await this.handleRendererDecision(payload)
|
||||
}
|
||||
|
||||
if (decision.type === "app") {
|
||||
logger.info("Update decision: app")
|
||||
return await this.handleAppDecision(payload)
|
||||
}
|
||||
|
||||
logger.warn("Unknown update decision type", { type: decision.type })
|
||||
return { hasUpdate: false }
|
||||
}
|
||||
|
||||
async downloadAppUpdate(): Promise<void> {
|
||||
if (this.disabled || this.downloadingUpdate) {
|
||||
return
|
||||
@@ -266,8 +271,11 @@ class FollowUpdater {
|
||||
const info = await getDistributionUpdateInfo()
|
||||
|
||||
if (!info) {
|
||||
logger.info("Distribution update info unavailable for current build")
|
||||
return { hasUpdate: false }
|
||||
logger.info(
|
||||
"Distribution update info unavailable for current build, falling back to direct app decision",
|
||||
)
|
||||
const payload = await getUpdateInfo()
|
||||
return this.handleDirectAppDecision(payload)
|
||||
}
|
||||
|
||||
const rendererResult = await this.tryDistributionRendererUpdate(info.rendererUpdate)
|
||||
|
||||
+1
-1
@@ -4,7 +4,7 @@
|
||||
.ai-glass-layer-1,
|
||||
.ai-glass-layer-2,
|
||||
.ai-glass-layer-3 {
|
||||
transform-origin: right center;
|
||||
transform-origin: right bottom;
|
||||
transition:
|
||||
width 0.5s cubic-bezier(0.23, 1, 0.32, 1),
|
||||
opacity 0.5s cubic-bezier(0.23, 1, 0.32, 1),
|
||||
|
||||
+36
-28
@@ -45,7 +45,8 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
const alpha = value <= 0.4 ? 0 : (value - 0.4) * 0.12
|
||||
return `radial-gradient(ellipse at center, rgba(255, 92, 0, ${alpha}) 0%, transparent 70%)`
|
||||
})
|
||||
const glowX = useTransform(intensity, (value) => value * -20)
|
||||
const glowX = useTransform(intensity, (value) => value * -12)
|
||||
const glowY = useTransform(intensity, (value) => value * -24)
|
||||
|
||||
const canShowPrompt = useGlobalFocusableScopeSelector(FocusablePresets.isNotFloatingLayerScope)
|
||||
useEffect(() => {
|
||||
@@ -58,13 +59,15 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
return
|
||||
}
|
||||
|
||||
const maxDistance = 500
|
||||
const threshold = 80
|
||||
const showedThreshold = 300
|
||||
const topBoundary = 100
|
||||
const effectWidth = 220
|
||||
const effectHeight = 220
|
||||
const activationWidth = 50
|
||||
const activationHeight = 50
|
||||
const releaseWidth = 90
|
||||
const releaseHeight = 90
|
||||
const frameRef = { current: null as number | null }
|
||||
|
||||
const hidePrompt = () => {
|
||||
const resetState = () => {
|
||||
intensity.set(0)
|
||||
if (isShowPromptRef.current) {
|
||||
isShowPromptRef.current = false
|
||||
@@ -82,27 +85,31 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
frameRef.current = null
|
||||
|
||||
const rightEdgeDistance = window.innerWidth - clientX
|
||||
const bottomEdgeDistance = window.innerHeight - clientY
|
||||
const withinEffectZone =
|
||||
rightEdgeDistance <= effectWidth && bottomEdgeDistance <= effectHeight
|
||||
|
||||
if (clientY <= topBoundary) {
|
||||
hidePrompt()
|
||||
if (!withinEffectZone) {
|
||||
resetState()
|
||||
return
|
||||
}
|
||||
|
||||
if (rightEdgeDistance <= maxDistance) {
|
||||
const newIntensity = Math.max(0, (maxDistance - rightEdgeDistance) / maxDistance)
|
||||
intensity.set(newIntensity)
|
||||
const normalizedX = 1 - Math.min(1, rightEdgeDistance / effectWidth)
|
||||
const normalizedY = 1 - Math.min(1, bottomEdgeDistance / effectHeight)
|
||||
const newIntensity = Math.max(normalizedX, normalizedY)
|
||||
intensity.set(newIntensity)
|
||||
|
||||
if (isShowPromptRef.current && rightEdgeDistance <= showedThreshold) {
|
||||
return
|
||||
}
|
||||
const withinActivation =
|
||||
rightEdgeDistance <= activationWidth && bottomEdgeDistance <= activationHeight
|
||||
const withinRelease =
|
||||
rightEdgeDistance <= releaseWidth && bottomEdgeDistance <= releaseHeight
|
||||
|
||||
const shouldShow = rightEdgeDistance <= threshold
|
||||
if (shouldShow !== isShowPromptRef.current) {
|
||||
isShowPromptRef.current = shouldShow
|
||||
setShowPrompt(shouldShow)
|
||||
}
|
||||
} else {
|
||||
hidePrompt()
|
||||
if (withinActivation && !isShowPromptRef.current) {
|
||||
isShowPromptRef.current = true
|
||||
setShowPrompt(true)
|
||||
} else if (isShowPromptRef.current && !withinRelease) {
|
||||
isShowPromptRef.current = false
|
||||
setShowPrompt(false)
|
||||
}
|
||||
})
|
||||
}
|
||||
@@ -112,7 +119,7 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
cancelAnimationFrame(frameRef.current)
|
||||
frameRef.current = null
|
||||
}
|
||||
hidePrompt()
|
||||
resetState()
|
||||
}
|
||||
|
||||
window.addEventListener("pointermove", handlePointerMove, { passive: true })
|
||||
@@ -133,10 +140,10 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
return (
|
||||
<>
|
||||
{/* Multi-layer glass edge with depth */}
|
||||
<div className="pointer-events-none fixed right-0 top-0 z-40 h-full">
|
||||
<div className="pointer-events-none fixed inset-y-0 right-0 z-40">
|
||||
{/* Background layer - deepest */}
|
||||
<m.div
|
||||
className="ai-glass-layer-3 absolute right-0 top-0 h-full"
|
||||
className="ai-glass-layer-3 absolute inset-y-0 right-0 h-full"
|
||||
style={{
|
||||
width: layer3Width,
|
||||
opacity: layer3Opacity,
|
||||
@@ -147,7 +154,7 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
|
||||
{/* Middle layer */}
|
||||
<m.div
|
||||
className="ai-glass-layer-2 absolute right-0 top-0 h-full"
|
||||
className="ai-glass-layer-2 absolute inset-y-0 right-0 h-full"
|
||||
style={{
|
||||
width: layer2Width,
|
||||
opacity: layer2Opacity,
|
||||
@@ -159,7 +166,7 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
|
||||
{/* Front layer - most prominent */}
|
||||
<m.div
|
||||
className="ai-glass-layer-1 absolute right-0 top-0 h-full"
|
||||
className="ai-glass-layer-1 absolute inset-y-0 right-0 h-full"
|
||||
style={{
|
||||
width: layer1Width,
|
||||
opacity: layer1Opacity,
|
||||
@@ -170,12 +177,13 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
|
||||
{/* Subtle ambient glow */}
|
||||
<m.div
|
||||
className="absolute right-0 top-1/2 size-32 -translate-y-1/2"
|
||||
className="absolute bottom-6 right-6 size-32"
|
||||
style={{
|
||||
opacity: glowOpacity,
|
||||
background: glowBackground,
|
||||
filter: "blur(30px)",
|
||||
x: glowX,
|
||||
y: glowY,
|
||||
}}
|
||||
/>
|
||||
</div>
|
||||
@@ -187,7 +195,7 @@ const AIAmbientSidebar: React.FC<{ onExpand: () => void }> = ({ onExpand }) => {
|
||||
animate={{ opacity: 1, x: 0, scale: 1 }}
|
||||
exit={{ opacity: 0, x: 30, scale: 0.95 }}
|
||||
transition={Spring.presets.smooth}
|
||||
className="fixed bottom-12 right-6 z-50 flex flex-col items-end gap-3"
|
||||
className="fixed bottom-6 right-6 z-50 flex flex-col items-end gap-3"
|
||||
>
|
||||
{/* Unified glass card with integrated button */}
|
||||
<m.div
|
||||
|
||||
@@ -2,7 +2,7 @@ import { ActionButton } from "@follow/components/ui/button/index.js"
|
||||
import { FeedViewType } from "@follow/constants"
|
||||
import { useIsListSubscription } from "@follow/store/subscription/hooks"
|
||||
import { stopPropagation } from "@follow/utils/dom"
|
||||
import { cn } from "@follow/utils/utils"
|
||||
import { clsx, cn } from "@follow/utils/utils"
|
||||
import type { FC, PropsWithChildren } from "react"
|
||||
import { memo, useMemo, useRef, useState } from "react"
|
||||
import { Trans } from "react-i18next"
|
||||
@@ -15,6 +15,7 @@ import { getRouteParams, useRouteParams } from "~/hooks/biz/useRouteParams"
|
||||
import { useShowEntryDetailsColumn } from "~/hooks/biz/useShowEntryDetailsColumn"
|
||||
|
||||
import { markAllByRoute } from "../hooks/useMarkAll"
|
||||
import { readableContentMaxWidth } from "../styles"
|
||||
|
||||
interface DateItemInnerProps {
|
||||
date: Date
|
||||
@@ -54,7 +55,7 @@ const UniversalDateItem = ({ date, className, isSticky }: Omit<DateItemProps, "v
|
||||
|
||||
return (
|
||||
<DateItemInner
|
||||
className={className}
|
||||
className={clsx(className, readableContentMaxWidth)}
|
||||
date={dateObj}
|
||||
startTime={startOfDay}
|
||||
endTime={endOfDay}
|
||||
|
||||
@@ -143,7 +143,12 @@ export const FlatMarkAllReadButton: FC<
|
||||
<button
|
||||
type="button"
|
||||
disabled={status === "done"}
|
||||
className={cn(styledButtonVariant({ variant: "ghost" }), className, buttonClassName)}
|
||||
className={cn(
|
||||
styledButtonVariant({ variant: "ghost" }),
|
||||
"rounded-none",
|
||||
className,
|
||||
buttonClassName,
|
||||
)}
|
||||
onClick={() => {
|
||||
markAllByRoute(getRouteParams(), filter)
|
||||
.then(() => setStatus("done"))
|
||||
|
||||
@@ -115,7 +115,8 @@ const VirtualGridImpl: FC<
|
||||
return Array.from({ length: columnCount }).fill(width / columnCount) as number[]
|
||||
}, [containerWidth])
|
||||
|
||||
const isImageOnly = useUISettingKey("pictureViewImageOnly")
|
||||
const pictureViewImageOnly = useUISettingKey("pictureViewImageOnly")
|
||||
const isImageOnly = view === FeedViewType.Pictures && pictureViewImageOnly
|
||||
|
||||
// Calculate rows based on entries
|
||||
const rows = useMemo(() => {
|
||||
|
||||
@@ -153,7 +153,7 @@ export const EntryItemWrapper: FC<
|
||||
to={navigationPath}
|
||||
className={cn(
|
||||
"relative block cursor-button overflow-visible duration-200 hover:bg-theme-item-hover",
|
||||
isWide ? "rounded-none @[650px]:rounded-md" : "",
|
||||
!isWide ? "rounded-none @[650px]:rounded-md" : "rounded-md",
|
||||
isAll && "!rounded-none",
|
||||
(isActive || isContextMenuOpen) && "!bg-theme-item-active",
|
||||
itemClassName,
|
||||
|
||||
+5
-1
@@ -1,4 +1,5 @@
|
||||
import { TitleMarquee } from "@follow/components/ui/marquee/index.jsx"
|
||||
import { FeedViewType } from "@follow/constants"
|
||||
import { useIsEntryStarred } from "@follow/store/collection/hooks"
|
||||
import { useEntry, useHasEntry } from "@follow/store/entry/hooks"
|
||||
import { useFeedById } from "@follow/store/feed/hooks"
|
||||
@@ -9,6 +10,7 @@ import { useTranslation } from "react-i18next"
|
||||
|
||||
import { useUISettingKey } from "~/atoms/settings/ui"
|
||||
import { useEntryIsRead } from "~/hooks/biz/useAsRead"
|
||||
import { useRouteParamsSelector } from "~/hooks/biz/useRouteParams"
|
||||
import { EntryTranslation } from "~/modules/entry-column/translation"
|
||||
import type { FeedIconEntry } from "~/modules/feed/feed-icon"
|
||||
import { FeedIcon } from "~/modules/feed/feed-icon"
|
||||
@@ -80,7 +82,9 @@ export const GridItemFooter = ({
|
||||
const { t } = useTranslation("common")
|
||||
|
||||
const isImageOnly = useUISettingKey("pictureViewImageOnly")
|
||||
if (isImageOnly) return null
|
||||
const view = useRouteParamsSelector(({ view }) => view)
|
||||
const shouldHideFooter = view === FeedViewType.Pictures && isImageOnly
|
||||
if (shouldHideFooter) return null
|
||||
|
||||
if (!entry) return null
|
||||
return (
|
||||
|
||||
@@ -1,7 +1,7 @@
|
||||
{
|
||||
"name": "Folo",
|
||||
"type": "module",
|
||||
"version": "1.1.1",
|
||||
"version": "1.1.2",
|
||||
"private": true,
|
||||
"description": "Follow everything in one place",
|
||||
"author": "Folo Team",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"13001": "You are not the owner of this RSSHub instance",
|
||||
"13002": "RSSHub is in use",
|
||||
"13003": "RSSHub not found",
|
||||
"13004": "RSSHub user limit exceeded",
|
||||
"13004": "RSSHub subscription limit exceeded",
|
||||
"13005": "RSSHub purchase not found",
|
||||
"13006": "RSSHub config invalid",
|
||||
"13007": "This RSSHub instance is unavailable currently",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"13001": "このRSSHubインスタンスの所有者ではありません",
|
||||
"13002": "RSSHubが使用中です",
|
||||
"13003": "RSSHubが見つかりません",
|
||||
"13004": "RSSHubのユーザー制限を超えました",
|
||||
"13004": "RSSHubのサブスクリプション数制限を超えました",
|
||||
"13005": "RSSHubの購入が見つかりません",
|
||||
"13006": "RSSHubの設定が無効です",
|
||||
"13007": "このRSSHubインスタンスは現在利用できません",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"13001": "您不是此 RSSHub 实例的所有者",
|
||||
"13002": "RSSHub 正在使用中",
|
||||
"13003": "未找到 RSSHub",
|
||||
"13004": "RSSHub 用户限制已超出",
|
||||
"13004": "RSSHub 订阅源数量限制已超出",
|
||||
"13005": "未找到 RSSHub 购买记录",
|
||||
"13006": "RSSHub 配置无效",
|
||||
"13007": "此 RSSHub 实例当前不可用",
|
||||
|
||||
@@ -60,7 +60,7 @@
|
||||
"13001": "您不是此 RSSHub 實例的擁有者",
|
||||
"13002": "RSSHub 正在使用中",
|
||||
"13003": "未找到 RSSHub",
|
||||
"13004": "RSSHub 用戶限制已超過",
|
||||
"13004": "RSSHub 訂閱源數量限制已超過",
|
||||
"13005": "未找到 RSSHub 購買記錄",
|
||||
"13006": "RSSHub 配置無效",
|
||||
"13007": "此 RSSHub 實例目前不可用",
|
||||
|
||||
Reference in New Issue
Block a user