yet-another-github-card 1.0.2 → 1.0.4
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/README.md +10 -9
- package/package.json +21 -3
- package/themes/circuit.svg +1 -0
- package/themes/cloudy.svg +1 -0
- package/themes/polygon.svg +1 -0
- package/utils/cert.pem +22 -0
- package/utils/graphql-request.js +8 -0
- package/utils/index.html +51 -0
- package/utils/js/graphql-request.js +8 -0
- package/utils/key.pem +28 -0
package/README.md
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
# Yet Another Github Card - Show your developer skills in social networks
|
|
2
2
|
|
|
3
|
-
[](https://yagc.nocc.dev)
|
|
4
4
|
|
|
5
5
|
[](https://www.npm.im/yet-another-github-card)
|
|
6
6
|
[](https://www.npm.im/yet-another-github-card)
|
|
@@ -75,7 +75,7 @@ You'll find all the required directories and files within the download, logicall
|
|
|
75
75
|
|
|
76
76
|
### Including the card in your portfolio site
|
|
77
77
|
|
|
78
|
-
Get your HTML embed code at [yagc](https://yagc.
|
|
78
|
+
Get your HTML embed code at [yagc](https://yagc.nocc.dev/index.html#embedcode), fill in the form with your GitHub username and grab the result code.
|
|
79
79
|
|
|
80
80
|
## Documentation
|
|
81
81
|
|
|
@@ -105,10 +105,11 @@ The package folder structure looks like this:
|
|
|
105
105
|
|
|
106
106
|
```filesystem
|
|
107
107
|
yet-another-github-card/
|
|
108
|
-
├─
|
|
109
|
-
|
|
110
|
-
| ├─
|
|
111
|
-
|
|
|
108
|
+
├─ css/
|
|
109
|
+
├─ images/
|
|
110
|
+
| ├─ docs/
|
|
111
|
+
| ├─ favicon_io/
|
|
112
|
+
├─ themes/
|
|
112
113
|
└─ utils/
|
|
113
114
|
└─ js/
|
|
114
115
|
```
|
|
@@ -128,15 +129,15 @@ At the moment, three prebuilt themes are available. Feel free to design unique c
|
|
|
128
129
|
|
|
129
130
|
#### 1. DefaultTheme
|
|
130
131
|
|
|
131
|
-

|
|
132
133
|
|
|
133
134
|
#### 2. Cloud
|
|
134
135
|
|
|
135
|
-

|
|
136
137
|
|
|
137
138
|
#### 3. Polygon
|
|
138
139
|
|
|
139
|
-

|
|
140
141
|
|
|
141
142
|
### Local Demo card
|
|
142
143
|
|
package/package.json
CHANGED
|
@@ -1,6 +1,6 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "yet-another-github-card",
|
|
3
|
-
"version": "1.0.
|
|
3
|
+
"version": "1.0.4",
|
|
4
4
|
"description": "Yet another github card profile for use it on your social-networks, blogs or portfolio.",
|
|
5
5
|
"main": "dist/yagc.js",
|
|
6
6
|
"type": "module",
|
|
@@ -8,6 +8,26 @@
|
|
|
8
8
|
"files": [
|
|
9
9
|
"**/*"
|
|
10
10
|
],
|
|
11
|
+
"homepage": "https://yagc.nocc.dev/",
|
|
12
|
+
"author": "Carles Loriente (https://www.notesoncloudcomputing.com/)",
|
|
13
|
+
"license": "MIT",
|
|
14
|
+
"repository": {
|
|
15
|
+
"type": "git",
|
|
16
|
+
"url": "git+https://github.com/carlesloriente/yet-another-github-card.git"
|
|
17
|
+
},
|
|
18
|
+
"bugs": {
|
|
19
|
+
"url": "https://github.com/carlesloriente/yet-another-github-card/issues"
|
|
20
|
+
},
|
|
21
|
+
"funding": [
|
|
22
|
+
{
|
|
23
|
+
"type": "GitHub",
|
|
24
|
+
"url": "https://github.com/sponsors/carlesloriente"
|
|
25
|
+
},
|
|
26
|
+
{
|
|
27
|
+
"type": "ko-fi",
|
|
28
|
+
"url": "https://ko-fi.com/carlesloriente"
|
|
29
|
+
}
|
|
30
|
+
],
|
|
11
31
|
"scripts": {
|
|
12
32
|
"lint": "eslint .",
|
|
13
33
|
"build": "rollup -c",
|
|
@@ -26,8 +46,6 @@
|
|
|
26
46
|
"html5",
|
|
27
47
|
"developer"
|
|
28
48
|
],
|
|
29
|
-
"author": "Carles Loriente",
|
|
30
|
-
"license": "MIT",
|
|
31
49
|
"devDependencies": {
|
|
32
50
|
"@babel/core": "^7.24.5",
|
|
33
51
|
"@babel/preset-env": "^7.24.5",
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" width="1300" height="300" xmlns:xlink="http://www.w3.org/1999/xlink" xmlns="http://www.w3.org/2000/svg"><defs><mask maskUnits="userSpaceOnUse" id="m"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="l"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="k"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="j"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="i"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="h"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="g"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="f"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="e"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="d"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="c"><g transform="matrix(.7723 0 0 .87292 0 59.952)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask><mask maskUnits="userSpaceOnUse" id="b"><g transform="scale(1 .98204)"><path d="M-1.003-1.078h1302v413.127h-1302Z" fill="#fff" stroke-width="1.009"/><use xlink:href="#a" transform="scale(1 1.0183)"/></g></mask></defs><defs><path fill="#fff" d="M0 0h1440v560H0Z" id="a"/></defs><path mask="url(#b)" d="M-.004-.06v294.613h564.766v-2.004l10.968-10.772h305.198l30.988-30.433h148.453l23.32-39.667s160.559 1.307 216.307.708V-.06h-1300z" transform="scale(1 1.0183)" fill="#501616"/><path d="M-12.5 287.5h400" stroke="#3a7cc3" stroke-width="4.17" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#c)" fill="none"/><path d="M381.25 287.5a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0z" fill="#3a7cc3" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#d)"/><path d="m694.087 250.312 30.51-28.381M431.28 262.462l29.593-24.924h88.777m-59.186 24.924 29.593 24.925m230.977-36.716 41.345-43.29m-213.136 80.006h59.186m-88.779 0 27.544-23.2 2.049-1.725 30.457-23.896m-208.014 23.896 29.593-24.924 29.593-24.925h88.778m-562.264 49.85h532.671l29.593 24.924h29.593l29.593-24.925 15.654-11.949 163.108.241" stroke="#d13" stroke-width="4.17" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#e)" fill="none"/><path d="m262.5 212.5 25 25h50m-100-25 25 25m-75 0h25m-225 0h200l25-25h75" stroke="#3a7cc3" stroke-width="4.17" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#f)" fill="none"/><path d="M281.25 212.5a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0zm50 25a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0zm-75 0a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0zm-50 0a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0z" fill="#3a7cc3" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#g)"/><path d="m512.5 187.5 25 25h125m-175-25 25-25h150m-675 50h200l25-25h400" stroke="#3a7cc3" stroke-width="4.17" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#h)" fill="none"/><path d="M606.25 187.5a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0zm50 25a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0zm0-50a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0z" fill="#3a7cc3" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#i)"/><path d="m137.5 187.5 25-25h25m-125 25 25-25h50m200 0 25-25h50m-175 25 25-25h75l25-25h75m-225 50 25-25m-250 50h200l25-25h250" stroke="#d13" stroke-width="4.17" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#j)" fill="none"/><path d="M456.25 162.5a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 0 0-12.5 0zm-275 0a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 0 0-12.5 0zm-50 0a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 0 0-12.5 0zm275-25a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 0 0-12.5 0zm25-25a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 0 0-12.5 0zm-200 25a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 0 0-12.5 0z" fill="#d13" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#k)"/><path d="m262.5 112.5 25-25h100m-275 50 25-25 25-25m25 25 25-25h25m-250 75h25l25-25h100l25-25h150" stroke="#3a7cc3" stroke-width="4.17" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#l)" fill="#501616"/><path d="M306.25 112.5a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0zm75-25a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0zm-225 0a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0zm75 0a6.25 6.25 0 1 0 12.5 0 6.25 6.25 0 1 0-12.5 0z" fill="#3a7cc3" transform="matrix(1.29483 0 0 1.14558 0 -68.68)" mask="url(#m)"/><ellipse cx="829.656" cy="259.979" rx="7.348" ry="7.39" fill="#d13"/><ellipse cx="1024.247" cy="219.07" rx="7.348" ry="7.39" fill="#d13"/><ellipse cx="1027.031" cy="167.554" rx="7.348" ry="7.39" fill="#d13"/><ellipse cx="936.017" cy="185.618" rx="7.348" ry="7.39" fill="#d13"/><ellipse cx="790.286" cy="203.625" rx="7.348" ry="7.39" fill="#d13"/><ellipse cx="673.576" cy="260.498" rx="7.348" ry="7.39" fill="#d13"/><ellipse cx="713.972" cy="202.935" rx="7.348" ry="7.39" fill="#d13"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" width="1300.003" height="300" xmlns="http://www.w3.org/2000/svg"><path fill="#1e3266" d="M0 204.085h1300.003V-2H0Z"/><path d="M614.193 45.303c-16.12-.56-33.364 5.375-51.732 17.804-65.24-6.554-101.353 20.818-108.334 82.118-2.594-38.279-24.26-56.2-65-53.762-40.926-29.405-77.038-24.881-108.334 13.572-22.87-46.37-58.982-58.811-108.334-37.322-44.61-25.945-80.721-17.959-108.334 23.955-36.207-6.695-57.874 6.966-65 40.986v161.91l2.166-7.43c23.274-18.842 44.94-17.33 65 4.538 7.541-33.63 29.208-46.902 65-39.817 27.65-14.736 49.316-9.115 65 16.864 24.49-44.85 60.601-55.772 108.334-32.768 43.7-26.798 79.812-19.67 108.334 21.385 43.586-26.9 79.696-19.874 108.332 21.078 9.925-31.396 31.591-42.432 65-33.107 14.589-27.008 36.258-33.658 65.002-19.95 34.901-7.923 56.568 4.512 65 37.305 44.904-25.667 81.014-17.406 108.332 24.785 25.958-16.326 47.626-12.292 65.002 12.098 5.44-35.603 27.107-50.85 65-45.738 13.963-27.59 35.63-34.827 65-21.707 33.03-9.681 54.696.992 65 32.021 45.807-24.82 81.919-15.711 108.334 27.322 15.174-52.968 50.822-72.527 106.812-58.896V103.703c-.223.063-.42.08-.644.145-17.02-24.718-38.687-29.08-65-13.088-45.921-24.718-82.033-15.503-108.334 27.644-20.945-48.185-57.056-62.439-108.334-42.76-47.107-23.597-83.219-13.266-108.334 30.995-18.41-23.417-40.077-26.476-65-9.178-34.378-8.415-56.044 3.53-65 35.83-17.087-51.799-53.198-69.671-108.334-53.617-17.008-22.193-35.874-33.651-56.6-34.371Z" fill="#182f5d"/><path d="M546.516 120.537c-8.514.446-17.611 3.755-27.291 9.926-29.864-12.65-51.53-4.946-65 23.113-17.243-24.508-38.91-28.662-65-12.46-52.608-18.43-88.72-2.928-108.334 46.501-40.595-29.717-76.707-25.506-108.334 12.637-22.877-46.359-58.988-58.79-108.334-37.295-17.64-24.147-39.307-27.934-65-11.36v142.215L1.2 287.03c23.274-18.842 44.94-17.328 65 4.54 7.541-33.63 29.208-46.903 65-39.817 27.65-14.737 49.316-9.115 65 16.863 24.49-44.849 60.601-55.771 108.334-32.767 43.7-26.799 79.81-19.672 108.332 21.382 43.586-26.9 79.698-19.872 108.334 21.08 9.925-31.396 31.591-42.432 65-33.107 14.59-27.008 36.256-33.657 65-19.95 34.902-7.922 56.568 4.513 65 37.306 44.904-25.668 81.016-17.407 108.334 24.785 25.958-16.326 47.625-12.295 65 12.095 5.44-35.603 27.108-50.848 65-45.736 13.963-27.59 35.63-34.826 65-21.707 33.03-9.68 54.698.993 65.002 32.022 45.807-24.82 81.917-15.714 108.332 27.32 15.202-53.064 50.911-72.666 107.076-58.89v-52.69c-.245.137-.473.211-.718.351-22.19-47.009-58.303-60.085-108.334-39.23-55.106-16.083-91.218 1.76-108.334 53.531-14.222-27.347-35.889-34.34-65-20.976-21.234-47.903-57.345-61.879-108.334-41.928-29.365-13.12-51.031-5.885-65 21.705-18.562-23.276-40.228-26.194-65-8.754-40.204-2.935-61.87 14.487-65 52.262-13.012-28.49-34.68-36.62-65-24.389-10.966-30.412-32.633-40.467-65-30.17-10.95-15.158-23.52-22.366-37.71-21.623z" fill="#25467d"/><path d="M1057.312 172.734c-24.146.624-44.35 14.501-60.611 41.63-29.533-40.11-65.645-46.293-108.334-18.55-34.312-8.476-55.979 3.406-65 35.65-27.523-14.855-49.19-9.352-65 16.508-20.535-48.564-56.647-63.203-108.334-43.914-25.555-16.704-47.222-13.052-65 10.96-27.493-14.89-49.16-9.419-65 16.413-44.276-21.383-81.78-10.183-106.084 26.892 41.566-23.682 80.734-18.175 108.373 21.351 9.925-31.396 32.024-42.623 65.433-33.298 14.589-27.008 35.679-33.19 64.423-19.482 34.902-7.923 56.26 4.524 64.691 37.317 44.905-25.668 81.204-17.97 108.522 24.222 25.958-16.326 47.77-12.216 65.146 12.174 5.44-35.603 27.093-50.372 64.986-45.26 13.963-27.59 35.826-34.803 65.197-21.684 33.03-9.681 54.539.346 64.843 31.374 45.807-24.82 81.946-15.39 108.362 27.643 12.91-45.067 40.58-66.154 83.037-63.01-26.177-39.885-62.436-48.69-106.927-24.61-14.878-26.736-36.545-33.115-65-19.137-17.327-9.167-33.235-13.564-47.723-13.19zm-920.68 4.42c-8.644-.044-18.066 2.774-28.267 8.455C46.964 175.442 10.852 199.204.03 256.896l.425 37.182.898-.773c27.165-17.063 45.85-21.964 65.91-.096 7.542-33.63 29.312-47.252 65.104-40.166 27.65-14.737 49.465-8.981 65.15 16.997 22.906-41.95 54.773-54.752 98.015-37.337-11.052-18.275-30.05-24.604-57.168-18.729-17.147-24.61-38.814-28.86-65-12.75-10.081-15.975-22.326-23.997-36.733-24.07zm1164.34 37.056c-7.089 2.825-14.14 8.146-20.367 15.64 6.36.734 13.379 2.346 20.367 4.105z" fill="#356cb1"/></svg>
|
|
@@ -0,0 +1 @@
|
|
|
1
|
+
<svg preserveAspectRatio="none" width="1300" height="300" xmlns="http://www.w3.org/2000/svg"><circle cx="-12.774" cy="585.733" fill="#8b9ad9" transform="matrix(-.90278 0 0 -1 0 560)" r="4.174" mask="url(#a)"/><circle cx="-12.774" cy="585.733" fill="#8b9ad9" transform="matrix(-.90278 0 0 -1 0 560)" r="4.174" mask="url(#b)"/><path fill="#0d2045" d="M-.003 299.975h1300v-300h-1300z"/><path d="m1040.388 47.528-92.153 46.818m92.153-46.818L1010.436-66.63M467.392 87.35l29.25 95.673m-29.25-95.673 98.544-31.916M467.392 87.35l-3.21-116.703m3.21 116.703L356.33 47.327M467.392 87.35 368.14-31.841m-10.71 351.854L337.465 171.72m19.965 148.294-130.689-145.43m1056.762-99.405-12.925-108.923m12.925 108.923-123.626-144.73m110.7 35.807-110.7-35.806m110.7 35.806-230.19 81.273m230.19-81.273-260.14-32.884m260.14 32.884L932.702-66.387m337.877 32.642L948.235 94.345M1159.877-69.55l-149.44 2.922m0 0-77.736.242m77.735-.242L948.235 94.346m62.201-160.975L807.032-37.218m203.404-29.411L802.796 47.453m145.439 46.893L932.7-66.387m0 0-125.669 29.17m125.67-29.17 107.686 113.915M932.7-66.387 802.796 47.453m129.905-113.84 227.176-3.164M802.797 47.453l4.235-84.67m-4.236 84.67-93.17 37.35m93.17-37.35L692.118-40.115m110.678 87.567 145.439 46.894M807.032-37.218l-114.914-2.897m-10.1 239.034 27.608-114.115M682.02 198.919l-106.074 26.907m106.074-26.907L565.936 55.434M682.02 198.919 802.796 47.452M682.02 198.92l-185.376-15.896m185.376 15.896 10.099-239.034m0 0 17.508 124.919M692.118-40.115l-130.945-21.78m130.945 21.78L565.936 55.434m10.01 170.392-79.303-42.803m79.302 42.803L565.936 55.434m10.01 170.392L467.391 87.35m98.544-31.916-4.763-117.33m0 0-96.991 32.543m96.991-32.543L467.393 87.35m93.78-149.246L368.14-31.84m193.033-30.055 148.453 146.7m-212.983 98.22 69.293-127.59m-69.293 127.59-159.178-11.305M464.182-29.353l-96.042-2.488m96.042 2.488 101.754 84.787M337.465 171.719l-110.724 2.864m110.724-2.864L356.33 47.327m0 0 11.81-79.168m-11.81 79.168L265.059 65.01m91.27-17.682 107.853-76.68M356.33 47.327 235.929-70.394m132.21 38.553-103.08 96.85M226.74 174.583l-79.317 30.054m79.317-30.054L265.06 65.009m-29.13-135.404-92.123 38.003m92.123-38.002 29.13 135.403m-29.13-135.404 132.21 38.554M147.425 204.637l-1.666-143.301m0 0-1.952-93.728m1.952 93.728 119.3 3.673M86.692 178.922l59.067-117.586" stroke="#10257d" stroke-width="1.19" clip-path="url(#c)" transform="translate(-67.97 .009)"/><path d="m1040.388 47.528-92.153 46.818m92.153-46.818L1010.436-66.63M467.392 87.35l29.25 95.673m-29.25-95.673 98.544-31.916M467.392 87.35l-3.21-116.703m3.21 116.703L356.33 47.327M467.392 87.35 368.14-31.841m-10.71 351.854L337.465 171.72m19.965 148.294-130.689-145.43M22.855 353.524l-3.4-174.533m3.4 174.533 124.569-148.887m1136.08-129.46-12.926-108.922m12.925 108.923-123.626-144.73m110.7 35.807-110.7-35.806m110.7 35.806-230.19 81.273m230.19-81.273-260.14-32.884m260.14 32.884L932.702-66.387m337.877 32.642L948.235 94.345M1159.877-69.55l-149.44 2.922m0 0-77.736.242m77.735-.242L948.235 94.346m62.201-160.975L807.032-37.218m203.404-29.411L802.796 47.453m145.439 46.893L932.7-66.387m0 0-125.669 29.17m125.67-29.17 107.686 113.915M932.7-66.387 802.796 47.453m129.905-113.84 227.176-3.164M802.797 47.453l4.235-84.67m-4.236 84.67-93.17 37.35m93.17-37.35L692.118-40.115m110.678 87.567 145.439 46.894M807.032-37.218l-114.914-2.897m-10.1 239.034 27.608-114.115M682.02 198.919l-106.074 26.907m106.074-26.907L565.936 55.434M682.02 198.919 802.796 47.452M682.02 198.92l-185.376-15.896m185.376 15.896 10.099-239.034m0 0 17.508 124.919M692.118-40.115l-130.945-21.78m130.945 21.78L565.936 55.434m10.01 170.392-79.303-42.803m79.302 42.803L565.936 55.434m10.01 170.392L467.391 87.35m98.544-31.916-4.763-117.33m0 0-96.991 32.543m96.991-32.543L467.393 87.35m93.78-149.246L368.14-31.84m193.033-30.055 148.453 146.7m-212.983 98.22 69.293-127.59m-69.293 127.59-159.178-11.305M464.182-29.353l-96.042-2.488m96.042 2.488 101.754 84.787M337.465 171.719l-110.724 2.864m110.724-2.864L356.33 47.327m0 0 11.81-79.168m-11.81 79.168L265.059 65.01m91.27-17.682 107.853-76.68M356.33 47.327 235.929-70.394m132.21 38.553-103.08 96.85M226.74 174.583l-79.317 30.054m79.317-30.054L265.06 65.009m-29.13-135.404-92.123 38.003m92.123-38.002 29.13 135.403m-29.13-135.404 132.21 38.554M147.425 204.637l-1.666-143.301m0 0-1.952-93.728m1.952 93.728 119.3 3.673M19.457 178.991l2.856-112.404m-2.856 112.404 127.968 25.646M19.456 178.991 145.758 61.336M19.456 178.991 11.565-24.503m10.747 91.09-10.747-91.09m0 0 132.241-7.89" stroke="#2348e3" stroke-width="1.19" clip-path="url(#d)"/><ellipse cx="-1283.479" cy="-75.7" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-948.21" cy="-94.868" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-1039.962" cy="-46.997" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-802.772" cy="-47.974" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-681.995" cy="-199.441" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-709.602" cy="-85.325" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-575.921" cy="-226.348" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-565.912" cy="-55.956" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-496.619" cy="-183.545" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-337.441" cy="-172.241" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-466.946" cy="86.319" fill="#8b9ad9" transform="scale(-1 1)" rx="3.768" ry="4.174"/><ellipse cx="-356.306" cy="-47.849" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-226.717" cy="-175.105" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-265.035" cy="-65.531" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-147.4" cy="-205.159" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-145.734" cy="-61.858" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-19.432" cy="-179.513" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-22.288" cy="-67.109" fill="#8b9ad9" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-1215.576" cy="-74.875" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-880.308" cy="-94.043" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-972.06" cy="-46.173" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-734.87" cy="-47.15" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-614.092" cy="-198.616" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-641.7" cy="-84.501" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-508.019" cy="-225.524" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-498.01" cy="-55.131" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-428.716" cy="-182.721" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-269.538" cy="-171.417" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-399.044" cy="85.495" fill="#6862cb" transform="scale(-1 1)" rx="3.768" ry="4.174"/><ellipse cx="-288.403" cy="-47.025" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-158.815" cy="-174.281" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-197.132" cy="-64.707" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-79.497" cy="-204.335" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><ellipse cx="-77.831" cy="-61.034" fill="#6862cb" transform="scale(-1)" rx="3.768" ry="4.174"/><defs><mask id="f"><path fill="#fff" d="M0 0h1440v560H0Z"/></mask><mask maskUnits="userSpaceOnUse" id="a"><path fill="#fff" d="M0 560h1300.003V0H0Z" stroke-width=".95" transform="matrix(-1.10769 0 0 -1 0 560)"/></mask><mask maskUnits="userSpaceOnUse" id="b"><path fill="#fff" d="M0 560h1300.003V0H0Z" stroke-width=".95" transform="matrix(-1.10769 0 0 -1 0 560)"/></mask><clipPath clipPathUnits="userSpaceOnUse" id="d"><path fill="#ff0" stroke-width="4.17" d="M.004-.009h1300v300H.004z"/></clipPath><clipPath clipPathUnits="userSpaceOnUse" id="c"><path fill="#ff0" stroke-width="4.17" d="M.004-.009h1300v300H.004z"/></clipPath><radialGradient id="e"><stop stop-color="#fff" offset=".1"/><stop stop-color="#1735b3" offset=".2"/><stop stop-color="rgba(23, 53, 179, 0)" offset="1"/></radialGradient></defs></svg>
|
package/utils/cert.pem
ADDED
|
@@ -0,0 +1,22 @@
|
|
|
1
|
+
-----BEGIN CERTIFICATE-----
|
|
2
|
+
MIIDkTCCAnmgAwIBAgIUeiPvIAT9iLc3QFS+bUyo3vr9xDswDQYJKoZIhvcNAQEL
|
|
3
|
+
BQAwWDELMAkGA1UEBhMCRVMxEjAQBgNVBAgMCUJhcmNlbG9uYTESMBAGA1UEBwwJ
|
|
4
|
+
QmFyY2Vsb25hMQ0wCwYDVQQKDAROT0NDMRIwEAYDVQQDDAlsb2NhbGhvc3QwHhcN
|
|
5
|
+
MjQwNDEzMDQ1NTA2WhcNMzQwNDExMDQ1NTA2WjBYMQswCQYDVQQGEwJFUzESMBAG
|
|
6
|
+
A1UECAwJQmFyY2Vsb25hMRIwEAYDVQQHDAlCYXJjZWxvbmExDTALBgNVBAoMBE5P
|
|
7
|
+
Q0MxEjAQBgNVBAMMCWxvY2FsaG9zdDCCASIwDQYJKoZIhvcNAQEBBQADggEPADCC
|
|
8
|
+
AQoCggEBANxf9wwm0u9zj7V6QOt8NxE9KsofdwzAMsS/arDSvlknGaVT6/57fPMN
|
|
9
|
+
xNm+XQOY0RD/jKlTWoO1R3U2xxTppvR69PdPvqswj/3463WC8VwRdZa5bq7UcB0b
|
|
10
|
+
S9d7PM89em3qiBMCAAGEGRbWFgLQg/0x/kws8DocaTWhEWGyZoNopiLiIkWTT4Zj
|
|
11
|
+
LPM9ocrXXcJ1Anm3ITcwK/mjvlpA4a4rJvGzybqB9bXRyL62bx086eVOTt4qIEi5
|
|
12
|
+
rccq8H+vM1/c7K+GgxccO54dg97JrWzC9jFIBayK4In/MUhN+boRwwh5ee/IeQ4i
|
|
13
|
+
auBfQHTtaYk/toTmptb79CwNTzUIIOsCAwEAAaNTMFEwHQYDVR0OBBYEFM/HhsYn
|
|
14
|
+
Xm6QQY8+nmzx+RnXxVJxMB8GA1UdIwQYMBaAFM/HhsYnXm6QQY8+nmzx+RnXxVJx
|
|
15
|
+
MA8GA1UdEwEB/wQFMAMBAf8wDQYJKoZIhvcNAQELBQADggEBAGhwbd91gPGKZnv3
|
|
16
|
+
TqjXOF/5zr+9Inpmpcq1HO0SkY99P0pw+Bh2XQuMuO5ud5AkiTubz4r7+/gg56df
|
|
17
|
+
m+XUdtTncck8bK+94vJNaOMWhJEqCGlOp3o5Cu7AmZDLvLLj9pdOpmFnb/R+dDsT
|
|
18
|
+
f2s69C4BTarAIvXeg1Cvu9mYehg7R1CKquDZ98CTIXkpGOVs7Zs65PifYhOTs7R1
|
|
19
|
+
VSzNCg0LbV5YiLnzgTlqVoaGgfrDtmqoNYsE1UoI1xs84FjMlE2Mv6Ubu3yESbu9
|
|
20
|
+
S9UFPugb/7EJ32lTWL2pdCzi2000eQHHVj4huE4zB5rRYHpIH5jaZ4x1IhS/TTKy
|
|
21
|
+
mxo1CPo=
|
|
22
|
+
-----END CERTIFICATE-----
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
|
|
3
|
+
* Original file: /npm/graphql-request@7.0.0/build/entrypoints/main.js
|
|
4
|
+
*
|
|
5
|
+
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|
6
|
+
*/
|
|
7
|
+
import"node:fs/promises";import{Kind as e}from"/npm/graphql@16.8.1/+esm";import{OperationTypeNode as r}from"/npm/graphql@16.8.1/language/ast.js/+esm";import{parse as t}from"/npm/graphql@16.8.1/language/parser.js/+esm";import{print as s}from"/npm/graphql@16.8.1/language/printer.js/+esm";class a extends Error{response;request;constructor(e,r){super(`${a.extractMessage(e)}: ${JSON.stringify({response:e,request:r})}`),Object.setPrototypeOf(this,a.prototype),this.response=e,this.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,a)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}const n=e=>e.toUpperCase(),o=e=>"function"==typeof e?e():e,i=(e,r)=>e.map(((e,t)=>[e,r[t]])),u=e=>{let r={};return e instanceof Headers?r=c(e):Array.isArray(e)?e.forEach((([e,t])=>{e&&void 0!==t&&(r[e]=t)})):e&&(r=e),r},c=e=>{const r={};return e.forEach(((e,t)=>{r[t]=e})),r},l=e=>e instanceof Error?e:new Error(String(e)),d=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then&&"catch"in e&&"function"==typeof e.catch&&"finally"in e&&"function"==typeof e.finally,h=e=>{throw new Error(`Unhandled case: ${String(e)}`)},p=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),f=async(...e)=>{const r=m(e);return new H(r.url).batchRequests(r)},m=e=>1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},g=async(...e)=>{const[r,t,...s]=e,a=q(r,t,...s);return new H(a.url).rawRequest({...a})},q=(e,r,...t)=>{const[s,a]=t;return"string"==typeof e?{url:e,query:r,variables:s,requestHeaders:a,signal:void 0}:e},y="Accept",w="Content-Type",v="application/json",b="application/graphql-response+json",x=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),O=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(S)};if(p(e))return{_tag:"Single",executionResult:S(e)};throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(e)}`)}catch(e){return e}},S=e=>{if("object"!=typeof e||null===e)throw new Error("Invalid execution result: result is not object");let r,t,s;if("errors"in e){if(!p(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");r=e.errors}if("data"in e){if(!p(e.data)&&null!==e.data)throw new Error("Invalid execution result: data is not plain object");t=e.data}if("extensions"in e){if(!p(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");s=e.extensions}return{data:t,errors:r,extensions:s}},N=e=>Array.isArray(e.errors)?e.errors.length>0:Boolean(e.errors),E=r=>"object"==typeof r&&null!==r&&"kind"in r&&r.kind===e.OPERATION_DEFINITION,j=(e,a)=>{const n="string"==typeof e?e:s(e);let o,i=!1;if(a)return{expression:n,isMutation:i,operationName:o};const u=(e=>{try{const r=e();return d(r)?r.catch((e=>l(e))):r}catch(e){return l(e)}})((()=>"string"==typeof e?t(e):e));return u instanceof Error?{expression:n,isMutation:i,operationName:o}:(o=(e=>{let r;const t=e.definitions.filter(E);return 1===t.length&&(r=t[0].name?.value),r})(u),i=(e=>{let t=!1;const s=e.definitions.filter(E);return 1===s.length&&(t=s[0].operation===r.MUTATION),t})(u),{expression:n,operationName:o,isMutation:i})},C=JSON,M=async e=>{const r={...e,method:"Single"===e.request._tag?e.request.document.isMutation?"POST":n(e.method??"post"):e.request.hasMutations?"POST":n(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},t=P(r.method),s=await t(r);if(!s.ok)return new a({status:s.status,headers:s.headers},{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables});const o=await T(s,e.fetchOptions.jsonSerializer??C);if(o instanceof Error)throw o;const i={status:s.status,headers:s.headers};if((e=>"Batch"===e._tag?e.executionResults.some(N):N(e.executionResult))(o)&&"none"===r.fetchOptions.errorPolicy){const r="Batch"===o._tag?{...o.executionResults,...i}:{...o.executionResult,...i};return new a(r,{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(o._tag){case"Single":return{...i,...R(r)(o.executionResult)};case"Batch":return{...i,data:o.executionResults.map(R(r))};default:h(o)}},R=e=>r=>({extensions:r.extensions,data:r.data,errors:"all"===e.fetchOptions.errorPolicy?r.errors:void 0}),T=async(e,r)=>{const t=e.headers.get(w),s=await e.text();return t&&(e=>{const r=e.toLowerCase();return r.includes(b)||r.includes(v)})(t)?O(r.parse(s)):O(s)},P=e=>async r=>{const t=new Headers(r.headers);let s,a=null;if(t.has(y)||t.set(y,[b,v].join(", ")),"POST"===e){s=(r.fetchOptions.jsonSerializer??C).stringify(_(r)),"string"!=typeof s||t.has(w)||t.set(w,v)}else a=A(r);const n={method:e,headers:t,body:s,...r.fetchOptions};let o=new URL(r.url),i=n;if(r.middleware){const e=await Promise.resolve(r.middleware({...n,url:r.url,operationName:"Single"===r.request._tag?r.request.document.operationName:void 0,variables:r.request.variables})),{url:t,...s}=e;o=new URL(t),i=s}a&&a.forEach(((e,r)=>{o.searchParams.append(r,e)}));const u=r.fetch??fetch;return await u(o,i)},_=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return i(e.request.query,e.request.variables??[]).map((([e,r])=>({query:e,variables:r})));default:throw h(e.request)}},A=e=>{const r=e.fetchOptions.jsonSerializer??C,t=new URLSearchParams;switch(e.request._tag){case"Single":return t.append("query",x(e.request.document.expression)),e.request.variables&&t.append("variables",r.stringify(e.request.variables)),e.request.document.operationName&&t.append("operationName",e.request.document.operationName),t;case"Batch":{const s=e.request.variables?.map((e=>r.stringify(e)))??[],a=e.request.query.map(x),n=i(a,s).map((([e,r])=>({query:e,variables:r})));return t.append("query",r.stringify(n)),t}default:throw h(e.request)}};class H{url;requestConfig;constructor(e,r={}){this.url=e,this.requestConfig=r}rawRequest=async(...e)=>{const[r,t,s]=e,a=((e,r,t)=>e.query?e:{query:e,variables:r,requestHeaders:t,signal:void 0})(r,t,s),{headers:n,fetch:i=globalThis.fetch,method:c="POST",requestMiddleware:l,responseMiddleware:d,excludeOperationName:h,...p}=this.requestConfig,{url:f}=this;void 0!==a.signal&&(p.signal=a.signal);const m=j(a.query,h),g=await M({url:f,request:{_tag:"Single",document:m,variables:a.variables},headers:{...u(o(n)),...u(a.requestHeaders)},fetch:i,method:c,fetchOptions:p,middleware:l});if(d&&await d(g,{operationName:m.operationName,variables:t,url:this.url}),g instanceof Error)throw g;return g};async request(e,...r){const[t,s]=r,a=B(e,t,s),{headers:n,fetch:i=globalThis.fetch,method:c="POST",requestMiddleware:l,responseMiddleware:d,excludeOperationName:h,...p}=this.requestConfig,{url:f}=this;void 0!==a.signal&&(p.signal=a.signal);const m=j(a.document,h),g=await M({url:f,request:{_tag:"Single",document:m,variables:a.variables},headers:{...u(o(n)),...u(a.requestHeaders)},fetch:i,method:c,fetchOptions:p,middleware:l});if(d&&await d(g,{operationName:m.operationName,variables:a.variables,url:this.url}),g instanceof Error)throw g;return g.data}async batchRequests(e,r){const t=((e,r)=>e.documents?e:{documents:e,requestHeaders:r,signal:void 0})(e,r),{headers:s,excludeOperationName:a,...n}=this.requestConfig;void 0!==t.signal&&(n.signal=t.signal);const i=t.documents.map((({document:e})=>j(e,a))),c=i.map((({expression:e})=>e)),l=i.some((({isMutation:e})=>e)),d=t.documents.map((({variables:e})=>e)),h=await M({url:this.url,request:{_tag:"Batch",operationName:void 0,query:c,hasMutations:l,variables:d},headers:{...u(o(s)),...u(t.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:n,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(h,{operationName:void 0,variables:d,url:this.url}),h instanceof Error)throw h;return h.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,r){const{headers:t}=this.requestConfig;return t?t[e]=r:this.requestConfig.headers={[e]:r},this}setEndpoint(e){return this.url=e,this}}async function I(e,r,...t){const s=$(e,r,...t);return new H(s.url).request({...s})}const B=(e,r,t)=>e.document?e:{document:e,variables:r,requestHeaders:t,signal:void 0},$=(e,r,...t)=>{const[s,a]=t;return"string"==typeof e?{url:e,document:r,variables:s,requestHeaders:a,signal:void 0}:e},U=(e,...r)=>e.reduce(((e,t,s)=>`${e}${t}${s in r?String(r[s]):""}`),"");export{a as ClientError,H as GraphQLClient,j as analyzeDocument,f as batchRequests,I as default,U as gql,g as rawRequest,I as request};
|
|
8
|
+
//# sourceMappingURL=/sm/ee02c6b92776d331ec94ebeb7388b906e9aa60ec5aa3d6db5c9e4ae1a17dd445.map
|
package/utils/index.html
ADDED
|
@@ -0,0 +1,51 @@
|
|
|
1
|
+
<!DOCTYPE html>
|
|
2
|
+
<html lang="en" data-theme="light">
|
|
3
|
+
<head>
|
|
4
|
+
<meta charset="utf-8" />
|
|
5
|
+
<title>Github-card</title>
|
|
6
|
+
<link rel="stylesheet" href="./css/theme-light.css" id="theme-link">
|
|
7
|
+
<link rel="apple-touch-icon" sizes="180x180" href="./images/favicon_io/apple-touch-icon.png">
|
|
8
|
+
<link rel="icon" type="image/png" sizes="32x32" href="./images/favicon_io/favicon-32x32.png">
|
|
9
|
+
<link rel="icon" type="image/png" sizes="16x16" href="./images/favicon_io/favicon-16x16.png">
|
|
10
|
+
<link rel="manifest" href="./images/favicon_io/site.webmanifest">
|
|
11
|
+
<script type="text/javascript">
|
|
12
|
+
function setTheme() {
|
|
13
|
+
selectElement = document.querySelector('#theme');
|
|
14
|
+
output = selectElement.value;
|
|
15
|
+
document.querySelector('html').setAttribute('data-theme', output);
|
|
16
|
+
document.getElementById('theme-link').setAttribute('href', './css/theme-' + output + '.css');
|
|
17
|
+
}
|
|
18
|
+
function setStyle() {
|
|
19
|
+
selectElement = document.querySelector('#style');
|
|
20
|
+
output = selectElement.value;
|
|
21
|
+
document.querySelector('github-card').setAttribute('data-style', output);
|
|
22
|
+
}
|
|
23
|
+
</script>
|
|
24
|
+
<style>
|
|
25
|
+
body {
|
|
26
|
+
margin: 0;
|
|
27
|
+
padding: 0;
|
|
28
|
+
}
|
|
29
|
+
</style>
|
|
30
|
+
</head>
|
|
31
|
+
<body onload="setTheme();">
|
|
32
|
+
<div style="max-width:1200px;text-align:center;">
|
|
33
|
+
<p>Theme:
|
|
34
|
+
<select id="theme">
|
|
35
|
+
<option value="light">Light</option>
|
|
36
|
+
<option value="dark">Dark</option>
|
|
37
|
+
</select>
|
|
38
|
+
<button onclick="setTheme()">Change theme</button>
|
|
39
|
+
| Style:
|
|
40
|
+
<select id="style">
|
|
41
|
+
<option value="defaultTheme">Default</option>
|
|
42
|
+
<option value="cloud">Cloud</option>
|
|
43
|
+
<option value="polygon">Polygon</option>
|
|
44
|
+
</select>
|
|
45
|
+
<button onclick="setStyle()">Change style</button>
|
|
46
|
+
</p>
|
|
47
|
+
</div>
|
|
48
|
+
<github-card data-style="defaultTheme" data-user="carlesloriente" data-user-stars="true" data-user-stats='[{"name": "commits"}, {"name": "contributions"}, {"name": "followers"}, {"name": "following"}, {"name": "prs"}]'></github-card>
|
|
49
|
+
<script type="module" src="./yagc.js"></script>
|
|
50
|
+
</body>
|
|
51
|
+
</html>
|
|
@@ -0,0 +1,8 @@
|
|
|
1
|
+
/**
|
|
2
|
+
* Bundled by jsDelivr using Rollup v2.79.1 and Terser v5.19.2.
|
|
3
|
+
* Original file: /npm/graphql-request@7.0.0/build/entrypoints/main.js
|
|
4
|
+
*
|
|
5
|
+
* Do NOT use SRI with dynamically generated files! More information: https://www.jsdelivr.com/using-sri-with-dynamic-files
|
|
6
|
+
*/
|
|
7
|
+
import"node:fs/promises";import{Kind as e}from"/npm/graphql@16.8.1/+esm";import{OperationTypeNode as r}from"/npm/graphql@16.8.1/language/ast.js/+esm";import{parse as t}from"/npm/graphql@16.8.1/language/parser.js/+esm";import{print as s}from"/npm/graphql@16.8.1/language/printer.js/+esm";class a extends Error{response;request;constructor(e,r){super(`${a.extractMessage(e)}: ${JSON.stringify({response:e,request:r})}`),Object.setPrototypeOf(this,a.prototype),this.response=e,this.request=r,"function"==typeof Error.captureStackTrace&&Error.captureStackTrace(this,a)}static extractMessage(e){return e.errors?.[0]?.message??`GraphQL Error (Code: ${String(e.status)})`}}const n=e=>e.toUpperCase(),o=e=>"function"==typeof e?e():e,i=(e,r)=>e.map(((e,t)=>[e,r[t]])),u=e=>{let r={};return e instanceof Headers?r=c(e):Array.isArray(e)?e.forEach((([e,t])=>{e&&void 0!==t&&(r[e]=t)})):e&&(r=e),r},c=e=>{const r={};return e.forEach(((e,t)=>{r[t]=e})),r},l=e=>e instanceof Error?e:new Error(String(e)),d=e=>"object"==typeof e&&null!==e&&"then"in e&&"function"==typeof e.then&&"catch"in e&&"function"==typeof e.catch&&"finally"in e&&"function"==typeof e.finally,h=e=>{throw new Error(`Unhandled case: ${String(e)}`)},p=e=>"object"==typeof e&&null!==e&&!Array.isArray(e),f=async(...e)=>{const r=m(e);return new H(r.url).batchRequests(r)},m=e=>1===e.length?e[0]:{url:e[0],documents:e[1],requestHeaders:e[2],signal:void 0},g=async(...e)=>{const[r,t,...s]=e,a=q(r,t,...s);return new H(a.url).rawRequest({...a})},q=(e,r,...t)=>{const[s,a]=t;return"string"==typeof e?{url:e,query:r,variables:s,requestHeaders:a,signal:void 0}:e},y="Accept",w="Content-Type",v="application/json",b="application/graphql-response+json",x=e=>e.replace(/([\s,]|#[^\n\r]+)+/g," ").trim(),O=e=>{try{if(Array.isArray(e))return{_tag:"Batch",executionResults:e.map(S)};if(p(e))return{_tag:"Single",executionResult:S(e)};throw new Error(`Invalid execution result: result is not object or array. \nGot:\n${String(e)}`)}catch(e){return e}},S=e=>{if("object"!=typeof e||null===e)throw new Error("Invalid execution result: result is not object");let r,t,s;if("errors"in e){if(!p(e.errors)&&!Array.isArray(e.errors))throw new Error("Invalid execution result: errors is not plain object OR array");r=e.errors}if("data"in e){if(!p(e.data)&&null!==e.data)throw new Error("Invalid execution result: data is not plain object");t=e.data}if("extensions"in e){if(!p(e.extensions))throw new Error("Invalid execution result: extensions is not plain object");s=e.extensions}return{data:t,errors:r,extensions:s}},N=e=>Array.isArray(e.errors)?e.errors.length>0:Boolean(e.errors),E=r=>"object"==typeof r&&null!==r&&"kind"in r&&r.kind===e.OPERATION_DEFINITION,j=(e,a)=>{const n="string"==typeof e?e:s(e);let o,i=!1;if(a)return{expression:n,isMutation:i,operationName:o};const u=(e=>{try{const r=e();return d(r)?r.catch((e=>l(e))):r}catch(e){return l(e)}})((()=>"string"==typeof e?t(e):e));return u instanceof Error?{expression:n,isMutation:i,operationName:o}:(o=(e=>{let r;const t=e.definitions.filter(E);return 1===t.length&&(r=t[0].name?.value),r})(u),i=(e=>{let t=!1;const s=e.definitions.filter(E);return 1===s.length&&(t=s[0].operation===r.MUTATION),t})(u),{expression:n,operationName:o,isMutation:i})},C=JSON,M=async e=>{const r={...e,method:"Single"===e.request._tag?e.request.document.isMutation?"POST":n(e.method??"post"):e.request.hasMutations?"POST":n(e.method??"post"),fetchOptions:{...e.fetchOptions,errorPolicy:e.fetchOptions.errorPolicy??"none"}},t=P(r.method),s=await t(r);if(!s.ok)return new a({status:s.status,headers:s.headers},{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables});const o=await T(s,e.fetchOptions.jsonSerializer??C);if(o instanceof Error)throw o;const i={status:s.status,headers:s.headers};if((e=>"Batch"===e._tag?e.executionResults.some(N):N(e.executionResult))(o)&&"none"===r.fetchOptions.errorPolicy){const r="Batch"===o._tag?{...o.executionResults,...i}:{...o.executionResult,...i};return new a(r,{query:"Single"===e.request._tag?e.request.document.expression:e.request.query,variables:e.request.variables})}switch(o._tag){case"Single":return{...i,...R(r)(o.executionResult)};case"Batch":return{...i,data:o.executionResults.map(R(r))};default:h(o)}},R=e=>r=>({extensions:r.extensions,data:r.data,errors:"all"===e.fetchOptions.errorPolicy?r.errors:void 0}),T=async(e,r)=>{const t=e.headers.get(w),s=await e.text();return t&&(e=>{const r=e.toLowerCase();return r.includes(b)||r.includes(v)})(t)?O(r.parse(s)):O(s)},P=e=>async r=>{const t=new Headers(r.headers);let s,a=null;if(t.has(y)||t.set(y,[b,v].join(", ")),"POST"===e){s=(r.fetchOptions.jsonSerializer??C).stringify(_(r)),"string"!=typeof s||t.has(w)||t.set(w,v)}else a=A(r);const n={method:e,headers:t,body:s,...r.fetchOptions};let o=new URL(r.url),i=n;if(r.middleware){const e=await Promise.resolve(r.middleware({...n,url:r.url,operationName:"Single"===r.request._tag?r.request.document.operationName:void 0,variables:r.request.variables})),{url:t,...s}=e;o=new URL(t),i=s}a&&a.forEach(((e,r)=>{o.searchParams.append(r,e)}));const u=r.fetch??fetch;return await u(o,i)},_=e=>{switch(e.request._tag){case"Single":return{query:e.request.document.expression,variables:e.request.variables,operationName:e.request.document.operationName};case"Batch":return i(e.request.query,e.request.variables??[]).map((([e,r])=>({query:e,variables:r})));default:throw h(e.request)}},A=e=>{const r=e.fetchOptions.jsonSerializer??C,t=new URLSearchParams;switch(e.request._tag){case"Single":return t.append("query",x(e.request.document.expression)),e.request.variables&&t.append("variables",r.stringify(e.request.variables)),e.request.document.operationName&&t.append("operationName",e.request.document.operationName),t;case"Batch":{const s=e.request.variables?.map((e=>r.stringify(e)))??[],a=e.request.query.map(x),n=i(a,s).map((([e,r])=>({query:e,variables:r})));return t.append("query",r.stringify(n)),t}default:throw h(e.request)}};class H{url;requestConfig;constructor(e,r={}){this.url=e,this.requestConfig=r}rawRequest=async(...e)=>{const[r,t,s]=e,a=((e,r,t)=>e.query?e:{query:e,variables:r,requestHeaders:t,signal:void 0})(r,t,s),{headers:n,fetch:i=globalThis.fetch,method:c="POST",requestMiddleware:l,responseMiddleware:d,excludeOperationName:h,...p}=this.requestConfig,{url:f}=this;void 0!==a.signal&&(p.signal=a.signal);const m=j(a.query,h),g=await M({url:f,request:{_tag:"Single",document:m,variables:a.variables},headers:{...u(o(n)),...u(a.requestHeaders)},fetch:i,method:c,fetchOptions:p,middleware:l});if(d&&await d(g,{operationName:m.operationName,variables:t,url:this.url}),g instanceof Error)throw g;return g};async request(e,...r){const[t,s]=r,a=B(e,t,s),{headers:n,fetch:i=globalThis.fetch,method:c="POST",requestMiddleware:l,responseMiddleware:d,excludeOperationName:h,...p}=this.requestConfig,{url:f}=this;void 0!==a.signal&&(p.signal=a.signal);const m=j(a.document,h),g=await M({url:f,request:{_tag:"Single",document:m,variables:a.variables},headers:{...u(o(n)),...u(a.requestHeaders)},fetch:i,method:c,fetchOptions:p,middleware:l});if(d&&await d(g,{operationName:m.operationName,variables:a.variables,url:this.url}),g instanceof Error)throw g;return g.data}async batchRequests(e,r){const t=((e,r)=>e.documents?e:{documents:e,requestHeaders:r,signal:void 0})(e,r),{headers:s,excludeOperationName:a,...n}=this.requestConfig;void 0!==t.signal&&(n.signal=t.signal);const i=t.documents.map((({document:e})=>j(e,a))),c=i.map((({expression:e})=>e)),l=i.some((({isMutation:e})=>e)),d=t.documents.map((({variables:e})=>e)),h=await M({url:this.url,request:{_tag:"Batch",operationName:void 0,query:c,hasMutations:l,variables:d},headers:{...u(o(s)),...u(t.requestHeaders)},fetch:this.requestConfig.fetch??globalThis.fetch,method:this.requestConfig.method||"POST",fetchOptions:n,middleware:this.requestConfig.requestMiddleware});if(this.requestConfig.responseMiddleware&&await this.requestConfig.responseMiddleware(h,{operationName:void 0,variables:d,url:this.url}),h instanceof Error)throw h;return h.data}setHeaders(e){return this.requestConfig.headers=e,this}setHeader(e,r){const{headers:t}=this.requestConfig;return t?t[e]=r:this.requestConfig.headers={[e]:r},this}setEndpoint(e){return this.url=e,this}}async function I(e,r,...t){const s=$(e,r,...t);return new H(s.url).request({...s})}const B=(e,r,t)=>e.document?e:{document:e,variables:r,requestHeaders:t,signal:void 0},$=(e,r,...t)=>{const[s,a]=t;return"string"==typeof e?{url:e,document:r,variables:s,requestHeaders:a,signal:void 0}:e},U=(e,...r)=>e.reduce(((e,t,s)=>`${e}${t}${s in r?String(r[s]):""}`),"");export{a as ClientError,H as GraphQLClient,j as analyzeDocument,f as batchRequests,I as default,U as gql,g as rawRequest,I as request};
|
|
8
|
+
//# sourceMappingURL=/sm/ee02c6b92776d331ec94ebeb7388b906e9aa60ec5aa3d6db5c9e4ae1a17dd445.map
|
package/utils/key.pem
ADDED
|
@@ -0,0 +1,28 @@
|
|
|
1
|
+
-----BEGIN PRIVATE KEY-----
|
|
2
|
+
MIIEvQIBADANBgkqhkiG9w0BAQEFAASCBKcwggSjAgEAAoIBAQDcX/cMJtLvc4+1
|
|
3
|
+
ekDrfDcRPSrKH3cMwDLEv2qw0r5ZJxmlU+v+e3zzDcTZvl0DmNEQ/4ypU1qDtUd1
|
|
4
|
+
NscU6ab0evT3T76rMI/9+Ot1gvFcEXWWuW6u1HAdG0vXezzPPXpt6ogTAgABhBkW
|
|
5
|
+
1hYC0IP9Mf5MLPA6HGk1oRFhsmaDaKYi4iJFk0+GYyzzPaHK113CdQJ5tyE3MCv5
|
|
6
|
+
o75aQOGuKybxs8m6gfW10ci+tm8dPOnlTk7eKiBIua3HKvB/rzNf3OyvhoMXHDue
|
|
7
|
+
HYPeya1swvYxSAWsiuCJ/zFITfm6EcMIeXnvyHkOImrgX0B07WmJP7aE5qbW+/Qs
|
|
8
|
+
DU81CCDrAgMBAAECggEACa+cG6gfMFAbemX/sXn5r6PJHC4q3OAbuyMQrOnuXNvH
|
|
9
|
+
mEkqf7pswQATbWCdFPnkAoPA6nZT7aMLm37HXEdyw58d4jrajgqp4YdNzhHtytan
|
|
10
|
+
nPLUhxGmRdk7yaJMh21T0r3ysict2eM0+Rh6yi/hBUFrxGxbOKqkAyvrqCgfslnT
|
|
11
|
+
vn4Zj6QuNEOYT7Za+IBHZ97fnLWXjVbsPC0AiKpTZQuRNnNitHhzmt3SFXevQSef
|
|
12
|
+
4iaIhFwCht5uOfmkQuAxaeNJXOZZKT7k9yMJMtHHcAYvjyvyUUidvDrINgnFKiG2
|
|
13
|
+
9l1FXYj5mAiSP+SUWe8gJf58iWJyDQ04vUZuYs0ZLQKBgQD6yiz21tL+CupzGQTW
|
|
14
|
+
jGP1tdgIw6NNqnVJJ4/IeDpdIPOLaTMrrVgEmMWTuqNR+D6Z3pTk6G+7uUBvoW4Y
|
|
15
|
+
0jbjeC2GEeZMM0XGAYA6SaOxIh3VVZ6OlNuANUJ35OMpP7CQZqIStFy0JspZPfX8
|
|
16
|
+
ryNpQSnpJR+6D+cMhDN5bkn5VQKBgQDg9AcmkU0ySuuLNgNovY/mDvzqdkrnmMZM
|
|
17
|
+
tF+HWphD0ZvVeiP/VhISlyqbMd11f750IP5oxQXmozURfzNVkLk1Xn2+I7eVLSdF
|
|
18
|
+
ZShBdqqx92dxWHv2hD/4wz/ze65t1lR7AznayOv1KUYAnks0LJLCSB4b8yF+IWW1
|
|
19
|
+
nsVKfbCxPwKBgCPXPPHR5bl0qejlDHH1AlwdLtCh1PbGg5h+1OebdwvUJ7omwK9f
|
|
20
|
+
SJLvmlzwcWLHjXrD+pd0OHOll/XcJjXZ5QpBJJBign0lXrVbhY3O9FveOlFAuTY7
|
|
21
|
+
Q9tgwS0NQwGkHoGkiUkPCaidWpHCbyM7jF4AeBLfwVb/6s85HXofLuc5AoGAW7ZB
|
|
22
|
+
wBCXN3ziARSZWTeHllTf+jsWGMvpdNZI6CcgUu3/KY6tZGlT3u5weWtgDYpyPGhD
|
|
23
|
+
MLW6zSgW97YzWJwzVjXa8A0hyJjrHNi8C8x0lS/3pXdcusl6R1JbHUp8d91c/fX3
|
|
24
|
+
vWITCRW1q4Tdxjyx7LF4TQ7XxdOZ4u0DJHaP9gMCgYEAnhCEZgMfpiSuDETkTJM5
|
|
25
|
+
OMY/OZbn9OXjBgBlR/01VMhRSlqqHU0tMmqUpe0z1ylA/j+MeamHVm4qIv8jYWXU
|
|
26
|
+
RHTBxdh45C5mas9XzlJUotdWAv53DT4SIx4J9eGVb+OGZkuaCzse6d1D33+o4zx0
|
|
27
|
+
0IERV+YLkb1p+ZZqLfw2U9Y=
|
|
28
|
+
-----END PRIVATE KEY-----
|