mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 21:14:23 +00:00
Add .dev.env & update basic logoutuser.ts & made a basic blur login
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
Some checks are pending
Build and Push Docker Image / build-and-push (push) Waiting to run
system & also normal logging in broke :(
This commit is contained in:
parent
b8438f7f33
commit
4d49554a0e
7 changed files with 85 additions and 13 deletions
|
@ -1,6 +1,16 @@
|
|||
<script setup lang="ts">
|
||||
// Check if the env is in development
|
||||
const addForceRefreshButtonInWindow = ref(false);
|
||||
const nuxtdeven1v = process.env.NUXT_DEV_ENV?.toLowerCase() === "true";
|
||||
onMounted(() => {
|
||||
addForceRefreshButtonInWindow.value = nuxtdeven1v || false;
|
||||
});
|
||||
const forceRefresh = () => {
|
||||
window.location.reload();
|
||||
};
|
||||
|
||||
import { useThrottleFn } from "@vueuse/core";
|
||||
import { XIcon, MinusIcon } from "lucide-vue-next";
|
||||
import { XIcon, MinusIcon, RefreshCcwDotIcon } from "lucide-vue-next";
|
||||
|
||||
const props = defineProps<{
|
||||
title: string;
|
||||
|
@ -85,6 +95,13 @@ const stopDrag = () => {
|
|||
{{ title }}
|
||||
</h3>
|
||||
<div class="flex flex-row gap-1">
|
||||
<button
|
||||
@click="forceRefresh"
|
||||
class="p-1 hover:bg-gray-300 dark:hover:bg-gray-600 rounded transition duration-200"
|
||||
v-if="addForceRefreshButtonInWindow"
|
||||
>
|
||||
<RefreshCcwDotIcon />
|
||||
</button>
|
||||
<button
|
||||
@click="emit('min')"
|
||||
class="p-1 hover:bg-gray-300 dark:hover:bg-gray-600 rounded transition duration-200"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue