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. * **📸 Photo and Video Timeline**: Sorts photos by date taken, parsed from Exif data.
* **🤔 Quick Recap**: Jump to anywhere in the timeline instantly. * **🤔 Quick Recap**: Jump to anywhere in the timeline instantly.
* **🖼️ Albums**: Browse your and shared folders with a similar, efficient timeline. * **🖼️ Folders**: Browse your and shared folders with a similar, efficient timeline.
* **🎦 Slideshow**: View photos from your timeline and albums easily. * **🎦 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. * **📱 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. * **🗑️ 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. * **📸 Photo and Video Timeline**: Sorts photos by date taken, parsed from Exif data.
* **🤔 Quick Recap**: Jump to anywhere in the timeline instantly. * **🤔 Quick Recap**: Jump to anywhere in the timeline instantly.
* **🖼️ Albums**: Browse your and shared folders with a similar, efficient timeline. * **🖼️ Folders**: Browse your and shared folders with a similar, efficient timeline.
* **🎦 Slideshow**: View photos from your timeline and albums easily. * **🎦 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. * **📱 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. * **🗑️ Recycle**: Select and delete multiple photos and videos at once.
]]></description> ]]></description>

View File

@ -1,9 +1,9 @@
<?php <?php
return [ return [
'routes' => [ 'routes' => [
// Days and album API // Days and folder API
['name' => 'page#main', 'url' => '/', 'verb' => 'GET'], ['name' => 'page#main', 'url' => '/', 'verb' => 'GET'],
['name' => 'page#album', 'url' => '/albums/{path}', 'verb' => 'GET', ['name' => 'page#folder', 'url' => '/folders/{path}', 'verb' => 'GET',
'requirements' => [ 'requirements' => [
'path' => '.*', 'path' => '.*',
], ],

View File

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

View File

@ -7,8 +7,8 @@
icon="icon-yourmemories" icon="icon-yourmemories"
exact> exact>
</NcAppNavigationItem> </NcAppNavigationItem>
<NcAppNavigationItem :to="{name: 'albums'}" <NcAppNavigationItem :to="{name: 'folders'}"
:title="t('albums', 'Albums')" :title="t('folders', 'Folders')"
icon="icon-files-dark"> icon="icon-files-dark">
</NcAppNavigationItem> </NcAppNavigationItem>
</template> </template>

View File

@ -79,9 +79,9 @@ export default {
} }
}, },
/** Open album folder */ /** Open folder */
openFolder(id) { 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() { async fetchDays() {
let url = '/apps/memories/api/days'; let url = '/apps/memories/api/days';
if (this.$route.name === 'albums') { if (this.$route.name === 'folders') {
const id = this.$route.params.id || 0; const id = this.$route.params.id || 0;
url = `/apps/memories/api/folder/${id}`; url = `/apps/memories/api/folder/${id}`;
} }
@ -453,7 +453,7 @@ export default {
async fetchDay(dayId) { async fetchDay(dayId) {
let url = `/apps/memories/api/days/${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; const id = this.$route.params.id || 0;
url = `/apps/memories/api/folder/${id}/${dayId}`; url = `/apps/memories/api/folder/${id}/${dayId}`;
} }

View File

@ -56,11 +56,11 @@
}, },
{ {
path: '/albums/:id*', path: '/folders/:id*',
component: Timeline, component: Timeline,
name: 'albums', name: 'folders',
props: route => ({ props: route => ({
rootTitle: t('albums', 'Albums'), rootTitle: t('folders', 'Folders'),
}), }),
}, },
], ],