PageSourceSearch

https://joinloops.org/_nuxt/L9-k5fRU.js

js joinloops.org collected 2026-09-24 09:21:01 UTC 5,812 bytes, 34 lines download raw bytes

1import{_ as p}from"./BTALtBHi.js";import{_ as u}from"./DCekyo-p.js";import{_ as m}from"./CxGLA81V.js";import{_ as f}from"./D40zcxj2.js";import{d as b}from"./DVdlW3MI.js";import{a as h}from"./BZinB5Kq.js";import{e as y,w as s,o as g,a as e,d as n,b as a}from"./BNkJtGqZ.js";import"./DUR2zDW2.js";const _={class:"space-y-8"},x={class:"grid grid-cols-1 gap-8 xl:grid-cols-2"},k={class:"space-y-3"},w={class:"space-y-3"},v={class:"space-y-3"},L=`{
2  "data": {
3    "id": "1",
4    "name": "dansup",
5    "avatar": "https://loopsusercontent.com/avatars/1/y6i8g7330.jpg",
6    "username": "dansup",
7    "is_owner": true,
8    "local": true,
9    "bio": "Currently building @pixelfed, @loops, @supapp, @fedidb, and more.",
10    "post_count": 96,
11    "follower_count": 3610,
12    "following_count": 83,
13    "url": "https://loops.video/@dansup",
14    "remote_url": null,
15    "is_blocking": null,
16    "manually_approves_followers": false,
17    "links": [
18      {
19        "url": "apps.apple.com/us/app/loops",
20        "link": "https://loops.video/link/...",
21        "is_verified": false
22      },
23      {
24        "url": "joinloops.org/team",
25        "link": "https://loops.video/link/...",
26        "is_verified": false
27      }
28    ],
29    "has_playlists": true,
30    "is_admin": true,
31    "created_at": "2024-06-06T10:20:02+00:00",
32    "likes_count": 4361
33  }
34}`,j={__name:"account",setup(R){b("Logo",{}),h({title:"Loops - Account Resource",description:"The Account resource returned by the Loops API."});const l=[{name:"id",type:"string",nullable:!1,description:"Unique identifier for the account."},{name:"name",type:"string",nullable:!1,description:"Display name shown on the profile. Falls back to the username when unset."},{name:"avatar",type:"string",nullable:!1,description:"URL of the account avatar."},{name:"username",type:"string",nullable:!1,description:"The account handle."},{name:"is_owner",type:"boolean",nullable:!1,description:"Whether the authenticated user owns this account."},{name:"local",type:"boolean",nullable:!1,description:"Whether the account is hosted on this instance."},{name:"bio",type:"string",nullable:!0,description:"Profile bio text."},{name:"post_count",type:"integer",nullable:!1,description:"Number of posts published by the account."},{name:"follower_count",type:"integer",nullable:!1,description:"Number of accounts following this account."},{name:"following_count",type:"integer",nullable:!1,description:"Number of accounts this account follows."},{name:"url",type:"string",nullable:!1,description:"Canonical profile URL."},{name:"remote_url",type:"string",nullable:!0,description:"Profile URL on the origin instance for remote accounts; null for local accounts."},{name:"is_blocking",type:"boolean",nullable:!0,description:"Whether the authenticated user is blocking this account. null when not applicable, e.g. your own account."},{name:"manually_approves_followers",type:"boolean",nullable:!1,description:"Whether follow requests must be approved manually (private account)."},{name:"links",type:"array",nullable:!1,description:"Profile links. Each entry is a Link object (see below)."},{name:"has_playlists",type:"boolean",nullable:!1,description:"Whether the account has any playlists."},{name:"is_admin",type:"boolean",nullable:!1,description:"Whether the account is an instance administrator."},{name:"created_at",type:"string",nullable:!1,description:"ISO 8601 timestamp of account creation."},{name:"likes_count",type:"integer",nullable:!1,description:"Total likes received on posts by this account."}],i=[{name:"url",type:"string",nullable:!1,description:"The destination URL as entered by the account owner."},{name:"link",type:"string",nullable:!1,description:"Loops redirect URL that wraps the destination for click-through."},{name:"is_verified",type:"boolean",nullable:!1,description:"Whether the link has been verified as owned by the account."}];return(C,t)=>{const o=p,r=u,c=m,d=f;return g(),y(d,{wide:""},{default:s(()=>[e("div",_,[t[5]||(t[5]=e("div",null,[e("span",{class:"inline-flex items-center px-2.5 py-1 text-xs font-bold rounded-md bg-pink-100 text-brand-700 dark:bg-brand-500/10 dark:text-brand-300"},"RESOURCE"),e("h1",{class:"mt-3 text-3xl font-extrabold text-gray-900 dark:text-white"},"Account"),e("p",{class:"mt-3 text-base leading-relaxed text-gray-600 dark:text-gray-300"},[n(" Represents a Loops account. Returned by account endpoints and embedded wherever an author or user is referenced. Serialized by "),e("code",{class:"px-1 font-mono text-sm rounded bg-gray-100 text-brand-600 dark:bg-gray-800 dark:text-brand-400"},"AccountResource"),n(". ")])],-1)),e("div",x,[e("div",k,[t[0]||(t[0]=e("h2",{class:"text-sm font-bold tracking-wider text-gray-400 uppercase dark:text-gray-500"},"Fields",-1)),a(o,{fields:l})]),e("div",w,[t[1]||(t[1]=e("h2",{class:"text-sm font-bold tracking-wider text-gray-400 uppercase dark:text-gray-500"},"Example",-1)),a(r,{label:"Account",code:L})])]),e("div",v,[t[2]||(t[2]=e("h2",{class:"text-sm font-bold tracking-wider text-gray-400 uppercase dark:text-gray-500"},"Link object",-1)),t[3]||(t[3]=e("p",{class:"text-sm text-gray-600 dark:text-gray-300"},[n(" Each entry in the "),e("code",{class:"px-1 font-mono text-sm rounded bg-gray-100 text-brand-600 dark:bg-gray-800 dark:text-brand-400"},"links"),n(" array has this shape: ")],-1)),a(o,{fields:i})]),a(c,{type:"info"},{default:s(()=>[...t[4]||(t[4]=[e("strong",{class:"font-semibold text-sky-900 dark:text-sky-100"},"Some fields are relative to the viewer.",-1),e("code",{class:"px-1 font-mono text-xs"},"is_owner",-1),n(" and ",-1),e("code",{class:"px-1 font-mono text-xs"},"is_blocking",-1),n(" describe the relationship between the authenticated request and this account, so they change depending on who is asking. ",-1)])]),_:1})])]),_:1})}}};export{j as default};

Line numbers count LF bytes from the start of the resource, as the search results do. Vendor segments are library code the classifier recognised; they are stored but not indexed. Bytes are shown as Latin1 characters, one per byte.