mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-25 03:17:38 -07:00
Manually apply
This commit is contained in:
parent
f709039845
commit
5281f30287
1 changed files with 6 additions and 0 deletions
|
@ -4,6 +4,7 @@
|
||||||
v-tooltip="capitalize(instance.softwareName)"
|
v-tooltip="capitalize(instance.softwareName)"
|
||||||
ref="ticker"
|
ref="ticker"
|
||||||
:style="bg"
|
:style="bg"
|
||||||
|
@click.stop="os.pageWindow(instanceInfoUrl)"
|
||||||
>
|
>
|
||||||
<img class="icon" :src="getInstanceIcon(instance)" aria-hidden="true" />
|
<img class="icon" :src="getInstanceIcon(instance)" aria-hidden="true" />
|
||||||
<span class="name">{{ instance.name }}</span>
|
<span class="name">{{ instance.name }}</span>
|
||||||
|
@ -14,6 +15,7 @@
|
||||||
import { instanceName } from "@/config";
|
import { instanceName } from "@/config";
|
||||||
import { instance as Instance } from "@/instance";
|
import { instance as Instance } from "@/instance";
|
||||||
import { getProxiedImageUrlNullable } from "@/scripts/media-proxy";
|
import { getProxiedImageUrlNullable } from "@/scripts/media-proxy";
|
||||||
|
import * as os from "@/os";
|
||||||
|
|
||||||
const props = defineProps<{
|
const props = defineProps<{
|
||||||
instance?: {
|
instance?: {
|
||||||
|
@ -22,6 +24,7 @@ const props = defineProps<{
|
||||||
themeColor?: string;
|
themeColor?: string;
|
||||||
softwareName?: string;
|
softwareName?: string;
|
||||||
};
|
};
|
||||||
|
host: string | null;
|
||||||
}>();
|
}>();
|
||||||
|
|
||||||
let ticker = $ref<HTMLElement | null>(null);
|
let ticker = $ref<HTMLElement | null>(null);
|
||||||
|
@ -38,6 +41,9 @@ const instance = props.instance ?? {
|
||||||
softwareName: Instance.softwareName || "Iceshrimp",
|
softwareName: Instance.softwareName || "Iceshrimp",
|
||||||
};
|
};
|
||||||
|
|
||||||
|
const instanceInfoUrl =
|
||||||
|
props.host == null ? "/about" : `/instance-info/${props.host}`;
|
||||||
|
|
||||||
const capitalize = (s: string) => s && s[0].toUpperCase() + s.slice(1);
|
const capitalize = (s: string) => s && s[0].toUpperCase() + s.slice(1);
|
||||||
|
|
||||||
const computedStyle = getComputedStyle(document.documentElement);
|
const computedStyle = getComputedStyle(document.documentElement);
|
||||||
|
|
Loading…
Reference in a new issue