Sync branch magefile with main #104308

Merged
Sybren A. Stüvel merged 85 commits from abelli/flamenco:magefile into magefile 2024-05-13 16:26:32 +02:00
Showing only changes of commit 7bf121e93e - Show all commits

View File

@ -1,16 +1,36 @@
<template> <template>
<span id="farmstatus" v-if="status" <span id="farmstatus" v-if="status"
>Farm status: <span :class="'farm-status-' + status">{{ status }}</span></span >Farm status:
<span :class="'farm-status-' + status" :title="explanation">{{ status }}</span></span
> >
</template> </template>
<script setup> <script setup>
import { computed } from 'vue';
const props = defineProps(['status']); const props = defineProps(['status']);
const expanations = {
active: 'Actively working on a job.',
idle: 'Workers are awake and ready for work.',
waiting: 'Work has been queued, but all workers are asleep.',
asleep: 'All workers are asleep, and no work has been queued.',
inoperative: 'Cannot work: there are no workers, or all are offline.',
starting: 'Farm is starting up.',
};
const explanation = computed(() => {
return expanations[props.status] || '';
});
</script> </script>
<style> <style>
span#farmstatus { span#farmstatus {
margin: 0 auto; margin: 0 auto;
cursor: default;
}
span#farmstatus span {
cursor: help;
} }
.farm-status-starting { .farm-status-starting {
color: var(--color-farm-status-starting); color: var(--color-farm-status-starting);