Rename Active visitors -> Current visitors

For consistency
This commit is contained in:
Uku Taht 2020-08-18 14:14:56 +03:00
parent 43b56d6e61
commit b749889279
10 changed files with 12 additions and 12 deletions

View File

@ -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'),

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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() {

View File

@ -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 {

View File

@ -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() {

View File

@ -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>

View File

@ -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() {

View File

@ -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)
},
%{