mirror of
https://github.com/dart-lang/sdk
synced 2024-10-14 11:03:19 +00:00
[ Observatory ] Ignore unsafe_html lint in Observatory source
TEST=N/A Change-Id: I62107603c15517b48f5b6965b3ad5af559517849 Reviewed-on: https://dart-review.googlesource.com/c/sdk/+/212140 Reviewed-by: Gary Roumanis <grouma@google.com>
This commit is contained in:
parent
e8bac93db0
commit
e96a0c6bea
|
@ -642,6 +642,7 @@ class HeapSnapshotElement extends CustomElement implements Renderable {
|
|||
var blob = new Blob(_snapshotA!.chunks, 'application/octet-stream');
|
||||
var blobUrl = Url.createObjectUrl(blob);
|
||||
var link = new AnchorElement();
|
||||
// ignore: unsafe_html
|
||||
link.href = blobUrl;
|
||||
var now = new DateTime.now();
|
||||
link.download = 'dart-heap-${now.year}-${now.month}-${now.day}.bin';
|
||||
|
|
|
@ -134,6 +134,7 @@ class ProcessSnapshotElement extends CustomElement implements Renderable {
|
|||
var blob = new Blob([jsonEncode(_snapshotA)], 'application/json');
|
||||
var blobUrl = Url.createObjectUrl(blob);
|
||||
var link = new AnchorElement();
|
||||
// ignore: unsafe_html
|
||||
link.href = blobUrl;
|
||||
var now = new DateTime.now();
|
||||
link.download = 'dart-process-${now.year}-${now.month}-${now.day}.json';
|
||||
|
|
|
@ -91,6 +91,7 @@ class TimelineDashboardElement extends CustomElement implements Renderable {
|
|||
if (_content == null) {
|
||||
_content = new DivElement()..classes = ['content-centered-big'];
|
||||
}
|
||||
// ignore: unsafe_html
|
||||
_frame!.src = _makeFrameUrl();
|
||||
_content!.children = <Element>[
|
||||
new HeadingElement.h2()
|
||||
|
|
|
@ -185,6 +185,7 @@ class TimelinePageElement extends CustomElement implements Renderable {
|
|||
"This VM is forwarding timeline events to Fuchsia's system tracing. See the ",
|
||||
new AnchorElement()
|
||||
..text = "Fuchsia Tracing Usage Guide"
|
||||
// ignore: unsafe_html
|
||||
..href = "https://fuchsia.dev/fuchsia-src/development/tracing",
|
||||
new SpanElement()..text = ".",
|
||||
];
|
||||
|
@ -200,6 +201,7 @@ class TimelinePageElement extends CustomElement implements Renderable {
|
|||
"This VM is forwarding timeline events to Android's systrace. See the ",
|
||||
new AnchorElement()
|
||||
..text = "systrace usage guide"
|
||||
// ignore: unsafe_html
|
||||
..href =
|
||||
"https://developer.android.com/studio/command-line/systrace",
|
||||
new SpanElement()..text = ".",
|
||||
|
@ -217,6 +219,7 @@ class TimelinePageElement extends CustomElement implements Renderable {
|
|||
"To track these events, open 'Instruments' and add the 'os_signpost' Filter. See the ",
|
||||
new AnchorElement()
|
||||
..text = "Instruments Usage Guide"
|
||||
// ignore: unsafe_html
|
||||
..href = "https://help.apple.com/instruments",
|
||||
new SpanElement()..text = ".",
|
||||
];
|
||||
|
|
|
@ -38,9 +38,11 @@ class ViewFooterElement extends CustomElement implements Renderable {
|
|||
void render() {
|
||||
children = <Element>[
|
||||
new AnchorElement()
|
||||
// ignore: unsafe_html
|
||||
..href = 'https://dart-lang.github.io/observatory/'
|
||||
..text = 'View documentation',
|
||||
new AnchorElement()
|
||||
// ignore: unsafe_html
|
||||
..href =
|
||||
'https://github.com/dart-lang/sdk/issues/new?title=Observatory:&body=Observatory%20Feedback'
|
||||
..text = 'File a bug report'
|
||||
|
|
|
@ -642,6 +642,7 @@ class HeapSnapshotElement extends CustomElement implements Renderable {
|
|||
var blob = new Blob(_snapshotA.chunks, 'application/octet-stream');
|
||||
var blobUrl = Url.createObjectUrl(blob);
|
||||
var link = new AnchorElement();
|
||||
// ignore: unsafe_html
|
||||
link.href = blobUrl;
|
||||
var now = new DateTime.now();
|
||||
link.download = 'dart-heap-${now.year}-${now.month}-${now.day}.bin';
|
||||
|
|
|
@ -134,6 +134,7 @@ class ProcessSnapshotElement extends CustomElement implements Renderable {
|
|||
var blob = new Blob([jsonEncode(_snapshotA)], 'application/json');
|
||||
var blobUrl = Url.createObjectUrl(blob);
|
||||
var link = new AnchorElement();
|
||||
// ignore: unsafe_html
|
||||
link.href = blobUrl;
|
||||
var now = new DateTime.now();
|
||||
link.download = 'dart-process-${now.year}-${now.month}-${now.day}.json';
|
||||
|
|
|
@ -91,6 +91,7 @@ class TimelineDashboardElement extends CustomElement implements Renderable {
|
|||
if (_content == null) {
|
||||
_content = new DivElement()..classes = ['content-centered-big'];
|
||||
}
|
||||
// ignore: unsafe_html
|
||||
_frame.src = _makeFrameUrl();
|
||||
_content.children = <Element>[
|
||||
new HeadingElement.h2()
|
||||
|
|
|
@ -184,6 +184,7 @@ class TimelinePageElement extends CustomElement implements Renderable {
|
|||
"This VM is forwarding timeline events to Fuchsia's system tracing. See the ",
|
||||
new AnchorElement()
|
||||
..text = "Fuchsia Tracing Usage Guide"
|
||||
// ignore: unsafe_html
|
||||
..href = "https://fuchsia.dev/fuchsia-src/development/tracing",
|
||||
new SpanElement()..text = ".",
|
||||
];
|
||||
|
@ -199,6 +200,7 @@ class TimelinePageElement extends CustomElement implements Renderable {
|
|||
"This VM is forwarding timeline events to Android's systrace. See the ",
|
||||
new AnchorElement()
|
||||
..text = "systrace usage guide"
|
||||
// ignore: unsafe_html
|
||||
..href =
|
||||
"https://developer.android.com/studio/command-line/systrace",
|
||||
new SpanElement()..text = ".",
|
||||
|
@ -216,6 +218,7 @@ class TimelinePageElement extends CustomElement implements Renderable {
|
|||
"To track these events, open 'Instruments' and add the 'os_signpost' Filter. See the ",
|
||||
new AnchorElement()
|
||||
..text = "Instruments Usage Guide"
|
||||
// ignore: unsafe_html
|
||||
..href = "https://help.apple.com/instruments",
|
||||
new SpanElement()..text = ".",
|
||||
];
|
||||
|
|
|
@ -38,9 +38,11 @@ class ViewFooterElement extends CustomElement implements Renderable {
|
|||
void render() {
|
||||
children = <Element>[
|
||||
new AnchorElement()
|
||||
// ignore: unsafe_html
|
||||
..href = 'https://dart-lang.github.io/observatory/'
|
||||
..text = 'View documentation',
|
||||
new AnchorElement()
|
||||
// ignore: unsafe_html
|
||||
..href =
|
||||
'https://github.com/dart-lang/sdk/issues/new?title=Observatory:&body=Observatory%20Feedback'
|
||||
..text = 'File a bug report'
|
||||
|
|
Loading…
Reference in a new issue