Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat: convert app to nextjs #575

Merged
merged 1 commit into from
Dec 13, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
18 changes: 0 additions & 18 deletions .github/workflows/greetings.yml

This file was deleted.

40 changes: 40 additions & 0 deletions .github/workflows/label-commenter-config.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,40 @@
labels:
- name: invalid
labeled:
issue:
body: Please follow the issue templates.
action: close
pr:
body: |
Thank you @{{ pull_request.user.login }} for raising a PR. Please follow the pull request templates.
PR compliance is complaining because of the PR description, some things needs to be fixed properly, if you don't know how, try this:
- Read the error carefully or read the <a href="https://github.com/Dun-sin/whisper/blob/main/CONTRIBUTING.md">Contributing.md file</a>
- Checkout past merged Pull requests to see how they were done for it to be merged
> Note: you can edit your PR message, this PR won't be merged if the error isn't gone and you have a week max to fix it before the PR gets closed without being merged
- name: wontfix
labeled:
issue:
body: This will not be worked on but we appreciate your contribution.
action: close
unlabeled:
issue:
body: This has become active again.
action: open
- name: duplicate
labeled:
issue:
body: This issue already exists.
action: close
- name: '🚦 status: awaiting approval'
labeled:
issue:
body: |
This issue is waiting to be approved so it's locked until approved
Thank you @{{ issue.user.login }} for creating an issue, while you wait for a response, consider reading the <a href="https://github.com/Dun-sin/whisper/blob/main/CONTRIBUTING.md">Contributing.md file</a>, Thank you! Welcome to the community
locking: lock
- name: '🏁 status: ready for dev'
labeled:
issue:
body: |
This issue is ready for dev and assigned to anyone who properly asks
locking: unlock
37 changes: 37 additions & 0 deletions .github/workflows/label-commenter.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,37 @@
name: Label Commenter

on:
issues:
types:
- labeled
- unlabeled
pull_request_target:
types:
- labeled
- unlabeled
discussion:
types:
- labeled
- unlabeled

permissions:
contents: read
issues: write
pull-requests: write

jobs:
comment:
runs-on: ubuntu-20.04
timeout-minutes: 1
steps:
- uses: actions/[email protected]
with:
ref: main

- name: Label Commenter
uses: peaceiris/actions-label-commenter@b9f3f5d91e1f6ea0fd28c45cee43e0b0a687a272
env:
RUNNER_DEBUG: 1
with:
github_token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/workflows/label-commenter-config.yml
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -27,6 +27,7 @@ yarn-error.log*

# local env files
.env*.local
.env

# vercel
.vercel
Expand Down
36 changes: 36 additions & 0 deletions .husky/_/husky.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
#!/usr/bin/env sh
if [ -z "$husky_skip_init" ]; then
debug () {
if [ "$HUSKY_DEBUG" = "1" ]; then
echo "husky (debug) - $1"
fi
}

readonly hook_name="$(basename -- "$0")"
debug "starting $hook_name..."

if [ "$HUSKY" = "0" ]; then
debug "HUSKY env variable is set to 0, skipping hook"
exit 0
fi

if [ -f ~/.huskyrc ]; then
debug "sourcing ~/.huskyrc"
. ~/.huskyrc
fi

readonly husky_skip_init=1
export husky_skip_init
sh -e "$0" "$@"
exitCode="$?"

if [ $exitCode != 0 ]; then
echo "husky - $hook_name hook exited with code $exitCode (error)"
fi

if [ $exitCode = 127 ]; then
echo "husky - command not found in PATH=$PATH"
fi

exit $exitCode
fi
9 changes: 9 additions & 0 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,15 @@
/** @type {import('next').NextConfig} */
const nextConfig = {
reactStrictMode: true,
webpack(config, options) {
config.module.rules.push({
test: /\.mp3$/,
use: {
loader: 'url-loader',
},
});
return config;
},
};

module.exports = nextConfig;
Loading
Loading