このコミットが含まれているのは:
2026-10-27 12:39:32 +09:00
コミット 2706789fa4
10個のファイルの変更、94行の追加、30行の削除
+2 -1
ファイルの表示
@@ -61,7 +61,8 @@ export type CountsPivotHeader = { values: (string | number | null)[]
kind: 'data' | 'subtotal' | 'grand_total' }
export type CountsResult = {
populationCount?: number
excludedCount?: number
excludedCount?: number | null
excludedCountScope?: string
outputCount?: number | null
visibleOutputCount?: number
outputCountScope?: 'before_authorisation' | 'unavailable_private_history'
+6
ファイルの表示
@@ -14,6 +14,12 @@ export type CountsFieldType = 'string' | 'integer' | 'datetime' | 'enum'
export const countsResources: CountsResource[] = [
'posts', 'tags', 'nico_tags', 'tag_descriptions', 'tag_groups', 'materials']
// Navigation visibility only; supported resources and direct URLs remain available.
// The external-tag entry currently uses Nico tag history.
export const visibleCountsResources = [
'posts', 'tags', 'nico_tags'] as const satisfies readonly CountsResource[]
export type CountsFieldMetadata = {
key: string; type: CountsFieldType; nullable: boolean; operators: string[]
labels?: string[]; multiple?: boolean }
+9
ファイルの表示
@@ -157,6 +157,15 @@ export const sessionKeys = {
settings: (id: number) => ['session', id, 'settings'] as const,
themeSlots: (id: number) => ['session', id, 'themeSlots'] as const }
export const isAuthorityDependentQuery = (key: readonly unknown[]): boolean => {
// Only the public locale catalogue and the explicitly synchronised session survive.
const publicLocaleFlg = key.length === 2
&& key[0] === localesKeys.index[0] && key[1] === localesKeys.index[1]
const currentSessionFlg = key.length === 2
&& key[0] === sessionKeys.current[0] && key[1] === sessionKeys.current[1]
return !publicLocaleFlg && !currentSessionFlg
}
export const theatresKeys = {
show: (id: string, locale: LocaleCode) => ['theatres', locale, id] as const,
programmes: (id: string, locale: LocaleCode) =>