Compare commits

...

7 commits

Author SHA1 Message Date
zima
0954b098a4 change default account and experience settings, and disable like button
Reviewed-on: https://codeberg.org/yeentown/barkey/pulls/5
2024-11-13 03:33:56 +00:00
6c92c9c3b3
migration must happen after fixorm 2024-11-10 02:55:02 -05:00
b016d28662
improve search mfm 2024-11-10 02:32:04 -05:00
7e064399f8
non-fucked migration script 2024-11-10 02:32:01 -05:00
2716753267
she migrate on my TypeORM till i (GUNSHOTS) 2024-11-10 02:31:58 -05:00
f69d75014d
Change default settings
Someone needs to generate the TypeORM migrations for me because I can't
get the sodding thing to work on my end and it's driving me absolutely
potty.
2024-11-10 02:31:55 -05:00
5bdffb913f
Remove like button 2024-11-10 02:31:51 -05:00
7 changed files with 30 additions and 24 deletions

View file

@ -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`);
}
}

View file

@ -104,19 +104,19 @@ export class MiUserProfile {
public emailNotificationTypes: string[]; public emailNotificationTypes: string[];
@Column('boolean', { @Column('boolean', {
default: true, default: false,
}) })
public publicReactions: boolean; public publicReactions: boolean;
@Column('enum', { @Column('enum', {
enum: followingVisibilities, enum: followingVisibilities,
default: 'public', default: 'private',
}) })
public followingVisibility: typeof followingVisibilities[number]; public followingVisibility: typeof followingVisibilities[number];
@Column('enum', { @Column('enum', {
enum: followersVisibilities, enum: followersVisibilities,
default: 'public', default: 'private',
}) })
public followersVisibility: typeof followersVisibilities[number]; public followersVisibility: typeof followersVisibilities[number];

View file

@ -153,9 +153,6 @@ SPDX-License-Identifier: AGPL-3.0-only
> >
<i class="ph-quotes ph-bold ph-lg"></i> <i class="ph-quotes ph-bold ph-lg"></i>
</button> </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> <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-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> <i v-else-if="appearNote.myReaction != null" class="ti ti-minus" style="color: var(--accent);"></i>

View file

@ -161,9 +161,6 @@ SPDX-License-Identifier: AGPL-3.0-only
> >
<i class="ph-quotes ph-bold ph-lg"></i> <i class="ph-quotes ph-bold ph-lg"></i>
</button> </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()"> <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-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> <i v-else-if="appearNote.myReaction != null" class="ti ti-minus" style="color: var(--accent);"></i>

View file

@ -56,9 +56,6 @@ SPDX-License-Identifier: AGPL-3.0-only
<button v-else class="_button" :class="$style.noteFooterButton" disabled> <button v-else class="_button" :class="$style.noteFooterButton" disabled>
<i class="ph-prohibit ph-bold ph-lg"></i> <i class="ph-prohibit ph-bold ph-lg"></i>
</button> </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()"> <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-if="note.reactionAcceptance === 'likeOnly'" class="ph-heart ph-bold ph-lg"></i>
<i v-else class="ph-smiley ph-bold ph-lg"></i> <i v-else class="ph-smiley ph-bold ph-lg"></i>

View file

@ -6,12 +6,12 @@
//store the URL and if its none of these its a custom one //store the URL and if its none of these its a custom one
export const searchEngineMap = { export const searchEngineMap = {
//The first one is the default search engine //The first one is the default search engine
'https://www.google.com/search?q={query}': 'Google', 'https://e621.net/posts?tags={query}': 'e621',
'https://duckduckgo.com/?q={query}': 'Duckduckgo', 'https://www.furaffinity.net/search/?q={query}': 'FurAffinity',
'https://www.bing.com/search?q={query}': 'Bing', 'https://www.sofurry.com/browse/search?search={query}': 'SoFurry',
'https://search.yahoo.com/search?p={query}': 'Yahoo', 'https://www.weasyl.com/search?q={query}': 'Weasyl',
'https://www.ecosia.org/search?q={query}': 'Ecosia', 'https://duckduckgo.com/?q={query}': 'Ask Jeeves',
'https://www.qwant.com/?q={query}': 'Qwant', 'https://www.qwant.com/?q={query}': 'AltaVista',
'https://search.aol.com/aol/search?q={query}': 'AOL', 'https://wiby.me/?q={query}': 'JumpStation',
'https://yandex.com/search?text={query}': 'Yandex', 'https://yandex.com/search?text={query}': 'Yandex', // because nothing's funnier than Yandex
}; };

View file

@ -146,7 +146,7 @@ export const defaultStore = markRaw(new Storage('base', {
}, },
reactionAcceptance: { reactionAcceptance: {
where: 'account', where: 'account',
default: 'nonSensitiveOnly' as 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null, default: null as 'likeOnly' | 'likeOnlyForRemote' | 'nonSensitiveOnly' | 'nonSensitiveOnlyForLocalLikeOnlyForRemote' | null,
}, },
like: { like: {
where: 'account', where: 'account',
@ -162,11 +162,11 @@ export const defaultStore = markRaw(new Storage('base', {
}, },
showVisibilitySelectorOnBoost: { showVisibilitySelectorOnBoost: {
where: 'account', where: 'account',
default: true, default: false,
}, },
visibilityOnBoost: { visibilityOnBoost: {
where: 'account', where: 'account',
default: 'public' as 'public' | 'home' | 'followers', default: 'followers' as 'public' | 'home' | 'followers',
}, },
trustedDomains: { trustedDomains: {
where: 'account', where: 'account',
@ -277,7 +277,7 @@ export const defaultStore = markRaw(new Storage('base', {
}, },
animatedMfm: { animatedMfm: {
where: 'device', where: 'device',
default: false, default: !window.matchMedia('(prefers-reduced-motion)').matches,
}, },
advancedMfm: { advancedMfm: {
where: 'device', where: 'device',