merge: Add docstrings for Sharkey components (!1172)

View MR for information: https://activitypub.software/TransFem-org/Sharkey/-/merge_requests/1172

Approved-by: dakkar <dakkar@thenautilus.net>
Approved-by: Hazelnoot <acomputerdog@gmail.com>
This commit is contained in:
Hazelnoot 2025-07-21 15:40:30 +00:00
commit 31344bb816
30 changed files with 68 additions and 0 deletions

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a note with either Misskey or Sharkey style, based on user preference.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a note in the detailed view with either Misskey or Sharkey style, based on user preference.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a note in the simple view with either Misskey or Sharkey style, based on user preference.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: marie and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays an account pending approval, with the signup reason and buttons to approve or delete it.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Horizontal strip that displays a user's badges.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
List of items, divided by date separators.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
List of errors for a viewed note.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Fetches and displays a note from a note ID.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: CenTdemeern1 and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a Flash Player window via Ruffle.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Selectable entry on the "Following" feed, displaying a user with their most recent note.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
List that displays the most recent note from each followed user, in order, with date separators.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: dakkar, MoshiBar, and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Renders a KaTeX formula.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
Small label that displays the name and icon of an instance.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: marie and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a sheet of info about MFM.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: puniko and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Media player for module files. Displays the pattern in real time as it plays.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a placeholder for a muted note.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: syuilo and misskey-project
SPDX-License-Identifier: AGPL-3.0-only
Displays a note in the Sharkey style. Used to show the "main" note in a given context.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
Detailed view of a note in the Sharkey style. Used when opening a note onto its own page.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: marie and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Header for a note in the Sharkey style, displaying info such as username and creation timestamp.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: syuilo and other misskey contributors
SPDX-License-Identifier: AGPL-3.0-only
Simple view of a note in the Sharkey style. Used in quote renotes, link previews, etc.
-->
<template>

View file

@ -1,6 +1,10 @@
<!--
SPDX-FileCopyrightText: marie and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a sub-note in the Sharkey style. Used to display secondary notes in a given context.
For example, when viewing a reply on the timeline, SkNoteSub will be used to display the note that is being replied to.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a translated version of a note.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: marie and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays an old version of an edited note.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: kopper and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays Oneko, a cat that follows the cursor.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Allows a user to write text to test their word mutes against, displaying matched words.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Warning in the following feed/column that remote users may have incomplete/outdated activity.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: marie and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a list of notes as results of a search.
-->
<template>

View file

@ -1,6 +1,11 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
List of elements, with animations for inserting, removing, and reordering items.
Animation can be disabled with the "reduced animation" preferences.
This component exists because Misskey's implementation of the reduced animation preference tends to break VueJS.
-->
<template>

View file

@ -1,6 +1,11 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a group of URL previews.
If the URL to be previewed links to a note, it will be displayed as a quote.
Attempts to avoid displaying the same preview twice, even if multiple URLs point to the same resource.
-->
<template>

View file

@ -1,6 +1,8 @@
<!--
SPDX-FileCopyrightText: hazelnoot and other Sharkey contributors
SPDX-License-Identifier: AGPL-3.0-only
Displays a user's recent notes for the "Following" feed.
-->
<template>