mirror of
https://github.com/plausible/analytics.git
synced 2024-11-24 04:32:57 +03:00
Rename Active visitors -> Current visitors
For consistency
This commit is contained in:
parent
43b56d6e61
commit
b749889279
@ -65,7 +65,7 @@ export default class Countries extends React.Component {
|
||||
|
||||
drawMap() {
|
||||
var dataset = this.getDataset();
|
||||
const label = this.props.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
const label = this.props.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
|
||||
this.map = new Datamap({
|
||||
element: document.getElementById('map-container'),
|
||||
|
@ -74,7 +74,7 @@ class ScreenSizes extends React.Component {
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.props.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
return this.props.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
}
|
||||
|
||||
renderList() {
|
||||
@ -141,7 +141,7 @@ class Browsers extends React.Component {
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.props.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
return this.props.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
}
|
||||
|
||||
renderList() {
|
||||
@ -208,7 +208,7 @@ class OperatingSystems extends React.Component {
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.props.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
return this.props.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
}
|
||||
|
||||
renderList() {
|
||||
|
@ -31,7 +31,7 @@ class CountriesModal extends React.Component {
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.state.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
return this.state.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
}
|
||||
|
||||
renderBody() {
|
||||
|
@ -63,7 +63,7 @@ class PagesModal extends React.Component {
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.state.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
return this.state.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
}
|
||||
|
||||
title() {
|
||||
|
@ -66,7 +66,7 @@ class ReferrersModal extends React.Component {
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.state.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
return this.state.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
}
|
||||
|
||||
renderBody() {
|
||||
|
@ -56,7 +56,7 @@ export default class Pages extends React.Component {
|
||||
label() {
|
||||
const filters = this.props.query.filters
|
||||
if (this.props.query.period === 'realtime') {
|
||||
return 'Active visitors'
|
||||
return 'Current visitors'
|
||||
} else if (filters['source'] || filters['referrer']) {
|
||||
return 'Entrances'
|
||||
} else {
|
||||
|
@ -86,7 +86,7 @@ export default class Referrers extends React.Component {
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.props.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
return this.props.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
}
|
||||
|
||||
renderList() {
|
||||
|
@ -70,7 +70,7 @@ export default class SearchTerms extends React.Component {
|
||||
</div>
|
||||
)
|
||||
} else if (this.state.searchTerms.length > 0) {
|
||||
const valLabel = this.props.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
const valLabel = this.props.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
|
||||
return (
|
||||
<React.Fragment>
|
||||
|
@ -61,7 +61,7 @@ export default class Referrers extends React.Component {
|
||||
}
|
||||
|
||||
label() {
|
||||
return this.props.query.period === 'realtime' ? 'Active visitors' : 'Visitors'
|
||||
return this.props.query.period === 'realtime' ? 'Current visitors' : 'Visitors'
|
||||
}
|
||||
|
||||
renderList() {
|
||||
|
@ -25,7 +25,7 @@ defmodule PlausibleWeb.Api.StatsController do
|
||||
defp fetch_top_stats(site, %Query{period: "realtime"} = query) do
|
||||
[
|
||||
%{
|
||||
name: "Active visitors",
|
||||
name: "Current visitors",
|
||||
count: Stats.current_visitors(site, query)
|
||||
},
|
||||
%{
|
||||
|
Loading…
Reference in New Issue
Block a user