Skip to content

Commit

Permalink
init
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Nov 4, 2024
1 parent f61dec6 commit 29d776b
Show file tree
Hide file tree
Showing 21 changed files with 5,004 additions and 312 deletions.
1 change: 1 addition & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
NEAR_ENV="mainnet"
3 changes: 3 additions & 0 deletions .eslintrc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
{
"extends": "next/core-web-vitals"
}
4 changes: 4 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,7 @@ next-env.d.ts
/playwright-report/
/blob-report/
/playwright/.cache/

# bitte
.env
bitte.dev.json
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@

<div align="center">

<h1 style="font-size: 2.5rem; font-weight: bold;">Project Title</h1>
<h1 style="font-size: 2.5rem; font-weight: bold;">NEAR Roast Agent</h1>

<p>
<strong>This is a basic project template for new Build DAO projects</strong>
<strong>provide a near account and get roasted on your on-chain activity</strong>
</p>

</div>
Expand Down
40 changes: 40 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
webpack: (config, { isServer }) => {
if (isServer) {
config.externals.push("@ref-finance/ref-sdk");
}
return config;
},

async headers() {
return [
{
source: "/api/:path*",
headers: [
{ key: "Access-Control-Allow-Credentials", value: "true" },
{ key: "Access-Control-Allow-Origin", value: "*" },
{
key: "Access-Control-Allow-Methods",
value: "GET,DELETE,PATCH,POST,PUT",
},
{
key: "Access-Control-Allow-Headers",
value:
"X-CSRF-Token, X-Requested-With, Accept, Accept-Version, Content-Length, Content-MD5, Content-Type, Date, X-Api-Version",
},
],
},
];
},
async rewrites() {
return [
{
source: "/.well-known/ai-plugin.json",
destination: "/api/ai-plugin"
}
]
},
};

export default nextConfig;
32 changes: 27 additions & 5 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,12 +1,14 @@
{
"name": "builddao-project-template",
"name": "near-roast-agent",
"version": "0.0.1",
"homepage": "/",
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint",
"fmt": "prettier --write '**/*.{js,jsx,ts,tsx,json}'",
"fmt:check": "prettier --check '**/*.{js,jsx,ts,tsx,json}'",
"test": "npx playwright test",
"test:ui": "npx playwright test --ui"
"fmt:check": "prettier --check '**/*.{js,jsx,ts,tsx,json}'"
},
"browserslist": {
"production": [
Expand All @@ -21,7 +23,27 @@
]
},
"devDependencies": {
"@playwright/test": "^1.46.1",
"@types/big.js": "^6.2.2",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5",
"prettier": "^3.3.3"
},
"dependencies": {
"@elysiajs/swagger": "^1.0.5",
"@ref-finance/ref-sdk": "^1.3.8",
"big.js": "^6.2.1",
"elysia": "^1.0.16",
"fuse.js": "^7.0.0",
"make-agent": "0.0.24-rc.2",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
"vercel-url": "^0.2.1"
}
}
84 changes: 0 additions & 84 deletions playwright-tests/README.md

This file was deleted.

27 changes: 0 additions & 27 deletions playwright-tests/storage-states/admin-connected.json

This file was deleted.

27 changes: 0 additions & 27 deletions playwright-tests/storage-states/wallet-connected.json

This file was deleted.

10 changes: 0 additions & 10 deletions playwright-tests/storage-states/wallet-not-connected.json

This file was deleted.

18 changes: 0 additions & 18 deletions playwright-tests/tests/example.spec.ts

This file was deleted.

100 changes: 0 additions & 100 deletions playwright.config.js

This file was deleted.

Loading

0 comments on commit 29d776b

Please sign in to comment.