Skip to content

ServerSidebar

A Vue component.

File: src/components/ServerSidebar.vue

Overview

Props

NameTypeDefaultRequiredDescription
serversArrayundefinedNo description

Props Details

servers

No description available.

  • Type: Array
  • Required: Yes
  • Default: undefined

Events

NameParametersDescription
show-public-serversbooleanNo description
switch-to-activitypubunknownNo description
switch-to-chatunknownNo description

Event Details

show-public-servers

No description available.

Parameters: boolean

switch-to-activitypub

No description available.

Parameters: unknown

switch-to-chat

No description available.

Parameters: unknown

Slots

This component has no slots.

Methods

This component exposes no public methods.

Usage Example

vue
<template>
  <ServerSidebar
    :servers="[]"
    @show-public-servers="handleShowPublicServers"
    @switch-to-activitypub="handleSwitchToActivitypub"
    @switch-to-chat="handleSwitchToChat" />
</template>

<script setup lang="ts">
const handleShowPublicServers = (data: boolean) => {
  // Handle show-public-servers event
}

const handleSwitchToActivitypub = (data: unknown) => {
  // Handle switch-to-activitypub event
}

const handleSwitchToChat = (data: unknown) => {
  // Handle switch-to-chat event
}
</script>

File Location

src/components/ServerSidebar.vue


This documentation was automatically generated from the component source code.

Released under the AGPL-3.0 License.