deploy: eec73e9749
This commit is contained in:
460
shared/paths.ts/index.html
Normal file
460
shared/paths.ts/index.html
Normal file
@@ -0,0 +1,460 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>shared/paths.ts - gerbeur documentation</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<meta name="doc-current-file" content="">
|
||||
<link rel="stylesheet" href="../../styles.css">
|
||||
<link rel="stylesheet" href="../../page.css">
|
||||
<link id="ddocResetStylesheet" rel="stylesheet" href="../../reset.css"><link href="../../comrak.css" rel="stylesheet" /><link href="../../prism.css" rel="stylesheet" /><script src="../../prism.js"></script><script src="../../script.js" defer></script>
|
||||
<script src="../../darkmode_toggle.js"></script><script src="../../search_index.js" defer></script>
|
||||
<script src="../../fuse.js" defer></script>
|
||||
<script src="../../search.js" defer></script></head>
|
||||
<body>
|
||||
<div class="ddoc">
|
||||
<div><nav id="topnav">
|
||||
<div class="h-full">
|
||||
<div class="flex items-center"><ul class="breadcrumbs">
|
||||
<li>
|
||||
<a href="../../" class="contextLink">gerbeur</a>
|
||||
</li><span class="text-black dark:text-white"><svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M5.76748 11.8159C5.5378 11.577 5.54525 11.1972 5.78411 10.9675L8.93431 8L5.78411 5.0325C5.54525 4.80282 5.5378 4.423 5.76748 4.18413C5.99715 3.94527 6.37698 3.93782 6.61584 4.1675L10.2158 7.5675C10.3335 7.68062 10.4 7.83679 10.4 8C10.4 8.16321 10.3335 8.31938 10.2158 8.4325L6.61584 11.8325C6.37698 12.0622 5.99715 12.0547 5.76748 11.8159Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</svg>
|
||||
</span>shared/paths.ts</ul>
|
||||
</div>
|
||||
|
||||
<div class="flex items-center gap-2">
|
||||
<button id="theme-toggle" type="button" aria-label="Toggle dark mode" style="display: none;"><svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="14"
|
||||
height="14"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
>
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
||||
<path
|
||||
d="M12 1.992a10 10 0 1 0 9.236 13.838c.341 -.82 -.476 -1.644 -1.298 -1.31a6.5 6.5 0 0 1 -6.864 -10.787l.077 -.08c.551 -.63 .113 -1.653 -.758 -1.653h-.266l-.068 -.006l-.06 -.002z"
|
||||
/>
|
||||
</svg>
|
||||
<svg
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
width="14"
|
||||
height="14"
|
||||
viewBox="0 0 24 24"
|
||||
fill="currentColor"
|
||||
class="hidden"
|
||||
>
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
||||
<path
|
||||
d="M12 19a1 1 0 0 1 .993 .883l.007 .117v1a1 1 0 0 1 -1.993 .117l-.007 -.117v-1a1 1 0 0 1 1 -1z"
|
||||
/>
|
||||
<path
|
||||
d="M18.313 16.91l.094 .083l.7 .7a1 1 0 0 1 -1.32 1.497l-.094 -.083l-.7 -.7a1 1 0 0 1 1.218 -1.567l.102 .07z"
|
||||
/>
|
||||
<path
|
||||
d="M7.007 16.993a1 1 0 0 1 .083 1.32l-.083 .094l-.7 .7a1 1 0 0 1 -1.497 -1.32l.083 -.094l.7 -.7a1 1 0 0 1 1.414 0z"
|
||||
/>
|
||||
<path
|
||||
d="M4 11a1 1 0 0 1 .117 1.993l-.117 .007h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z"
|
||||
/>
|
||||
<path
|
||||
d="M21 11a1 1 0 0 1 .117 1.993l-.117 .007h-1a1 1 0 0 1 -.117 -1.993l.117 -.007h1z"
|
||||
/>
|
||||
<path
|
||||
d="M6.213 4.81l.094 .083l.7 .7a1 1 0 0 1 -1.32 1.497l-.094 -.083l-.7 -.7a1 1 0 0 1 1.217 -1.567l.102 .07z"
|
||||
/>
|
||||
<path
|
||||
d="M19.107 4.893a1 1 0 0 1 .083 1.32l-.083 .094l-.7 .7a1 1 0 0 1 -1.497 -1.32l.083 -.094l.7 -.7a1 1 0 0 1 1.414 0z"
|
||||
/>
|
||||
<path
|
||||
d="M12 2a1 1 0 0 1 .993 .883l.007 .117v1a1 1 0 0 1 -1.993 .117l-.007 -.117v-1a1 1 0 0 1 1 -1z"
|
||||
/>
|
||||
<path
|
||||
d="M12 7a5 5 0 1 1 -4.995 5.217l-.005 -.217l.005 -.217a5 5 0 0 1 4.995 -4.783z"
|
||||
/>
|
||||
</svg>
|
||||
</button>
|
||||
|
||||
<input
|
||||
type="text"
|
||||
id="searchbar"
|
||||
style="display: none;"
|
||||
class="py-2 px-2.5 mx-1 rounded text-sm border border-gray-300 bg-transparent dark:bg-gray-800 dark:border-gray-700"
|
||||
/>
|
||||
</div>
|
||||
</div>
|
||||
</nav>
|
||||
<div id="searchResults"></div><div id="content">
|
||||
<main><section>
|
||||
<div class="space-y-2 flex-1"><div class="space-y-7" id="module_doc"><div class="markdown"><p>Builds and parses the site's page paths, by the one rule they all follow:
|
||||
the path is a hierarchy, <code>@name</code> is a user (<code>@name@host</code> one whose account
|
||||
lives on another instance), and any other word under the
|
||||
root is a dump category or an app page, <code>/playlists</code> holding the playlist
|
||||
categories. Under a user each segment is a fixed tab name, and under <code>dumps</code>
|
||||
or <code>playlists</code> a slug. A view of a page is one more segment, and a default
|
||||
view is the bare path. A category narrowing a list on another page, a
|
||||
profile's or a search's, is a query, <code>?category=</code>, not a segment, and so is
|
||||
the order of a list of playlists, <code>?sort=</code>, the default order being the
|
||||
bare path, and the playlists page's list of the viewer's own, <code>?mine=1</code>.</p>
|
||||
<p>The client links every page through the builders (<code>src/utils/shared/urls.ts</code>
|
||||
wraps the dump and playlist ones), the emails prefix them with the
|
||||
frontend's URL, and the server's matchers (the Open Graph tags, the
|
||||
previews and backlinks of links to this site) read paths with
|
||||
<a href="../.././shared/paths.ts/~/parsePagePath.html">parsePagePath</a>. Migration 0021 rewrote the v3 links in stored text
|
||||
with the builders.</p>
|
||||
</div><section class="section" id="shared/paths_ts_functions"><div>
|
||||
<h2 class="anchorable mb-1"><a href="#shared/paths_ts_functions" class="anchor" aria-label="Anchor" tabIndex="-1"><svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 14 14"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<g clip-path="url(#clip0_1081_1237)">
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M6.80328 2.8656C6.68736 2.99 6.62425 3.15454 6.62725 3.32456C6.63025 3.49457 6.69913 3.65678 6.81936 3.77702C6.9396 3.89725 7.10181 3.96613 7.27182 3.96913C7.44184 3.97213 7.60638 3.90902 7.73078 3.7931L8.82453 2.69935C8.98712 2.53676 9.18015 2.40778 9.39259 2.31978C9.60503 2.23179 9.83272 2.1865 10.0627 2.1865C10.2926 2.1865 10.5203 2.23179 10.7327 2.31978C10.9452 2.40778 11.1382 2.53676 11.3008 2.69935C11.4634 2.86194 11.5923 3.05497 11.6803 3.2674C11.7683 3.47984 11.8136 3.70753 11.8136 3.93747C11.8136 4.16741 11.7683 4.3951 11.6803 4.60754C11.5923 4.81998 11.4634 5.013 11.3008 5.1756L9.11328 7.3631C8.95075 7.52581 8.75775 7.65488 8.5453 7.74295C8.33285 7.83102 8.10513 7.87635 7.87516 7.87635C7.64518 7.87635 7.41746 7.83102 7.20501 7.74295C6.99256 7.65488 6.79956 7.52581 6.63703 7.3631C6.51263 7.24718 6.34809 7.18407 6.17807 7.18707C6.00806 7.19007 5.84585 7.25894 5.72561 7.37918C5.60538 7.49942 5.5365 7.66163 5.5335 7.83164C5.5305 8.00165 5.59361 8.1662 5.70953 8.2906C5.99391 8.57501 6.33154 8.80062 6.70312 8.95455C7.0747 9.10847 7.47296 9.18769 7.87516 9.18769C8.27736 9.18769 8.67562 9.10847 9.0472 8.95455C9.41878 8.80062 9.7564 8.57501 10.0408 8.2906L12.2283 6.1031C12.8026 5.52874 13.1253 4.74974 13.1253 3.93747C13.1253 3.12521 12.8026 2.34621 12.2283 1.77185C11.6539 1.19749 10.8749 0.874817 10.0627 0.874817C9.25039 0.874817 8.47139 1.19749 7.89703 1.77185L6.80328 2.8656ZM2.69953 11.3006C2.53682 11.1381 2.40774 10.9451 2.31968 10.7326C2.23161 10.5202 2.18628 10.2924 2.18628 10.0625C2.18628 9.8325 2.23161 9.60477 2.31968 9.39233C2.40774 9.17988 2.53682 8.98688 2.69953 8.82435L4.88703 6.63685C5.04956 6.47414 5.24256 6.34506 5.45501 6.25699C5.66746 6.16893 5.89518 6.1236 6.12516 6.1236C6.35513 6.1236 6.58285 6.16893 6.7953 6.25699C7.00775 6.34506 7.20075 6.47414 7.36328 6.63685C7.48768 6.75277 7.65223 6.81588 7.82224 6.81288C7.99225 6.80988 8.15446 6.741 8.2747 6.62077C8.39494 6.50053 8.46381 6.33832 8.46681 6.1683C8.46981 5.99829 8.4067 5.83375 8.29078 5.70935C8.0064 5.42494 7.66878 5.19933 7.2972 5.0454C6.92562 4.89148 6.52736 4.81225 6.12516 4.81225C5.72296 4.81225 5.3247 4.89148 4.95312 5.0454C4.58154 5.19933 4.24391 5.42494 3.95953 5.70935L1.77203 7.89685C1.19767 8.47121 0.875 9.25021 0.875 10.0625C0.875 10.8747 1.19767 11.6537 1.77203 12.2281C2.34639 12.8025 3.12539 13.1251 3.93766 13.1251C4.74992 13.1251 5.52892 12.8025 6.10328 12.2281L7.19703 11.1343C7.31295 11.0099 7.37606 10.8454 7.37306 10.6754C7.37006 10.5054 7.30119 10.3432 7.18095 10.2229C7.06071 10.1027 6.8985 10.0338 6.72849 10.0308C6.55848 10.0278 6.39393 10.0909 6.26953 10.2068L5.17578 11.3006C5.01325 11.4633 4.82025 11.5924 4.6078 11.6805C4.39535 11.7685 4.16763 11.8138 3.93766 11.8138C3.70768 11.8138 3.47996 11.7685 3.26751 11.6805C3.05506 11.5924 2.86206 11.4633 2.69953 11.3006Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_1081_1237">
|
||||
<rect width="14" height="14" fill="white" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</a>
|
||||
Functions</h2></div><div class="namespaceSection"><div id="namespace_categorypath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/categoryPath.html" title="categoryPath">
|
||||
<span>categoryPath</span><span>(<div class="ml-4"><div><span>kind<span>: <span class="td-ref">CategoryKind</span></span></span>,</div><div><span>slug<span>: <span class="td-kw">string</span></span></span></div></div>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the path of the page of the category of <code>kind</code> at <code>slug</code>: a dump
|
||||
category's feed (<a href="../.././shared/paths.ts/~/feedPath.html">feedPath</a>), or a playlist category's playlists
|
||||
(<a href="../.././shared/paths.ts/~/playlistsPath.html">playlistsPath</a>). The category chips link to it.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_communitypath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/communityPath.html" title="communityPath">
|
||||
<span>communityPath</span><span>(<span><span>view<span class="td-op">?</span><span>: <span class="td-ref">DigestCadence</span></span></span></span>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the path of the community page on <code>view</code>, the week by default.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_dumppath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/dumpPath.html" title="dumpPath">
|
||||
<span>dumpPath</span><span>(<div class="ml-4"><div><span>dump<span>: <span class="td-ref">OwnedItem</span></span></span>,</div><div><span>view<span class="td-op">?</span><span>: <span class="td-str">"edit"</span></span></span></div></div>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the path of a dump's page, <code>/@owner/dumps/<slug></code>, or of its
|
||||
editor, one segment more.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_feedpath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/feedPath.html" title="feedPath">
|
||||
<span>feedPath</span><span>(<div class="ml-4"><div><span>categorySlug<span class="td-op">?</span><span>: <span class="td-kw">string</span></span></span>,</div><div><span>tab<span class="td-op">?</span><span>: <span class="td-ref">FeedTab</span></span></span>,</div><div><span>view<span class="td-op">?</span><span>: <span class="td-ref">FollowView</span></span></span></div></div>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the path of a feed: every dump's at the root, or a category's at
|
||||
<code>/<slug></code>, on <code>tab</code>, or on the viewer's default tab without one. The
|
||||
<code>follow</code> tab takes a <code>view</code>, the users followed by default.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_parsepagepath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/parsePagePath.html" title="parsePagePath">
|
||||
<span>parsePagePath</span><span>(<span><span>pathname<span>: <span class="td-kw">string</span></span></span></span>)<span>: <span><span class="td-ref">PagePath</span><span class="td-op"> | </span><span class="td-kw">null</span></span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns what a page path under a user names: a profile (with its tab), a
|
||||
dump or a playlist (or its editor). It returns null for any other path, a
|
||||
feed or an app page, and for one under a user that no page answers. The
|
||||
names are decoded but not looked up, so the user or the item may not exist.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_parseplayliststab" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/parsePlaylistsTab.html" title="parsePlaylistsTab">
|
||||
<span>parsePlaylistsTab</span><span>(<span><span>params<span>: <span class="td-ref">URLSearchParams</span></span></span></span>)<span>: <span class="td-ref">PlaylistsTab</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the tab of the playlists page its query names: the viewer's own
|
||||
playlists with a <code>mine</code>, else the order <code>sort</code> names, as
|
||||
<code>parsePlaylistSort</code> reads it.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_playlistpath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/playlistPath.html" title="playlistPath">
|
||||
<span>playlistPath</span><span>(<div class="ml-4"><div><span>playlist<span>: <span class="td-ref">OwnedItem</span></span></span>,</div><div><span>view<span class="td-op">?</span><span>: <span class="td-str">"edit"</span></span></span></div></div>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the path of a playlist's page, <code>/@owner/playlists/<slug></code>, or of
|
||||
the page with its editor open, one segment more.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_playlistsortquery" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/playlistSortQuery.html" title="playlistSortQuery">
|
||||
<span>playlistSortQuery</span><span>(<div class="ml-4"><div><span>sort<span class="td-op">?</span><span>: <span class="td-ref">PlaylistSort</span></span></span>,</div><div><span>extra<span class="td-op">?</span><span>: <span class="td-ref">URLSearchParams</span></span></span></div></div>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the query string that puts a list of playlists in the order <code>sort</code>
|
||||
names, with its <code>?</code>, or <code>""</code> for the default order. <code>extra</code> holds the
|
||||
list's other parameters, such as a profile's <code>category</code>.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_playlistspath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/playlistsPath.html" title="playlistsPath">
|
||||
<span>playlistsPath</span><span>(<div class="ml-4"><div><span>categorySlug<span class="td-op">?</span><span>: <span class="td-kw">string</span></span></span>,</div><div><span>tab<span class="td-op">?</span><span>: <span class="td-ref">PlaylistsTab</span></span></span></div></div>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the path of the page of every public playlist, <code>/playlists</code>, or of a
|
||||
playlist category's at <code>/playlists/<slug></code>, on the tab <code>tab</code> names: an
|
||||
order, the default one without it, or the viewer's own playlists.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_searchpath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/searchPath.html" title="searchPath">
|
||||
<span>searchPath</span><span>(<div class="ml-4"><div><span>tab<span class="td-op">?</span><span>: <span class="td-ref">SearchTab</span></span></span>,</div><div><span>query<span class="td-op">?</span><span>: <span class="td-kw">string</span></span></span></div></div>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the path of the search page on <code>tab</code>, searching <code>query</code> when it is
|
||||
given.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_userpath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/userPath.html" title="userPath">
|
||||
<span>userPath</span><span>(<div class="ml-4"><div><span>username<span>: <span class="td-kw">string</span></span></span>,</div><div><span>tab<span class="td-op">?</span><span>: <span class="td-ref">ProfileTab</span></span></span>,</div><div><span>view<span class="td-op">?</span><span>: <span class="td-ref">FollowView</span></span></span></div></div>)<span>: <span class="td-kw">string</span></span></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returns the path of <code>username</code>'s profile, of one of its tabs, or of a view
|
||||
of the <code>follow</code> tab. The default view, <code>users</code>, is the bare tab.</p>
|
||||
</div></div></div>
|
||||
</div></div>
|
||||
</section>
|
||||
<section class="section" id="shared/paths_ts_interfaces"><div>
|
||||
<h2 class="anchorable mb-1"><a href="#shared/paths_ts_interfaces" class="anchor" aria-label="Anchor" tabIndex="-1"><svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 14 14"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<g clip-path="url(#clip0_1081_1237)">
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M6.80328 2.8656C6.68736 2.99 6.62425 3.15454 6.62725 3.32456C6.63025 3.49457 6.69913 3.65678 6.81936 3.77702C6.9396 3.89725 7.10181 3.96613 7.27182 3.96913C7.44184 3.97213 7.60638 3.90902 7.73078 3.7931L8.82453 2.69935C8.98712 2.53676 9.18015 2.40778 9.39259 2.31978C9.60503 2.23179 9.83272 2.1865 10.0627 2.1865C10.2926 2.1865 10.5203 2.23179 10.7327 2.31978C10.9452 2.40778 11.1382 2.53676 11.3008 2.69935C11.4634 2.86194 11.5923 3.05497 11.6803 3.2674C11.7683 3.47984 11.8136 3.70753 11.8136 3.93747C11.8136 4.16741 11.7683 4.3951 11.6803 4.60754C11.5923 4.81998 11.4634 5.013 11.3008 5.1756L9.11328 7.3631C8.95075 7.52581 8.75775 7.65488 8.5453 7.74295C8.33285 7.83102 8.10513 7.87635 7.87516 7.87635C7.64518 7.87635 7.41746 7.83102 7.20501 7.74295C6.99256 7.65488 6.79956 7.52581 6.63703 7.3631C6.51263 7.24718 6.34809 7.18407 6.17807 7.18707C6.00806 7.19007 5.84585 7.25894 5.72561 7.37918C5.60538 7.49942 5.5365 7.66163 5.5335 7.83164C5.5305 8.00165 5.59361 8.1662 5.70953 8.2906C5.99391 8.57501 6.33154 8.80062 6.70312 8.95455C7.0747 9.10847 7.47296 9.18769 7.87516 9.18769C8.27736 9.18769 8.67562 9.10847 9.0472 8.95455C9.41878 8.80062 9.7564 8.57501 10.0408 8.2906L12.2283 6.1031C12.8026 5.52874 13.1253 4.74974 13.1253 3.93747C13.1253 3.12521 12.8026 2.34621 12.2283 1.77185C11.6539 1.19749 10.8749 0.874817 10.0627 0.874817C9.25039 0.874817 8.47139 1.19749 7.89703 1.77185L6.80328 2.8656ZM2.69953 11.3006C2.53682 11.1381 2.40774 10.9451 2.31968 10.7326C2.23161 10.5202 2.18628 10.2924 2.18628 10.0625C2.18628 9.8325 2.23161 9.60477 2.31968 9.39233C2.40774 9.17988 2.53682 8.98688 2.69953 8.82435L4.88703 6.63685C5.04956 6.47414 5.24256 6.34506 5.45501 6.25699C5.66746 6.16893 5.89518 6.1236 6.12516 6.1236C6.35513 6.1236 6.58285 6.16893 6.7953 6.25699C7.00775 6.34506 7.20075 6.47414 7.36328 6.63685C7.48768 6.75277 7.65223 6.81588 7.82224 6.81288C7.99225 6.80988 8.15446 6.741 8.2747 6.62077C8.39494 6.50053 8.46381 6.33832 8.46681 6.1683C8.46981 5.99829 8.4067 5.83375 8.29078 5.70935C8.0064 5.42494 7.66878 5.19933 7.2972 5.0454C6.92562 4.89148 6.52736 4.81225 6.12516 4.81225C5.72296 4.81225 5.3247 4.89148 4.95312 5.0454C4.58154 5.19933 4.24391 5.42494 3.95953 5.70935L1.77203 7.89685C1.19767 8.47121 0.875 9.25021 0.875 10.0625C0.875 10.8747 1.19767 11.6537 1.77203 12.2281C2.34639 12.8025 3.12539 13.1251 3.93766 13.1251C4.74992 13.1251 5.52892 12.8025 6.10328 12.2281L7.19703 11.1343C7.31295 11.0099 7.37606 10.8454 7.37306 10.6754C7.37006 10.5054 7.30119 10.3432 7.18095 10.2229C7.06071 10.1027 6.8985 10.0338 6.72849 10.0308C6.55848 10.0278 6.39393 10.0909 6.26953 10.2068L5.17578 11.3006C5.01325 11.4633 4.82025 11.5924 4.6078 11.6805C4.39535 11.7685 4.16763 11.8138 3.93766 11.8138C3.70768 11.8138 3.47996 11.7685 3.26751 11.6805C3.05506 11.5924 2.86206 11.4633 2.69953 11.3006Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_1081_1237">
|
||||
<rect width="14" height="14" fill="white" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</a>
|
||||
Interfaces</h2></div><div class="namespaceSection"><div id="namespace_owneditem" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Interface bg-Interface/15 dark:text-InterfaceDark dark:bg-InterfaceDark/15" title="Interface">I</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/OwnedItem.html" title="OwnedItem">
|
||||
<span>OwnedItem</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Passed to <a href="../.././shared/paths.ts/~/dumpPath.html">dumpPath</a> and <a href="../.././shared/paths.ts/~/playlistPath.html">playlistPath</a>, usually as the item.</p>
|
||||
</div></div><ul class="namespaceItemContentSubItems"><li>
|
||||
<a href="../.././shared/paths.ts/~/OwnedItem.html#property_ownerusername">
|
||||
<span>ownerUsername</span><span>: <span class="td-kw">string</span></span></a></li><li>
|
||||
<a href="../.././shared/paths.ts/~/OwnedItem.html#property_slug">
|
||||
<span>slug</span><span>: <span class="td-kw">string</span></span></a></li></ul></div>
|
||||
</div></div>
|
||||
</section>
|
||||
<section class="section" id="shared/paths_ts_type-aliases"><div>
|
||||
<h2 class="anchorable mb-1"><a href="#shared/paths_ts_type-aliases" class="anchor" aria-label="Anchor" tabIndex="-1"><svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 14 14"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<g clip-path="url(#clip0_1081_1237)">
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M6.80328 2.8656C6.68736 2.99 6.62425 3.15454 6.62725 3.32456C6.63025 3.49457 6.69913 3.65678 6.81936 3.77702C6.9396 3.89725 7.10181 3.96613 7.27182 3.96913C7.44184 3.97213 7.60638 3.90902 7.73078 3.7931L8.82453 2.69935C8.98712 2.53676 9.18015 2.40778 9.39259 2.31978C9.60503 2.23179 9.83272 2.1865 10.0627 2.1865C10.2926 2.1865 10.5203 2.23179 10.7327 2.31978C10.9452 2.40778 11.1382 2.53676 11.3008 2.69935C11.4634 2.86194 11.5923 3.05497 11.6803 3.2674C11.7683 3.47984 11.8136 3.70753 11.8136 3.93747C11.8136 4.16741 11.7683 4.3951 11.6803 4.60754C11.5923 4.81998 11.4634 5.013 11.3008 5.1756L9.11328 7.3631C8.95075 7.52581 8.75775 7.65488 8.5453 7.74295C8.33285 7.83102 8.10513 7.87635 7.87516 7.87635C7.64518 7.87635 7.41746 7.83102 7.20501 7.74295C6.99256 7.65488 6.79956 7.52581 6.63703 7.3631C6.51263 7.24718 6.34809 7.18407 6.17807 7.18707C6.00806 7.19007 5.84585 7.25894 5.72561 7.37918C5.60538 7.49942 5.5365 7.66163 5.5335 7.83164C5.5305 8.00165 5.59361 8.1662 5.70953 8.2906C5.99391 8.57501 6.33154 8.80062 6.70312 8.95455C7.0747 9.10847 7.47296 9.18769 7.87516 9.18769C8.27736 9.18769 8.67562 9.10847 9.0472 8.95455C9.41878 8.80062 9.7564 8.57501 10.0408 8.2906L12.2283 6.1031C12.8026 5.52874 13.1253 4.74974 13.1253 3.93747C13.1253 3.12521 12.8026 2.34621 12.2283 1.77185C11.6539 1.19749 10.8749 0.874817 10.0627 0.874817C9.25039 0.874817 8.47139 1.19749 7.89703 1.77185L6.80328 2.8656ZM2.69953 11.3006C2.53682 11.1381 2.40774 10.9451 2.31968 10.7326C2.23161 10.5202 2.18628 10.2924 2.18628 10.0625C2.18628 9.8325 2.23161 9.60477 2.31968 9.39233C2.40774 9.17988 2.53682 8.98688 2.69953 8.82435L4.88703 6.63685C5.04956 6.47414 5.24256 6.34506 5.45501 6.25699C5.66746 6.16893 5.89518 6.1236 6.12516 6.1236C6.35513 6.1236 6.58285 6.16893 6.7953 6.25699C7.00775 6.34506 7.20075 6.47414 7.36328 6.63685C7.48768 6.75277 7.65223 6.81588 7.82224 6.81288C7.99225 6.80988 8.15446 6.741 8.2747 6.62077C8.39494 6.50053 8.46381 6.33832 8.46681 6.1683C8.46981 5.99829 8.4067 5.83375 8.29078 5.70935C8.0064 5.42494 7.66878 5.19933 7.2972 5.0454C6.92562 4.89148 6.52736 4.81225 6.12516 4.81225C5.72296 4.81225 5.3247 4.89148 4.95312 5.0454C4.58154 5.19933 4.24391 5.42494 3.95953 5.70935L1.77203 7.89685C1.19767 8.47121 0.875 9.25021 0.875 10.0625C0.875 10.8747 1.19767 11.6537 1.77203 12.2281C2.34639 12.8025 3.12539 13.1251 3.93766 13.1251C4.74992 13.1251 5.52892 12.8025 6.10328 12.2281L7.19703 11.1343C7.31295 11.0099 7.37606 10.8454 7.37306 10.6754C7.37006 10.5054 7.30119 10.3432 7.18095 10.2229C7.06071 10.1027 6.8985 10.0338 6.72849 10.0308C6.55848 10.0278 6.39393 10.0909 6.26953 10.2068L5.17578 11.3006C5.01325 11.4633 4.82025 11.5924 4.6078 11.6805C4.39535 11.7685 4.16763 11.8138 3.93766 11.8138C3.70768 11.8138 3.47996 11.7685 3.26751 11.6805C3.05506 11.5924 2.86206 11.4633 2.69953 11.3006Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_1081_1237">
|
||||
<rect width="14" height="14" fill="white" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</a>
|
||||
Type Aliases</h2></div><div class="namespaceSection"><div id="namespace_feedtab" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-TypeAlias bg-TypeAlias/15 dark:text-TypeAliasDark dark:bg-TypeAliasDark/15" title="Type Alias">T</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/FeedTab.html" title="FeedTab">
|
||||
<span>FeedTab</span><span> = (<span class="td-ref">FEED_TABS</span>)[<span class="td-kw">number</span>]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>One of the <a href="../.././shared/paths.ts/~/FEED_TABS.html">FEED_TABS</a>.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_followview" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-TypeAlias bg-TypeAlias/15 dark:text-TypeAliasDark dark:bg-TypeAliasDark/15" title="Type Alias">T</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/FollowView.html" title="FollowView">
|
||||
<span>FollowView</span><span> = (<span class="td-ref">FOLLOW_VIEWS</span>)[<span class="td-kw">number</span>]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>One of the <a href="../.././shared/paths.ts/~/FOLLOW_VIEWS.html">FOLLOW_VIEWS</a>.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_pagepath" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-TypeAlias bg-TypeAlias/15 dark:text-TypeAliasDark dark:bg-TypeAliasDark/15" title="Type Alias">T</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/PagePath.html" title="PagePath">
|
||||
<span>PagePath</span><span> = <div class="ml-indent"><span>{ kind<span>: <span class="td-str">"user"</span></span>; username<span>: <span class="td-kw">string</span></span>; rest<span>: <span class="td-kw">string</span>[]</span>; }</span><br /><span><span class="td-op"> | </span>{ kind<span>: <span class="td-str">"dump"</span></span>; username<span>: <span class="td-kw">string</span></span>; slug<span>: <span class="td-kw">string</span></span>; edit<span>: <span class="td-kw">boolean</span></span>; }</span><br /><span><span class="td-op"> | </span>{ kind<span>: <span class="td-str">"playlist"</span></span>; username<span>: <span class="td-kw">string</span></span>; slug<span>: <span class="td-kw">string</span></span>; edit<span>: <span class="td-kw">boolean</span></span>; }</span></div></span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>Returned by <a href="../.././shared/paths.ts/~/parsePagePath.html">parsePagePath</a> for a path under a user. <code>rest</code> holds the
|
||||
segments after <code>/@name</code>, a profile tab and its view.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_playliststab" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-TypeAlias bg-TypeAlias/15 dark:text-TypeAliasDark dark:bg-TypeAliasDark/15" title="Type Alias">T</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/PlaylistsTab.html" title="PlaylistsTab">
|
||||
<span>PlaylistsTab</span><span> = (<span class="td-ref">PLAYLISTS_TABS</span>)[<span class="td-kw">number</span>]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>One of the <a href="../.././shared/paths.ts/~/PLAYLISTS_TABS.html">PLAYLISTS_TABS</a>.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_profiletab" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-TypeAlias bg-TypeAlias/15 dark:text-TypeAliasDark dark:bg-TypeAliasDark/15" title="Type Alias">T</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/ProfileTab.html" title="ProfileTab">
|
||||
<span>ProfileTab</span><span> = (<span class="td-ref">PROFILE_TABS</span>)[<span class="td-kw">number</span>]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>One of the <a href="../.././shared/paths.ts/~/PROFILE_TABS.html">PROFILE_TABS</a>.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_searchtab" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-TypeAlias bg-TypeAlias/15 dark:text-TypeAliasDark dark:bg-TypeAliasDark/15" title="Type Alias">T</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/SearchTab.html" title="SearchTab">
|
||||
<span>SearchTab</span><span> = (<span class="td-ref">SEARCH_TABS</span>)[<span class="td-kw">number</span>]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>One of the <a href="../.././shared/paths.ts/~/SEARCH_TABS.html">SEARCH_TABS</a>.</p>
|
||||
</div></div></div>
|
||||
</div></div>
|
||||
</section>
|
||||
<section class="section" id="shared/paths_ts_variables"><div>
|
||||
<h2 class="anchorable mb-1"><a href="#shared/paths_ts_variables" class="anchor" aria-label="Anchor" tabIndex="-1"><svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 14 14"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<g clip-path="url(#clip0_1081_1237)">
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M6.80328 2.8656C6.68736 2.99 6.62425 3.15454 6.62725 3.32456C6.63025 3.49457 6.69913 3.65678 6.81936 3.77702C6.9396 3.89725 7.10181 3.96613 7.27182 3.96913C7.44184 3.97213 7.60638 3.90902 7.73078 3.7931L8.82453 2.69935C8.98712 2.53676 9.18015 2.40778 9.39259 2.31978C9.60503 2.23179 9.83272 2.1865 10.0627 2.1865C10.2926 2.1865 10.5203 2.23179 10.7327 2.31978C10.9452 2.40778 11.1382 2.53676 11.3008 2.69935C11.4634 2.86194 11.5923 3.05497 11.6803 3.2674C11.7683 3.47984 11.8136 3.70753 11.8136 3.93747C11.8136 4.16741 11.7683 4.3951 11.6803 4.60754C11.5923 4.81998 11.4634 5.013 11.3008 5.1756L9.11328 7.3631C8.95075 7.52581 8.75775 7.65488 8.5453 7.74295C8.33285 7.83102 8.10513 7.87635 7.87516 7.87635C7.64518 7.87635 7.41746 7.83102 7.20501 7.74295C6.99256 7.65488 6.79956 7.52581 6.63703 7.3631C6.51263 7.24718 6.34809 7.18407 6.17807 7.18707C6.00806 7.19007 5.84585 7.25894 5.72561 7.37918C5.60538 7.49942 5.5365 7.66163 5.5335 7.83164C5.5305 8.00165 5.59361 8.1662 5.70953 8.2906C5.99391 8.57501 6.33154 8.80062 6.70312 8.95455C7.0747 9.10847 7.47296 9.18769 7.87516 9.18769C8.27736 9.18769 8.67562 9.10847 9.0472 8.95455C9.41878 8.80062 9.7564 8.57501 10.0408 8.2906L12.2283 6.1031C12.8026 5.52874 13.1253 4.74974 13.1253 3.93747C13.1253 3.12521 12.8026 2.34621 12.2283 1.77185C11.6539 1.19749 10.8749 0.874817 10.0627 0.874817C9.25039 0.874817 8.47139 1.19749 7.89703 1.77185L6.80328 2.8656ZM2.69953 11.3006C2.53682 11.1381 2.40774 10.9451 2.31968 10.7326C2.23161 10.5202 2.18628 10.2924 2.18628 10.0625C2.18628 9.8325 2.23161 9.60477 2.31968 9.39233C2.40774 9.17988 2.53682 8.98688 2.69953 8.82435L4.88703 6.63685C5.04956 6.47414 5.24256 6.34506 5.45501 6.25699C5.66746 6.16893 5.89518 6.1236 6.12516 6.1236C6.35513 6.1236 6.58285 6.16893 6.7953 6.25699C7.00775 6.34506 7.20075 6.47414 7.36328 6.63685C7.48768 6.75277 7.65223 6.81588 7.82224 6.81288C7.99225 6.80988 8.15446 6.741 8.2747 6.62077C8.39494 6.50053 8.46381 6.33832 8.46681 6.1683C8.46981 5.99829 8.4067 5.83375 8.29078 5.70935C8.0064 5.42494 7.66878 5.19933 7.2972 5.0454C6.92562 4.89148 6.52736 4.81225 6.12516 4.81225C5.72296 4.81225 5.3247 4.89148 4.95312 5.0454C4.58154 5.19933 4.24391 5.42494 3.95953 5.70935L1.77203 7.89685C1.19767 8.47121 0.875 9.25021 0.875 10.0625C0.875 10.8747 1.19767 11.6537 1.77203 12.2281C2.34639 12.8025 3.12539 13.1251 3.93766 13.1251C4.74992 13.1251 5.52892 12.8025 6.10328 12.2281L7.19703 11.1343C7.31295 11.0099 7.37606 10.8454 7.37306 10.6754C7.37006 10.5054 7.30119 10.3432 7.18095 10.2229C7.06071 10.1027 6.8985 10.0338 6.72849 10.0308C6.55848 10.0278 6.39393 10.0909 6.26953 10.2068L5.17578 11.3006C5.01325 11.4633 4.82025 11.5924 4.6078 11.6805C4.39535 11.7685 4.16763 11.8138 3.93766 11.8138C3.70768 11.8138 3.47996 11.7685 3.26751 11.6805C3.05506 11.5924 2.86206 11.4633 2.69953 11.3006Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</g>
|
||||
<defs>
|
||||
<clipPath id="clip0_1081_1237">
|
||||
<rect width="14" height="14" fill="white" />
|
||||
</clipPath>
|
||||
</defs>
|
||||
</svg>
|
||||
</a>
|
||||
Variables</h2></div><div class="namespaceSection"><div id="namespace_community_views" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Variable bg-Variable/15 dark:text-VariableDark dark:bg-VariableDark/15" title="Variable">v</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/COMMUNITY_VIEWS.html" title="COMMUNITY_VIEWS">
|
||||
<span>COMMUNITY_VIEWS</span><span>: <span class="td-kw">readonly</span> <span class="td-ref">DigestCadence</span>[]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>The views of the community page, one per digest cadence: the week at
|
||||
<code>/community</code>, the month at <code>/community/monthly</code>.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_feed_tabs" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Variable bg-Variable/15 dark:text-VariableDark dark:bg-VariableDark/15" title="Variable">v</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/FEED_TABS.html" title="FEED_TABS">
|
||||
<span>FEED_TABS</span><span>: <span><span class="td-str">"hot"</span><span class="td-op"> | </span><span class="td-str">"new"</span><span class="td-op"> | </span><span class="td-str">"journal"</span><span class="td-op"> | </span><span class="td-str">"follow"</span></span>[]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>The feed tabs, in the tab bar's order. Each is a path segment: <code>/hot</code> for
|
||||
every dump, <code>/music/hot</code> for a category. They are reserved at the root, so
|
||||
no category can take one.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_follow_views" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Variable bg-Variable/15 dark:text-VariableDark dark:bg-VariableDark/15" title="Variable">v</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/FOLLOW_VIEWS.html" title="FOLLOW_VIEWS">
|
||||
<span>FOLLOW_VIEWS</span><span>: <span><span class="td-str">"users"</span><span class="td-op"> | </span><span class="td-str">"playlists"</span></span>[]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>The views of a <code>follow</code> tab, of what is followed: the users, at the bare
|
||||
tab, or the playlists. A profile's lists them, <code>/@name/follow</code> and
|
||||
<code>/@name/follow/playlists</code>, and a feed's shows their dumps, <code>/follow</code> and
|
||||
<code>/follow/playlists</code>.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_playlists_tabs" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Variable bg-Variable/15 dark:text-VariableDark dark:bg-VariableDark/15" title="Variable">v</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/PLAYLISTS_TABS.html" title="PLAYLISTS_TABS">
|
||||
<span>PLAYLISTS_TABS</span><span>: <span class="td-kw">any</span>[]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>The tabs of the playlists page, in the tab bar's order: each order of every
|
||||
public playlist, <code>?sort=</code>, then the viewer's own playlists, <code>?mine=1</code>,
|
||||
which only a signed-in user is offered.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_profile_tabs" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Variable bg-Variable/15 dark:text-VariableDark dark:bg-VariableDark/15" title="Variable">v</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/PROFILE_TABS.html" title="PROFILE_TABS">
|
||||
<span>PROFILE_TABS</span><span>: <div class="ml-indent"><span><span class="td-str">"dumps"</span></span><br /><span><span class="td-op"> | </span><span class="td-str">"upvoted"</span></span><br /><span><span class="td-op"> | </span><span class="td-str">"playlists"</span></span><br /><span><span class="td-op"> | </span><span class="td-str">"follow"</span></span><br /><span><span class="td-op"> | </span><span class="td-str">"invitees"</span></span><br /><span><span class="td-op"> | </span><span class="td-str">"manage"</span></span></div>[]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>The tabs of a profile, each a segment after <code>/@name</code>. The bare <code>/@name</code> is
|
||||
the overview.</p>
|
||||
</div></div></div>
|
||||
</div><div id="namespace_search_tabs" class="namespaceItem" ><div class="docNodeKindIcon"><div class="text-Variable bg-Variable/15 dark:text-VariableDark dark:bg-VariableDark/15" title="Variable">v</div></div>
|
||||
<div class="namespaceItemContent">
|
||||
<a href="../.././shared/paths.ts/~/SEARCH_TABS.html" title="SEARCH_TABS">
|
||||
<span>SEARCH_TABS</span><span>: <span><span class="td-str">"dumps"</span><span class="td-op"> | </span><span class="td-str">"users"</span><span class="td-op"> | </span><span class="td-str">"playlists"</span></span>[]</span></a><div class="namespaceItemContentDoc"><div class="markdown_summary"><p>The tabs of the search page: the dumps at <code>/search</code>, the others at
|
||||
<code>/search/<tab></code>.</p>
|
||||
</div></div></div>
|
||||
</div></div>
|
||||
</section>
|
||||
</div>
|
||||
</div>
|
||||
</section>
|
||||
</main><div class="toc">
|
||||
<div><div class="usageContent">
|
||||
<h3>Usage</h3><div class="markdown"><pre class="highlight"><code class="language-typescript">import * as mod from "shared/paths.ts";
|
||||
</code><button class="copyButton" data-copy="import * as mod from "shared/paths.ts";
|
||||
"><svg
|
||||
class="copy"
|
||||
width="15"
|
||||
height="15"
|
||||
viewBox="0 0 15 15"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<rect x="2" y="2" width="7" height="7" fill="none" />
|
||||
<rect x="6" y="6" width="7" height="7" fill="none" />
|
||||
<path
|
||||
d="M1.55566 2.7C1.55566 2.03726 2.09292 1.5 2.75566 1.5H8.75566C9.41841 1.5 9.95566 2.03726 9.95566 2.7V5.1H12.3557C13.0184 5.1 13.5557 5.63726 13.5557 6.3V12.3C13.5557 12.9627 13.0184 13.5 12.3557 13.5H6.35566C5.69292 13.5 5.15566 12.9627 5.15566 12.3V9.9H2.75566C2.09292 9.9 1.55566 9.36274 1.55566 8.7V2.7ZM6.35566 9.9V12.3H12.3557V6.3H9.95566V8.7C9.95566 9.36274 9.41841 9.9 8.75566 9.9H6.35566ZM8.75566 8.7V2.7H2.75566V8.7H8.75566Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</svg>
|
||||
<svg
|
||||
class="check"
|
||||
width="15"
|
||||
height="15"
|
||||
viewBox="0 0 24 24"
|
||||
stroke-width="2"
|
||||
stroke="currentColor"
|
||||
fill="none"
|
||||
stroke-linecap="round"
|
||||
stroke-linejoin="round"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path stroke="none" d="M0 0h24v24H0z" fill="none" />
|
||||
<path d="M5 12l5 5l10 -10" />
|
||||
</svg>
|
||||
</button><code></code></pre>
|
||||
</div></div><nav class="topSymbols">
|
||||
<h3>Symbols</h3>
|
||||
<ul><li>
|
||||
<a href="../.././api/middleware/auth.ts/~/AuthState.html" title="AuthState"><div class="docNodeKindIcon"><div class="text-Interface bg-Interface/15 dark:text-InterfaceDark dark:bg-InterfaceDark/15" title="Interface">I</div></div>
|
||||
<span class="hover:bg-Interface/15 hover:bg-InterfaceDark/15">
|
||||
AuthState
|
||||
</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a href="../.././api/middleware/auth.ts/~/AuthContext.html" title="AuthContext"><div class="docNodeKindIcon"><div class="text-TypeAlias bg-TypeAlias/15 dark:text-TypeAliasDark dark:bg-TypeAliasDark/15" title="Type Alias">T</div></div>
|
||||
<span class="hover:bg-TypeAlias/15 hover:bg-TypeAliasDark/15">
|
||||
AuthContext
|
||||
</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a href="../.././api/middleware/auth.ts/~/authMiddleware.html" title="authMiddleware"><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<span class="hover:bg-Function/15 hover:bg-FunctionDark/15">
|
||||
authMiddleware
|
||||
</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a href="../.././api/middleware/auth.ts/~/requirePermission.html" title="requirePermission"><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<span class="hover:bg-Function/15 hover:bg-FunctionDark/15">
|
||||
requirePermission
|
||||
</span>
|
||||
</a>
|
||||
</li><li>
|
||||
<a href="../.././api/middleware/error.ts/~/errorMiddleware.html" title="errorMiddleware"><div class="docNodeKindIcon"><div class="text-Function bg-Function/15 dark:text-FunctionDark dark:bg-FunctionDark/15" title="Function">f</div></div>
|
||||
<span class="hover:bg-Function/15 hover:bg-FunctionDark/15">
|
||||
errorMiddleware
|
||||
</span>
|
||||
</a>
|
||||
</li></ul><a class="flex items-center gap-0.5" href="../.././all_symbols.html">
|
||||
<span class="leading-none">view all 1307 symbols</span><svg
|
||||
width="16"
|
||||
height="16"
|
||||
viewBox="0 0 16 16"
|
||||
fill="none"
|
||||
xmlns="http://www.w3.org/2000/svg"
|
||||
>
|
||||
<path
|
||||
fill-rule="evenodd"
|
||||
clip-rule="evenodd"
|
||||
d="M5.76748 11.8159C5.5378 11.577 5.54525 11.1972 5.78411 10.9675L8.93431 8L5.78411 5.0325C5.54525 4.80282 5.5378 4.423 5.76748 4.18413C5.99715 3.94527 6.37698 3.93782 6.61584 4.1675L10.2158 7.5675C10.3335 7.68062 10.4 7.83679 10.4 8C10.4 8.16321 10.3335 8.31938 10.2158 8.4325L6.61584 11.8325C6.37698 12.0622 5.99715 12.0547 5.76748 11.8159Z"
|
||||
fill="currentColor"
|
||||
/>
|
||||
</svg>
|
||||
</a></nav><nav class="documentNavigation">
|
||||
<h3>Document Navigation</h3><ul><li><a href="#shared/paths_ts_functions" title="Functions">Functions</a></li><li><ul><li><a href="#namespace_categorypath" title="categoryPath">categoryPath</a></li><li><a href="#namespace_communitypath" title="communityPath">communityPath</a></li><li><a href="#namespace_dumppath" title="dumpPath">dumpPath</a></li><li><a href="#namespace_feedpath" title="feedPath">feedPath</a></li><li><a href="#namespace_parsepagepath" title="parsePagePath">parsePagePath</a></li><li><a href="#namespace_parseplayliststab" title="parsePlaylistsTab">parsePlaylistsTab</a></li><li><a href="#namespace_playlistpath" title="playlistPath">playlistPath</a></li><li><a href="#namespace_playlistsortquery" title="playlistSortQuery">playlistSortQuery</a></li><li><a href="#namespace_playlistspath" title="playlistsPath">playlistsPath</a></li><li><a href="#namespace_searchpath" title="searchPath">searchPath</a></li><li><a href="#namespace_userpath" title="userPath">userPath</a></li></ul></li><li><a href="#shared/paths_ts_interfaces" title="Interfaces">Interfaces</a></li><li><ul><li><a href="#namespace_owneditem" title="OwnedItem">OwnedItem</a></li></ul></li><li><a href="#shared/paths_ts_type-aliases" title="Type Aliases">Type Aliases</a></li><li><ul><li><a href="#namespace_feedtab" title="FeedTab">FeedTab</a></li><li><a href="#namespace_followview" title="FollowView">FollowView</a></li><li><a href="#namespace_pagepath" title="PagePath">PagePath</a></li><li><a href="#namespace_playliststab" title="PlaylistsTab">PlaylistsTab</a></li><li><a href="#namespace_profiletab" title="ProfileTab">ProfileTab</a></li><li><a href="#namespace_searchtab" title="SearchTab">SearchTab</a></li></ul></li><li><a href="#shared/paths_ts_variables" title="Variables">Variables</a></li><li><ul><li><a href="#namespace_community_views" title="COMMUNITY_VIEWS">COMMUNITY_VIEWS</a></li><li><a href="#namespace_feed_tabs" title="FEED_TABS">FEED_TABS</a></li><li><a href="#namespace_follow_views" title="FOLLOW_VIEWS">FOLLOW_VIEWS</a></li><li><a href="#namespace_playlists_tabs" title="PLAYLISTS_TABS">PLAYLISTS_TABS</a></li><li><a href="#namespace_profile_tabs" title="PROFILE_TABS">PROFILE_TABS</a></li><li><a href="#namespace_search_tabs" title="SEARCH_TABS">SEARCH_TABS</a></li></ul></li></ul></nav></div>
|
||||
</div></div>
|
||||
</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user