* Invalid file path when importing a single file
Adds a test that proves importing a single file sets the file name to
'.'
* Clean test a bit
* Expand test
* 💄 test
* One more test
* Appease the linter
* 💄
* Add missing fixture
* Set the right Filepath when processing single files
* Simpler fix suggested by @mholt
* Simplify tests
* Add clarifying comment
* Rename the test
* GitHub stars data source
Data source that imports GitHub starred repositories in JSON format.
Each starred repo is imported individually, the starred repo
metadata comes from the GitHub API.
The item timestamp is set to the starred date, so they appear in the
timeline the day the repo was starred.
A small json file is saved in the timeline repository data directory
with the metadata retrieved from the GitHub API, which looks like:
```
{
"id": 841044067,
"name": "timelinize",
"html_url": "https://github.com/timelinize/timelinize",
"description": "Store your data from all your accounts and devices in a single cohesive timeline on your own computer",
"created_at": "2024-08-11T13:27:39Z",
"updated_at": "2024-09-03T07:17:29Z",
"pushed_at": "2024-09-02T15:31:59Z",
"stargazers_count": 504,
"language": "Go",
"full_name": "timelinize/timelinize",
"topics": null,
"is_template": false,
"Topics": "archival,data-archiving,data-import,timeline",
"private": false,
"starred_at": "2024-08-12T17:55:48Z"
}
```
The data source currently expects the JSON file to be named like:
- ghstars.json
- ghstars-<ISO date>.json
- ghstars-<UNIX timestamp>.json
* Linter fixes
* Remove optional options
* Add the URL label to the bookmark class
* Change the data source name to GitHub
* Rename data source directory also
* Rename datasource main file
* Store GitHub starred repo URL only
* rename symbols
* Add basic tests
* moar tests
* Linter fix
* You can read on closed channels
* Add bookmark svg for the frontend
* Update package docs
* 💄 docs
* Update datasources/github/github.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
* Update datasources/github/github.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
* Update datasources/github/github.go
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
* Remove content from item
---------
Co-authored-by: Matt Holt <mholt@users.noreply.github.com>
* chore: add workflow to run go test
* fix a test failure
* Downgrade heif to be able to test
* run all tests by default
* Revert typo fix
* Fix metadata test
- UI support for upcoming note and document classifications
- Display HTML, text, and markdown items in timeline
- Detect Markdown content in processor
- Tweak logo URL in readme
- Make import modal stay even when clicked outside
- Upgrade luxon to 3.5.0
- Add markdown parsing and DOM sanitizing libs
* Accept geojson files without a time property: do not return an error
if well-know time properties aren't found, which prevents the entire
feature from being ingested.
* Random properties aren't stored sometimes: do not modify the map while
iterating it, as that can have unpredictable effects according to the spec
(https://go.dev/ref/spec#For_range).
Certain property names related to time, altitude, heading, etc., are extracted to the best of our ability.
Updates #33
Also a minor fix for a bug in spa.js when creating a new timeline with no owner info (other than name).
Stores additiona feature properties as metadata, which makes for a nicer
rendered object:
- Name: name given to the feature
- Country: readable country name
- ISO country code
- Notes: arbitrary text notes
The spec[^1] doesn't seem to define the properties allowed here, it can
be an arbitrary JSON object, so maybe a better option in the future
would be to read and save all the properties available.
[^1]: https://datatracker.ietf.org/doc/html/rfc7946#section-3.2
* Gorelease: Initial go releaser added.
Download deps
Add change to git.
We need a git account for this.
Force tag replacement.
goreleaser pro required so work around
Use download instead.
* Go version upgrade.
* Unnecessary