mirror of
https://github.com/fleetdm/fleet
synced 2026-05-23 08:58:41 +00:00
Closes #25655 Changes: - Created a new component: `<docs-nav-and-search>`, a component that displays links to documentation pages and a search bar. - Added the `<docs-nav-and-search>` component to documentation pages, query pages, policy pages, vitals pages, app library pages, and osquery schema documentation pages. - Updated the documentation template page to match the latest wireframes. - Updated the osquery schema documentation pages to match the latest wireframes. --------- Co-authored-by: Mike Thomas <[email protected]>
32 lines
1.2 KiB
JavaScript
Vendored
32 lines
1.2 KiB
JavaScript
Vendored
parasails.registerPage('app-details', {
|
|
// ╦╔╗╔╦╔╦╗╦╔═╗╦ ╔═╗╔╦╗╔═╗╔╦╗╔═╗
|
|
// ║║║║║ ║ ║╠═╣║ ╚═╗ ║ ╠═╣ ║ ║╣
|
|
// ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝
|
|
data: {
|
|
//…
|
|
},
|
|
|
|
// ╦ ╦╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╔═╗
|
|
// ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣
|
|
// ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝
|
|
beforeMount: function() {
|
|
//…
|
|
},
|
|
mounted: async function() {
|
|
$('[purpose="copy-button"]').on('click', async function() {
|
|
let code = $(this).siblings('pre').find('code').text();
|
|
$(this).addClass('copied');
|
|
await setTimeout(()=>{
|
|
$(this).removeClass('copied');
|
|
}, 2000);
|
|
navigator.clipboard.writeText(code);
|
|
});
|
|
},
|
|
|
|
// ╦╔╗╔╔╦╗╔═╗╦═╗╔═╗╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
|
// ║║║║ ║ ║╣ ╠╦╝╠═╣║ ║ ║║ ║║║║╚═╗
|
|
// ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝
|
|
methods: {
|
|
//…
|
|
}
|
|
});
|