mirror of
https://iceshrimp.dev/limepotato/jormungandr-bite.git
synced 2024-11-21 17:37:29 -07:00
chore: formatting
This commit is contained in:
parent
08f31cce4c
commit
8dda62f953
10 changed files with 53 additions and 48 deletions
|
@ -1,6 +1,6 @@
|
|||
{
|
||||
"name": "calckey",
|
||||
"version": "14.0.0-dev33",
|
||||
"version": "14.0.0-dev34",
|
||||
"codename": "aqua",
|
||||
"repository": {
|
||||
"type": "git",
|
||||
|
|
|
@ -1,9 +1,18 @@
|
|||
<template>
|
||||
<div v-if="visible" class="info" :class="{ warn, card }">
|
||||
<i v-if="warn" class="ph-warning ph-bold ph-lg"></i>
|
||||
<i v-else class="ph-bold ph-lg" :class="icon ? `ph-${icon}` : 'ph-info'"></i>
|
||||
<i
|
||||
v-else
|
||||
class="ph-bold ph-lg"
|
||||
:class="icon ? `ph-${icon}` : 'ph-info'"
|
||||
></i>
|
||||
<slot></slot>
|
||||
<button v-if="closeable" v-tooltip="i18n.ts.close" class="_button close" @click.stop="close">
|
||||
<button
|
||||
v-if="closeable"
|
||||
v-tooltip="i18n.ts.close"
|
||||
class="_button close"
|
||||
@click.stop="close"
|
||||
>
|
||||
<i class="ph-x ph-bold ph-lg"></i>
|
||||
</button>
|
||||
</div>
|
||||
|
@ -30,7 +39,6 @@ function close() {
|
|||
visible.value = false;
|
||||
emit("close");
|
||||
}
|
||||
|
||||
</script>
|
||||
|
||||
<style lang="scss" scoped>
|
||||
|
|
|
@ -1,8 +1,11 @@
|
|||
<template>
|
||||
<MkInfo v-if="tlHint && !tlHintClosed" :closeable="true" class="_gap" @close="closeHint">
|
||||
<I18n
|
||||
:src="tlHint"
|
||||
>
|
||||
<MkInfo
|
||||
v-if="tlHint && !tlHintClosed"
|
||||
:closeable="true"
|
||||
class="_gap"
|
||||
@close="closeHint"
|
||||
>
|
||||
<I18n :src="tlHint">
|
||||
<template #icon></template>
|
||||
</I18n>
|
||||
</MkInfo>
|
||||
|
@ -165,19 +168,19 @@ if (props.src === "antenna") {
|
|||
|
||||
function closeHint() {
|
||||
switch (props.src) {
|
||||
case 'home':
|
||||
case "home":
|
||||
defaultStore.set("tlHomeHintClosed", true);
|
||||
break;
|
||||
case 'local':
|
||||
case "local":
|
||||
defaultStore.set("tlLocalHintClosed", true);
|
||||
break;
|
||||
case 'recommended':
|
||||
case "recommended":
|
||||
defaultStore.set("tlRecommendedHintClosed", true);
|
||||
break;
|
||||
case 'social':
|
||||
case "social":
|
||||
defaultStore.set("tlSocialHintClosed", true);
|
||||
break;
|
||||
case 'global':
|
||||
case "global":
|
||||
defaultStore.set("tlGlobalHintClosed", true);
|
||||
break;
|
||||
}
|
||||
|
|
|
@ -7,7 +7,9 @@
|
|||
:tabs="headerTabs"
|
||||
/></template>
|
||||
<MkSpacer :content-max="700">
|
||||
<MkInfo class="_gap" :warn="true">{{ i18n.ts.channelFederationWarn }}</MkInfo>
|
||||
<MkInfo class="_gap" :warn="true">{{
|
||||
i18n.ts.channelFederationWarn
|
||||
}}</MkInfo>
|
||||
<swiper
|
||||
:round-lengths="true"
|
||||
:touch-angle="25"
|
||||
|
|
|
@ -8,11 +8,7 @@
|
|||
/></template>
|
||||
<MkSpacer :content-max="700">
|
||||
<div class="ieepwinx">
|
||||
<MkInfo
|
||||
class="_gap"
|
||||
:icon="'flying-saucer'"
|
||||
:card="true"
|
||||
>
|
||||
<MkInfo class="_gap" :icon="'flying-saucer'" :card="true">
|
||||
<p>{{ i18n.ts.antennasDesc }}</p>
|
||||
<MkButton
|
||||
:link="true"
|
||||
|
@ -24,10 +20,7 @@
|
|||
>
|
||||
</MkInfo>
|
||||
<div class="">
|
||||
<MkPagination
|
||||
ref="list"
|
||||
:pagination="pagination"
|
||||
>
|
||||
<MkPagination ref="list" :pagination="pagination">
|
||||
<template #default="{ items }">
|
||||
<div v-for="antenna in items" :key="antenna.id">
|
||||
<MkA
|
||||
|
@ -35,7 +28,9 @@
|
|||
:link="true"
|
||||
:to="`/timeline/antenna/${antenna.id}`"
|
||||
>
|
||||
<i class="ph-flying-saucer ph-bold ph-lg"></i
|
||||
<i
|
||||
class="ph-flying-saucer ph-bold ph-lg"
|
||||
></i
|
||||
><i
|
||||
:class="`${
|
||||
antenna.hasUnreadNote
|
||||
|
|
|
@ -14,10 +14,7 @@
|
|||
class="list"
|
||||
>
|
||||
<template #empty>
|
||||
<MkInfo
|
||||
:icon="'paperclip'"
|
||||
:card="true"
|
||||
>
|
||||
<MkInfo :icon="'paperclip'" :card="true">
|
||||
<p>{{ i18n.ts.clipsDesc }}</p>
|
||||
</MkInfo>
|
||||
</template>
|
||||
|
|
|
@ -8,11 +8,7 @@
|
|||
/></template>
|
||||
<MkSpacer :content-max="700">
|
||||
<div class="qkcjvfiv">
|
||||
<MkInfo
|
||||
class="_gap"
|
||||
:icon="'list-bullets'"
|
||||
:card="true"
|
||||
>
|
||||
<MkInfo class="_gap" :icon="'list-bullets'" :card="true">
|
||||
<p>{{ i18n.ts.listsDesc }}</p>
|
||||
<MkButton primary class="add" @click="create"
|
||||
><i class="ph-plus ph-bold ph-lg"></i>
|
||||
|
|
|
@ -3,16 +3,16 @@ import { i18n } from "@/i18n";
|
|||
import { mainRouter } from "@/router";
|
||||
|
||||
export async function search() {
|
||||
const searchOptions =
|
||||
"Advanced search operators\n" +
|
||||
"from:user => filter by user\n" +
|
||||
"has:image/video/audio/text/file => filter by attachment types\n" +
|
||||
"domain:domain.com => filter by domain\n" +
|
||||
"before:Date => show posts made before Date\n" +
|
||||
"after:Date => show posts made after Date\n" +
|
||||
'"text" => get posts with exact text between quotes\n' +
|
||||
"filter:following => show results only from users you follow\n" +
|
||||
"filter:followers => show results only from followers\n";
|
||||
// const searchOptions =
|
||||
// "Advanced search operators\n" +
|
||||
// "from:user => filter by user\n" +
|
||||
// "has:image/video/audio/text/file => filter by attachment types\n" +
|
||||
// "domain:domain.com => filter by domain\n" +
|
||||
// "before:Date => show posts made before Date\n" +
|
||||
// "after:Date => show posts made after Date\n" +
|
||||
// '"text" => get posts with exact text between quotes\n' +
|
||||
// "filter:following => show results only from users you follow\n" +
|
||||
// "filter:followers => show results only from followers\n";
|
||||
|
||||
const { canceled, result: query } = await os.inputText({
|
||||
title: i18n.ts.search,
|
||||
|
|
|
@ -9,10 +9,10 @@
|
|||
<div :class="$style.iconContainer">
|
||||
<img
|
||||
:src="
|
||||
$instance.iconUrl ||
|
||||
$instance.faviconUrl ||
|
||||
'/favicon.ico'
|
||||
"
|
||||
$instance.iconUrl ||
|
||||
$instance.faviconUrl ||
|
||||
'/favicon.ico'
|
||||
"
|
||||
alt="Instance logo"
|
||||
:class="$style.icon"
|
||||
/>
|
||||
|
|
|
@ -1,6 +1,10 @@
|
|||
<template>
|
||||
<div class="verusivbr">
|
||||
<XPie v-tooltip="i18n.ts.meiliIndexCount" class="pie" :value="progress" />
|
||||
<XPie
|
||||
v-tooltip="i18n.ts.meiliIndexCount"
|
||||
class="pie"
|
||||
:value="progress"
|
||||
/>
|
||||
<div>
|
||||
<p><i class="ph-file-search ph-bold ph-lg"></i>MeiliSearch</p>
|
||||
<p>{{ i18n.ts._widgets.meiliStatus }}: {{ available }}</p>
|
||||
|
|
Loading…
Reference in a new issue