Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
N
nextcloud-app-podcast
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
onny
nextcloud-app-podcast
Commits
3681ae00
Commit
3681ae00
authored
4 years ago
by
onny
Browse files
Options
Downloads
Patches
Plain Diff
fix load more
parent
dce2b083
No related branches found
No related tags found
No related merge requests found
Pipeline
#382
failed
4 years ago
Stage: compiling
Stage: testing
Stage: packaging
Stage: signing
Changes
3
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
src/components/LoadMore.vue
+8
-6
8 additions, 6 deletions
src/components/LoadMore.vue
src/views/BrowseAll.vue
+9
-7
9 additions, 7 deletions
src/views/BrowseAll.vue
src/views/Library.vue
+3
-2
3 additions, 2 deletions
src/views/Library.vue
with
20 additions
and
15 deletions
src/components/LoadMore.vue
+
8
−
6
View file @
3681ae00
...
...
@@ -23,7 +23,7 @@
<div
v-resize:debounce=
"onResize"
>
<slot
/>
<EmptyContent
v-show=
"
!finished
"
v-show=
"
page !== null
"
icon=
"icon-loading"
class=
"tableLoading"
/>
</div>
...
...
@@ -42,9 +42,9 @@ export default {
resize
,
},
props
:
{
finished
:
{
type
:
Boolean
,
default
:
false
,
page
:
{
type
:
Number
,
default
:
0
,
},
},
mounted
()
{
...
...
@@ -56,7 +56,8 @@ export default {
methods
:
{
preFill
()
{
if
(
this
.
finished
)
{
console
.
log
(
'
prefill:
'
,
this
.
page
)
if
(
this
.
page
===
null
)
{
document
.
getElementById
(
'
app-content-vue
'
).
removeEventListener
(
'
scroll
'
,
this
.
handleScroll
)
}
else
{
const
yFill
=
document
.
getElementsByClassName
(
'
tableLoading
'
)[
0
].
getBoundingClientRect
().
bottom
...
...
@@ -71,7 +72,8 @@ export default {
* On scroll event, load more shows if bottom reached
*/
handleScroll
()
{
if
(
this
.
finished
)
{
console
.
log
(
'
scroll:
'
,
this
.
page
)
if
(
this
.
page
===
null
)
{
document
.
getElementById
(
'
app-content-vue
'
).
removeEventListener
(
'
scroll
'
,
this
.
handleScroll
)
}
else
{
const
appContent
=
document
.
getElementById
(
'
app-content-vue
'
)
...
...
This diff is collapsed.
Click to expand it.
src/views/BrowseAll.vue
+
9
−
7
View file @
3681ae00
...
...
@@ -66,21 +66,23 @@ export default {
podcasts
=
await
showApiClient
.
queryCategory
(
'
hot
'
,
20
,
page
)
this
.
title
=
t
(
'
podcast
'
,
'
Hot podcasts
'
)
this
.
podcasts
=
this
.
podcasts
.
concat
(
podcasts
.
data
)
this
.
page
+=
1
}
else
if
(
this
.
category
===
'
new
'
)
{
podcasts
=
await
showApiClient
.
queryCategory
(
'
latest
'
,
20
,
page
)
this
.
title
=
t
(
'
podcast
'
,
'
New podcasts
'
)
this
.
podcasts
=
this
.
podcasts
.
concat
(
podcasts
.
data
)
this
.
page
+=
1
}
else
if
(
this
.
category
===
'
subscriptions
'
)
{
podcasts
=
await
showApiClient
.
queryShows
(
page
)
this
.
title
=
t
(
'
podcast
'
,
'
My subscriptions
'
)
this
.
podcasts
=
this
.
podcasts
.
concat
(
podcasts
.
data
)
}
else
{
podcasts
=
await
showApiClient
.
queryCategory
(
this
.
categoryId
,
20
,
page
)
this
.
title
=
t
(
'
podcast
'
,
'
Podcasts in
'
)
+
'
'
+
podcasts
.
data
.
category
.
title
this
.
podcasts
=
this
.
podcasts
.
concat
(
podcasts
.
data
.
podcasts
)
if
(
podcasts
.
meta
.
paging
.
next_page
===
null
)
{
this
.
page
=
null
}
else
{
this
.
page
+=
1
}
}
if
(
podcasts
.
meta
.
paging
.
next_
page
=
==
null
)
{
this
.
page
=
null
}
else
{
this
.
page
+=
1
}
setBrowserTitle
(
this
.
title
)
},
...
...
This diff is collapsed.
Click to expand it.
src/views/Library.vue
+
3
−
2
View file @
3681ae00
...
...
@@ -25,8 +25,9 @@
<Actions>
<ActionButton
icon=
"icon-details"
:close-after-click=
"true"
>
{{
t
(
'
podcast
'
,
'
Show all
'
)
}}
:close-after-click=
"true"
@
click=
"$router.push('/browse/subscriptions')"
>
{{
t
(
'
podcast
'
,
'
Show all subscriptions
'
)
}}
</ActionButton>
<ActionButton
icon=
"icon-download"
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment