Commit Graph

66 Commits

Author SHA1 Message Date
Mossfet b14ff40a29 Update docs 2024-05-06 00:20:59 +01:00
TakeV 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
TakeV 415d947c10
Remove nonguix specific bug stuff 2023-12-28 18:01:42 -05:00
TakeV 70f7c6719c
Fix alignment issue 2023-12-28 17:59:28 -05:00
TakeV 3cc2c764ea
Remove extra debug packages
Also fix that typo wtf
2023-12-28 17:52:59 -05:00
TakeV 0aad698bb8
Skip packaging phase 2023-12-28 17:48:50 -05:00
TakeV 200797c414
Enable working build for meowy-webring
Unfortunately, it fails during packaging. :(
2023-12-28 17:35:20 -05:00
TakeV c6444ab666
Add rust embed 6 2023-12-28 17:35:20 -05:00
TakeV 16eed250ca
Add simple_logger 6 2023-12-28 17:35:20 -05:00
TakeV 29865c7352
Add notify 6 2023-12-28 17:35:20 -05:00
TakeV e9f26e3b7a
Add rust-directories-5 2023-12-28 17:35:20 -05:00
TakeV 4ea0872ef1
Add askama-rocket 2023-12-28 17:35:20 -05:00
TakeV 7e8650744b
Add rocket-0.5 2023-12-28 17:35:19 -05:00
TakeV 2990f45d11
Update manifest to only use dev tools 2023-12-28 17:34:53 -05:00
TakeV 0b9abd61dc
I have no idea 2023-12-28 13:01:31 -05:00
TakeV 9bc7a2fb74
Add dir-local.el 2023-08-20 20:56:39 -07:00
TakeV 9f9d695611
Add guix channel 2023-08-20 20:56:32 -07:00
TakeV 486ffacbef
Add manifest.scm 2023-08-20 20:56:23 -07:00
TakeV 6bc2801044
Add meowy-webring guix file 2023-08-20 20:56:08 -07:00
TakeV d5b719a909
Add crates-io, for packages not yet imported into guix 2023-08-20 20:55:27 -07:00
TakeV ca779e67f7
Backport rust 1.71 from Fries' patch 2023-08-20 20:54:45 -07:00
mossfet 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
Fries 10caf581ad remove the sus println 2023-07-12 23:38:39 -07:00
Fries 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
Fries 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
Fries 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
Fries 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
mossfet 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
Fries 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
Fries 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
Fries 1654821763 bump version number to 0.2.0 2023-07-09 23:31:53 -07:00
Fries 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
Fries 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
Fries 6e9bbe1d60 add cors and previous and next name functions 2023-07-05 02:10:31 -07:00
mossfet ec9d5cd874 Merge pull request 'hot reloading support' (#6) from hot-reloading into main
Reviewed-on: #6
2023-07-04 14:26:42 +00:00
Fries 79e88cb2f4 add a WIP index page 2023-07-03 23:59:56 -07:00
Fries 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
Fries 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
Fries 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
Fries 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
Fries d6a763a90b change spelling of seperator to separator
looks like i spelt that wrong..
2023-07-03 16:19:45 -07:00
Fries 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
mossfet 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
Fries 0c5fce59ca add an error if you try to add a url that exists. 2023-07-01 22:14:33 -07:00
Fries 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
Fries 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
Fries e93b201d77 move command group printing logic into function
this makes the print function a bit cleaner.
2023-07-01 20:39:56 -07:00
Fries 7f36560e25 add a seperator character
this means you can print both the url and the name at the same time
with a seperator character for easy parsing.
2023-07-01 20:34:28 -07:00
Fries b58b0cd78f meowy_webring::main now uses the shared crate
this has abstractions for getting the names.json file and reading them
and parsing them. i also moved the cli logger initialization code into
its own module.
2023-07-01 19:49:48 -07:00
Fries 8206cc6105 make the cli more portable, and add logging
the cli now uses a new module in the shared crate, called directories
which is a module that has functions for directory stuff, mainly, it
uses the directories crate to have a portable way to have directories
for the application like data directories and config directories.

i also added logging to the shared and cli crates, so you can see debug
stuff with the RUST_LOG environment variable.
2023-07-01 18:27:03 -07:00