-
Notifications
You must be signed in to change notification settings - Fork 173
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Deploy header validator using webpack
- Loading branch information
Showing
15 changed files
with
2,368 additions
and
144 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
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 |
---|---|---|
@@ -1 +1,2 @@ | ||
dist | ||
node_modules |
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,88 @@ | ||
<!DOCTYPE html> | ||
<meta charset=utf-8> | ||
<title>Attribution Reporting Header Validation</title> | ||
<link | ||
rel="icon" | ||
href="data:image/svg+xml,<svg xmlns=%22http://www.w3.org/2000/svg%22 viewBox=%220 0 100 100%22><text y=%22.9em%22 font-size=%2290%22>🔷</text></svg>" | ||
/> | ||
<style> | ||
* { | ||
box-sizing: border-box; | ||
} | ||
|
||
html { | ||
height: 100vh; | ||
margin: 0; | ||
padding: 0; | ||
} | ||
|
||
body { | ||
margin: 0; | ||
padding: 1em; | ||
} | ||
|
||
body, | ||
form, | ||
textarea, | ||
#output { | ||
height: 100%; | ||
width: 100%; | ||
} | ||
|
||
body, | ||
form, | ||
#right { | ||
display: flex; | ||
} | ||
|
||
body, | ||
#right { | ||
flex-direction: column; | ||
} | ||
|
||
#header { | ||
flex: none; | ||
} | ||
|
||
#input { | ||
flex: 1; | ||
} | ||
|
||
textarea { | ||
resize: none; | ||
} | ||
</style> | ||
<body> | ||
<h1>Attribution Reporting Header Validation</h1> | ||
<form> | ||
<noscript>JavaScript is required to use this form.</noscript> | ||
<fieldset id=input> | ||
<legend>Value</legend> | ||
<textarea></textarea> | ||
</fieldset> | ||
<div id="right"> | ||
<fieldset id=header> | ||
<legend>Header</legend> | ||
<p><label><input type=radio name=header value=source><code>Attribution-Reporting-Register-Source</code></label> | ||
<p><label><input type=radio name=header value=trigger><code>Attribution-Reporting-Register-Trigger</code></label> | ||
<p><label><input type=radio name=header value=os-source><code>Attribution-Reporting-Register-OS-Source</code></label> | ||
<p><label><input type=radio name=header value=os-trigger><code>Attribution-Reporting-Register-OS-Trigger</code></label> | ||
<p><label><input type=radio name=header value=eligible><code>Attribution-Reporting-Eligible</code></label> | ||
</fieldset> | ||
<fieldset id=output> | ||
<legend>Validation Result</legend> | ||
<button type=button id=linkify>Copy Link</button> | ||
<output> | ||
<div id=success></div> | ||
<p>Errors: | ||
<ul id=errors></ul> | ||
<p>Warnings: | ||
<ul id=warnings></ul> | ||
</output> | ||
</fieldset> | ||
</div> | ||
</form> | ||
<template id="pathful-issue"> | ||
<li><code></code> <span></span></li> | ||
</template> | ||
<script src="validate-headers.js"></script> |
Oops, something went wrong.