Skip to content

Commit

Permalink
Improved Query Interface and Result viewing (#421)
Browse files Browse the repository at this point in the history
* Reworked query.js to know the difference between date search and advanced searching.
Exposed cdx api's through the query html page
- from, to
- matchType
- filter
Added more appealing styling to the error, index, not-found, query, and  search templates
Updated the included jquery and boostrap static files to jQuery v3.3.1, Bootstrap v4.1.3
Implemented optionally using a web worker for making the cdx api request and processing the results
Documented the code

* ensure the display count str function uses the correct "first" value

* added view all captures for an result displayed in the advanced results view
query worker now sends over the recordCount as an integer and as a formatted string
moved the search button to the right after advanced options

* tests: fixed test_intergration.py:test_static_nested_dir failing due to updates
  • Loading branch information
N0taN3rd authored and ikreymer committed Feb 18, 2019
1 parent 38c1b1c commit 000ed89
Show file tree
Hide file tree
Showing 36 changed files with 10,195 additions and 2,935 deletions.
2 changes: 1 addition & 1 deletion .editorconfig
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
[*.js]
indent_style=space
indent_size=4
indent_size=2
8 changes: 4 additions & 4 deletions pywb/static/css/bootstrap.min.css

Large diffs are not rendered by default.

5 changes: 1 addition & 4 deletions pywb/static/css/font-awesome.min.css

Large diffs are not rendered by default.

53 changes: 11 additions & 42 deletions pywb/static/css/query.css
Original file line number Diff line number Diff line change
@@ -1,51 +1,20 @@
.year{
background-color: #252525;
color: #999;
border-bottom: 1px solid #3E3E3E
.auto-overflow {
overflow-y: auto;
}

.year:hover, .year:active, .month:hover, .month:active{
text-decoration: none;
color: #fff;
background: #515151;
cursor: pointer;
.q-display {
height: 80% !important;
}

.month{
background-color: #343434;
color: #999;
border-bottom: 1px solid #3E3E3E;
padding-left: 30px!important;
.q-row {
height: 90% !important;
}

.day:active, .day:hover{
background: #515151;
cursor: pointer;
color: white;
.list-group-item.list-group-item-action.active {
background-color: transparent;
color: #007bff;
}

.day{
background-color: #454545;
color: #999;
text-decoration: underline;
padding-top: 10px;
padding-bottom: 10px;
padding-left: 45px!important;
.long-text {
word-wrap: break-word;
}

.row{
margin-right: 0px!important;
margin-left: 0px!important;
}

.months{
display: none;
}

.days{
display: none;
}

.yearCarret{
padding-left: 15px
}
Binary file removed pywb/static/fonts/font-awesome/FontAwesome.otf
Binary file not shown.
Binary file added pywb/static/fonts/font-awesome/fa-brands-400.eot
Binary file not shown.
3,300 changes: 3,300 additions & 0 deletions pywb/static/fonts/font-awesome/fa-brands-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pywb/static/fonts/font-awesome/fa-brands-400.ttf
Binary file not shown.
Binary file added pywb/static/fonts/font-awesome/fa-brands-400.woff
Binary file not shown.
Binary file not shown.
Binary file added pywb/static/fonts/font-awesome/fa-regular-400.eot
Binary file not shown.
803 changes: 803 additions & 0 deletions pywb/static/fonts/font-awesome/fa-regular-400.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pywb/static/fonts/font-awesome/fa-regular-400.ttf
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file added pywb/static/fonts/font-awesome/fa-solid-900.eot
Binary file not shown.
4,520 changes: 4,520 additions & 0 deletions pywb/static/fonts/font-awesome/fa-solid-900.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added pywb/static/fonts/font-awesome/fa-solid-900.ttf
Binary file not shown.
Binary file not shown.
Binary file added pywb/static/fonts/font-awesome/fa-solid-900.woff2
Binary file not shown.
Binary file not shown.
2,671 changes: 0 additions & 2,671 deletions pywb/static/fonts/font-awesome/fontawesome-webfont.svg

This file was deleted.

Binary file not shown.
Binary file not shown.
Binary file not shown.
12 changes: 6 additions & 6 deletions pywb/static/js/bootstrap.min.js

Large diffs are not rendered by default.

6 changes: 2 additions & 4 deletions pywb/static/js/jquery-latest.min.js

Large diffs are not rendered by default.

Loading

0 comments on commit 000ed89

Please sign in to comment.