設定画面 (#34) #397

マージ済み
みてるぞ が 31 個のコミットを feature/034 から main へマージ 2026-07-07 00:48:41 +09:00
3個のファイルの変更5行の追加33行の削除
コミット 2d9a79fecc の変更だけを表示してゐます - すべてのコミットを表示
+2 -9
ファイルの表示
@@ -11,8 +11,7 @@ import type { ClientAnimationMode,
ClientBehaviorSettings, ClientBehaviorSettings,
ClientEmbedAutoLoadMode, ClientEmbedAutoLoadMode,
ClientLinkPreloadMode, ClientLinkPreloadMode,
ClientTagRelationDisplayMode, ClientTagRelationDisplayMode } from '@/lib/settings'
ClientThumbnailMode } from '@/lib/settings'
type Props = { type Props = {
sectionClassName: string sectionClassName: string
@@ -32,7 +31,7 @@ type SegmentedControlProps<T extends string> = {
type SettingBlockProps = { type SettingBlockProps = {
title: string title: string
description: string description?: string
children: ReactNode } children: ReactNode }
const animationOptions: SegmentedOption<ClientAnimationMode>[] = [ const animationOptions: SegmentedOption<ClientAnimationMode>[] = [
@@ -53,12 +52,6 @@ const tagRelationDisplayOptions: SegmentedOption<ClientTagRelationDisplayMode>[]
{ value: 'flat', label: 'まとめない' }, { value: 'flat', label: 'まとめない' },
{ value: 'grouped', label: 'まとめる' }] { value: 'grouped', label: 'まとめる' }]
const thumbnailModeOptions: SegmentedOption<ClientThumbnailMode>[] = [
{ value: 'off', label: '非表示' },
{ value: 'light', label: '軽量' },
{ value: 'normal', label: '通常' }]
const SegmentedControl = <T extends string,> ( const SegmentedControl = <T extends string,> (
{ value, options, onChange }: SegmentedControlProps<T>, { value, options, onChange }: SegmentedControlProps<T>,
) => { ) => {
-2
ファイルの表示
@@ -57,8 +57,6 @@ const INITIAL_THEATRE_INFO: TheatreInfo =
const INITIAL_WEIGHTS: TheatrePostSelectionWeights = const INITIAL_WEIGHTS: TheatrePostSelectionWeights =
{ tagPenalties: [], lightestPosts: [], heaviestPosts: [] } { tagPenalties: [], lightestPosts: [], heaviestPosts: [] }
const LAYOUT_STORAGE_KEY = 'theatre-layout-mode'
const TAG_FLOW_STORAGE_KEY = 'theatre-tag-flow'
const MIN_MAIN_WIDTH = 360 const MIN_MAIN_WIDTH = 360
const SIDEBAR_GAP_WIDTH = 16 const SIDEBAR_GAP_WIDTH = 16
+1 -20
ファイルの表示
@@ -168,24 +168,7 @@ const themeTokenGroups: ThemeTokenGroupSpec[] = [
fields: [ fields: [
{ key: 'background', label: '背景' }, { key: 'background', label: '背景' },
{ key: 'foreground', label: '文字' }, { key: 'foreground', label: '文字' },
{ key: 'primary', label: '主色' }, { key: 'link', label: 'リンク' }] }]
{ key: 'accent', label: 'アクセント' },
{ key: 'link', label: 'リンク' },
] },
{ title: '面',
fields: [
{ key: 'card', label: 'カード' },
{ key: 'muted', label: '薄い背景' },
{ key: 'border', label: '境界線' },
] },
{ title: '上部ナビ',
fields: [
{ key: 'topNavRootBackgroundMobile', label: 'スマホ背景' },
{ key: 'topNavRootBackgroundDesktop', label: 'PC 背景' },
{ key: 'topNavActiveBackground', label: '選択中背景' },
{ key: 'topNavBrandLink', label: 'ロゴ色' },
] },
]
const ThemeSegmentedControl = <T extends string | number,> ( const ThemeSegmentedControl = <T extends string | number,> (
@@ -498,8 +481,6 @@ const ThemeSection: FC<ThemeSectionProps> = (
draftActiveDarkThemeSlotNo, draftActiveDarkThemeSlotNo,
currentDisplayedThemeSlot, currentDisplayedThemeSlot,
selectedTheme, selectedTheme,
displayedThemeLabel,
systemThemeLabel,
hasUnsavedChanges, hasUnsavedChanges,
settingsBaseErrors, settingsBaseErrors,
settingsFieldErrors, settingsFieldErrors,