Skip to content

Commit

Permalink
more lint
Browse files Browse the repository at this point in the history
  • Loading branch information
pfaffman committed Mar 27, 2024
1 parent 8895560 commit 1cc1a41
Show file tree
Hide file tree
Showing 3 changed files with 20 additions and 15 deletions.
Original file line number Diff line number Diff line change
@@ -1,2 +1 @@
<div {{did-insert this.hideAdmins}}></div>

<div {{did-insert this.hideAdmins}}></div>
Original file line number Diff line number Diff line change
@@ -1,15 +1,14 @@
import Component from "@glimmer/component";
// import { inject as service } from "@ember/service";
import { action } from '@ember/object';
import { action } from "@ember/object";

export default class AboutTextComponent extends Component {

@action
hideAdmins() {
const usersArray = settings.hide_admin_users.split("|");
for (const user of usersArray) {
const e = document.querySelector(`div[data-username='${user}']`);
if (e){
if (e) {
e.classList.add("hidden");
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
{{#if haveDashboard}}
<div class="lc-dashboard">
<h2>Literate Computing Dashboard</h2>
<div class="lc-dashboard">
<h2>Literate Computing Dashboard</h2>

{{log "this is settings" haveDashboard}}
<p>This site is, or has been, managed or installed by the <a target="_blank" href="https://dashboard.literatecomputing.com">Literate Computing Dashboard</a>.
You can use the dashboard to do command line rebuilds, add or remove plugins, and more. The Dashboard runs the same commands as
recommended for a standard install (like <tt>./launcher rebuild app</tt>), but also does some things you might forget, like
restarting the existing container if the rebuild fails, managing Postgres upgrades and so on.</p>
<p>If a Critical Update is available, sometimes a command line upgrade is required and the dashboard can manage that for you with just a few clicks.</p>
</div>
{{/if}}
<p>This site is, or has been, managed or installed by the
<a
rel="noopener noreferrer"
target="_blank"
href="https://dashboard.literatecomputing.com"
>Literate Computing Dashboard</a>. You can use the dashboard to do command
line rebuilds, add or remove plugins, and more. The Dashboard runs the
same commands as recommended for a standard install (like
<code>./launcher rebuild app</code>), but also does some things you might
forget, like restarting the existing container if the rebuild fails,
managing Postgres upgrades and so on.</p>
<p>If a Critical Update is available, sometimes a command line upgrade is
required and the dashboard can manage that for you with just a few clicks.</p>
</div>
{{/if}}

0 comments on commit 1cc1a41

Please sign in to comment.