Skip to content

Commit

Permalink
Merge pull request #1161 from sesamyab/ma/dbconnections
Browse files Browse the repository at this point in the history
Ma/dbconnections
  • Loading branch information
markusahlstrand authored Dec 17, 2024
2 parents d648630 + ca0e521 commit 2f13791
Show file tree
Hide file tree
Showing 10 changed files with 197 additions and 3,748 deletions.
41 changes: 21 additions & 20 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,15 +50,15 @@
]
},
"dependencies": {
"@authhero/kysely-adapter": "0.25.2",
"@hono/zod-openapi": "0.16.2",
"@authhero/kysely-adapter": "0.25.3",
"@hono/zod-openapi": "0.18.3",
"@peculiar/x509": "^1.12.3",
"@planetscale/database": "1.19.0",
"arctic": "^2.3.0",
"authhero": "^0.25.2",
"arctic": "^2.3.2",
"authhero": "^0.26.0",
"bcryptjs": "^2.4.3",
"fast-xml-parser": "^4.5.0",
"hono": "4.4.0",
"fast-xml-parser": "^4.5.1",
"hono": "4.6.14",
"hono-openapi-middlewares": "^1.0.11",
"kysely": "^0.27.5",
"kysely-bun-sqlite": "^0.3.2",
Expand All @@ -67,50 +67,51 @@
"nanoid": "5.0.9",
"oslo": "^1.2.1",
"playwright": "1.44.1",
"zod": "3.23.8"
"zod": "3.24.1"
},
"devDependencies": {
"@ape-egg/tailwind-rows-columns": "1.0.2",
"@cloudflare/workers-types": "4.20241205.0",
"@cloudflare/workers-types": "4.20241216.0",
"@eslint/compat": "^1.2.4",
"@semantic-release/git": "10.0.1",
"@types/bcryptjs": "2.4.6",
"@types/better-sqlite3": "7.6.12",
"@types/cookie": "1.0.0",
"@types/jest-image-snapshot": "6.4.0",
"@types/node": "22.9.1",
"@types/node": "22.10.2",
"@types/pako": "^2.0.3",
"@types/service-worker-mock": "2.0.4",
"@types/validator": "13.12.2",
"autoprefixer": "^10.4.20",
"better-sqlite3": "11.5.0",
"better-sqlite3": "11.7.0",
"classnames": "^2.5.1",
"dotenv": "16.4.5",
"eslint": "9.15.0",
"dotenv": "16.4.7",
"eslint": "9.17.0",
"eslint-plugin-react": "^7.37.2",
"husky": "9.1.7",
"i18next": "23.16.8",
"i18next": "24.1.2",
"i18nexus-cli": "3.5.0",
"jest-image-snapshot": "6.4.0",
"knip": "5.37.1",
"knip": "5.41.0",
"mjml": "4.15.3",
"msw": "^2.6.5",
"msw": "^2.7.0",
"postcss-cli": "^11.0.0",
"prettier": "3.3.3",
"prettier": "3.4.2",
"prettier-plugin-tailwindcss": "0.6.9",
"semantic-release": "24.2.0",
"sort-json": "2.0.1",
"tailwindcss": "3.4.15",
"tailwindcss": "3.4.16",
"typescript": "5.7.2",
"typescript-eslint": "^8.15.0",
"typescript-eslint": "^8.18.1",
"validator": "13.12.0",
"vitest": "2.1.8",
"vitest-fetch-mock": "0.4.2",
"wrangler": "3.93.0"
"wrangler": "3.96.0"
},
"lint-staged": {
"**/*.{js,jsx,ts,tsx}": [
"prettier --write"
]
}
},
"packageManager": "yarn@1.22.22+sha512.a6b2f7906b721bba3d67d4aff083df04dad64c399707841b7acf00f6b133b7ac24255f2652fa22ae3534329dc6180534e98d17432037ff6fd140556e2bb3137e"
}
1 change: 1 addition & 0 deletions src/components/Button.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@ const Button = ({
}: PropsWithChildren<Props>) => {
const hrefProps = Component === "a" ? { href } : {};
return (
// @ts-expect-error - refactor this when migrating to authhero
<Component
class={cn(
"relative w-full rounded-lg text-center",
Expand Down
4 changes: 0 additions & 4 deletions src/oauth-app.ts
Original file line number Diff line number Diff line change
Expand Up @@ -5,8 +5,6 @@ import { CreateAuthParams } from "./app";
import { loginRoutes } from "./routes/universal-login/routes";
import { authorizeRoutes } from "./routes/oauth2/authorize";
import { callbackRoutes } from "./routes/oauth2/callback";
import { dbConnectionRoutes } from "./routes/oauth2/dbconnections";
import { passwordlessRoutes } from "./routes/oauth2/passwordless";
import { authenticateRoutes } from "./routes/oauth2/authenticate";

export default function create(params: CreateAuthParams) {
Expand All @@ -21,8 +19,6 @@ export default function create(params: CreateAuthParams) {
.route("/u", loginRoutes)
.route("/authorize", authorizeRoutes)
.route("/callback", callbackRoutes)
.route("/dbconnections", dbConnectionRoutes)
.route("/passwordless", passwordlessRoutes)
.route("/co/authenticate", authenticateRoutes);

oauthApp.doc("/spec", {
Expand Down
176 changes: 0 additions & 176 deletions src/routes/oauth2/dbconnections.ts

This file was deleted.

12 changes: 0 additions & 12 deletions src/utils/getCountAsInt.ts

This file was deleted.

Loading

0 comments on commit 2f13791

Please sign in to comment.