-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
3 changed files
with
43 additions
and
23 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
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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,22 +1,38 @@ | ||
<div class="grafana-info-box"> | ||
<h5>How it works</h5> | ||
<p> | ||
This datasource returns a timeseries showing the number of items saved to Pocket. | ||
In order to produce the timeseries, this datasource needs to connect to your Pocket account. | ||
</p> | ||
<p> | ||
Click the "Connect to Pocket" button below. This will open Pocket to let you log in and authenticate the datasource. | ||
<div class="gf-form-button-row"> | ||
<button type="button" class="btn btn-success" ng-click="ctrl.connect()"> | ||
Connect to Pocket | ||
</button> | ||
</div> | ||
|
||
|
||
</p> | ||
<p>Note: This will allow the datasource to retrieve your list of Pocket items, including the item URLs and titles.</p> | ||
<div class="gf-form"> | ||
<span class="gf-form-label width-10">Status</span> | ||
<input class="gf-form-input width-20" disabled type="text" ng-model="ctrl.status" /> | ||
</div> | ||
<h5>How it works</h5> | ||
<p> | ||
This datasource returns a timeseries showing the number of items saved to Pocket. In | ||
order to produce the timeseries, this datasource needs to connect to your Pocket | ||
account. | ||
</p> | ||
<div ng-if="!ctrl.hasToken"> | ||
Click the "Connect to Pocket" button below. This will open Pocket to let you log in | ||
and authenticate the datasource. | ||
<div class="gf-form-button-row"> | ||
<button type="button" class="btn btn-success" ng-click="ctrl.connect()"> | ||
Connect to Pocket | ||
</button> | ||
</div> | ||
<p class="m-t-2"> | ||
Note: This will allow the datasource to retrieve your list of Pocket items, | ||
including the item URLs and titles. It will not allow the datasource to see your | ||
password or to modify your items. | ||
</p> | ||
</div> | ||
<div ng-if="ctrl.hasToken"> | ||
The datasource has received an access token from Pocket. If you experience any | ||
authentication issues, you can refresh it here. | ||
<div class="gf-form-button-row"> | ||
<button type="button" class="btn btn-secondary" ng-click="ctrl.connect()"> | ||
Refresh connection to Pocket | ||
</button> | ||
</div> | ||
<p class="m-t-2"> | ||
If you have not done so, create a dashboard with a panel to see your Pocket usage. | ||
</p> | ||
</div> | ||
<div class="gf-form m-t-2"> | ||
<span class="gf-form-label width-10">Status</span> | ||
<input class="gf-form-input width-20" disabled type="text" ng-model="ctrl.status" /> | ||
</div> | ||
</div> |