Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

update plugin to latest versions #7

Open
wants to merge 5 commits into
base: main
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5,373 changes: 4,116 additions & 1,257 deletions dist/main.js

Large diffs are not rendered by default.

99 changes: 49 additions & 50 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -2,56 +2,55 @@
<html>

<head>
<title>Respec Service Worker Plugin Test</title>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
<script src='https://www.w3.org/Tools/respec/respec-w3c' class='remove'></script>
<script src='./dist/main.js'></script>
<script type="text/javascript" class="remove">
var respecConfig = {
group: "vc",
specStatus: "unofficial",
subtitle: "Test of ReSpec VC",
edDraftURI: "https://decentralgabe.github.io/respec-vc-jose-cose/",
latestVersion: "https://decentralgabe.github.io/respec-vc-jose-cose/",
doJsonLd: false,
github: "https://github.com/transmute-industries/respec-vc-jose-cose",
includePermalinks: false,
editors: [
{
name: "Gabe Cohen", url: "https://www.linkedin.com/in/cohengabe/",
company: "Transmute", companyURL: "http://decentralgabe.xyz/"
},
{
name: "Orie Steele", url: "https://www.linkedin.com/in/or13b/",
company: "Transmute", companyURL: "http://transmute.industries/"
}
],
authors:
[
{
name: "Orie Steele", url: "https://www.linkedin.com/in/or13b/",
company: "Transmute", companyURL: "http://transmute.industries/"
}
],
maxTocLevel: 2,
inlineCSS: true,
postProcess: [
window.respecVcJoseCose.processVcJoseCose
]
};
</script>
<title>Respec Service Worker Plugin Test</title>
<meta http-equiv='Content-Type' content='text/html;charset=utf-8'/>
<script src='https://www.w3.org/Tools/respec/respec-w3c' class='remove'></script>
<script src='./dist/main.js'></script>
<script type="text/javascript" class="remove">
var respecConfig = {
group: "vc",
specStatus: "unofficial",
subtitle: "Test of ReSpec VC for JOSE and COSE",
edDraftURI: "https://decentralgabe.github.io/respec-vc-jose-cose/",
latestVersion: "https://decentralgabe.github.io/respec-vc-jose-cose/",
doJsonLd: false,
github: "https://github.com/transmute-industries/respec-vc-jose-cose",
includePermalinks: false,
editors: [
{
name: "Gabe Cohen", url: "https://www.linkedin.com/in/cohengabe/",
company: "Block", companyURL: "http://decentralgabe.xyz/"
},
{
name: "Orie Steele", url: "https://www.linkedin.com/in/or13b/",
company: "Transmute", companyURL: "http://transmute.industries/"
}
],
authors: [
{
name: "Orie Steele", url: "https://www.linkedin.com/in/or13b/",
company: "Transmute", companyURL: "http://transmute.industries/"
}
],
maxTocLevel: 2,
inlineCSS: true,
postProcess: [
window.respecVcJoseCose.processVcJoseCose
]
};
</script>
</head>

<body>
<div id="bench"></div>
<section id="abstract">
<p>Hello respec-plugin!</p>
<p>Hello respec-plugin!</p>


</section>
<section>
<h2>Credential</h2>
<a href="https://w3c.github.io/vc-data-model/#example-a-simple-example-of-a-verifiable-credential">Example 1</a>
<h2>Credential</h2>
<a href="https://w3c.github.io/vc-data-model/#example-a-simple-example-of-a-verifiable-credential">Example 1</a>
<pre class="example vc-jose-cose" title="A Verifiable Credential with all 3 types">
{
"@context": [
Expand All @@ -71,7 +70,7 @@ <h2>Credential</h2>
}
}
</pre>
<pre class="example vc-jose-cose-jwt" title="A Verifiable Credential with JWT">
<pre class="example vc-jose-cose-jwt" title="A Verifiable Credential with JWT">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -90,7 +89,7 @@ <h2>Credential</h2>
}
}
</pre>
<pre class="example vc-jose-cose-sd-jwt" title="A Verifiable Credential with SD-JWT">
<pre class="example vc-jose-cose-sd-jwt" title="A Verifiable Credential with SD-JWT">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -109,7 +108,7 @@ <h2>Credential</h2>
}
}
</pre>
<pre class="example vc-jose-cose-cose" title="A Verifiable Credential with COSE">
<pre class="example vc-jose-cose-cose" title="A Verifiable Credential with COSE">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -131,9 +130,9 @@ <h2>Credential</h2>
</section>

<section>
<h2>Presentation</h2>
<a href="https://w3c.github.io/vc-data-model/#example-a-simple-example-of-a-verifiable-presentation">Example 2</a>
<pre class="example vc-jose-cose" title="A Verifiable Presentation with all 3 types">
<h2>Presentation</h2>
<a href="https://w3c.github.io/vc-data-model/#example-a-simple-example-of-a-verifiable-presentation">Example 2</a>
<pre class="example vc-jose-cose" title="A Verifiable Presentation with all 3 types">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -159,7 +158,7 @@ <h2>Presentation</h2>
]
}
</pre>
<pre class="example vc-jose-cose-jwt" title="A Verifiable Presentation with JWT">
<pre class="example vc-jose-cose-jwt" title="A Verifiable Presentation with JWT">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -185,7 +184,7 @@ <h2>Presentation</h2>
]
}
</pre>
<pre class="example vc-jose-cose-sd-jwt" title="A Verifiable Presentation with SD-JWT">
<pre class="example vc-jose-cose-sd-jwt" title="A Verifiable Presentation with SD-JWT">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand All @@ -211,7 +210,7 @@ <h2>Presentation</h2>
]
}
</pre>
<pre class="example vc-jose-cose-cose" title="A Verifiable Presentation with COSE">
<pre class="example vc-jose-cose-cose" title="A Verifiable Presentation with COSE">
{
"@context": [
"https://www.w3.org/ns/credentials/v2",
Expand Down
3 changes: 2 additions & 1 deletion index.js
Original file line number Diff line number Diff line change
Expand Up @@ -56,6 +56,7 @@ function addVcJoseStyles() {

.vc-jose-cose-tabbed h1, .vc-jose-cose-jwt-tabbed h1, .vc-jose-cose-sd-jwt-tabbed h1, .vc-jose-cose-cose-tabbed h1 {
font-size: 1em;
margin: 0 0;
}

.vc-jose-cose-tabbed [type="radio"], .vc-jose-cose-tabbed-jwt [type="radio"], .vc-jose-cose-tabbed-sd-jwt [type="radio"], .vc-jose-cose-tabbed-cose [type="radio"] {
Expand All @@ -71,7 +72,7 @@ function addVcJoseStyles() {
}

li.vc-jose-cose-tab, li.vc-jose-cose-jwt-tab, li.vc-jose-cose-sd-jwt-tab, li.vc-jose-cose-cose-tab {
margin: unset;
margin: 0 0;
margin-left: 8px;
}

Expand Down
Loading