Skip to content

Commit bf536d9

Browse files
authored
v0.0.9
1 parent c4d0475 commit bf536d9

15 files changed

+85
-21
lines changed

.npmignore

+16
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,16 @@
1+
node_modules
2+
dist
3+
coverage
4+
.env
5+
docs/.yarn/
6+
.yarn/*
7+
!.yarn/patches
8+
!.yarn/plugins
9+
!.yarn/releases
10+
!.yarn/sdks
11+
!.yarn/versions
12+
.next
13+
test/**/*
14+
rollup.config.js
15+
tsconfig.json
16+
src/**/*
6.45 KB
Loading
12.9 KB
Loading

docs/public/apple-touch-icon.png

6.04 KB
Loading

docs/public/favicon-16x16.png

903 Bytes
Loading

docs/public/favicon-32x32.png

1.71 KB
Loading

docs/public/favicon.ico

14.7 KB
Binary file not shown.

docs/theme.config.tsx

+47
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,9 @@
11
import React from 'react';
22
import { DocsThemeConfig } from 'nextra-theme-docs';
33
import Image from 'next/image';
4+
import { useRouter } from 'next/router';
5+
6+
const SITE_ROOT = 'https://sdk.poap.tech';
47

58
const config: DocsThemeConfig = {
69
logo: <Image src={'/poap-logo.svg'} alt="as" width={40} height={40} />,
@@ -11,6 +14,50 @@ const config: DocsThemeConfig = {
1114
footer: {
1215
text: 'POAP © 2023',
1316
},
17+
useNextSeoProps() {
18+
return {
19+
titleTemplate: '%s – POAP.js',
20+
};
21+
},
22+
head: function Head() {
23+
const router = useRouter();
24+
const fullUrl =
25+
router.asPath === '/' ? SITE_ROOT : `${SITE_ROOT}${router.asPath}`;
26+
27+
return (
28+
<>
29+
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
30+
<link
31+
rel="apple-touch-icon"
32+
sizes="180x180"
33+
href={`/apple-touch-icon.png`}
34+
/>
35+
<link
36+
rel="icon"
37+
type="image/png"
38+
sizes="32x32"
39+
href={`/favicon-32x32.png`}
40+
/>
41+
<link
42+
rel="icon"
43+
type="image/png"
44+
sizes="16x16"
45+
href={`/favicon-16x16.png`}
46+
/>
47+
<link rel="shortcut icon" href={`/favicon.ico`} />
48+
<meta name="twitter:card" content="summary_large_image" />
49+
<meta name="twitter:site" content="@poapxyz" />
50+
<meta name="twitter:creator" content="@poapxyz" />
51+
<meta property="og:type" content="website" />
52+
<meta property="og:url" content={fullUrl} />
53+
<link rel="canonical" href={fullUrl} />
54+
<meta property="twitter:image" content={SITE_ROOT + '/poap-logo.svg'} />
55+
<meta property="og:image" content={SITE_ROOT + '/poap-logo.svg'} />
56+
<meta property="og:locale" content="en_IE" />
57+
<meta property="og:site_name" content="POAP.js" />
58+
</>
59+
);
60+
},
1461
};
1562

1663
export default config;

docs/yarn.lock

+15-15
Original file line numberDiff line numberDiff line change
@@ -3982,21 +3982,6 @@ __metadata:
39823982
languageName: node
39833983
linkType: hard
39843984

3985-
"nextra-docs-template@workspace:.":
3986-
version: 0.0.0-use.local
3987-
resolution: "nextra-docs-template@workspace:."
3988-
dependencies:
3989-
"@svgr/webpack": ^7.0.0
3990-
"@types/node": 18.11.10
3991-
next: ^13.0.6
3992-
nextra: latest
3993-
nextra-theme-docs: latest
3994-
react: ^18.2.0
3995-
react-dom: ^18.2.0
3996-
typescript: ^4.9.3
3997-
languageName: unknown
3998-
linkType: soft
3999-
40003985
"nextra-theme-docs@npm:latest":
40013986
version: 2.4.2
40023987
resolution: "nextra-theme-docs@npm:2.4.2"
@@ -4206,6 +4191,21 @@ __metadata:
42064191
languageName: node
42074192
linkType: hard
42084193

4194+
"poap-js-documentation@workspace:.":
4195+
version: 0.0.0-use.local
4196+
resolution: "poap-js-documentation@workspace:."
4197+
dependencies:
4198+
"@svgr/webpack": ^7.0.0
4199+
"@types/node": 18.11.10
4200+
next: ^13.0.6
4201+
nextra: latest
4202+
nextra-theme-docs: latest
4203+
react: ^18.2.0
4204+
react-dom: ^18.2.0
4205+
typescript: ^4.9.3
4206+
languageName: unknown
4207+
linkType: soft
4208+
42094209
"postcss@npm:8.4.14":
42104210
version: 8.4.14
42114211
resolution: "postcss@npm:8.4.14"

packages/attributes/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@poap-xyz/attributes",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Registry module for the poap.js library",
55
"main": "dist/cjs/index.cjs",
66
"module": "dist/esm/index.mjs",

packages/drops/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@poap-xyz/drops",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Drops module for the poap.js library",
55
"main": "dist/cjs/index.cjs",
66
"module": "dist/esm/index.mjs",

packages/moments/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@poap-xyz/moments",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Moments module for the poap.js library",
55
"main": "dist/cjs/index.cjs",
66
"module": "dist/esm/index.mjs",

packages/providers/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@poap-xyz/providers",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Providers module for the poap.js library",
55
"main": "dist/cjs/index.cjs",
66
"module": "dist/esm/index.mjs",

packages/providers/src/core/PoapMomentsApi/PoapMomentsApi.ts

+2-1
Original file line numberDiff line numberDiff line change
@@ -68,7 +68,8 @@ export class PoapMomentsApi implements MomentsApiProvider {
6868
);
6969
status = response.status;
7070
} catch (error) {
71-
console.log('Error while getting media: ', error);
71+
// TODO: Throw error if status is not 404
72+
//console.log('Error while getting media: ', error);
7273
}
7374

7475
await new Promise((resolve) => setTimeout(resolve, 2000));

packages/utils/package.json

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
22
"name": "@poap-xyz/utils",
3-
"version": "0.0.8",
3+
"version": "0.0.9",
44
"description": "Utils module for the poap.js library",
55
"type": "module",
66
"main": "dist/cjs/index.cjs",

0 commit comments

Comments
 (0)