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
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