aboutsummaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorXe Iaso <me@christine.website>2023-09-30 10:36:37 -0400
committerGitHub <noreply@github.com>2023-09-30 10:36:37 -0400
commitac6a3df0d18cc73524c0096d954a57d24cad5669 (patch)
tree81474177d730440657f490ae29892d62392251ea /examples
parentcbdea8ba3fca9a663778af71f8df5965aeb6c090 (diff)
downloadxesite-ac6a3df0d18cc73524c0096d954a57d24cad5669.tar.xz
xesite-ac6a3df0d18cc73524c0096d954a57d24cad5669.zip
Xesite V4 (#723)
* scripts/ditherify: fix quoting Signed-off-by: Xe Iaso <me@xeiaso.net> * clean up some old files Signed-off-by: Xe Iaso <me@xeiaso.net> * import site into lume Signed-off-by: Xe Iaso <me@xeiaso.net> * initial go code Signed-off-by: Xe Iaso <me@xeiaso.net> * move vods index to top level Signed-off-by: Xe Iaso <me@xeiaso.net> * remove the ads Signed-off-by: Xe Iaso <me@xeiaso.net> * internal/lume: metrics Signed-off-by: Xe Iaso <me@xeiaso.net> * delete old code Signed-off-by: Xe Iaso <me@xeiaso.net> * load config into memory Signed-off-by: Xe Iaso <me@xeiaso.net> * autogenerate data from dhall config Signed-off-by: Xe Iaso <me@xeiaso.net> * various cleanups, import clackset logic Signed-off-by: Xe Iaso <me@xeiaso.net> * Update signalboost.dhall (#722) Added myself, and also fixed someone’s typo * Add Connor Edwards to signal boost (#721) * add cache headers Signed-off-by: Xe Iaso <me@xeiaso.net> * move command to xesite folder Signed-off-by: Xe Iaso <me@xeiaso.net> * xesite: listen for GitHub webhook push events Signed-off-by: Xe Iaso <me@xeiaso.net> * xesite: 5 minute timeout for rebuilding the site Signed-off-by: Xe Iaso <me@xeiaso.net> * xesite: add rebuild metrics Signed-off-by: Xe Iaso <me@xeiaso.net> * xesite: update default variables Signed-off-by: Xe Iaso <me@xeiaso.net> * don't commit binaries oops lol Signed-off-by: Xe Iaso <me@xeiaso.net> * lume: make search have a light background Signed-off-by: Xe Iaso <me@xeiaso.net> * add a notfound page Signed-off-by: Xe Iaso <me@xeiaso.net> * fetch info from patreon API Signed-off-by: Xe Iaso <me@xeiaso.net> * create contact page Signed-off-by: Xe Iaso <me@xeiaso.net> * Toot embedding Signed-off-by: Xe Iaso <me@xeiaso.net> * attempt a docker image Signed-off-by: Xe Iaso <me@xeiaso.net> * lume: fix deno lock Signed-off-by: Xe Iaso <me@xeiaso.net> * add gokrazy post Signed-off-by: Xe Iaso <me@xeiaso.net> * cmd/xesite: go up before trying to connect to the saas proxy Signed-off-by: Xe Iaso <me@xeiaso.net> * blog: add Sine post/demo Signed-off-by: Xe Iaso <me@xeiaso.net> --------- Signed-off-by: Xe Iaso <me@xeiaso.net> Co-authored-by: bri <284789+b-@users.noreply.github.com> Co-authored-by: Connor Edwards <38229097+cedws@users.noreply.github.com>
Diffstat (limited to 'examples')
-rw-r--r--examples/http.rs27
-rw-r--r--examples/http_fail.rs28
-rw-r--r--examples/json.rs32
-rw-r--r--examples/logger_test.rs11
4 files changed, 0 insertions, 98 deletions
diff --git a/examples/http.rs b/examples/http.rs
deleted file mode 100644
index c1533a6..0000000
--- a/examples/http.rs
+++ /dev/null
@@ -1,27 +0,0 @@
-use eyre::Result;
-use serde::{Deserialize, Serialize};
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct Author {
- pub id: i32,
- pub name: String,
-}
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct Comment {
- pub id: i32,
- pub author: Author,
- pub body: String,
- pub in_reply_to: i32,
-}
-
-#[tokio::main]
-async fn main() -> Result<()> {
- let c: Comment = reqwest::get("https://xena.greedo.xeserv.us/files/comment.json")
- .await?
- .json()
- .await?;
- println!("comment: {:#?}", c);
-
- Ok(())
-}
diff --git a/examples/http_fail.rs b/examples/http_fail.rs
deleted file mode 100644
index 98e027a..0000000
--- a/examples/http_fail.rs
+++ /dev/null
@@ -1,28 +0,0 @@
-use eyre::Result;
-use serde::{Deserialize, Serialize};
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct Author {
- pub id: i32,
- pub name: String,
-}
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct Comment {
- pub id: i32,
- pub author: Author,
- pub body: String,
- pub in_reply_to: i32,
-}
-
-#[tokio::main]
-async fn main() -> Result<()> {
- let c: Comment = reqwest::get("https://xena.greedo.xeserv.us/files/comment2.json")
- .await?
- .error_for_status()?
- .json()
- .await?;
- println!("comment: {:#?}", c);
-
- Ok(())
-}
diff --git a/examples/json.rs b/examples/json.rs
deleted file mode 100644
index bf128ed..0000000
--- a/examples/json.rs
+++ /dev/null
@@ -1,32 +0,0 @@
-use serde::{Deserialize, Serialize};
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct Author {
- pub id: i32,
- pub name: String,
-}
-
-#[derive(Clone, Debug, Deserialize, Serialize)]
-pub struct Comment {
- pub id: i32,
- pub author: Author,
- pub body: String,
- pub in_reply_to: i32,
-}
-
-fn main() {
- let data = r#"
- {
- "id": 31337,
- "author": {
- "id": 420,
- "name": "Cadey"
- },
- "body": "hahaha its is an laughter image",
- "in_reply_to": 31335
- }
- "#;
-
- let c: Comment = serde_json::from_str(data).expect("json to parse");
- println!("comment: {:#?}", c);
-}
diff --git a/examples/logger_test.rs b/examples/logger_test.rs
deleted file mode 100644
index f917d66..0000000
--- a/examples/logger_test.rs
+++ /dev/null
@@ -1,11 +0,0 @@
-use log::{debug, error, info, trace, warn};
-
-fn main() {
- pretty_env_logger::init();
-
- trace!("starting main");
- debug!("debug message");
- info!("this is some information");
- warn!("oh no something bad is about to happen");
- error!("oh no it's an error");
-}