mirror of
https://github.com/fleetdm/fleet
synced 2026-05-24 09:28:54 +00:00
42 lines
1.5 KiB
JavaScript
Vendored
42 lines
1.5 KiB
JavaScript
Vendored
parasails.registerPage('query-library', {
|
|
// ╦╔╗╔╦╔╦╗╦╔═╗╦ ╔═╗╔╦╗╔═╗╔╦╗╔═╗
|
|
// ║║║║║ ║ ║╠═╣║ ╚═╗ ║ ╠═╣ ║ ║╣
|
|
// ╩╝╚╝╩ ╩ ╩╩ ╩╩═╝ ╚═╝ ╩ ╩ ╩ ╩ ╚═╝
|
|
data: {
|
|
selectedPlatform: 'macos', // Initially set to 'macos'
|
|
},
|
|
|
|
// ╦ ╦╔═╗╔═╗╔═╗╦ ╦╔═╗╦ ╔═╗
|
|
// ║ ║╠╣ ║╣ ║ ╚╦╝║ ║ ║╣
|
|
// ╩═╝╩╚ ╚═╝╚═╝ ╩ ╚═╝╩═╝╚═╝
|
|
beforeMount: function () {
|
|
//…
|
|
},
|
|
mounted: async function () {
|
|
if(this.algoliaPublicKey) { // Note: Docsearch will only be enabled if sails.config.custom.algoliaPublicKey is set. If the value is undefined, the documentation search will be disabled.
|
|
docsearch({
|
|
appId: 'NZXAYZXDGH',
|
|
apiKey: this.algoliaPublicKey,
|
|
indexName: 'fleetdm',
|
|
container: '#docsearch-query',
|
|
placeholder: 'Search',
|
|
debug: false,
|
|
searchParameters: {
|
|
'facetFilters': ['section:queries']
|
|
},
|
|
});
|
|
}
|
|
},
|
|
|
|
// ╦╔╗╔╔╦╗╔═╗╦═╗╔═╗╔═╗╔╦╗╦╔═╗╔╗╔╔═╗
|
|
// ║║║║ ║ ║╣ ╠╦╝╠═╣║ ║ ║║ ║║║║╚═╗
|
|
// ╩╝╚╝ ╩ ╚═╝╩╚═╩ ╩╚═╝ ╩ ╩╚═╝╝╚╝╚═╝
|
|
methods: {
|
|
|
|
clickSelectPlatform(platform) {
|
|
this.selectedPlatform = platform;
|
|
},
|
|
|
|
},
|
|
|
|
});
|