Skip to content

Commit 7b3cdeb

Browse files
committed
Modifying css and components to look like Utmstack
1 parent 3ee207a commit 7b3cdeb

19 files changed

Lines changed: 277 additions & 16010 deletions

File tree

frontend/package-lock.json

Lines changed: 99 additions & 15500 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.
0 Bytes
Binary file not shown.

frontend/public/img/logo.svg

Lines changed: 30 additions & 146 deletions
Loading

frontend/src/components/Search.vue

Lines changed: 18 additions & 29 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,16 @@
11
<template>
22
<div id="search" @click="open" v-bind:class="{ active, ongoing }">
33
<div id="input">
4+
<input
5+
type="text"
6+
@keyup.exact="keyup"
7+
@keyup.enter="submit"
8+
ref="input"
9+
:autofocus="active"
10+
v-model.trim="value"
11+
:aria-label="$t('search.pressToSearch')"
12+
:placeholder="$t('search.pressToSearch')"
13+
/>
414
<button
515
v-if="active"
616
class="action"
@@ -11,39 +21,16 @@
1121
<i class="material-icons">arrow_back</i>
1222
</button>
1323
<i v-else class="material-icons">search</i>
14-
<input
15-
type="text"
16-
@keyup.exact="keyup"
17-
@keyup.enter="submit"
18-
ref="input"
19-
:autofocus="active"
20-
v-model.trim="value"
21-
:aria-label="$t('search.search')"
22-
:placeholder="$t('search.search')"
23-
/>
2424
</div>
2525

2626
<div id="result" ref="result">
2727
<div>
2828
<template v-if="isEmpty">
29-
<p>{{ text }}</p>
30-
3129
<template v-if="value.length === 0">
32-
<div class="boxes">
33-
<h3>{{ $t("search.types") }}</h3>
34-
<div>
35-
<div
36-
tabindex="0"
37-
v-for="(v, k) in boxes"
38-
:key="k"
39-
role="button"
40-
@click="init('type:' + k)"
41-
:aria-label="$t('search.' + v.label)"
42-
>
43-
<i class="material-icons">{{ v.icon }}</i>
44-
<p>{{ $t("search." + v.label) }}</p>
45-
</div>
46-
</div>
30+
<div class="valign-wrapper" style="padding: 45%">
31+
<i class="material-icons" style="font-size: 8em !important"
32+
>toc</i
33+
>
4734
</div>
4835
</template>
4936
</template>
@@ -58,14 +45,16 @@
5845
</ul>
5946
</div>
6047
<p id="renew">
61-
<i class="material-icons spin">autorenew</i>
48+
<i class="material-icons spin" style="font-size: 8em !important"
49+
>autorenew</i
50+
>
6251
</p>
6352
</div>
6453
</div>
6554
</template>
6655

6756
<script>
68-
import { mapState, mapGetters, mapMutations } from "vuex";
57+
import { mapGetters, mapMutations, mapState } from "vuex";
6958
import url from "@/utils/url";
7059
import { search } from "@/api";
7160

frontend/src/components/Sidebar.vue

Lines changed: 3 additions & 71 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<span>{{ $t("sidebar.myFiles") }}</span>
1212
</router-link>
1313

14-
<div v-if="user.perm.create">
14+
<div v-if="user.perm.create">
1515
<button
1616
@click="$store.commit('showHover', 'newDir')"
1717
class="action"
@@ -33,82 +33,14 @@
3333
</button>
3434
</div>
3535

36-
<div>
37-
<router-link
38-
class="action"
39-
to="/settings"
40-
:aria-label="$t('sidebar.settings')"
41-
:title="$t('sidebar.settings')"
42-
>
43-
<i class="material-icons">settings_applications</i>
44-
<span>{{ $t("sidebar.settings") }}</span>
45-
</router-link>
46-
47-
<button
48-
v-if="authMethod == 'json'"
49-
@click="logout"
50-
class="action"
51-
id="logout"
52-
:aria-label="$t('sidebar.logout')"
53-
:title="$t('sidebar.logout')"
54-
>
55-
<i class="material-icons">exit_to_app</i>
56-
<span>{{ $t("sidebar.logout") }}</span>
57-
</button>
58-
</div>
5936
</template>
60-
<template v-else>
61-
<router-link
62-
class="action"
63-
to="/login"
64-
:aria-label="$t('sidebar.login')"
65-
:title="$t('sidebar.login')"
66-
>
67-
<i class="material-icons">exit_to_app</i>
68-
<span>{{ $t("sidebar.login") }}</span>
69-
</router-link>
70-
71-
<router-link
72-
v-if="signup"
73-
class="action"
74-
to="/login"
75-
:aria-label="$t('sidebar.signup')"
76-
:title="$t('sidebar.signup')"
77-
>
78-
<i class="material-icons">person_add</i>
79-
<span>{{ $t("sidebar.signup") }}</span>
80-
</router-link>
81-
</template>
82-
83-
<p class="credits">
84-
<span>
85-
<span v-if="disableExternal">File Browser</span>
86-
<a
87-
v-else
88-
rel="noopener noreferrer"
89-
target="_blank"
90-
href="https://github.com/filebrowser/filebrowser"
91-
>File Browser</a
92-
>
93-
<span> {{ version }}</span>
94-
</span>
95-
<span
96-
><a @click="help">{{ $t("sidebar.help") }}</a></span
97-
>
98-
</p>
9937
</nav>
10038
</template>
10139

10240
<script>
103-
import { mapState, mapGetters } from "vuex";
41+
import { mapGetters, mapState } from "vuex";
10442
import * as auth from "@/utils/auth";
105-
import {
106-
version,
107-
signup,
108-
disableExternal,
109-
noAuth,
110-
authMethod,
111-
} from "@/utils/constants";
43+
import { authMethod, disableExternal, noAuth, signup, version } from "@/utils/constants";
11244
11345
export default {
11446
name: "sidebar",

frontend/src/components/files/ListingItem.vue

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,9 +23,8 @@
2323
<div>
2424
<p class="name">{{ name }}</p>
2525

26-
<p v-if="isDir" class="size" data-order="-1">&mdash;</p>
26+
<p v-if="isDir" class="size" data-order="-1"></p>
2727
<p v-else class="size" :data-order="humanSize()">{{ humanSize() }}</p>
28-
2928
<p class="modified">
3029
<time :datetime="modified">{{ humanTime() }}</time>
3130
</p>

frontend/src/components/header/HeaderBar.vue

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,5 @@
11
<template>
22
<header>
3-
<img v-if="showLogo !== undefined" :src="logoURL" />
43
<action
54
v-if="showMenu !== undefined"
65
class="menu-button"

frontend/src/css/_variables.css

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
:root {
2-
--blue: #2196f3;
3-
--dark-blue: #1E88E5;
4-
--red: #F44336;
5-
--dark-red: #D32F2F;
2+
--blue: #1976D2;
3+
--dark-blue: #1565C0;
4+
--red: #D32F2F;
5+
--dark-red:#C62828;
66
--moon-grey: #f2f2f2;
77
}

0 commit comments

Comments
 (0)