Merge pull request #3635 from ClearlyClaire/glitch-soc/merge-4.7
Merge upstream changes up to d4c1a2c56a into stable-4.7
This commit is contained in:
113 files changed
+1827
-1197
No files matched your search
+20
-1
@@ -27,7 +27,7 @@ All notable changes to this project will be documented in this file.
|
||||
is an account for which the handle cannot be currently verified, but is otherwise valid.
|
||||
In the REST API, they have their `username` and `domain` attribute overridden and this is made explicit through the [`invalid_handle` attribute](https://docs.joinmastodon.org/entities/Account/#invalid_handle).
|
||||
- Add outgoing RFC9421 HTTP Message Signatures as fallback to earlier draft (#39756 by @ClearlyClaire)
|
||||
- Change how local users' keypairs are stored (#39658, #39668, #39662, #39684, #39686 and #39690 by @ClearlyClaire)
|
||||
- Change how local users' keypairs are stored (#39658, #39668, #39662, #39684, #39686, #39690 and #40138 by @ClearlyClaire)
|
||||
- This moves local users' keypairs to the dedicated table that was created in 4.6.
|
||||
- Private keys are now encrypted at rest, and the new infrastructure will allow for key rotation in the future.
|
||||
- Add support for `expires` in Linked Data Signatures and Object Integrity Proofs (#39701 by @ClearlyClaire)
|
||||
@@ -39,6 +39,8 @@ All notable changes to this project will be documented in this file.
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix error in `tootctl media refresh` when cleaning some incompletely processed files (#40056 by @shleeable)
|
||||
- Fix plain-text formatter not treating `<BR>` as newline (#40079 by @shleeable)
|
||||
- Fix performance of listing follow requests by adding appropriate index (#40033 by @ClearlyClaire)
|
||||
- Fix missing `on_delete: :cascade` on `GeneratedAnnualReport` foreign key (#40063 by @ClearlyClaire)
|
||||
- Fix `DeleteAccountService#purge_favourites!` only invalidating deprecated cache keys (#40048 by @shleeable)
|
||||
@@ -69,6 +71,23 @@ All notable changes to this project will be documented in this file.
|
||||
- Remove deprecated `bin/update` script (#39443 by @mjankowski)
|
||||
- Remove support for pre-Mastodon 4.3.0 cookies (#38918 by @ClearlyClaire)
|
||||
|
||||
## [4.6.6] - 2026-08-13
|
||||
|
||||
### Changes
|
||||
|
||||
- Change `mastodon:setup` task warning about trademark to match `masto` but ignore subdomains (#40143 by @ClearlyClaire)
|
||||
|
||||
### Fixed
|
||||
|
||||
- Fix connection errors when processing `fediverse:creator` preventing creation of preview cards (#40135 by @ClearlyClaire)
|
||||
- Fix Web UI being inaccessible with URLs ending with `.zip` (#40134 by @ClearlyClaire)
|
||||
- Fix semitransparent background of picture-in-picture video player (#40132 by @diondiondion)
|
||||
- Fix title tooltip appearing for fullscreen videos (#40127 by @diondiondion)
|
||||
- Fix image preview too dark in alt text editor dialog (#40126 by @diondiondion)
|
||||
- Fix domain block impact queries being rejected (#40122 by @ClearlyClaire)
|
||||
- Fix mobile navigation scrolling to top while opening (#40042 by @sharlayan)
|
||||
- Fix selected account being lost when creating a collection (#39897 and #40133 by @diondiondion and @sharlayan)
|
||||
|
||||
## [4.6.5] - 2026-08-06
|
||||
|
||||
### Fixed
|
||||
|
||||
+1
-1
@@ -234,7 +234,7 @@ FROM media-build AS ffmpeg
|
||||
|
||||
# ffmpeg version to compile, change with [--build-arg FFMPEG_VERSION="7.0.x"]
|
||||
# renovate: datasource=github-tags depName=FFmpeg/FFmpeg extractVersion=^n(?<version>\d+\.\d+(\.\d+)?)$
|
||||
ARG FFMPEG_VERSION=8.1.2
|
||||
ARG FFMPEG_VERSION=9.0.1
|
||||
# ffmpeg download URL, change with [--build-arg FFMPEG_URL="https://ffmpeg.org/releases"]
|
||||
ARG FFMPEG_URL=https://github.com/FFmpeg/FFmpeg/archive/refs/tags
|
||||
|
||||
|
||||
+15
-15
@@ -133,8 +133,8 @@ GEM
|
||||
binding_of_caller (2.0.0)
|
||||
debug_inspector (>= 1.2.0)
|
||||
blurhash (0.1.8)
|
||||
bootsnap (1.24.6)
|
||||
msgpack (~> 1.2)
|
||||
bootsnap (1.25.0)
|
||||
msgpack (~> 1.5)
|
||||
brakeman (8.0.5)
|
||||
racc
|
||||
browser (6.2.0)
|
||||
@@ -210,7 +210,7 @@ GEM
|
||||
discard (2.0.0)
|
||||
activerecord (>= 7.0, < 9.0)
|
||||
domain_name (0.6.20240107)
|
||||
doorkeeper (5.9.5)
|
||||
doorkeeper (5.9.6)
|
||||
railties (>= 5)
|
||||
dotenv (3.2.0)
|
||||
drb (2.2.3)
|
||||
@@ -226,9 +226,9 @@ GEM
|
||||
elasticsearch-dsl (0.1.10)
|
||||
erb (6.0.7)
|
||||
erubi (1.13.1)
|
||||
et-orbi (1.4.0)
|
||||
et-orbi (1.4.1)
|
||||
tzinfo
|
||||
excon (1.5.0)
|
||||
excon (1.7.0)
|
||||
logger
|
||||
fabrication (3.0.0)
|
||||
faker (3.8.0)
|
||||
@@ -355,7 +355,7 @@ GEM
|
||||
jmespath (1.6.2)
|
||||
json (2.21.2)
|
||||
json-canonicalization (1.0.0)
|
||||
json-jwt (1.17.1)
|
||||
json-jwt (1.17.2)
|
||||
activesupport (>= 4.2)
|
||||
aes_key_wrap
|
||||
base64
|
||||
@@ -449,7 +449,7 @@ GEM
|
||||
minitest (6.0.6)
|
||||
drb (~> 2.0)
|
||||
prism (~> 1.5)
|
||||
msgpack (1.8.3)
|
||||
msgpack (1.8.4)
|
||||
multi_json (1.21.1)
|
||||
mutex_m (0.3.0)
|
||||
net-http (0.9.1)
|
||||
@@ -533,7 +533,7 @@ GEM
|
||||
opentelemetry-instrumentation-base (~> 0.25)
|
||||
opentelemetry-instrumentation-active_storage (0.5.1)
|
||||
opentelemetry-instrumentation-active_support (~> 0.10)
|
||||
opentelemetry-instrumentation-active_support (0.12.0)
|
||||
opentelemetry-instrumentation-active_support (0.12.1)
|
||||
opentelemetry-instrumentation-base (~> 0.25)
|
||||
opentelemetry-instrumentation-base (0.26.1)
|
||||
opentelemetry-api (~> 1.7)
|
||||
@@ -592,7 +592,7 @@ GEM
|
||||
pastel (0.8.0)
|
||||
tty-color (~> 0.5)
|
||||
pg (1.6.3)
|
||||
pghero (3.8.0)
|
||||
pghero (4.0.0)
|
||||
activerecord (>= 7.2)
|
||||
playwright-ruby-client (1.62.0)
|
||||
base64
|
||||
@@ -621,7 +621,7 @@ GEM
|
||||
nio4r (~> 2.0)
|
||||
pundit (2.5.2)
|
||||
activesupport (>= 3.0.0)
|
||||
raabro (1.4.0)
|
||||
raabro (1.5.0)
|
||||
racc (1.8.1)
|
||||
rack (3.2.6)
|
||||
rack-attack (6.8.0)
|
||||
@@ -684,7 +684,7 @@ GEM
|
||||
zeitwerk (~> 2.6)
|
||||
rainbow (3.1.1)
|
||||
rake (13.4.2)
|
||||
rbs (4.0.3)
|
||||
rbs (4.1.3)
|
||||
logger
|
||||
prism (>= 1.6.0)
|
||||
tsort
|
||||
@@ -710,7 +710,7 @@ GEM
|
||||
redis-client (0.30.1)
|
||||
connection_pool
|
||||
regexp_parser (2.12.0)
|
||||
reline (0.6.3)
|
||||
reline (0.7.0)
|
||||
io-console (~> 0.5)
|
||||
request_store (1.7.0)
|
||||
rack (>= 1.4)
|
||||
@@ -719,7 +719,7 @@ GEM
|
||||
railties (>= 7.0)
|
||||
rexml (3.4.4)
|
||||
rotp (6.3.0)
|
||||
rouge (5.0.0)
|
||||
rouge (5.1.0)
|
||||
strscan (~> 3.1)
|
||||
rpam2 (4.0.2)
|
||||
rqrcode (3.2.0)
|
||||
@@ -838,7 +838,7 @@ GEM
|
||||
simple_form (5.4.1)
|
||||
actionpack (>= 7.0)
|
||||
activemodel (>= 7.0)
|
||||
simplecov (1.0.3)
|
||||
simplecov (1.1.0)
|
||||
simplecov-lcov (0.9.0)
|
||||
ssrf_filter (1.5.0)
|
||||
stackprof (0.2.28)
|
||||
@@ -1091,4 +1091,4 @@ RUBY VERSION
|
||||
ruby 4.0.6
|
||||
|
||||
BUNDLED WITH
|
||||
4.0.16
|
||||
4.0.18
|
||||
@@ -18,8 +18,8 @@ class Api::V1::Admin::MeasuresController < Api::BaseController
|
||||
def set_measures
|
||||
@measures = Admin::Metrics::Measure.retrieve(
|
||||
params.require(:keys),
|
||||
params.require(:start_at),
|
||||
params.require(:end_at),
|
||||
params[:start_at],
|
||||
params[:end_at],
|
||||
params
|
||||
)
|
||||
end
|
||||
|
||||
@@ -6,6 +6,7 @@ module WebAppControllerConcern
|
||||
included do
|
||||
vary_by 'Accept, Accept-Language, Cookie'
|
||||
|
||||
before_action :adjust_format_for_zip_tlds
|
||||
before_action :redirect_unauthenticated_to_permalinks!
|
||||
before_action :set_referer_header
|
||||
before_action :redirect_to_tos_interstitial!
|
||||
@@ -46,6 +47,14 @@ module WebAppControllerConcern
|
||||
|
||||
protected
|
||||
|
||||
# This endpoint will never serve zip files, but may serve paths ending with `.zip` due to the `.zip` TLD.
|
||||
# When that happens from a browser, Rails will unfortunately determine the requested format to be `:zip`
|
||||
# instead of `:html`, so override this.
|
||||
# We don't just override `format` in all cases, because we want to handle `:json` as well.
|
||||
def adjust_format_for_zip_tlds
|
||||
request.format = :html if request.format == :zip
|
||||
end
|
||||
|
||||
def redirect_to_tos_interstitial!
|
||||
return unless current_user&.require_tos_interstitial?
|
||||
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FC } from 'react';
|
||||
import type { CSSProperties, FC } from 'react';
|
||||
|
||||
import type { Meta, StoryObj } from '@storybook/react-vite';
|
||||
import { fn, userEvent, expect } from 'storybook/test';
|
||||
@@ -10,16 +10,19 @@ interface TestSlideProps {
|
||||
id: number;
|
||||
text: string;
|
||||
color: string;
|
||||
style?: CSSProperties;
|
||||
}
|
||||
|
||||
const TestSlide: FC<TestSlideProps & { active: boolean }> = ({
|
||||
active,
|
||||
text,
|
||||
color,
|
||||
style,
|
||||
}) => (
|
||||
<div
|
||||
className='test-slide'
|
||||
style={{
|
||||
...style,
|
||||
backgroundColor: active ? color : undefined,
|
||||
}}
|
||||
>
|
||||
@@ -114,7 +117,7 @@ export const DifferentHeights: Story = {
|
||||
args: {
|
||||
items: slides.map((props, index) => ({
|
||||
...props,
|
||||
styles: { height: 100 + index * 100 },
|
||||
style: { height: 100 + index * 100 },
|
||||
})),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
||||
import { useCallback, useMemo, useState } from 'react';
|
||||
import type {
|
||||
ComponentPropsWithoutRef,
|
||||
ComponentType,
|
||||
@@ -75,10 +75,13 @@ export const Carousel = <
|
||||
}: CarouselProps<SlideProps> & ComponentPropsWithoutRef<'div'>) => {
|
||||
// Handle slide change
|
||||
const [slideIndex, setSlideIndex] = useState(0);
|
||||
const wrapperRef = useRef<HTMLDivElement>(null);
|
||||
const [wrapperElement, setWrapperElement] = useState<HTMLDivElement | null>(
|
||||
null,
|
||||
);
|
||||
|
||||
// Handle slide heights
|
||||
const [currentSlideHeight, setCurrentSlideHeight] = useState(
|
||||
() => wrapperRef.current?.scrollHeight ?? 0,
|
||||
const [currentSlideHeight, setCurrentSlideHeight] = useState<number | null>(
|
||||
null,
|
||||
);
|
||||
const previousSlideHeight = usePrevious(currentSlideHeight);
|
||||
const handleSlideChange = useCallback(
|
||||
@@ -92,7 +95,7 @@ export const Carousel = <
|
||||
newIndex = 0;
|
||||
}
|
||||
|
||||
const slide = wrapperRef.current?.children[newIndex];
|
||||
const slide = wrapperElement?.children[newIndex];
|
||||
if (slide) {
|
||||
setCurrentSlideHeight(slide.scrollHeight);
|
||||
if (slide instanceof HTMLElement) {
|
||||
@@ -103,26 +106,27 @@ export const Carousel = <
|
||||
return newIndex;
|
||||
});
|
||||
},
|
||||
[items.length, onChangeSlide],
|
||||
[wrapperElement, items.length, onChangeSlide],
|
||||
);
|
||||
|
||||
const observerRef = useRef<ResizeObserver>(null);
|
||||
observerRef.current ??= new ResizeObserver(() => {
|
||||
// Update slide height when the component mounts
|
||||
if (wrapperElement && currentSlideHeight === null) {
|
||||
handleSlideChange(0);
|
||||
});
|
||||
}
|
||||
|
||||
const [observer] = useState<ResizeObserver>(
|
||||
() =>
|
||||
new ResizeObserver(() => {
|
||||
handleSlideChange(0);
|
||||
}),
|
||||
);
|
||||
|
||||
const wrapperStyles = useSpring({
|
||||
x: `-${slideIndex * 100}%`,
|
||||
height: currentSlideHeight,
|
||||
height: currentSlideHeight ?? 0,
|
||||
// Don't animate from zero to the height of the initial slide
|
||||
immediate: !previousSlideHeight,
|
||||
});
|
||||
useLayoutEffect(() => {
|
||||
// Update slide height when the component mounts
|
||||
if (currentSlideHeight === 0) {
|
||||
handleSlideChange(0);
|
||||
}
|
||||
}, [currentSlideHeight, handleSlideChange]);
|
||||
|
||||
// Handle swiping animations
|
||||
const bind = useDrag(
|
||||
@@ -135,12 +139,12 @@ export const Carousel = <
|
||||
handleSlideChange(-1);
|
||||
// We're focusing on the wrapper as the child slides can potentially be inert.
|
||||
// Because of that, only the active slide can be focused anyway.
|
||||
wrapperRef.current?.focus();
|
||||
}, [handleSlideChange]);
|
||||
wrapperElement?.focus();
|
||||
}, [handleSlideChange, wrapperElement]);
|
||||
const handleNext = useCallback(() => {
|
||||
handleSlideChange(1);
|
||||
wrapperRef.current?.focus();
|
||||
}, [handleSlideChange]);
|
||||
wrapperElement?.focus();
|
||||
}, [handleSlideChange, wrapperElement]);
|
||||
|
||||
const intl = useIntl();
|
||||
|
||||
@@ -173,7 +177,7 @@ export const Carousel = <
|
||||
|
||||
<animated.div
|
||||
className={`${classNamePrefix}__slides`}
|
||||
ref={wrapperRef}
|
||||
ref={setWrapperElement}
|
||||
style={wrapperStyles}
|
||||
aria-label={intl.formatMessage(messages.slide, {
|
||||
current: slideIndex + 1,
|
||||
@@ -185,7 +189,7 @@ export const Carousel = <
|
||||
<CarouselSlideWrapper<SlideProps>
|
||||
item={itemsProps}
|
||||
renderItem={renderItem}
|
||||
observer={observerRef.current}
|
||||
observer={observer}
|
||||
index={index}
|
||||
key={`slide-${itemsProps.id}`}
|
||||
className={classNames(`${classNamePrefix}__slide`, slideClassName, {
|
||||
|
||||
@@ -488,6 +488,8 @@ export const Dropdown = <Item extends object | null = MenuItem>({
|
||||
};
|
||||
|
||||
if (children) {
|
||||
// We're just assigning the ref to an element so this is safe
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
button = cloneElement(Children.only(children), buttonProps);
|
||||
} else if (icon && iconComponent) {
|
||||
button = (
|
||||
|
||||
@@ -317,6 +317,9 @@ const ComboboxWithRef = <Item extends ComboboxItem, GroupKey extends string>(
|
||||
// Reset scroll & highlight when menu items change
|
||||
useEffect(() => {
|
||||
if (flatItems.length) {
|
||||
// This only runs when the items change so should be safe from
|
||||
// cascade renders.
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
resetHighlight();
|
||||
}
|
||||
}, [flatItems, resetHighlight]);
|
||||
|
||||
@@ -74,6 +74,7 @@ export const ScrollContext: React.FC<ScrollContextProps> = ({
|
||||
* than a ref to simplify the types and ensure it's defined immediately.
|
||||
*/
|
||||
const [scrollBehavior] = useState(
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
(): ScrollBehaviorInstance =>
|
||||
new ScrollBehavior({
|
||||
addNavigationListener: history.listen.bind(history),
|
||||
|
||||
@@ -20,9 +20,11 @@ import { SpoilerButton } from 'flavours/glitch/components/spoiler_button';
|
||||
import { formatTime, getPointerPosition } from 'flavours/glitch/features/video';
|
||||
import { useAudioContext } from 'flavours/glitch/hooks/useAudioContext';
|
||||
import { useAudioVisualizer } from 'flavours/glitch/hooks/useAudioVisualizer';
|
||||
import { displayMedia, useBlurhash } from 'flavours/glitch/initial_state';
|
||||
import { useBlurhash } from 'flavours/glitch/initial_state';
|
||||
import { playerSettings } from 'flavours/glitch/settings';
|
||||
|
||||
import { useRevealedMedia } from '../../hooks/useRevealedMedia';
|
||||
|
||||
import { AudioVisualizer } from './visualizer';
|
||||
|
||||
const messages = defineMessages({
|
||||
@@ -100,7 +102,7 @@ export const Audio: React.FC<{
|
||||
const [volume, setVolume] = useState(0.5);
|
||||
const [hovered, setHovered] = useState(false);
|
||||
const [dragging, setDragging] = useState(false);
|
||||
const [revealed, setRevealed] = useState(false);
|
||||
const [revealed, setRevealed] = useRevealedMedia({ visible, sensitive });
|
||||
|
||||
const playerRef = useRef<HTMLDivElement>(null);
|
||||
const audioRef = useRef<HTMLAudioElement>(null);
|
||||
@@ -177,17 +179,6 @@ export const Audio: React.FC<{
|
||||
}
|
||||
}, [volume, muted, gainNodeRef]);
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof visible !== 'undefined') {
|
||||
setRevealed(visible);
|
||||
} else {
|
||||
setRevealed(
|
||||
displayMedia === 'show_all' ||
|
||||
(displayMedia !== 'hide_all' && !sensitive),
|
||||
);
|
||||
}
|
||||
}, [visible, sensitive]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!revealed) {
|
||||
pauseAudio();
|
||||
|
||||
@@ -10,6 +10,7 @@ import { useCurrentAccountId } from '@/flavours/glitch/hooks/useAccountId';
|
||||
import type { Account } from '@/flavours/glitch/models/account';
|
||||
import {
|
||||
addCollectionItem,
|
||||
collectionEditorActions,
|
||||
removeCollectionItem,
|
||||
} from '@/flavours/glitch/reducers/slices/collections';
|
||||
import CloseIcon from '@/material-icons/400-24px/close.svg?react';
|
||||
@@ -23,6 +24,7 @@ import {
|
||||
} from '../collections/overview/created_by_account';
|
||||
|
||||
import { CollectionToggle } from './collection_toggle';
|
||||
import classes from './styles.module.scss';
|
||||
|
||||
const messages = defineMessages({
|
||||
close: {
|
||||
@@ -107,6 +109,23 @@ export const CollectionAdder: React.FC<{
|
||||
const account = useAppSelector((state) => state.accounts.get(accountId));
|
||||
const currentAccountId = useCurrentAccountId();
|
||||
const { collections, status } = useCollectionsCreatedBy(currentAccountId);
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const handleNewCollection = useCallback(() => {
|
||||
if (account) {
|
||||
dispatch(
|
||||
collectionEditorActions.reset({
|
||||
account_id: account.id,
|
||||
state:
|
||||
account.feature_approval.current_user === 'manual'
|
||||
? 'pending'
|
||||
: 'accepted',
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
onClose();
|
||||
}, [account, dispatch, onClose]);
|
||||
|
||||
return (
|
||||
<div className='modal-root__modal dialog-modal'>
|
||||
@@ -155,12 +174,22 @@ export const CollectionAdder: React.FC<{
|
||||
/>
|
||||
}
|
||||
>
|
||||
<NewCollectionButton onClick={onClose} />
|
||||
<NewCollectionButton compact onClick={handleNewCollection} />
|
||||
</EmptyState>
|
||||
) : (
|
||||
collections.map((item) => (
|
||||
<ListItem key={item.id} collection={item} account={account} />
|
||||
))
|
||||
<>
|
||||
<div className={classes.newCollection}>
|
||||
<NewCollectionButton secondary onClick={handleNewCollection}>
|
||||
<FormattedMessage
|
||||
id='collections.create_new_collection'
|
||||
defaultMessage='Create new collection'
|
||||
/>
|
||||
</NewCollectionButton>
|
||||
</div>
|
||||
{collections.map((item) => (
|
||||
<ListItem key={item.id} collection={item} account={account} />
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.newCollection {
|
||||
padding: 16px;
|
||||
}
|
||||
+16
-7
@@ -1,7 +1,9 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import classNames from 'classnames';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import AddIcon from '@/material-icons/400-24px/add.svg?react';
|
||||
@@ -29,16 +31,23 @@ import {
|
||||
} from '../editor';
|
||||
import classes from '../styles.module.scss';
|
||||
|
||||
export const NewCollectionButton: React.FC<{ onClick?: () => void }> = ({
|
||||
onClick,
|
||||
}) => (
|
||||
export const NewCollectionButton: React.FC<{
|
||||
compact?: boolean;
|
||||
secondary?: boolean;
|
||||
onClick?: () => void;
|
||||
children?: ReactNode;
|
||||
}> = ({ compact, secondary, onClick, children }) => (
|
||||
<Link
|
||||
to='/collections/new'
|
||||
className='button button--compact'
|
||||
className={classNames(
|
||||
'button',
|
||||
compact && 'button--compact',
|
||||
secondary && 'button-secondary',
|
||||
)}
|
||||
onClick={onClick}
|
||||
>
|
||||
<Icon id='plus' icon={AddIcon} />
|
||||
<FormattedMessage {...editorMessages.newCollection} />
|
||||
{children ?? <FormattedMessage {...editorMessages.newCollection} />}
|
||||
</Link>
|
||||
);
|
||||
|
||||
@@ -106,7 +115,7 @@ export const CollectionsCreatedByAccount: React.FC = () => {
|
||||
/>
|
||||
}
|
||||
>
|
||||
<NewCollectionButton />
|
||||
<NewCollectionButton compact />
|
||||
</EmptyState>
|
||||
);
|
||||
} else {
|
||||
@@ -138,7 +147,7 @@ export const CollectionsCreatedByAccount: React.FC = () => {
|
||||
}}
|
||||
/>
|
||||
</h2>
|
||||
{showCreateButton && <NewCollectionButton />}
|
||||
{showCreateButton && <NewCollectionButton compact />}
|
||||
</div>
|
||||
<ItemList>
|
||||
{isOwnCollectionPage && !canCreateMoreCollections && (
|
||||
|
||||
@@ -504,7 +504,7 @@ export const CollapsibleNavigationPanel: React.FC = () => {
|
||||
x({ value }: { value: number }) {
|
||||
if (value === 0) {
|
||||
dispatch(openNavigation());
|
||||
} else if (isLtrDir ? value > 0 : value < 0) {
|
||||
} else if (value === OPEN_MENU_OFFSET) {
|
||||
dispatch(closeNavigation());
|
||||
}
|
||||
},
|
||||
@@ -544,6 +544,7 @@ export const CollapsibleNavigationPanel: React.FC = () => {
|
||||
},
|
||||
{
|
||||
from: () => [x.get(), 0],
|
||||
axis: 'x',
|
||||
filterTaps: true,
|
||||
bounds: isLtrDir ? { left: 0 } : { right: 0 },
|
||||
rubberband: true,
|
||||
|
||||
@@ -129,6 +129,7 @@ class SwitchingColumnsArea extends PureComponent {
|
||||
singleColumn: PropTypes.bool,
|
||||
layout: PropTypes.string.isRequired,
|
||||
forceOnboarding: PropTypes.bool,
|
||||
minimalShell: PropTypes.bool,
|
||||
};
|
||||
|
||||
componentDidMount () {
|
||||
@@ -166,7 +167,7 @@ class SwitchingColumnsArea extends PureComponent {
|
||||
};
|
||||
|
||||
render () {
|
||||
const { children, singleColumn, forceOnboarding } = this.props;
|
||||
const { children, singleColumn, forceOnboarding, minimalShell } = this.props;
|
||||
const { signedIn } = this.props.identity;
|
||||
const pathName = this.props.location.pathname;
|
||||
|
||||
@@ -193,7 +194,7 @@ class SwitchingColumnsArea extends PureComponent {
|
||||
|
||||
return (
|
||||
<ColumnsContextProvider multiColumn={!singleColumn}>
|
||||
<ColumnsArea ref={this.setRef} singleColumn={singleColumn} domain={domain} minimalShell={!signedIn && landingPage === 'overview' && pathName.startsWith('/overview')}>
|
||||
<ColumnsArea ref={this.setRef} singleColumn={singleColumn} domain={domain} minimalShell={minimalShell}>
|
||||
<WrappedSwitch>
|
||||
<Redirect from='/' to={{pathname: rootRedirect, state: {...this.props.location.state, focusTarget: false}}} exact />
|
||||
|
||||
@@ -716,6 +717,7 @@ class UI extends PureComponent {
|
||||
singleColumn={layout === 'mobile' || layout === 'single-column'}
|
||||
layout={layout}
|
||||
forceOnboarding={firstLaunch && newAccount}
|
||||
minimalShell={minimalShell}
|
||||
>
|
||||
{children}
|
||||
</SwitchingColumnsArea>
|
||||
|
||||
@@ -8,6 +8,7 @@ import { useSpring, animated, config } from '@react-spring/web';
|
||||
import { throttle } from 'lodash';
|
||||
|
||||
import type { DeployPictureInPictureCallback } from '@/flavours/glitch/actions/picture_in_picture';
|
||||
import { useRevealedMedia } from '@/flavours/glitch/hooks/useRevealedMedia';
|
||||
import Forward5Icon from '@/material-icons/400-24px/forward_5-fill.svg?react';
|
||||
import FullscreenIcon from '@/material-icons/400-24px/fullscreen.svg?react';
|
||||
import FullscreenExitIcon from '@/material-icons/400-24px/fullscreen_exit.svg?react';
|
||||
@@ -28,7 +29,7 @@ import {
|
||||
attachFullscreenListener,
|
||||
detachFullscreenListener,
|
||||
} from 'flavours/glitch/features/ui/util/fullscreen';
|
||||
import { displayMedia, useBlurhash } from 'flavours/glitch/initial_state';
|
||||
import { useBlurhash } from 'flavours/glitch/initial_state';
|
||||
import { playerSettings } from 'flavours/glitch/settings';
|
||||
|
||||
import { HotkeyIndicator } from './components/hotkey_indicator';
|
||||
@@ -218,7 +219,7 @@ export const Video: React.FC<{
|
||||
const [fullscreen, setFullscreen] = useState(false);
|
||||
const [hovered, setHovered] = useState(false);
|
||||
const [muted, setMuted] = useState(false);
|
||||
const [revealed, setRevealed] = useState(false);
|
||||
const [revealed, setRevealed] = useRevealedMedia({ visible, sensitive });
|
||||
const [hotkeyEvents, setHotkeyEvents] = useState<HotkeyEvent[]>([]);
|
||||
|
||||
const playerRef = useRef<HTMLDivElement>(null);
|
||||
@@ -366,17 +367,6 @@ export const Video: React.FC<{
|
||||
videoRef.current.muted = muted;
|
||||
}, [volume, muted]);
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof visible !== 'undefined') {
|
||||
setRevealed(visible);
|
||||
} else {
|
||||
setRevealed(
|
||||
displayMedia === 'show_all' ||
|
||||
(displayMedia !== 'hide_all' && !sensitive),
|
||||
);
|
||||
}
|
||||
}, [visible, sensitive]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!revealed && videoRef.current) {
|
||||
videoRef.current.pause();
|
||||
@@ -835,7 +825,7 @@ export const Video: React.FC<{
|
||||
role='button'
|
||||
tabIndex={0}
|
||||
aria-label={alt}
|
||||
title={alt}
|
||||
title={fullscreen ? undefined : alt}
|
||||
lang={lang}
|
||||
onClick={handleClick}
|
||||
onKeyDownCapture={handleVideoKeyDown}
|
||||
|
||||
@@ -24,5 +24,6 @@ export function useMergedRefs<T>(...refs: React.Ref<T>[]) {
|
||||
},
|
||||
[refs],
|
||||
);
|
||||
// eslint-disable-next-line react-hooks/immutability
|
||||
return setRef;
|
||||
}
|
||||
@@ -1,29 +1,25 @@
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
export function useResizeObserver(callback: ResizeObserverCallback) {
|
||||
const observerRef = useRef<ResizeObserver>(null);
|
||||
observerRef.current ??= new ResizeObserver(callback);
|
||||
const [observer] = useState(() => new ResizeObserver(callback));
|
||||
|
||||
useEffect(() => {
|
||||
const observer = observerRef.current;
|
||||
return () => {
|
||||
observer?.disconnect();
|
||||
observer.disconnect();
|
||||
};
|
||||
}, []);
|
||||
}, [observer]);
|
||||
|
||||
return observerRef.current;
|
||||
return observer;
|
||||
}
|
||||
|
||||
export function useMutationObserver(callback: MutationCallback) {
|
||||
const observerRef = useRef<MutationObserver>(null);
|
||||
observerRef.current ??= new MutationObserver(callback);
|
||||
const [observer] = useState(() => new MutationObserver(callback));
|
||||
|
||||
useEffect(() => {
|
||||
const observer = observerRef.current;
|
||||
return () => {
|
||||
observer?.disconnect();
|
||||
observer.disconnect();
|
||||
};
|
||||
}, []);
|
||||
}, [observer]);
|
||||
|
||||
return observerRef.current;
|
||||
return observer;
|
||||
}
|
||||
@@ -213,6 +213,7 @@ export function useOverflowObservers({
|
||||
// Watch the wrapper for size changes, and recalculate when it resizes.
|
||||
const wrapperRef = useRef<HTMLElement>(null);
|
||||
const wrapperRefCallback = useCallback(
|
||||
// eslint-disable-next-line react-hooks/immutability
|
||||
(node: HTMLElement | null) => {
|
||||
if (node) {
|
||||
wrapperRef.current = node; // eslint-disable-line react-hooks/immutability -- https://github.com/facebook/react/issues/34955
|
||||
@@ -229,6 +230,7 @@ export function useOverflowObservers({
|
||||
|
||||
// If there are changes to the children, recalculate which are visible.
|
||||
const listRefCallback = useCallback(
|
||||
// eslint-disable-next-line react-hooks/immutability
|
||||
(node: HTMLElement | null) => {
|
||||
if (node) {
|
||||
listRef.current = node;
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
import { displayMedia } from 'flavours/glitch/initial_state';
|
||||
|
||||
interface RevealedMediaProps {
|
||||
visible?: boolean;
|
||||
sensitive?: boolean;
|
||||
}
|
||||
|
||||
function getRevealedState({ visible, sensitive }: RevealedMediaProps) {
|
||||
if (typeof visible !== 'undefined') {
|
||||
return visible;
|
||||
} else {
|
||||
return (
|
||||
displayMedia === 'show_all' || (displayMedia !== 'hide_all' && !sensitive)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export function useRevealedMedia({ visible, sensitive }: RevealedMediaProps) {
|
||||
const [revealed, setRevealed] = useState(() =>
|
||||
getRevealedState({ visible, sensitive }),
|
||||
);
|
||||
|
||||
// Update `revealed` state when `sensitive` or `visible` props change
|
||||
const [previous, setPrevious] = useState({ visible, sensitive });
|
||||
if (sensitive !== previous.sensitive || visible !== previous.visible) {
|
||||
setRevealed(getRevealedState({ visible, sensitive }));
|
||||
setPrevious({ visible, sensitive });
|
||||
}
|
||||
|
||||
return [revealed, setRevealed] as const;
|
||||
}
|
||||
@@ -111,8 +111,11 @@ const collectionSlice = createSlice({
|
||||
items: getEditorCollectionItems(collection.items),
|
||||
};
|
||||
},
|
||||
reset(state) {
|
||||
state.editor = initialCollectionState.editor;
|
||||
reset(state, action: PayloadAction<EditorCollectionItem | undefined>) {
|
||||
state.editor =
|
||||
action.payload !== undefined
|
||||
? { ...initialCollectionState.editor, items: [action.payload] }
|
||||
: initialCollectionState.editor;
|
||||
},
|
||||
updateEditorField<K extends keyof EditorState>(
|
||||
state: CollectionState,
|
||||
|
||||
@@ -8594,6 +8594,10 @@ noscript {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
&.dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
@@ -8605,7 +8609,7 @@ noscript {
|
||||
transform: translate(-50%, -50%);
|
||||
border: 2px solid var(--color-text-on-media);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0 9999em var(--color-shadow-primary);
|
||||
box-shadow: 0 0 0 9999em rgb(from black r g b / 25%);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
@@ -9070,6 +9074,7 @@ noscript {
|
||||
bottom: 20px;
|
||||
inset-inline-end: 20px;
|
||||
width: 300px;
|
||||
background-color: var(--color-bg-primary);
|
||||
box-shadow: var(--dropdown-shadow);
|
||||
|
||||
// glitch: feature to chose which side the pop-in player is displayed
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import type { FC } from 'react';
|
||||
import type { CSSProperties, FC } from 'react';
|
||||
|
||||
import type { Meta, StoryObj } from '@storybook/react-vite';
|
||||
import { fn, userEvent, expect } from 'storybook/test';
|
||||
@@ -10,16 +10,19 @@ interface TestSlideProps {
|
||||
id: number;
|
||||
text: string;
|
||||
color: string;
|
||||
style?: CSSProperties;
|
||||
}
|
||||
|
||||
const TestSlide: FC<TestSlideProps & { active: boolean }> = ({
|
||||
active,
|
||||
text,
|
||||
color,
|
||||
style,
|
||||
}) => (
|
||||
<div
|
||||
className='test-slide'
|
||||
style={{
|
||||
...style,
|
||||
backgroundColor: active ? color : undefined,
|
||||
}}
|
||||
>
|
||||
@@ -114,7 +117,7 @@ export const DifferentHeights: Story = {
|
||||
args: {
|
||||
items: slides.map((props, index) => ({
|
||||
...props,
|
||||
styles: { height: 100 + index * 100 },
|
||||
style: { height: 100 + index * 100 },
|
||||
})),
|
||||
},
|
||||
};
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
import { useCallback, useLayoutEffect, useMemo, useRef, useState } from 'react';
|
||||
import { useCallback, useMemo, useState } from 'react';
|
||||
import type {
|
||||
ComponentPropsWithoutRef,
|
||||
ComponentType,
|
||||
@@ -75,10 +75,13 @@ export const Carousel = <
|
||||
}: CarouselProps<SlideProps> & ComponentPropsWithoutRef<'div'>) => {
|
||||
// Handle slide change
|
||||
const [slideIndex, setSlideIndex] = useState(0);
|
||||
const wrapperRef = useRef<HTMLDivElement>(null);
|
||||
const [wrapperElement, setWrapperElement] = useState<HTMLDivElement | null>(
|
||||
null,
|
||||
);
|
||||
|
||||
// Handle slide heights
|
||||
const [currentSlideHeight, setCurrentSlideHeight] = useState(
|
||||
() => wrapperRef.current?.scrollHeight ?? 0,
|
||||
const [currentSlideHeight, setCurrentSlideHeight] = useState<number | null>(
|
||||
null,
|
||||
);
|
||||
const previousSlideHeight = usePrevious(currentSlideHeight);
|
||||
const handleSlideChange = useCallback(
|
||||
@@ -92,7 +95,7 @@ export const Carousel = <
|
||||
newIndex = 0;
|
||||
}
|
||||
|
||||
const slide = wrapperRef.current?.children[newIndex];
|
||||
const slide = wrapperElement?.children[newIndex];
|
||||
if (slide) {
|
||||
setCurrentSlideHeight(slide.scrollHeight);
|
||||
if (slide instanceof HTMLElement) {
|
||||
@@ -103,26 +106,27 @@ export const Carousel = <
|
||||
return newIndex;
|
||||
});
|
||||
},
|
||||
[items.length, onChangeSlide],
|
||||
[wrapperElement, items.length, onChangeSlide],
|
||||
);
|
||||
|
||||
const observerRef = useRef<ResizeObserver>(null);
|
||||
observerRef.current ??= new ResizeObserver(() => {
|
||||
// Update slide height when the component mounts
|
||||
if (wrapperElement && currentSlideHeight === null) {
|
||||
handleSlideChange(0);
|
||||
});
|
||||
}
|
||||
|
||||
const [observer] = useState<ResizeObserver>(
|
||||
() =>
|
||||
new ResizeObserver(() => {
|
||||
handleSlideChange(0);
|
||||
}),
|
||||
);
|
||||
|
||||
const wrapperStyles = useSpring({
|
||||
x: `-${slideIndex * 100}%`,
|
||||
height: currentSlideHeight,
|
||||
height: currentSlideHeight ?? 0,
|
||||
// Don't animate from zero to the height of the initial slide
|
||||
immediate: !previousSlideHeight,
|
||||
});
|
||||
useLayoutEffect(() => {
|
||||
// Update slide height when the component mounts
|
||||
if (currentSlideHeight === 0) {
|
||||
handleSlideChange(0);
|
||||
}
|
||||
}, [currentSlideHeight, handleSlideChange]);
|
||||
|
||||
// Handle swiping animations
|
||||
const bind = useDrag(
|
||||
@@ -135,12 +139,12 @@ export const Carousel = <
|
||||
handleSlideChange(-1);
|
||||
// We're focusing on the wrapper as the child slides can potentially be inert.
|
||||
// Because of that, only the active slide can be focused anyway.
|
||||
wrapperRef.current?.focus();
|
||||
}, [handleSlideChange]);
|
||||
wrapperElement?.focus();
|
||||
}, [handleSlideChange, wrapperElement]);
|
||||
const handleNext = useCallback(() => {
|
||||
handleSlideChange(1);
|
||||
wrapperRef.current?.focus();
|
||||
}, [handleSlideChange]);
|
||||
wrapperElement?.focus();
|
||||
}, [handleSlideChange, wrapperElement]);
|
||||
|
||||
const intl = useIntl();
|
||||
|
||||
@@ -173,7 +177,7 @@ export const Carousel = <
|
||||
|
||||
<animated.div
|
||||
className={`${classNamePrefix}__slides`}
|
||||
ref={wrapperRef}
|
||||
ref={setWrapperElement}
|
||||
style={wrapperStyles}
|
||||
aria-label={intl.formatMessage(messages.slide, {
|
||||
current: slideIndex + 1,
|
||||
@@ -185,7 +189,7 @@ export const Carousel = <
|
||||
<CarouselSlideWrapper<SlideProps>
|
||||
item={itemsProps}
|
||||
renderItem={renderItem}
|
||||
observer={observerRef.current}
|
||||
observer={observer}
|
||||
index={index}
|
||||
key={`slide-${itemsProps.id}`}
|
||||
className={classNames(`${classNamePrefix}__slide`, slideClassName, {
|
||||
|
||||
@@ -488,6 +488,8 @@ export const Dropdown = <Item extends object | null = MenuItem>({
|
||||
};
|
||||
|
||||
if (children) {
|
||||
// We're just assigning the ref to an element so this is safe
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
button = cloneElement(Children.only(children), buttonProps);
|
||||
} else if (icon && iconComponent) {
|
||||
button = (
|
||||
|
||||
@@ -317,6 +317,9 @@ const ComboboxWithRef = <Item extends ComboboxItem, GroupKey extends string>(
|
||||
// Reset scroll & highlight when menu items change
|
||||
useEffect(() => {
|
||||
if (flatItems.length) {
|
||||
// This only runs when the items change so should be safe from
|
||||
// cascade renders.
|
||||
// eslint-disable-next-line react-hooks/set-state-in-effect
|
||||
resetHighlight();
|
||||
}
|
||||
}, [flatItems, resetHighlight]);
|
||||
|
||||
@@ -74,6 +74,7 @@ export const ScrollContext: React.FC<ScrollContextProps> = ({
|
||||
* than a ref to simplify the types and ensure it's defined immediately.
|
||||
*/
|
||||
const [scrollBehavior] = useState(
|
||||
// eslint-disable-next-line react-hooks/refs
|
||||
(): ScrollBehaviorInstance =>
|
||||
new ScrollBehavior({
|
||||
addNavigationListener: history.listen.bind(history),
|
||||
|
||||
@@ -20,9 +20,11 @@ import { SpoilerButton } from 'mastodon/components/spoiler_button';
|
||||
import { formatTime, getPointerPosition } from 'mastodon/features/video';
|
||||
import { useAudioContext } from 'mastodon/hooks/useAudioContext';
|
||||
import { useAudioVisualizer } from 'mastodon/hooks/useAudioVisualizer';
|
||||
import { displayMedia, useBlurhash } from 'mastodon/initial_state';
|
||||
import { useBlurhash } from 'mastodon/initial_state';
|
||||
import { playerSettings } from 'mastodon/settings';
|
||||
|
||||
import { useRevealedMedia } from '../../hooks/useRevealedMedia';
|
||||
|
||||
import { AudioVisualizer } from './visualizer';
|
||||
|
||||
const messages = defineMessages({
|
||||
@@ -100,7 +102,7 @@ export const Audio: React.FC<{
|
||||
const [volume, setVolume] = useState(0.5);
|
||||
const [hovered, setHovered] = useState(false);
|
||||
const [dragging, setDragging] = useState(false);
|
||||
const [revealed, setRevealed] = useState(false);
|
||||
const [revealed, setRevealed] = useRevealedMedia({ visible, sensitive });
|
||||
|
||||
const playerRef = useRef<HTMLDivElement>(null);
|
||||
const audioRef = useRef<HTMLAudioElement>(null);
|
||||
@@ -177,17 +179,6 @@ export const Audio: React.FC<{
|
||||
}
|
||||
}, [volume, muted, gainNodeRef]);
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof visible !== 'undefined') {
|
||||
setRevealed(visible);
|
||||
} else {
|
||||
setRevealed(
|
||||
displayMedia === 'show_all' ||
|
||||
(displayMedia !== 'hide_all' && !sensitive),
|
||||
);
|
||||
}
|
||||
}, [visible, sensitive]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!revealed) {
|
||||
pauseAudio();
|
||||
|
||||
@@ -10,6 +10,7 @@ import { useCurrentAccountId } from '@/mastodon/hooks/useAccountId';
|
||||
import type { Account } from '@/mastodon/models/account';
|
||||
import {
|
||||
addCollectionItem,
|
||||
collectionEditorActions,
|
||||
removeCollectionItem,
|
||||
} from '@/mastodon/reducers/slices/collections';
|
||||
import CloseIcon from '@/material-icons/400-24px/close.svg?react';
|
||||
@@ -23,6 +24,7 @@ import {
|
||||
} from '../collections/overview/created_by_account';
|
||||
|
||||
import { CollectionToggle } from './collection_toggle';
|
||||
import classes from './styles.module.scss';
|
||||
|
||||
const messages = defineMessages({
|
||||
close: {
|
||||
@@ -107,6 +109,23 @@ export const CollectionAdder: React.FC<{
|
||||
const account = useAppSelector((state) => state.accounts.get(accountId));
|
||||
const currentAccountId = useCurrentAccountId();
|
||||
const { collections, status } = useCollectionsCreatedBy(currentAccountId);
|
||||
const dispatch = useAppDispatch();
|
||||
|
||||
const handleNewCollection = useCallback(() => {
|
||||
if (account) {
|
||||
dispatch(
|
||||
collectionEditorActions.reset({
|
||||
account_id: account.id,
|
||||
state:
|
||||
account.feature_approval.current_user === 'manual'
|
||||
? 'pending'
|
||||
: 'accepted',
|
||||
}),
|
||||
);
|
||||
}
|
||||
|
||||
onClose();
|
||||
}, [account, dispatch, onClose]);
|
||||
|
||||
return (
|
||||
<div className='modal-root__modal dialog-modal'>
|
||||
@@ -155,12 +174,22 @@ export const CollectionAdder: React.FC<{
|
||||
/>
|
||||
}
|
||||
>
|
||||
<NewCollectionButton onClick={onClose} />
|
||||
<NewCollectionButton compact onClick={handleNewCollection} />
|
||||
</EmptyState>
|
||||
) : (
|
||||
collections.map((item) => (
|
||||
<ListItem key={item.id} collection={item} account={account} />
|
||||
))
|
||||
<>
|
||||
<div className={classes.newCollection}>
|
||||
<NewCollectionButton secondary onClick={handleNewCollection}>
|
||||
<FormattedMessage
|
||||
id='collections.create_new_collection'
|
||||
defaultMessage='Create new collection'
|
||||
/>
|
||||
</NewCollectionButton>
|
||||
</div>
|
||||
{collections.map((item) => (
|
||||
<ListItem key={item.id} collection={item} account={account} />
|
||||
))}
|
||||
</>
|
||||
)}
|
||||
</div>
|
||||
</div>
|
||||
|
||||
@@ -0,0 +1,3 @@
|
||||
.newCollection {
|
||||
padding: 16px;
|
||||
}
|
||||
@@ -1,7 +1,9 @@
|
||||
import type { ReactNode } from 'react';
|
||||
import { useEffect } from 'react';
|
||||
|
||||
import { FormattedMessage } from 'react-intl';
|
||||
|
||||
import classNames from 'classnames';
|
||||
import { Link } from 'react-router-dom';
|
||||
|
||||
import AddIcon from '@/material-icons/400-24px/add.svg?react';
|
||||
@@ -26,16 +28,23 @@ import {
|
||||
} from '../editor';
|
||||
import classes from '../styles.module.scss';
|
||||
|
||||
export const NewCollectionButton: React.FC<{ onClick?: () => void }> = ({
|
||||
onClick,
|
||||
}) => (
|
||||
export const NewCollectionButton: React.FC<{
|
||||
compact?: boolean;
|
||||
secondary?: boolean;
|
||||
onClick?: () => void;
|
||||
children?: ReactNode;
|
||||
}> = ({ compact, secondary, onClick, children }) => (
|
||||
<Link
|
||||
to='/collections/new'
|
||||
className='button button--compact'
|
||||
className={classNames(
|
||||
'button',
|
||||
compact && 'button--compact',
|
||||
secondary && 'button-secondary',
|
||||
)}
|
||||
onClick={onClick}
|
||||
>
|
||||
<Icon id='plus' icon={AddIcon} />
|
||||
<FormattedMessage {...editorMessages.newCollection} />
|
||||
{children ?? <FormattedMessage {...editorMessages.newCollection} />}
|
||||
</Link>
|
||||
);
|
||||
|
||||
@@ -103,7 +112,7 @@ export const CollectionsCreatedByAccount: React.FC = () => {
|
||||
/>
|
||||
}
|
||||
>
|
||||
<NewCollectionButton />
|
||||
<NewCollectionButton compact />
|
||||
</EmptyState>
|
||||
);
|
||||
} else {
|
||||
@@ -135,7 +144,7 @@ export const CollectionsCreatedByAccount: React.FC = () => {
|
||||
}}
|
||||
/>
|
||||
</h2>
|
||||
{showCreateButton && <NewCollectionButton />}
|
||||
{showCreateButton && <NewCollectionButton compact />}
|
||||
</div>
|
||||
<ItemList>
|
||||
{isOwnCollectionPage && !canCreateMoreCollections && (
|
||||
|
||||
@@ -468,7 +468,7 @@ export const CollapsibleNavigationPanel: React.FC = () => {
|
||||
x({ value }: { value: number }) {
|
||||
if (value === 0) {
|
||||
dispatch(openNavigation());
|
||||
} else if (isLtrDir ? value > 0 : value < 0) {
|
||||
} else if (value === OPEN_MENU_OFFSET) {
|
||||
dispatch(closeNavigation());
|
||||
}
|
||||
},
|
||||
@@ -508,6 +508,7 @@ export const CollapsibleNavigationPanel: React.FC = () => {
|
||||
},
|
||||
{
|
||||
from: () => [x.get(), 0],
|
||||
axis: 'x',
|
||||
filterTaps: true,
|
||||
bounds: isLtrDir ? { left: 0 } : { right: 0 },
|
||||
rubberband: true,
|
||||
|
||||
@@ -121,6 +121,7 @@ class SwitchingColumnsArea extends PureComponent {
|
||||
singleColumn: PropTypes.bool,
|
||||
layout: PropTypes.string.isRequired,
|
||||
forceOnboarding: PropTypes.bool,
|
||||
minimalShell: PropTypes.bool,
|
||||
};
|
||||
|
||||
componentDidMount () {
|
||||
@@ -158,7 +159,7 @@ class SwitchingColumnsArea extends PureComponent {
|
||||
};
|
||||
|
||||
render () {
|
||||
const { children, singleColumn, forceOnboarding } = this.props;
|
||||
const { children, singleColumn, forceOnboarding, minimalShell } = this.props;
|
||||
const { signedIn } = this.props.identity;
|
||||
const pathName = this.props.location.pathname;
|
||||
|
||||
@@ -185,7 +186,7 @@ class SwitchingColumnsArea extends PureComponent {
|
||||
|
||||
return (
|
||||
<ColumnsContextProvider multiColumn={!singleColumn}>
|
||||
<ColumnsArea ref={this.setRef} singleColumn={singleColumn} domain={domain} minimalShell={!signedIn && landingPage === 'overview' && pathName.startsWith('/overview')}>
|
||||
<ColumnsArea ref={this.setRef} singleColumn={singleColumn} domain={domain} minimalShell={minimalShell}>
|
||||
<WrappedSwitch>
|
||||
<Redirect from='/' to={{pathname: rootRedirect, state: {...this.props.location.state, focusTarget: false}}} exact />
|
||||
|
||||
@@ -651,6 +652,7 @@ class UI extends PureComponent {
|
||||
singleColumn={layout === 'mobile' || layout === 'single-column'}
|
||||
layout={layout}
|
||||
forceOnboarding={firstLaunch && newAccount}
|
||||
minimalShell={minimalShell}
|
||||
>
|
||||
{children}
|
||||
</SwitchingColumnsArea>
|
||||
|
||||
@@ -8,6 +8,7 @@ import { useSpring, animated, config } from '@react-spring/web';
|
||||
import { throttle } from 'lodash';
|
||||
|
||||
import type { DeployPictureInPictureCallback } from '@/mastodon/actions/picture_in_picture';
|
||||
import { useRevealedMedia } from '@/mastodon/hooks/useRevealedMedia';
|
||||
import Forward5Icon from '@/material-icons/400-24px/forward_5-fill.svg?react';
|
||||
import FullscreenIcon from '@/material-icons/400-24px/fullscreen.svg?react';
|
||||
import FullscreenExitIcon from '@/material-icons/400-24px/fullscreen_exit.svg?react';
|
||||
@@ -28,7 +29,7 @@ import {
|
||||
attachFullscreenListener,
|
||||
detachFullscreenListener,
|
||||
} from 'mastodon/features/ui/util/fullscreen';
|
||||
import { displayMedia, useBlurhash } from 'mastodon/initial_state';
|
||||
import { useBlurhash } from 'mastodon/initial_state';
|
||||
import { playerSettings } from 'mastodon/settings';
|
||||
|
||||
import { HotkeyIndicator } from './components/hotkey_indicator';
|
||||
@@ -214,7 +215,7 @@ export const Video: React.FC<{
|
||||
const [fullscreen, setFullscreen] = useState(false);
|
||||
const [hovered, setHovered] = useState(false);
|
||||
const [muted, setMuted] = useState(false);
|
||||
const [revealed, setRevealed] = useState(false);
|
||||
const [revealed, setRevealed] = useRevealedMedia({ visible, sensitive });
|
||||
const [hotkeyEvents, setHotkeyEvents] = useState<HotkeyEvent[]>([]);
|
||||
|
||||
const playerRef = useRef<HTMLDivElement>(null);
|
||||
@@ -362,17 +363,6 @@ export const Video: React.FC<{
|
||||
videoRef.current.muted = muted;
|
||||
}, [volume, muted]);
|
||||
|
||||
useEffect(() => {
|
||||
if (typeof visible !== 'undefined') {
|
||||
setRevealed(visible);
|
||||
} else {
|
||||
setRevealed(
|
||||
displayMedia === 'show_all' ||
|
||||
(displayMedia !== 'hide_all' && !sensitive),
|
||||
);
|
||||
}
|
||||
}, [visible, sensitive]);
|
||||
|
||||
useEffect(() => {
|
||||
if (!revealed && videoRef.current) {
|
||||
videoRef.current.pause();
|
||||
@@ -829,7 +819,7 @@ export const Video: React.FC<{
|
||||
role='button'
|
||||
tabIndex={0}
|
||||
aria-label={alt}
|
||||
title={alt}
|
||||
title={fullscreen ? undefined : alt}
|
||||
lang={lang}
|
||||
onClick={handleClick}
|
||||
onKeyDownCapture={handleVideoKeyDown}
|
||||
|
||||
@@ -24,5 +24,6 @@ export function useMergedRefs<T>(...refs: React.Ref<T>[]) {
|
||||
},
|
||||
[refs],
|
||||
);
|
||||
// eslint-disable-next-line react-hooks/immutability
|
||||
return setRef;
|
||||
}
|
||||
@@ -1,29 +1,25 @@
|
||||
import { useEffect, useRef } from 'react';
|
||||
import { useEffect, useState } from 'react';
|
||||
|
||||
export function useResizeObserver(callback: ResizeObserverCallback) {
|
||||
const observerRef = useRef<ResizeObserver>(null);
|
||||
observerRef.current ??= new ResizeObserver(callback);
|
||||
const [observer] = useState(() => new ResizeObserver(callback));
|
||||
|
||||
useEffect(() => {
|
||||
const observer = observerRef.current;
|
||||
return () => {
|
||||
observer?.disconnect();
|
||||
observer.disconnect();
|
||||
};
|
||||
}, []);
|
||||
}, [observer]);
|
||||
|
||||
return observerRef.current;
|
||||
return observer;
|
||||
}
|
||||
|
||||
export function useMutationObserver(callback: MutationCallback) {
|
||||
const observerRef = useRef<MutationObserver>(null);
|
||||
observerRef.current ??= new MutationObserver(callback);
|
||||
const [observer] = useState(() => new MutationObserver(callback));
|
||||
|
||||
useEffect(() => {
|
||||
const observer = observerRef.current;
|
||||
return () => {
|
||||
observer?.disconnect();
|
||||
observer.disconnect();
|
||||
};
|
||||
}, []);
|
||||
}, [observer]);
|
||||
|
||||
return observerRef.current;
|
||||
return observer;
|
||||
}
|
||||
@@ -213,6 +213,7 @@ export function useOverflowObservers({
|
||||
// Watch the wrapper for size changes, and recalculate when it resizes.
|
||||
const wrapperRef = useRef<HTMLElement>(null);
|
||||
const wrapperRefCallback = useCallback(
|
||||
// eslint-disable-next-line react-hooks/immutability
|
||||
(node: HTMLElement | null) => {
|
||||
if (node) {
|
||||
wrapperRef.current = node; // eslint-disable-line react-hooks/immutability -- https://github.com/facebook/react/issues/34955
|
||||
@@ -229,6 +230,7 @@ export function useOverflowObservers({
|
||||
|
||||
// If there are changes to the children, recalculate which are visible.
|
||||
const listRefCallback = useCallback(
|
||||
// eslint-disable-next-line react-hooks/immutability
|
||||
(node: HTMLElement | null) => {
|
||||
if (node) {
|
||||
listRef.current = node;
|
||||
|
||||
@@ -0,0 +1,33 @@
|
||||
import { useState } from 'react';
|
||||
|
||||
import { displayMedia } from 'mastodon/initial_state';
|
||||
|
||||
interface RevealedMediaProps {
|
||||
visible?: boolean;
|
||||
sensitive?: boolean;
|
||||
}
|
||||
|
||||
function getRevealedState({ visible, sensitive }: RevealedMediaProps) {
|
||||
if (typeof visible !== 'undefined') {
|
||||
return visible;
|
||||
} else {
|
||||
return (
|
||||
displayMedia === 'show_all' || (displayMedia !== 'hide_all' && !sensitive)
|
||||
);
|
||||
}
|
||||
}
|
||||
|
||||
export function useRevealedMedia({ visible, sensitive }: RevealedMediaProps) {
|
||||
const [revealed, setRevealed] = useState(() =>
|
||||
getRevealedState({ visible, sensitive }),
|
||||
);
|
||||
|
||||
// Update `revealed` state when `sensitive` or `visible` props change
|
||||
const [previous, setPrevious] = useState({ visible, sensitive });
|
||||
if (sensitive !== previous.sensitive || visible !== previous.visible) {
|
||||
setRevealed(getRevealedState({ visible, sensitive }));
|
||||
setPrevious({ visible, sensitive });
|
||||
}
|
||||
|
||||
return [revealed, setRevealed] as const;
|
||||
}
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Základní údaje",
|
||||
"collections.create.steps": "Krok {step}/{total}",
|
||||
"collections.create_collection": "Vytvořit kolekci",
|
||||
"collections.create_new_collection": "Vytvorit novou kolekci",
|
||||
"collections.delete_collection": "Smazat kolekci",
|
||||
"collections.description_length_hint": "Nejvýše 100 znaků",
|
||||
"collections.detail.author_added_you_on_date": "{author} tě přidal dne {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Grundlæggende oplysninger",
|
||||
"collections.create.steps": "Trin {step}/{total}",
|
||||
"collections.create_collection": "Opret samling",
|
||||
"collections.create_new_collection": "Opret ny samling",
|
||||
"collections.delete_collection": "Slet samling",
|
||||
"collections.description_length_hint": "Begrænset til 100 tegn",
|
||||
"collections.detail.author_added_you_on_date": "{author} tilføjede dig {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Allgemeine Informationen",
|
||||
"collections.create.steps": "Schritt {step}/{total}",
|
||||
"collections.create_collection": "Sammlung erstellen",
|
||||
"collections.create_new_collection": "Neue Sammlung erstellen",
|
||||
"collections.delete_collection": "Sammlung löschen",
|
||||
"collections.description_length_hint": "Maximal 100 Zeichen",
|
||||
"collections.detail.author_added_you_on_date": "{author} fügte dich am {date} hinzu",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Basic details",
|
||||
"collections.create.steps": "Step {step}/{total}",
|
||||
"collections.create_collection": "Create collection",
|
||||
"collections.create_new_collection": "Create new collection",
|
||||
"collections.delete_collection": "Delete collection",
|
||||
"collections.description_length_hint": "100 characters limit",
|
||||
"collections.detail.author_added_you_on_date": "{author} added you on {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Detalles básicos",
|
||||
"collections.create.steps": "Paso {step}/{total}",
|
||||
"collections.create_collection": "Crear colección",
|
||||
"collections.create_new_collection": "Crear una colección nueva",
|
||||
"collections.delete_collection": "Eliminar colección",
|
||||
"collections.description_length_hint": "Límite de 100 caracteres",
|
||||
"collections.detail.author_added_you_on_date": "{author} te agregó el {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Detalles básicos",
|
||||
"collections.create.steps": "Paso {step}/{total}",
|
||||
"collections.create_collection": "Crear colección",
|
||||
"collections.create_new_collection": "Crear nueva colección",
|
||||
"collections.delete_collection": "Eliminar colección",
|
||||
"collections.description_length_hint": "Limitado a 100 caracteres",
|
||||
"collections.detail.author_added_you_on_date": "{author} te agregó el {date}",
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
"account.follows.empty": "Este usuario todavía no sigue a nadie.",
|
||||
"account.follows_you": "Te sigue",
|
||||
"account.go_to_profile": "Ir al perfil",
|
||||
"account.hame.invalid_handle": "Alias no disponible",
|
||||
"account.hide_reblogs": "Ocultar impulsos de @{name}",
|
||||
"account.in_memoriam": "Cuenta conmemorativa.",
|
||||
"account.join_modal.day": "Día",
|
||||
@@ -98,6 +99,7 @@
|
||||
"account.menu.mute": "Silenciar cuenta",
|
||||
"account.menu.note.description": "Visible sólo para ti",
|
||||
"account.menu.open_original_page": "Ver en {domain}",
|
||||
"account.menu.open_original_page_no_domain": "Ver en el servidor original",
|
||||
"account.menu.remove_follower": "Eliminar seguidor",
|
||||
"account.menu.report": "Denunciar cuenta",
|
||||
"account.menu.share": "Compartir…",
|
||||
@@ -116,6 +118,8 @@
|
||||
"account.name.help.domain_self": "{domain} es tu servidor que aloja tu perfil y publicaciones.",
|
||||
"account.name.help.footer": "De la misma manera que puedes enviar correos electrónicos a personas usando diferentes proveedores de correo electrónico, puedes interactuar con personas en otros servidores de Mastodon, y con cualquiera en otras aplicaciones del Fediverso.",
|
||||
"account.name.help.header": "Un alias es como una dirección de correo electrónico",
|
||||
"account.name.help.invalid_explanation": "Esto puede ocurrir cuando un usuario cambia su nombre de usuario, normalmente es temporal. Si persiste, puede deberse a un servidor no disponible o a alguna configuración errónea del mismo.",
|
||||
"account.name.help.invalid_header": "El alias de este usuario se está actualizando",
|
||||
"account.name.help.username": "{username} es el nombre de usuario de esta cuenta en su servidor. Alguien en otro servidor puede tener el mismo nombre de usuario.",
|
||||
"account.name.help.username_self": "{username} es tu nombre de usuario en este servidor. Alguien en otro servidor puede tener el mismo nombre de usuario.",
|
||||
"account.name_info": "¿Qué significa esto?",
|
||||
|
||||
@@ -423,8 +423,6 @@
|
||||
"collections.sensitive": "حسّاس",
|
||||
"collections.share_short": "همرسانی",
|
||||
"collections.sort_alphabetical": "الفبایی",
|
||||
"collections.sort_by": "",
|
||||
"collections.sort_date_added": "",
|
||||
"collections.sort_last_active": "آخرین فعالیت",
|
||||
"collections.suggestions.can_not_add": "نمیتوان افزود",
|
||||
"collections.suggestions.can_not_add_desc": "ممکن است این حسابها از کشف خارج شده باشند یا روی کارسازی باشند که از مجموعهها پشتیبانی نمیکند.",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Informations générales",
|
||||
"collections.create.steps": "Étape {step}/{total}",
|
||||
"collections.create_collection": "Créer une collection",
|
||||
"collections.create_new_collection": "Créer une collection",
|
||||
"collections.delete_collection": "Supprimer la collection",
|
||||
"collections.description_length_hint": "Maximum 100 caractères",
|
||||
"collections.detail.author_added_you_on_date": "{author} vous a ajouté·e le {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Informations générales",
|
||||
"collections.create.steps": "Étape {step}/{total}",
|
||||
"collections.create_collection": "Créer une collection",
|
||||
"collections.create_new_collection": "Créer une collection",
|
||||
"collections.delete_collection": "Supprimer la collection",
|
||||
"collections.description_length_hint": "Maximum 100 caractères",
|
||||
"collections.detail.author_added_you_on_date": "{author} vous a ajouté·e le {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Sonraí bunúsacha",
|
||||
"collections.create.steps": "Céim {step}/{total}",
|
||||
"collections.create_collection": "Cruthaigh bailiúchán",
|
||||
"collections.create_new_collection": "Cruthaigh bailiúchán nua",
|
||||
"collections.delete_collection": "Scrios bailiúchán",
|
||||
"collections.description_length_hint": "Teorainn 100 carachtar",
|
||||
"collections.detail.author_added_you_on_date": "Chuir {author} leis thú ar {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Detalles básicos",
|
||||
"collections.create.steps": "Paso {step}/{total}",
|
||||
"collections.create_collection": "Crear colección",
|
||||
"collections.create_new_collection": "Crear unha nova colección",
|
||||
"collections.delete_collection": "Eliminar colección",
|
||||
"collections.description_length_hint": "Límite de 100 caracteres",
|
||||
"collections.detail.author_added_you_on_date": "{author} engadiute o {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "פרטים בסיסיים",
|
||||
"collections.create.steps": "צעד {step} מתוך {total}",
|
||||
"collections.create_collection": "יצירת אוסף",
|
||||
"collections.create_new_collection": "יצירת אוסף חדש",
|
||||
"collections.delete_collection": "מחיקת האוסף",
|
||||
"collections.description_length_hint": "מגבלה של 100 תווים",
|
||||
"collections.detail.author_added_you_on_date": "{author} הוסיפו אותך בתאריך {date}",
|
||||
|
||||
@@ -67,6 +67,7 @@
|
||||
"account.follows.empty": "Ez a felhasználó még senkit sem követ.",
|
||||
"account.follows_you": "Követ téged",
|
||||
"account.go_to_profile": "Ugrás a profilhoz",
|
||||
"account.hame.invalid_handle": "A fióknév nem érhető el",
|
||||
"account.hide_reblogs": "@{name} megtolásainak elrejtése",
|
||||
"account.in_memoriam": "Emlékünkben.",
|
||||
"account.join_modal.day": "Nap",
|
||||
@@ -98,6 +99,7 @@
|
||||
"account.menu.mute": "Fiók némítása",
|
||||
"account.menu.note.description": "Csak te láthatod",
|
||||
"account.menu.open_original_page": "Megtekintés itt: {domain}",
|
||||
"account.menu.open_original_page_no_domain": "Megtekintés az eredeti kiszolgálón",
|
||||
"account.menu.remove_follower": "Követő eltávolítása",
|
||||
"account.menu.report": "Fiók jelentése",
|
||||
"account.menu.share": "Megosztás…",
|
||||
@@ -116,6 +118,8 @@
|
||||
"account.name.help.domain_self": "A(z) {domain} a kiszolgáló, amely a profilodat és bejegyzéseidet szolgáltatja.",
|
||||
"account.name.help.footer": "Ahogy küldhetsz e-mailt annak is, aki más e-mail-szolgáltatót használ, úgy kapcsolatba léphetsz a más Mastodon-kiszolgálókon lévő emberekkel és bárki mással, aki más Födiverzum-alkalmazást használ.",
|
||||
"account.name.help.header": "A fióknév olyan, mint egy e-mail-cím",
|
||||
"account.name.help.invalid_explanation": "Ez akkor történhet, ha egy felhasználó megváltoztatja a felhasználónevét, és általában ideiglenes. Ha továbbra is fennáll, akkor ez egy el nem érhető vagy hibásan beállított kiszolgáló miatt lehet.",
|
||||
"account.name.help.invalid_header": "A felhasználó fiókneve frissül",
|
||||
"account.name.help.username": "{username} a fiók felhasználóneve a kiszolgálóján. Lehet, hogy másnak egy másik kiszolgálón ugyanez a felhasználóneve.",
|
||||
"account.name.help.username_self": "{username} a felhasználóneved ezen a kiszolgálón. Lehet, hogy másnak egy másik kiszolgálón ugyanez a felhasználóneve.",
|
||||
"account.name_info": "Mit jelent ez?",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Grunnupplýsingar",
|
||||
"collections.create.steps": "Skref {step}/{total}",
|
||||
"collections.create_collection": "Búa til safn",
|
||||
"collections.create_new_collection": "Búa til nýtt safn",
|
||||
"collections.delete_collection": "Eyða safni",
|
||||
"collections.description_length_hint": "100 stafa takmörk",
|
||||
"collections.detail.author_added_you_on_date": "{author} bætti þér við þann {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Dettagli di base",
|
||||
"collections.create.steps": "Step {step}/{total}",
|
||||
"collections.create_collection": "Crea la collezione",
|
||||
"collections.create_new_collection": "Crea una nuova collezione",
|
||||
"collections.delete_collection": "Cancella la collezione",
|
||||
"collections.description_length_hint": "Limite di 100 caratteri",
|
||||
"collections.detail.author_added_you_on_date": "{author} ti ha aggiunto/a in data: {date}",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Basisgegevens",
|
||||
"collections.create.steps": "Stap {step}/{total}",
|
||||
"collections.create_collection": "Verzameling aanmaken",
|
||||
"collections.create_new_collection": "Nieuwe verzameling aanmaken",
|
||||
"collections.delete_collection": "Verzameling verwijderen",
|
||||
"collections.description_length_hint": "Maximaal 100 karakters",
|
||||
"collections.detail.author_added_you_on_date": "{author} heeft je op {date} toegevoegd",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Temel bilgiler",
|
||||
"collections.create.steps": "Adım {step}/{total}",
|
||||
"collections.create_collection": "Koleksiyon oluştur",
|
||||
"collections.create_new_collection": "Yeni koleksiyon oluştur",
|
||||
"collections.delete_collection": "Koleksiyonu sil",
|
||||
"collections.description_length_hint": "100 karakterle sınırlı",
|
||||
"collections.detail.author_added_you_on_date": "{author}, sizi {date} tarihinde ekledi",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "Thông tin cơ bản",
|
||||
"collections.create.steps": "Bước {step}/{total}",
|
||||
"collections.create_collection": "Tạo gói khởi đầu",
|
||||
"collections.create_new_collection": "Tạo gói khởi đầu mới",
|
||||
"collections.delete_collection": "Xóa gói khởi đầu",
|
||||
"collections.description_length_hint": "Giới hạn 100 ký tự",
|
||||
"collections.detail.author_added_you_on_date": "{author} đã thêm bạn vào {date}",
|
||||
|
||||
@@ -118,7 +118,7 @@
|
||||
"account.name.help.domain_self": "{domain} 是托管你的个人资料及嘟文的服务器。",
|
||||
"account.name.help.footer": "就像你可以用不同的电子邮箱向其他人发送同样的电子邮件一般,你也可以和其他 Mastodon 服务器上的用户互动,甚至还能和与其他联邦宇宙软件上的任何人互动。",
|
||||
"account.name.help.header": "用户名类似电子邮件地址",
|
||||
"account.name.help.invalid_explanation": "当用户更改用户名时可能会发生这种情况,且通常是临时性的。如果这种情况持续存在,可能是由于服务器不可用或是相应服务器侧出现了配置错误。",
|
||||
"account.name.help.invalid_explanation": "当用户更改用户名时可能会发生这种情况,且通常是临时现象。如果这种情况持续存在,可能是由于对方服务器不可用或是相应服务器侧出现了配置错误。",
|
||||
"account.name.help.invalid_header": "此用户的用户名正在更新",
|
||||
"account.name.help.username": "{username} 是此账号在其服务器上的用户名。另一个服务器上的其他人可能拥有相同的用户名。",
|
||||
"account.name.help.username_self": "{username} 是你在此服务器上的用户名。另一个服务器上的其他人可能拥有相同的用户名。",
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "基本信息",
|
||||
"collections.create.steps": "第 {step} 步(共 {total} 步)",
|
||||
"collections.create_collection": "创建收藏列表",
|
||||
"collections.create_new_collection": "新建收藏列表",
|
||||
"collections.delete_collection": "删除收藏列表",
|
||||
"collections.description_length_hint": "100字限制",
|
||||
"collections.detail.author_added_you_on_date": "{author} 于 {date} 将你加入",
|
||||
|
||||
@@ -395,6 +395,7 @@
|
||||
"collections.create.basic_details_title": "基本資料",
|
||||
"collections.create.steps": "步驟 {step}/{total}",
|
||||
"collections.create_collection": "建立收藏名單",
|
||||
"collections.create_new_collection": "建立收藏名單",
|
||||
"collections.delete_collection": "刪除收藏名單",
|
||||
"collections.description_length_hint": "100 字限制",
|
||||
"collections.detail.author_added_you_on_date": "{author} 於 {date} 將您加入",
|
||||
@@ -917,7 +918,7 @@
|
||||
"navigation_bar.direct": "私訊",
|
||||
"navigation_bar.domain_blocks": "已封鎖網域",
|
||||
"navigation_bar.favourites": "最愛",
|
||||
"navigation_bar.filters": "已靜音的關鍵字",
|
||||
"navigation_bar.filters": "已靜音關鍵字",
|
||||
"navigation_bar.follow_requests": "跟隨請求",
|
||||
"navigation_bar.followed_tags": "主題標籤",
|
||||
"navigation_bar.follows_and_followers": "跟隨中與跟隨者",
|
||||
@@ -929,7 +930,7 @@
|
||||
"navigation_bar.main": "主要",
|
||||
"navigation_bar.moderation": "站務",
|
||||
"navigation_bar.more": "更多",
|
||||
"navigation_bar.mutes": "已靜音的使用者",
|
||||
"navigation_bar.mutes": "已靜音使用者",
|
||||
"navigation_bar.opened_in_classic_interface": "預設於經典網頁介面中開啟嘟文、帳號與其他特定頁面。",
|
||||
"navigation_bar.preferences": "偏好設定",
|
||||
"navigation_bar.privacy_and_reach": "隱私權與觸及",
|
||||
|
||||
@@ -111,8 +111,11 @@ const collectionSlice = createSlice({
|
||||
items: getEditorCollectionItems(collection.items),
|
||||
};
|
||||
},
|
||||
reset(state) {
|
||||
state.editor = initialCollectionState.editor;
|
||||
reset(state, action: PayloadAction<EditorCollectionItem | undefined>) {
|
||||
state.editor =
|
||||
action.payload !== undefined
|
||||
? { ...initialCollectionState.editor, items: [action.payload] }
|
||||
: initialCollectionState.editor;
|
||||
},
|
||||
updateEditorField<K extends keyof EditorState>(
|
||||
state: CollectionState,
|
||||
|
||||
@@ -8259,6 +8259,10 @@ noscript {
|
||||
justify-content: center;
|
||||
align-items: center;
|
||||
|
||||
img {
|
||||
user-select: none;
|
||||
}
|
||||
|
||||
&.dragging {
|
||||
cursor: grabbing;
|
||||
}
|
||||
@@ -8270,7 +8274,7 @@ noscript {
|
||||
transform: translate(-50%, -50%);
|
||||
border: 2px solid var(--color-text-on-media);
|
||||
border-radius: 50%;
|
||||
box-shadow: 0 0 0 9999em var(--color-shadow-primary);
|
||||
box-shadow: 0 0 0 9999em rgb(from black r g b / 25%);
|
||||
pointer-events: none;
|
||||
}
|
||||
}
|
||||
@@ -8735,6 +8739,7 @@ noscript {
|
||||
bottom: 20px;
|
||||
inset-inline-end: 20px;
|
||||
width: 300px;
|
||||
background-color: var(--color-bg-primary);
|
||||
box-shadow: var(--dropdown-shadow);
|
||||
|
||||
&__footer {
|
||||
|
||||
@@ -18,7 +18,12 @@ class Admin::Metrics::Dimension::BaseDimension
|
||||
@params = params
|
||||
@loaded = false
|
||||
|
||||
@start_at = [@start_at, @end_at - 2.years].max if @start_at.present? && @end_at.present?
|
||||
if @start_at.present? && @end_at.present?
|
||||
@start_at = [@start_at, @end_at - 2.years].max
|
||||
else
|
||||
@start_at = nil
|
||||
@end_at = nil
|
||||
end
|
||||
end
|
||||
|
||||
def key
|
||||
|
||||
@@ -12,12 +12,17 @@ class Admin::Metrics::Measure::BaseMeasure
|
||||
alias loaded? loaded
|
||||
|
||||
def initialize(start_at, end_at, params)
|
||||
@start_at = start_at.to_datetime
|
||||
@end_at = end_at.to_datetime
|
||||
@start_at = start_at&.to_datetime
|
||||
@end_at = end_at&.to_datetime
|
||||
@params = params
|
||||
@loaded = false
|
||||
|
||||
@start_at = [@start_at, @end_at - 2.years].max
|
||||
if @start_at.present? && @end_at.present?
|
||||
@start_at = [@start_at, @end_at - 2.years].max
|
||||
else
|
||||
@start_at = nil
|
||||
@end_at = nil
|
||||
end
|
||||
end
|
||||
|
||||
def cache_key
|
||||
|
||||
@@ -61,6 +61,8 @@ class Webfinger
|
||||
raise Webfinger::Error, "Invalid JSON in response for #{@uri}"
|
||||
rescue Addressable::URI::InvalidURIError
|
||||
raise Webfinger::Error, "Invalid URI for #{@uri}"
|
||||
rescue *Mastodon::HTTP_CONNECTION_ERRORS => e
|
||||
raise Webfinger::Error, "Error performing webfinger query for #{@uri}: #{e}"
|
||||
end
|
||||
|
||||
private
|
||||
|
||||
@@ -66,7 +66,7 @@ class RemoteFollow
|
||||
|
||||
def acct_resource
|
||||
@acct_resource ||= Webfinger.new("acct:#{acct}").perform
|
||||
rescue Webfinger::Error, *Mastodon::HTTP_CONNECTION_ERRORS
|
||||
rescue Webfinger::Error
|
||||
nil
|
||||
end
|
||||
|
||||
|
||||
@@ -84,9 +84,10 @@ be:
|
||||
credential_flow_not_configured: Resource Owner Password Credentials flow не прайшоў з-за таго, што ўласцівасць Doorkeeper.configure.resource_owner_from_credentials была не вызначана.
|
||||
invalid_client: Збой аўтэнтыфікацыі кліента з-за невядомага кліента, адсутнасці аўтэнтыфікацыі кліента або метаду аўтэнтыфікацыі, які не падтрымліваецца.
|
||||
invalid_code_challenge_method:
|
||||
few: code_challenge_method павінен быць адным з %{challenge_methods}.
|
||||
many: code_challenge_method павінен быць адным з %{challenge_methods}.
|
||||
one: code_challenge_method павінен быць %{challenge_methods}.
|
||||
other: code_challenge_method павінен быць адным з %{challenge_methods}.
|
||||
zero: Сервер аўтарызацыі не падтрымлівае PKCE, паколькі няма прынятых значэнняў у code_challenge_method.
|
||||
invalid_grant: Прадастаўлены дазвол на аўтарызацыю несапраўдны, пратэрмінованы, быў адкліканы, не адпавядае URI перанакіравання, які выкарыстоўваецца ў запыце аўтарызацыі або быў выдадзены іншаму кліенту.
|
||||
invalid_redirect_uri: Прадстаўлены URI перанакіравання не сапраўдны.
|
||||
invalid_request:
|
||||
|
||||
@@ -84,9 +84,10 @@ cs:
|
||||
credential_flow_not_configured: Proud Resource Owner Password Credentials selhal, protože Doorkeeper.configure.resource_owner_from_credentials nebylo nakonfigurováno.
|
||||
invalid_client: Ověření klienta selhalo kvůli neznámému klientovi, chybějící klientské autentizaci či nepodporované autentizační metodě.
|
||||
invalid_code_challenge_method:
|
||||
few: code_challenge_method musí být jedna z %{challenge_methods}.
|
||||
many: code_challenge_method musí být jedna z %{challenge_methods}.
|
||||
one: code_challenge_method musí být %{challenge_methods}.
|
||||
other: code_challenge_method musí být jedna z %{challenge_methods}.
|
||||
zero: Autorizační server nepodporuje PKCE, protože neexistují žádné akceptované hodnoty kode_challenge_method.
|
||||
invalid_grant: Poskytnuté oprávnění je neplatné, vypršela jeho platnost, bylo odvoláno, neshoduje se s URI přesměrování použitým v požadavku o autorizaci, nebo bylo uděleno jinému klientu.
|
||||
invalid_redirect_uri: Zahrnutá přesměrovací URI není platná.
|
||||
invalid_request:
|
||||
|
||||
@@ -83,10 +83,6 @@ cy:
|
||||
access_denied: Mae perchennog yr adnodd neu'r gweinydd awdurdodi wedi atal y cais.
|
||||
credential_flow_not_configured: Llif meini prawf cyfrinair perchennog yr adnodd wedi methu achos fod Doorkeeper.configure.resource_owner_from_credentials heb ei ffurfweddu.
|
||||
invalid_client: Methodd dilysu cleient oherwydd cleient anhysbys, dim dilysiad cleient wedi'i gynnwys, neu ddull dilysu heb ei gefnogi.
|
||||
invalid_code_challenge_method:
|
||||
one: Rhaid i'r code_challenge_method fod yn %{challenge_methods}.
|
||||
other: Rhaid i'r code_challenge_method fod yn un o %{challenge_methods}.
|
||||
zero: Nid yw'r gweinydd awdurdodi yn cefnogi PKCE gan nad oes unrhyw werthoedd code_challenge_method wedi'u derbyn.
|
||||
invalid_grant: Mae'r grant awdurdodi ar yr amod yn annilys, wedi dod i ben, wedi'i ddirymu, nid yw'n cyfateb i'r URI ailgyfeirio a ddefnyddiwyd yn y cais am awdurdodiad, neu wedi'i roi i gleient arall.
|
||||
invalid_redirect_uri: Nid yw'r uri ailgyfeirio a gynhwysir yn ddilys.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ da:
|
||||
invalid_code_challenge_method:
|
||||
one: code_challenge_method skal være %{challenge_methods}.
|
||||
other: code_challenge_method skal være en af %{challenge_methods}.
|
||||
zero: Autorisationsserveren understøtter ikke PKCE, da der ikke er nogen accepterede code_challenge_method-værdier.
|
||||
invalid_grant: Den leverede godkendelse er ugyldig, udløbet, ophævet, matcher ikke omdirigerings-URI'en brugt i godkendelsesanmodningen eller er udstedt til en anden klient.
|
||||
invalid_redirect_uri: Inkluderede ormdirigerings-URI er ugyldig.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ de:
|
||||
invalid_code_challenge_method:
|
||||
one: Die code_challenge_method muss %{challenge_methods} sein.
|
||||
other: Die code_challenge_method muss eine von %{challenge_methods} sein.
|
||||
zero: Der Berechtigungsserver unterstützt PKCE nicht, da keine akzeptierten code_challenge_method Werte vorhanden sind.
|
||||
invalid_grant: Die beigefügte Autorisierung ist ungültig, abgelaufen, wurde widerrufen oder einem anderen Client ausgestellt, oder der Weiterleitungs-URI stimmt nicht mit der Autorisierungs-Anfrage überein.
|
||||
invalid_redirect_uri: Der beigefügte Weiterleitungs-URI ist ungültig.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ el:
|
||||
invalid_code_challenge_method:
|
||||
one: Το code_challenge_method πρέπει να είναι %{challenge_methods}.
|
||||
other: Το code_challenge_method πρέπει να είναι ένα από %{challenge_methods}.
|
||||
zero: Ο διακομιστής εξουσιοδότησης δεν υποστηρίζει PKCE καθώς δεν υπάρχουν αποδεκτές τιμές code_challenge_method.
|
||||
invalid_grant: Η άδεια πιστοποίησης που δόθηκε είναι άκυρη, ληγμένη, έχει ανακληθεί, δεν συμφωνεί με το URI ανακατεύθυνσης που δόθηκε στο αίτημα πιστοποίησης ή εκδόθηκε προς άλλο πελάτη.
|
||||
invalid_redirect_uri: Το uri ανακατεύθυνσης που δόθηκε δεν είναι έγκυρο.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ en-GB:
|
||||
invalid_code_challenge_method:
|
||||
one: The code_challenge_method must be %{challenge_methods}.
|
||||
other: The code_challenge_method must be one of %{challenge_methods}.
|
||||
zero: The authorisation server does not support PKCE as there are no accepted code_challenge_method values.
|
||||
invalid_grant: The provided authorisation grant is invalid, expired, revoked, does not match the redirection URI used in the authorisation request, or was issued to another client.
|
||||
invalid_redirect_uri: The redirect URI included is not valid.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ es-AR:
|
||||
invalid_code_challenge_method:
|
||||
one: "«code_challenge_method» debe ser %{challenge_methods}."
|
||||
other: "«code_challenge_method» debe ser uno de %{challenge_methods}."
|
||||
zero: El servidor de autorización no es compatible con PKCE, ya que no hay valores aceptados de «code_challenge_method».
|
||||
invalid_grant: La concesión de autorización ofrecida no es válida, venció, se revocó, no coincide con la dirección web de redireccionamiento usada en la petición de autorización, o fue emitida para otro cliente.
|
||||
invalid_redirect_uri: La dirección web de redireccionamiento incluida no es válida.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ es-MX:
|
||||
invalid_code_challenge_method:
|
||||
one: El code_challenge_method debe ser %{challenge_methods}.
|
||||
other: El code_challenge_method debe ser uno de %{challenge_methods}.
|
||||
zero: El servidor de autorización no admite PKCE, ya que no hay valores code_challenge_method aceptados.
|
||||
invalid_grant: La concesión de autorización ofrecida es inválida, venció, se revocó, no coincide con la URI de redirección utilizada en la petición de autorización, o fue emitida para otro cliente.
|
||||
invalid_redirect_uri: La URI de redirección incluida no es válida.
|
||||
invalid_request:
|
||||
|
||||
@@ -84,9 +84,8 @@ es:
|
||||
credential_flow_not_configured: Las credenciales de contraseña del propietario del recurso falló debido a que Doorkeeper.configure.resource_owner_from_credentials está sin configurar.
|
||||
invalid_client: La autentificación del cliente falló debido o a que es un cliente desconocido o no está incluida la autentificación del cliente o el método de autentificación no está confirmado.
|
||||
invalid_code_challenge_method:
|
||||
one: El code_challenge_method debe ser %{challenge_methods}.
|
||||
other: El code_challenge_method debe ser uno de %{challenge_methods}.
|
||||
zero: El servidor de autorización no soporta PKCE, ya que no hay valores aceptados de code_challenge_method.
|
||||
one: El code_challenge_method tiene que ser %{challenge_methods}.
|
||||
other: El code_challenge_method tiene que ser uno entre %{challenge_methods}.
|
||||
invalid_grant: La concesión de autorización ofrecida es inválida, venció, se revocó, no coincide con la URI de redirección utilizada en la petición de autorización, o fue emitida para otro cliente.
|
||||
invalid_redirect_uri: La URI de redirección incluida no es válida.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ et:
|
||||
invalid_code_challenge_method:
|
||||
one: "„code_challenge_method“ meetod peab olema selline: %{challenge_methods}."
|
||||
other: "„code_challenge_method“ meetod peab olema üks neist: %{challenge_methods}."
|
||||
zero: Kuna sobilikke „code_challenge_method“ meetodi väärtusi ei leidu, siis autentimisserver ei toeta PKCE-d.
|
||||
invalid_grant: Antud autoriseerimisluba on vale, aegunud, tagasi võetud, ei kattu kasutatud ümbersuunamise URLid või oli antud teisele kliendile.
|
||||
invalid_redirect_uri: Antud ümbersuunamise URL ei ole õige.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ fa:
|
||||
invalid_code_challenge_method:
|
||||
one: مقدار code_challenge_method باید %{challenge_methods} باشد.
|
||||
other: مقدار code_challenge_method باید یکی از %{challenge_methods} باشد.
|
||||
zero: کارساز تأیید از PKCE پشتیبانی نمیکند و مقدار code_challenge_method پذیرفتهای وجود ندارد.
|
||||
invalid_grant: اعطای دسترسی فراهم شده نامعتبر، منقضی یا نامطابق با نشانی بازگشت استفادهشده در درخواست تأیید هویت بوده و یا برای کارخواهی دیگر صادر شده است.
|
||||
invalid_redirect_uri: نشانی بازگشت موجود، معتبر نیست.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ fi:
|
||||
invalid_code_challenge_method:
|
||||
one: Muuttujan code_challenge_method arvon on oltava %{challenge_methods}.
|
||||
other: 'Muuttujan code_challenge_method arvon on oltava jokin seuraavista: %{challenge_methods}.'
|
||||
zero: Valtuutuspalvelin ei tue PKCE:tä, koska hyväksyttäviä code_challenge_method-arvoja ei ole.
|
||||
invalid_grant: Valtuutuslupa on virheellinen, vanhentunut, peruttu, valtuutuspyynnössä käytettyä uudelleenohjaus-URI:tä vastaamaton tai myönnetty toiselle asiakkaalle.
|
||||
invalid_redirect_uri: Uudelleenohjaus-URI on virheellinen.
|
||||
invalid_request:
|
||||
|
||||
@@ -83,10 +83,6 @@ fo:
|
||||
access_denied: Tilfarseigarin ella váttanarambætarin noktaðu umbønina.
|
||||
credential_flow_not_configured: Resource Owner Password Credentials floymurin eydnaðist ikki. Orsøkin var, at Doorkeeper.configure.resource_owner_from_credentials var ikki sett upp.
|
||||
invalid_client: Viðskiftaraváttan miseydnaðist. Orsøkin var ein ókendur viðskiftari, at eingin viðskiftaraváttan var við ella at váttanarmannagongdin er ókend.
|
||||
invalid_code_challenge_method:
|
||||
one: Code_challenge_method má vera %{challenge_methods}.
|
||||
other: Code_challenge_method má vera ein av %{challenge_methods}.
|
||||
zero: Váttanarambætarin stuðlar ikki uppundir PKCE av tí at tað eru eingi góðkend code_challenge_method virði.
|
||||
invalid_grant: Veitta váttanarheimildin er antin ógildug, útgingin, tikin aftur, samsvarar ikki við endursendingar-URI'ið, sum bleiv brúkt í váttanarumbønini ella var flýggjað øðrum viðskiftara.
|
||||
invalid_redirect_uri: Endursendingar-URI'ið, sum var viðheft, er ógyldugt.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ fr-CA:
|
||||
invalid_code_challenge_method:
|
||||
one: Le code de la méthode de défi doit être %{challenge_methods}.
|
||||
other: 'Le code de la méthode de défi doit être l''une de ces valeurs : %{challenge_methods}.'
|
||||
zero: Le serveur d'autorisation ne supporte pas PKCE car il n'y a aucune valeur de code de méthode de défi acceptée.
|
||||
invalid_grant: L’autorisation accordée est invalide, expirée, révoquée, ne concorde pas avec l’URI de redirection utilisée dans la requête d’autorisation, ou a été délivrée à un autre client.
|
||||
invalid_redirect_uri: L’URI de redirection n’est pas valide.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ fr:
|
||||
invalid_code_challenge_method:
|
||||
one: Le code de la méthode de défi doit être %{challenge_methods}.
|
||||
other: 'Le code de la méthode de défi doit être l''une de ces valeurs : %{challenge_methods}.'
|
||||
zero: Le serveur d'autorisation ne supporte pas PKCE car il n'y a aucune valeur de code de méthode de défi acceptée.
|
||||
invalid_grant: L’autorisation accordée est invalide, expirée, annulée, ne concorde pas avec l’URL de redirection utilisée dans la requête d’autorisation, ou a été délivrée à un autre client.
|
||||
invalid_redirect_uri: L’URL de redirection n’est pas valide.
|
||||
invalid_request:
|
||||
|
||||
@@ -84,9 +84,11 @@ ga:
|
||||
credential_flow_not_configured: Theip ar shreabhadh Dintiúir Pasfhocal Úinéir Acmhainne toisc go raibh Doorkeeper.configure.resource_owner_from_credentials díchumraithe.
|
||||
invalid_client: Theip ar fhíordheimhniú cliant de bharr cliant anaithnid, níl fíordheimhniú cliant san áireamh, nó modh fíordheimhnithe nach dtacaítear leis.
|
||||
invalid_code_challenge_method:
|
||||
few: Ní mór don code_challenge_method a bheith ar cheann de %{challenge_methods}.
|
||||
many: Ní mór don code_challenge_method a bheith ar cheann de %{challenge_methods}.
|
||||
one: Ní mór don code_challenge_method a bheith %{challenge_methods}.
|
||||
other: Ní mór don code_challenge_method a bheith ar cheann de %{challenge_methods}.
|
||||
zero: Ní thacaíonn an freastalaí údaraithe le PKCE mar nach bhfuil aon luachanna code_challenge_method glactha ann.
|
||||
two: Ní mór don code_challenge_method a bheith ar cheann de %{challenge_methods}.
|
||||
invalid_grant: Tá an deonú údaraithe ar choinníoll neamhbhailí, imithe in éag, cúlghairthe, nach ionann é agus an URI atreoraithe a úsáideadh san iarratas ar údarú, nó gur eisíodh é chuig cliant eile.
|
||||
invalid_redirect_uri: Níl an uri atreoraithe atá san áireamh bailí.
|
||||
invalid_request:
|
||||
|
||||
@@ -84,9 +84,10 @@ gd:
|
||||
credential_flow_not_configured: Dh’fhàillig le sruth cruthachadh teisteas facail-fhaire do shealbhadair a’ ghoireis ri linn Doorkeeper.configure.resource_owner_from_credentials gun rèiteachadh.
|
||||
invalid_client: Dh’fhàillig le dearbhadh a’ chliant ri linn cliant nach aithne dhuinn, dearbhadh cliant nach deach gabhail a-staigh no dòigh dearbhaidh ris nach cuirear taic.
|
||||
invalid_code_challenge_method:
|
||||
one: Feumaidh an code_challenge_method a bhith ’na %{challenge_methods}.
|
||||
few: Feumaidh an code_challenge_method a bhith aon de %{challenge_methods}.
|
||||
one: Feumaidh an code_challenge_method a bhith aon de %{challenge_methods}.
|
||||
other: Feumaidh an code_challenge_method a bhith aon de %{challenge_methods}.
|
||||
zero: Cha chuir frithealaiche an ùghdarrachaidh taic ri PKCE air sgàth ’s nach eil luach code_challenge_method ann ris an gabhar.
|
||||
two: Feumaidh an code_challenge_method a bhith aon de %{challenge_methods}.
|
||||
invalid_grant: Chan eil an t-ùghdarrachadh a chaidh a thoirt seachad dligheach, dh’fhalbh an ùine air, chaidh a chùl-ghairm no chan eil e a-rèir URI an ath-stiùiridh a chaidh a chleachdadh san iarrtas ùghdarrachaidh no chaidh fhoillseachadh le cliant eile.
|
||||
invalid_redirect_uri: Chan eil an URI ath-stiùiridh a chaidh a ghabhail a-staigh dligheach.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ gl:
|
||||
invalid_code_challenge_method:
|
||||
one: O code_challenge_method ten que ser %{challenge_methods}.
|
||||
other: O code_challenge_method ten que ser un de entre %{challenge_methods}.
|
||||
zero: O servidor de autorización non é compatible con PKCE xa que non se aceptaron valores code_challenge_method
|
||||
invalid_grant: A validación da autorización proporcionada non é valida, caducou, foi rexeitada, non coincide a redirección URI utilizada na petición de autorización, ou foi proporcionada para outro cliente.
|
||||
invalid_redirect_uri: A uri de redirección incluída non é válida.
|
||||
invalid_request:
|
||||
|
||||
@@ -84,9 +84,10 @@ he:
|
||||
credential_flow_not_configured: התהליך "Resource Owner Password Credentials" נכשל בשל חוסר בתצורת Doorkeeper.configure.resource_owner_from_credentials.
|
||||
invalid_client: הרשאת הלקוח נכשלה עקב לקוח שאינו ידוע, חוסר בהרשאת לקוח או שיטת הרשאה שאינה נתמכת.
|
||||
invalid_code_challenge_method:
|
||||
many: 'הערך של code_challenge_method חייב להיות אחד מאלו: %{challenge_methods}.'
|
||||
one: הערך של code_challenge_method חייב להיות %{challenge_methods}.
|
||||
other: 'הערך של code_challenge_method חייב להיות אחד מאלו: %{challenge_methods}.'
|
||||
zero: שרת ההרשאה לא תומך PKCE שכן אין ערכי code_challenge_method נתמכים.
|
||||
two: 'הערך של code_challenge_method חייב להיות אחד מאלו: %{challenge_methods}.'
|
||||
invalid_grant: חוזה ההרשאה המצורף אינו חוקי, אינו תקף, מבוטל, או שאינו מתאים לקישורית ההפניה שבשימוש על ידי בקשת ההרשאה, או שהופק על ידי לקוח אחר.
|
||||
invalid_redirect_uri: קישורית ההפניה המצורפת אינה חוקית.
|
||||
invalid_request:
|
||||
|
||||
@@ -85,8 +85,7 @@ hu:
|
||||
invalid_client: A kliens hitelesítése megszakadt, mert ismeretlen a kliens, a kliens nem küldött hitelesítést, vagy a hitelesítés módja nem támogatott.
|
||||
invalid_code_challenge_method:
|
||||
one: 'A code_challange_method értékének ennek kell lennie: %{challenge_methods}.'
|
||||
other: 'A code_challange_method értékének ennek egyikének kell lennie: %{challenge_methods}.'
|
||||
zero: A hitelesítési kiszolgáló nem támogatja a PKCE-t, mivel nincs elfogadott code_challange_method érték.
|
||||
other: 'A code_challange_method értékének ezek egyikének kell lennie: %{challenge_methods}.'
|
||||
invalid_grant: A biztosított hitelesítés érvénytelen, lejárt, visszavont, vagy nem egyezik a hitelesítési kérésben használt URI-val, vagy más kliensnek címezték.
|
||||
invalid_redirect_uri: Az átirányító URI nem valós.
|
||||
invalid_request:
|
||||
|
||||
@@ -83,10 +83,6 @@ io:
|
||||
access_denied: Moyenproprietanto o yurizservilo refuzis la demando.
|
||||
credential_flow_not_configured: Moyenproprietantpasvortidentesesofluo faliis pro ke Doorkeeper.configure.resource_owner_from_credentials ne ajustesis.
|
||||
invalid_client: Klientpermiso falias pro nesavita kliento, neinkluzita klientpermiso o nesuportita permismetodo.
|
||||
invalid_code_challenge_method:
|
||||
one: La code_challenge_method mustas esar %{challenge_methods}.
|
||||
other: La code_challenge_method mustas esar un de %{challenge_methods}.
|
||||
zero: La yurizservilo ne subtenas PKCE pro ke ne havas aceptita valori di code_challenge_method.
|
||||
invalid_grant: Provizita yurizo esis nevalida, expiris, deaprobesis, ne parigas uzita ridirektoligilo dum yurizdemando o facesis a altra kliento.
|
||||
invalid_redirect_uri: La inkluzita ridirektoligilo esas nevalida.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ is:
|
||||
invalid_code_challenge_method:
|
||||
one: code_challenge_method verður að vera %{challenge_methods}.
|
||||
other: code_challenge_method verður að vera eitt af %{challenge_methods}.
|
||||
zero: Auðkenningarþjónninn styður ekki PKCE þar sem það eru engin samþykkt gildi fyrir code_challenge_method.
|
||||
invalid_grant: Uppgefin auðkenningarheimild er ógild, útrunnin, afturkölluð, samsvarar ekki endurbirtingarslóðinni í auðkenningarbeiðninni, eða var gefin út til annars biðlara.
|
||||
invalid_redirect_uri: Endurbeiningarslóðin sem fylgdi er ekki gild.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ it:
|
||||
invalid_code_challenge_method:
|
||||
one: Il code_challenge_method deve essere %{challenge_methods}.
|
||||
other: Il code_challenge_method deve essere uno dei %{challenge_methods}.
|
||||
zero: Il server di autorizzazione non supporta PKCE poiché non sono presenti valori code_challenge_method accettati.
|
||||
invalid_grant: L'autorizzazione fornita non è valida, è scaduta, è stata revocata, non corrisponde all'URI di reindirizzamento utilizzato nella richiesta d'autorizzazione o è stata emessa a un altro client.
|
||||
invalid_redirect_uri: L'uri di reindirizzamento incluso non è valido.
|
||||
invalid_request:
|
||||
|
||||
@@ -83,10 +83,6 @@ ja:
|
||||
access_denied: リソースの所有者または認証サーバーが要求を拒否しました。
|
||||
credential_flow_not_configured: リソース所有者のパスワード Doorkeeper.configure.resource_owner_from_credentials が設定されていないためクレデンシャルフローに失敗しました。
|
||||
invalid_client: 不明なクライアントであるか、クライアント情報が含まれていない、またはサポートされていない認証方法のため、クライアントの認証に失敗しました。
|
||||
invalid_code_challenge_method:
|
||||
one: code_challenge_methodは %{challenge_methods} でなければなりません。
|
||||
other: code_challenge_methodは %{challenge_methods} のいずれかでなければなりません。
|
||||
zero: 認証サーバーが受け入れる code_challenge_method 値がないため、PKCE をサポートしません。
|
||||
invalid_grant: 指定された認証許可は無効であるか、期限切れ、取り消されている、リダイレクトURIの不一致、または別のクライアントに発行されています。
|
||||
invalid_redirect_uri: 無効なリダイレクトURIが含まれています。
|
||||
invalid_request:
|
||||
|
||||
@@ -85,8 +85,7 @@ nl:
|
||||
invalid_client: Clientverificatie is mislukt door een onbekende client, ontbrekende client-authenticatie of een niet ondersteunde authenticatie-methode.
|
||||
invalid_code_challenge_method:
|
||||
one: De code_challenge_method moet %{challenge_methods} zijn.
|
||||
other: De code_challenge_method moet een van %{challenge_methods} zijn.
|
||||
zero: De autorisatieserver ondersteunt PKCE niet, aangezien er geen geaccepteerde code_challenge_method waarden zijn.
|
||||
other: De code_challenge_method moet een van de %{challenge_methods} zijn.
|
||||
invalid_grant: De verstrekte autorisatie is ongeldig, verlopen, ingetrokken, komt niet overeen met de redirect-URI die is opgegeven of werd uitgegeven aan een andere client.
|
||||
invalid_redirect_uri: De opgegeven redirect-URI is ongeldig.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ nn:
|
||||
invalid_code_challenge_method:
|
||||
one: code_challenge_method må vera %{challenge_methods}.
|
||||
other: code_challenge_method må vera ein av %{challenge_methods}.
|
||||
zero: Godkjenningstenaren støttar ikkje PKCE fordi det ikkje er nokon aksepterte verdiar av code_challenge_method.
|
||||
invalid_grant: Autoriseringa er ugyldig, utløpt, oppheva, stemmer ikkje med omdirigerings-URIen eller var tildelt ein annan klient.
|
||||
invalid_redirect_uri: Omdirigerings-URLen er ikkje gyldig.
|
||||
invalid_request:
|
||||
|
||||
@@ -83,9 +83,6 @@ oc:
|
||||
access_denied: Lo proprietari de la ressorça o lo servider d’autorizacion refusèt la demanda.
|
||||
credential_flow_not_configured: Lo flux de qualificacion del senhal del proprietari de la ressorça capitèt pas pr’amor que Doorkeeper.configure.resource_owner_from_credentials es pas configurat.
|
||||
invalid_client: L’autorizacion del client capitèt pas pr’amor que lo client es desconegut, l’autorizacion del client es pas enclús, o lo metòde d’autorizacion es pas suportat.
|
||||
invalid_code_challenge_method:
|
||||
one: Lo code_challenge_method deu èsser %{challenge_methods}.
|
||||
other: Lo code_challenge_method deu èsser un dels %{challenge_methods}.
|
||||
invalid_grant: L’acòrdi d’autorizacion donadat es pas valid, expirat, revocat, una redireccion URI utilizat en la demanda d’autorizacion no correspond, o a estat desliurat a un altre client.
|
||||
invalid_redirect_uri: L’URL de redireccion es pas valida.
|
||||
invalid_request:
|
||||
|
||||
@@ -83,10 +83,6 @@ pl:
|
||||
access_denied: Właściciel zasobu lub serwer autoryzujący odrzuciły żądanie.
|
||||
credential_flow_not_configured: Ścieżka "Resource Owner Password Credentials" zakończyła się błędem, ponieważ Doorkeeper.configure.resource_owner_from_credentials nie został skonfigurowany.
|
||||
invalid_client: Autoryzacja klienta nie powiodła się z powodu nieznanego klienta, braku uwierzytelnienia klienta, lub niewspieranej metody uwierzytelniania.
|
||||
invalid_code_challenge_method:
|
||||
one: Parametr code_challenge_method musi mieć wartość %{challenge_methods}.
|
||||
other: Parametr code_challenge_method musi być jednym z %{challenge_methods}.
|
||||
zero: Serwer autoryzacji nie obsługuje PKCE — brak akceptowanych wartości code_challenge_method.
|
||||
invalid_grant: Grant uwierzytelnienia jest niepoprawny, przeterminowany, unieważniony, nie pasuje do URI przekierowwania użytego w żądaniu uwierzytelnienia, lub został wystawiony przez innego klienta.
|
||||
invalid_redirect_uri: URI przekierowania jest nieprawidłowy.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ pt-BR:
|
||||
invalid_code_challenge_method:
|
||||
one: O code_challenge_method deve ser %{challenge_methods}.
|
||||
other: O code_challenge_method deve ser um de %{challenge_methods}.
|
||||
zero: O servidor de autorização não suporta PKCE por não haver valores aceitos de code_challenge_method.
|
||||
invalid_grant: A garantia de autorização está inválida, expirou ou foi revogada, não é equivalente ao link de redirecionamento usado na solicitação de autorização ou foi emitido por outro cliente.
|
||||
invalid_redirect_uri: O link de redirecionamento é inválido.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ pt-PT:
|
||||
invalid_code_challenge_method:
|
||||
one: O code_challenge_method deve ser %{challenge_methods}.
|
||||
other: O code_challenge_method deve ser um de %{challenge_methods}.
|
||||
zero: O servidor de autorização não suporta PKCE pois não há valores aceites para code_challenge_method.
|
||||
invalid_grant: A concessão de autorização fornecida é inválida, expirou, foi revogada, não corresponde à URI de redirecionamento usada no pedido de autorização ou foi emitida para outro cliente.
|
||||
invalid_redirect_uri: A URI de redirecionamento incluída não é válida.
|
||||
invalid_request:
|
||||
|
||||
@@ -86,7 +86,6 @@ sq:
|
||||
invalid_code_challenge_method:
|
||||
one: code_challenge_method duhet të jetë %{challenge_methods}.
|
||||
other: code_challenge_method duhet të jetë një nga %{challenge_methods}.
|
||||
zero: Shërbyesi i autorizimeve s’mbulon PKCE, ngaqë s’ka vlera code_challenge_method të pranuara.
|
||||
invalid_grant: Autorizimi i dhënë është i pavlefshëm, ka skaduar, është shfuqizuar, s’përputhet me URI-n e ridrejtimit të përdorur te kërkesa e autorizimit, ose është emetuar për klient tjetër.
|
||||
invalid_redirect_uri: URI e ridrejtimit s’është e vlefshme.
|
||||
invalid_request:
|
||||
|
||||
@@ -84,9 +84,8 @@ sv:
|
||||
credential_flow_not_configured: Resurs Ägare Lösenord Credentials flöde misslyckades på grund av att Doorkeeper.configure.resource_owner_from_credentials är okonfigurerad.
|
||||
invalid_client: Klientautentisering misslyckades på grund av okänd klient, ingen klientautentisering inkluderad eller icke godkänd autentiseringsmetod.
|
||||
invalid_code_challenge_method:
|
||||
one: code_challenge_method måste vara %{challenge_methods}.
|
||||
other: code_challenge_method måste vara en av %{challenge_methods}.
|
||||
zero: Auktoriseringsservern stöder inte PKCE eftersom det inte finns några accepterade code_challenge_metod-värden.
|
||||
one: Code_challenge_method måste vara %{challenge_methods}.
|
||||
other: Code_challenge_method måste vara ett av %{challenge_methods}.
|
||||
invalid_grant: Det beviljade godkännandetillskottet är ogiltigt, upphört, återkallat, matchar inte den omdirigering URI som användes i auktorisationsförfrågan eller har utfärdats till en annan klient.
|
||||
invalid_redirect_uri: Den omdirigerade uri är inte giltig.
|
||||
invalid_request:
|
||||
|
||||
@@ -84,9 +84,8 @@ tr:
|
||||
credential_flow_not_configured: Kaynak Sahibi Parolası Kimlik Bilgileri akışı Doorkeeper.configure.resource_owner_from_credentials 'ın yapılandırılmamış olması nedeniyle başarısız oldu.
|
||||
invalid_client: İstemcinin kimlik doğrulaması bilinmeyen istemci, istemci kimlik doğrulamasının dahil olmaması veya desteklenmeyen kimlik doğrulama yöntemi nedeniyle başarısız oldu.
|
||||
invalid_code_challenge_method:
|
||||
one: code_challenge_method %{challenge_methods} olmalıdır.
|
||||
other: code_challenge_method %{challenge_methods} seçeneklerinden biri olmalıdır.
|
||||
zero: Yetkilendirme sunucusu kabul edilen code_challenge_method değerleri olmadığı için PKCE'yi desteklemiyor.
|
||||
one: code_challenge_method değeri %{challenge_methods} olmalıdır.
|
||||
other: code_challenge_method değeri %{challenge_methods} olmalıdır.
|
||||
invalid_grant: Sağlanan yetkilendirme izni geçersiz, süresi dolmuş, iptal edilmiş, yetkilendirme isteğinde kullanılan yönlendirme URL'siyle eşleşmiyor veya başka bir istemciye verilmiş.
|
||||
invalid_redirect_uri: Dahil edilmiş yönlendirme uri'si geçersiz.
|
||||
invalid_request:
|
||||
|
||||
Loaded 100 of 113 files, more files were not shown because too many files have changed in this diff.
Show more
Reference in new issue
Block a user