Skip to content

Commit

Permalink
Rework & formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
radityaharya committed Feb 1, 2024
1 parent 075a173 commit db112e4
Show file tree
Hide file tree
Showing 100 changed files with 1,921 additions and 2,581 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/fly.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ jobs:
deploy:
name: Deploy app to Fly
runs-on: ubuntu-latest
concurrency: deploy-group # optional: ensure only one action runs at a time
concurrency: deploy-group # optional: ensure only one action runs at a time
steps:
- uses: actions/checkout@v3
- uses: superfly/flyctl-actions/setup-flyctl@master
Expand Down
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -135,4 +135,5 @@ The hosted service is provided "as is" and on an "as available" basis, with no g
The author respects the privacy of users and takes data security seriously. However, the author cannot guarantee the security of any data transmitted to the hosted service and is not responsible for any breach of security or for the actions of any third parties that may obtain any personal information.
By using the hosted service, you agree to accept all risks associated with the use of the service and agree not to hold the author liable for any issues, losses, or damages that may arise from its use.
</details>
Binary file modified bun.lockb
Binary file not shown.
2 changes: 1 addition & 1 deletion components.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,4 +14,4 @@
"components": "src/components",
"utils": "src/lib/utils"
}
}
}
75 changes: 59 additions & 16 deletions package-lock.json

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

8 changes: 6 additions & 2 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"@sentry/nextjs": "^7.93.0",
"@t3-oss/env-nextjs": "^0.7.1",
"@types/spotify-api": "^0.0.25",
"@xyflow/react": "^12.0.0-next.5",
"@xyflow/react": "^12.0.0-next.8",
"bullmq": "^5.1.1",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
Expand All @@ -47,6 +47,7 @@
"next-auth": "^4.24.5",
"next-themes": "^0.2.1",
"radash": "^11.0.0",
"random-words": "^2.0.1",
"react": "18.2.0",
"react-day-picker": "^8.10.0",
"react-dom": "18.2.0",
Expand All @@ -56,11 +57,13 @@
"react-wrap-balancer": "^1.1.0",
"sonner": "^1.3.1",
"spotify-web-api-node": "^5.0.2",
"swr": "^2.2.4",
"tailwind-merge": "^2.2.0",
"tailwindcss-animate": "^1.0.7",
"uuid": "^9.0.1",
"validator": "^13.11.0",
"zod": "^3.22.4",
"zustand": "^4.4.7"
"zustand": "^4.5.0"
},
"devDependencies": {
"@next/eslint-plugin-next": "^14.0.3",
Expand All @@ -70,6 +73,7 @@
"@types/react-dom": "^18.2.15",
"@types/spotify-web-api-node": "^5.0.11",
"@types/uuid": "^9.0.7",
"@types/validator": "^13.11.8",
"@typescript-eslint/eslint-plugin": "^6.11.0",
"@typescript-eslint/parser": "^6.11.0",
"autoprefixer": "^10.4.14",
Expand Down
108 changes: 0 additions & 108 deletions src/app/api/nodes/route.ts

This file was deleted.

10 changes: 4 additions & 6 deletions src/app/api/user/[uid]/playlist/[playlistId]/route.ts
Original file line number Diff line number Diff line change
@@ -1,4 +1,3 @@

import { NextResponse, type NextRequest } from "next/server";
import { getServerSession } from "next-auth";
import { authOptions } from "@/server/auth";
Expand All @@ -10,9 +9,9 @@ export async function GET(
{
params,
}: {
params: {
uid: string
playlistId: string
params: {
uid: string;
playlistId: string;
};
},
) {
Expand All @@ -36,7 +35,6 @@ export async function GET(
);
}


const accessToken = await getAccessTokenFromProviderAccountId(params.uid);
if (!accessToken) {
return NextResponse.json("No access token found", { status: 500 });
Expand Down Expand Up @@ -70,4 +68,4 @@ export async function GET(
};

return NextResponse.json(playlist);
}
}
1 change: 0 additions & 1 deletion src/app/api/user/[uid]/playlists/route.ts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,6 @@ import { authOptions } from "@/server/auth";
import { getAccessTokenFromProviderAccountId } from "~/server/db/helper";
import SpotifyWebApi from "spotify-web-api-node";
import { env } from "~/env";
import Redis from 'ioredis';
export async function GET(
request: NextRequest,
{
Expand Down
Loading

0 comments on commit db112e4

Please sign in to comment.