Rename album to folder

pull/37/head
Varun Patil 2022-09-08 16:57:50 -07:00
parent 97a1dcddda
commit 3b0b5c05dc
8 changed files with 16 additions and 16 deletions

View File

@ -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.

View File

@ -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>

View File

@ -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' => '.*',
],

View File

@ -66,7 +66,7 @@ class PageController extends Controller {
* @NoAdminRequired
* @NoCSRFRequired
*/
public function album() {
public function folder() {
return $this->main();
}
}

View File

@ -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>

View File

@ -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 } });
},
}
}

View File

@ -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}`;
}

View File

@ -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'),
}),
},
],