Skip to content

Commit d729701

Browse files
authored
chore: fix typos (filebrowser#3490)
1 parent 406d4f7 commit d729701

File tree

9 files changed

+13
-13
lines changed

9 files changed

+13
-13
lines changed

CHANGELOG.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -99,7 +99,7 @@ All notable changes to this project will be documented in this file. See [standa
9999
* close editor when click escape key ([#2947](https://github.com/filebrowser/filebrowser/issues/2947)) ([70c8261](https://github.com/filebrowser/filebrowser/commit/70c826133b8578b8712e6db8f762a15a076cd9a9))
100100
* enable preview in shared folder ([#3055](https://github.com/filebrowser/filebrowser/issues/3055)) ([4c233c3](https://github.com/filebrowser/filebrowser/commit/4c233c3db39ea5a00d6e602ec0ecbddecb590877))
101101
* focus editor when opened ([#2946](https://github.com/filebrowser/filebrowser/issues/2946)) ([b19710e](https://github.com/filebrowser/filebrowser/commit/b19710efca6daa7af56dc211d0051d500d2eea22))
102-
* freezing the list in the backgroud while previewing a file ([#3004](https://github.com/filebrowser/filebrowser/issues/3004)) ([e167c3e](https://github.com/filebrowser/filebrowser/commit/e167c3e1efed8b16be45d994a8d443fda1d8cf49))
102+
* freezing the list in the background while previewing a file ([#3004](https://github.com/filebrowser/filebrowser/issues/3004)) ([e167c3e](https://github.com/filebrowser/filebrowser/commit/e167c3e1efed8b16be45d994a8d443fda1d8cf49))
103103
* prompt to confirm discard editor changes ([#2948](https://github.com/filebrowser/filebrowser/issues/2948)) ([fb1a09c](https://github.com/filebrowser/filebrowser/commit/fb1a09c7c172b913c12b30975ca545e505df0c05))
104104
* select multiple files with ctrl even with singleClick option ([#2953](https://github.com/filebrowser/filebrowser/issues/2953)) ([d49c3df](https://github.com/filebrowser/filebrowser/commit/d49c3dfacfc0ff07e620b3ad2700e64927b06235))
105105

cmd/root.go

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -76,7 +76,7 @@ var rootCmd = &cobra.Command{
7676
Use: "filebrowser",
7777
Short: "A stylish web-based file browser",
7878
Long: `File Browser CLI lets you create the database to use with File Browser,
79-
manage your users and all the configurations without acessing the
79+
manage your users and all the configurations without accessing the
8080
web interface.
8181
8282
If you've never run File Browser, you'll need to have a database for
@@ -108,7 +108,7 @@ name in caps. So to set "database" via an env variable, you should
108108
set FB_DATABASE.
109109
110110
Also, if the database path doesn't exist, File Browser will enter into
111-
the quick setup mode and a new database will be bootstraped and a new
111+
the quick setup mode and a new database will be bootstrapped and a new
112112
user created with the credentials from options "username" and "password".`,
113113
Run: python(func(cmd *cobra.Command, _ []string, d pythonData) {
114114
log.Println(cfgFile)

cmd/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -188,7 +188,7 @@ func cleanUpMapValue(v interface{}) interface{} {
188188
}
189189

190190
// convertCmdStrToCmdArray checks if cmd string is blank (whitespace included)
191-
// then returns empty string array, else returns the splitted word array of cmd.
191+
// then returns empty string array, else returns the split word array of cmd.
192192
// This is to ensure the result will never be []string{""}
193193
func convertCmdStrToCmdArray(cmd string) []string {
194194
var cmdArray []string

files/mime.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ const (
2828
ContentTextHeaderValue = "text/plain"
2929
// ContentXMLHeaderValue header value for XML data.
3030
ContentXMLHeaderValue = "text/xml"
31-
// ContentXMLUnreadableHeaderValue obselete header value for XML.
31+
// ContentXMLUnreadableHeaderValue obsolete header value for XML.
3232
ContentXMLUnreadableHeaderValue = "application/xml"
3333
// ContentMarkdownHeaderValue custom key/content type, the real is the text/html.
3434
ContentMarkdownHeaderValue = "text/markdown"

fileutils/file.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ func CommonPrefix(sep byte, paths ...string) string {
9898
// (e.g. /home/user1, /home/user1/foo, /home/user1/bar).
9999
// path.Clean will have cleaned off trailing / separators with
100100
// the exception of the root directory, "/" (in which case we
101-
// make it "//", but this will get fixed up to "/" bellow).
101+
// make it "//", but this will get fixed up to "/" below).
102102
c = append(c, sep)
103103

104104
// Ignore the first path since it's already in c

frontend/src/stores/upload.ts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -170,12 +170,12 @@ export const useUploadStore = defineStore("upload", {
170170
async processUploads() {
171171
const uploadsCount = Object.keys(this.uploads).length;
172172

173-
const isBellowLimit = uploadsCount < UPLOADS_LIMIT;
173+
const isBelowLimit = uploadsCount < UPLOADS_LIMIT;
174174
const isQueueEmpty = this.queue.length == 0;
175175
const isUploadsEmpty = uploadsCount == 0;
176176

177177
const isFinished = isQueueEmpty && isUploadsEmpty;
178-
const canProcess = isBellowLimit && !isQueueEmpty;
178+
const canProcess = isBelowLimit && !isQueueEmpty;
179179

180180
if (isFinished) {
181181
const fileStore = useFileStore();

frontend/src/views/settings/Global.vue

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -282,11 +282,11 @@ const formattedChunkSize = computed({
282282
// Define funcs
283283
const capitalize = (name: string, where: string | RegExp = "_") => {
284284
if (where === "caps") where = /(?=[A-Z])/;
285-
let splitted = name.split(where);
285+
let split = name.split(where);
286286
name = "";
287287
288-
for (let i = 0; i < splitted.length; i++) {
289-
name += splitted[i].charAt(0).toUpperCase() + splitted[i].slice(1) + " ";
288+
for (let i = 0; i < split.length; i++) {
289+
name += split[i].charAt(0).toUpperCase() + split[i].slice(1) + " ";
290290
}
291291
292292
return name.slice(0, -1);

http/utils.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ func errToStatus(err error) int {
4747
}
4848
}
4949

50-
// This is an addaptation if http.StripPrefix in which we don't
50+
// This is an adaptation if http.StripPrefix in which we don't
5151
// return 404 if the page doesn't have the needed prefix.
5252
func stripPrefix(prefix string, h http.Handler) http.Handler {
5353
if prefix == "" || prefix == "/" {

version/version.go

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,6 +3,6 @@ package version
33
var (
44
// Version is the current File Browser version.
55
Version = "(untracked)"
6-
// CommitSHA is the commmit sha.
6+
// CommitSHA is the commit sha.
77
CommitSHA = "(unknown)"
88
)

0 commit comments

Comments
 (0)