Skip to content

Commit

Permalink
add admin ui
Browse files Browse the repository at this point in the history
  • Loading branch information
tomvictor committed Jun 8, 2023
1 parent 00d4265 commit c2e4929
Show file tree
Hide file tree
Showing 43 changed files with 686 additions and 4 deletions.
3 changes: 0 additions & 3 deletions .gitmodules

This file was deleted.

1 change: 0 additions & 1 deletion ui
Submodule ui deleted from dadcef
35 changes: 35 additions & 0 deletions ui/.gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,35 @@
# See https://help.github.com/articles/ignoring-files/ for more about ignoring files.

# dependencies
/node_modules
/.pnp
.pnp.js

# testing
/coverage

# next.js
/.next/
#/out/

# production
/build

# misc
.DS_Store
*.pem

# debug
npm-debug.log*
yarn-debug.log*
yarn-error.log*

# local env files
.env*.local

# vercel
.vercel

# typescript
*.tsbuildinfo
next-env.d.ts
34 changes: 34 additions & 0 deletions ui/README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,34 @@
This is a [Next.js](https://nextjs.org/) project bootstrapped with [`create-next-app`](https://github.com/vercel/next.js/tree/canary/packages/create-next-app).

## Getting Started

First, run the development server:

```bash
npm run dev
# or
yarn dev
# or
pnpm dev
```

Open [http://localhost:3000](http://localhost:3000) with your browser to see the result.

You can start editing the page by modifying `app/page.tsx`. The page auto-updates as you edit the file.

This project uses [`next/font`](https://nextjs.org/docs/basic-features/font-optimization) to automatically optimize and load Inter, a custom Google Font.

## Learn More

To learn more about Next.js, take a look at the following resources:

- [Next.js Documentation](https://nextjs.org/docs) - learn about Next.js features and API.
- [Learn Next.js](https://nextjs.org/learn) - an interactive Next.js tutorial.

You can check out [the Next.js GitHub repository](https://github.com/vercel/next.js/) - your feedback and contributions are welcome!

## Deploy on Vercel

The easiest way to deploy your Next.js app is to use the [Vercel Platform](https://vercel.com/new?utm_medium=default-template&filter=next.js&utm_source=create-next-app&utm_campaign=create-next-app-readme) from the creators of Next.js.

Check out our [Next.js deployment documentation](https://nextjs.org/docs/deployment) for more details.
8 changes: 8 additions & 0 deletions ui/next.config.js
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
output: 'export',
basePath: '/admin',
assetPrefix: '/admin/',
}

module.exports = nextConfig
1 change: 1 addition & 0 deletions ui/out/404.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html><head><meta charSet="utf-8"/><meta name="viewport" content="width=device-width"/><title>404: This page could not be found</title><meta name="next-head-count" content="3"/><noscript data-n-css=""></noscript><script defer="" nomodule="" src="/admin/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js"></script><script src="/admin/_next/static/chunks/webpack-c5cf58328a6babb8.js" defer=""></script><script src="/admin/_next/static/chunks/framework-8883d1e9be70c3da.js" defer=""></script><script src="/admin/_next/static/chunks/main-5188e4be4e106d04.js" defer=""></script><script src="/admin/_next/static/chunks/pages/_app-b555d5e1eab47959.js" defer=""></script><script src="/admin/_next/static/chunks/pages/_error-d79168f986538ac0.js" defer=""></script><script src="/admin/_next/static/upncyyplpeRa-yG-6xKMf/_buildManifest.js" defer=""></script><script src="/admin/_next/static/upncyyplpeRa-yG-6xKMf/_ssgManifest.js" defer=""></script></head><body><div id="__next"><div style="font-family:system-ui,&quot;Segoe UI&quot;,Roboto,Helvetica,Arial,sans-serif,&quot;Apple Color Emoji&quot;,&quot;Segoe UI Emoji&quot;;height:100vh;text-align:center;display:flex;flex-direction:column;align-items:center;justify-content:center"><div><style>body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}</style><h1 class="next-error-h1" style="display:inline-block;margin:0 20px 0 0;padding-right:23px;font-size:24px;font-weight:500;vertical-align:top;line-height:49px">404</h1><div style="display:inline-block;text-align:left"><h2 style="font-size:14px;font-weight:400;line-height:49px;margin:0">This page could not be found<!-- -->.</h2></div></div></div></div><script id="__NEXT_DATA__" type="application/json">{"props":{"pageProps":{"statusCode":404}},"page":"/_error","query":{},"buildId":"upncyyplpeRa-yG-6xKMf","assetPrefix":"/admin","nextExport":true,"isFallback":false,"gip":true,"scriptLoader":[]}</script></body></html>
9 changes: 9 additions & 0 deletions ui/out/_next/static/chunks/2443530c-d4a6bd7fc7f21e3c.js

Large diffs are not rendered by default.

25 changes: 25 additions & 0 deletions ui/out/_next/static/chunks/488-5d01c2eb577effe1.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ui/out/_next/static/chunks/app/layout-df8f67144850158d.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/out/_next/static/chunks/app/page-c6aeb63219cf22b6.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

25 changes: 25 additions & 0 deletions ui/out/_next/static/chunks/framework-8883d1e9be70c3da.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ui/out/_next/static/chunks/main-5188e4be4e106d04.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ui/out/_next/static/chunks/main-app-1a422038fa9f168f.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/out/_next/static/chunks/pages/_app-b555d5e1eab47959.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/out/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions ui/out/_next/static/chunks/webpack-c5cf58328a6babb8.js

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/out/_next/static/css/a954f0f6f4dcff42.css

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

Empty file.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

1 change: 1 addition & 0 deletions ui/out/_next/static/upncyyplpeRa-yG-6xKMf/_ssgManifest.js
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
self.__SSG_MANIFEST=new Set([]);self.__SSG_MANIFEST_CB&&self.__SSG_MANIFEST_CB()
Binary file added ui/out/favicon.ico
Binary file not shown.
1 change: 1 addition & 0 deletions ui/out/index.html
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<!DOCTYPE html><html lang="en"><head><meta charSet="utf-8"/><link rel="preload" as="font" href="/admin/_next/static/media/2aaf0723e720e8b9-s.p.woff2" crossorigin="" type="font/woff2"/><link rel="stylesheet" href="/admin/_next/static/css/a954f0f6f4dcff42.css" data-precedence="next"/><link rel="stylesheet" href="/admin/_next/static/css/ef46db3751d8e999.css" data-precedence="next"/><title>Gorf-Admin</title><meta name="description" content="Go Rest Framework"/><meta name="viewport" content="width=device-width, initial-scale=1"/><link rel="icon" href="/admin/favicon.ico" type="image/x-icon" sizes="any"/><meta name="next-size-adjust"/><script src="/admin/_next/static/chunks/polyfills-c67a75d1b6f99dc8.js" noModule=""></script></head><body class="__className_2404e8"><main><h1>Gorf-Admin</h1></main><script src="/admin/_next/static/chunks/webpack-c5cf58328a6babb8.js" async=""></script><script src="/admin/_next/static/chunks/2443530c-d4a6bd7fc7f21e3c.js" async=""></script><script src="/admin/_next/static/chunks/488-5d01c2eb577effe1.js" async=""></script><script src="/admin/_next/static/chunks/main-app-1a422038fa9f168f.js" async=""></script><script>(self.__next_f=self.__next_f||[]).push([0])</script><script>self.__next_f.push([1,"1:HL[\"/admin/_next/static/media/2aaf0723e720e8b9-s.p.woff2\",{\"as\":\"font\",\"type\":\"font/woff2\"}]\n2:HL[\"/admin/_next/static/css/a954f0f6f4dcff42.css\",{\"as\":\"style\"}]\n0:\"$L3\"\n"])</script><script>self.__next_f.push([1,"4:HL[\"/admin/_next/static/css/ef46db3751d8e999.css\",{\"as\":\"style\"}]\n"])</script><script>self.__next_f.push([1,"5:I{\"id\":\"8827\",\"chunks\":[\"272:static/chunks/webpack-c5cf58328a6babb8.js\",\"667:static/chunks/2443530c-d4a6bd7fc7f21e3c.js\",\"488:static/chunks/488-5d01c2eb577effe1.js\"],\"name\":\"\",\"async\":false}\n7:I{\"id\":\"9126\",\"chunks\":[\"272:static/chunks/webpack-c5cf58328a6babb8.js\",\"667:static/chunks/2443530c-d4a6bd7fc7f21e3c.js\",\"488:static/chunks/488-5d01c2eb577effe1.js\"],\"name\":\"\",\"async\":false}\n9:I{\"id\":\"4463\",\"chunks\":[\"272:static/chunks/webpack-c5cf58328a6babb8.js\",\"667:static/chunks/2443530c-d4a6bd7fc7f21e3c.js\",\"48"])</script><script>self.__next_f.push([1,"8:static/chunks/488-5d01c2eb577effe1.js\"],\"name\":\"\",\"async\":false}\na:I{\"id\":\"1010\",\"chunks\":[\"272:static/chunks/webpack-c5cf58328a6babb8.js\",\"667:static/chunks/2443530c-d4a6bd7fc7f21e3c.js\",\"488:static/chunks/488-5d01c2eb577effe1.js\"],\"name\":\"\",\"async\":false}\n"])</script><script>self.__next_f.push([1,"3:[[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/admin/_next/static/css/a954f0f6f4dcff42.css\",\"precedence\":\"next\"}]],[\"$\",\"$L5\",null,{\"assetPrefix\":\"/admin\",\"initialCanonicalUrl\":\"/\",\"initialTree\":[\"\",{\"children\":[\"__PAGE__\",{}]},\"$undefined\",\"$undefined\",true],\"initialHead\":[\"$L6\",[\"$\",\"meta\",null,{\"name\":\"next-size-adjust\"}]],\"globalErrorComponent\":\"$7\",\"notFound\":[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_2404e8\",\"children\":[\"$L8\",\"$undefined\",[[\"$\",\"title\",null,{\"children\":\"404: This page could not be found.\"}],[\"$\",\"div\",null,{\"style\":{\"fontFamily\":\"system-ui,\\\"Segoe UI\\\",Roboto,Helvetica,Arial,sans-serif,\\\"Apple Color Emoji\\\",\\\"Segoe UI Emoji\\\"\",\"height\":\"100vh\",\"textAlign\":\"center\",\"display\":\"flex\",\"flexDirection\":\"column\",\"alignItems\":\"center\",\"justifyContent\":\"center\"},\"children\":[\"$\",\"div\",null,{\"children\":[[\"$\",\"style\",null,{\"dangerouslySetInnerHTML\":{\"__html\":\"body{color:#000;background:#fff;margin:0}.next-error-h1{border-right:1px solid rgba(0,0,0,.3)}@media (prefers-color-scheme:dark){body{color:#fff;background:#000}.next-error-h1{border-right:1px solid rgba(255,255,255,.3)}}\"}}],[\"$\",\"h1\",null,{\"className\":\"next-error-h1\",\"style\":{\"display\":\"inline-block\",\"margin\":\"0 20px 0 0\",\"padding\":\"0 23px 0 0\",\"fontSize\":24,\"fontWeight\":500,\"verticalAlign\":\"top\",\"lineHeight\":\"49px\"},\"children\":\"404\"}],[\"$\",\"div\",null,{\"style\":{\"display\":\"inline-block\"},\"children\":[\"$\",\"h2\",null,{\"style\":{\"fontSize\":14,\"fontWeight\":400,\"lineHeight\":\"49px\",\"margin\":0},\"children\":\"This page could not be found.\"}]}]]}]}]]]}]}],\"asNotFound\":false,\"children\":[[\"$\",\"html\",null,{\"lang\":\"en\",\"children\":[\"$\",\"body\",null,{\"className\":\"__className_2404e8\",\"children\":[\"$\",\"$L9\",null,{\"parallelRouterKey\":\"children\",\"segmentPath\":[\"children\"],\"error\":\"$undefined\",\"errorStyles\":\"$undefined\",\"loading\":\"$undefined\",\"loadingStyles\":\"$undefined\",\"hasLoading\":false,\"template\":[\"$\",\"$La\",null,{}],\"templateStyles\":\"$undefined\",\"notFound\":\"$undefined\",\"notFoundStyles\":\"$undefined\",\"childProp\":{\"current\":[[\"$\",\"main\",null,{\"className\":\"$undefined\",\"children\":[\"$\",\"h1\",null,{\"children\":\"Gorf-Admin\"}]}],null],\"segment\":\"__PAGE__\"},\"styles\":[[\"$\",\"link\",\"0\",{\"rel\":\"stylesheet\",\"href\":\"/admin/_next/static/css/ef46db3751d8e999.css\",\"precedence\":\"next\"}]]}]}]}],null]}]]\n"])</script><script>self.__next_f.push([1,"8:[[[\"$\",\"meta\",null,{\"charSet\":\"utf-8\"}],null,null,null,null,null,null,null,null,null,null,[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],null,null,null,null,null,null,null,null,null,null,[]],[null,null,null,null],null,null,[null,null,null,null,null],null,null,null,null,null]\n"])</script><script>self.__next_f.push([1,"6:[[[\"$\",\"meta\",null,{\"charSet\":\"utf-8\"}],[\"$\",\"title\",null,{\"children\":\"Gorf-Admin\"}],[\"$\",\"meta\",null,{\"name\":\"description\",\"content\":\"Go Rest Framework\"}],null,null,null,null,null,null,null,null,[\"$\",\"meta\",null,{\"name\":\"viewport\",\"content\":\"width=device-width, initial-scale=1\"}],null,null,null,null,null,null,null,null,null,null,[]],[null,null,null,null],null,null,[null,null,null,null,null],null,null,null,null,[null,[[\"$\",\"link\",null,{\"rel\":\"icon\",\"href\":\"/admin/favicon.ico\",\"type\":\"image/x-icon\",\"sizes\":\"any\"}]],[],null]]\n"])</script></body></html>
Loading

0 comments on commit c2e4929

Please sign in to comment.