mirror of
https://github.com/firestar5683/StarPilot.git
synced 2026-11-08 13:33:42 +08:00
00364fd645
Separate Galaxy authentication and local access policy from web presentation. Co-authored-by: Danny <dannyirwin31@yahoo.com> Co-authored-by: Prabhaav Pillai <prabhaav@msu.edu> Co-authored-by: dirwin31 <83434411+dirwin31@users.noreply.github.com> Co-authored-by: firestarsdog <229254897+firestarsdog@users.noreply.github.com>
11 lines
626 B
JavaScript
11 lines
626 B
JavaScript
// Centered page-level loading, empty, and unavailable states. Inline feedback uses GxNotice.
|
|
export const GxState = {
|
|
name: "GxState",
|
|
props: { loading: Boolean, title: String, tone: { type: String, default: "info" } },
|
|
template: `<section class="gx-card gx-message" :role="tone === 'danger' ? 'alert' : 'status'" :aria-busy="loading || undefined">
|
|
<span v-if="loading" class="gx-spinner" aria-hidden="true"></span>
|
|
<h3 v-if="title">{{ title }}</h3><div class="gx-message__body"><slot /></div>
|
|
<div v-if="$slots.actions" class="gx-actions gx-message__actions"><slot name="actions" /></div>
|
|
</section>`,
|
|
}
|