From 1e04c878755daf878024838dc5bb8f73a836c2b6 Mon Sep 17 00:00:00 2001 From: Lukas Seyfarth Date: Fri, 21 Jun 2024 21:28:08 +0800 Subject: [PATCH] globalseo --- README.md | 24 +- browser.js | 92 ++-- dev.md | 4 +- globalseo.css | 521 ++++++++++++++++++ index.js | 177 +++--- npm.md | 6 +- package-lock.json | 489 +++++++++++++--- package.json | 10 +- test.html | 14 +- utils/configs.js | 82 +-- utils/debounce.js | 20 +- utils/languages/fetchLanguageList.js | 20 +- utils/languages/getSelectedLanguage.js | 32 +- ...WeployLanguagesList.js => languageList.js} | 4 +- utils/selector/createLanguageSelect.js | 150 +++-- utils/selector/icons.js | 8 +- utils/selector/renderSelectorState.js | 72 +++ utils/selector/renderWeploySelectorState.js | 46 -- utils/selector/valueDisplay.js | 19 + utils/selector/weployValueDisplays.js | 19 - utils/translation/extractTextNodes.js | 17 +- .../translation/getTranslationCacheFromCDN.js | 10 +- .../getTranslationCacheFromCloudflare.js | 2 +- .../translation/getTranslationCacheFromKV.js | 8 +- utils/translation/getTranslationsFromAPI.js | 26 +- webpack.config.js | 14 +- webpack.config.old.js | 88 +++ weploy.css | 259 --------- 28 files changed, 1464 insertions(+), 769 deletions(-) create mode 100644 globalseo.css rename utils/languages/{allWeployLanguagesList.js => languageList.js} (97%) create mode 100644 utils/selector/renderSelectorState.js delete mode 100644 utils/selector/renderWeploySelectorState.js create mode 100644 utils/selector/valueDisplay.js delete mode 100644 utils/selector/weployValueDisplays.js create mode 100644 webpack.config.old.js delete mode 100644 weploy.css diff --git a/README.md b/README.md index 2bec790..a65ba7f 100644 --- a/README.md +++ b/README.md @@ -1,9 +1,9 @@ -Enhance your website with GPT-4 powered translations. For more details, visit our integration guides: [weploy.ai/integration](https://www.weploy.ai/integration). +Enhance your website with GPT-4 powered translations. For more details, visit our integration guides: [globalseo.ai/integration](https://www.globalseo.ai/integration). ## About the Integration -To set up Weploy, all you need to do is add a custom code to the start of the body tag and embed a code for the language switcher. Additionally, ensure you have completed the following steps: +To set up Globalseo, all you need to do is add a custom code to the start of the body tag and embed a code for the language switcher. Additionally, ensure you have completed the following steps: -- Sign up at https://app.weploy.ai. +- Sign up at https://app.globalseo.ai. - Create a project and select the languages into which you want to translate your website. - Copy the generated HTML code. - Save the project. @@ -13,10 +13,10 @@ To set up Weploy, all you need to do is add a custom code to the start of the bo #### 1. Insert the Script Place the following script inside your tag ```html - +