mirror of
https://github.com/fleetdm/fleet
synced 2026-05-14 12:38:41 +00:00
Related to: https://github.com/fleetdm/confidential/issues/10737 Changes: - Added `docs/scripts.yml`, a YAML file that contains a list of scripts - Added `docs/mdm-commands.yml`, a YAML file that contains Windows and Apple MDM commands - Added `/mdm-commands`, a page that contains a list of MDM commands for Windows and Apple commands - Added `/scripts`, a page that contains a list of scripts - Updated the `<docs-nav-and-search>` component to have a link to the controls library, and reordered the lists. - Updated the build static content script to add the scripts and mdm commands from scripts.yml and mdm-commands.yml to the website's `builtStaticContent` configuration. - Updated the layout of the os-settings page to match the latest wireframes
45 lines
2.3 KiB
Text
Vendored
45 lines
2.3 KiB
Text
Vendored
<div id="script-details" v-cloak>
|
|
<div purpose="page-container">
|
|
<div purpose="page-content">
|
|
<docs-nav-and-search search-filter="queries" current-section="controls" :algolia-public-key="algoliaPublicKey"></docs-nav-and-search>
|
|
<div purpose="breadcrumbs" class="d-flex flex-row align-items-start">
|
|
<div>
|
|
<a purpose="breadcrumbs-category" class="text-nowrap" :href="'/scripts#'+thisScript.platform">Scripts</a>/
|
|
</div>
|
|
<div purpose="breadcrumbs-title">
|
|
<span><%- thisScript.name %></span>
|
|
</div>
|
|
</div>
|
|
<div purpose="query-details-and-sidebar" class="d-flex flex-lg-row flex-column">
|
|
<div purpose="query-details" class="d-flex flex-column">
|
|
<h2 purpose="query-name"><%- thisScript.name %></h2>
|
|
<p purpose="query-description"><%- thisScript.description %></p>
|
|
<div purpose="query-check">
|
|
<div purpose="codeblock">
|
|
<div purpose="codeblock-tabs" >
|
|
<a purpose="codeblock-tab" class="selected"><%= thisScript.platform === 'windows' ? 'PowerShell' : 'Bash'%></a>
|
|
<div purpose="copy-button-tab">
|
|
<div purpose="copy-button"></div>
|
|
</div>
|
|
</div>
|
|
<%if(thisScript.platform === 'windows'){%>
|
|
<pre><code class="hljs ps has-linebreaks"><%= _.unescape(thisScript.script) %></code></pre>
|
|
<%} else {%>
|
|
<pre><code class="hljs sh has-linebreaks"><%= _.unescape(thisScript.script) %></code></pre>
|
|
<%}%>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<div purpose="sidebar-container">
|
|
<div purpose="right-sidebar" class="d-flex flex-column">
|
|
<div purpose="docs-links" class="order-3">
|
|
<a purpose="sidebar-link" target="_blank" href="https://github.com/fleetdm/fleet/tree/main/docs/scripts.yml"> <img src="/images/icon-edit-16x16@2x.png" alt="Suggest an edit">Edit</a>
|
|
<a purpose="sidebar-link" href="/contact"><img alt="Talk to an engineer" src="/images/icon-contact-16x16@2x.png">Get a demo</a>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
</div>
|
|
<%- /* Expose server-rendered data as window.SAILS_LOCALS :: */ exposeLocalsToBrowser() %>
|