mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
Reinstall dev env & Update the news page to include translating
functions & Update settings & sendUserChanges system. I also updated *some* README stuff. & Update tos & privacy policy pages.
This commit is contained in:
parent
944caa03e8
commit
1e4e13f1b7
8 changed files with 184 additions and 263 deletions
|
@ -22,7 +22,6 @@ const userData = ref({
|
|||
requested_action: "",
|
||||
email: "",
|
||||
avatarURL: "",
|
||||
firstName: "",
|
||||
});
|
||||
const enteruseremail = ref();
|
||||
onMounted(async () => {
|
||||
|
@ -93,21 +92,12 @@ try {
|
|||
} catch (e) {
|
||||
console.log(e);
|
||||
}
|
||||
/**
|
||||
*
|
||||
* userAccount: fetchViaSQL[0].username,
|
||||
requested_action: "CONTINUE",
|
||||
email: fetchViaSQL[0].email,
|
||||
avatarURL: fetchViaSQL[0].avatarurl,
|
||||
firstName: fetchViaSQL[0].firstName,
|
||||
*/
|
||||
|
||||
const actions = [
|
||||
{ name: "NAME", sendValue: enterFirstName.value },
|
||||
{ name: "USER_EMAIL", sendValue: enteruseremail.value },
|
||||
];
|
||||
|
||||
const submitChangeAction = async (action: string) => {
|
||||
const actions = [
|
||||
{ name: "NAME", sendValue: enterFirstName.value },
|
||||
{ name: "USER_EMAIL", sendValue: enteruseremail.value },
|
||||
];
|
||||
|
||||
const actionMatch = actions.find((a) => a.name === action);
|
||||
if (!actionMatch) {
|
||||
console.error("Invalid action type");
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue