mirror of
https://codeberg.org/yeentown/barkey
synced 2024-11-21 13:15:11 +00:00
change default account and experience settings, and disable like button
Reviewed-on: https://codeberg.org/yeentown/barkey/pulls/5
This commit is contained in:
commit
0954b098a4
7 changed files with 30 additions and 24 deletions
|
@ -0,0 +1,15 @@
|
|||
export class RelationshipsPrivateByDefault1731198456912 {
|
||||
name = 'RelationshipsPrivateByDefault1731198456912'
|
||||
|
||||
async up(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "publicReactions" SET DEFAULT false`);
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followingVisibility" SET DEFAULT 'private'`);
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" SET DEFAULT 'private'`);
|
||||
}
|
||||
|
||||
async down(queryRunner) {
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followersVisibility" SET DEFAULT 'public'`);
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "followingVisibility" SET DEFAULT 'public'`);
|
||||
await queryRunner.query(`ALTER TABLE "user_profile" ALTER COLUMN "publicReactions" SET DEFAULT true`);
|
||||
}
|
||||
}
|
|
@ -104,19 +104,19 @@ export class MiUserProfile {
|
|||
public emailNotificationTypes: string[];
|
||||
|
||||
@Column('boolean', {
|
||||
default: true,
|
||||
default: false,
|
||||
})
|
||||
public publicReactions: boolean;
|
||||
|
||||
@Column('enum', {
|
||||
enum: followingVisibilities,
|
||||
default: 'public',
|
||||
default: 'private',
|
||||
})
|
||||
public followingVisibility: typeof followingVisibilities[number];
|
||||
|
||||
@Column('enum', {
|
||||
enum: followersVisibilities,
|
||||
default: 'public',
|
||||
default: 'private',
|
||||
})
|
||||
public followersVisibility: typeof followersVisibilities[number];
|
||||
|
||||
|
|
|
@ -153,9 +153,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
>
|
||||
<i class="ph-quotes ph-bold ph-lg"></i>
|
||||
</button>
|
||||
<button v-if="appearNote.myReaction == null && appearNote.reactionAcceptance !== 'likeOnly'" ref="likeButton" :class="$style.footerButton" class="_button" @click.stop @click="like()">
|
||||
<i class="ph-heart ph-bold ph-lg"></i>
|
||||
</button>
|
||||
<button ref="reactButton" :class="$style.footerButton" class="_button" @click="toggleReact()" @click.stop>
|
||||
<i v-if="appearNote.reactionAcceptance === 'likeOnly' && appearNote.myReaction != null" class="ti ti-heart-filled" style="color: var(--love);"></i>
|
||||
<i v-else-if="appearNote.myReaction != null" class="ti ti-minus" style="color: var(--accent);"></i>
|
||||
|
|
|
@ -161,9 +161,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
>
|
||||
<i class="ph-quotes ph-bold ph-lg"></i>
|
||||
</button>
|
||||
<button v-if="appearNote.myReaction == null && appearNote.reactionAcceptance !== 'likeOnly'" ref="likeButton" :class="$style.noteFooterButton" class="_button" @mousedown="like()">
|
||||
<i class="ph-heart ph-bold ph-lg"></i>
|
||||
</button>
|
||||
<button ref="reactButton" :class="$style.noteFooterButton" class="_button" @click="toggleReact()">
|
||||
<i v-if="appearNote.reactionAcceptance === 'likeOnly' && appearNote.myReaction != null" class="ti ti-heart-filled" style="color: var(--love);"></i>
|
||||
<i v-else-if="appearNote.myReaction != null" class="ti ti-minus" style="color: var(--accent);"></i>
|
||||
|
|
|
@ -56,9 +56,6 @@ SPDX-License-Identifier: AGPL-3.0-only
|
|||
<button v-else class="_button" :class="$style.noteFooterButton" disabled>
|
||||
<i class="ph-prohibit ph-bold ph-lg"></i>
|
||||
</button>
|
||||
<button v-if="note.myReaction == null && note.reactionAcceptance !== 'likeOnly'" ref="likeButton" :class="$style.noteFooterButton" class="_button" @mousedown="like()">
|
||||
<i class="ph-heart ph-bold ph-lg"></i>
|
||||
</button>
|
||||
<button v-if="note.myReaction == null" ref="reactButton" :class="$style.noteFooterButton" class="_button" @mousedown="react()">
|
||||
<i v-if="note.reactionAcceptance === 'likeOnly'" class="ph-heart ph-bold ph-lg"></i>
|
||||
<i v-else class="ph-smiley ph-bold ph-lg"></i>
|
||||
|
|
|
@ -6,12 +6,12 @@
|
|||
//store the URL and if its none of these its a custom one
|
||||
export const searchEngineMap = {
|
||||
//The first one is the default search engine
|
||||
'https://www.google.com/search?q={query}': 'Google',
|
||||
'https://duckduckgo.com/?q={query}': 'Duckduckgo',
|
||||
'https://www.bing.com/search?q={query}': 'Bing',
|
||||
'https://search.yahoo.com/search?p={query}': 'Yahoo',
|
||||
'https://www.ecosia.org/search?q={query}': 'Ecosia',
|
||||
'https://www.qwant.com/?q={query}': 'Qwant',
|
||||
'https://search.aol.com/aol/search?q={query}': 'AOL',
|
||||
'https://yandex.com/search?text={query}': 'Yandex',
|
||||
'https://e621.net/posts?tags={query}': 'e621',
|
||||
'https://www.furaffinity.net/search/?q={query}': 'FurAffinity',
|
||||
'https://www.sofurry.com/browse/search?search={query}': 'SoFurry',
|
||||
'https://www.weasyl.com/search?q={query}': 'Weasyl',
|
||||
'https://duckduckgo.com/?q={query}': 'Ask Jeeves',
|
||||
'https://www.qwant.com/?q={query}': 'AltaVista',
|
||||
'https://wiby.me/?q={query}': 'JumpStation',
|
||||
'https://yandex.com/search?text={query}': 'Yandex', // because nothing's funnier than Yandex
|
||||
};
|
||||
|
|
|
@ -146,7 +146,7 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||
},
|
||||
reactionAcceptance: {
|
||||
where: 'account',
|
||||
default: 'nonSensitiveOnly' as 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null,
|
||||
default: null as 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null,
|
||||
},
|
||||
like: {
|
||||
where: 'account',
|
||||
|
@ -162,11 +162,11 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||
},
|
||||
showVisibilitySelectorOnBoost: {
|
||||
where: 'account',
|
||||
default: true,
|
||||
default: false,
|
||||
},
|
||||
visibilityOnBoost: {
|
||||
where: 'account',
|
||||
default: 'public' as 'public' | 'home' | 'followers',
|
||||
default: 'followers' as 'public' | 'home' | 'followers',
|
||||
},
|
||||
trustedDomains: {
|
||||
where: 'account',
|
||||
|
@ -277,7 +277,7 @@ export const defaultStore = markRaw(new Storage('base', {
|
|||
},
|
||||
animatedMfm: {
|
||||
where: 'device',
|
||||
default: false,
|
||||
default: !window.matchMedia('(prefers-reduced-motion)').matches,
|
||||
},
|
||||
advancedMfm: {
|
||||
where: 'device',
|
||||
|
|
Loading…
Reference in a new issue