Added footer with dmca and discord links.

This commit is contained in:
DebaucheryLibrarian 2024-06-06 02:49:00 +02:00
parent c9087edd3c
commit 2790c4e31c
6 changed files with 22 additions and 7 deletions

View File

@ -70,6 +70,8 @@
</ul> </ul>
</div> </div>
<Footer />
<div <div
class="footer" class="footer"
@click="emit('sidebar')" @click="emit('sidebar')"
@ -86,7 +88,7 @@
<script setup> <script setup>
import { computed, inject } from 'vue'; import { computed, inject } from 'vue';
import logo from '../../assets/img/logo.svg?raw'; // eslint-disable-line import/no-unresolved import logo from '#/assets/img/logo.svg?raw'; // eslint-disable-line import/no-unresolved
const emit = defineEmits(['sidebar']); const emit = defineEmits(['sidebar']);
const pageContext = inject('pageContext'); const pageContext = inject('pageContext');

View File

@ -69,6 +69,10 @@ module.exports = {
type: 'notice', // notice, alert type: 'notice', // notice, alert
enabled: false, enabled: false,
}, },
links: {
dmca: 'mailto:dmca@traxxx.me',
discord: 'https://discord.gg/gY6fnq6jJV',
},
stashes: { stashes: {
nameLength: [2, 24], nameLength: [2, 24],
namePattern: /^[a-zA-Z0-9!?$&\s_-]+$/, namePattern: /^[a-zA-Z0-9!?$&\s_-]+$/,

View File

@ -58,14 +58,17 @@ const { actor } = pageProps;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
overflow: hidden; position: relative;
} }
.actor-header { .actor-header {
width: 100%;
display: flex; display: flex;
justify-content: space-between; justify-content: space-between;
align-items: center; align-items: center;
position: relative; position: sticky;
top: 0;
z-index: 1;
color: var(--highlight-strong-30); color: var(--highlight-strong-30);
background: var(--grey-dark-40); background: var(--grey-dark-40);
} }
@ -94,7 +97,7 @@ const { actor } = pageProps;
display: flex; display: flex;
flex-direction: column; flex-direction: column;
flex-grow: 1; flex-grow: 1;
overflow-y: auto; /* overflow-y: auto; */
} }
.bookmarks { .bookmarks {

View File

@ -133,7 +133,7 @@ onMounted(() => {
categories.value.scrollLeft += event.deltaY; categories.value.scrollLeft += event.deltaY;
}); });
content.value.addEventListener('scroll', () => calculateActiveCategory()); document.querySelector('#content').addEventListener('scroll', () => calculateActiveCategory());
window.addEventListener('popstate', () => { window.addEventListener('popstate', () => {
if (window.location.hash) { if (window.location.hash) {
@ -152,12 +152,10 @@ onMounted(() => {
.page { .page {
display: flex; display: flex;
flex-direction: column; flex-direction: column;
overflow: hidden;
} }
.content { .content {
flex-grow: 1; flex-grow: 1;
overflow-y: auto;
} }
.categories { .categories {
@ -165,6 +163,9 @@ onMounted(() => {
gap: .25rem; gap: .25rem;
flex-shrink: 0; flex-shrink: 0;
padding: .5rem 1rem; padding: .5rem 1rem;
position: sticky;
top: 0;
z-index: 1;
background: var(--grey-dark-40); background: var(--grey-dark-40);
overflow-x: auto; overflow-x: auto;
scrollbar-width: none; scrollbar-width: none;

View File

@ -13,6 +13,7 @@
<Header /> <Header />
<div <div
id="content"
ref="content" ref="content"
class="content" class="content"
> >
@ -24,6 +25,8 @@
/> />
<slot @scroll="scroll" /> <slot @scroll="scroll" />
<Footer />
</div> </div>
<BottomNavigation <BottomNavigation
@ -56,6 +59,7 @@ import {
import events from '#/src/events.js'; import events from '#/src/events.js';
import Header from '#/components/header/header.vue'; import Header from '#/components/header/header.vue';
import Footer from '#/components/footer/footer.vue';
import Sidebar from '#/components/sidebar/sidebar.vue'; import Sidebar from '#/components/sidebar/sidebar.vue';
import BottomNavigation from '#/components/footer/navigation.vue'; import BottomNavigation from '#/components/footer/navigation.vue';

View File

@ -199,6 +199,7 @@ export default async function initServer() {
maxAggregateSize: config.database.manticore.maxAggregateSize, maxAggregateSize: config.database.manticore.maxAggregateSize,
media: config.media, media: config.media,
psa: config.psa, psa: config.psa,
links: config.links,
}, },
meta: { meta: {
unseenNotifications, unseenNotifications,