mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
feat: update environment variables, enhance login functionality with password hashing, and improve UI components for better user experience
This commit is contained in:
parent
26d3998a70
commit
98869d5fce
10 changed files with 105 additions and 29 deletions
|
@ -13,9 +13,10 @@ const emit = defineEmits(["close"]);
|
|||
|
||||
const isDragging = ref(false);
|
||||
const position = ref({
|
||||
x: props.initialX || Math.floor(window.innerWidth / 2) - Math.random() * 200,
|
||||
y: props.initialY || Math.floor(window.innerHeight / 2) - Math.random() * 10,
|
||||
x: props.initialX || Math.floor(window.innerWidth / 2 - (parseInt(props.width || '400') / 2)),
|
||||
y: props.initialY || Math.floor(window.innerHeight / 2 - (parseInt(props.height || '300') / 2)),
|
||||
});
|
||||
|
||||
const offset = ref({ x: 0, y: 0 });
|
||||
|
||||
const doDrag = useThrottleFn((e: MouseEvent) => {
|
||||
|
|
|
@ -14,7 +14,7 @@ const submitUserPassword = async () => {
|
|||
},
|
||||
body: JSON.stringify({
|
||||
username: userAccount.value,
|
||||
pcssword: password,
|
||||
password: password,
|
||||
}),
|
||||
})
|
||||
const res = await sendData.json();
|
||||
|
@ -45,7 +45,7 @@ const submitUserPassword = async () => {
|
|||
|
||||
<input
|
||||
type="text"
|
||||
placeholder="Your Email"
|
||||
placeholder="Username"
|
||||
class="mb-2 p-2 border rounded"
|
||||
v-model="userAccount"
|
||||
/>
|
||||
|
|
|
@ -13,7 +13,7 @@ const { data: source, pending, error } = await useFetch("/api/getData/fetchSourc
|
|||
</script>
|
||||
<template>
|
||||
<div >
|
||||
<div v-for="item in source.data" :key="item.id">
|
||||
<div v-for="item in source?.data" :key="item.id">
|
||||
<h1>{{ item.title }}</h1>
|
||||
<span>{{ item.description }}</span>
|
||||
<a :href="item.url">{{ item.url }}</a>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue