2024-03-14 23:08:24 +00:00
|
|
|
<template>
|
|
|
|
<div class="stash">
|
|
|
|
<div class="header">
|
|
|
|
<h2 class="title">
|
|
|
|
<Icon
|
2024-03-26 23:06:03 +00:00
|
|
|
v-if="stash.isPrimary"
|
2024-03-14 23:08:24 +00:00
|
|
|
icon="heart7"
|
|
|
|
/>
|
|
|
|
|
|
|
|
<Icon
|
|
|
|
v-else
|
|
|
|
icon="box"
|
|
|
|
/>
|
|
|
|
|
|
|
|
{{ stash.name }}
|
|
|
|
</h2>
|
|
|
|
|
2024-06-07 02:10:04 +00:00
|
|
|
<Domains
|
|
|
|
:stash="stash"
|
|
|
|
:domain="domain"
|
|
|
|
class="domains-header"
|
|
|
|
/>
|
|
|
|
|
2024-03-14 23:08:24 +00:00
|
|
|
<a
|
|
|
|
:href="`/user/${stash.user.username}`"
|
|
|
|
class="user nolink"
|
|
|
|
>
|
|
|
|
<img
|
|
|
|
:src="stash.user.avatar"
|
|
|
|
class="avatar"
|
2024-03-19 01:19:23 +00:00
|
|
|
><span class="userame ellipsis">{{ stash.user.username }}</span>
|
2024-03-14 23:08:24 +00:00
|
|
|
</a>
|
|
|
|
</div>
|
|
|
|
|
2024-06-07 02:10:04 +00:00
|
|
|
<Domains
|
|
|
|
:stash="stash"
|
|
|
|
:domain="domain"
|
|
|
|
class="domains-bar"
|
|
|
|
/>
|
2024-03-21 01:54:05 +00:00
|
|
|
|
2024-06-07 02:10:04 +00:00
|
|
|
<div class="content">
|
2024-03-21 01:54:05 +00:00
|
|
|
<slot />
|
2024-03-14 23:08:24 +00:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
</template>
|
|
|
|
|
|
|
|
<script setup>
|
|
|
|
import { inject } from 'vue';
|
|
|
|
|
2024-06-07 02:10:04 +00:00
|
|
|
import Domains from './domains.vue';
|
|
|
|
|
2024-03-14 23:08:24 +00:00
|
|
|
const pageContext = inject('pageContext');
|
2024-03-21 01:54:05 +00:00
|
|
|
const { routeParams } = pageContext;
|
|
|
|
|
|
|
|
const domain = routeParams.domain;
|
2024-03-14 23:08:24 +00:00
|
|
|
const stash = pageContext.pageProps.stash;
|
|
|
|
</script>
|
|
|
|
|
|
|
|
<style scoped>
|
|
|
|
.stash {
|
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
2024-08-04 21:50:26 +00:00
|
|
|
flex-grow: 1;
|
2024-03-14 23:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.header {
|
|
|
|
display: flex;
|
|
|
|
justify-content: space-between;
|
2024-06-07 02:10:04 +00:00
|
|
|
align-items: stretch;
|
2024-06-07 01:43:12 +00:00
|
|
|
position: sticky;
|
|
|
|
top: 0;
|
|
|
|
z-index: 1;
|
2024-06-07 02:10:04 +00:00
|
|
|
padding: 0 1rem;
|
2024-03-14 23:08:24 +00:00
|
|
|
color: var(--text-light);
|
|
|
|
background: var(--grey-dark-40);
|
2024-03-19 01:19:23 +00:00
|
|
|
flex-shrink: 0;
|
2024-03-14 23:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.title {
|
|
|
|
margin: 0;
|
|
|
|
text-transform: capitalize;
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
2024-06-07 02:10:04 +00:00
|
|
|
padding: .5rem 0;
|
2024-03-19 01:19:23 +00:00
|
|
|
font-size: 1.2rem;
|
|
|
|
margin-right: 1rem;
|
2024-03-14 23:08:24 +00:00
|
|
|
|
|
|
|
.icon {
|
2024-03-19 01:19:23 +00:00
|
|
|
width: 1.25rem;
|
|
|
|
height: 1.25rem;
|
|
|
|
margin-right: .75rem;
|
2024-03-14 23:08:24 +00:00
|
|
|
fill: var(--text-light);
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.user {
|
|
|
|
display: flex;
|
|
|
|
align-items: center;
|
|
|
|
font-weight: bold;
|
2024-03-19 01:19:23 +00:00
|
|
|
overflow: hidden;
|
2024-03-14 23:08:24 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
width: 1.5rem;
|
|
|
|
height: 1.5rem;
|
2024-03-19 01:19:23 +00:00
|
|
|
margin-right: .75rem;
|
2024-03-14 23:08:24 +00:00
|
|
|
border-radius: .25rem;
|
|
|
|
}
|
|
|
|
|
2024-06-07 02:10:04 +00:00
|
|
|
.domains-bar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
|
2024-03-14 23:08:24 +00:00
|
|
|
.scenes-container {
|
|
|
|
overflow-y: auto;
|
|
|
|
}
|
2024-03-19 01:19:23 +00:00
|
|
|
|
2024-06-07 02:10:04 +00:00
|
|
|
.content {
|
2024-08-04 21:50:26 +00:00
|
|
|
display: flex;
|
|
|
|
flex-direction: column;
|
|
|
|
flex-grow: 1;
|
2024-06-07 02:10:04 +00:00
|
|
|
overflow-y: auto;
|
2024-03-21 01:54:05 +00:00
|
|
|
}
|
|
|
|
|
2024-06-07 02:10:04 +00:00
|
|
|
@media(--small) {
|
|
|
|
.domains-header {
|
|
|
|
display: none;
|
2024-03-21 01:54:05 +00:00
|
|
|
}
|
|
|
|
|
2024-06-07 02:10:04 +00:00
|
|
|
.domains-bar {
|
|
|
|
display: flex;
|
|
|
|
}
|
2024-03-21 01:54:05 +00:00
|
|
|
}
|
|
|
|
|
2024-03-19 01:19:23 +00:00
|
|
|
@media(--small-50) {
|
|
|
|
.title {
|
|
|
|
font-size: 1rem;
|
|
|
|
|
|
|
|
.icon {
|
|
|
|
width: 1rem;
|
|
|
|
height: 1rem;
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
.avatar {
|
|
|
|
display: none;
|
|
|
|
}
|
|
|
|
}
|
2024-03-14 23:08:24 +00:00
|
|
|
</style>
|