From edc032323b17ddf1f41054c5257ec7f8769fb5f1 Mon Sep 17 00:00:00 2001 From: Sahib Singh Date: Sat, 19 Oct 2024 06:43:41 +0530 Subject: [PATCH] Add files via upload --- config.js | 9 ++- manifest.json | 10 +-- popup.html | 7 +++ popup.js | 166 ++++++++++++++++++++++++++++++++++++++++++-------- 4 files changed, 160 insertions(+), 32 deletions(-) diff --git a/config.js b/config.js index ccabad7..ed3fce9 100644 --- a/config.js +++ b/config.js @@ -1,4 +1,11 @@ export const CONFIG = { - SERVER_URL: 'https://summariser-test-f7ab30f38c51.herokuapp.com/summarize' + SERVER_URL: 'https://summariser-test-f7ab30f38c51.herokuapp.com', + ENDPOINTS: { + SUMMARIZE: '/summarize', + USER_ACTIVITY: '/user_activity', + TTS: '/tts', + GET_TTS_ENDPOINT: '/get_tts_endpoint', + GET_FREE_SUMMARIES_COUNT: '/get_free_summaries_count' + } }; diff --git a/manifest.json b/manifest.json index bff765f..24c70c4 100644 --- a/manifest.json +++ b/manifest.json @@ -1,24 +1,20 @@ { "manifest_version": 3, "name": "Polirizer", - "version": "2.1.4", + "version": "2.5.1", "description": "Summarize privacy policies using AI", "permissions": [ "storage" ], - "content_security_policy": { - "extension_pages": "script-src 'self'; object-src 'self'" - }, "host_permissions": [ "https://summariser-test-f7ab30f38c51.herokuapp.com/", "https://*/*", - "", "https://api.openai.com/" ], "content_scripts": [ { "matches": [""], - "js": ["purify.min.js", "popup.js"] + "js": ["purify.min.js"] } ], "background": { @@ -42,7 +38,7 @@ }, "web_accessible_resources": [ { - "resources": ["node_modules/ldrs/dist/*", "loader-setup.js"], + "resources": ["config.js"], "matches": [""] } ] diff --git a/popup.html b/popup.html index f35e07f..fa19843 100644 --- a/popup.html +++ b/popup.html @@ -83,6 +83,12 @@ overflow: auto; background-color: rgba(0,0,0,0.4); } + #userInfo { + font-size: 12px; + color: #666; + margin-bottom: 10px; + text-align: right; + } .modal-content { background-color: #fefefe; margin: 35px auto; @@ -607,6 +613,7 @@

Polirizer

+