mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Make some basic checking /wo the database for now.
This commit is contained in:
parent
a89fbd4fd7
commit
383ad2e467
3 changed files with 17 additions and 5 deletions
|
@ -76,7 +76,7 @@ const stopDrag = () => {
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
@mousedown="startDrag"
|
@mousedown="startDrag"
|
||||||
class="bg-gray-700 p-2 cursor-move flex justify-between items-center flex-shrink-0 text-white z-[50]"
|
class="bg-gray-700 p-2 cursor-move flex justify-between items-center flex-shrink-0 text-white z-[50] selection:opacity-0"
|
||||||
>
|
>
|
||||||
<h3 class="font-semibold text-white">{{ title }}</h3>
|
<h3 class="font-semibold text-white">{{ title }}</h3>
|
||||||
<div class="flex flex-row gap-1">
|
<div class="flex flex-row gap-1">
|
||||||
|
|
|
@ -464,13 +464,14 @@ watchEffect((cleanupFn) => {
|
||||||
v-else
|
v-else
|
||||||
>
|
>
|
||||||
<!--Menu container-->
|
<!--Menu container-->
|
||||||
<div class="flex flex-row g-2 text-gray-400 z-9999">
|
<div class="flex flex-row g-2 text-gray-400 z-9999 selection:opacity-0">
|
||||||
<button
|
<button
|
||||||
@click="toggleMenu"
|
@click="toggleMenu"
|
||||||
class="w-8 h-8 text-white hover:text-blue-500 transition-all duration-100 flex flex-row"
|
class="w-8 h-8 text-white hover:text-blue-500 transition-all duration-100 flex flex-row"
|
||||||
>
|
>
|
||||||
<ComputerDesktopIcon />
|
<ComputerDesktopIcon />
|
||||||
</button>
|
</button>
|
||||||
|
<!--DO NOT MODIFY THE CLASSES OF THIS |, THIS COULD WORK OR BRAKE I HAVE NO CLUE WHY DOES IT DO THAT, BUT DON'T DO IT.-->
|
||||||
<span class="ml-1 mr-2 text-[20px]">|</span>
|
<span class="ml-1 mr-2 text-[20px]">|</span>
|
||||||
<!--navbar icons for min and max application window-->
|
<!--navbar icons for min and max application window-->
|
||||||
<button
|
<button
|
||||||
|
@ -498,12 +499,14 @@ watchEffect((cleanupFn) => {
|
||||||
<div class="flex flex-row gap-5">
|
<div class="flex flex-row gap-5">
|
||||||
<NuxtLink :to="localePath('/app/desktop?changelang=1', t('nextlang'))">
|
<NuxtLink :to="localePath('/app/desktop?changelang=1', t('nextlang'))">
|
||||||
<button
|
<button
|
||||||
class="p-1 hover:text-blue-200 transition-all duration-100 hover:bg-gray-500 rounded"
|
class="p-1 hover:text-blue-200 transition-all duration-100 hover:bg-gray-500 rounded selection:opacity-0"
|
||||||
>
|
>
|
||||||
{{ t("localeflag") }}
|
{{ t("localeflag") }}
|
||||||
</button>
|
</button>
|
||||||
</NuxtLink>
|
</NuxtLink>
|
||||||
<div class="text-center align-middle justify-center text-white">
|
<div
|
||||||
|
class="text-center align-middle justify-center text-white selection:opacity-0 hover:cursor-default"
|
||||||
|
>
|
||||||
{{ currentDate }}
|
{{ currentDate }}
|
||||||
</div>
|
</div>
|
||||||
</div>
|
</div>
|
||||||
|
@ -515,7 +518,7 @@ watchEffect((cleanupFn) => {
|
||||||
leave-active-class="animate__animated animate__fadeOutUp animate_fast03"
|
leave-active-class="animate__animated animate__fadeOutUp animate_fast03"
|
||||||
>
|
>
|
||||||
<div
|
<div
|
||||||
class="m-2 p-2 bg-gray-800 shadow-lg w-fit rounded-[10px] v-9998"
|
class="m-2 p-2 bg-gray-800 shadow-lg w-fit rounded-[10px] v-9998 selection:opacity-0"
|
||||||
v-if="menuOpen"
|
v-if="menuOpen"
|
||||||
>
|
>
|
||||||
<div v-for="item in menuItems" :key="item.name" class="">
|
<div v-for="item in menuItems" :key="item.name" class="">
|
||||||
|
|
9
server/api/user/checkcookie.ts
Normal file
9
server/api/user/checkcookie.ts
Normal file
|
@ -0,0 +1,9 @@
|
||||||
|
// This should be hooked up to a database soon.
|
||||||
|
import postgres from "~/server/components/postgres";
|
||||||
|
export default defineEventHandler(async (event) => {
|
||||||
|
const loginCookie = getCookie(event, "session");
|
||||||
|
return {
|
||||||
|
auth: "true",
|
||||||
|
user: "testing",
|
||||||
|
};
|
||||||
|
});
|
Loading…
Add table
Add a link
Reference in a new issue