[WIP] A simple wake-on-lan service

update readme (and remove docs link bc im not making proper docs lol)

vielle.dev 8f64f5e8 ede6e7c9

verified
+45 -16
+41 -6
README.md
··· 5 5 Configuration is read from `wol.toml` from the current directory. 6 6 7 7 ```toml 8 - # wol.toml 9 - binding = "0.0.0.0:3000" # default address 8 + # default config: 9 + binding = "0.0.0.0:3000" 10 + # target names to pin to the top of the list, others may be out of order 11 + pinned = [] 10 12 11 13 [targets] 12 - # human friendly name = mac address 13 - computer = "01:02:03:04:05:06" 14 - server = "11:12:13:14:15:16" 14 + # name = mac 15 + 16 + # OR 17 + # name.mac = mac # required, for wol 18 + # name.url = url # optional, for display 19 + # name.ip = ip # optional, for ping 20 + 21 + [info] 22 + title = "Wake on Lan" 23 + icon = "./favicon.ico" 24 + 25 + # info.links can also be [name, url][] if you need duplicate names 26 + [info.links] 27 + "vielle.dev/wol" = "https://tangled.org/vielle.dev/wol/" 28 + 29 + [theme] # catppuccin frappe 30 + background = [48, 52, 70] 31 + background_main = [35, 38, 52] 32 + background_server = [65, 69, 89] 33 + background_button = [81, 87, 109] 34 + 35 + text = [198, 208, 245] 36 + text_secondary = [165, 173, 206] 37 + 38 + accent_success = [166, 209, 137] 39 + accent_fail = [231, 130, 132] 40 + 41 + link = [140, 170, 238] 42 + link_visited = [202, 158, 230] 43 + 44 + highlight = [148, 156, 187] 45 + highlight_opacity = 25 # out of 100 46 + 47 + fonts = ["system-ui"] 15 48 ``` 16 49 17 50 ```yaml ··· 20 53 wol: 21 54 build: https://tangled.org/vielle.dev/wol.git 22 55 ports: ["3000:3000"] 23 - volumes: ["./wol.toml:/app/wol.toml"] 56 + volumes: 57 + - "./wol.toml:/app/wol.toml" 58 + - "./favicon.ico:/app/favicon.ico" 24 59 ```
+4 -10
src/config.rs
··· 109 109 } 110 110 111 111 fn default_links() -> Vec<(String, String)> { 112 - vec![ 113 - ( 114 - String::from("https://tangled.org/vielle.dev/wol/"), 115 - String::from("vielle.dev/wol"), 116 - ), 117 - ( 118 - String::from("https://tangled.org/vielle.dev/wol/tree/main/docs/README.md"), 119 - String::from("docs"), 120 - ), 121 - ] 112 + vec![( 113 + String::from("https://tangled.org/vielle.dev/wol/"), 114 + String::from("vielle.dev/wol"), 115 + )] 122 116 } 123 117 124 118 fn default_icon() -> PathBuf {