Skip to content

Commit cd6d724

Browse files
committed
Merge tag 'v2.3.0' into develop
2 parents 41f5352 + 4da50f7 commit cd6d724

File tree

4 files changed

+36
-19
lines changed

4 files changed

+36
-19
lines changed

package.json

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "laravel-file-manager",
3-
"version": "2.2.3",
3+
"version": "2.3.0",
44
"description": "File manager for Laravel",
55
"keywords": [
66
"laravel",

src/components/modals/views/About.vue

Lines changed: 1 addition & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -14,26 +14,14 @@
1414
<dd class="col-9">{{ version }}</dd>
1515

1616
<dt class="col-3">{{ lang.modal.about.developer }}:</dt>
17-
<dd class="col-9">Aleksandr Manekin</dd>
18-
19-
<dt class="col-3">Email:</dt>
20-
<dd class="col-9">
21-
22-
</dd>
17+
<dd class="col-9">Aleksandr Manekin ([email protected])</dd>
2318

2419
<dt class="col-3">GitHub:</dt>
2520
<dd class="col-9">
2621
<a href="https://github.com/alexusmai/laravel-file-manager" target="_blank">
2722
alexusmai/laravel-file-manager
2823
</a>
2924
</dd>
30-
31-
<dt class="col-3">Home:</dt>
32-
<dd class="col-9">
33-
<a href="http://webmai.ru/projects/file-manager" target="_blank">
34-
Laravel File Manager (RU)
35-
</a>
36-
</dd>
3725
</dl>
3826
</div>
3927
</div>

src/store/actions.js

Lines changed: 33 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,11 @@ export default {
2727
? response.data.config.rightDisk
2828
: getters.diskList[0];
2929

30-
// find disk settings in URL
30+
// paths
31+
let leftPath = response.data.config.leftPath;
32+
let rightPath = response.data.config.rightPath;
33+
34+
// find disk and path settings in the URL
3135
if (window.location.search) {
3236
const params = new URLSearchParams(window.location.search);
3337

@@ -38,33 +42,58 @@ export default {
3842
if (params.get('rightDisk')) {
3943
rightDisk = params.get('rightDisk');
4044
}
45+
46+
if (params.get('leftPath')) {
47+
leftPath = params.get('leftPath');
48+
}
49+
50+
if (params.get('rightPath')) {
51+
rightPath = params.get('rightPath');
52+
}
4153
}
4254

4355
// left manager - set default disk
4456
commit('left/setDisk', leftDisk);
4557

58+
// if leftPath not null
59+
if (leftPath) {
60+
commit('left/setSelectedDirectory', leftPath);
61+
commit('left/addToHistory', leftPath);
62+
}
63+
4664
// load content to the left file manager
4765
dispatch('getLoadContent', {
4866
manager: 'left',
4967
disk: leftDisk,
50-
path: null,
68+
path: leftPath,
5169
});
5270

5371
// initialize the app depending on the settings
5472
if (state.settings.windowsConfig === 3) {
5573
// if selected left and right managers
5674
commit('right/setDisk', rightDisk);
5775

76+
// if rightPath not null
77+
if (rightPath) {
78+
commit('right/setSelectedDirectory', rightPath);
79+
commit('right/addToHistory', rightPath);
80+
}
81+
5882
// load content to the right file manager
5983
dispatch('getLoadContent', {
6084
manager: 'right',
6185
disk: rightDisk,
62-
path: null,
86+
path: rightPath,
6387
});
6488
} else if (state.settings.windowsConfig === 2) {
6589
// if selected left manager and directories tree
6690
// init directories tree
67-
dispatch('tree/initTree', leftDisk);
91+
dispatch('tree/initTree', leftDisk).then(() => {
92+
if (leftPath) {
93+
// reopen folders if path not null
94+
dispatch('tree/reopenPath', leftPath);
95+
}
96+
});
6897
}
6998
}
7099
});

src/store/settings/store.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ export default {
1414
acl: null,
1515

1616
// App version
17-
version: '2.2.3',
17+
version: '2.3.0',
1818

1919
// axios headers
2020
headers: null,

0 commit comments

Comments
 (0)