add: finish ui rewrite
This commit is contained in:
parent
e9846016e6
commit
5dec98d698
119 changed files with 8776 additions and 9350 deletions
|
@ -8,6 +8,7 @@ use std::{
|
|||
collections::HashMap,
|
||||
fs::{exists, read_to_string, write},
|
||||
sync::LazyLock,
|
||||
time::SystemTime,
|
||||
};
|
||||
use tera::Context;
|
||||
use tetratto_core::{
|
||||
|
@ -41,76 +42,76 @@ pub const STREAMS_JS: &str = include_str!("./public/js/streams.js");
|
|||
// html
|
||||
pub const ROOT: &str = include_str!("./public/html/root.lisp");
|
||||
pub const MACROS: &str = include_str!("./public/html/macros.lisp");
|
||||
pub const COMPONENTS: &str = include_str!("./public/html/components.html");
|
||||
pub const COMPONENTS: &str = include_str!("./public/html/components.lisp");
|
||||
|
||||
pub const MISC_ERROR: &str = include_str!("./public/html/misc/error.lisp");
|
||||
pub const MISC_NOTIFICATIONS: &str = include_str!("./public/html/misc/notifications.html");
|
||||
pub const MISC_NOTIFICATIONS: &str = include_str!("./public/html/misc/notifications.lisp");
|
||||
pub const MISC_MARKDOWN: &str = include_str!("./public/html/misc/markdown.lisp");
|
||||
pub const MISC_REQUESTS: &str = include_str!("./public/html/misc/requests.html");
|
||||
pub const MISC_REQUESTS: &str = include_str!("./public/html/misc/requests.lisp");
|
||||
|
||||
pub const AUTH_BASE: &str = include_str!("./public/html/auth/base.html");
|
||||
pub const AUTH_LOGIN: &str = include_str!("./public/html/auth/login.html");
|
||||
pub const AUTH_REGISTER: &str = include_str!("./public/html/auth/register.html");
|
||||
pub const AUTH_CONNECTION: &str = include_str!("./public/html/auth/connection.html");
|
||||
pub const AUTH_BASE: &str = include_str!("./public/html/auth/base.lisp");
|
||||
pub const AUTH_LOGIN: &str = include_str!("./public/html/auth/login.lisp");
|
||||
pub const AUTH_REGISTER: &str = include_str!("./public/html/auth/register.lisp");
|
||||
pub const AUTH_CONNECTION: &str = include_str!("./public/html/auth/connection.lisp");
|
||||
|
||||
pub const PROFILE_BASE: &str = include_str!("./public/html/profile/base.html");
|
||||
pub const PROFILE_POSTS: &str = include_str!("./public/html/profile/posts.html");
|
||||
pub const PROFILE_SETTINGS: &str = include_str!("./public/html/profile/settings.html");
|
||||
pub const PROFILE_FOLLOWING: &str = include_str!("./public/html/profile/following.html");
|
||||
pub const PROFILE_FOLLOWERS: &str = include_str!("./public/html/profile/followers.html");
|
||||
pub const PROFILE_WARNING: &str = include_str!("./public/html/profile/warning.html");
|
||||
pub const PROFILE_PRIVATE: &str = include_str!("./public/html/profile/private.html");
|
||||
pub const PROFILE_BLOCKED: &str = include_str!("./public/html/profile/blocked.html");
|
||||
pub const PROFILE_BANNED: &str = include_str!("./public/html/profile/banned.html");
|
||||
pub const PROFILE_REPLIES: &str = include_str!("./public/html/profile/replies.html");
|
||||
pub const PROFILE_MEDIA: &str = include_str!("./public/html/profile/media.html");
|
||||
pub const PROFILE_BASE: &str = include_str!("./public/html/profile/base.lisp");
|
||||
pub const PROFILE_POSTS: &str = include_str!("./public/html/profile/posts.lisp");
|
||||
pub const PROFILE_SETTINGS: &str = include_str!("./public/html/profile/settings.lisp");
|
||||
pub const PROFILE_FOLLOWING: &str = include_str!("./public/html/profile/following.lisp");
|
||||
pub const PROFILE_FOLLOWERS: &str = include_str!("./public/html/profile/followers.lisp");
|
||||
pub const PROFILE_WARNING: &str = include_str!("./public/html/profile/warning.lisp");
|
||||
pub const PROFILE_PRIVATE: &str = include_str!("./public/html/profile/private.lisp");
|
||||
pub const PROFILE_BLOCKED: &str = include_str!("./public/html/profile/blocked.lisp");
|
||||
pub const PROFILE_BANNED: &str = include_str!("./public/html/profile/banned.lisp");
|
||||
pub const PROFILE_REPLIES: &str = include_str!("./public/html/profile/replies.lisp");
|
||||
pub const PROFILE_MEDIA: &str = include_str!("./public/html/profile/media.lisp");
|
||||
|
||||
pub const COMMUNITIES_LIST: &str = include_str!("./public/html/communities/list.html");
|
||||
pub const COMMUNITIES_BASE: &str = include_str!("./public/html/communities/base.html");
|
||||
pub const COMMUNITIES_FEED: &str = include_str!("./public/html/communities/feed.html");
|
||||
pub const COMMUNITIES_SETTINGS: &str = include_str!("./public/html/communities/settings.html");
|
||||
pub const COMMUNITIES_MEMBERS: &str = include_str!("./public/html/communities/members.html");
|
||||
pub const COMMUNITIES_SEARCH: &str = include_str!("./public/html/communities/search.html");
|
||||
pub const COMMUNITIES_LIST: &str = include_str!("./public/html/communities/list.lisp");
|
||||
pub const COMMUNITIES_BASE: &str = include_str!("./public/html/communities/base.lisp");
|
||||
pub const COMMUNITIES_FEED: &str = include_str!("./public/html/communities/feed.lisp");
|
||||
pub const COMMUNITIES_SETTINGS: &str = include_str!("./public/html/communities/settings.lisp");
|
||||
pub const COMMUNITIES_MEMBERS: &str = include_str!("./public/html/communities/members.lisp");
|
||||
pub const COMMUNITIES_SEARCH: &str = include_str!("./public/html/communities/search.lisp");
|
||||
pub const COMMUNITIES_CREATE_POST: &str =
|
||||
include_str!("./public/html/communities/create_post.html");
|
||||
pub const COMMUNITIES_QUESTION: &str = include_str!("./public/html/communities/question.html");
|
||||
pub const COMMUNITIES_QUESTIONS: &str = include_str!("./public/html/communities/questions.html");
|
||||
include_str!("./public/html/communities/create_post.lisp");
|
||||
pub const COMMUNITIES_QUESTION: &str = include_str!("./public/html/communities/question.lisp");
|
||||
pub const COMMUNITIES_QUESTIONS: &str = include_str!("./public/html/communities/questions.lisp");
|
||||
|
||||
pub const POST_POST: &str = include_str!("./public/html/post/post.html");
|
||||
pub const POST_REPOSTS: &str = include_str!("./public/html/post/reposts.html");
|
||||
pub const POST_QUOTES: &str = include_str!("./public/html/post/quotes.html");
|
||||
pub const POST_LIKES: &str = include_str!("./public/html/post/likes.html");
|
||||
pub const POST_POST: &str = include_str!("./public/html/post/post.lisp");
|
||||
pub const POST_REPOSTS: &str = include_str!("./public/html/post/reposts.lisp");
|
||||
pub const POST_QUOTES: &str = include_str!("./public/html/post/quotes.lisp");
|
||||
pub const POST_LIKES: &str = include_str!("./public/html/post/likes.lisp");
|
||||
|
||||
pub const TIMELINES_HOME: &str = include_str!("./public/html/timelines/home.html");
|
||||
pub const TIMELINES_POPULAR: &str = include_str!("./public/html/timelines/popular.html");
|
||||
pub const TIMELINES_FOLLOWING: &str = include_str!("./public/html/timelines/following.html");
|
||||
pub const TIMELINES_ALL: &str = include_str!("./public/html/timelines/all.html");
|
||||
pub const TIMELINES_HOME: &str = include_str!("./public/html/timelines/home.lisp");
|
||||
pub const TIMELINES_POPULAR: &str = include_str!("./public/html/timelines/popular.lisp");
|
||||
pub const TIMELINES_FOLLOWING: &str = include_str!("./public/html/timelines/following.lisp");
|
||||
pub const TIMELINES_ALL: &str = include_str!("./public/html/timelines/all.lisp");
|
||||
pub const TIMELINES_HOME_QUESTIONS: &str =
|
||||
include_str!("./public/html/timelines/home_questions.html");
|
||||
include_str!("./public/html/timelines/home_questions.lisp");
|
||||
pub const TIMELINES_POPULAR_QUESTIONS: &str =
|
||||
include_str!("./public/html/timelines/popular_questions.html");
|
||||
include_str!("./public/html/timelines/popular_questions.lisp");
|
||||
pub const TIMELINES_FOLLOWING_QUESTIONS: &str =
|
||||
include_str!("./public/html/timelines/following_questions.html");
|
||||
include_str!("./public/html/timelines/following_questions.lisp");
|
||||
pub const TIMELINES_ALL_QUESTIONS: &str =
|
||||
include_str!("./public/html/timelines/all_questions.html");
|
||||
pub const TIMELINES_SEARCH: &str = include_str!("./public/html/timelines/search.html");
|
||||
include_str!("./public/html/timelines/all_questions.lisp");
|
||||
pub const TIMELINES_SEARCH: &str = include_str!("./public/html/timelines/search.lisp");
|
||||
|
||||
pub const MOD_AUDIT_LOG: &str = include_str!("./public/html/mod/audit_log.html");
|
||||
pub const MOD_REPORTS: &str = include_str!("./public/html/mod/reports.html");
|
||||
pub const MOD_FILE_REPORT: &str = include_str!("./public/html/mod/file_report.html");
|
||||
pub const MOD_IP_BANS: &str = include_str!("./public/html/mod/ip_bans.html");
|
||||
pub const MOD_PROFILE: &str = include_str!("./public/html/mod/profile.html");
|
||||
pub const MOD_WARNINGS: &str = include_str!("./public/html/mod/warnings.html");
|
||||
pub const MOD_STATS: &str = include_str!("./public/html/mod/stats.html");
|
||||
pub const MOD_AUDIT_LOG: &str = include_str!("./public/html/mod/audit_log.lisp");
|
||||
pub const MOD_REPORTS: &str = include_str!("./public/html/mod/reports.lisp");
|
||||
pub const MOD_FILE_REPORT: &str = include_str!("./public/html/mod/file_report.lisp");
|
||||
pub const MOD_IP_BANS: &str = include_str!("./public/html/mod/ip_bans.lisp");
|
||||
pub const MOD_PROFILE: &str = include_str!("./public/html/mod/profile.lisp");
|
||||
pub const MOD_WARNINGS: &str = include_str!("./public/html/mod/warnings.lisp");
|
||||
pub const MOD_STATS: &str = include_str!("./public/html/mod/stats.lisp");
|
||||
|
||||
pub const CHATS_APP: &str = include_str!("./public/html/chats/app.html");
|
||||
pub const CHATS_STREAM: &str = include_str!("./public/html/chats/stream.html");
|
||||
pub const CHATS_MESSAGE: &str = include_str!("./public/html/chats/message.html");
|
||||
pub const CHATS_CHANNELS: &str = include_str!("./public/html/chats/channels.html");
|
||||
pub const CHATS_APP: &str = include_str!("./public/html/chats/app.lisp");
|
||||
pub const CHATS_STREAM: &str = include_str!("./public/html/chats/stream.lisp");
|
||||
pub const CHATS_MESSAGE: &str = include_str!("./public/html/chats/message.lisp");
|
||||
pub const CHATS_CHANNELS: &str = include_str!("./public/html/chats/channels.lisp");
|
||||
|
||||
pub const STACKS_LIST: &str = include_str!("./public/html/stacks/list.html");
|
||||
pub const STACKS_POSTS: &str = include_str!("./public/html/stacks/posts.html");
|
||||
pub const STACKS_MANAGE: &str = include_str!("./public/html/stacks/manage.html");
|
||||
pub const STACKS_LIST: &str = include_str!("./public/html/stacks/list.lisp");
|
||||
pub const STACKS_POSTS: &str = include_str!("./public/html/stacks/posts.lisp");
|
||||
pub const STACKS_MANAGE: &str = include_str!("./public/html/stacks/manage.lisp");
|
||||
|
||||
// langs
|
||||
pub const LANG_EN_US: &str = include_str!("./langs/en-US.toml");
|
||||
|
@ -143,13 +144,7 @@ pub(crate) async fn pull_icon(icon: &str, icons_dir: &str) {
|
|||
}
|
||||
|
||||
println!("download icon: {icon}");
|
||||
let svg = reqwest::get(icon_url)
|
||||
.await
|
||||
.unwrap()
|
||||
.text()
|
||||
.await
|
||||
.unwrap()
|
||||
.replace("\n", "");
|
||||
let svg = reqwest::get(icon_url).await.unwrap().text().await.unwrap();
|
||||
|
||||
write(&file_path, &svg).unwrap();
|
||||
writer.insert(icon.to_string(), svg);
|
||||
|
@ -198,7 +193,10 @@ pub(crate) async fn replace_in_html(
|
|||
let mut input = if !lisp {
|
||||
input.to_string()
|
||||
} else {
|
||||
let start = SystemTime::now();
|
||||
let parsed = bberry::parse(input);
|
||||
println!("parsed lisp in {}μs", start.elapsed().unwrap().as_micros());
|
||||
|
||||
if let Some(plugins) = plugins {
|
||||
parsed.render(plugins)
|
||||
} else {
|
||||
|
@ -221,7 +219,12 @@ pub(crate) async fn replace_in_html(
|
|||
Regex::new("(\\{\\{)\\s*(icon)\\s*(.*?)\\s*c\\((.*?)\\)\\s*(\\}\\})").unwrap();
|
||||
|
||||
for cap in icon_with_class.captures_iter(&input.clone()) {
|
||||
let icon = &cap.get(3).unwrap().as_str().replace("\"", "");
|
||||
let cap_str = &cap.get(3).unwrap().as_str().replace("\"", "");
|
||||
let icon = &(if cap_str.contains(" }}") {
|
||||
cap_str.split(" }}").next().unwrap().to_string()
|
||||
} else {
|
||||
cap_str.to_string()
|
||||
});
|
||||
|
||||
pull_icon(icon, &config.dirs.icons).await;
|
||||
|
||||
|
@ -231,14 +234,26 @@ pub(crate) async fn replace_in_html(
|
|||
&format!("<svg class=\"icon {}\"", cap.get(4).unwrap().as_str()),
|
||||
);
|
||||
|
||||
input = input.replace(cap.get(0).unwrap().as_str(), &icon_text);
|
||||
input = input.replace(
|
||||
&format!(
|
||||
"{{{{ icon \"{cap_str}\" c({}) }}}}",
|
||||
cap.get(4).unwrap().as_str()
|
||||
),
|
||||
&icon_text,
|
||||
);
|
||||
}
|
||||
|
||||
// icon (without class)
|
||||
let icon_without_class = Regex::new("(\\{\\{)\\s*(icon)\\s*(.*?)\\s*(\\}\\})").unwrap();
|
||||
|
||||
for cap in icon_without_class.captures_iter(&input.clone()) {
|
||||
let icon = &cap.get(3).unwrap().as_str().replace("\"", "");
|
||||
let cap_str = &cap.get(3).unwrap().as_str().replace("\"", "");
|
||||
let icon = &(if cap_str.contains(" }}") {
|
||||
cap_str.split(" }}").next().unwrap().to_string()
|
||||
} else {
|
||||
cap_str.to_string()
|
||||
});
|
||||
|
||||
pull_icon(icon, &config.dirs.icons).await;
|
||||
|
||||
let reader = ICONS.read().await;
|
||||
|
@ -247,7 +262,7 @@ pub(crate) async fn replace_in_html(
|
|||
.unwrap()
|
||||
.replace("<svg", "<svg class=\"icon\"");
|
||||
|
||||
input = input.replace(cap.get(0).unwrap().as_str(), &icon_text);
|
||||
input = input.replace(&format!("{{{{ icon \"{cap_str}\" }}}}",), &icon_text);
|
||||
}
|
||||
|
||||
// return
|
||||
|
@ -293,71 +308,71 @@ pub(crate) async fn write_assets(config: &Config) -> PathBufD {
|
|||
|
||||
write_template!(html_path->"root.html"(crate::assets::ROOT) --config=config --lisp plugins);
|
||||
write_template!(html_path->"macros.html"(crate::assets::MACROS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"components.html"(crate::assets::COMPONENTS) --config=config);
|
||||
write_template!(html_path->"components.html"(crate::assets::COMPONENTS) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"misc/error.html"(crate::assets::MISC_ERROR) -d "misc" --config=config --lisp plugins);
|
||||
write_template!(html_path->"misc/notifications.html"(crate::assets::MISC_NOTIFICATIONS) --config=config);
|
||||
write_template!(html_path->"misc/notifications.html"(crate::assets::MISC_NOTIFICATIONS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"misc/markdown.html"(crate::assets::MISC_MARKDOWN) --config=config --lisp plugins);
|
||||
write_template!(html_path->"misc/requests.html"(crate::assets::MISC_REQUESTS) --config=config);
|
||||
write_template!(html_path->"misc/requests.html"(crate::assets::MISC_REQUESTS) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"auth/base.html"(crate::assets::AUTH_BASE) -d "auth" --config=config);
|
||||
write_template!(html_path->"auth/login.html"(crate::assets::AUTH_LOGIN) --config=config);
|
||||
write_template!(html_path->"auth/register.html"(crate::assets::AUTH_REGISTER) --config=config);
|
||||
write_template!(html_path->"auth/connection.html"(crate::assets::AUTH_CONNECTION) --config=config);
|
||||
write_template!(html_path->"auth/base.html"(crate::assets::AUTH_BASE) -d "auth" --config=config --lisp plugins);
|
||||
write_template!(html_path->"auth/login.html"(crate::assets::AUTH_LOGIN) --config=config --lisp plugins);
|
||||
write_template!(html_path->"auth/register.html"(crate::assets::AUTH_REGISTER) --config=config --lisp plugins);
|
||||
write_template!(html_path->"auth/connection.html"(crate::assets::AUTH_CONNECTION) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"profile/base.html"(crate::assets::PROFILE_BASE) -d "profile" --config=config);
|
||||
write_template!(html_path->"profile/posts.html"(crate::assets::PROFILE_POSTS) --config=config);
|
||||
write_template!(html_path->"profile/settings.html"(crate::assets::PROFILE_SETTINGS) --config=config);
|
||||
write_template!(html_path->"profile/following.html"(crate::assets::PROFILE_FOLLOWING) --config=config);
|
||||
write_template!(html_path->"profile/followers.html"(crate::assets::PROFILE_FOLLOWERS) --config=config);
|
||||
write_template!(html_path->"profile/warning.html"(crate::assets::PROFILE_WARNING) --config=config);
|
||||
write_template!(html_path->"profile/private.html"(crate::assets::PROFILE_PRIVATE) --config=config);
|
||||
write_template!(html_path->"profile/blocked.html"(crate::assets::PROFILE_BLOCKED) --config=config);
|
||||
write_template!(html_path->"profile/banned.html"(crate::assets::PROFILE_BANNED) --config=config);
|
||||
write_template!(html_path->"profile/replies.html"(crate::assets::PROFILE_REPLIES) --config=config);
|
||||
write_template!(html_path->"profile/media.html"(crate::assets::PROFILE_MEDIA) --config=config);
|
||||
write_template!(html_path->"profile/base.html"(crate::assets::PROFILE_BASE) -d "profile" --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/posts.html"(crate::assets::PROFILE_POSTS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/settings.html"(crate::assets::PROFILE_SETTINGS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/following.html"(crate::assets::PROFILE_FOLLOWING) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/followers.html"(crate::assets::PROFILE_FOLLOWERS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/warning.html"(crate::assets::PROFILE_WARNING) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/private.html"(crate::assets::PROFILE_PRIVATE) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/blocked.html"(crate::assets::PROFILE_BLOCKED) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/banned.html"(crate::assets::PROFILE_BANNED) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/replies.html"(crate::assets::PROFILE_REPLIES) --config=config --lisp plugins);
|
||||
write_template!(html_path->"profile/media.html"(crate::assets::PROFILE_MEDIA) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"communities/list.html"(crate::assets::COMMUNITIES_LIST) -d "communities" --config=config);
|
||||
write_template!(html_path->"communities/base.html"(crate::assets::COMMUNITIES_BASE) --config=config);
|
||||
write_template!(html_path->"communities/feed.html"(crate::assets::COMMUNITIES_FEED) --config=config);
|
||||
write_template!(html_path->"communities/settings.html"(crate::assets::COMMUNITIES_SETTINGS) --config=config);
|
||||
write_template!(html_path->"communities/members.html"(crate::assets::COMMUNITIES_MEMBERS) --config=config);
|
||||
write_template!(html_path->"communities/search.html"(crate::assets::COMMUNITIES_SEARCH) --config=config);
|
||||
write_template!(html_path->"communities/create_post.html"(crate::assets::COMMUNITIES_CREATE_POST) --config=config);
|
||||
write_template!(html_path->"communities/question.html"(crate::assets::COMMUNITIES_QUESTION) --config=config);
|
||||
write_template!(html_path->"communities/questions.html"(crate::assets::COMMUNITIES_QUESTIONS) --config=config);
|
||||
write_template!(html_path->"communities/list.html"(crate::assets::COMMUNITIES_LIST) -d "communities" --config=config --lisp plugins);
|
||||
write_template!(html_path->"communities/base.html"(crate::assets::COMMUNITIES_BASE) --config=config --lisp plugins);
|
||||
write_template!(html_path->"communities/feed.html"(crate::assets::COMMUNITIES_FEED) --config=config --lisp plugins);
|
||||
write_template!(html_path->"communities/settings.html"(crate::assets::COMMUNITIES_SETTINGS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"communities/members.html"(crate::assets::COMMUNITIES_MEMBERS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"communities/search.html"(crate::assets::COMMUNITIES_SEARCH) --config=config --lisp plugins);
|
||||
write_template!(html_path->"communities/create_post.html"(crate::assets::COMMUNITIES_CREATE_POST) --config=config --lisp plugins);
|
||||
write_template!(html_path->"communities/question.html"(crate::assets::COMMUNITIES_QUESTION) --config=config --lisp plugins);
|
||||
write_template!(html_path->"communities/questions.html"(crate::assets::COMMUNITIES_QUESTIONS) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"post/post.html"(crate::assets::POST_POST) -d "post" --config=config);
|
||||
write_template!(html_path->"post/reposts.html"(crate::assets::POST_REPOSTS) --config=config);
|
||||
write_template!(html_path->"post/quotes.html"(crate::assets::POST_QUOTES) --config=config);
|
||||
write_template!(html_path->"post/likes.html"(crate::assets::POST_LIKES) --config=config);
|
||||
write_template!(html_path->"post/post.html"(crate::assets::POST_POST) -d "post" --config=config --lisp plugins);
|
||||
write_template!(html_path->"post/reposts.html"(crate::assets::POST_REPOSTS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"post/quotes.html"(crate::assets::POST_QUOTES) --config=config --lisp plugins);
|
||||
write_template!(html_path->"post/likes.html"(crate::assets::POST_LIKES) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"timelines/home.html"(crate::assets::TIMELINES_HOME) -d "timelines" --config=config);
|
||||
write_template!(html_path->"timelines/popular.html"(crate::assets::TIMELINES_POPULAR) --config=config);
|
||||
write_template!(html_path->"timelines/following.html"(crate::assets::TIMELINES_FOLLOWING) --config=config);
|
||||
write_template!(html_path->"timelines/all.html"(crate::assets::TIMELINES_ALL) --config=config);
|
||||
write_template!(html_path->"timelines/home_questions.html"(crate::assets::TIMELINES_HOME_QUESTIONS) --config=config);
|
||||
write_template!(html_path->"timelines/popular_questions.html"(crate::assets::TIMELINES_POPULAR_QUESTIONS) --config=config);
|
||||
write_template!(html_path->"timelines/following_questions.html"(crate::assets::TIMELINES_FOLLOWING_QUESTIONS) --config=config);
|
||||
write_template!(html_path->"timelines/all_questions.html"(crate::assets::TIMELINES_ALL_QUESTIONS) --config=config);
|
||||
write_template!(html_path->"timelines/search.html"(crate::assets::TIMELINES_SEARCH) --config=config);
|
||||
write_template!(html_path->"timelines/home.html"(crate::assets::TIMELINES_HOME) -d "timelines" --config=config --lisp plugins);
|
||||
write_template!(html_path->"timelines/popular.html"(crate::assets::TIMELINES_POPULAR) --config=config --lisp plugins);
|
||||
write_template!(html_path->"timelines/following.html"(crate::assets::TIMELINES_FOLLOWING) --config=config --lisp plugins);
|
||||
write_template!(html_path->"timelines/all.html"(crate::assets::TIMELINES_ALL) --config=config --lisp plugins);
|
||||
write_template!(html_path->"timelines/home_questions.html"(crate::assets::TIMELINES_HOME_QUESTIONS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"timelines/popular_questions.html"(crate::assets::TIMELINES_POPULAR_QUESTIONS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"timelines/following_questions.html"(crate::assets::TIMELINES_FOLLOWING_QUESTIONS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"timelines/all_questions.html"(crate::assets::TIMELINES_ALL_QUESTIONS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"timelines/search.html"(crate::assets::TIMELINES_SEARCH) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"mod/audit_log.html"(crate::assets::MOD_AUDIT_LOG) -d "mod" --config=config);
|
||||
write_template!(html_path->"mod/reports.html"(crate::assets::MOD_REPORTS) --config=config);
|
||||
write_template!(html_path->"mod/file_report.html"(crate::assets::MOD_FILE_REPORT) --config=config);
|
||||
write_template!(html_path->"mod/ip_bans.html"(crate::assets::MOD_IP_BANS) --config=config);
|
||||
write_template!(html_path->"mod/profile.html"(crate::assets::MOD_PROFILE) --config=config);
|
||||
write_template!(html_path->"mod/warnings.html"(crate::assets::MOD_WARNINGS) --config=config);
|
||||
write_template!(html_path->"mod/stats.html"(crate::assets::MOD_STATS) --config=config);
|
||||
write_template!(html_path->"mod/audit_log.html"(crate::assets::MOD_AUDIT_LOG) -d "mod" --config=config --lisp plugins);
|
||||
write_template!(html_path->"mod/reports.html"(crate::assets::MOD_REPORTS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"mod/file_report.html"(crate::assets::MOD_FILE_REPORT) --config=config --lisp plugins);
|
||||
write_template!(html_path->"mod/ip_bans.html"(crate::assets::MOD_IP_BANS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"mod/profile.html"(crate::assets::MOD_PROFILE) --config=config --lisp plugins);
|
||||
write_template!(html_path->"mod/warnings.html"(crate::assets::MOD_WARNINGS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"mod/stats.html"(crate::assets::MOD_STATS) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"chats/app.html"(crate::assets::CHATS_APP) -d "chats" --config=config);
|
||||
write_template!(html_path->"chats/stream.html"(crate::assets::CHATS_STREAM) --config=config);
|
||||
write_template!(html_path->"chats/message.html"(crate::assets::CHATS_MESSAGE) --config=config);
|
||||
write_template!(html_path->"chats/channels.html"(crate::assets::CHATS_CHANNELS) --config=config);
|
||||
write_template!(html_path->"chats/app.html"(crate::assets::CHATS_APP) -d "chats" --config=config --lisp plugins);
|
||||
write_template!(html_path->"chats/stream.html"(crate::assets::CHATS_STREAM) --config=config --lisp plugins);
|
||||
write_template!(html_path->"chats/message.html"(crate::assets::CHATS_MESSAGE) --config=config --lisp plugins);
|
||||
write_template!(html_path->"chats/channels.html"(crate::assets::CHATS_CHANNELS) --config=config --lisp plugins);
|
||||
|
||||
write_template!(html_path->"stacks/list.html"(crate::assets::STACKS_LIST) -d "stacks" --config=config);
|
||||
write_template!(html_path->"stacks/posts.html"(crate::assets::STACKS_POSTS) --config=config);
|
||||
write_template!(html_path->"stacks/manage.html"(crate::assets::STACKS_MANAGE) --config=config);
|
||||
write_template!(html_path->"stacks/list.html"(crate::assets::STACKS_LIST) -d "stacks" --config=config --lisp plugins);
|
||||
write_template!(html_path->"stacks/posts.html"(crate::assets::STACKS_POSTS) --config=config --lisp plugins);
|
||||
write_template!(html_path->"stacks/manage.html"(crate::assets::STACKS_MANAGE) --config=config --lisp plugins);
|
||||
|
||||
html_path
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue