Skip to content

Commit

Permalink
feat: implemented auth, ui for most, and fixed cors (#217)
Browse files Browse the repository at this point in the history
  • Loading branch information
kriptonian1 authored May 18, 2024
1 parent 564f5ed commit feace86
Show file tree
Hide file tree
Showing 92 changed files with 6,841 additions and 1,936 deletions.
12 changes: 2 additions & 10 deletions apps/api/src/main.ts
Original file line number Diff line number Diff line change
Expand Up @@ -48,15 +48,7 @@ async function initializeSentry() {
async function initializeNestApp() {
const logger = new CustomLoggerService()
const app = await NestFactory.create(AppModule, {
logger,
cors: {
origin: process.env.CORS_ORIGIN || '*',
credentials: true,
methods: 'GET,HEAD,PUT,PATCH,POST,DELETE',
allowedHeaders: 'Content-Type, Accept, Authorization, x-keyshade-token',
preflightContinue: false,
optionsSuccessStatus: 204
}
logger
})
app.use(Sentry.Handlers.requestHandler())
app.use(Sentry.Handlers.tracingHandler())
Expand All @@ -77,7 +69,7 @@ async function initializeNestApp() {
app.enableCors({
credentials: true,
origin: [
'http://localhost:3000',
'http://localhost:3025',
'https://keyshade.xyz',
'https://dashboard.keyshade.xyz'
]
Expand Down
3 changes: 3 additions & 0 deletions apps/workspace/.eslintrc.js → apps/platform/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -4,5 +4,8 @@ module.exports = {
project: 'tsconfig.json',
tsconfigRootDir: __dirname,
sourceType: 'module'
},
rules: {
'import/no-extraneous-dependencies': 0
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ const nextConfig = {
return config;
},
reactStrictMode: true,
transpilePackages: ["geist"],
};

module.exports = nextConfig;
60 changes: 60 additions & 0 deletions apps/platform/package.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,60 @@
{
"name": "platform",
"version": "1.0.0",
"private": true,
"scripts": {
"dev": "next dev -p 3025",
"build": "next build",
"start": "next start",
"lint": "next lint --fix"
},
"dependencies": {
"@radix-ui/react-avatar": "^1.0.4",
"@radix-ui/react-checkbox": "^1.0.4",
"@radix-ui/react-context-menu": "^2.1.5",
"@radix-ui/react-dialog": "^1.0.5",
"@radix-ui/react-direction": "^1.0.1",
"@radix-ui/react-dropdown-menu": "^2.0.6",
"@radix-ui/react-icons": "^1.3.0",
"@radix-ui/react-label": "^2.0.2",
"@radix-ui/react-menubar": "^1.0.4",
"@radix-ui/react-popover": "^1.0.7",
"@radix-ui/react-scroll-area": "^1.0.5",
"@radix-ui/react-separator": "^1.0.3",
"@radix-ui/react-slot": "^1.0.2",
"@radix-ui/react-switch": "^1.0.3",
"@tanstack/react-table": "^8.16.0",
"class-variance-authority": "^0.7.0",
"clsx": "^2.1.0",
"cmdk": "^1.0.0",
"framer-motion": "^11.1.7",
"geist": "^1.2.2",
"input-otp": "^1.2.4",
"jotai": "^2.8.0",
"js-cookie": "^3.0.5",
"lucide-react": "^0.340.0",
"next": "^13.5.6",
"next-themes": "^0.3.0",
"react": "^18.3.1",
"react-dom": "^18.3.1",
"sonner": "^1.4.41",
"tailwind-merge": "^2.2.2",
"tailwindcss-animate": "^1.0.7",
"zod": "^3.23.8"
},
"devDependencies": {
"@next/eslint-plugin-next": "^13.5.6",
"@svgr/webpack": "^8.1.0",
"@tailwindcss/forms": "^0.5.7",
"@types/js-cookie": "^3.0.6",
"@types/node": "^17.0.45",
"@types/react": "^18.3.1",
"@types/react-dom": "^18.3.0",
"autoprefixer": "^10.4.16",
"eslint-config-custom": "workspace:*",
"postcss": "^8.4.31",
"tailwindcss": "^3.3.3",
"tsconfig": "workspace:*",
"typescript": "^4.5.3"
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
32 changes: 32 additions & 0 deletions apps/platform/public/svg/auth/KeyshadeLogoBig.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
7 changes: 7 additions & 0 deletions apps/platform/public/svg/auth/githubSVG.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
21 changes: 21 additions & 0 deletions apps/platform/public/svg/auth/googleSVG.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/platform/public/svg/auth/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import KeyshadeBigSVG from './KeyshadeLogoBig.svg'
import GoogleSVG from './googleSVG.svg'
import GithubSVG from './githubSVG.svg'

export { KeyshadeBigSVG, GoogleSVG, GithubSVG }
9 changes: 9 additions & 0 deletions apps/platform/public/svg/dashboard/config.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/platform/public/svg/dashboard/environment.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
5 changes: 5 additions & 0 deletions apps/platform/public/svg/dashboard/index.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
import EnvironmentSVG from './environment.svg'
import ConfigSVG from './config.svg'
import SecretSVG from './secret.svg'

export { EnvironmentSVG, ConfigSVG, SecretSVG }
10 changes: 10 additions & 0 deletions apps/platform/public/svg/dashboard/secret.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
11 changes: 11 additions & 0 deletions apps/platform/public/svg/shared/3dotOption.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading

0 comments on commit feace86

Please sign in to comment.