Rename album to folder
parent
97a1dcddda
commit
3b0b5c05dc
|
@ -8,8 +8,8 @@
|
|||
|
||||
* **📸 Photo and Video Timeline**: Sorts photos by date taken, parsed from Exif data.
|
||||
* **🤔 Quick Recap**: Jump to anywhere in the timeline instantly.
|
||||
* **🖼️ Albums**: Browse your and shared folders with a similar, efficient timeline.
|
||||
* **🎦 Slideshow**: View photos from your timeline and albums easily.
|
||||
* **🖼️ Folders**: Browse your and shared folders with a similar, efficient timeline.
|
||||
* **🎦 Slideshow**: View photos from your timeline and folders easily.
|
||||
* **📱 Mobile Support**: Relive your memories on devices of any shape and size through the web app.
|
||||
* **🗑️ Recycle**: Select and delete multiple photos and videos at once.
|
||||
|
||||
|
|
|
@ -9,8 +9,8 @@
|
|||
|
||||
* **📸 Photo and Video Timeline**: Sorts photos by date taken, parsed from Exif data.
|
||||
* **🤔 Quick Recap**: Jump to anywhere in the timeline instantly.
|
||||
* **🖼️ Albums**: Browse your and shared folders with a similar, efficient timeline.
|
||||
* **🎦 Slideshow**: View photos from your timeline and albums easily.
|
||||
* **🖼️ Folders**: Browse your and shared folders with a similar, efficient timeline.
|
||||
* **🎦 Slideshow**: View photos from your timeline and folders easily.
|
||||
* **📱 Mobile Support**: Relive your memories on devices of any shape and size through the web app.
|
||||
* **🗑️ Recycle**: Select and delete multiple photos and videos at once.
|
||||
]]></description>
|
||||
|
|
|
@ -1,9 +1,9 @@
|
|||
<?php
|
||||
return [
|
||||
'routes' => [
|
||||
// Days and album API
|
||||
// Days and folder API
|
||||
['name' => 'page#main', 'url' => '/', 'verb' => 'GET'],
|
||||
['name' => 'page#album', 'url' => '/albums/{path}', 'verb' => 'GET',
|
||||
['name' => 'page#folder', 'url' => '/folders/{path}', 'verb' => 'GET',
|
||||
'requirements' => [
|
||||
'path' => '.*',
|
||||
],
|
||||
|
|
|
@ -66,7 +66,7 @@ class PageController extends Controller {
|
|||
* @NoAdminRequired
|
||||
* @NoCSRFRequired
|
||||
*/
|
||||
public function album() {
|
||||
public function folder() {
|
||||
return $this->main();
|
||||
}
|
||||
}
|
||||
|
|
|
@ -7,8 +7,8 @@
|
|||
icon="icon-yourmemories"
|
||||
exact>
|
||||
</NcAppNavigationItem>
|
||||
<NcAppNavigationItem :to="{name: 'albums'}"
|
||||
:title="t('albums', 'Albums')"
|
||||
<NcAppNavigationItem :to="{name: 'folders'}"
|
||||
:title="t('folders', 'Folders')"
|
||||
icon="icon-files-dark">
|
||||
</NcAppNavigationItem>
|
||||
</template>
|
||||
|
|
|
@ -79,9 +79,9 @@ export default {
|
|||
}
|
||||
},
|
||||
|
||||
/** Open album folder */
|
||||
/** Open folder */
|
||||
openFolder(id) {
|
||||
this.$router.push({ name: 'albums', params: { id } });
|
||||
this.$router.push({ name: 'folders', params: { id } });
|
||||
},
|
||||
}
|
||||
}
|
||||
|
|
|
@ -370,7 +370,7 @@ export default {
|
|||
async fetchDays() {
|
||||
let url = '/apps/memories/api/days';
|
||||
|
||||
if (this.$route.name === 'albums') {
|
||||
if (this.$route.name === 'folders') {
|
||||
const id = this.$route.params.id || 0;
|
||||
url = `/apps/memories/api/folder/${id}`;
|
||||
}
|
||||
|
@ -453,7 +453,7 @@ export default {
|
|||
async fetchDay(dayId) {
|
||||
let url = `/apps/memories/api/days/${dayId}`;
|
||||
|
||||
if (this.$route.name === 'albums') {
|
||||
if (this.$route.name === 'folders') {
|
||||
const id = this.$route.params.id || 0;
|
||||
url = `/apps/memories/api/folder/${id}/${dayId}`;
|
||||
}
|
||||
|
|
|
@ -56,11 +56,11 @@
|
|||
},
|
||||
|
||||
{
|
||||
path: '/albums/:id*',
|
||||
path: '/folders/:id*',
|
||||
component: Timeline,
|
||||
name: 'albums',
|
||||
name: 'folders',
|
||||
props: route => ({
|
||||
rootTitle: t('albums', 'Albums'),
|
||||
rootTitle: t('folders', 'Folders'),
|
||||
}),
|
||||
},
|
||||
],
|
||||
|
|
Loading…
Reference in New Issue