Upgraded dependencies, bumped to Node 24.
This commit is contained in:
@@ -1,3 +1,72 @@
|
||||
<script setup>
|
||||
import { inject, ref } from 'vue';
|
||||
|
||||
import navigate from '#/src/navigate.js';
|
||||
|
||||
const pageContext = inject('pageContext');
|
||||
|
||||
const { pageProps } = pageContext;
|
||||
const { networks } = pageProps;
|
||||
|
||||
const networksBySlug = Object.fromEntries(networks.map((network) => [network.slug, network]));
|
||||
|
||||
const popularNetworks = [
|
||||
'21sextury',
|
||||
'adulttime',
|
||||
'analvids',
|
||||
'bamvisions',
|
||||
'bang',
|
||||
'bangbros',
|
||||
'blowpass',
|
||||
'brazzers',
|
||||
'digitalplayground',
|
||||
'dogfartnetwork',
|
||||
'dorcel',
|
||||
'elegantangel',
|
||||
'evilangel',
|
||||
'fakehub',
|
||||
'hentaied',
|
||||
'hookuphotshot',
|
||||
'hussiepass',
|
||||
'julesjordan',
|
||||
'kink',
|
||||
'mikeadriano',
|
||||
'mofos',
|
||||
'naughtyamerica',
|
||||
'newsensations',
|
||||
'pervcity',
|
||||
'pornpros',
|
||||
'pornworld',
|
||||
'private',
|
||||
'realitykings',
|
||||
'rickysroom',
|
||||
'score',
|
||||
'teamskeet',
|
||||
'kellymadison',
|
||||
'vixen',
|
||||
'xempire',
|
||||
].map((slug) => networksBySlug[slug]).filter(Boolean);
|
||||
|
||||
const query = ref(pageContext.urlParsed.search.q || null);
|
||||
|
||||
const sections = [
|
||||
!query.value && {
|
||||
label: 'Popular',
|
||||
networks: popularNetworks,
|
||||
},
|
||||
{
|
||||
label: query.value ? 'Results' : 'All networks',
|
||||
networks,
|
||||
},
|
||||
].filter(Boolean);
|
||||
|
||||
// const tags = Object.values(Object.fromEntries(networks.flatMap((entity) => entity.tags).map((tag) => [tag.id, tag])));
|
||||
|
||||
async function search() {
|
||||
navigate('/channels', { q: query.value || undefined }, { redirect: true });
|
||||
}
|
||||
</script>
|
||||
|
||||
<template>
|
||||
<div class="page">
|
||||
<form
|
||||
@@ -67,75 +136,6 @@
|
||||
</div>
|
||||
</template>
|
||||
|
||||
<script setup>
|
||||
import { ref, inject } from 'vue';
|
||||
|
||||
import navigate from '#/src/navigate.js';
|
||||
|
||||
const pageContext = inject('pageContext');
|
||||
|
||||
const { pageProps } = pageContext;
|
||||
const { networks } = pageProps;
|
||||
|
||||
const networksBySlug = Object.fromEntries(networks.map((network) => [network.slug, network]));
|
||||
|
||||
const popularNetworks = [
|
||||
'21sextury',
|
||||
'adulttime',
|
||||
'analvids',
|
||||
'bamvisions',
|
||||
'bang',
|
||||
'bangbros',
|
||||
'blowpass',
|
||||
'brazzers',
|
||||
'digitalplayground',
|
||||
'dogfartnetwork',
|
||||
'dorcel',
|
||||
'elegantangel',
|
||||
'evilangel',
|
||||
'fakehub',
|
||||
'hentaied',
|
||||
'hookuphotshot',
|
||||
'hussiepass',
|
||||
'julesjordan',
|
||||
'kink',
|
||||
'mikeadriano',
|
||||
'mofos',
|
||||
'naughtyamerica',
|
||||
'newsensations',
|
||||
'pervcity',
|
||||
'pornpros',
|
||||
'pornworld',
|
||||
'private',
|
||||
'realitykings',
|
||||
'rickysroom',
|
||||
'score',
|
||||
'teamskeet',
|
||||
'kellymadison',
|
||||
'vixen',
|
||||
'xempire',
|
||||
].map((slug) => networksBySlug[slug]).filter(Boolean);
|
||||
|
||||
const query = ref(pageContext.urlParsed.search.q || null);
|
||||
|
||||
const sections = [
|
||||
!query.value && {
|
||||
label: 'Popular',
|
||||
networks: popularNetworks,
|
||||
},
|
||||
{
|
||||
label: query.value ? 'Results' : 'All networks',
|
||||
networks,
|
||||
},
|
||||
].filter(Boolean);
|
||||
|
||||
// const tags = Object.values(Object.fromEntries(networks.flatMap((entity) => entity.tags).map((tag) => [tag.id, tag])));
|
||||
|
||||
async function search() {
|
||||
navigate('/channels', { q: query.value || undefined }, { redirect: true });
|
||||
}
|
||||
</script>
|
||||
|
||||
<style scoped>
|
||||
.page {
|
||||
flex-grow: 1;
|
||||
|
||||
Reference in New Issue
Block a user