Skip to content

Commit 01d3bf8

Browse files
committed
2 parents e60049d + 7cc2910 commit 01d3bf8

File tree

6 files changed

+120
-20
lines changed

6 files changed

+120
-20
lines changed

dist/angular-filemanager.min.css

Lines changed: 1 addition & 1 deletion
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

dist/angular-filemanager.min.js

Lines changed: 3 additions & 3 deletions
Some generated files are not rendered by default. Learn more about customizing how changed files appear on GitHub.

src/css/main.css

Lines changed: 21 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
body {
2-
padding-top: 55px;
32
font-size: 14px;
3+
height: 100vh;
44
}
55

66
*,
@@ -14,6 +14,9 @@ body {
1414

1515
.navbar {
1616
min-height: 32px;
17+
margin-bottom: 0;
18+
border: 0;
19+
border-radius: 0;
1720
}
1821

1922
.navbar .navbar-toggle {
@@ -67,10 +70,6 @@ textarea.code {
6770
border-bottom: 1px solid #eee;
6871
}
6972

70-
.navbar-fixed-top {
71-
border: 0;
72-
}
73-
7473
.sidebar {
7574
display: none;
7675
}
@@ -286,20 +285,30 @@ table th > a:focus {
286285
font-weight: bold;
287286
}
288287

288+
.main {
289+
overflow-y: auto;
290+
}
291+
289292
@media (min-width: 768px) {
290293
.main {
291294
padding-right: 0;
292295
padding-left: 0;
293296
}
294297

298+
/* The view should fill all available vertical space */
299+
angular-filemanager > div,.row,.main,.sidebar {
300+
height: 100%;
301+
}
302+
303+
.container-fluid {
304+
height: -webkit-calc(100% - 55px);
305+
height: -moz-calc(100% - 55px);
306+
height: calc(100% - 55px);
307+
}
308+
295309
.sidebar {
296-
position: fixed;
297-
top: 50px;
298-
bottom: 0;
299-
left: 0;
300-
z-index: 1000;
301310
display: block;
302-
padding: 5px 0;
311+
padding: 0;
303312
overflow-x: hidden;
304313
overflow-y: auto;
305314
background-color: #f5f5f5;
@@ -317,4 +326,4 @@ table th > a:focus {
317326
.table.table-files .btn {
318327
display: none;
319328
}
320-
}
329+
}

src/js/providers/translations.js

Lines changed: 90 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -11,6 +11,7 @@
1111
portuguese: 'Portuguese',
1212
french: 'French',
1313
german: 'German',
14+
hebrew: 'Hebrew',
1415
confirm: 'Confirm',
1516
cancel: 'Cancel',
1617
close: 'Close',
@@ -87,6 +88,91 @@
8788
open: 'Open'
8889
});
8990

91+
$translateProvider.translations('he', {
92+
filemanager: 'מנהל קבצים',
93+
language: 'שפה',
94+
english: 'אנגלית',
95+
spanish: 'ספרדית',
96+
portuguese: 'פורטוגזית',
97+
french: 'צרפתית',
98+
german: 'גרמנית',
99+
hebrew: 'עברי',
100+
confirm: 'אשר',
101+
cancel: 'בטל',
102+
close: 'סגור',
103+
upload_file: 'העלה קובץ',
104+
files_will_uploaded_to: 'הקבצים יעלו ל',
105+
uploading: 'מעלה',
106+
permissions: 'הרשאות',
107+
select_destination_folder: 'בחר תיקיית יעד',
108+
source: 'מקור',
109+
destination: 'יעד',
110+
copy_file: 'העתק קובץ',
111+
sure_to_delete: 'האם אתה בטוח שברצונך למחוק',
112+
change_name_move: 'שנה שם / הזז',
113+
enter_new_name_for: 'הקלד שם חדש עבור',
114+
extract_item: 'חלץ פריט',
115+
extraction_started: 'תהליך החילוץ מתבצע ברקע',
116+
compression_started: 'תהליך הכיווץ מתבצע ברקע',
117+
enter_folder_name_for_extraction: 'הקלד שם תיקייה לחילוץ עבור',
118+
enter_folder_name_for_compression: 'הקלד שם תיקייה לכיווץ עבור',
119+
toggle_fullscreen: 'הפעל/בטל מסך מלא',
120+
edit_file: 'ערוך קובץ',
121+
file_content: 'תוכן הקובץ',
122+
loading: 'טוען',
123+
search: 'חפש',
124+
create_folder: 'צור תיקייה',
125+
create: 'צור',
126+
folder_name: 'שם תיקייה',
127+
upload: 'העלה',
128+
change_permissions: 'שנה הרשאות',
129+
change: 'שנה',
130+
details: 'פרטים',
131+
icons: 'סמלים',
132+
list: 'רשימה',
133+
name: 'שם',
134+
size: 'גודל',
135+
actions: 'פעולות',
136+
date: 'תאריך',
137+
no_files_in_folder: 'אין קבצים בתיקייה זו',
138+
no_folders_in_folder: 'התיקייה הזו אינה כוללת תתי תיקיות',
139+
select_this: 'בחר את זה',
140+
go_back: 'חזור אחורה',
141+
wait: 'חכה',
142+
move: 'הזז',
143+
download: 'הורד',
144+
view_item: 'הצג פריט',
145+
remove: 'מחק',
146+
edit: 'ערוך',
147+
copy: 'העתק',
148+
rename: 'שנה שם',
149+
extract: 'חלץ',
150+
compress: 'כווץ',
151+
error_invalid_filename: 'שם קובץ אינו תקין או קיים, ציין שם קובץ אחר',
152+
error_modifying: 'התרחשה שגיאה בעת שינוי הקובץ',
153+
error_deleting: 'התרחשה שגיאה בעת מחיקת הקובץ או התיקייה',
154+
error_renaming: 'התרחשה שגיאה בעת שינוי שם הקובץ',
155+
error_copying: 'התרחשה שגיאה בעת העתקת הקובץ',
156+
error_compressing: 'התרחשה שגיאה בעת כיווץ הקובץ או התיקייה',
157+
error_extracting: 'התרחשה שגיאה בעת חילוץ הקובץ או התיקייה',
158+
error_creating_folder: 'התרחשה שגיאה בעת יצירת התיקייה',
159+
error_getting_content: 'התרחשה שגיאה בעת בקשת תוכן הקובץ',
160+
error_changing_perms: 'התרחשה שגיאה בעת שינוי הרשאות הקובץ',
161+
error_uploading_files: 'התרחשה שגיאה בעת העלאת הקבצים',
162+
sure_to_start_compression_with: 'האם אתה בטוח שברצונך לכווץ',
163+
owner: 'בעלים',
164+
group: 'קבוצה',
165+
others: 'אחרים',
166+
read: 'קריאה',
167+
write: 'כתיבה',
168+
exec: 'הרצה',
169+
original: 'מקורי',
170+
changes: 'שינויים',
171+
recursive: 'רקורסיה',
172+
preview: 'הצגת פריט',
173+
open: 'פתח'
174+
});
175+
90176
$translateProvider.translations('pt', {
91177
filemanager: 'Gerenciador de arquivos',
92178
language: 'Língua',
@@ -95,6 +181,7 @@
95181
portuguese: 'Portugues',
96182
french: 'Francês',
97183
german: 'Alemão',
184+
hebrew: 'Hebraico',
98185
confirm: 'Confirmar',
99186
cancel: 'Cancelar',
100187
close: 'Fechar',
@@ -179,6 +266,7 @@
179266
portuguese: 'Portugues',
180267
french: 'Francés',
181268
german: 'Alemán',
269+
hebrew: 'Hebreo',
182270
confirm: 'Confirmar',
183271
cancel: 'Cancelar',
184272
close: 'Cerrar',
@@ -263,6 +351,7 @@
263351
portuguese: 'Portugais',
264352
french: 'Français',
265353
german: 'Allemand',
354+
hebrew: 'Hébreu',
266355
confirm: 'Confirmer',
267356
cancel: 'Annuler',
268357
close: 'Fermer',
@@ -347,6 +436,7 @@
347436
portuguese: 'Portugiesisch',
348437
french: 'Französisch',
349438
german: 'Deutsch',
439+
hebrew: 'Hebräisch',
350440
confirm: 'Bestätigen',
351441
cancel: 'Abbrechen',
352442
close: 'Schließen',

src/templates/main.html

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,8 +4,8 @@
44
<div class="container-fluid">
55
<div class="row">
66

7-
<div class="col-sm-3 col-md-2 sidebar file-tree animated slow fadeIn" ng-include="config.tplPath + '/sidebar.html'" ng-show="config.sidebar && fileNavigator.history[0]"></div>
8-
<div class="main" ng-class="config.sidebar && fileNavigator.history[0] && 'col-sm-9 col-sm-offset-3 col-md-10 col-md-offset-2'">
7+
<div class="col-sm-3 col-md-2 sidebar file-tree animated slow fadeIn" ng-include="config.tplPath + '/sidebar.html'" ng-show="config.sidebar &amp;&amp; fileNavigator.history[0]"></div>
8+
<div class="main" ng-class="config.sidebar &amp;&amp; fileNavigator.history[0] &amp;&amp; 'col-sm-9 col-md-10'">
99
<div ng-include="config.tplPath + '/current-folder-breadcrumb.html'" ng-show="config.breadcrumb"></div>
1010
<div ng-include="config.tplPath + '/' + viewTemplate" class="main-navigation clearfix"></div>
1111
</div>
@@ -14,4 +14,4 @@
1414

1515
<div ng-include="config.tplPath + '/modals.html'"></div>
1616
<div ng-include="config.tplPath + '/item-context-menu.html'"></div>
17-
</div>
17+
</div>

src/templates/navbar.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
<nav class="navbar navbar-inverse navbar-fixed-top">
1+
<nav class="navbar navbar-inverse">
22
<div class="container-fluid">
33
<div class="navbar-header">
44
<button type="button" class="navbar-toggle collapsed" data-toggle="collapse" data-target="#navbar" aria-expanded="false" aria-controls="navbar">
@@ -28,6 +28,7 @@
2828
<li role="presentation"><a role="menuitem" tabindex="-1" href="" ng-click="changeLanguage('pt')">{{"portuguese" | translate}}</a></li>
2929
<li role="presentation"><a role="menuitem" tabindex="-1" href="" ng-click="changeLanguage('fr')">{{"french" | translate}}</a></li>
3030
<li role="presentation"><a role="menuitem" tabindex="-1" href="" ng-click="changeLanguage('de')">{{"german" | translate}}</a></li>
31+
<li role="presentation"><a role="menuitem" tabindex="-1" href="" ng-click="changeLanguage('he')">{{"hebrew" | translate}}</a></li>
3132
</ul>
3233

3334
<button class="btn btn-default btn-sm" ng-click="$parent.setTemplate('main-icons.html')" ng-show="$parent.viewTemplate !== 'main-icons.html'" title="{{'icons' | translate}}">

0 commit comments

Comments
 (0)