From be94f88192109f4ef85b5395b75100a72c10f3cf Mon Sep 17 00:00:00 2001 From: msramalho <19508417+msramalho@users.noreply.github.com> Date: Fri, 18 Aug 2023 16:21:56 +0100 Subject: [PATCH] support old archive formats and download JSON data --- package.json | 5 ++-- source/manifest.json | 2 +- source/vue/TaskItem.vue | 51 ++++++++++++++++++++++++++++++++++------- 3 files changed, 47 insertions(+), 11 deletions(-) diff --git a/package.json b/package.json index 348960d..ecd37aa 100644 --- a/package.json +++ b/package.json @@ -1,13 +1,14 @@ { "private": true, "scripts": { - "build": "rm -rf distribution && rm -f distribution.zip && API_ENDPOINT=http://134.122.58.133:8004 parcel build source/manifest.json --no-content-hash --no-source-maps --dist-dir distribution --no-cache --detailed-report 0 && zip -r distribution.zip distribution", + "build": "rm -rf distribution && rm -f distribution.zip && API_ENDPOINT=https://auto-archiver-api.bellingcat.com parcel build source/manifest.json --no-content-hash --no-source-maps --dist-dir distribution --no-cache --detailed-report 0 && zip -r distribution.zip distribution", "lint": "run-p lint:*", "lint-fix": "run-p 'lint:* -- --fix'", "lint:css": "stylelint source/**/*.css", "lint:js": "xo", "test": "run-p lint:* build", - "watch": "parcel watch source/manifest.json --dist-dir distribution --no-cache --no-hmr" + "watch": "parcel watch source/manifest.json --dist-dir distribution --no-cache --no-hmr", + "watch-prod": "API_ENDPOINT=https://auto-archiver-api.bellingcat.com parcel watch source/manifest.json --dist-dir distribution --no-cache --no-hmr" }, "browserslist": [ "last 1 Chrome version", diff --git a/source/manifest.json b/source/manifest.json index 0e65d87..76c9a55 100644 --- a/source/manifest.json +++ b/source/manifest.json @@ -1,6 +1,6 @@ { "name": "Auto-archiver extension", - "version": "0.3.1", + "version": "0.3.2", "description": "A gateway to effective archiving of online content, including behind private platforms. ", "homepage_url": "https://github.com/bellingcat/auto-archiver-extension", "manifest_version": 3, diff --git a/source/vue/TaskItem.vue b/source/vue/TaskItem.vue index d3d19e9..5afd2e1 100644 --- a/source/vue/TaskItem.vue +++ b/source/vue/TaskItem.vue @@ -26,24 +26,36 @@