diff --git a/webapp/_webapp/package.json b/webapp/_webapp/package.json index 36700900..5630d99b 100644 --- a/webapp/_webapp/package.json +++ b/webapp/_webapp/package.json @@ -6,11 +6,13 @@ "scripts": { "dev": "nodemon --watch src --ext ts,js,tsx,jsx,json --exec 'npm run build'", "dev:chat": "vite dev --config vite.config.dev.ts", - "build": "tsc -b && npm run _build:default && npm run _build:background && npm run _build:intermediate", + "build": "tsc -b && npm run _build:default && npm run _build:background && npm run _build:intermediate && npm run _build:settings && npm run _build:popup", "_build": "vite build", "_build:default": "VITE_CONFIG=default npm run _build", "_build:background": "VITE_CONFIG=background npm run _build", "_build:intermediate": "VITE_CONFIG=intermediate npm run _build", + "_build:settings": "VITE_CONFIG=settings npm run _build", + "_build:popup": "VITE_CONFIG=popup npm run _build", "lint": "eslint .", "format": "prettier --write .", "build:local:chrome": "bash -c 'source ./scripts/build-local-chrome.sh'", diff --git a/webapp/_webapp/public/images/locator.png b/webapp/_webapp/public/images/locator.png new file mode 100644 index 00000000..3fabbdcd Binary files /dev/null and b/webapp/_webapp/public/images/locator.png differ diff --git a/webapp/_webapp/public/popup.html b/webapp/_webapp/public/popup.html index 68a152fe..3ec37553 100644 --- a/webapp/_webapp/public/popup.html +++ b/webapp/_webapp/public/popup.html @@ -3,112 +3,10 @@
-
+
+ + Self-hosted Overleaf?{" "} + { + e.preventDefault(); + openSettingsPage(); + }} + > + Allow PaperDebugger access here. + +
+{children}
+
+ Example: *://*.overleaf.com/*{" "}
+
+ Example: *://sharelatex.gwdg.de/*{" "}
+
Loading permissions...
; + } + + if (permissions.length === 0) { + return ( +No permissions granted yet.
+Please request permission for the website you want to use.
++ Add your self-hosted Overleaf domain so PaperDebugger can interact with it. +
+