-
Notifications
You must be signed in to change notification settings - Fork 26
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #989 from kuzzleio/4.3.1-proposal
# [4.3.1](https://github.com/kuzzleio/kuzzle-admin-console/releases/tag/4.3.1) (2022-03-07) #### Others - [ [#987](#987) ] Use Kepler to retrieve product usage metrics ([alexandrebouthinon](https://github.com/alexandrebouthinon)) ---
- Loading branch information
Showing
13 changed files
with
297 additions
and
187 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,4 @@ | ||
build/*.js | ||
config/*.js | ||
test/e2e/nightwatch.conf.js | ||
node_modules/**/* |
Large diffs are not rendered by default.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,6 @@ | ||
{ | ||
"name": "kuzzle-admin-console", | ||
"version": "4.3.0", | ||
"version": "4.3.1", | ||
"description": "A handy administrative console for Kuzzle", | ||
"author": "The Kuzzle team <[email protected]>", | ||
"scripts": { | ||
|
@@ -44,6 +44,7 @@ | |
"eslint-plugin-vue": "^6.0.0", | ||
"execa": "^4.0.2", | ||
"json-formatter-js": "^1.3.0", | ||
"kepler-companion": "^1.1.5", | ||
"kuzzle-sdk-v6": "npm:kuzzle-sdk@^6.2.7", | ||
"kuzzle-sdk-v7": "npm:kuzzle-sdk@^7.7.6", | ||
"leaflet": "^1.7.1", | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,71 @@ | ||
<template> | ||
<div class="Main"> | ||
<b-toast | ||
id="discarded-toast" | ||
title="Request Discarded" | ||
no-auto-hide | ||
no-close-button | ||
variant="danger" | ||
toaster="b-toaster-bottom-right" | ||
append="true" | ||
> | ||
Your request could not be sent to Kuzzle. Check the browser console for | ||
more details. | ||
</b-toast> | ||
<b-toast | ||
id="kepler-banner" | ||
title="Usage telemetry" | ||
no-auto-hide | ||
no-close-button | ||
variant="info" | ||
toaster="b-toaster-bottom-right" | ||
:visible="isBannerVisible" | ||
> | ||
<div align="justify"> | ||
We use an Open Source analytics to study the use of our products in | ||
order to improve them. We do not collect any personal data. | ||
</div> | ||
<div align="center" class="mt-2 pa-1"> | ||
<b-button | ||
class="mr-1" | ||
variant="outline-danger" | ||
size="sm" | ||
@click="disableTelemetry" | ||
> | ||
Disable telemetry | ||
</b-button> | ||
<b-button | ||
class="ml-1" | ||
variant="success" | ||
size="sm" | ||
@click="enableTelemetry" | ||
> | ||
Accept | ||
</b-button> | ||
</div> | ||
</b-toast> | ||
</div> | ||
</template> | ||
|
||
<script> | ||
import telemetryCookies from '../services/telemetryCookies' | ||
export default { | ||
name: 'TelemtryBanner', | ||
computed: { | ||
isBannerVisible() { | ||
return telemetryCookies.get() === null ? true : false | ||
} | ||
}, | ||
methods: { | ||
enableTelemetry() { | ||
telemetryCookies.set('true', 30) | ||
this.$bvToast.hide('kepler-banner') | ||
}, | ||
disableTelemetry() { | ||
telemetryCookies.set('false', 1) | ||
this.$bvToast.hide('kepler-banner') | ||
} | ||
} | ||
} | ||
</script> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
export default { | ||
set: (value, expires) => { | ||
let date = new Date() | ||
date.setDate(date.getDate() + expires) | ||
|
||
document.cookie = `telemetry=${JSON.stringify( | ||
value | ||
)}; expires=${date.toUTCString()}` | ||
}, | ||
get: () => { | ||
const telemetrySetting = document.cookie.split('telemetry=')[1] | ||
if (telemetrySetting !== undefined) { | ||
return JSON.parse(telemetrySetting) | ||
} | ||
|
||
return null | ||
}, | ||
delete: () => { | ||
document.cookie = 'telemetry=; expires=Thu, 01 Jan 1970 00:00:00 UTC' | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters