Skip to content

ServerCard

A Vue component.

File: src/components/common/ServerCard.vue

Overview

Props

NameTypeDefaultRequiredDescription
serverPublicServerWithStatsundefinedNo description
isJoinedbooleanundefinedNo description
isLoadingbooleanfalseNo description

Props Details

server

No description available.

  • Type: PublicServerWithStats
  • Required: Yes
  • Default: undefined

isJoined

No description available.

  • Type: boolean
  • Required: Yes
  • Default: undefined

isLoading

No description available.

  • Type: boolean
  • Required: No
  • Default: false

Events

NameParametersDescription
joinstringNo description
leavestringNo description
viewOwnerProfilestringNo description

Event Details

join

No description available.

Parameters: string

leave

No description available.

Parameters: string

viewOwnerProfile

No description available.

Parameters: string

Slots

This component has no slots.

Methods

This component exposes no public methods.

Usage Example

vue
<template>
  <ServerCard
    :server="undefined"
    :isJoined="true"
    @join="handleJoin"
    @leave="handleLeave"
    @viewOwnerProfile="handleViewOwnerProfile" />
</template>

<script setup lang="ts">
const handleJoin = (data: string) => {
  // Handle join event
}

const handleLeave = (data: string) => {
  // Handle leave event
}

const handleViewOwnerProfile = (data: string) => {
  // Handle viewOwnerProfile event
}
</script>

File Location

src/components/common/ServerCard.vue


This documentation was automatically generated from the component source code.

Released under the AGPL-3.0 License.