-
-
Notifications
You must be signed in to change notification settings - Fork 340
Front-end for timeline page #3252
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
base: backend-timeline
Are you sure you want to change the base?
Conversation
ea52a7d
to
c5dbc65
Compare
172b60c
to
751207d
Compare
Codecov ReportAll modified and coverable lines are covered by tests ✅
🚀 New features to boost your workflow:
|
c5dbc65
to
812fe55
Compare
812fe55
to
91ae020
Compare
77e6da3
to
45d9efe
Compare
45d9efe
to
b50b1b4
Compare
79c16fe
to
002a68e
Compare
b50b1b4
to
0d7e38f
Compare
0d7e38f
to
7d8f9be
Compare
1625125
to
d3dce6f
Compare
// 'UPLOAD_PHOTO' => 'Upload Photo', | ||
// 'IMPORT_LINK' => 'Import from Link', | ||
// 'IMPORT_DROPBOX' => 'Import from Dropbox', | ||
// 'IMPORT_SERVER' => 'Import from Server', | ||
// 'NEW_ALBUM' => 'New Album', | ||
// 'NEW_TAG_ALBUM' => 'New Tag Album', | ||
// 'UPLOAD_TRACK' => 'Upload track', | ||
// 'DELETE_TRACK' => 'Delete track', |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
If this comment is required could it be tidied up and expanded on
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed : 82d7b3d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
console.log("CTRL", idx); | ||
if (isPhotoSelected(idx)) { | ||
console.log("REMOVE"); | ||
removeFromPhotoSelection(idx); | ||
} else { | ||
console.log("ADD"); | ||
addToPhotoSelection(idx); | ||
} | ||
lastPhotoClicked.value = idx; | ||
} | ||
|
||
function handlePhotoShift(idx: number, e: Event): void { | ||
console.log("SHIFT", idx); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Are the console logs meant to be here?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed : 82d7b3d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
const startAt = section.getBoundingClientRect().top + currentPosition; | ||
const endAt = startAt + section.offsetHeight; | ||
const isInView = currentPosition >= startAt && currentPosition < endAt; | ||
console.log("Sections", section.dataset.date, isInView); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Same here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fixed : 82d7b3d
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
e3f323a
to
56cc6a1
Compare
ab7c255
to
50806d4
Compare
50806d4
to
42ddf39
Compare
6eefc2a
to
6829366
Compare
42ddf39
to
e739480
Compare
e739480
to
34606ab
Compare
6829366
to
08bf005
Compare
route: "/frame", | ||
access: !(route.name as string).includes("frame") && (initData.value.modules.is_mod_frame_enabled ?? false), |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
unnecessary route check. frame has only a goBack button.
@@ -20,7 +20,6 @@ export function useMouseEvents( | |||
} | |||
|
|||
function dropUpload(e: DragEvent) { | |||
// console.log("dropUpload"); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract to another PR.
@@ -7,17 +7,6 @@ | |||
:pt:center:class="'absolute top-0 py-3 left-1/2 -translate-x-1/2 h-14'" | |||
> | |||
<template #start> | |||
<!-- Not logged in. --> |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
extract to another pr
This pull request includes several changes aimed at improving naming consistency, enhancing timeline handling, and introducing new features like a timeline date navigation component. Below is a summary of the most important changes grouped by theme:
Naming Consistency Improvements:
albumid
toalbumId
across multiple files to ensure consistent camelCase naming conventions, including inUnlock.vue
,ShareLine.vue
, andAlbumThumb.vue
. [1] [2] [3] [4]Timeline and Layout Enhancements:
TimelineDates.vue
component for navigating timeline dates, including logic for highlighting the current date and year.isTimeline
andis_timeline_left_border_visible
to computed properties for better reactivity and maintainability in components likePhotoThumbPanel.vue
andAlbumThumbPanel.vue
. [1] [2] [3] [4]PhotoThumbPanelList.vue
to useidx
instead ofiter
for unique identification of photo listings. [1] [2] [3]Navigation and Routing Updates:
albumId
parameter from routes inAlbumPanel.vue
,NextPrevious.vue
, andResultPanel.vue
. [1] [2] [3]photoClick
method inResultPanel.vue
to handle photo navigation using the updated route structure.Feature Toggles:
is_favourite_enabled
toggle to conditionally display the "Favourites" link inAlbumHeader.vue
andAlbumsHeader.vue
. [1] [2] [3]UI and Interaction Improvements:
Dock.vue
component by conditionally displaying the "Set Album Header" button based on theisTimeline
property. [1] [2]PhotoPanel.vue
for better slideshow and photo header rendering.