Skip to content

feat(lang): add european portuguese support #106

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Closed
wants to merge 6 commits into from
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,13 +1,13 @@
{
"name": "laravel-file-manager",
"version": "2.5.4",
"name": "@stydevz/laravel-file-manager",
"version": "2.5.6",
"description": "File manager for Laravel",
"keywords": [
"laravel",
"file",
"manager"
],
"author": "Aleksandr Manekin <[email protected]>",
"author": "Stydevz",
"private": false,
"license": "MIT",
"main": "src/init.js",
Expand Down
19 changes: 10 additions & 9 deletions src/FileManager.vue
Original file line number Diff line number Diff line change
Expand Up @@ -95,14 +95,7 @@ export default {
/**
* todo Keyboard event
*/
/*
window.addEventListener('keyup', (event) => {
event.preventDefault();
event.stopPropagation();

EventBus.$emit('keyMonitor', event);
});
*/
window.addEventListener('keyup', this.keyEvent);
},
destroyed() {
// reset state
Expand All @@ -114,6 +107,8 @@ export default {
// eject interceptors
HTTP.interceptors.request.eject(this.interceptorIndex.request);
HTTP.interceptors.response.eject(this.interceptorIndex.response);

window.removeEventListener('keyup', this.keyEvent);
},
computed: {
...mapState('fm', {
Expand All @@ -124,6 +119,12 @@ export default {
}),
},
methods: {
keyEvent(e) {
e.preventDefault();
e.stopPropagation();

EventBus.$emit('keyMonitor', e);
},
/**
* Add axios request interceptor
*/
Expand Down Expand Up @@ -233,7 +234,7 @@ export default {
</script>

<style lang="scss">
@import "~plyr/src/sass/plyr.scss";
@import "plyr/src/sass/plyr.scss";
.fm {
position: relative;
height: 100%;
Expand Down
218 changes: 154 additions & 64 deletions src/components/blocks/Navbar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -3,112 +3,202 @@
<div class="row justify-content-between">
<div class="col-auto">
<div class="btn-group" role="group">
<button type="button" class="btn btn-secondary"
<v-btn type="button" class="btn btn-secondary"
v-bind:disabled="backDisabled"
v-bind:title="lang.btn.back"
v-on:click="historyBack()">
<i class="fas fa-step-backward"/>
</button>
<button type="button" class="btn btn-secondary"
v-on:click="historyBack()"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-arrow-left</v-icon>
</v-btn>
<v-btn type="button" class="btn btn-secondary"
v-bind:disabled="forwardDisabled"
v-bind:title="lang.btn.forward"
v-on:click="historyForward()">
<i class="fas fa-step-forward"/>
</button>
<button type="button" class="btn btn-secondary"
v-on:click="historyForward()"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-arrow-right</v-icon>
</v-btn>
<v-btn type="button" class="btn btn-secondary"
v-on:click="refreshAll()"
v-bind:title="lang.btn.refresh">
<i class="fas fa-sync-alt"/>
</button>
v-bind:title="lang.btn.refresh"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-refresh</v-icon>
</v-btn>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-secondary"
<v-btn type="button" class="btn btn-secondary"
v-on:click="showModal('NewFile')"
v-bind:title="lang.btn.file">
<i class="far fa-file"/>
</button>
<button type="button" class="btn btn-secondary"
v-bind:title="lang.btn.file"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-file-outline</v-icon>
</v-btn>
<v-btn type="button" class="btn btn-secondary"
v-on:click="showModal('NewFolder')"
v-bind:title="lang.btn.folder">
<i class="far fa-folder"/>
</button>
<button type="button" class="btn btn-secondary"
v-bind:title="lang.btn.folder"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-folder-outline</v-icon>
</v-btn>
<v-btn type="button" class="btn btn-secondary"
disabled
v-if="uploading"
v-bind:title="lang.btn.upload">
<i class="fas fa-upload"/>
</button>
<button type="button" class="btn btn-secondary"
v-bind:title="lang.btn.upload"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-upload-outline</v-icon>
</v-btn>
<v-btn type="button" class="btn btn-secondary"
v-else
v-on:click="showModal('Upload')"
v-bind:title="lang.btn.upload">
<i class="fas fa-upload"/>
</button>
<button type="button" class="btn btn-secondary"
v-bind:title="lang.btn.upload"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-upload-outline</v-icon>
</v-btn>
<v-btn type="button" class="btn btn-secondary"
v-bind:disabled="!isAnyItemSelected"
v-on:click="showModal('Delete')"
v-bind:title="lang.btn.delete">
<i class="fas fa-trash-alt"/>
</button>
v-bind:title="lang.btn.delete"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-delete-outline</v-icon>
</v-btn>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-secondary"
<v-btn type="button" class="btn btn-secondary"
v-bind:disabled="!isAnyItemSelected"
v-bind:title="lang.btn.copy"
v-on:click="toClipboard('copy')">
<i class="fas fa-copy"/>
</button>
<button type="button" class="btn btn-secondary"
v-on:click="toClipboard('copy')"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-content-copy</v-icon>
</v-btn>
<v-btn type="button" class="btn btn-secondary"
v-bind:disabled="!isAnyItemSelected"
v-bind:title="lang.btn.cut"
v-on:click="toClipboard('cut')">
<i class="fas fa-cut"/>
</button>
<button type="button" class="btn btn-secondary"
v-on:click="toClipboard('cut')"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-content-cut</v-icon>
</v-btn>
<v-btn type="button" class="btn btn-secondary"
v-bind:disabled="!clipboardType"
v-bind:title="lang.btn.paste"
v-on:click="paste">
<i class="fas fa-paste"/>
</button>
v-on:click="paste"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-content-paste</v-icon>
</v-btn>
</div>
<div class="btn-group" role="group">
<!-- <div class="btn-group" role="group">
<button type="button" class="btn btn-secondary"
v-bind:title="lang.btn.hidden"
v-on:click="toggleHidden">
<i class="fas" v-bind:class="[hiddenFiles ? 'fa-eye': 'fa-eye-slash']"/>
</button>
</div>
</div> -->
</div>
<div class="col-auto text-right">
<div class="btn-group" role="group">
<button type="button" class="btn btn-secondary"
<v-btn type="button" class="btn btn-secondary"
v-bind:class="[viewType === 'table' ? 'active' : '']"
v-on:click="selectView('table')"
v-bind:title="lang.btn.table">
<i class="fas fa-th-list"/>
</button>
<button role="button" class="btn btn-secondary"
v-bind:title="lang.btn.table"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-format-list-bulleted</v-icon>
</v-btn>
<v-btn role="button" class="btn btn-secondary"
v-bind:class="[viewType === 'grid' ? 'active' : '']"
v-on:click="selectView('grid')"
v-bind:title="lang.btn.grid">
<i class="fas fa-th"/>
</button>
v-bind:title="lang.btn.grid"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-view-grid-outline</v-icon>
</v-btn>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-secondary"
<v-btn type="button" class="btn btn-secondary"
v-bind:title="lang.btn.fullScreen"
v-bind:class="{ active: fullScreen }"
v-on:click="screenToggle">
<i class="fas fa-expand-arrows-alt"/>
</button>
v-on:click="screenToggle"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-fullscreen</v-icon>
</v-btn>
</div>
<div class="btn-group" role="group">
<button type="button" class="btn btn-secondary"
<!-- <div class="btn-group" role="group">
<v-btn type="button" class="btn btn-secondary"
v-bind:title="lang.btn.about"
v-on:click="showModal('About')">
<i class="fas fa-question"/>
</button>
</div>
v-on:click="showModal('About')"
fab
tile
small
color="primary"
elevation="1"
>
<v-icon>mdi-help-circle-outline</v-icon>
</v-btn>
</div> -->
</div>
</div>
</div>
Expand Down
8 changes: 4 additions & 4 deletions src/components/manager/Breadcrumb.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<div class="fm-breadcrumb">
<nav aria-label="breadcrumb">
<ol class="breadcrumb"
<ol class="breadcrumb" style="height: 32px; align-items: center;"
v-bind:class="[manager === activeManager ? 'active-manager' : 'bg-light']">
<li class="breadcrumb-item" v-on:click="selectMainDirectory">
<span class="badge badge-secondary">
<i class="far fa-hdd"/>
<li class="breadcrumb-item" style="display: inline-flex;" v-on:click="selectMainDirectory">
<span class="badge">
<v-icon small>mdi-server</v-icon>
</span>
</li>
<li class="breadcrumb-item text-truncate"
Expand Down
6 changes: 3 additions & 3 deletions src/components/manager/DiskList.vue
Original file line number Diff line number Diff line change
@@ -1,11 +1,11 @@
<template>
<div class="fm-disk-list">
<div class="fm-disk-list" style="display:none;">
<ul class="list-inline">
<li class="list-inline-item" v-for="(disk, index) in disks" v-bind:key="index">
<span class="badge"
v-on:click="selectDisk(disk)"
v-bind:class="[disk === selectedDisk ? 'badge-secondary' : 'badge-light']">
<i class="fa-fw far fa-hdd"/> {{ disk }}
v-bind:class="[disk === selectedDisk ? 'badge-secondary secondary' : 'badge-light']">
<v-icon small color="white">mdi-server</v-icon> {{ disk }}
</span>
</li>
</ul>
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/additions/Cropper.vue
Original file line number Diff line number Diff line change
Expand Up @@ -272,7 +272,7 @@ export default {
</script>

<style lang="scss">
@import "~cropperjs/dist/cropper.css";
@import "cropperjs/dist/cropper.css";

.fm-additions-cropper {
overflow: hidden;
Expand Down
2 changes: 1 addition & 1 deletion src/components/modals/views/Clipboard.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<div class="d-flex justify-content-between">
<div class="w-75 text-truncate">
<span>
<i class="far fa-hdd"/>{{ clipboard.disk }}
<v-icon small>mdi-server</v-icon>{{ clipboard.disk }}
</span>
</div>
<div class="text-right text-muted">
Expand Down
4 changes: 2 additions & 2 deletions src/components/modals/views/TextEdit.vue
Original file line number Diff line number Diff line change
Expand Up @@ -136,8 +136,8 @@ export default {
</script>

<style lang="scss">
@import '~codemirror/lib/codemirror.css';
@import '~codemirror/theme/blackboard.css';
@import 'codemirror/lib/codemirror.css';
@import 'codemirror/theme/blackboard.css';

.fm-modal-text-edit {
.modal-body {
Expand Down
Loading