-
Notifications
You must be signed in to change notification settings - Fork 292
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
9 changed files
with
138 additions
and
14 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,29 @@ | ||
<?php | ||
|
||
return [ | ||
'noConfig' => 'Konfigurace nebyla nalezena!', | ||
'notFound' => 'Nenalezeno!', | ||
'diskNotFound' => 'Disk nebyla nalezen!', | ||
'pathNotFound' => 'Cesta nebyla nalezena!', | ||
'diskSelected' => 'Disk byl vybrán!', | ||
// files | ||
'fileExist' => 'Soubor již existuje!', | ||
'fileCreated' => 'Soubor byl vytvořen!', | ||
'fileUpdated' => 'Soubor byl aktualizován!', | ||
'fileNotFound' => 'Soubor nebyl nalezen!', | ||
// directories | ||
'dirExist' => 'Složka již existuje!', | ||
'dirCreated' => 'Složka byla vytvořena!', | ||
'dirNotFound' => 'Složka nebyla nalezena', | ||
// actions | ||
'uploaded' => 'Všechny soubory byly nahrány!', | ||
'notAllUploaded' => 'Některé soubory nebyly nahrány!', | ||
'delNotFound' => 'Některé položky nebyly nalezeny!', | ||
'deleted' => 'Smazáno!', | ||
'renamed' => 'Přejmenováno!', | ||
'copied' => 'Úspěšně zkopírováno!', | ||
// zip | ||
'zipError' => 'Chyba při vytváření archivu!', | ||
// acl | ||
'aclError' => 'Přístup odepřen!', | ||
]; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,55 @@ | ||
<!DOCTYPE html> | ||
<html lang="{{ app()->getLocale() }}"> | ||
<head> | ||
<meta charset="utf-8"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1, shrink-to-fit=no"> | ||
|
||
<!-- CSRF Token --> | ||
<meta name="csrf-token" content="{{ csrf_token() }}"> | ||
|
||
<title>{{ config('app.name', 'File Manager') }}</title> | ||
|
||
<!-- Styles --> | ||
<link rel="stylesheet" href="https://use.fontawesome.com/releases/v5.7.0/css/all.css"> | ||
<link rel="stylesheet" href="https://stackpath.bootstrapcdn.com/bootstrap/4.1.3/css/bootstrap.min.css"> | ||
<link href="{{ asset('vendor/file-manager/css/file-manager.css') }}" rel="stylesheet"> | ||
</head> | ||
<body> | ||
<div class="container-fluid"> | ||
<div class="row"> | ||
<div class="col-md-12" id="fm-main-block"> | ||
<div id="fm"></div> | ||
</div> | ||
</div> | ||
</div> | ||
|
||
<!-- File manager --> | ||
<script src="{{ asset('vendor/file-manager/js/file-manager.js') }}"></script> | ||
<script> | ||
document.addEventListener('DOMContentLoaded', function() { | ||
// set fm height | ||
document.getElementById('fm-main-block').setAttribute('style', 'height:' + window.innerHeight + 'px'); | ||
const FileBrowserDialogue = { | ||
init: function() { | ||
// Here goes your code for setting your custom things onLoad. | ||
}, | ||
mySubmit: function (URL) { | ||
// pass selected file path to TinyMCE | ||
parent.postMessage({ | ||
mceAction: 'insert', | ||
content: URL | ||
}) | ||
// close popup window | ||
parent.postMessage({ mceAction: 'close' }); | ||
} | ||
}; | ||
// Add callback to file manager | ||
fm.$store.commit('fm/setFileCallBack', function(fileUrl) { | ||
FileBrowserDialogue.mySubmit(fileUrl); | ||
}); | ||
}); | ||
</script> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters