Skip to content

Commit d807e06

Browse files
authored
refactor: various typo fixes (elk-zone#2735)
1 parent 611d556 commit d807e06

File tree

10 files changed

+14
-14
lines changed

10 files changed

+14
-14
lines changed

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -83,7 +83,7 @@ Simple approach used by most websites of relying on direction set in HTML elemen
8383
We've added some `UnoCSS` utilities styles to help you with that:
8484
- Do not use `left/right` padding and margin: for example `pl-1`. Use `padding-inline-start/end` instead. So `pl-1` should be `ps-1`, `pr-1` should be `pe-1`. The same rules apply to margin.
8585
- Do not use `rtl-` classes, such as `rtl-left-0`.
86-
- For icons that should be rotated for RTL, add `class="rtl-flip"`. This can only be used for icons outside of elements with `dir="auto"`, such as timeline, and is the only exception from the rule above. For icons inside the timeline, it might not work as expected.
86+
- For icons that should be rotated for RTL, add `class="rtl-flip"`. This can only be used for icons outside of elements with `dir="auto"`, such as timeline, and is the only exception to the rule above. For icons inside the timeline, it might not work as expected.
8787
- For absolute positioned elements, don't use `left/right`: for example `left-0`. Use `inset-inline-start/end` instead. `UnoCSS` shortcuts are `inset-is` for `inset-inline-start` and `inset-ie` for `inset-inline-end`. Example: `left-0` should be replaced with `inset-is-0`.
8888
- If you need to change the border radius for an entire left or right side, use `border-inline-start/end`. `UnoCSS` shortcuts are `rounded-is` for left side, `rounded-ie` for right side. Example: `rounded-l-5` should be replaced with `rounded-ie-5`.
8989
- If you need to change the border radius for one corner, use `border-start-end-radius` and similar rules. `UnoCSS` shortcuts are `rounded` + top/bottom as either `-bs` (top) or `-be` (bottom) + left/right as either `-is` (left) or `-ie` (right). Example: `rounded-tl-0` should be replaced with `rounded-bs-is-0`.

components/common/CommonTabs.vue

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,8 +19,8 @@ const tabs = computed(() => {
1919
})
2020
})
2121
22-
function toValidName(otpion: string) {
23-
return otpion.toLowerCase().replace(/[^a-zA-Z0-9]/g, '-')
22+
function toValidName(option: string) {
23+
return option.toLowerCase().replace(/[^a-zA-Z0-9]/g, '-')
2424
}
2525
2626
useCommands(() => command

components/modal/ModalMediaPreviewCarousel.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@ const emit = defineEmits<{
1515
const modelValue = defineModel<number>({ required: true })
1616
1717
const slideGap = 20
18-
const doubleTapTreshold = 250
18+
const doubleTapThreshold = 250
1919
2020
const view = ref()
2121
const slider = ref()
@@ -147,7 +147,7 @@ function handleLastDrag(tap: boolean, swipe: Vector2, movement: Vector2, positio
147147
let lastTapAt = 0
148148
function handleTap([positionX, positionY]: Vector2) {
149149
const now = Date.now()
150-
const isDoubleTap = now - lastTapAt < doubleTapTreshold
150+
const isDoubleTap = now - lastTapAt < doubleTapThreshold
151151
lastTapAt = now
152152
153153
if (!isDoubleTap)
@@ -218,7 +218,7 @@ function handleZoomDrag([deltaX, deltaY]: Vector2) {
218218
function handleSlideDrag([movementX, movementY]: Vector2) {
219219
goToFocusedSlide()
220220
221-
if (Math.abs(movementY) > Math.abs(movementX)) // vertical movement is more then horizontal
221+
if (Math.abs(movementY) > Math.abs(movementX)) // vertical movement is more than horizontal
222222
y.value -= movementY / scale.value
223223
else
224224
x.value -= movementX / scale.value

components/notification/NotificationPaginator.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ function includeNotificationsForStatusCard({ type, status }: mastodon.v1.Notific
2525
2626
// Group by type (and status when applicable)
2727
function groupId(item: mastodon.v1.Notification): string {
28-
// If the update is related to an status, group notifications from the same account (boost + favorite the same status)
28+
// If the update is related to a status, group notifications from the same account (boost + favorite the same status)
2929
const id = item.status
3030
? {
3131
status: item.status?.id,

composables/content-parse.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -623,7 +623,7 @@ function transformCollapseMentions(status?: mastodon.v1.Status, inReplyToStatus?
623623

624624
// We have a special case for single mentions that are part of a reply.
625625
// We already have the replying to badge in this case or the status is connected to the previous one.
626-
// This is needed because the status doesn't included the in Reply to handle, only the account id.
626+
// This is needed because the status doesn't include the in Reply to handle, only the account id.
627627
// But this covers the majority of cases.
628628
const showMentions = !(contextualMentionsCount === 0 || (mentionsCount === 1 && status?.inReplyToAccountId))
629629
const grouped = contextualMentionsCount > 2

docs/README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -44,7 +44,7 @@ When you are ready to submit work back to the main Elk repo, create a PR.
4444
- base branch should be **main**
4545
- Head repository should be your fork
4646
- Compare branch should be your working branch you want to submit
47-
If you don't see four drop downs, be sure you are comparing across forks.
47+
If you don't see four drop-downs, be sure you are comparing across forks.
4848
10. Add a description of the changes your request makes
4949
11. Select **Add Pull Request**
5050

@@ -65,7 +65,7 @@ Avoid screenshots until Elk reaches a stable release.
6565

6666
### Standards
6767

68-
Write in **American English** using spelling as found in [Merriam Webster](https://www.merriam-webster.com).
68+
Write in **American English** using spelling as found in [Merriam-Webster](https://www.merriam-webster.com).
6969
Translation and localization will be handled separately as/when availability or necessity allow.
7070

7171
Use [**semantic linefeeds**](https://rhodesmill.org/brandon/2012/one-sentence-per-line/) with no more than one sentence per line.

docs/components/global/ToogleIcon.vue renamed to docs/components/global/ToggleIcon.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
<script>
22
export default {
3-
name: 'ToogleIcon',
3+
name: 'ToggleIcon',
44
props: { up: Boolean },
55
}
66
</script>

docs/components/global/TranslationState.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -116,7 +116,7 @@ async function copyToClipboard() {
116116
>
117117
<td :class="[{ expandable: !isSource }]">
118118
<div>
119-
<ToogleIcon v-if="!isSource" :up="hidden || key !== locale" />
119+
<ToggleIcon v-if="!isSource" :up="hidden || key !== locale" />
120120
{{ title }}
121121
</div>
122122
</td>

docs/content/2.deployment/1.netlify.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -56,6 +56,6 @@ On your project page open the Deploys tab, click on "Trigger deploy" and "Deploy
5656
## Use a custom domain
5757
If you want to use a custom domain, go to "Domain settings" on your Netlify project page, and press "Add custom domain". If your domain is not bought from Netlify, it will ask you to add a CNAME record. Do that.
5858

59-
Once the custom domain is added, you'll need to add an SSL/TLS certificate. At the bottom of the page press "Verify DNS configuration" and if it succeeds, press "Provision certificate". If that fails, you may need to wait some time until your DNS propagetes.
59+
Once the custom domain is added, you'll need to add an SSL/TLS certificate. At the bottom of the page press "Verify DNS configuration" and if it succeeds, press "Provision certificate". If that fails, you may need to wait some time until your DNS propagates.
6060

6161
And that's it! Enjoy your instance's Elk!

service-worker/notification.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ export function createNotificationOptions(
7878
notificationOptions.timestamp = new Date(notification.created_at).getTime()
7979
}
8080

81-
/* TODO: add spolier when actions available, checking also notification type
81+
/* TODO: add spoiler when actions available, checking also notification type
8282
if (notification.status && (notification.status.spoilerText || notification.status.sensitive)) {
8383
if (notification.status.spoilerText)
8484
notificationOptions.body = notification.status.spoilerText

0 commit comments

Comments
 (0)