mirror of
https://github.com/LemmyNet/lemmy-ui.git
synced 2024-11-22 20:31:13 +00:00
Merge branch 'feature/add-ids-and-classes' of github.com:Zetaphor/lemmy-ui into feature/add-ids-and-classes
This commit is contained in:
commit
f38630b224
8 changed files with 5 additions and 27 deletions
|
@ -54,7 +54,7 @@
|
||||||
"inferno-server": "^8.1.1",
|
"inferno-server": "^8.1.1",
|
||||||
"isomorphic-cookie": "^1.2.4",
|
"isomorphic-cookie": "^1.2.4",
|
||||||
"jwt-decode": "^3.1.2",
|
"jwt-decode": "^3.1.2",
|
||||||
"lemmy-js-client": "0.17.2-rc.24",
|
"lemmy-js-client": "0.18.0-rc.1",
|
||||||
"lodash": "^4.17.21",
|
"lodash": "^4.17.21",
|
||||||
"markdown-it": "^13.0.1",
|
"markdown-it": "^13.0.1",
|
||||||
"markdown-it-container": "^3.0.0",
|
"markdown-it-container": "^3.0.0",
|
||||||
|
|
|
@ -360,7 +360,6 @@ export class Community extends Component<
|
||||||
community_view={res.community_view}
|
community_view={res.community_view}
|
||||||
moderators={res.moderators}
|
moderators={res.moderators}
|
||||||
admins={site_res.admins}
|
admins={site_res.admins}
|
||||||
online={res.online}
|
|
||||||
enableNsfw={enableNsfw(site_res)}
|
enableNsfw={enableNsfw(site_res)}
|
||||||
editable
|
editable
|
||||||
allLanguages={site_res.all_languages}
|
allLanguages={site_res.all_languages}
|
||||||
|
|
|
@ -39,7 +39,6 @@ interface SidebarProps {
|
||||||
allLanguages: Language[];
|
allLanguages: Language[];
|
||||||
siteLanguages: number[];
|
siteLanguages: number[];
|
||||||
communityLanguages?: number[];
|
communityLanguages?: number[];
|
||||||
online: number;
|
|
||||||
enableNsfw?: boolean;
|
enableNsfw?: boolean;
|
||||||
showIcon?: boolean;
|
showIcon?: boolean;
|
||||||
editable?: boolean;
|
editable?: boolean;
|
||||||
|
@ -237,12 +236,6 @@ export class Sidebar extends Component<SidebarProps, SidebarState> {
|
||||||
const counts = community_view.counts;
|
const counts = community_view.counts;
|
||||||
return (
|
return (
|
||||||
<ul className="my-1 list-inline">
|
<ul className="my-1 list-inline">
|
||||||
<li className="list-inline-item badge badge-secondary">
|
|
||||||
{i18n.t("number_online", {
|
|
||||||
count: this.props.online,
|
|
||||||
formattedCount: numToSI(this.props.online),
|
|
||||||
})}
|
|
||||||
</li>
|
|
||||||
<li
|
<li
|
||||||
className="list-inline-item badge badge-secondary pointer"
|
className="list-inline-item badge badge-secondary pointer"
|
||||||
data-tippy-content={i18n.t("active_users_in_the_last_day", {
|
data-tippy-content={i18n.t("active_users_in_the_last_day", {
|
||||||
|
|
|
@ -361,7 +361,6 @@ export class Home extends Component<any, HomeState> {
|
||||||
siteRes: {
|
siteRes: {
|
||||||
site_view: { counts, site },
|
site_view: { counts, site },
|
||||||
admins,
|
admins,
|
||||||
online,
|
|
||||||
},
|
},
|
||||||
showSubscribedMobile,
|
showSubscribedMobile,
|
||||||
showTrendingMobile,
|
showTrendingMobile,
|
||||||
|
@ -393,7 +392,6 @@ export class Home extends Component<any, HomeState> {
|
||||||
site={site}
|
site={site}
|
||||||
admins={admins}
|
admins={admins}
|
||||||
counts={counts}
|
counts={counts}
|
||||||
online={online}
|
|
||||||
showLocal={showLocal(this.isoData)}
|
showLocal={showLocal(this.isoData)}
|
||||||
/>
|
/>
|
||||||
)}
|
)}
|
||||||
|
@ -417,7 +415,6 @@ export class Home extends Component<any, HomeState> {
|
||||||
siteRes: {
|
siteRes: {
|
||||||
site_view: { counts, site },
|
site_view: { counts, site },
|
||||||
admins,
|
admins,
|
||||||
online,
|
|
||||||
},
|
},
|
||||||
} = this.state;
|
} = this.state;
|
||||||
|
|
||||||
|
@ -442,7 +439,6 @@ export class Home extends Component<any, HomeState> {
|
||||||
site={site}
|
site={site}
|
||||||
admins={admins}
|
admins={admins}
|
||||||
counts={counts}
|
counts={counts}
|
||||||
online={online}
|
|
||||||
showLocal={showLocal(this.isoData)}
|
showLocal={showLocal(this.isoData)}
|
||||||
/>
|
/>
|
||||||
{this.hasFollows && (
|
{this.hasFollows && (
|
||||||
|
|
|
@ -81,7 +81,6 @@ export class SiteForm extends Component<SiteFormProps, SiteFormState> {
|
||||||
slur_filter_regex: ls.slur_filter_regex,
|
slur_filter_regex: ls.slur_filter_regex,
|
||||||
actor_name_max_length: ls.actor_name_max_length,
|
actor_name_max_length: ls.actor_name_max_length,
|
||||||
federation_enabled: ls.federation_enabled,
|
federation_enabled: ls.federation_enabled,
|
||||||
federation_debug: ls.federation_debug,
|
|
||||||
federation_worker_count: ls.federation_worker_count,
|
federation_worker_count: ls.federation_worker_count,
|
||||||
captcha_enabled: ls.captcha_enabled,
|
captcha_enabled: ls.captcha_enabled,
|
||||||
captcha_difficulty: ls.captcha_difficulty,
|
captcha_difficulty: ls.captcha_difficulty,
|
||||||
|
|
|
@ -12,7 +12,6 @@ interface SiteSidebarProps {
|
||||||
showLocal: boolean;
|
showLocal: boolean;
|
||||||
counts?: SiteAggregates;
|
counts?: SiteAggregates;
|
||||||
admins?: PersonView[];
|
admins?: PersonView[];
|
||||||
online?: number;
|
|
||||||
}
|
}
|
||||||
|
|
||||||
interface SiteSidebarState {
|
interface SiteSidebarState {
|
||||||
|
@ -99,15 +98,8 @@ export class SiteSidebar extends Component<SiteSidebarProps, SiteSidebarState> {
|
||||||
|
|
||||||
badges(siteAggregates: SiteAggregates) {
|
badges(siteAggregates: SiteAggregates) {
|
||||||
const counts = siteAggregates;
|
const counts = siteAggregates;
|
||||||
const online = this.props.online ?? 1;
|
|
||||||
return (
|
return (
|
||||||
<ul className="my-2 list-inline">
|
<ul className="my-2 list-inline">
|
||||||
<li className="list-inline-item badge badge-secondary">
|
|
||||||
{i18n.t("number_online", {
|
|
||||||
count: online,
|
|
||||||
formattedCount: numToSI(online),
|
|
||||||
})}
|
|
||||||
</li>
|
|
||||||
<li
|
<li
|
||||||
className="list-inline-item badge badge-secondary pointer"
|
className="list-inline-item badge badge-secondary pointer"
|
||||||
data-tippy-content={i18n.t("active_users_in_the_last_day", {
|
data-tippy-content={i18n.t("active_users_in_the_last_day", {
|
||||||
|
|
|
@ -553,7 +553,6 @@ export class Post extends Component<any, PostState> {
|
||||||
community_view={res.data.community_view}
|
community_view={res.data.community_view}
|
||||||
moderators={res.data.moderators}
|
moderators={res.data.moderators}
|
||||||
admins={this.state.siteRes.admins}
|
admins={this.state.siteRes.admins}
|
||||||
online={res.data.online}
|
|
||||||
enableNsfw={enableNsfw(this.state.siteRes)}
|
enableNsfw={enableNsfw(this.state.siteRes)}
|
||||||
showIcon
|
showIcon
|
||||||
allLanguages={this.state.siteRes.all_languages}
|
allLanguages={this.state.siteRes.all_languages}
|
||||||
|
|
|
@ -5615,10 +5615,10 @@ leac@^0.6.0:
|
||||||
resolved "https://registry.yarnpkg.com/leac/-/leac-0.6.0.tgz#dcf136e382e666bd2475f44a1096061b70dc0912"
|
resolved "https://registry.yarnpkg.com/leac/-/leac-0.6.0.tgz#dcf136e382e666bd2475f44a1096061b70dc0912"
|
||||||
integrity sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==
|
integrity sha512-y+SqErxb8h7nE/fiEX07jsbuhrpO9lL8eca7/Y1nuWV2moNlXhyd59iDGcRf6moVyDMbmTNzL40SUyrFU/yDpg==
|
||||||
|
|
||||||
lemmy-js-client@0.17.2-rc.24:
|
lemmy-js-client@0.18.0-rc.1:
|
||||||
version "0.17.2-rc.24"
|
version "0.18.0-rc.1"
|
||||||
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.17.2-rc.24.tgz#3b09233a6d89286e559be2e840d81c0c549562ad"
|
resolved "https://registry.yarnpkg.com/lemmy-js-client/-/lemmy-js-client-0.18.0-rc.1.tgz#fd0c88810572d90413696011ebaed19e3b8162d8"
|
||||||
integrity sha512-aSHz7UTcwnwnNd9poY8tEXP7RA9ieZm9MAfSljcbCNU5ds9CASXYNodmraUVJiqCmT4HWnj7IeVmBC9r7nTHnw==
|
integrity sha512-lQe443Nr5UCSoY+IxmT7mBe0IRF6EAZ/4PJSRoPSL+U8A+egMMBPbuxnisHzLsC+eDOWRUIgOqZlwlaRnbmuig==
|
||||||
dependencies:
|
dependencies:
|
||||||
cross-fetch "^3.1.5"
|
cross-fetch "^3.1.5"
|
||||||
form-data "^4.0.0"
|
form-data "^4.0.0"
|
||||||
|
|
Loading…
Reference in a new issue