Skip to content

Instantly share code, notes, and snippets.

@glowka
Last active May 12, 2019 11:23
Show Gist options
  • Select an option

  • Save glowka/a067a0c17bf31495f80a7b4f1397496e to your computer and use it in GitHub Desktop.

Select an option

Save glowka/a067a0c17bf31495f80a7b4f1397496e to your computer and use it in GitHub Desktop.
{
"tabs": {
"3": {
"tabInfo": {
"currentUrl": "https://www.polskieradio.pl/13/53/Artykul/2175283,Sygnaly-Dnia-6-sierpnia-2018-roku-rozmowa-z-Andrzejem-Halickim"
},
"api": {
"annotations": {
"data": [
{
"id": "2",
"type": "annotations",
"links": {
"self": "http://localhost:8000/api/annotations/2"
},
"attributes": {
"url": "https://www.polskieradio.pl/13/53/Artykul/2175283,Sygnaly-Dnia-6-sierpnia-2018-roku-rozmowa-z-Andrzejem-Halickim",
"range": null,
"quote": "Jeżeli policjant (to jest ustawa o Policji) dostanie od przełożonego rozkaz, który jest sprzeczny z prawem, ma obowiązek, nie tylko powinien, ale ma obowiązek odmówić wykonania rozkazu.",
"quoteContext": "",
"publisher": "DEMAGOG",
"ppCategory": "ADDITIONAL_INFO",
"demagogCategory": "TRUE",
"comment": "",
"annotationLink": "http://demagog.org.pl/wypowiedzi/andrzej-halicki-w-sygnalach-dnia/",
"annotationLinkTitle": "demagog.org.pl",
"createDate": "2019-02-24T13:00:55.415493Z",
"upvoteCountExceptUser": 0,
"doesBelongToUser": false
},
"relationships": {
"user": {
"data": {
"type": "users",
"id": "1"
},
"links": {
"related": "http://localhost:8000/api/annotations/2/user"
}
},
"annotationRequest": {
"data": null,
"links": {
"related": "http://localhost:8000/api/annotations/2/request"
}
},
"annotationUpvote": {
"data": null,
"links": {
"related": "http://localhost:8000/api/annotations/2/upvote"
}
},
"annotationReports": {
"data": [],
"links": {
"related": "http://localhost:8000/api/annotations/2/reports"
}
}
}
}
]
},
"annotationRequests": {
"data": []
},
"annotationUpvotes": {
"data": []
},
"isCreating": 0,
"isReading": 0,
"isUpdating": 0,
"isDeleting": 0,
"endpoint": {
"axiosConfig": {
"baseURL": "http://localhost:8000/api",
"withCredentials": true
}
}
},
"annotations": {
"hasLoaded": true, // future usage uncertain
"locations": [
{
"annotationId": "2",
"range": {
"start": "/div[2]/form[1]/div[3]/div[3]/div[3]/div[1]/div[2]/div[1]/article[1]/div[1]/div[3]/span[1]/p[12]",
"startOffset": 294,
"end": "/div[2]/form[1]/div[3]/div[3]/div[3]/div[1]/div[2]/div[1]/article[1]/div[1]/div[3]/span[1]/p[12]",
"endOffset": 479
}
}, {
"annotationId": "2",
"range": null
}
],
},
"annotationRequests": {
"hasLoaded": true, // future usage uncertain
"locations": [
{
"annotationRequestId": "2",
"range": {
"start": "/div[2]/form[1]/div[3]/div[3]/div[3]/div[1]/div[2]/div[1]/article[1]/div[1]/div[3]/span[1]/p[12]",
"startOffset": 294,
"end": "/div[2]/form[1]/div[3]/div[3]/div[3]/div[1]/div[2]/div[1]/article[1]/div[1]/div[3]/span[1]/p[12]",
"endOffset": 479
}
}, {
"annotationRequestId": "2",
"range": null
}
],
},
"widgets": {
"menu": {
"visible": false,
"location": {
"x": 0,
"y": 0
}
},
"annotationViewer": { // displaying in annotationsSummary (and auto-scrolling) is a must, this field is extra
"visible": false,
"deleteModal": {},
"viewerItems": []
},
"annotationRequestViewer": { // displaying in annotationsSummary (and auto-scrolling) is a must, this field is extra
"visible": false,
"deleteModal": {},
"viewerItems": []
},
"annotationForm": {
"annotationId": null,
"annotationRequestId", // or api.annotation[].relationships.data.id
"visible": false,
"formFields" : { // or as a component local state
"a": "b",
"c": "d",
}
},
"annotationRequestForm": {
"visible": false,
"initialData": {
"quote": "it is a sentance",
"comment": "nice!"
},
"formFields" : { // or as a component local state
"a": "b",
"c": "d",
}
},
"notification": {
"visible": false
}
},
"textSelector": {
"range": null
}
}
},
"storage": {
"isHydrated": true,
"value": {
"auth": {
"access": "...",
"refresh": "...",
"userId": "...@gmail.com"
}
"appModes": {
"isExtensionDisabled": false,
"annotationModePages": [],
"disabledPages": [],
}
},
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment