Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in / Register
Toggle navigation
D
douban-api-proxy
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
captainwong
douban-api-proxy
Commits
747b2504
Commit
747b2504
authored
Nov 22, 2020
by
Ozzieisaacs
Browse files
Options
Browse Files
Download
Plain Diff
Merge branch 'master' into Develop
parents
b9536812
eed2f0a4
Hide whitespace changes
Inline
Side-by-side
Showing
10 changed files
with
22 additions
and
11 deletions
+22
-11
constants.py
cps/constants.py
+2
-1
caliBlur.css
cps/static/css/caliBlur.css
+2
-1
style.css
cps/static/css/style.css
+10
-1
author.html
cps/templates/author.html
+1
-1
discover.html
cps/templates/discover.html
+1
-1
grid.html
cps/templates/grid.html
+1
-1
index.html
cps/templates/index.html
+2
-2
search.html
cps/templates/search.html
+1
-1
shelf.html
cps/templates/shelf.html
+1
-1
shelfdown.html
cps/templates/shelfdown.html
+1
-1
No files found.
cps/constants.py
View file @
747b2504
...
...
@@ -113,7 +113,8 @@ del env_CALIBRE_PORT
EXTENSIONS_AUDIO
=
{
'mp3'
,
'mp4'
,
'ogg'
,
'opus'
,
'wav'
,
'flac'
,
'm4a'
,
'm4b'
}
EXTENSIONS_CONVERT
=
[
'pdf'
,
'epub'
,
'mobi'
,
'azw3'
,
'docx'
,
'rtf'
,
'fb2'
,
'lit'
,
'lrf'
,
'txt'
,
'htmlz'
,
'rtf'
,
'odt'
]
EXTENSIONS_CONVERT_FROM
=
[
'pdf'
,
'epub'
,
'mobi'
,
'azw3'
,
'docx'
,
'rtf'
,
'fb2'
,
'lit'
,
'lrf'
,
'txt'
,
'htmlz'
,
'rtf'
,
'odt'
,
'cbz'
,
'cbr'
]
EXTENSIONS_CONVERT_TO
=
[
'pdf'
,
'epub'
,
'mobi'
,
'azw3'
,
'docx'
,
'rtf'
,
'fb2'
,
'lit'
,
'lrf'
,
'txt'
,
'htmlz'
,
'rtf'
,
'odt'
]
EXTENSIONS_UPLOAD
=
{
'txt'
,
'pdf'
,
'epub'
,
'kepub'
,
'mobi'
,
'azw'
,
'azw3'
,
'cbr'
,
'cbz'
,
'cbt'
,
'djvu'
,
'prc'
,
'doc'
,
'docx'
,
'fb2'
,
'html'
,
'rtf'
,
'lit'
,
'odt'
,
'mp3'
,
'mp4'
,
'ogg'
,
'opus'
,
'wav'
,
'flac'
,
'm4a'
,
'm4b'
}
...
...
cps/static/css/caliBlur.css
View file @
747b2504
...
...
@@ -1461,7 +1461,8 @@ body > div.container-fluid > div > div.col-sm-10 > div > form > a:hover {
-webkit-box-shadow
:
0
0
2px
rgba
(
0
,
0
,
0
,
.35
);
box-shadow
:
0
0
2px
rgba
(
0
,
0
,
0
,
.35
);
position
:
relative
;
z-index
:
-9
z-index
:
-9
;
width
:
150px
!important
;
}
#books
>
.cover
>
a
,
#books_rand
>
.cover
>
a
,
.book.isotope-item
>
.cover
>
a
,
body
>
div
.container-fluid
>
div
.row-fluid
>
div
.col-sm-10
>
div
.discover
>
form
>
div
.col-sm-12
>
div
.col-sm-12
>
div
.col-sm-2
>
a
{
...
...
cps/static/css/style.css
View file @
747b2504
...
...
@@ -107,6 +107,11 @@ a, .danger,.book-remove, .editable-empty, .editable-empty:hover { color: #45b29d
text-decoration
:
none
;
}
.row.display-flex
{
display
:
flex
;
flex-wrap
:
wrap
;
}
.container-fluid
img
{
display
:
block
;
max-width
:
100%
;
...
...
@@ -116,7 +121,11 @@ a, .danger,.book-remove, .editable-empty, .editable-empty:hover { color: #45b29d
.container-fluid
.discover
{
margin-bottom
:
50px
;
}
.container-fluid
.new-books
{
border-top
:
1px
solid
#ccc
;
}
.container-fluid
.new-books
h2
{
margin
:
50px
0
0
0
;
}
.container-fluid
.book
{
margin-top
:
20px
;
}
.container-fluid
.book
{
margin-top
:
20px
;
display
:
flex
;
flex-direction
:
column
;
}
.container-fluid
.book
.cover
{
height
:
225px
;
...
...
cps/templates/author.html
View file @
747b2504
...
...
@@ -34,7 +34,7 @@
<div id="all" class="btn btn-primary">{{_('All')}}</div>
</div-->
</div>
<div
class=
"row"
>
<div
class=
"row
display-flex
"
>
{% if entries[0] %}
{% for entry in entries %}
<div
id=
"books"
class=
"col-sm-3 col-lg-2 col-xs-6 book"
>
...
...
cps/templates/discover.html
View file @
747b2504
...
...
@@ -2,7 +2,7 @@
{% block body %}
<div
class=
"discover load-more"
>
<h2>
{{title}}
</h2>
<div
class=
"row"
>
<div
class=
"row
display-flex
"
>
{% for entry in entries %}
<div
class=
"col-sm-3 col-lg-2 col-xs-6 book"
>
<div
class=
"cover"
>
...
...
cps/templates/grid.html
View file @
747b2504
...
...
@@ -23,7 +23,7 @@
</div>
{% if entries[0] %}
<div
id=
"list"
class=
"row"
>
<div
id=
"list"
class=
"row
display-flex
"
>
{% for entry in entries %}
<div
class=
"col-sm-3 col-lg-2 col-xs-6 book sortable"
{%
if
entry
[
0
].
sort
%}
data-name=
"{{entry[0].series[0].name}}"
{%
endif
%}
data-id=
"{% if entry[0].series[0].name %}{{entry[0].series[0].name}}{% endif %}"
>
<div
class=
"cover"
>
...
...
cps/templates/index.html
View file @
747b2504
...
...
@@ -3,7 +3,7 @@
{% if g.user.show_detail_random() %}
<div
class=
"discover random-books"
>
<h2
class=
"random-books"
>
{{_('Discover (Random Books)')}}
</h2>
<div
class=
"row"
>
<div
class=
"row
display-flex
"
>
{% for entry in random %}
<div
class=
"col-sm-3 col-lg-2 col-xs-6 book"
id=
"books_rand"
>
<div
class=
"cover"
>
...
...
@@ -73,7 +73,7 @@
</div-->
</div>
<div
class=
"row"
>
<div
class=
"row
display-flex
"
>
{% if entries[0] %}
{% for entry in entries %}
<div
class=
"col-sm-3 col-lg-2 col-xs-6 book"
id=
"books"
>
...
...
cps/templates/search.html
View file @
747b2504
...
...
@@ -35,7 +35,7 @@
</div>
{% endif %}
<div
class=
"row"
>
<div
class=
"row
display-flex
"
>
{% for entry in entries %}
<div
class=
"col-sm-3 col-lg-2 col-xs-6 book"
>
<div
class=
"cover"
>
...
...
cps/templates/shelf.html
View file @
747b2504
...
...
@@ -12,7 +12,7 @@
<a
id=
"order_shelf"
href=
"{{ url_for('shelf.order_shelf', shelf_id=shelf.id) }}"
class=
"btn btn-primary"
>
{{ _('Change order') }}
</a>
{% endif %}
{% endif %}
<div
class=
"row"
>
<div
class=
"row
display-flex
"
>
{% for entry in entries %}
<div
class=
"col-sm-3 col-lg-2 col-xs-6 book"
>
...
...
cps/templates/shelfdown.html
View file @
747b2504
...
...
@@ -29,7 +29,7 @@
{% block body %}
<div
class=
"discover"
>
<h2>
{{title}}
</h2>
<div
class=
"row"
>
<div
class=
"row
display-flex
"
>
{% for entry in entries %}
<div
class=
"col-sm-3 col-lg-2 col-xs-6 book"
>
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment