diff --git a/.gitignore b/.gitignore index 6935b232..731c9e7e 100644 --- a/.gitignore +++ b/.gitignore @@ -5,8 +5,9 @@ rice-box.go .idea/ /filebrowser /filebrowser.exe -/dist -/src/backend/vendor +/frontend/dist +/backend/vendor + .DS_Store node_modules diff --git a/backend/frontend/dist b/backend/frontend/dist new file mode 120000 index 00000000..e4608c09 --- /dev/null +++ b/backend/frontend/dist @@ -0,0 +1 @@ +../../frontend/dist \ No newline at end of file diff --git a/backend/frontend/dist/.gitignore b/backend/frontend/dist/.gitignore deleted file mode 100644 index 86d0cb27..00000000 --- a/backend/frontend/dist/.gitignore +++ /dev/null @@ -1,4 +0,0 @@ -# Ignore everything in this directory -* -# Except this file -!.gitignore \ No newline at end of file diff --git a/backend/search/conditions.go b/backend/search/conditions.go index e9d5e977..c31a7a24 100644 --- a/backend/search/conditions.go +++ b/backend/search/conditions.go @@ -26,9 +26,9 @@ var compressedFile = []string{ } type searchOptions struct { - Conditions map[string]bool + Conditions map[string]bool Size int - Terms []string + Terms []string } func ParseSearch(value string) *searchOptions { @@ -59,6 +59,7 @@ func ParseSearch(value string) *searchOptions { case "folder" : opts.Conditions["dir"] = true case "file" : opts.Conditions["dir"] = false } + if len(filter) < 8 { continue } @@ -90,7 +91,8 @@ func ParseSearch(value string) *searchOptions { opts.Terms = []string{unique} return opts } - + re := regexp.MustCompile(` +`) + value = re.ReplaceAllString(value, " ") opts.Terms = strings.Split(value, " ") return opts } diff --git a/frontend/package.json b/frontend/package.json index 3c082566..2d954b88 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -9,8 +9,6 @@ "watch": "find ./dist -maxdepth 1 -mindepth 1 ! -name '.gitignore' -exec rm -r {} + && vue-cli-service build --watch --no-clean" }, "dependencies": { - "normalize.css": "^8.0.1", - "file-loader": "^6.2.0", "ace-builds": "^1.4.7", "clipboard": "^2.0.4", "css-vars-ponyfill": "^2.4.3", diff --git a/frontend/public/themes/dark.css b/frontend/public/themes/dark.css index 0d0aac63..f202f157 100644 --- a/frontend/public/themes/dark.css +++ b/frontend/public/themes/dark.css @@ -3,7 +3,6 @@ --surfacePrimary: #20292F; --surfaceSecondary: #3A4147; --divider: rgba(255, 255, 255, 0.12); - --icon: #ffffff; --textPrimary: rgba(255, 255, 255, 0.87); --textSecondary: rgba(255, 255, 255, 0.6); } @@ -16,9 +15,6 @@ body { #loading { background: var(--background); } -#loading .spinner div, main .spinner div { - background: var(--icon); -} #login { background: var(--background); @@ -65,9 +61,7 @@ header { .action:hover { background-color: rgba(255, 255, 255, .1); } -.action i { - color: var(--icon) !important; -} + .action .counter { border-color: var(--surfacePrimary); } @@ -92,9 +86,7 @@ nav > div { color: var(--textPrimary); border-color: var(--divider) !important; } -#listing .item i { - color: var(--icon); -} + #listing .item .modified { color: var(--textSecondary); } @@ -105,9 +97,7 @@ nav > div { #listing.list .header span { color: var(--textPrimary); } -#listing.list .header i { - color: var(--icon); -} + #listing.list .item.header { background: var(--background); } @@ -130,6 +120,9 @@ nav > div { .dashboard #nav ul li:hover { background: var(--surfaceSecondary); } +#result-list { + background-color:#292929; +} .card h3, .dashboard #nav, @@ -173,9 +166,6 @@ table th { .file-list li:before { color: var(--textSecondary); } -.file-list li[aria-selected=true]:before { - color: var(--icon); -} .shell { background: var(--surfacePrimary); @@ -196,16 +186,18 @@ nav { background: var(--surfaceSecondary) !important; } -@media (max-width: 736px) { - #file-selection { - background: var(--surfaceSecondary) !important; - } - #file-selection span { - color: var(--textPrimary) !important; - } - #dropdown { - background: var(--surfaceSecondary) !important; - } +#file-selection { + background: var(--surfaceSecondary) !important; +} +#file-selection span { + color: var(--textPrimary) !important; +} +#dropdown { + background: var(--surfaceSecondary) !important; +} + +.button-group button { + background-color:darkgray; } .share__box { diff --git a/frontend/src/components/ButtonGroup.vue b/frontend/src/components/ButtonGroup.vue new file mode 100644 index 00000000..5215ccaa --- /dev/null +++ b/frontend/src/components/ButtonGroup.vue @@ -0,0 +1,94 @@ + + + + + diff --git a/frontend/src/components/Search.vue b/frontend/src/components/Search.vue index 3935b9c9..c4823010 100644 --- a/frontend/src/components/Search.vue +++ b/frontend/src/components/Search.vue @@ -1,36 +1,39 @@ + \ No newline at end of file diff --git a/frontend/src/components/Sidebar.vue b/frontend/src/components/Sidebar.vue index 4f76c9f4..7af376d9 100644 --- a/frontend/src/components/Sidebar.vue +++ b/frontend/src/components/Sidebar.vue @@ -1,34 +1,6 @@