Nick Sweeting
3eaf580fc0
Merge branch 'dev' into link-removal2
2021-02-01 02:46:57 -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
b7273a07e5
Merge branch 'dev' into link-removal2
2021-01-30 05:51:39 -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
1fe95474c2
Merge branch 'dev' into link-removal2
2021-01-30 03:43:46 -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
Cristian
91f543ff8d
lint: Remove unused imports around the app
2021-01-19 12:18:48 -05:00
Cristian
891dd3b8a9
fix: Refactor html functionality
2021-01-18 09:38:19 -05:00
Cristian
e403d07a88
fix: Restore html functionality
2021-01-18 09:10:07 -05:00
Cristian
ce5979de45
test: Update more init_tests that were failing because of wording or Link->Snapshot changes
2021-01-17 10:03:26 -05:00
Cristian
1ce6130202
fix: json index was missing base_url
field
2021-01-11 09:08:33 -05:00
Cristian
15d88be229
fix: Partially restore server
command functionality (html still needs some refactoring)
2021-01-11 09:08:33 -05:00
Cristian
ea84607b47
fix: Init and status commands now are able to navigate the right archive folder
2021-01-11 09:08:33 -05:00
Cristian
9fdcb9857e
refactor: remove command functional
2021-01-11 09:08:33 -05:00
Cristian
9aa934a410
fix: status was raising error
2021-01-11 09:08:33 -05:00
Cristian
a4e1bebc46
refactor: list command is functional
2021-01-11 09:08:33 -05:00
Cristian
c51d789ad4
refactor: oneshot command is functional
2021-01-11 09:08:33 -05:00
Cristian
973f8b6abc
refactor: status command is functional
2021-01-11 09:08:33 -05:00
Cristian
d92083b928
refactor: update command is functional
2021-01-11 09:08:33 -05:00
Cristian
5cf9ca0e2c
refactor: readability uses snapshot instead of link
2021-01-11 09:08:33 -05:00
Cristian
f6152ded44
refactor: wget uses snapshot instead of link
2021-01-11 09:08:33 -05:00
Cristian
e0e65bf4b1
refactor: Get archivebox init to run
2021-01-11 09:08:33 -05:00
Cristian
8c4ae73d65
refactor: Initial and dirty refactor to replace link with snapshot. Barely functional add command
2021-01-11 09:08:33 -05: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