feat: update environment variables, enhance login functionality with password hashing, and improve UI components for better user experience

This commit is contained in:
yuanhau 2025-05-12 14:45:02 +08:00
parent 26d3998a70
commit 98869d5fce
10 changed files with 105 additions and 29 deletions

View file

@ -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) => {