Commit graph

69 commits

Author SHA1 Message Date
121fdb1d72 Merge pull request 'add some tests for the shared crate' (#9) from tests into main
Reviewed-on: #9
Reviewed-by: mossfet <mossfet@noreply.localhost>
2024-05-25 04:47:41 +00:00
da032c223f Merge branch 'main' into tests 2024-05-24 21:46:53 -07:00
Mossfet
b14ff40a29 Update docs 2024-05-06 00:20:59 +01:00
6cc291ead2 Merge pull request 'Package meowy-webring with guix' (#10) from guix into main
Reviewed-on: #10
2023-12-29 01:49:34 +00:00
415d947c10
Remove nonguix specific bug stuff 2023-12-28 18:01:42 -05:00
70f7c6719c
Fix alignment issue 2023-12-28 17:59:28 -05:00
3cc2c764ea
Remove extra debug packages
Also fix that typo wtf
2023-12-28 17:52:59 -05:00
0aad698bb8
Skip packaging phase 2023-12-28 17:48:50 -05:00
200797c414
Enable working build for meowy-webring
Unfortunately, it fails during packaging. :(
2023-12-28 17:35:20 -05:00
c6444ab666
Add rust embed 6 2023-12-28 17:35:20 -05:00
16eed250ca
Add simple_logger 6 2023-12-28 17:35:20 -05:00
29865c7352
Add notify 6 2023-12-28 17:35:20 -05:00
e9f26e3b7a
Add rust-directories-5 2023-12-28 17:35:20 -05:00
4ea0872ef1
Add askama-rocket 2023-12-28 17:35:20 -05:00
7e8650744b
Add rocket-0.5 2023-12-28 17:35:19 -05:00
2990f45d11
Update manifest to only use dev tools 2023-12-28 17:34:53 -05:00
0b9abd61dc
I have no idea 2023-12-28 13:01:31 -05:00
9bc7a2fb74
Add dir-local.el 2023-08-20 20:56:39 -07:00
9f9d695611
Add guix channel 2023-08-20 20:56:32 -07:00
486ffacbef
Add manifest.scm 2023-08-20 20:56:23 -07:00
6bc2801044
Add meowy-webring guix file 2023-08-20 20:56:08 -07:00
d5b719a909
Add crates-io, for packages not yet imported into guix 2023-08-20 20:55:27 -07:00
ca779e67f7
Backport rust 1.71 from Fries' patch 2023-08-20 20:54:45 -07:00
5e0536d756 add some tests for the shared crate
this should test some stuff out in the test crate
2023-07-13 09:29:28 -07:00
075dd95c03 Merge pull request 'seperate the hyperlegible font face out into a template and organize the crate structure' (#8) from font-style into main
Reviewed-on: #8
2023-07-13 13:09:34 +00:00
10caf581ad remove the sus println 2023-07-12 23:38:39 -07:00
60c2ac15e7 move asset stuff to its own crate
this should seperate out the asset handling code, which was practically
its own module inside the main codebase, into a little crate.
2023-07-12 22:10:08 -07:00
f4e9ef6af9 seperate the hyperlegible font-face to a template
this lets me make the base html code cleaner and it lets me keep using a
seperate file for font-face stuff so the style.css is cleaner. this is
implemented by using the askama template engine with the same syntax
that was used in the style tag in base.html, but i render the template
to text instead of directly to a rocket responder and i hash it with the
sha2 crate. this hashing should only run once, at startup, so it
shouldn't be much of a performance hit.
2023-07-12 18:41:39 -07:00
0e3ffc0991 move crates out to a folder
this should make the code cleaner if we need to add more crates as it
can get messy if we keep stacking crates in the root directory
2023-07-12 17:36:39 -07:00
a23a71f39f remove the md5 dependency from Cargo.toml
this never was used so it shouldn't need to be here.
2023-07-11 17:21:47 -07:00
50d92e998a Merge pull request 'add an index page and add name functions to the API and cache busting' (#7) from index-page into main
Reviewed-on: #7
2023-07-11 11:08:07 +00:00
70bb0691d3 implement a CachedResponse Responder struct
this adds a Cache-Control header to existing responses so they can be
cached in the browser. cache busting means this cache can be immutable
as if the file changes, the filename changes, so the browser will get
new files.
2023-07-11 02:37:31 -07:00
53193d84b8 add cache busting filenames and split off assets
i abstraced the file handling out to a global static struct called
"Files" that is only written to once, in main inside a OnceLock. i also
split out asset handling into its own module folder called assets which
has all the asset handling code.

i also have a new crate called "proc_macros" which provides a attribute macro
that adds the base_template field to each struct i decorate with it
using the syn and quote crates.
2023-07-11 01:04:53 -07:00
1654821763 bump version number to 0.2.0 2023-07-09 23:31:53 -07:00
4e17ef7dff update stylesheet and clean up asset code
the stylesheet got a new update from my websites stylesheet with the
bigger font sizes and i split the hyperlegible font face css into its
own file and made the asset code cleaner.
2023-07-09 22:09:07 -07:00
74f3cd1cb4 fix a bug with the next_name function
looks like i used the previous_name logic for element of the vector i
used which is wrong.
2023-07-07 23:03:29 -07:00
6e9bbe1d60 add cors and previous and next name functions 2023-07-05 02:10:31 -07:00
ec9d5cd874 Merge pull request 'hot reloading support' (#6) from hot-reloading into main
Reviewed-on: #6
2023-07-04 14:26:42 +00:00
79e88cb2f4 add a WIP index page 2023-07-03 23:59:56 -07:00
33f0b6a5e9 don't panic on parsing error with running watcher
this means the watcher doesn't stop working if someone makes an edit to
names.json that results in a parser error. it will just print out the
error and keep the old configuration. if you restart the program and the
file still has an error, the program won't start.
2023-07-03 22:41:32 -07:00
93bd3540e8 use async mutex
looks like the best way to do the state thing after all is global so i
should use async mutexes so stuff doesn't block.
2023-07-03 22:14:10 -07:00
a672135793 add cursed hot reloading support
im sorry if you have to look at the sites.rs file.
2023-07-03 16:23:14 -07:00
ac93e8e0eb Merge pull request 'make printing less complicated and refactor cli' (#5) from improvements into main
Reviewed-on: #5
2023-07-03 23:20:53 +00:00
d6a763a90b change spelling of seperator to separator
looks like i spelt that wrong..
2023-07-03 16:19:45 -07:00
82e8f68862 make printing less complicated and refactor cli
i made printing less complicated by making printing both the name and
the url with the seperator the default option and using both those flags
at the same time should do the same thing as just printing without any
flags.

i also refactored commands into their own module folder with each
command getting their own file module.
2023-07-02 19:46:19 -07:00
df86523df2 Merge pull request 'make stuff more portable and improve the cli' (#4) from portability into main
Reviewed-on: #4
2023-07-02 10:39:29 +00:00
0c5fce59ca add an error if you try to add a url that exists. 2023-07-01 22:14:33 -07:00
a08502cc73 add a filter argument to the print command
this lets you put a url in and the print command will filter it to that.
2023-07-01 22:10:58 -07:00
f37034b8d8 add json string support to the cli's print command
this let's you print a json string.
2023-07-01 20:49:59 -07:00
e93b201d77 move command group printing logic into function
this makes the print function a bit cleaner.
2023-07-01 20:39:56 -07:00