Skip to content

Commit

Permalink
reset app
Browse files Browse the repository at this point in the history
  • Loading branch information
elliotBraem committed Sep 10, 2024
1 parent 32d2185 commit 9307a95
Show file tree
Hide file tree
Showing 167 changed files with 8,006 additions and 17,748 deletions.
4 changes: 4 additions & 0 deletions .env
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEAR_ENV="mainnet"
WORDWARE_API_KEY=ww-EILklum48Z4I1tNMEA6jy6swcXzeeVc7X1Py3dYawBQ0TxGghrIpAy
WORDWARE_API_URL=https://app.wordware.ai/api/released-app/8c7b882d-fdf1-448d-b2a8-3873df0f38af/run
WORDWARE_API_VERSION=^3.12
4 changes: 4 additions & 0 deletions .env.example
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
NEAR_ENV="mainnet"
WORDWARE_API_KEY=
WORDWARE_API_URL=
WORDWARE_API_VERSION=
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"
}
9 changes: 0 additions & 9 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@
/.pnp
.pnp.js
.yarn/install-state.gz
/.unlighthouse

# testing
/coverage
Expand All @@ -28,18 +27,10 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
/test-results/
/playwright-report/
/blob-report/
/playwright/.cache/

package-lock.json
yarn.lock
35 changes: 0 additions & 35 deletions docker-compose.yml

This file was deleted.

22 changes: 0 additions & 22 deletions models/account.zmodel

This file was deleted.

30 changes: 0 additions & 30 deletions models/project.zmodel

This file was deleted.

11 changes: 0 additions & 11 deletions models/ragVector.zmodel

This file was deleted.

13 changes: 0 additions & 13 deletions models/role.zmodel

This file was deleted.

15 changes: 0 additions & 15 deletions models/roleData.zmodel

This file was deleted.

36 changes: 0 additions & 36 deletions models/schema.zmodel

This file was deleted.

11 changes: 0 additions & 11 deletions models/session.zmodel

This file was deleted.

15 changes: 0 additions & 15 deletions models/staff.zmodel

This file was deleted.

16 changes: 0 additions & 16 deletions models/task.zmodel

This file was deleted.

26 changes: 0 additions & 26 deletions models/user.zmodel

This file was deleted.

21 changes: 0 additions & 21 deletions next.config.js

This file was deleted.

32 changes: 32 additions & 0 deletions next.config.mjs
Original file line number Diff line number Diff line change
@@ -0,0 +1,32 @@
/** @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",
},
],
},
];
},
};

export default nextConfig;
39 changes: 39 additions & 0 deletions package copy.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
{
"name": "ref-agent",
"version": "0.1.0",
"private": true,
"scripts": {
"dev": "next dev",
"build": "next build",
"start": "next start",
"lint": "next lint"
},
"dependencies": {
"@elysiajs/swagger": "^1.0.5",
"@ref-finance/ref-sdk": "^1.3.8",
"axios": "^1.7.7",
"big.js": "^6.2.1",
"elysia": "^1.0.16",
"fuse.js": "^7.0.0",
"next": "14.2.3",
"react": "^18",
"react-dom": "^18",
"react-markdown": "^9.0.1",
"react-syntax-highlighter": "^15.5.0",
"solid": "link:@heroicons/react/solid",
"stream": "^0.0.3",
"zod": "^3.23.8"
},
"devDependencies": {
"@types/big.js": "^6.2.2",
"@types/node": "^20",
"@types/react": "^18",
"@types/react-dom": "^18",
"@types/react-syntax-highlighter": "^15.5.13",
"eslint": "^8",
"eslint-config-next": "14.2.3",
"postcss": "^8",
"tailwindcss": "^3.4.1",
"typescript": "^5"
}
}
Loading

0 comments on commit 9307a95

Please sign in to comment.