35f3ba1
remove SQL comments
Amolith created
35f3ba1
remove SQL comments
Amolith created
89f122b
mvoe ID generation logic to helper function
Amolith created
54c05b4
ignore future website directory
Amolith created
68be501
Fix error handling bug introduced in last commit
Amolith created
8ca0376
Pre-select current $running when modifying it
Implements: https://todo.sr.ht/~amolith/willow/25
Amolith created
61c551a
Add note about limited RSS entries
Implements: https://todo.sr.ht/~amolith/willow/8
Amolith created
b1af277
Use FlexVer to sort by tag instead of date
Implements: https://todo.sr.ht/~amolith/willow/24
Amolith created
b2c5dbe
bump dependencies
Amolith created
a810f20
add link to lightning talk
Amolith created
7ce1feb
correct typo in readme
Amolith created
65873c0
add note about binary installation
Amolith created
0981d38
compliant with reuse again
Amolith created
1fbf0af
group outdated software and reword
Implements: https://todo.sr.ht/~amolith/willow/17 Implements: https://todo.sr.ht/~amolith/willow/15
Amolith created
90db8d5
correct div nesting in home HTML template
Amolith created
aa29366
BREAKING-ish: SQL schema correction
While refactoring the schema yesterday, I forgot to add primary keys
back to the sessions and projects tables. Databases existing before
commit 984d44775bcd1331eb73e4a7812d768fd8c485bb are fine and new
databases should be initialised correctly, but databases created between
commit 984d44775bcd1331eb73e4a7812d768fd8c485bb and this one require
either SQL migrations or deleting willow.sqlite (which will remove all
users, projects, login sessions, etc.).
For the migrations, open the database with `sqlite3 willow.sqlite` and
paste the SQL statements below.
```
ALTER TABLE sessions RENAME TO sessions_bak;
CREATE TABLE sessions
(
token TEXT NOT NULL PRIMARY KEY,
username TEXT NOT NULL,
expires TIMESTAMP NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO sessions (token, username, expires, created_at)
SELECT token, username, expires, created_at FROM sessions_bak;
ALTER TABLE projects RENAME TO projects_bak;
CREATE TABLE projects
(
url TEXT NOT NULL PRIMARY KEY,
name TEXT NOT NULL,
forge TEXT NOT NULL,
version TEXT NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
INSERT INTO projects (url, name, forge, version, created_at)
SELECT url, name, forge, version, created_at FROM projects_bak;
```
Assuming the statements execute without error, Willow starts up
correctly, and you can log in, you can safely drop open the database
again and drop the projects_bak and sessions_bak tables with
```
DROP TABLE projects_bak;
DROP TABLE sessions_bak;
```
---
References: https://todo.sr.ht/~amolith/willow/14
Amolith created
181509f
adding padding to bottom
Amolith created
ff409eb
use different screenshot
Amolith created
91434f4
update screenshot
Amolith created
d9bf2f6
embed the inter font
Amolith created
53705af
bump go version and dependencies
Amolith created
61c24da
correct minor webserver issues
Amolith created
984d447
BREAKING: SQL schema change
- Redo schema to improve handling of lightweight tags
- Try to clean up empty directories when untracking a project
To resolve schema conflict, run `sqlite3 willow.sqlite` and paste the
following:
ALTER TABLE releases RENAME TO releases_bak;
CREATE TABLE releases
(
id TEXT NOT NULL PRIMARY KEY,
project_url TEXT NOT NULL,
release_url TEXT NOT NULL,
tag TEXT NOT NULL,
content TEXT NOT NULL,
date TIMESTAMP NOT NULL,
created_at TIMESTAMP NOT NULL DEFAULT CURRENT_TIMESTAMP
);
If everything works as expected, you can `DROP TABLE releases_bak`.
Amolith created
3612ffc
handle .git in RSS URLs and add missing returns
Amolith created
67b88ea
correct spacing without new release
Amolith created
d0dd816
change project styling, add log out link
Amolith created
a304469
add copyright info to new files
Amolith created
a89c6a0
add dev tool air
Amolith created
cbcbaca
add dark mode, css reset and normalise links
Implements: https://todo.sr.ht/~amolith/willow/11 Implements: https://todo.sr.ht/~amolith/willow/10
Amolith created
1755dcd
update docs
Amolith created
438f9fc
finish implementing authentication
Amolith created
ef9544f
Beeg refactor for database and users and auth
Amolith created
c5f2fa0
Make some options configurable
Implements: https://todo.sr.ht/~amolith/willow/4
Amolith created
30063ad
add .idea to gitignore
Amolith created
8692d3c
refactor so var doesn't conflict with import
Amolith created
7a1459f
create projects.csv if doesn't exist
Implements: https://todo.sr.ht/~amolith/willow/2
Amolith created
b11acca
swap yoink with fetch
Amolith created
61f56f5
improve httpServer error handling
Amolith created
1750d9e
move HTML template copyright to separate file
Implements: https://todo.sr.ht/~amolith/willow/1
Amolith created
8590109
update tagline
Amolith created
9103ec5
add contributing section to readme
Amolith created
d65a893
check error returns
Amolith created
9c3a304
add justfile and ci-lint config
Amolith created
33c8319
comment out listRemoteTags
Amolith created
887d89e
reuse compliance
Amolith created
e42cdea
add screenshot and update readme
Amolith created
6fdef03
Fill out README
Amolith created
2b60fc5
initial sourcehut commit
Amolith created