aboutsummaryrefslogtreecommitdiff
path: root/server/src
diff options
context:
space:
mode:
Diffstat (limited to 'server/src')
-rw-r--r--server/src/config.rs5
-rw-r--r--server/src/database.rs6
-rw-r--r--server/src/library.rs5
-rw-r--r--server/src/main.rs5
-rw-r--r--server/src/routes/mod.rs5
-rw-r--r--server/src/routes/stream.rs8
-rw-r--r--server/src/routes/ui/account/admin.rs5
-rw-r--r--server/src/routes/ui/account/mod.rs5
-rw-r--r--server/src/routes/ui/account/session.rs5
-rw-r--r--server/src/routes/ui/error.rs5
-rw-r--r--server/src/routes/ui/home.rs5
-rw-r--r--server/src/routes/ui/layout.rs5
-rw-r--r--server/src/routes/ui/mod.rs5
-rw-r--r--server/src/routes/ui/node.rs5
-rw-r--r--server/src/routes/ui/player.rs5
-rw-r--r--server/src/routes/ui/style/directorypage.css6
-rw-r--r--server/src/routes/ui/style/forms.css6
-rw-r--r--server/src/routes/ui/style/itempage.css7
-rw-r--r--server/src/routes/ui/style/layout.css6
-rw-r--r--server/src/routes/ui/style/mod.rs6
-rw-r--r--server/src/routes/ui/style/player.css6
-rw-r--r--server/src/routes/ui/style/transition.js5
22 files changed, 117 insertions, 4 deletions
diff --git a/server/src/config.rs b/server/src/config.rs
index cffdc2f..4b61960 100644
--- a/server/src/config.rs
+++ b/server/src/config.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use serde::{Deserialize, Serialize};
use std::{fs::File, path::PathBuf};
diff --git a/server/src/database.rs b/server/src/database.rs
index 3b2b4a9..a4e5b85 100644
--- a/server/src/database.rs
+++ b/server/src/database.rs
@@ -1,5 +1,9 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use std::path::PathBuf;
-
use anyhow::Context;
use log::info;
use serde::{Deserialize, Serialize};
diff --git a/server/src/library.rs b/server/src/library.rs
index 578edfc..6cb6c3a 100644
--- a/server/src/library.rs
+++ b/server/src/library.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use anyhow::{anyhow, bail, Context, Ok};
use jellycommon::{DirectoryInfo, ItemInfo};
use log::info;
diff --git a/server/src/main.rs b/server/src/main.rs
index e10302e..3d08d24 100644
--- a/server/src/main.rs
+++ b/server/src/main.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
#![feature(box_syntax)]
use config::{load_global_config, GlobalConfig};
diff --git a/server/src/routes/mod.rs b/server/src/routes/mod.rs
index e3a9382..cbc1b42 100644
--- a/server/src/routes/mod.rs
+++ b/server/src/routes/mod.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use crate::{database::Database, library::Library, routes::ui::error::MyResult, CONF};
use jellyremuxer::RemuxerContext;
use rocket::{catchers, config::SecretKey, fs::FileServer, get, routes, Build, Config, Rocket};
diff --git a/server/src/routes/stream.rs b/server/src/routes/stream.rs
index 0e1fccb..1b2c741 100644
--- a/server/src/routes/stream.rs
+++ b/server/src/routes/stream.rs
@@ -1,6 +1,10 @@
-use crate::library::Library;
-
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use super::ui::error::MyError;
+use crate::library::Library;
use anyhow::{anyhow, Context};
use jellyremuxer::RemuxerContext;
use log::debug;
diff --git a/server/src/routes/ui/account/admin.rs b/server/src/routes/ui/account/admin.rs
index 1fbd7dd..8fe2a9a 100644
--- a/server/src/routes/ui/account/admin.rs
+++ b/server/src/routes/ui/account/admin.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use crate::{
database::Database,
routes::ui::{
diff --git a/server/src/routes/ui/account/mod.rs b/server/src/routes/ui/account/mod.rs
index c1561e3..2c27f0c 100644
--- a/server/src/routes/ui/account/mod.rs
+++ b/server/src/routes/ui/account/mod.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
pub mod admin;
pub mod session;
diff --git a/server/src/routes/ui/account/session.rs b/server/src/routes/ui/account/session.rs
index 9c50099..ed40d83 100644
--- a/server/src/routes/ui/account/session.rs
+++ b/server/src/routes/ui/account/session.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use crate::{
database::{Database, User},
routes::ui::error::MyError,
diff --git a/server/src/routes/ui/error.rs b/server/src/routes/ui/error.rs
index b07ca8b..1c5b00c 100644
--- a/server/src/routes/ui/error.rs
+++ b/server/src/routes/ui/error.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use super::layout::DynLayoutPage;
use super::layout::LayoutPage;
use crate::routes::ui::account::rocket_uri_macro_r_account_login;
diff --git a/server/src/routes/ui/home.rs b/server/src/routes/ui/home.rs
index 165fbb7..bbf3f70 100644
--- a/server/src/routes/ui/home.rs
+++ b/server/src/routes/ui/home.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use super::account::session::Session;
use super::layout::LayoutPage;
use crate::routes::ui::error::MyResult;
diff --git a/server/src/routes/ui/layout.rs b/server/src/routes/ui/layout.rs
index 03fae09..70cf2fb 100644
--- a/server/src/routes/ui/layout.rs
+++ b/server/src/routes/ui/layout.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use crate::{
routes::ui::account::{
admin::rocket_uri_macro_r_account_admin_dashboard, rocket_uri_macro_r_account_login,
diff --git a/server/src/routes/ui/mod.rs b/server/src/routes/ui/mod.rs
index ee2b4f8..83973bf 100644
--- a/server/src/routes/ui/mod.rs
+++ b/server/src/routes/ui/mod.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use markup::Render;
use rocket::{
futures::FutureExt,
diff --git a/server/src/routes/ui/node.rs b/server/src/routes/ui/node.rs
index b32e4b7..8e6bf7a 100644
--- a/server/src/routes/ui/node.rs
+++ b/server/src/routes/ui/node.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use super::error::MyError;
use super::player::player_uri;
use crate::{
diff --git a/server/src/routes/ui/player.rs b/server/src/routes/ui/player.rs
index 116b441..4b66f04 100644
--- a/server/src/routes/ui/player.rs
+++ b/server/src/routes/ui/player.rs
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
use super::{account::session::Session, layout::LayoutPage};
use crate::{
library::{Item, Library},
diff --git a/server/src/routes/ui/style/directorypage.css b/server/src/routes/ui/style/directorypage.css
index 2773e3c..e46a1fe 100644
--- a/server/src/routes/ui/style/directorypage.css
+++ b/server/src/routes/ui/style/directorypage.css
@@ -1,3 +1,9 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+ Copyright (C) 2023 tpart
+*/
.page.dir {
padding: 1em;
padding-left: 3em;
diff --git a/server/src/routes/ui/style/forms.css b/server/src/routes/ui/style/forms.css
index 959a62e..ab7ca7f 100644
--- a/server/src/routes/ui/style/forms.css
+++ b/server/src/routes/ui/style/forms.css
@@ -1,3 +1,9 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+ Copyright (C) 2023 tpart
+*/
input[type="text"],
input[type="password"] {
border-radius: 7px;
diff --git a/server/src/routes/ui/style/itempage.css b/server/src/routes/ui/style/itempage.css
index 284d74f..ad32831 100644
--- a/server/src/routes/ui/style/itempage.css
+++ b/server/src/routes/ui/style/itempage.css
@@ -1,4 +1,9 @@
-
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+ Copyright (C) 2023 tpart
+*/
.backdrop {
width: calc(100% + 2 * var(--main-side-margin));
height: calc(var(--backdrop-height) + 5em);
diff --git a/server/src/routes/ui/style/layout.css b/server/src/routes/ui/style/layout.css
index f392d04..f7a21c2 100644
--- a/server/src/routes/ui/style/layout.css
+++ b/server/src/routes/ui/style/layout.css
@@ -1,3 +1,9 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+ Copyright (C) 2023 tpart
+*/
@font-face {
font-family: "Cantarell";
src: url(/assets/cantarell.woff2) format("woff2");
diff --git a/server/src/routes/ui/style/mod.rs b/server/src/routes/ui/style/mod.rs
index 0891d59..93b6708 100644
--- a/server/src/routes/ui/style/mod.rs
+++ b/server/src/routes/ui/style/mod.rs
@@ -1,3 +1,9 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+ Copyright (C) 2023 tpart
+*/
use rocket::{get, http::ContentType};
use std::{
fs::{read_to_string, File},
diff --git a/server/src/routes/ui/style/player.css b/server/src/routes/ui/style/player.css
index 0a9c16f..3e8cea1 100644
--- a/server/src/routes/ui/style/player.css
+++ b/server/src/routes/ui/style/player.css
@@ -1,3 +1,9 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+ Copyright (C) 2023 tpart
+*/
video {
width: 100%;
}
diff --git a/server/src/routes/ui/style/transition.js b/server/src/routes/ui/style/transition.js
index 8a71f14..6f558fb 100644
--- a/server/src/routes/ui/style/transition.js
+++ b/server/src/routes/ui/style/transition.js
@@ -1,3 +1,8 @@
+/*
+ This file is part of jellything (https://codeberg.org/metamuffin/jellything)
+ which is licensed under the GNU Affero General Public License (version 3); see /COPYING.
+ Copyright (C) 2023 metamuffin <metamuffin.org>
+*/
/// <reference lib="dom" />
const duration = 0.2