Skip to content

Commit

Permalink
v0.0.9
Browse files Browse the repository at this point in the history
  • Loading branch information
rlajous authored Apr 26, 2023
1 parent c4d0475 commit bf536d9
Show file tree
Hide file tree
Showing 15 changed files with 85 additions and 21 deletions.
16 changes: 16 additions & 0 deletions .npmignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
node_modules
dist
coverage
.env
docs/.yarn/
.yarn/*
!.yarn/patches
!.yarn/plugins
!.yarn/releases
!.yarn/sdks
!.yarn/versions
.next
test/**/*
rollup.config.js
tsconfig.json
src/**/*
Binary file added docs/public/android-chrome-192x192.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/android-chrome-512x512.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/apple-touch-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon-16x16.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon-32x32.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added docs/public/favicon.ico
Binary file not shown.
47 changes: 47 additions & 0 deletions docs/theme.config.tsx
Original file line number Diff line number Diff line change
@@ -1,6 +1,9 @@
import React from 'react';
import { DocsThemeConfig } from 'nextra-theme-docs';
import Image from 'next/image';
import { useRouter } from 'next/router';

const SITE_ROOT = 'https://sdk.poap.tech';

const config: DocsThemeConfig = {
logo: <Image src={'/poap-logo.svg'} alt="as" width={40} height={40} />,
Expand All @@ -11,6 +14,50 @@ const config: DocsThemeConfig = {
footer: {
text: 'POAP © 2023',
},
useNextSeoProps() {
return {
titleTemplate: '%s – POAP.js',
};
},
head: function Head() {
const router = useRouter();
const fullUrl =
router.asPath === '/' ? SITE_ROOT : `${SITE_ROOT}${router.asPath}`;

return (
<>
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<link
rel="apple-touch-icon"
sizes="180x180"
href={`/apple-touch-icon.png`}
/>
<link
rel="icon"
type="image/png"
sizes="32x32"
href={`/favicon-32x32.png`}
/>
<link
rel="icon"
type="image/png"
sizes="16x16"
href={`/favicon-16x16.png`}
/>
<link rel="shortcut icon" href={`/favicon.ico`} />
<meta name="twitter:card" content="summary_large_image" />
<meta name="twitter:site" content="@poapxyz" />
<meta name="twitter:creator" content="@poapxyz" />
<meta property="og:type" content="website" />
<meta property="og:url" content={fullUrl} />
<link rel="canonical" href={fullUrl} />
<meta property="twitter:image" content={SITE_ROOT + '/poap-logo.svg'} />
<meta property="og:image" content={SITE_ROOT + '/poap-logo.svg'} />
<meta property="og:locale" content="en_IE" />
<meta property="og:site_name" content="POAP.js" />
</>
);
},
};

export default config;
30 changes: 15 additions & 15 deletions docs/yarn.lock
Original file line number Diff line number Diff line change
Expand Up @@ -3982,21 +3982,6 @@ __metadata:
languageName: node
linkType: hard

"nextra-docs-template@workspace:.":
version: 0.0.0-use.local
resolution: "nextra-docs-template@workspace:."
dependencies:
"@svgr/webpack": ^7.0.0
"@types/node": 18.11.10
next: ^13.0.6
nextra: latest
nextra-theme-docs: latest
react: ^18.2.0
react-dom: ^18.2.0
typescript: ^4.9.3
languageName: unknown
linkType: soft

"nextra-theme-docs@npm:latest":
version: 2.4.2
resolution: "nextra-theme-docs@npm:2.4.2"
Expand Down Expand Up @@ -4206,6 +4191,21 @@ __metadata:
languageName: node
linkType: hard

"poap-js-documentation@workspace:.":
version: 0.0.0-use.local
resolution: "poap-js-documentation@workspace:."
dependencies:
"@svgr/webpack": ^7.0.0
"@types/node": 18.11.10
next: ^13.0.6
nextra: latest
nextra-theme-docs: latest
react: ^18.2.0
react-dom: ^18.2.0
typescript: ^4.9.3
languageName: unknown
linkType: soft

"postcss@npm:8.4.14":
version: 8.4.14
resolution: "postcss@npm:8.4.14"
Expand Down
2 changes: 1 addition & 1 deletion packages/attributes/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/attributes",
"version": "0.0.8",
"version": "0.0.9",
"description": "Registry module for the poap.js library",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/drops/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/drops",
"version": "0.0.8",
"version": "0.0.9",
"description": "Drops module for the poap.js library",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/moments/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/moments",
"version": "0.0.8",
"version": "0.0.9",
"description": "Moments module for the poap.js library",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
2 changes: 1 addition & 1 deletion packages/providers/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/providers",
"version": "0.0.8",
"version": "0.0.9",
"description": "Providers module for the poap.js library",
"main": "dist/cjs/index.cjs",
"module": "dist/esm/index.mjs",
Expand Down
3 changes: 2 additions & 1 deletion packages/providers/src/core/PoapMomentsApi/PoapMomentsApi.ts
Original file line number Diff line number Diff line change
Expand Up @@ -68,7 +68,8 @@ export class PoapMomentsApi implements MomentsApiProvider {
);
status = response.status;
} catch (error) {
console.log('Error while getting media: ', error);
// TODO: Throw error if status is not 404
//console.log('Error while getting media: ', error);
}

await new Promise((resolve) => setTimeout(resolve, 2000));
Expand Down
2 changes: 1 addition & 1 deletion packages/utils/package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "@poap-xyz/utils",
"version": "0.0.8",
"version": "0.0.9",
"description": "Utils module for the poap.js library",
"type": "module",
"main": "dist/cjs/index.cjs",
Expand Down

0 comments on commit bf536d9

Please sign in to comment.