aboutsummaryrefslogtreecommitdiff
path: root/backend
AgeCommit message (Collapse)Author
2023-01-21Do more minor refactoringTerry Truong
Document some variables coupled between client and server. Add more term consistency ('unit', 'event density'). Make console messages more consistent.
2023-01-21Adjust backend coding styleTerry Truong
Increase line spacing, add section comments, etc
2023-01-20Make gen_picked_data.py update event distribution tablesTerry Truong
2023-01-20Enable gen_picked_events.py to modify and delete eventsTerry Truong
2023-01-18Adjust backend docs after another db regenerationTerry Truong
2023-01-17Remove EXCL_PROPS from gen_events_data.pyTerry Truong
2023-01-16Fix some wikidata processing bugsTerry Truong
Interpret 'estimated age' event data relative to 1 AD. Exclude fictional characters/etc. Use category-specific time-indicative properties.
2023-01-15Fix searches failing in certain casesTerry Truong
Fix server handling of 'incl' query param Force update of idToEvent for certain searches Adjust search-highlight-removal code to avoid pending-search case Fix event-transition-skipping code in updateLayout() to handle quick repeated calls
2023-01-14Add img_dist and img_disp db tablesTerry Truong
Having separate event counts for events with images resolves some redundant server querying, and makes event count indicators moree representative.
2023-01-14Add 'imgonly' server query paramTerry Truong
Remove script for deleting events in db without images
2023-01-14Use ctgs= query param for type=info requestsTerry Truong
2023-01-14Allow showing events without imagesTerry Truong
Add setting for showing such events Fix searches not always avoiding filtered categories
2023-01-14Improve date display in info modalTerry Truong
Make desc field of EventInfo optional Don't require desc in type=info result Fix image not showing in info modal
2023-01-13Re-enable imagesTerry 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-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-04Fix out-of-date docs and tests after adding 'unit' to 'event_disp'Terry Truong
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-04Add 'unit' column to event_disp tableTerry Truong
Use 'unit' to narrow search of 'event_disp' values Simplify SQL queries to use 'unit' instead of 'start' and 'fmt' Fix minor HistDate documentation error
2023-01-04Add database index events_id_start_idxTerry Truong
2023-01-04Remove server-side conversion of YearDates >4713 BC to CalDatesTerry Truong
The conversion was originally intended to simply the code. But, as events may span years before and after 4713 BC, the conversion introduces the possibility of having both YearDates and CalDates in the same event, which is unhelpful.
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-03Temporarily disable sending/showing event imagesTerry Truong
For testing while waiting for images to download
2023-01-03Extend gen_pageview_data.py to handle problematic linesTerry Truong
2023-01-02Only generate square imagesTerry Truong
2023-01-02Adjust wikidata event specifiersTerry Truong
Do minor refactors: - Swap fmt=1 and fmt=2 in 'events' table - Make documentation consistently use BC and AD - import argparse at start of scripts
2022-12-30Generate event_disp data before image-generationTerry Truong
Make gen_disp_data.py delete non-displayable events Make reduce_event_data.py also delete from 'dist' and 'event_disp' Remove MAX_IMGS_PER_CTG from enwiki/gen_img_data.py Make gen_desc_data.py include events without images
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-28Convert 'scores' table to 'events_disp', removing 'scores' columnTerry Truong
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-26Fix filtering expression in server scriptTerry Truong
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-20Account for null pop in histplorer.pyTerry Truong
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-17Fix histplorer.py not accounting for start-only eventsTerry Truong
2022-10-05Add reduce_event_data.pyTerry Truong
Add unit test, update README
2022-10-05Add data serving scriptsTerry Truong
Add histplorer.py, implementing the http query interface Add unit test Add server.py as a simple backend dev server Update documentation
2022-10-04Add gen_picked_data.pyTerry Truong
Add unit test Update READMEs and .gitignore
2022-10-04Replace jdcal package with cal.pyTerry Truong
2022-10-04Add correction for jdcal treating year 0 as 1 BCETerry Truong
2022-10-03Add backend READMETerry Truong
2022-10-03Tweak gen_imgs.py outputTerry Truong
2022-10-03Add exponential-backoff download optionTerry Truong
2022-10-03Add gen_desc_data.pyTerry Truong
Add unit test, update README
2022-10-02Add gen_imgs.pyTerry Truong
Add package.json, for using npm package smartcrop-cli Add unit test
2022-10-02Add title column to img_data.dbTerry Truong
2022-10-02Add gen_pop_data.pyTerry Truong