Skip to content

Commit

Permalink
Merge pull request #11 from HausDAO/update-metadata
Browse files Browse the repository at this point in the history
Generate manifest, add images, update layout
  • Loading branch information
earth2travis authored Jan 22, 2025
2 parents 78cff3f + 8775103 commit 1b07707
Show file tree
Hide file tree
Showing 6 changed files with 64 additions and 64 deletions.
70 changes: 35 additions & 35 deletions .eslintrc.js
Original file line number Diff line number Diff line change
@@ -1,48 +1,48 @@
module.exports = {
extends: ["next", "prettier"],
extends: ['next', 'prettier'],
plugins: [
"@typescript-eslint",
"ban",
"import",
"no-restricted-imports",
"react-hooks",
"react",
"simple-import-sort",
'@typescript-eslint',
'ban',
'import',
'no-restricted-imports',
'react-hooks',
'react',
'simple-import-sort',
],
rules: {
"@typescript-eslint/explicit-module-boundary-types": "off",
"@typescript-eslint/no-empty-interface": "off",
"@typescript-eslint/no-explicit-any": "error",
"@typescript-eslint/no-namespace": "off",
"@typescript-eslint/no-non-null-assertion": "off",
"@typescript-eslint/no-unused-vars": ["error", { argsIgnorePattern: "^_" }],
"@typescript-eslint/no-var-requires": "off",
"@next/next/no-html-link-for-pages": "off",
"@next/next/no-page-custom-font": "off",
eqeqeq: "error",
"import/no-default-export": "off",
"no-console": "off",
"no-duplicate-imports": "error",
"no-implicit-globals": "error",
"react/display-name": "off",
"react/prop-types": "off",
"react/jsx-key": "off",
"react/no-unescaped-entities": "off",
"react-hooks/rules-of-hooks": "error",
"react-hooks/exhaustive-deps": "error",
"simple-import-sort/imports": "off",
"simple-import-sort/exports": "off",
"no-restricted-imports": [
"error",
'@typescript-eslint/explicit-module-boundary-types': 'off',
'@typescript-eslint/no-empty-interface': 'off',
'@typescript-eslint/no-explicit-any': 'error',
'@typescript-eslint/no-namespace': 'off',
'@typescript-eslint/no-non-null-assertion': 'off',
'@typescript-eslint/no-unused-vars': ['error', { argsIgnorePattern: '^_' }],
'@typescript-eslint/no-var-requires': 'off',
'@next/next/no-html-link-for-pages': 'off',
'@next/next/no-page-custom-font': 'off',
eqeqeq: 'error',
'import/no-default-export': 'off',
'no-console': 'off',
'no-duplicate-imports': 'error',
'no-implicit-globals': 'error',
'react/display-name': 'off',
'react/prop-types': 'off',
'react/jsx-key': 'off',
'react/no-unescaped-entities': 'off',
'react-hooks/rules-of-hooks': 'error',
'react-hooks/exhaustive-deps': 'error',
'simple-import-sort/imports': 'off',
'simple-import-sort/exports': 'off',
'no-restricted-imports': [
'error',
{
paths: [
{
name: "lodash",
message: "Import [module] from lodash/[module] instead",
name: 'lodash',
message: 'Import [module] from lodash/[module] instead',
},
],
},
],
"valid-typeof": "error",
'valid-typeof': 'error',
},
};
20 changes: 10 additions & 10 deletions public/.well-known/farcaster.json
Original file line number Diff line number Diff line change
@@ -1,18 +1,18 @@
{
"accountAssociation": {
"header": "eyJmaWQiOjg4MzEyNSwidHlwZSI6ImN1c3RvZHkiLCJrZXkiOiIweDgxNWQ0YURjMTMwQzFBNkMzOTNiN0E0QzM2NzE4ZTZkNzE5MTlGMTUifQ",
"payload": "eyJkb21haW4iOiJ6b28uZmFyY2FzdGxlLm5ldCJ9",
"signature": "MHgyYWE4NzFiNjUzY2M3MzdkMTNlZDk3Y2ZkYzNjY2MxZjMxNDMzYzg1OTAyM2I5ZDdlYjhlY2I3MDdmM2Y3MDYxNTViYWNiODY3ODgwNzdmNDBlNmFlOWU5ZGE0Nzk0ZTZiZWQ3NTNhZDQyMTgxOWNhMDU3NTk0YmU2OGMxZmQ5OTFj"
"header": "eyJmaWQiOjg2MjA5MiwidHlwZSI6ImN1c3RvZHkiLCJrZXkiOiIweDg4MjhmNzMzODFDNzE3OUM2MjlEZjAzNzk0RGQ2QTUyRTU2Mjg5MjgifQ",
"payload": "eyJkb21haW4iOiJwcm9wb3NhbHMuZmFyY2FzdGxlLm5ldCJ9",
"signature": "MHgxN2JmN2Y3ZTA4ZmE4NDNjYTFjZTM0OWE3Y2U1NmEyN2JhMTAyOTk1OGMxYTEyYzQyMzk1ZDBjN2E2ODU4NDlkMGM1ZGFhMjMzZTIyNmM4Zjg4ZDE4YWU0Y2Q4ZGRlMzRjODZjNWU4MDQwYzQ4ODlhNjc0NWVjZDlmMjc3NDA1MzFj"
},
"frame": {
"version": "1",
"name": "Farcastle Proposals",
"iconUrl": "https://zoo.farcastle.net/icon.png",
"homeUrl": "https://zoo.farcastle.net",
"imageUrl": "https://zoo.farcastle.net/image.png",
"buttonTitle": "Create Proposals",
"splashImageUrl": "https://zoo.farcastle.net/splash.png",
"name": "Proposals",
"iconUrl": "https://proposals.farcastle.net/icon.png",
"homeUrl": "https://proposals.farcastle.net",
"imageUrl": "https://proposals.farcastle.net/image.png",
"buttonTitle": "Make Proposal",
"splashImageUrl": "https://proposals.farcastle.net/splash.png",
"splashBackgroundColor": "#341A34",
"webhookUrl": "https://zoo.farcastle.net/api/webhook"
"webhookUrl": "https://proposals.farcastle.net/api/webhook"
}
}
Binary file modified public/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 modified public/image.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 modified public/splash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
38 changes: 19 additions & 19 deletions src/app/layout.tsx
Original file line number Diff line number Diff line change
@@ -1,37 +1,37 @@
import "./globals.css";
import './globals.css';

import type { Metadata } from "next";
import type { Metadata } from 'next';

import { Header } from "@/components/ui/header";
import { Providers } from "@/providers/Providers";
import { Header } from '@/components/ui/header';
import { Providers } from '@/providers/Providers';

const frame = {
version: "next",
imageUrl: `https://zoo.farcastle.net/image.png`,
version: 'next',
imageUrl: `https://proposals.farcastle.net/image.png`,
button: {
title: "Farcastle Proposals",
title: 'Make Proposal',
action: {
type: "launch_frame",
name: "Farcastle Proposals",
url: "https://zoo.farcastle.net",
iconImageUrl: `https://zoo.farcastle.net/icon.png`,
splashImageUrl: `https://zoo.farcastle.net/splash.png`,
splashBackgroundColor: "#341A34",
type: 'launch_frame',
name: 'Proposals',
url: 'https://proposals.farcastle.net',
iconImageUrl: `https://proposals.farcastle.net/icon.png`,
splashImageUrl: `https://proposals.farcastle.net/splash.png`,
splashBackgroundColor: '#341A34',
},
},
};

export async function generateMetadata(): Promise<Metadata> {
return {
metadataBase: new URL("https://zoo.farcastle.net"),
title: "Farcastle Proposals",
metadataBase: new URL('https://proposals.farcastle.net'),
title: 'Proposals',
openGraph: {
title: "Farcastle Proposals",
description: "collection of cursed creatures",
images: `https://zoo.farcastle.net/image.png`,
title: 'Farcastle Proposals',
description: 'the actions of organizations',
images: `https://proposals.farcastle.net/image.png`,
},
other: {
"fc:frame": JSON.stringify(frame),
'fc:frame': JSON.stringify(frame),
},
};
}
Expand Down

0 comments on commit 1b07707

Please sign in to comment.