Giter Site home page Giter Site logo

horizon-ui / horizon-ai-template-pro Goto Github PK

View Code? Open in Web Editor NEW
6.0 2.0 1.0 58 KB

Issues & Updates of Horizon UI AI Template PRO

Home Page: https://horizon-ui.com/horizon-ai-template/

admin-template ai-template chatgpt react-admin react-admin-template react-template chatgpt-admin chatgpt-admin-template chatgpt-panel chatgpt-template

horizon-ai-template-pro's People

Contributors

simmmpleweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

mridulmr

horizon-ai-template-pro's Issues

Prop style did not match.

Hi,

I have an error with this template. It seems something wrong with Scrollbar component.

image

image

Warning: Prop `style` did not match. Server: "position:absolute;top:0;left:0;right:0;bottom:0;overflow:scroll;-webkit-overflow-scrolling:touch;margin-right:0;margin-bottom:-22px" Client: "position:absolute;top:0;left:0;right:0;bottom:0;overflow:scroll;-webkit-overflow-scrolling:touch;margin-right:-15px;margin-bottom:-22px"
    at div
    at eval (webpack-internal:///(app-client)/./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js:60:66)
    at ChakraComponent (webpack-internal:///(app-client)/./node_modules/@chakra-ui/system/dist/chunk-5PL47M24.mjs:51:102)
    at div
    at Scrollbars (webpack-internal:///(app-client)/./node_modules/react-custom-scrollbars-2/lib/Scrollbars/index.js:65:9)
    at div
    at eval (webpack-internal:///(app-client)/./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js:60:66)
    at ChakraComponent (webpack-internal:///(app-client)/./node_modules/@chakra-ui/system/dist/chunk-5PL47M24.mjs:51:102)
    at div
    at eval (webpack-internal:///(app-client)/./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js:60:66)
    at ChakraComponent (webpack-internal:///(app-client)/./node_modules/@chakra-ui/system/dist/chunk-5PL47M24.mjs:51:102)
    at Sidebar (webpack-internal:///(app-client)/./src/components/sidebar/Sidebar.tsx:35:13)
    at div
    at eval (webpack-internal:///(app-client)/./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js:60:66)
    at ChakraComponent (webpack-internal:///(app-client)/./node_modules/@chakra-ui/system/dist/chunk-5PL47M24.mjs:51:102)
    at EnvironmentProvider (webpack-internal:///(app-client)/./node_modules/@chakra-ui/react-env/dist/chunk-VMD3UMGK.mjs:34:11)
    at ColorModeProvider (webpack-internal:///(app-client)/./node_modules/@chakra-ui/color-mode/dist/chunk-AMBGAKG2.mjs:29:5)
    at ThemeProvider (webpack-internal:///(app-client)/./node_modules/@emotion/react/dist/emotion-element-c39617d8.browser.esm.js:123:50)
    at ThemeProvider (webpack-internal:///(app-client)/./node_modules/@chakra-ui/system/dist/chunk-MFVQSVQB.mjs:30:11)
    at ChakraProvider (webpack-internal:///(app-client)/./node_modules/@chakra-ui/provider/dist/chunk-3DDHO3UN.mjs:21:5)
    at ChakraProvider2 (webpack-internal:///(app-client)/./node_modules/@chakra-ui/react/dist/chunk-QAITB7GG.mjs:19:5)
    at AppWrappers (webpack-internal:///(app-client)/./app/AppWrappers.tsx:37:11)
    at body
    at html
    at RootLayout (webpack-internal:///(app-client)/./app/layout.tsx:40:11)
    at ReactDevOverlay (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/react-dev-overlay/internal/ReactDevOverlay.js:61:9)
    at HotReload (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/react-dev-overlay/hot-reloader-client.js:20:11)
    at Router (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/app-router.js:48:11)
    at ErrorBoundaryHandler (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/error-boundary.js:59:9)
    at ErrorBoundary (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/error-boundary.js:72:11)
    at AppRouter (webpack-internal:///(app-client)/./node_modules/next/dist/client/components/app-router.js:24:13)
    at ServerRoot (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:147:11)
    at RSCComponent
    at Root (webpack-internal:///(app-client)/./node_modules/next/dist/client/app-index.js:164:11)

Wrong header being set in Domain Name Generator Template

You're setting a "Content-Keywords" header, which is not a

      headers: {
        'Content-Keywords': 'application/json',
      },

I believe, like in all the other templates, this would need to be

      headers: {
        'Content-Type': 'application/json',
      },

instead.

Console React errors

When calling /all-templates the console throws react errors, although React labels them as Warning

CleanShot 2023-11-25 at 15 44 14@2x

These Warnings also show up in the terminal when calling npm run dev.

Is there a way to suppress them? So they don't show up in the console?

Use of NEXT_PUBLIC_ for API key

Use of NEXT_PUBLIC_OPENAI_API_KEY throughout, which exposes one's private API Key.

As per NextJs documentation, NEXT_PUBLIC_ is used to bundle environment variables for use through the browser.

So all request send through the api key like:
{"inputCode":"Explain square root","model":"gpt-4","apiKey":"-exposing environment api key-"}
This may be fine when the user provides their own API key, but as you are recommending the use of API key in .env.local,
"If you use .env.local variable for your API key, method which we recommend, use the apiKey variable commented below"
you're providing the following code snippet:
const apiKeyENV = process.env.NEXT_PUBLIC_OPENAI_API_KEY
which is then transmitted in the request to the server.

I would suggest you pick up the api key later, right before sending request to OpenAI API, when setting the Bearer Authorisation header, using
process.env.OPENAI_API_KEY
instead.

Error thrown when running npm run build

While npm run dev runs fine, npm run build throws an error:

./src/components/menu/ItemContent.jsx
6:33  Error: Parsing error: Unexpected token, expected "," (6:33)

As per Copilot "Type annotations can only be used in TypeScript files"

I am using the JS version.
Looks like a TS to JS conversion issue.

npm run build is also run when trying to deploy it in the cloud, and is where I noticed it first.

I changed this to
export function ItemContent(props) {
which seems to work fine.

But the npm run build still fails on both

> Build error occurred
Error: Export encountered errors on following paths:
        /bootstrap-to-tailwind-converter
        /pet-name-generator

as per the other two tickets. So they probably also contain TS to JS conversion issues

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.