diff --git a/src/main.tsx b/src/main.tsx index d0fefcb..bb09257 100644 --- a/src/main.tsx +++ b/src/main.tsx @@ -20,8 +20,8 @@ if (process.env.NODE_ENV !== 'development') { } if (!chrome.runtime || !chrome.storage) { - document.body.innerHTML = 'Error: Invalid working environment. Make sure you run it inside a Chrome extension!'; - throw new Error('Invalid working environment. Make sure you run it inside a Chrome extension!'); + document.body.innerHTML = 'Error: Invalid working environment. Make sure it is running inside a Chrome extension!'; + throw new Error('Invalid working environment. Make sure it is running inside a Chrome extension!'); } createRoot(document.getElementById('luckit_app')!).render( diff --git a/src/screens/About.tsx b/src/screens/About.tsx index 0b10588..73bd647 100644 --- a/src/screens/About.tsx +++ b/src/screens/About.tsx @@ -13,7 +13,7 @@ export default function AboutScreen() {

luckit

- unofficial Locket extension to save your friends' moments. + an unofficial Locket extension to show live photos from your friends.

version: {VERSION} @@ -23,11 +23,11 @@ export default function AboutScreen() {

Disclaimer

- This project is not affiliated with Locket or Locket Labs, Inc in anyway. By using this extension, you acknowledge that it is an unofficial Locket client, and you accept the risk that your account may be banned. + This project is not affiliated with Locket or Locket Labs, Inc in any way. By using this extension, you acknowledge that it is an unofficial Locket client, and you accept the risk that your account may be banned.
- If you are not comfortable with this or you don't know what you are doing, please do not use this extension and remove it from your browser. + If you're unsure about this or you don't know what you are doing, please refrain from using this extension.
- I (creator of this extension) will not be held responsible for any consequences. + I (luckit's creator) won't be held responsible for any consequences.

@@ -43,4 +43,4 @@ export default function AboutScreen() {
) -} \ No newline at end of file +} diff --git a/src/screens/Global.tsx b/src/screens/Global.tsx index cf249d5..de6fb43 100644 --- a/src/screens/Global.tsx +++ b/src/screens/Global.tsx @@ -62,14 +62,14 @@ export default function GlobalScreen() { chrome.runtime.sendMessage({ clearAllMoments: true }); }} className={menuItemClassName}> - Clear all saved moments + Clear gallery { chrome.runtime.sendMessage({ actionLogout: true }); mainCtx.setLoggedIn(false); }} className={menuItemClassName}> - Logout + Log out setSection(2)} className={menuItemClassName}> @@ -79,7 +79,7 @@ export default function GlobalScreen() { setSection(1)} className={menuItemClassName}> - Saved moments + Gallery setSection(3)} className={menuItemClassName}> @@ -123,4 +123,4 @@ export default function GlobalScreen() { ) -} \ No newline at end of file +} diff --git a/src/screens/Login.tsx b/src/screens/Login.tsx index 8dae646..ea062b6 100644 --- a/src/screens/Login.tsx +++ b/src/screens/Login.tsx @@ -28,7 +28,7 @@ export default function LoginScreen() { const user = await API.getAccountInfo(res.idToken); if (!user.users[0]) { - setError("Cannot get your info, please try again"); + setError("Something went wrong, please try again"); setLoading(false); return; } @@ -43,17 +43,17 @@ export default function LoginScreen() { }); return; } - setError("Cannot login, please try again"); + setError("Unable to login!"); setLoading(false); } catch (e: any) { const error = e as ResponseError; setLoading(false); setError( error.error.message === 'INVALID_PASSWORD' ? - 'Invalid password' : error.error.message === "EMAIL_NOT_FOUND" ? "Email not found" : + 'Invalid password' : error.error.message === "EMAIL_NOT_FOUND" ? "We couldn't find your email, check again" : error.error.message === "INVALID_EMAIL" ? "Invalid email" : error.error.message === "USER_DISABLED" ? "User is disabled" : - "An error occurred (" + error.error.message + ")"); + "We encountered an error: (" + error.error.message + ")"); } }, [email, mainCtx, password]); @@ -67,22 +67,22 @@ export default function LoginScreen() {
-

Before you login...

-

This project is not affiliated with Locket or Locket Labs, Inc in anyway. By using this extension, you acknowledge that it is an unofficial Locket client, and you accept the risk that your account may be banned. +

Before you proceed...

+

This project is not affiliated with Locket or Locket Labs, Inc in any way. By using this extension, you acknowledge that it is an unofficial Locket client, and you accept the risk that your account may be banned.
- If you are not comfortable with this or you don't know what you are doing, please do not use this extension and remove it from your browser. + If you are unsure about this or you don't know what you are doing, please refrain from using this extension.
- I (creator of this extension) will not be held responsible for any consequences.

+ I (luckit's creator) will not be held responsible for any consequences.

@@ -94,7 +94,7 @@ export default function LoginScreen() {

welcome to luckit

- login to your Locket account to continue. + please login to your Locket account.

@@ -133,4 +133,4 @@ export default function LoginScreen() { ) -} \ No newline at end of file +} diff --git a/src/screens/Uploader.tsx b/src/screens/Uploader.tsx index a0e15a9..2aeba7d 100644 --- a/src/screens/Uploader.tsx +++ b/src/screens/Uploader.tsx @@ -46,7 +46,7 @@ export default function UploaderScreen() { ok(false); }); }) === false) { - setError("Cannot get user info"); + setError("Error getting user info"); setLoading(false); return; } @@ -54,7 +54,7 @@ export default function UploaderScreen() { try { const newToken = (await API.refreshToken(refreshToken)); if (!newToken) { - setError("Cannot refresh token"); + setError("Error refreshing token"); setLoading(false); return; } @@ -88,7 +88,7 @@ export default function UploaderScreen() { }); if (!gatherinbgUploadEnpoint.ok) { - setError("Cannot upload image due to server error"); + setError("Failed to upload (server error)"); setLoading(false); return; } @@ -96,7 +96,7 @@ export default function UploaderScreen() { const uploadEnpoint = gatherinbgUploadEnpoint.headers.get("X-Goog-Upload-URL"); if (!uploadEnpoint) { - setError("Cannot upload image due to invalid enpoint"); + setError("Failed to upload (invalid enpoint)"); setLoading(false); return; } @@ -115,7 +115,7 @@ export default function UploaderScreen() { }); if (!uploadImage.ok) { - setError("Cannot upload image due to server error"); + setError("Failed to upload (server error)"); setLoading(false); return; } @@ -132,7 +132,7 @@ export default function UploaderScreen() { }); if (!getUrl.ok) { - setError("Cannot get image url"); + setError("Failed to fetch image URL"); setLoading(false); return; } @@ -140,7 +140,7 @@ export default function UploaderScreen() { const imgToken = (await getUrl.json()).downloadTokens; if (!imgToken) { - setError("Cannot get image url"); + setError("Failed to fetch image URL"); setLoading(false); return; } @@ -150,17 +150,17 @@ export default function UploaderScreen() { const createPost = await API.createPost(finalImageUrl, caption); if (!createPost) { - setError("Cannot create post"); + setError("Failed to post"); setLoading(false); return; } - setError("Image uploaded successfully!"); + setError("Done!"); setLoading(false); handleCancel(); } catch (e: any) { console.error(e); - setError("Cannot upload image, please see console for more info"); + setError("Failed to upload, check details"); setLoading(false); } }, [caption, fileBuffer]); @@ -190,7 +190,7 @@ export default function UploaderScreen() { const ctx = canvas.getContext('2d'); if (!ctx) { - setError('Cannot convert image to WebP [CANVAS_NULLED]'); + setError('Error converting image to WebP [CANVAS_NULLED]'); setLoading(false); handleCancel(); return; @@ -203,7 +203,7 @@ export default function UploaderScreen() { if (blob) { setFileBuffer(blob); } else { - setError('Cannot convert image to WebP'); + setError('Error converting image to WebP'); handleCancel(); } setLoading(false); @@ -232,12 +232,12 @@ export default function UploaderScreen() { onChange={(e) => { if (e.target.files && e.target.files[0]) { if (e.target.files[0].size > 10 * 1024 * 1024) { - setError("File size is too large"); + setError("Image size exceeded limit"); handleCancel(); return; } if (e.target.files[0].type !== "image/jpeg" && e.target.files[0].type !== "image/png") { - setError("File is not supported"); + setError("Unsupported file"); handleCancel(); return; } @@ -261,8 +261,8 @@ export default function UploaderScreen() {
-

drag and drop or click to select image

-

only support jpeg and png and below 10mb

+

drag and drop or click to choose image

+

supports jpeg/png below 10MB

}
@@ -279,4 +279,4 @@ export default function UploaderScreen() {
) -} \ No newline at end of file +}