Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
C
condenser
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Deploy
Releases
Container Registry
Model registry
Monitor
Incidents
Analyze
Value stream analytics
Contributor 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
hive
condenser
Commits
1586c3d3
Commit
1586c3d3
authored
8 years ago
by
Tim
Browse files
Options
Downloads
Patches
Plain Diff
Add trending-30day page for 2nd payouts
parent
69a8e922
No related branches found
Branches containing commit
No related tags found
No related merge requests found
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
app/ResolveRoute.js
+2
-2
2 additions, 2 deletions
app/ResolveRoute.js
app/components/modules/Header.jsx
+1
-0
1 addition, 0 deletions
app/components/modules/Header.jsx
app/redux/FetchDataSaga.js
+7
-0
7 additions, 0 deletions
app/redux/FetchDataSaga.js
with
10 additions
and
2 deletions
app/ResolveRoute.js
+
2
−
2
View file @
1586c3d3
...
...
@@ -59,8 +59,8 @@ export default function resolveRoute(path)
if
(
match
)
{
return
{
page
:
'
Post
'
,
params
:
match
.
slice
(
1
)};
}
match
=
path
.
match
(
/^
\/(
best|updated|hot|votes|responses|trending|cashout|created|recent|active
)\/?
$/
)
||
path
.
match
(
/^
\/(
best|
trending|hot|
updated|votes|responses|cashout|created|recent|active
)\/([\w\d
-
]
+
)\/?
$/
);
match
=
path
.
match
(
/^
\/(
best|updated|hot|votes|responses|trending|
trending30|
cashout|created|recent|active
)\/?
$/
)
||
path
.
match
(
/^
\/(
best|updated|
hot|
votes|responses|
trending|trending30|
cashout|created|recent|active
)\/([\w\d
-
]
+
)\/?
$/
);
if
(
match
)
{
return
{
page
:
'
PostsIndex
'
,
params
:
match
.
slice
(
1
)};
}
...
...
This diff is collapsed.
Click to expand it.
app/components/modules/Header.jsx
+
1
−
0
View file @
1586c3d3
...
...
@@ -52,6 +52,7 @@ class Header extends React.Component {
const
sort_orders
=
{
hot
:
'
hot
'
,
trending
:
'
trending
'
,
trending30
:
'
trending (30 day)
'
,
cashout
:
'
payout time
'
,
created
:
'
new
'
,
active
:
'
active
'
,
...
...
This diff is collapsed.
Click to expand it.
app/redux/FetchDataSaga.js
+
7
−
0
View file @
1586c3d3
...
...
@@ -61,6 +61,13 @@ export function* fetchData(action) {
limit
:
constants
.
FETCH_DATA_BATCH_SIZE
,
start_author
:
author
,
start_permlink
:
permlink
}];
}
else
if
(
order
===
'
trending30
'
)
{
call_name
=
'
get_discussions_by_trending30
'
;
args
=
[
{
tag
:
category
,
limit
:
constants
.
FETCH_DATA_BATCH_SIZE
,
start_author
:
author
,
start_permlink
:
permlink
}];
}
else
if
(
order
===
'
active
'
)
{
call_name
=
'
get_discussions_by_active
'
;
args
=
[
...
...
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