feat: swap home timeline with social's functionality (#9597)
The Home timeline functionality is swapped with social's. Meaning that Home timeline now consists of followee's and local posts. Social from now on will contain only followee's posts. See more info in the attached ticket. Some changes applied in english locales as well. Probably the rest of the languages need to be fixed though. This PR closes the ticket: https://codeberg.org/calckey/calckey/issues/9552 Co-authored-by: yawhn <kordaris@gmail.com> Co-authored-by: ThatOneCalculator <kainoa@t1c.dev> Reviewed-on: https://codeberg.org/calckey/calckey/pulls/9597 Co-authored-by: yawhn <yawhn@noreply.codeberg.org> Co-committed-by: yawhn <yawhn@noreply.codeberg.org>
This commit is contained in:
parent
c5de597079
commit
df68d5ffff
|
@ -1027,27 +1027,6 @@ _time:
|
||||||
minute: "د"
|
minute: "د"
|
||||||
hour: "سا"
|
hour: "سا"
|
||||||
day: "ي"
|
day: "ي"
|
||||||
_tutorial:
|
|
||||||
title: "How to use Calckey"
|
|
||||||
step1_1: "Welcome!"
|
|
||||||
step1_2: "Let's get you set up. You'll be up and running in no time!"
|
|
||||||
step2_1: "First, please fill out your profile."
|
|
||||||
step2_2: "Providing some information about who you are will make it easier for others to tell if they want to see your notes or follow you."
|
|
||||||
step3_1: "Now time to follow some people!"
|
|
||||||
step3_2: "Your home and social timelines are based off of who you follow, so try following a couple accounts to get started.\nClick the plus circle on the top right of a profile to follow them."
|
|
||||||
step4_1: "Let's get you out there."
|
|
||||||
step4_2: "For your first post, some people like to made a {introduction} post or a simple \"Hello world!\""
|
|
||||||
step5_1: "Timelines, timelines everywhere!"
|
|
||||||
step5_2: "Your instance has {timelines} different timelines enabled."
|
|
||||||
step5_3: "The Home {icon} timeline is where you can see posts from your followers."
|
|
||||||
step5_4: "The Local {icon} timeline is where you can see posts from everyone else on this instance."
|
|
||||||
step5_5: "The Recommended {icon} timeline is where you can see posts from instances the admins recommend."
|
|
||||||
step5_6: "The Social {icon} timeline is where you can see posts from friends of your followers."
|
|
||||||
step5_7: "The Global {icon} timeline is where you can see posts from every other connected instance."
|
|
||||||
step6_1: "So, what is this place?"
|
|
||||||
step6_2: "Well, you didn't just join Calckey. You joined a portal to the Fediverse, an interconnected network of thousands of servers, called \"instances\"."
|
|
||||||
step6_3: "Each server works in different ways, and not all servers run Calckey. This one does though! It's a bit complicated, but you'll get the hang of it in no time."
|
|
||||||
step6_4: "Now go, explore, and have fun!"
|
|
||||||
_2fa:
|
_2fa:
|
||||||
alreadyRegistered: "سجلت سلفًا جهازًا للاستيثاق بعاملين."
|
alreadyRegistered: "سجلت سلفًا جهازًا للاستيثاق بعاملين."
|
||||||
registerDevice: "سجّل جهازًا جديدًا"
|
registerDevice: "سجّل جهازًا جديدًا"
|
||||||
|
|
|
@ -1108,27 +1108,6 @@ _time:
|
||||||
minute: "মিনিট"
|
minute: "মিনিট"
|
||||||
hour: "ঘণ্টা"
|
hour: "ঘণ্টা"
|
||||||
day: "দিন"
|
day: "দিন"
|
||||||
_tutorial:
|
|
||||||
title: "How to use Calckey"
|
|
||||||
step1_1: "Welcome!"
|
|
||||||
step1_2: "Let's get you set up. You'll be up and running in no time!"
|
|
||||||
step2_1: "First, please fill out your profile."
|
|
||||||
step2_2: "Providing some information about who you are will make it easier for others to tell if they want to see your notes or follow you."
|
|
||||||
step3_1: "Now time to follow some people!"
|
|
||||||
step3_2: "Your home and social timelines are based off of who you follow, so try following a couple accounts to get started.\nClick the plus circle on the top right of a profile to follow them."
|
|
||||||
step4_1: "Let's get you out there."
|
|
||||||
step4_2: "For your first post, some people like to made a {introduction} post or a simple \"Hello world!\""
|
|
||||||
step5_1: "Timelines, timelines everywhere!"
|
|
||||||
step5_2: "Your instance has {timelines} different timelines enabled."
|
|
||||||
step5_3: "The Home {icon} timeline is where you can see posts from your followers."
|
|
||||||
step5_4: "The Local {icon} timeline is where you can see posts from everyone else on this instance."
|
|
||||||
step5_5: "The Recommended {icon} timeline is where you can see posts from instances the admins recommend."
|
|
||||||
step5_6: "The Social {icon} timeline is where you can see posts from friends of your followers."
|
|
||||||
step5_7: "The Global {icon} timeline is where you can see posts from every other connected instance."
|
|
||||||
step6_1: "So, what is this place?"
|
|
||||||
step6_2: "Well, you didn't just join Calckey. You joined a portal to the Fediverse, an interconnected network of thousands of servers, called \"instances\"."
|
|
||||||
step6_3: "Each server works in different ways, and not all servers run Calckey. This one does though! It's a bit complicated, but you'll get the hang of it in no time."
|
|
||||||
step6_4: "Now go, explore, and have fun!"
|
|
||||||
_2fa:
|
_2fa:
|
||||||
alreadyRegistered: "আপনি ইতিমধ্যে একটি 2-ফ্যাক্টর অথেনটিকেশন ডিভাইস নিবন্ধন করেছেন৷"
|
alreadyRegistered: "আপনি ইতিমধ্যে একটি 2-ফ্যাক্টর অথেনটিকেশন ডিভাইস নিবন্ধন করেছেন৷"
|
||||||
registerDevice: "নতুন ডিভাইস নিবন্ধন করুন"
|
registerDevice: "নতুন ডিভাইস নিবন্ধন করুন"
|
||||||
|
|
|
@ -849,6 +849,9 @@ overridedDeviceKind: "Device type"
|
||||||
smartphone: "Smartphone"
|
smartphone: "Smartphone"
|
||||||
tablet: "Tablet"
|
tablet: "Tablet"
|
||||||
auto: "Auto"
|
auto: "Auto"
|
||||||
|
showLocalPosts: "Show local posts in:"
|
||||||
|
homeTimeline: "Home Timeline"
|
||||||
|
socialTimeline: "Social Timeline"
|
||||||
themeColor: "Instance Ticker Color"
|
themeColor: "Instance Ticker Color"
|
||||||
size: "Size"
|
size: "Size"
|
||||||
numberOfColumn: "Number of columns"
|
numberOfColumn: "Number of columns"
|
||||||
|
@ -1240,10 +1243,10 @@ _tutorial:
|
||||||
step4_2: "For your first post, some people like to made a {introduction} post or a simple \"Hello world!\""
|
step4_2: "For your first post, some people like to made a {introduction} post or a simple \"Hello world!\""
|
||||||
step5_1: "Timelines, timelines everywhere!"
|
step5_1: "Timelines, timelines everywhere!"
|
||||||
step5_2: "Your instance has {timelines} different timelines enabled."
|
step5_2: "Your instance has {timelines} different timelines enabled."
|
||||||
step5_3: "The Home {icon} timeline is where you can see posts from your followers."
|
step5_3: "The Home {icon} timeline is where you can see posts from the accounts you follow and from everyone else on this instance. If you prefer your Home timeline to only display posts from accounts you follow, you can easily change this in Settings!"
|
||||||
step5_4: "The Local {icon} timeline is where you can see posts from everyone else on this instance."
|
step5_4: "The Local {icon} timeline is where you can see posts from everyone else on this instance."
|
||||||
step5_5: "The Recommended {icon} timeline is where you can see posts from instances the admins recommend."
|
step5_5: "The Social {icon} timeline is where you can see posts only from the accounts you follow."
|
||||||
step5_6: "The Social {icon} timeline is your home + local."
|
step5_6: "The Recommended {icon} timeline is where you can see posts from instances the admins recommend."
|
||||||
step5_7: "The Global {icon} timeline is where you can see posts from every other connected instance."
|
step5_7: "The Global {icon} timeline is where you can see posts from every other connected instance."
|
||||||
step6_1: "So, what is this place?"
|
step6_1: "So, what is this place?"
|
||||||
step6_2: "Well, you didn't just join Calckey. You joined a portal to the Fediverse, an interconnected network of thousands of servers, called \"instances\"."
|
step6_2: "Well, you didn't just join Calckey. You joined a portal to the Fediverse, an interconnected network of thousands of servers, called \"instances\"."
|
||||||
|
|
|
@ -1174,27 +1174,6 @@ _time:
|
||||||
minute: "min"
|
minute: "min"
|
||||||
hour: "hod"
|
hour: "hod"
|
||||||
day: "dní"
|
day: "dní"
|
||||||
_tutorial:
|
|
||||||
title: "How to use Calckey"
|
|
||||||
step1_1: "Welcome!"
|
|
||||||
step1_2: "Let's get you set up. You'll be up and running in no time!"
|
|
||||||
step2_1: "First, please fill out your profile."
|
|
||||||
step2_2: "Providing some information about who you are will make it easier for others to tell if they want to see your notes or follow you."
|
|
||||||
step3_1: "Now time to follow some people!"
|
|
||||||
step3_2: "Your home and social timelines are based off of who you follow, so try following a couple accounts to get started.\nClick the plus circle on the top right of a profile to follow them."
|
|
||||||
step4_1: "Let's get you out there."
|
|
||||||
step4_2: "For your first post, some people like to made a {introduction} post or a simple \"Hello world!\""
|
|
||||||
step5_1: "Timelines, timelines everywhere!"
|
|
||||||
step5_2: "Your instance has {timelines} different timelines enabled."
|
|
||||||
step5_3: "The Home {icon} timeline is where you can see posts from your followers."
|
|
||||||
step5_4: "The Local {icon} timeline is where you can see posts from everyone else on this instance."
|
|
||||||
step5_5: "The Recommended {icon} timeline is where you can see posts from instances the admins recommend."
|
|
||||||
step5_6: "The Social {icon} timeline is where you can see posts from friends of your followers."
|
|
||||||
step5_7: "The Global {icon} timeline is where you can see posts from every other connected instance."
|
|
||||||
step6_1: "So, what is this place?"
|
|
||||||
step6_2: "Well, you didn't just join Calckey. You joined a portal to the Fediverse, an interconnected network of thousands of servers, called \"instances\"."
|
|
||||||
step6_3: "Each server works in different ways, and not all servers run Calckey. This one does though! It's a bit complicated, but you'll get the hang of it in no time."
|
|
||||||
step6_4: "Now go, explore, and have fun!"
|
|
||||||
_2fa:
|
_2fa:
|
||||||
alreadyRegistered: "Už ste zaregistrovali 2-faktorové autentifikačné zariadenie."
|
alreadyRegistered: "Už ste zaregistrovali 2-faktorové autentifikačné zariadenie."
|
||||||
registerDevice: "Registrovať nové zariadenie"
|
registerDevice: "Registrovať nové zariadenie"
|
||||||
|
|
|
@ -1179,27 +1179,6 @@ _time:
|
||||||
minute: "phút"
|
minute: "phút"
|
||||||
hour: "giờ"
|
hour: "giờ"
|
||||||
day: "ngày"
|
day: "ngày"
|
||||||
_tutorial:
|
|
||||||
title: "How to use Calckey"
|
|
||||||
step1_1: "Welcome!"
|
|
||||||
step1_2: "Let's get you set up. You'll be up and running in no time!"
|
|
||||||
step2_1: "First, please fill out your profile."
|
|
||||||
step2_2: "Providing some information about who you are will make it easier for others to tell if they want to see your notes or follow you."
|
|
||||||
step3_1: "Now time to follow some people!"
|
|
||||||
step3_2: "Your home and social timelines are based off of who you follow, so try following a couple accounts to get started.\nClick the plus circle on the top right of a profile to follow them."
|
|
||||||
step4_1: "Let's get you out there."
|
|
||||||
step4_2: "For your first post, some people like to made a {introduction} post or a simple \"Hello world!\""
|
|
||||||
step5_1: "Timelines, timelines everywhere!"
|
|
||||||
step5_2: "Your instance has {timelines} different timelines enabled."
|
|
||||||
step5_3: "The Home {icon} timeline is where you can see posts from your followers."
|
|
||||||
step5_4: "The Local {icon} timeline is where you can see posts from everyone else on this instance."
|
|
||||||
step5_5: "The Recommended {icon} timeline is where you can see posts from instances the admins recommend."
|
|
||||||
step5_6: "The Social {icon} timeline is where you can see posts from friends of your followers."
|
|
||||||
step5_7: "The Global {icon} timeline is where you can see posts from every other connected instance."
|
|
||||||
step6_1: "So, what is this place?"
|
|
||||||
step6_2: "Well, you didn't just join Calckey. You joined a portal to the Fediverse, an interconnected network of thousands of servers, called \"instances\"."
|
|
||||||
step6_3: "Each server works in different ways, and not all servers run Calckey. This one does though! It's a bit complicated, but you'll get the hang of it in no time."
|
|
||||||
step6_4: "Now go, explore, and have fun!"
|
|
||||||
_2fa:
|
_2fa:
|
||||||
alreadyRegistered: "Bạn đã đăng ký thiết bị xác minh 2 bước."
|
alreadyRegistered: "Bạn đã đăng ký thiết bị xác minh 2 bước."
|
||||||
registerDevice: "Đăng ký một thiết bị"
|
registerDevice: "Đăng ký một thiết bị"
|
||||||
|
|
|
@ -20,6 +20,12 @@
|
||||||
<option value="desktop"><i class="ph-desktop ph-bold ph-lg"/> {{ i18n.ts.desktop }}</option>
|
<option value="desktop"><i class="ph-desktop ph-bold ph-lg"/> {{ i18n.ts.desktop }}</option>
|
||||||
</FormRadios>
|
</FormRadios>
|
||||||
|
|
||||||
|
<FormRadios v-model="showLocalPostsInTimeline" class="_formBlock">
|
||||||
|
<template #label>{{ i18n.ts.showLocalPosts }}</template>
|
||||||
|
<option value="home"><i class="ph-house ph-bold ph-lg"/> {{ i18n.ts.homeTimeline }}</option>
|
||||||
|
<option value="social"><i class="ph-handshake ph-bold ph-lg"/> {{ i18n.ts.socialTimeline }}</option>
|
||||||
|
</FormRadios>
|
||||||
|
|
||||||
<FormSwitch v-model="showFixedPostForm" class="_formBlock">{{ i18n.ts.showFixedPostForm }}</FormSwitch>
|
<FormSwitch v-model="showFixedPostForm" class="_formBlock">{{ i18n.ts.showFixedPostForm }}</FormSwitch>
|
||||||
|
|
||||||
<FormSection>
|
<FormSection>
|
||||||
|
@ -127,6 +133,7 @@ async function reloadAsk() {
|
||||||
}
|
}
|
||||||
|
|
||||||
const overridedDeviceKind = computed(defaultStore.makeGetterSetter('overridedDeviceKind'));
|
const overridedDeviceKind = computed(defaultStore.makeGetterSetter('overridedDeviceKind'));
|
||||||
|
const showLocalPostsInTimeline = computed(defaultStore.makeGetterSetter('showLocalPostsInTimeline'));
|
||||||
const serverDisconnectedBehavior = computed(defaultStore.makeGetterSetter('serverDisconnectedBehavior'));
|
const serverDisconnectedBehavior = computed(defaultStore.makeGetterSetter('serverDisconnectedBehavior'));
|
||||||
const reduceAnimation = computed(defaultStore.makeGetterSetter('animation', v => !v, v => !v));
|
const reduceAnimation = computed(defaultStore.makeGetterSetter('animation', v => !v, v => !v));
|
||||||
const useBlurEffectForModal = computed(defaultStore.makeGetterSetter('useBlurEffectForModal'));
|
const useBlurEffectForModal = computed(defaultStore.makeGetterSetter('useBlurEffectForModal'));
|
||||||
|
@ -183,6 +190,7 @@ watch([
|
||||||
showGapBetweenNotesInTimeline,
|
showGapBetweenNotesInTimeline,
|
||||||
instanceTicker,
|
instanceTicker,
|
||||||
overridedDeviceKind,
|
overridedDeviceKind,
|
||||||
|
showLocalPostsInTimeline,
|
||||||
showAds,
|
showAds,
|
||||||
showUpdates,
|
showUpdates,
|
||||||
swipeOnDesktop,
|
swipeOnDesktop,
|
||||||
|
|
|
@ -55,6 +55,7 @@ const defaultStoreSaveKeys: (keyof typeof defaultStore['state'])[] = [
|
||||||
'widgets',
|
'widgets',
|
||||||
'tl',
|
'tl',
|
||||||
'overridedDeviceKind',
|
'overridedDeviceKind',
|
||||||
|
'showLocalPostsInTimeline',
|
||||||
'serverDisconnectedBehavior',
|
'serverDisconnectedBehavior',
|
||||||
'nsfw',
|
'nsfw',
|
||||||
'showAds',
|
'showAds',
|
||||||
|
|
|
@ -94,17 +94,27 @@ const keymap = {
|
||||||
t: focus,
|
t: focus,
|
||||||
};
|
};
|
||||||
|
|
||||||
let timelines = ['home'];
|
let timelines = [];
|
||||||
|
|
||||||
|
if (isLocalTimelineAvailable && defaultStore.state.showLocalPostsInTimeline === 'home') {
|
||||||
|
timelines.push('social');
|
||||||
|
} else {
|
||||||
|
timelines.push('home');
|
||||||
|
}
|
||||||
|
|
||||||
if (isLocalTimelineAvailable) {
|
if (isLocalTimelineAvailable) {
|
||||||
timelines.push('local');
|
timelines.push('local');
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (isLocalTimelineAvailable && defaultStore.state.showLocalPostsInTimeline === 'home') {
|
||||||
|
timelines.push('home');
|
||||||
|
} else if (isLocalTimelineAvailable) {
|
||||||
|
timelines.push('social');
|
||||||
|
}
|
||||||
|
|
||||||
if (isRecommendedTimelineAvailable) {
|
if (isRecommendedTimelineAvailable) {
|
||||||
timelines.push('recommended');
|
timelines.push('recommended');
|
||||||
}
|
}
|
||||||
if (isLocalTimelineAvailable) {
|
|
||||||
timelines.push('social');
|
|
||||||
}
|
|
||||||
if (isGlobalTimelineAvailable) {
|
if (isGlobalTimelineAvailable) {
|
||||||
timelines.push('global');
|
timelines.push('global');
|
||||||
}
|
}
|
||||||
|
@ -220,13 +230,26 @@ const headerActions = $computed(() => [
|
||||||
}*/,
|
}*/,
|
||||||
]);
|
]);
|
||||||
|
|
||||||
|
// Swap home timeline with social's functionality
|
||||||
|
|
||||||
const headerTabs = $computed(() => [
|
const headerTabs = $computed(() => [
|
||||||
|
...(isLocalTimelineAvailable && defaultStore.state.showLocalPostsInTimeline === 'home'
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
key: 'social',
|
||||||
|
title: i18n.ts._timelines.home,
|
||||||
|
icon: 'ph-house ph-bold ph-lg',
|
||||||
|
iconOnly: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: [
|
||||||
{
|
{
|
||||||
key: 'home',
|
key: 'home',
|
||||||
title: i18n.ts._timelines.home,
|
title: i18n.ts._timelines.home,
|
||||||
icon: 'ph-house ph-bold ph-lg',
|
icon: 'ph-house ph-bold ph-lg',
|
||||||
iconOnly: true,
|
iconOnly: true,
|
||||||
},
|
}
|
||||||
|
]),
|
||||||
...(isLocalTimelineAvailable
|
...(isLocalTimelineAvailable
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
|
@ -237,6 +260,24 @@ const headerTabs = $computed(() => [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
|
...(isLocalTimelineAvailable && defaultStore.state.showLocalPostsInTimeline === 'home'
|
||||||
|
? [
|
||||||
|
{
|
||||||
|
key: 'home',
|
||||||
|
title: i18n.ts._timelines.social,
|
||||||
|
icon: 'ph-handshake ph-bold ph-lg',
|
||||||
|
iconOnly: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: isLocalTimelineAvailable ? [
|
||||||
|
{
|
||||||
|
key: 'social',
|
||||||
|
title: i18n.ts._timelines.social,
|
||||||
|
icon: 'ph-handshake ph-bold ph-lg',
|
||||||
|
iconOnly: true,
|
||||||
|
},
|
||||||
|
]
|
||||||
|
: []),
|
||||||
...(isRecommendedTimelineAvailable
|
...(isRecommendedTimelineAvailable
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
|
@ -247,16 +288,6 @@ const headerTabs = $computed(() => [
|
||||||
},
|
},
|
||||||
]
|
]
|
||||||
: []),
|
: []),
|
||||||
...(isLocalTimelineAvailable
|
|
||||||
? [
|
|
||||||
{
|
|
||||||
key: 'social',
|
|
||||||
title: i18n.ts._timelines.social,
|
|
||||||
icon: 'ph-handshake ph-bold ph-lg',
|
|
||||||
iconOnly: true,
|
|
||||||
},
|
|
||||||
]
|
|
||||||
: []),
|
|
||||||
...(isGlobalTimelineAvailable
|
...(isGlobalTimelineAvailable
|
||||||
? [
|
? [
|
||||||
{
|
{
|
||||||
|
@ -275,12 +306,16 @@ definePageMetadata(
|
||||||
icon:
|
icon:
|
||||||
src === 'local'
|
src === 'local'
|
||||||
? 'ph-users ph-bold ph-lg'
|
? 'ph-users ph-bold ph-lg'
|
||||||
|
: src === 'social' && defaultStore.state.showLocalPostsInTimeline === 'home'
|
||||||
|
? 'ph-house ph-bold ph-lg'
|
||||||
: src === 'social'
|
: src === 'social'
|
||||||
? 'ph-handshake ph-bold ph-lg'
|
? 'ph-handshake ph-bold ph-lg'
|
||||||
: src === 'recommended'
|
: src === 'recommended'
|
||||||
? 'ph-thumbs-up ph-bold ph-lg'
|
? 'ph-thumbs-up ph-bold ph-lg'
|
||||||
: src === 'global'
|
: src === 'global'
|
||||||
? 'ph-planet ph-bold ph-lg'
|
? 'ph-planet ph-bold ph-lg'
|
||||||
|
: src === 'home' && defaultStore.state.showLocalPostsInTimeline === 'home'
|
||||||
|
? 'ph-handshake ph-bold ph-lg'
|
||||||
: 'ph-house ph-bold ph-lg',
|
: 'ph-house ph-bold ph-lg',
|
||||||
})),
|
})),
|
||||||
);
|
);
|
||||||
|
|
|
@ -133,6 +133,10 @@ export const defaultStore = markRaw(
|
||||||
where: "device",
|
where: "device",
|
||||||
default: null as null | "smartphone" | "tablet" | "desktop",
|
default: null as null | "smartphone" | "tablet" | "desktop",
|
||||||
},
|
},
|
||||||
|
showLocalPostsInTimeline: {
|
||||||
|
where: "device",
|
||||||
|
default: "home" as "home" | "social",
|
||||||
|
},
|
||||||
serverDisconnectedBehavior: {
|
serverDisconnectedBehavior: {
|
||||||
where: "device",
|
where: "device",
|
||||||
default: "nothing" as "nothing" | "quiet" | "reload" | "dialog",
|
default: "nothing" as "nothing" | "quiet" | "reload" | "dialog",
|
||||||
|
|
Loading…
Reference in New Issue