Nick Sweeting
265bcc0264
fix lint errors2
2021-02-16 16:29:41 -05:00
Nick Sweeting
6f0eec92eb
fix lint errors
2021-02-16 16:26:48 -05:00
Nick Sweeting
05e891632c
add snapshot_id to Link and uuid to ArchiveResult
2021-02-16 15:54:27 -05:00
Nick Sweeting
8b236b9367
cache dir size, snapshot icons, tags str, and title in django cache
2021-02-16 15:49:29 -05:00
Nick Sweeting
bdf1b102be
load ArchiveResults from orphaned links history during init
2021-02-16 06:20:05 -05:00
Nick Sweeting
988a10a9f6
fix warc path in snapshot_icons
2021-02-16 06:18:05 -05:00
Nick Sweeting
82de67db34
fix missing/outdated template variables
2021-02-16 01:23:31 -05:00
Nick Sweeting
33d180afe7
allow filtering snapshots by timestamp in list, update, and remove cmds
2021-02-15 20:48:35 -05:00
Nick Sweeting
78463c243a
remove unused GIT_SHA config option
2021-02-15 20:42:33 -05:00
Nick Sweeting
6705354e57
fix assertion
2021-02-08 23:24:48 -05:00
Nick Sweeting
a49884ade8
fix emptystrings in cmd_version causing exception
2021-02-08 23:22:02 -05:00
Nick Sweeting
534ead2440
use the db exclusively for icons instead of hammering filesystem
2021-02-01 02:18:13 -05:00
Nick Sweeting
923f517a8f
minor fixes
2021-02-01 02:17:54 -05:00
Nick Sweeting
54c5331693
check for output existance when rendering files icons
2021-01-30 22:04:14 -05:00
Nick Sweeting
15e87353bd
only show archive.org if enabled
2021-01-30 22:03:59 -05:00
Nick Sweeting
24e24934f7
add headers.json and fix relative singlefile path resolving for sonic
2021-01-30 21:59:34 -05:00
Nick Sweeting
d6de04a83a
fix lgtm errors
2021-01-30 06:07:35 -05:00
Nick Sweeting
cc80ceb0a2
fix icons in public index
2021-01-30 05:47:55 -05:00
Nick Sweeting
1ce0eca217
add trailing slashes to canonical paths
2021-01-30 05:47:55 -05:00
Nick Sweeting
a98298103d
cleanup templates and views
2021-01-30 05:47:55 -05:00
Nick Sweeting
f6c3683ab8
fix snapshot favicon loading spinner height
2021-01-29 00:15:32 -05:00
Nick Sweeting
5c54bcc1f3
fix files icons greying out on public index
2021-01-28 22:57:12 -05:00
Nick Sweeting
f0040580c8
fix files icons escaping
2021-01-28 22:27:17 -05:00
Preston Maness
1810426774
Remove now-unused mark_safe import
2021-01-25 21:16:06 -06:00
Preston Maness
b647581115
Update archivebox/index/html.py
...
mark_safe is dangerous, as the URL's filename could have malicious HTML fragments in it.
Co-authored-by: Nick Sweeting <git@sweeting.me>
2021-01-25 20:47:57 -06:00
Preston Maness
1989275944
Fix issue #617 by using mark_safe in combination with format_html
...
I have no experience with Django, so all I'm really going off of is this
stackoverflow
https://stackoverflow.com/a/64498319
which cited this bit of Django documentation:
https://docs.djangoproject.com/en/3.1/ref/utils/#django.utils.html.format_html
After using this method, I no longer get the 500 error or KeyError
exception, and can browse the local server and interact with the single
entry in it (the problematic URL in ArchiveBox#617 with curly braces).
Whether this is the "right" method or not, I have no idea. But it is at
least a start.
2021-01-23 20:32:56 -06:00
Tim Gates
7bf63d91ff
docs: fix simple typo, timstamp -> timestamp
...
There is a small typo in archivebox/index/__init__.py.
Should read `timestamp` rather than `timstamp`.
2021-01-06 20:03:40 +02:00
Cristian
57d1a3d4e5
refactor: Remove setup_django from html.py
2020-12-11 17:49:16 -05:00
Cristian
ce53b0220c
refactor: Remove setup_django from index
2020-12-11 17:36:31 -05:00
Cristian
a28547cbca
refactor: Remove get_empty_snapshot queryset function and generate it directly
2020-12-11 16:27:15 -05:00
Nick Sweeting
e90cf05141
fix lint errors
2020-12-11 16:51:11 +02:00
Cristian
9aac09a5e1
feat: Patch setup_django so we can use an inmemory db in specific commands
2020-12-08 18:42:25 -05:00
Cristian
f6c73f9aeb
fix: Issue with oneshot command
2020-12-08 18:42:25 -05:00
Nick Sweeting
6ac48d7c35
tweak warning msg
2020-12-06 02:11:36 +02:00
JDC
4eeedae815
Exception handling for indexing and searching
2020-12-06 01:13:39 +02:00
JDC
0f7dba07df
feat: add search filter-type to list command
2020-12-06 01:13:37 +02:00
JDC
b1f70b2197
Initial implementation
2020-12-06 01:12:45 +02:00
Nick Sweeting
7bc13204e6
Merge branch 'master' into v0.5.0
2020-12-05 17:45:16 -05:00
Nick Sweeting
00dfe2d449
Merge branch 'v0.5.0' into cleanup
2020-12-04 20:40:24 -05:00
jdcaballerov
54b25d9a81
Linting
2020-12-03 15:59:45 -05:00
jdcaballerov
d4bca80b50
Use uppercase for constants
2020-12-03 15:44:59 -05:00
jdcaballerov
a1fba9887d
Remove write_html_main_index
2020-12-03 09:25:38 -05:00
jdcaballerov
367b12ba40
Replace legacy templates for django templates
2020-12-03 09:16:18 -05:00
Hawken Rives
7299b1f5ae
fix "inconsisntencies" typo in error message
2020-12-02 16:28:26 -06:00
Cristian
7008f9b735
feat: move import
2020-11-28 13:11:15 -05:00
Cristian
648b4c8aab
feat: Remove unused function write_json_main_index
2020-11-28 13:02:39 -05:00
Nick Sweeting
a846916b82
remove unused argument
2020-11-28 12:38:15 -05:00
Cristian
fa5de72f9f
refactor: Move indexing logic out of logging module
2020-11-28 12:34:40 -05:00
Nick Sweeting
bee1f3e263
fix lint errors
2020-11-28 04:09:59 -05:00
Nick Sweeting
104553489f
remove redundant utils file
2020-11-28 02:12:27 -05:00
Nick Sweeting
84507b68b5
add legacy code warning to schema.py
2020-11-28 02:03:40 -05:00
Nick Sweeting
7fdea91311
fix static html num_outputs info
2020-11-28 02:01:53 -05:00
Nick Sweeting
c9162a6d09
remove finished/not finished spinners
2020-11-28 01:07:02 -05:00
Nick Sweeting
1b22f8eeef
Merge pull request #515 from cdvv7788/POC-setup-django-on-init
2020-11-27 23:56:37 -05:00
Nick Sweeting
0e2ccbc10d
update urls to new repo path
2020-11-23 02:06:46 -05:00
JDC
cbb3d04c12
Allow list filtering by tag name
2020-11-13 12:06:12 -05:00
Nick Sweeting
22fb9c2ad7
tweak icons
2020-10-31 19:32:43 -04:00
Nick Sweeting
cafe35c595
show pending in light font
2020-10-31 16:33:31 -04:00
Cristian
e1d0b8bce7
feat: Initialize django at the beginning
2020-10-26 07:45:21 -05:00
Cristian
572b46cecf
lint: Remove unused imports
2020-10-23 06:45:56 -05:00
Cristian
ae1484b8bf
feat: Remove index.json and index.html generation from the regular process
2020-10-23 06:45:56 -05:00
Cristian Vargas
a850b4a9d9
Merge branch 'master' into tags
2020-10-20 08:23:25 -05:00
Cristian
62c78e1d10
refactor: Remove django-taggit and replace it with a local tags setup
2020-10-12 13:47:03 -05:00
Angel Rey
ad04fb5300
Replaced os.path in init index
2020-10-02 15:46:39 -05:00
Angel Rey
78f7062761
Replaced os.path in html.py
2020-10-02 15:46:39 -05:00
Angel Rey
8b03c37fbb
Replaced os.path in json.py
2020-10-02 15:46:39 -05:00
Angel Rey
9264ad88e0
Fixed string casting
2020-10-02 15:46:39 -05:00
Angel Rey
7d513b9b19
Replaced os.path in schema.py
2020-10-02 15:46:39 -05:00
Angel Rey
4581ea956f
Fixed empty tags
2020-09-24 15:34:23 -05:00
Angel Rey
533ae7413c
Removed comments
2020-09-24 15:34:23 -05:00
Angel Rey
e06d3f9128
Fixed Link schema
2020-09-24 15:34:23 -05:00
Angel Rey
45775c607c
Fixed empty tags
2020-09-24 15:34:23 -05:00
Angel Rey
f26c0c6cd8
Fix serialization
2020-09-24 15:34:23 -05:00
Angel Rey
62c9028212
Improved tags
2020-09-24 15:34:23 -05:00
ttimasdf
2bf496e7e9
feat: Add mercury-parsed content to summary page
2020-09-22 18:44:12 -05:00
Cristian
b18bbf8874
test: Fix tests post-rebase
2020-09-17 09:09:52 -05:00
apkallum
b99784b919
pathlib with / syntax for config, index
2020-09-17 09:09:52 -05:00
apkallum
594d9e49ce
first attempt to migrate to Pathlib
2020-09-17 09:09:52 -05:00
Cristian Vargas
5e9b3099c6
Update fix_duplicate_links_in_index docstring
...
Co-authored-by: Nick Sweeting <git@sweeting.me>
2020-09-15 08:05:46 -05:00
Cristian
f55153eab3
feat: Update update
command to work with querysets
2020-09-15 08:05:46 -05:00
Cristian
fe9604a772
feat: Add tests for remove command
2020-09-15 08:05:46 -05:00
Cristian
a8ed72501d
feat: Refactor remove command to use querysets
2020-09-15 08:05:46 -05:00
Cristian
be520d137a
feat: Refactor add method to use querysets
2020-09-15 08:05:46 -05:00
Cristian
be0dff8126
feat: Add tests to refactored init command
2020-09-15 08:05:46 -05:00
Cristian
404f333e17
feat: Refactor get_invalid_folders
to work with a queryset instead of a list of links
2020-09-15 08:05:46 -05:00
Cristian
6b4b7127b4
feat: Remove unused imports
2020-09-15 08:05:46 -05:00
Cristian
b8585dd92e
feat: load_main_index returns a queryset now
2020-09-15 08:05:46 -05:00
Cristian
885ff50449
feat: Add html export to list command
2020-09-15 08:05:46 -05:00
Cristian
c16fdf1b47
feat: Update data folder check
2020-09-15 08:05:46 -05:00
Cristian
874403e667
feat: Remove patch_main_index
2020-09-15 08:05:46 -05:00
Cristian
31343c1367
feat: Update extractors and add command to use sql index as source of truth
2020-09-15 08:05:46 -05:00
Cristian
02f36b2096
feat: Replace index.json with index.sql as the main index in init
2020-09-15 08:05:46 -05:00
Nick Sweeting
d803481bd8
better folder list column output
2020-08-18 18:46:21 -04:00
Nick Sweeting
e87f1d57a3
fix linters
2020-08-18 09:22:12 -04:00
Nick Sweeting
430d51756b
show archive dir size in link details page
2020-08-18 09:17:37 -04:00
Nick Sweeting
f18d92570e
wip attempt to fix timestamp unique constraint errors
2020-08-18 08:30:09 -04:00
Nick Sweeting
15efb2d5ed
new generic_html parser for extracting hrefs
2020-08-18 08:29:05 -04:00
Nick Sweeting
5f84a7bc6e
better handle the case where json index lags behind sql index
2020-08-18 08:13:13 -04:00
Nick Sweeting
77d2f08a5c
show more info in merge conflict error message
2020-08-18 08:12:35 -04:00
Nick Sweeting
6e142e3531
match existing snapshots on url only, ignoring timestamp
2020-08-18 04:39:04 -04:00