Skip to content

Commit

Permalink
feat: app mvp
Browse files Browse the repository at this point in the history
  • Loading branch information
dubisdev committed Mar 28, 2023
1 parent 0d07db5 commit 83e01e0
Show file tree
Hide file tree
Showing 42 changed files with 1,205 additions and 38 deletions.
92 changes: 92 additions & 0 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
name: 'Generate Release'
on:
push:
branches:
- main

jobs:
test-types:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Install app dependencies
run: pnpm i

- name: Run typecheck
run: pnpm tsc

semantic-release:
runs-on: ubuntu-latest
needs: test-types

outputs:
new_release: ${{ steps.semantic.outputs.new_release_published }}
release_version: ${{ steps.semantic.outputs.new_release_version }}

steps:
- uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: Semantic Release
id: semantic
uses: cycjimmy/semantic-release-action@v3
with:
semantic_version: 19
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

build-executable:
runs-on: windows-latest
needs: semantic-release
if: needs.semantic-release.outputs.new_release == 'true'

steps:
- uses: actions/checkout@v3

- name: setup node
uses: actions/setup-node@v3
with:
node-version: 18

- name: install Rust stable
uses: dtolnay/rust-toolchain@stable

- uses: Swatinem/rust-cache@v2
with:
workspaces: "./src-tauri -> target"

- name: Install app dependencies
run: pnpm i

- name: bump package version
run: npm pkg set version="${{ needs.semantic-release.outputs.release_version }}"

- name: get latest release id
id: latest_release_id
uses: actions/github-script@v6
with:
script: |
const { data } = await github.rest.repos.getLatestRelease({
owner: context.repo.owner,
repo: context.repo.repo
})
return data.id
- uses: tauri-apps/tauri-action@v0
id: tauri_action
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
with:
releaseId: ${{ steps.latest_release_id.outputs.result }}

16 changes: 16 additions & 0 deletions .releaserc.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
{
"branches": [
"main"
],
"plugins": [
"@semantic-release/commit-analyzer",
[
"@semantic-release/npm",
{
"npmPublish": false
}
],
"@semantic-release/release-notes-generator",
"@semantic-release/github"
]
}
15 changes: 13 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@
  |   Give it a Star ⭐ |  
<a href="https://www.buymeacoffee.com/dubisdev">Support the project 🤝</a>
&nbsp; | &nbsp;
<a href="https://twitter.com/intent/tweet?text=I%27m%20using%20%23RunMath%20-%20A%20keyboard-first%20alternative%20to%20the%20Windows%20calculator%20by%20%40dubisdev%0A%0Ahttps%3A%2F%2Fgithub.com%2Fdubisdev%2Frunmath">
<a href="https://twitter.com/intent/tweet?text=I%27m%20using%20%23quickgpt%20-%20a%20faster%20way%20to%20ask%20GPT%20by%20%40dubisdev%0A%0Ahttps%3A%2F%2Fgithub.com%2Fdubisdev%2Fquickgpt">
Share it on Twitter 🐦
</a>
</p>
Expand All @@ -25,10 +25,21 @@
## 🚀 Features

- 🔠 Write your question and GPT will answer it
- Use the `Alt + A` shortcut to toggle the app
- ~~⚙️ Choose the model you want to use~~ (Available soon)

<p align="center">
<img src="./assets/readme-animation.gif"/>
<img align="right" width="500" src="./assets/settings.png"/>
</p>

## ⚙️ Configuration

The app works with the OpenAI API, so you need to get an API key to use it.

1. Get the API key [here](https://platform.openai.com/account/api-keys).
2. Type `:settings:` in the QuickGPT search bar
3. Paste it in the `OpenAI API Key` field
4. Start using it!

## 🔜 Roadmap

Expand Down
Binary file added assets/settings.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 0 additions & 9 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -12,13 +12,4 @@
<script type="module" src="/src/main.tsx"></script>
</body>

<style>
body {
width: 100vw;
height: 100vh;
background-color: azure;
}

</style>

</html>
9 changes: 7 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,16 +14,21 @@
},
"dependencies": {
"@tauri-apps/api": "1.2.0",
"openai": "^3.2.1",
"openai": "3.2.1",
"react": "18.2.0",
"react-dom": "18.2.0",
"the-new-css-reset": "1.8.4"
"react-markdown": "8.0.6",
"react-syntax-highlighter": "15.5.0",
"tauri-settings": "0.3.1",
"the-new-css-reset": "1.8.4",
"zustand": "4.3.6"
},
"devDependencies": {
"@tauri-apps/cli": "1.2.3",
"@types/node": "18.15.10",
"@types/react": "18.0.30",
"@types/react-dom": "18.0.11",
"@types/react-syntax-highlighter": "15.5.6",
"@vitejs/plugin-react": "3.1.0",
"typescript": "^4.6.4",
"vite": "^4.2.1"
Expand Down
Loading

0 comments on commit 83e01e0

Please sign in to comment.