diff --git a/.eslintrc.cjs b/.eslintrc.cjs index d6c9537..9629532 100644 --- a/.eslintrc.cjs +++ b/.eslintrc.cjs @@ -10,9 +10,6 @@ module.exports = { parser: '@typescript-eslint/parser', plugins: ['react-refresh'], rules: { - 'react-refresh/only-export-components': [ - 'warn', - { allowConstantExport: true }, - ], + 'react-refresh/only-export-components': ['warn', { allowConstantExport: true }], }, } diff --git a/.github/workflows/deploy_to_gh_pages.yml b/.github/workflows/deploy_to_gh_pages.yml index 2a6f500..44a7c6c 100644 --- a/.github/workflows/deploy_to_gh_pages.yml +++ b/.github/workflows/deploy_to_gh_pages.yml @@ -48,4 +48,4 @@ jobs: path: './dist' - name: Deploy to GitHub Pages id: deployment - uses: actions/deploy-pages@v2 \ No newline at end of file + uses: actions/deploy-pages@v2 diff --git a/.prettierrc b/.prettierrc index 251f9c1..110c98c 100755 --- a/.prettierrc +++ b/.prettierrc @@ -7,5 +7,6 @@ "bracketSpacing": true, "bracketSameLine": false, "arrowParens": "avoid", - "printWidth": 100 + "printWidth": 100, + "plugins": ["prettier-plugin-tailwindcss"] } diff --git a/README.md b/README.md index d542e7f..ce37372 100644 --- a/README.md +++ b/README.md @@ -2,41 +2,42 @@ ![LLM X logo](https://raw.githubusercontent.com/mrdjohnson/llm-X/main/public/LLMX.png) -***What is this?*** +**_What is this?_** Chat GPT style UI for the niche group of folks who run [Ollama](https://ollama.com/) (think of this like an offline chat gpt) locally. Supports sending images and text! **WORKS OFFLINE** through PWA ([Progressive Web App](https://web.dev/explore/progressive-web-apps)) standards (its not dead!) -***Why do this?*** +**_Why do this?_** I have been interested in **LLM UI** for a while now and this seemed like a good intro application. -I've been introduced to a lot of modern technologies thanks to this project as well, its been fun! +I've been introduced to a lot of modern technologies thanks to this project as well, its been fun! -***Why so many buzz words?*** -I couldn't help but bee cool 😎 +**_Why so many buzz words?_** +I couldn't help but bee cool 😎 + +## Tech Stack (thank you's): + +**_Logic helpers:_** - - ## Tech Stack (thank you's): -***Logic helpers:*** - [React](https://react.dev/) - [Typescript](https://www.typescriptlang.org/) - [Mobx State Tree](https://mobx-state-tree.js.org/intro/welcome) -***UI Helpers:*** +**_UI Helpers:_** + - [Tailwind css](https://tailwindcss.com/) - [DaisyUI](https://daisyui.com/) - [Highlight.js](https://www.npmjs.com/package/highlight.js) - [React Markdown](https://www.npmjs.com/package/react-markdown) -***Project setup helpers:*** +**_Project setup helpers:_** + - [Vite](https://vitejs.dev/) - [Vite PWA plugin](https://vite-pwa-org.netlify.app/) - -***Inspiration:*** - [ollama-ui's](https://github.com/ollama-ui/ollama-ui) project. Which allows users to connect to ollama via a [web app](https://ollama-ui.github.io/ollama-ui/) +**_Inspiration:_** +[ollama-ui's](https://github.com/ollama-ui/ollama-ui) project. Which allows users to connect to ollama via a [web app](https://ollama-ui.github.io/ollama-ui/) [Perplexity.ai](https://www.perplexity.ai/) Perpexlity has sone some amazing UI advancements in the LLM UI space and I have been very interested in getting to that point. Hopefully this starter project lets me get closer to doing something similar! - ## Getting started Clone the project, and run `npm install` in the root directory @@ -66,4 +67,4 @@ Clone the project, and run `npm install` in the root directory - This readme was written with [https://stackedit.io/app](https://stackedit.io/app) -- Changes to the main branch trigger an immediate deploy to https://mrdjohnson.github.io/llm-x/ \ No newline at end of file +- Changes to the main branch trigger an immediate deploy to https://mrdjohnson.github.io/llm-x/ diff --git a/src/App.css b/src/App.css index b2ea627..0895a10 100644 --- a/src/App.css +++ b/src/App.css @@ -1,5 +1,5 @@ - -html, body { +html, +body { min-height: 100% !important; height: 100%; } diff --git a/src/App.tsx b/src/App.tsx index fdc6416..0f13379 100644 --- a/src/App.tsx +++ b/src/App.tsx @@ -22,7 +22,7 @@ const Navbar = observer(() => { const noServer = !settingStore.selectedModel return ( -