Skip to content
This repository has been archived by the owner on Sep 27, 2024. It is now read-only.

fix(rename): replace Elk with Mozilla.social - MOSOWEB-98 #85

Merged
merged 5 commits into from
Nov 15, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ const route = useRoute()
if (process.server && !route.path.startsWith('/settings')) {
useHead({
meta: [
{ property: 'og:url', content: `https://elk.zone${route.path}` },
{ property: 'og:url', content: `https://mozilla.social${route.path}` },
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Hopefully this makes sharing links better

],
})
}
Expand Down
2 changes: 1 addition & 1 deletion components/common/CommonPaginator.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,7 +52,7 @@ function percolateStatus(status) {
addStatus(status)
}

nuxtApp.hook('elk-logo:click', () => {
nuxtApp.hook('moz-logo:click', () => {
Copy link
Author

@wtfluckey wtfluckey Nov 15, 2023

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

These elk-logo -> moz-logo changes aren't visible to the user, but it felt like a reasonable change to make for a tiny bit of developer experience improvement

update()
nuxtApp.$scrollToTop()
})
Expand Down
3 changes: 1 addition & 2 deletions components/nav/NavTitle.vue
Original file line number Diff line number Diff line change
@@ -1,12 +1,11 @@
<script setup lang="ts">
const { env } = useBuildInfo()
const router = useRouter()
const back = ref<any>('')

const nuxtApp = useNuxtApp()

function onClickLogo() {
nuxtApp.hooks.callHook('elk-logo:click')
nuxtApp.hooks.callHook('moz-logo:click')
}

onMounted(() => {
Expand Down
4 changes: 2 additions & 2 deletions locales/de-DE.json
Original file line number Diff line number Diff line change
Expand Up @@ -76,8 +76,8 @@
"vote": "Abstimmen"
},
"app_desc_short": "Ein flinker Mastodon Web-Client",
"app_logo": "Elk Logo",
"app_name": "Elk",
"app_logo": "Mozilla Logo",
"app_name": "Mozilla.social",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

German translation - updated app name & logo

"attachment": {
"edit_title": "Beschreibung",
"remove_label": "Anhang entfernen"
Expand Down
2 changes: 1 addition & 1 deletion locales/en.json
Original file line number Diff line number Diff line change
Expand Up @@ -92,7 +92,7 @@
},
"app_desc_short": "Decentralized social media powered by Mastodon",
"app_logo": "Mozilla Logo",
"app_name": "Mozilla Social",
"app_name": "Mozilla.social",
Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Went ahead and updated the English app name to match the Mozilla.social syntax that product decided on

"attachment": {
"add_image_description": "Add image description",
"alt-point-1": "Capture important elements",
Expand Down
2 changes: 1 addition & 1 deletion nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -287,7 +287,7 @@ declare global {

declare module '#app' {
interface RuntimeNuxtHooks {
'elk-logo:click': () => void
'moz-logo:click': () => void
}
}

Expand Down
Loading