Skip to content

Commit 5c30fae

Browse files
committed
fix(typo): correct spelling in comments and strings
Assisted-by: DeepSeek:V4-Pro Signed-off-by: Jannik Bäcker <manmut@proton.me>
1 parent f8f6e27 commit 5c30fae

21 files changed

Lines changed: 42 additions & 42 deletions

File tree

apps/appstore/src/composables/useAppIcon.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import logger from '../utils/logger.ts'
1313

1414
/**
1515
* Get the app icon raw SVG for use with `NcIconSvgWrapper` (do never use without sanitizing)
16-
* It has a fallback to the categroy icon.
16+
* It has a fallback to the category icon.
1717
*
1818
* @param app The app to get the icon for
1919
*/

apps/appstore/src/service/app-discover.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ export async function getDiscoverElements() {
1818
throw new Error('No app discover elements available (empty response)')
1919
}
2020

21-
// Parse data to ensure dates are useable and then filter out expired or future elements
21+
// Parse data to ensure dates are usable and then filter out expired or future elements
2222
const parsedElements = data.map(parseApiResponse)
2323
.filter(filterElements)
2424

apps/dav/lib/CalDAV/EventReader.php

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -690,15 +690,15 @@ public function recurrenceAdvance(): void {
690690
$rdateDate = null;
691691
$eruleDate = null;
692692
$edateDate = null;
693-
// evaludate if rrule is set and advance one interation past current date
693+
// evaluate if rrule is set and advance one iteration past current date
694694
if ($this->rruleIterator !== null) {
695695
// forward rrule to the next future date
696696
while ($this->rruleIterator->valid() && $this->rruleIterator->current() <= $this->recurrenceCurrentDate) {
697697
$this->rruleIterator->next();
698698
}
699699
$rruleDate = $this->rruleIterator->current();
700700
}
701-
// evaludate if rdate is set and advance one interation past current date
701+
// evaluate if rdate is set and advance one iteration past current date
702702
if ($this->rdateIterator !== null) {
703703
// forward rdate to the next future date
704704
while ($this->rdateIterator->valid() && $this->rdateIterator->current() <= $this->recurrenceCurrentDate) {
@@ -714,23 +714,23 @@ public function recurrenceAdvance(): void {
714714
$nextOccurrenceDate = $rdateDate;
715715
}
716716

717-
// evaludate if exrule is set and advance one interation past current date
717+
// evaluate if exrule is set and advance one iteration past current date
718718
if ($this->eruleIterator !== null) {
719719
// forward exrule to the next future date
720720
while ($this->eruleIterator->valid() && $this->eruleIterator->current() <= $this->recurrenceCurrentDate) {
721721
$this->eruleIterator->next();
722722
}
723723
$eruleDate = $this->eruleIterator->current();
724724
}
725-
// evaludate if exdate is set and advance one interation past current date
725+
// evaluate if exdate is set and advance one iteration past current date
726726
if ($this->edateIterator !== null) {
727727
// forward exdate to the next future date
728728
while ($this->edateIterator->valid() && $this->edateIterator->current() <= $this->recurrenceCurrentDate) {
729729
$this->edateIterator->next();
730730
}
731731
$edateDate = $this->edateIterator->current();
732732
}
733-
// evaludate if exrule and exdate are set and set nextExDate to the first next date
733+
// evaluate if exrule and exdate are set and set nextExDate to the first next date
734734
if ($eruleDate !== null && $edateDate !== null) {
735735
$nextExceptionDate = ($eruleDate <= $edateDate) ? $eruleDate : $edateDate;
736736
} elseif ($eruleDate !== null) {

apps/dav/lib/Command/ImportCalendar.php

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
7676
if (!$this->userManager->userExists($userId)) {
7777
throw new InvalidArgumentException("User <$userId> not found.");
7878
}
79-
// retrieve calendar and evaluate if import is supported and writeable
79+
// retrieve calendar and evaluate if import is supported and writable
8080
$calendars = $this->calendarManager->getCalendarsForPrincipal('principals/users/' . $userId, [$calendarId]);
8181
if ($calendars === []) {
8282
throw new InvalidArgumentException("Calendar <$calendarId> not found");
@@ -86,7 +86,7 @@ protected function execute(InputInterface $input, OutputInterface $output): int
8686
throw new InvalidArgumentException("Calendar <$calendarId> doesn't support this function");
8787
}
8888
if (!$calendar->isWritable()) {
89-
throw new InvalidArgumentException("Calendar <$calendarId> is not writeable");
89+
throw new InvalidArgumentException("Calendar <$calendarId> is not writable");
9090
}
9191
if ($calendar->isDeleted()) {
9292
throw new InvalidArgumentException("Calendar <$calendarId> is deleted");

apps/dav/lib/Connector/Sabre/DavAclPlugin.php

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ public function beforeMethod(RequestInterface $request, ResponseInterface $respo
112112
// is calendars/users/bob or addressbooks/users/bob readable?
113113
$this->checkPrivileges($parentName, '{DAV:}read');
114114
} elseif ($request->getMethod() === 'MKCALENDAR' || $request->getMethod() === 'MKCOL') {
115-
// is calendars/users/bob or addressbooks/users/bob writeable?
115+
// is calendars/users/bob or addressbooks/users/bob writable?
116116
$this->checkPrivileges($parentName, '{DAV:}write');
117117
}
118118
}

apps/files_sharing/src/components/SidebarTabExternal/SidebarTabExternalSection.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -25,7 +25,7 @@ const props = defineProps({
2525
},
2626
})
2727
28-
// TOOD: Remove with Vue 3
28+
// TODO: Remove with Vue 3
2929
const sectionElement = ref()
3030
watchEffect(() => {
3131
if (sectionElement.value) {

apps/files_sharing/src/services/SharingService.spec.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -284,7 +284,7 @@ describe('SharingService share to Node mapping', () => {
284284
id: 4,
285285
share_type: ShareType.User,
286286
parent: null,
287-
remote: 'http://exampe.com',
287+
remote: 'http://example.com',
288288
remote_id: '12345',
289289
share_token: 'share-token',
290290
name: '/test.md',
@@ -303,7 +303,7 @@ describe('SharingService share to Node mapping', () => {
303303
id: 4,
304304
share_type: ShareType.User,
305305
parent: null,
306-
remote: 'http://exampe.com',
306+
remote: 'http://example.com',
307307
remote_id: '12345',
308308
share_token: 'share-token',
309309
name: '/test.md',

apps/files_versions/src/components/VirtualScrolling.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ export default defineComponent({
177177
.forEach((item) => (item.key = unusedTokens.pop() ?? Math.random().toString(36).substr(2)))
178178
179179
// this._rowIdToKeyMap is created in the beforeCreate hook, so value changes are not tracked.
180-
// Therefore, we wont trigger the computation of visibleSections again if we alter the value of this._rowIdToKeyMap.
180+
// Therefore, we won't trigger the computation of visibleSections again if we alter the value of this._rowIdToKeyMap.
181181
// eslint-disable-next-line vue/no-side-effects-in-computed-properties
182182
this._rowIdToKeyMap = visibleItems.reduce((finalMapping, { id, key }) => ({ ...finalMapping, [`${id}`]: key }), {})
183183

apps/files_versions/tests/VersioningTest.php

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -177,7 +177,7 @@ public static function versionsProvider(): array {
177177
['version' => 4999997, 'path' => 'keep', 'size' => 1],
178178
['version' => 4999995, 'path' => 'keep', 'size' => 1],
179179
['version' => 4999994, 'path' => 'delete', 'size' => 1],
180-
//next slice (60sec) starts at 4999990 keep one version every 10 secons
180+
//next slice (60sec) starts at 4999990 keep one version every 10 seconds
181181
['version' => 4999988, 'path' => 'keep', 'size' => 1],
182182
['version' => 4999978, 'path' => 'keep', 'size' => 1],
183183
['version' => 4999975, 'path' => 'delete', 'size' => 1],
@@ -205,7 +205,7 @@ public static function versionsProvider(): array {
205205
['version' => 4777201, 'path' => 'delete', 'size' => 1],
206206
['version' => 4777501, 'path' => 'delete', 'size' => 1],
207207
['version' => 4740000, 'path' => 'keep', 'size' => 1],
208-
// final slice starts at 2408000 keep one version every 604800 secons
208+
// final slice starts at 2408000 keep one version every 604800 seconds
209209
['version' => 2408000, 'path' => 'keep', 'size' => 1],
210210
['version' => 1803201, 'path' => 'delete', 'size' => 1],
211211
['version' => 1803200, 'path' => 'keep', 'size' => 1],
@@ -219,7 +219,7 @@ public static function versionsProvider(): array {
219219
[
220220
[
221221
// first slice (10sec) keep one version every 2 seconds
222-
// next slice (60sec) starts at 4999990 keep one version every 10 secons
222+
// next slice (60sec) starts at 4999990 keep one version every 10 seconds
223223
// next slice (3600sec) start at 4999940 keep one version every 60 seconds
224224
// next slice (86400sec) start at 4996400 keep one version every 3600 seconds
225225
['version' => 4996400, 'path' => 'keep', 'size' => 1],
@@ -237,7 +237,7 @@ public static function versionsProvider(): array {
237237
['version' => 4777201, 'path' => 'delete', 'size' => 1],
238238
['version' => 4777501, 'path' => 'delete', 'size' => 1],
239239
['version' => 4740000, 'path' => 'keep', 'size' => 1],
240-
// final slice starts at 2408000 keep one version every 604800 secons
240+
// final slice starts at 2408000 keep one version every 604800 seconds
241241
['version' => 2408000, 'path' => 'keep', 'size' => 1],
242242
['version' => 1803201, 'path' => 'delete', 'size' => 1],
243243
['version' => 1803200, 'path' => 'keep', 'size' => 1],
@@ -256,7 +256,7 @@ public static function versionsProvider(): array {
256256
['version' => 4999997, 'path' => 'keep', 'size' => 1],
257257
['version' => 4999995, 'path' => 'keep', 'size' => 1],
258258
['version' => 4999994, 'path' => 'delete', 'size' => 1],
259-
//next slice (60sec) starts at 4999990 keep one version every 10 secons
259+
//next slice (60sec) starts at 4999990 keep one version every 10 seconds
260260
['version' => 4999988, 'path' => 'keep', 'size' => 1],
261261
['version' => 4999978, 'path' => 'keep', 'size' => 1],
262262
//next slice (3600sec) start at 4999940 keep one version every 60 seconds
@@ -270,7 +270,7 @@ public static function versionsProvider(): array {
270270
['version' => 4777201, 'path' => 'delete', 'size' => 1],
271271
['version' => 4777501, 'path' => 'delete', 'size' => 1],
272272
['version' => 4740000, 'path' => 'keep', 'size' => 1],
273-
// final slice starts at 2408000 keep one version every 604800 secons
273+
// final slice starts at 2408000 keep one version every 604800 seconds
274274
['version' => 2408000, 'path' => 'keep', 'size' => 1],
275275
['version' => 1803201, 'path' => 'delete', 'size' => 1],
276276
['version' => 1803200, 'path' => 'keep', 'size' => 1],

apps/theming/README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ A reference to why it was very difficult to actually find good background pictur
1313
- Same for a good balance of different colors.
1414
- The photo needs to work as a background. Photos with objects focused in the middle don’t really work as they will be overlapped by the widgets and content anyway.
1515
- Especially the top part cannot have too much differing contrast, as then it’s not possible to see the navigation icons.
16-
- Especially the top part should be either dark-ish or light-ish, but not a shade exactly inbetween because then contrast can neither be achieved with light nor dark icons.
16+
- Especially the top part should be either dark-ish or light-ish, but not a shade exactly in between because then contrast can neither be achieved with light nor dark icons.
1717
- We serve the pictures at 4k resolution and most of the selected images are also available in 6k or higher so it is future-proof.
1818
- For the search of course we had to limit to CC0, CC By and CC By-Sa. Only CC0 would have been practically impossible cause there’s just not so many good ones which fit.
1919
- Good pages to find photos are [StockSnap](https://stocksnap.io), [Wikimedia Commons](https://commons.wikimedia.org), [Openverse](https://wordpress.org/openverse/) and [Flickr (with license "commercial use & mods allowed")](https://flickr.com/search/?license=4%2C5%2C9%2C10&text=Nextcloud), sorting by interesting or downloads. Most others like Unsplash, Pexels, Pixabay, etc. meanwhile have a non-standard license.
@@ -29,8 +29,8 @@ A reference to why it was very difficult to actually find good background pictur
2929

3030
In `img/background/`:
3131

32-
- Default background: [Fluid (Jo Myoung Hee - Nextcloud GmbH, CC-BY-SA-4.0)](https://nextcloud.com/trademarks/) - orginal 4k
33-
- [Globe (Jenna Kim - Nextcloud GmbH, CC-BY-SA-4.0)](https://nextcloud.com/trademarks/) - orginal 4k
32+
- Default background: [Fluid (Jo Myoung Hee - Nextcloud GmbH, CC-BY-SA-4.0)](https://nextcloud.com/trademarks/) - original 4k
33+
- [Globe (Jenna Kim - Nextcloud GmbH, CC-BY-SA-4.0)](https://nextcloud.com/trademarks/) - original 4k
3434
- [Clouds (Kamil Porembiński, CC BY-SA)](https://www.flickr.com/photos/paszczak000/8715851521/) – original 4k, color modified and sky color changed to Nextcloud blue.
3535
- [Pedra azul milky way (Eduardo Neves, CC BY-SA)](https://commons.wikimedia.org/wiki/File:Pedra_Azul_Milky_Way.jpg) – original 5k.
3636
- [Soft floral (Hannah MacLean, CC0)](https://stocksnap.io/photo/soft-floral-XOYWCCW5PA) – original 5.5k.

0 commit comments

Comments
 (0)