mirror of
https://github.com/hpware/news-analyze.git
synced 2025-06-23 13:04:23 +00:00
The translating system works? ig, maybe it is just me being a idiot this
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
entire time. Also you can toggle now (translating system) also maybe the AI summary system works?
This commit is contained in:
parent
680ae1d987
commit
46197bc4a3
2 changed files with 22 additions and 4 deletions
|
@ -24,6 +24,7 @@ interface associAppWindowInterface {
|
|||
height: string;
|
||||
black: boolean;
|
||||
translatable: boolean;
|
||||
translateState: boolean;
|
||||
}
|
||||
|
||||
interface minAppWindowInterface {
|
||||
|
@ -512,9 +513,12 @@ const openNewsSourcePage = async (slug: string, title: string) => {
|
|||
passedValues.value = null;
|
||||
}, 1000);
|
||||
};
|
||||
const toggleTranslate = (id: string) => {
|
||||
console.log("windowId", id);
|
||||
applyForTranslation.value = true;
|
||||
const toggleTranslate = (windowId: string) => {
|
||||
const windowIndex = activeWindows.value.findIndex((w) => w.id === windowId);
|
||||
if (windowIndex !== -1) {
|
||||
activeWindows.value[windowIndex].translateState =
|
||||
!activeWindows.value[windowIndex].translateState;
|
||||
}
|
||||
};
|
||||
|
||||
const translateAvailable = () => {};
|
||||
|
@ -691,7 +695,7 @@ onMounted(async () => {
|
|||
:values="passedValues"
|
||||
:windows="activeWindows"
|
||||
@closeWindow="closeWindow"
|
||||
:applyForTranslation="applyForTranslation"
|
||||
:applyForTranslation="window.translateState"
|
||||
:windowTranslateState="window.translatable"
|
||||
:notLoggedInState="notLoggedInState"
|
||||
/>
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue