Fixed NATS URL composition.
This commit is contained in:
parent
7bc9a90b81
commit
cb1c884503
|
|
@ -60,6 +60,7 @@ const bannerSrc = (() => {
|
||||||
height: 100%;
|
height: 100%;
|
||||||
display: flex;
|
display: flex;
|
||||||
justify-content: center;
|
justify-content: center;
|
||||||
|
/* align-items: center; */
|
||||||
}
|
}
|
||||||
|
|
||||||
.frame {
|
.frame {
|
||||||
|
|
|
||||||
|
|
@ -0,0 +1,50 @@
|
||||||
|
<template>
|
||||||
|
<div
|
||||||
|
class="filters-toggle open"
|
||||||
|
@click.stop="emit('toggle')"
|
||||||
|
><Icon icon="filter" /></div>
|
||||||
|
</template>
|
||||||
|
|
||||||
|
<script setup>
|
||||||
|
const emit = defineEmits(['toggle']);
|
||||||
|
</script>
|
||||||
|
|
||||||
|
<style scoped>
|
||||||
|
.filters-toggle {
|
||||||
|
min-width: 2.75rem;
|
||||||
|
height: 3rem;
|
||||||
|
justify-content: center;
|
||||||
|
align-items: center;
|
||||||
|
padding: 0 .25rem;
|
||||||
|
border-radius: 0 .5rem .5rem 0;
|
||||||
|
background: var(--background);
|
||||||
|
color: var(--glass);
|
||||||
|
font-weight: bold;
|
||||||
|
box-shadow: inset 0 0 3px var(--shadow-weak-30);
|
||||||
|
|
||||||
|
&.open {
|
||||||
|
left: 0;
|
||||||
|
right: auto;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.show-full {
|
||||||
|
display: flex;
|
||||||
|
}
|
||||||
|
|
||||||
|
&.close .cross {
|
||||||
|
display: none;
|
||||||
|
}
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
fill: var(--glass);
|
||||||
|
}
|
||||||
|
|
||||||
|
&:hover {
|
||||||
|
cursor: pointer;
|
||||||
|
|
||||||
|
.icon {
|
||||||
|
fill: var(--primary);
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
</style>
|
||||||
|
|
@ -213,7 +213,7 @@ const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id ===
|
||||||
.title {
|
.title {
|
||||||
display: block;
|
display: block;
|
||||||
margin-top: .5rem;
|
margin-top: .5rem;
|
||||||
margin-bottom: .4rem;
|
margin-bottom: .3rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: nowrap;
|
white-space: nowrap;
|
||||||
text-overflow: ellipsis;
|
text-overflow: ellipsis;
|
||||||
|
|
@ -239,7 +239,7 @@ const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id ===
|
||||||
|
|
||||||
.actors {
|
.actors {
|
||||||
height: 1.15rem;
|
height: 1.15rem;
|
||||||
margin-bottom: .1rem;
|
margin-bottom: .15rem;
|
||||||
overflow: hidden;
|
overflow: hidden;
|
||||||
white-space: pre-wrap;
|
white-space: pre-wrap;
|
||||||
}
|
}
|
||||||
|
|
@ -302,12 +302,12 @@ const favorited = ref(props.scene.stashes.some((sceneStash) => sceneStash.id ===
|
||||||
}
|
}
|
||||||
|
|
||||||
.row {
|
.row {
|
||||||
margin: 0 .5rem .5rem .5rem;
|
margin: 0 .5rem .45rem .5rem;
|
||||||
}
|
}
|
||||||
|
|
||||||
.title {
|
.title {
|
||||||
margin-top: .6rem;
|
margin-top: .6rem;
|
||||||
margin-bottom: .6rem;
|
margin-bottom: .5rem;
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
||||||
|
|
@ -101,6 +101,7 @@ const popularNetworks = [
|
||||||
'private',
|
'private',
|
||||||
'realitykings',
|
'realitykings',
|
||||||
'rickysroom',
|
'rickysroom',
|
||||||
|
'score',
|
||||||
'teamskeet',
|
'teamskeet',
|
||||||
'kellymadison',
|
'kellymadison',
|
||||||
'vixen',
|
'vixen',
|
||||||
|
|
|
||||||
|
|
@ -42,16 +42,22 @@ function getAffiliateUrl(scene) {
|
||||||
return null;
|
return null;
|
||||||
}
|
}
|
||||||
|
|
||||||
if (!scene.affiliate?.parameters) {
|
if (scene.affiliate.url?.includes('/track')) { // nats redirect
|
||||||
return scene.url;
|
const { pathname, search } = new URL(watchUrl);
|
||||||
|
|
||||||
|
return `${scene.affiliate.url}${pathname}${search}`;
|
||||||
}
|
}
|
||||||
|
|
||||||
const newParams = new URLSearchParams({
|
if (scene.affiliate?.parameters) { // TODO: this is probably not getting tracked...
|
||||||
...Object.fromEntries(new URL(watchUrl).searchParams),
|
const newParams = new URLSearchParams({
|
||||||
...Object.fromEntries(new URLSearchParams(scene.affiliate.parameters)),
|
...Object.fromEntries(new URL(watchUrl).searchParams),
|
||||||
});
|
...Object.fromEntries(new URLSearchParams(scene.affiliate.parameters)),
|
||||||
|
});
|
||||||
|
|
||||||
return `${watchUrl}?${newParams.toString()}`;
|
return `${watchUrl}?${newParams.toString()}`;
|
||||||
|
}
|
||||||
|
|
||||||
|
return watchUrl;
|
||||||
}
|
}
|
||||||
|
|
||||||
function curateScene(rawScene, assets) {
|
function curateScene(rawScene, assets) {
|
||||||
|
|
|
||||||
2
static
2
static
|
|
@ -1 +1 @@
|
||||||
Subproject commit c05345e3c73cef25e2bb03931ffded6e7cfbe743
|
Subproject commit 3df11850ec6038c0919f6eaedb83bc8312fa8e07
|
||||||
Loading…
Reference in New Issue