mirror of
https://github.com/plausible/analytics.git
synced 2024-12-21 16:41:31 +03:00
e8f20e67cc
* Load dashboard with react * Rename stast2 to dashboard * Save timeframe on the frontend * Implement current visitors * Implement comparisons * React to route changes * Add modals * Show number of visitors on hover * Show 'Today' for today * Add 30 days * Show referrer drilldown * Arrow keys to go back and forward * Improve comparisons UI * Fix dropdown when clicking on it * Verify API access in a memoized fashion * Test API access * Test stats through controller * Move map formatting from stats controller to stats * Remove unused code * Remove dead code from query * Remove dead code from stats templates * Add stats view test back in * Render modal inside the modal component * Implement google search terms * Add explanation for screen sizes * Separate dashboard JS from the app js
18 lines
528 B
JavaScript
18 lines
528 B
JavaScript
import React from 'react';
|
|
import { Link } from 'react-router-dom'
|
|
|
|
export default function MoreLink({site, list, endpoint}) {
|
|
if (list.length >= 5) {
|
|
return (
|
|
<div className="text-center">
|
|
<Link to={`/${site.domain}/${endpoint}${window.location.search}`}className="font-bold text-sm text-grey-dark hover:text-red transition tracking-wide">
|
|
<svg className="feather mr-1"><use xlinkHref="#feather-maximize" /></svg>
|
|
MORE
|
|
</Link>
|
|
</div>
|
|
)
|
|
} else {
|
|
return null
|
|
}
|
|
}
|