mirror of
https://github.com/LemmyNet/joinlemmy-site.git
synced 2024-11-22 04:11:15 +00:00
Merge branch 'main' into build-filter-instances
This commit is contained in:
commit
5b8e094ba5
5 changed files with 7 additions and 16 deletions
|
@ -16,7 +16,7 @@ pipeline:
|
||||||
prettier_markdown_check:
|
prettier_markdown_check:
|
||||||
image: tmknom/prettier
|
image: tmknom/prettier
|
||||||
commands:
|
commands:
|
||||||
- prettier -c . "!dist" "!lemmy-docs" "!lemmy-translations" "!joinlemmy-translations" "!lemmy-js-client" "!lemmy-stats-crawler"
|
- prettier -c . "!dist" "!lemmy-docs" "!lemmy-translations" "!joinlemmy-translations" "!lemmy-js-client" "!lemmy-stats-crawler" "!src/shared/instance_stats.ts"
|
||||||
|
|
||||||
yarn:
|
yarn:
|
||||||
image: node:14-alpine
|
image: node:14-alpine
|
||||||
|
|
|
@ -1 +1 @@
|
||||||
Subproject commit e010e8230daf4c75562001382173458c3f4b0154
|
Subproject commit 1bc69869fda7ee144ddfbc4d9fb29af3a0d4619e
|
|
@ -1 +1 @@
|
||||||
Subproject commit 892abc1ef57966c8945f165a67eb11e83623706b
|
Subproject commit 0dc13b4ea11daaa07d964c17f7a622e3a222367a
|
|
@ -103,9 +103,6 @@ export class Instances extends Component<any, any> {
|
||||||
let domain = instance.domain;
|
let domain = instance.domain;
|
||||||
let description = instance.site_info.site_view.site.description;
|
let description = instance.site_info.site_view.site.description;
|
||||||
let icon = instance.site_info.site_view.site.icon;
|
let icon = instance.site_info.site_view.site.icon;
|
||||||
let require_application =
|
|
||||||
instance.site_info.site_view.local_site.registration_mode ==
|
|
||||||
"requireapplication";
|
|
||||||
return (
|
return (
|
||||||
<div class="card col-6">
|
<div class="card col-6">
|
||||||
<header>
|
<header>
|
||||||
|
@ -122,15 +119,9 @@ export class Instances extends Component<any, any> {
|
||||||
<br />
|
<br />
|
||||||
<p class="join-desc">{description}</p>
|
<p class="join-desc">{description}</p>
|
||||||
<footer>
|
<footer>
|
||||||
{require_application ? (
|
<a class="button primary" href={`https://${domain}`}>
|
||||||
<a class="button primary" href={`https://${domain}`}>
|
{i18n.t("browse_instance")}
|
||||||
{i18n.t("apply_to_join")}
|
</a>
|
||||||
</a>
|
|
||||||
) : (
|
|
||||||
<a class="button primary" href={`https://${domain}`}>
|
|
||||||
{i18n.t("join")}
|
|
||||||
</a>
|
|
||||||
)}
|
|
||||||
</footer>
|
</footer>
|
||||||
</div>
|
</div>
|
||||||
);
|
);
|
||||||
|
|
|
@ -9,7 +9,7 @@ export class LinkLine extends Component<any, any> {
|
||||||
render() {
|
render() {
|
||||||
return (
|
return (
|
||||||
<>
|
<>
|
||||||
<Link to="/instances">{i18n.t("join")}</Link>
|
<Link to="/instances">{i18n.t("join_a_server")}</Link>
|
||||||
<Link to="/news">{i18n.t("news")}</Link>
|
<Link to="/news">{i18n.t("news")}</Link>
|
||||||
<Link to="/apps">{i18n.t("apps")}</Link>
|
<Link to="/apps">{i18n.t("apps")}</Link>
|
||||||
<Link to="/donate">{i18n.t("donate")}</Link>
|
<Link to="/donate">{i18n.t("donate")}</Link>
|
||||||
|
|
Loading…
Reference in a new issue