aboutsummaryrefslogtreecommitdiff
path: root/src/App.vue
AgeCommit message (Collapse)Author
2023-01-16Make title clicks reset timelinesTerry Truong
2023-01-16Disable timeline-add button upon reaching maxTerry Truong
2023-01-15Reset events upon change of 'images only' settingTerry Truong
2023-01-14Add 'imgonly' server query paramTerry Truong
Remove script for deleting events in db without images
2023-01-06Keep track of a 'current' timelineTerry Truong
Make timeline addition and searching use the current timeline. Add keyboard controls for timeline panning, zooming, switching, opening, and closing. Fix zoomTimeline() bug when not centering zoom on pointer.
2023-01-06Add help modalTerry Truong
2023-01-06Implement filtering by event categoriesTerry Truong
Filter events in display and search suggestions. Make server queries allow specification of multiple categories. Make settings modal avoid disabling all categories.
2023-01-06Add settings modalTerry Truong
Add saving, loading, default vals, and device-detection, to store.ts. Add setting for hiding minor tick labels.
2023-01-06Jump to and highlight search resultsTerry Truong
Use a 'searchTarget' prop of Timeline to trigger jumping to a search result. Make TimeLine prioritise search result in layout. When querying for events in App, check for a search target, and use incl= to retrieve it. On server, for the incl= query param, don't include the event if outside specified range.
2023-01-05Add partially-complete search modalTerry Truong
For now, use placeholder code for jumping to a search result. Add db index for case-insensitive event title searching. Make type=info requests accept title instead of ID (for looking up a searched-for title). Make EventInfo contain an Event field (for showing info in search suggestions). Add titleToEvent map in App, for use by SearchModal to look up searched-for titles. Add keyboard shortcuts to open/close search and info modals.
2023-01-04Add event info modalTerry Truong
Add InfoModal.vue, SCollapsible.vue, and icons. Update Timeline.vue, App.vue, lib.ts, and store.ts to display modal. For testing, send/use dummy EventInfo from server (still waiting on image downloads).
2023-01-04Fix linear-time search of unit-count mapTerry Truong
2023-01-04Throttle server queriesTerry Truong
Store previous queried range to avoid repeated duplicate queries. In onResize(), account for edge case of 'await' taking a long time.
2023-01-03Query server when zoomed in enough even if within an already queried rangeTerry Truong
For server query parameter range=date1.date2, exclude date2 Fix unnecessary calendar-to-year date conversion when building sql query For frontend DateRangeTree class, rename has() to contains()
2023-01-02Make baseline time-spans non-overlappingTerry Truong
Remove time-span labels Fix firstDate/lastDate being passed to TimelineState instead of startDate/endDate
2022-12-29Adjust event-count-indicator stylingTerry Truong
Use solid color, and skip transitions on screen size change
2022-12-29Make server send error for breaking unit-count limitTerry Truong
2022-12-29Show event-count data on timelineTerry Truong
Backend: Send event-count data to client in EventResponse instance Fix certain usages of gregorian calendar instead of julian Move HistDate, SCALES, etc, into cal.py Frontend: Make App update a unitCountMaps object using event-count data from server Make TimeLine show visual indication of unit counts Add showEventCounts option to store Update unit tests
2022-12-28Use scale-associated event scores for uniform spreadTerry Truong
Add 'dist' and 'scores' db tables Add 'scale' server query parameter (and remove 'excl') Disregard event-end when querying database
2022-12-28Don't re-query server for same range and scaleTerry Truong
2022-12-18Make BaseLine spans more visibleTerry Truong
Increase min-length to 3px, add margin around BaseLine Fix non-visibility on startup
2022-12-18Only show close button for multiple timelinesTerry Truong
Change close icon from '-' to 'x'
2022-12-18Add unit testingTerry Truong
Install vitest, happy-dom, and @testing-library/vue Add lib.ts and rbtree.ts tests in tests/ Modularise some date-range-managing code from App.vue into lib.ts
2022-10-20Add gcal to client-side HistDatesTerry Truong
Add YearDate and CalDate Restrict non-calendar HistDates to years before 4713 BC
2022-10-20Move various constants to global storeTerry Truong
2022-10-19Move event labels to below imagesTerry Truong
Add client-side REQ_EXCLS_LIMIT Rename posX and posY vars in idToPos computed
2022-10-19Place event labels above imageTerry Truong
2022-10-19Fix bug where pendingReq wasn't always resetTerry Truong
2022-10-19Move mainline to side when display area is too smallTerry Truong
2022-10-18Add basic grid-like event layoutTerry Truong
Add lines linking events to timeline Add scrim on event image
2022-10-18Serialise event-req handlingTerry Truong
Also skip unnecessary render on startup
2022-10-18Reduce event data after reaching a memory limitTerry Truong
2022-10-18Keep track of date ranges where server has no more resultsTerry Truong
- In TimeLine.vue, separate idToEvent and idToPos, to avoid sending event-req while a previous one is still waiting on a server response - In histDate, add cmp() method
2022-10-18Use shallowRef for event treeTerry Truong
- Fixes 'saved is null' errors - De-lint rbtree.ts - Add rbtree_shallow_copy(), for triggering changes upon modifying the eventTree (using triggerRef doesn't work)
2022-10-18Use RBTree to store events, and lookup by date rangeTerry Truong
Currently produces TypeErrors from rbtree.ts's single_rotate() saying 'save is null'. This also happens when using minimally-adapted rbtree.js. Not sure how to resolve this.
2022-10-17Display event data from serverTerry Truong
Add queryServer() Add image display Add conversions from JSON responses to HistDate and HistEvent
2022-10-16Add basic display of placeholder eventsTerry Truong
Make App hold an event map, passing it to TimeLine children, which use it to display events. A TimeLine emits an 'events-req' if more events in their range could be displayed, which may cause App to add placeholder events to the map.
2022-10-15Pass TimeLine offsets to BaseLineTerry Truong
Add TimelineState
2022-10-15Make new timelines copy existing onesTerry Truong
2022-10-15Make BaseLine spans use TimeLine start/end offsetsTerry Truong
Change TimelineRange to hold years not HistDates
2022-10-12Convert to represent dates instead of numbersTerry Truong
- Add HistDate class - Adapt TimeLine and BaseLine to work with HistDates - For own-size-watching components, add onMounted() hook to run before ResizeObserver is set up
2022-10-11Fix regression where baseline timespans move on startupTerry Truong
2022-10-11Add global store, do general refactorTerry Truong
Resolve typescript issues Make terminology more consistent
2022-10-10Fix non-pointer-centered scrolling in horizontal modeTerry Truong
2022-10-10Skip initial timeline+baseline transitionsTerry Truong
2022-10-10Add timeline bound indicators to baselineTerry Truong
2022-10-10Add BaseLine.vueTerry Truong
2022-10-10Make TimeLine track own sizingTerry Truong
2022-10-10Add timeline add/remove functionalityTerry Truong
2022-10-09Add timeline horz/vert switchingTerry Truong