Skip to content

Commit 8e7f48d

Browse files
authored
Merge pull request #102 from hammercode-dev/feat/my-events-payments
[FEAT] - payments flow events, event details, with xendit payments
2 parents 971cc71 + cee995d commit 8e7f48d

34 files changed

+4000
-2506
lines changed

components.json

Lines changed: 4 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,15 @@
1010
"cssVariables": true,
1111
"prefix": ""
1212
},
13+
"iconLibrary": "lucide",
1314
"aliases": {
1415
"components": "@/components",
1516
"utils": "@/lib/utils",
1617
"ui": "@/components/ui",
1718
"lib": "@/lib",
1819
"hooks": "@/hooks"
1920
},
20-
"iconLibrary": "lucide"
21+
"registries": {
22+
"@reui": "https://reui.io/r/{name}.json"
23+
}
2124
}

eslint.config.mjs

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
import { defineConfig } from "eslint/config";
2+
import nextCoreWebVitals from "eslint-config-next/core-web-vitals";
3+
import typescriptEslint from "@typescript-eslint/eslint-plugin";
4+
import react from "eslint-plugin-react";
5+
import globals from "globals";
6+
import tsParser from "@typescript-eslint/parser";
7+
import path from "node:path";
8+
import { fileURLToPath } from "node:url";
9+
import js from "@eslint/js";
10+
import { FlatCompat } from "@eslint/eslintrc";
11+
12+
const __filename = fileURLToPath(import.meta.url);
13+
const __dirname = path.dirname(__filename);
14+
const compat = new FlatCompat({
15+
baseDirectory: __dirname,
16+
recommendedConfig: js.configs.recommended,
17+
allConfig: js.configs.all,
18+
});
19+
20+
export default defineConfig([
21+
{
22+
extends: [
23+
...compat.extends("eslint:recommended"),
24+
...compat.extends("plugin:@typescript-eslint/recommended"),
25+
...nextCoreWebVitals,
26+
...compat.extends("prettier"),
27+
],
28+
29+
plugins: {
30+
"@typescript-eslint": typescriptEslint,
31+
react,
32+
},
33+
34+
languageOptions: {
35+
globals: {
36+
...globals.browser,
37+
},
38+
39+
parser: tsParser,
40+
ecmaVersion: "latest",
41+
sourceType: "module",
42+
},
43+
44+
rules: {
45+
"no-console": "warn",
46+
"no-undef": "off",
47+
"no-unused-vars": "off",
48+
"react/no-unescaped-entities": "off",
49+
"@next/next/no-page-custom-font": "off",
50+
"react-hooks/exhaustive-deps": "off",
51+
"react-compiler/react-compiler": "off",
52+
},
53+
},
54+
// for all test file
55+
{
56+
files: [
57+
"**/*.test.ts",
58+
"**/*.test.tsx",
59+
"**/*.spec.ts",
60+
"**/*.spec.tsx",
61+
"**/tests/**/*",
62+
"**/tests-examples/**/*",
63+
"**/__tests__/**/*",
64+
],
65+
rules: {
66+
"@typescript-eslint/no-explicit-any": "off",
67+
"@typescript-eslint/no-unsafe-assignment": "off",
68+
"@typescript-eslint/no-unsafe-member-access": "off",
69+
"@typescript-eslint/no-unsafe-call": "off",
70+
"@typescript-eslint/no-unsafe-return": "off",
71+
"@typescript-eslint/no-unsafe-argument": "off",
72+
},
73+
},
74+
]);

next-env.d.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,6 @@
11
/// <reference types="next" />
22
/// <reference types="next/image-types/global" />
3+
import "./.next/dev/types/routes.d.ts";
34

45
// NOTE: This file should not be edited
56
// see https://nextjs.org/docs/app/api-reference/config/typescript for more information.

next.config.mjs

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ const withNextIntl = createNextIntlPlugin("./src/lib/i18n.ts");
66
const nextConfig = {
77
pageExtensions: ["js", "jsx", "mdx", "ts", "tsx"],
88
images: {
9+
dangerouslyAllowLocalIP: true,
910
remotePatterns: [
1011
{
1112
protocol: "https",
@@ -20,6 +21,11 @@ const nextConfig = {
2021
port: "8000",
2122
hostname: "localhost",
2223
},
24+
{
25+
protocol: "http",
26+
hostname: "127.0.0.1",
27+
port: "8000",
28+
},
2329
],
2430
},
2531
trailingSlash: true,

package.json

Lines changed: 14 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -4,10 +4,10 @@
44
"private": true,
55
"type": "module",
66
"scripts": {
7-
"dev": "next dev --turbopack",
7+
"dev": "next dev",
88
"build": "next build",
99
"start": "next start",
10-
"lint": "next lint",
10+
"lint": "eslint .",
1111
"format": "prettier --write .",
1212
"check-format": "prettier --check .",
1313
"prepare": "husky",
@@ -27,7 +27,7 @@
2727
"@hookform/resolvers": "^5.0.1",
2828
"@radix-ui/react-alert-dialog": "^1.1.1",
2929
"@radix-ui/react-avatar": "^1.1.1",
30-
"@radix-ui/react-dialog": "^1.1.14",
30+
"@radix-ui/react-dialog": "^1.1.15",
3131
"@radix-ui/react-dropdown-menu": "^2.1.15",
3232
"@radix-ui/react-label": "^2.1.7",
3333
"@radix-ui/react-popover": "^1.1.15",
@@ -66,20 +66,20 @@
6666
"lucide-react": "^0.536.0",
6767
"marked": "^16.2.1",
6868
"motion": "^12.7.4",
69-
"next": "15.3.2",
69+
"next": "16.0.1",
7070
"next-intl": "^4.1.0",
7171
"next-mdx-remote": "^5.0.0",
7272
"next-themes": "^0.4.6",
7373
"prettier-plugin-tailwindcss": "^0.6.11",
74-
"react": "19.1.0",
74+
"react": "19.2.0",
7575
"react-day-picker": "^9.9.0",
76-
"react-dom": "19.1.0",
76+
"react-dom": "19.2.0",
7777
"react-hook-form": "^7.62.0",
7878
"rehype-pretty-code": "^0.14.1",
7979
"remark-gfm": "^4.0.1",
8080
"shiki": "^3.7.0",
8181
"sonner": "^2.0.6",
82-
"tailwind-merge": "^3.3.0",
82+
"tailwind-merge": "^3.3.1",
8383
"tailwindcss-animate": "^1.0.7",
8484
"turndown": "^7.2.1",
8585
"zod": "^3.24.4"
@@ -94,16 +94,17 @@
9494
"@testing-library/user-event": "^14.5.2",
9595
"@types/js-cookie": "^3.0.6",
9696
"@types/node": "^20",
97-
"@types/react": "19.1.5",
98-
"@types/react-dom": "19.1.5",
97+
"@types/react": "19.2.2",
98+
"@types/react-dom": "19.2.2",
9999
"@types/turndown": "^5.0.5",
100100
"@typescript-eslint/eslint-plugin": "^8.0.1",
101101
"@typescript-eslint/parser": "^8.0.1",
102102
"@vitejs/plugin-react": "^4.3.3",
103-
"eslint": "^8",
104-
"eslint-config-next": "15.3.2",
103+
"eslint": "^9",
104+
"eslint-config-next": "16.0.1",
105105
"eslint-config-prettier": "^9.1.0",
106106
"eslint-plugin-react": "^7.35.0",
107+
"globals": "^16.5.0",
107108
"husky": "^9.1.4",
108109
"jsdom": "^25.0.1",
109110
"lint-staged": "^15.2.8",
@@ -119,7 +120,7 @@
119120
"**/*": "prettier --write --ignore-unknown"
120121
},
121122
"resolutions": {
122-
"@types/react": "19.1.5",
123-
"@types/react-dom": "19.1.5"
123+
"@types/react": "19.2.2",
124+
"@types/react-dom": "19.2.2"
124125
}
125126
}

0 commit comments

Comments
 (0)