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