3 <div class="card" :class="item.class">
4 <a :href="item.url" :target="item.target" rel="noreferrer">
5 <div class="card-content">
7 <div v-if="item.logo" class="media-left">
8 <figure class="image is-48x48">
9 <img :src="item.logo" :alt="`${item.name} logo`" />
12 <div v-if="item.icon" class="media-left">
13 <figure class="image is-48x48">
14 <i style="font-size: 35px" :class="['fa-fw', item.icon]"></i>
17 <div class="media-content">
18 <p class="title is-4">{{ item.name }}</p>
19 <p class="subtitle is-6">{{ item.subtitle }}</p>
24 v-bind:class="status.protection_enabled ? 'enabled' : 'disabled'"
26 {{ status.protection_enabled }}
29 <div class="tag" :class="item.tagstyle" v-if="item.tag">
30 <strong class="tag-text">#{{ item.tag }}</strong>
49 created: function () {
53 fetchStatus: async function () {
54 this.status = await fetch(`${this.item.url}/control/status`{
55 credentials: 'include',
57 (response) => response.json()
64 <style scoped lang="scss">
70 color: var(--text-title);
73 background-color: #94e185;
74 border-color: #78d965;
75 box-shadow: 0px 0px 4px 1px #94e185;
79 background-color: #c9404d;
80 border-color: #c42c3b;
81 box-shadow: 0px 0px 4px 1px #c9404d;
86 display: inline-block;
90 border: 1px solid #000;