Skip to content

Commit

Permalink
fix(console-fb): add AUTH_REDIRECT_PROXY_URL
Browse files Browse the repository at this point in the history
  • Loading branch information
xmlking committed Jan 18, 2024
1 parent ca02542 commit 3e66ac3
Show file tree
Hide file tree
Showing 22 changed files with 253 additions and 215 deletions.
3 changes: 3 additions & 0 deletions apps/console-fb/.env.example
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,9 @@ PUBLIC_BASE_URL=http://localhost:1521
# PUBLIC_BASE_URL=https://spectacular-console.vercel.app
PUBLIC_DEFAULT_ORGANIZATION=chinthagunta

AUTH_REDIRECT_PROXY_URL=https://spectacular-console.vercel.app/auth
# AUTH_REDIRECT_PROXY_URL=http://localhost:4173/auth in .env.local

## dynamic private
# Microsoft Graph API
MICROSOFT_GRAPH_ENDPOINT=https://graph.microsoft.com
Expand Down
4 changes: 2 additions & 2 deletions apps/console-fb/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -44,7 +44,7 @@
"@sveltejs/adapter-node": "3.0.1",
"@sveltejs/adapter-vercel": "4.0.5",
"@sveltejs/enhanced-img": "0.1.8",
"@sveltejs/kit": "2.3.3",
"@sveltejs/kit": "2.3.5",
"@sveltejs/vite-plugin-svelte": "3.0.1",
"@tailwindcss/container-queries": "0.1.1",
"@testing-library/jest-dom": "6.2.0",
Expand All @@ -57,7 +57,7 @@
"@vercel/analytics": "1.1.1",
"@vite-pwa/sveltekit": "0.3.0",
"@vitest/coverage-v8": "1.2.1",
"autoprefixer": "10.4.16",
"autoprefixer": "10.4.17",
"c8": "9.1.0",
"cross-fetch": "4.0.0",
"cssnano": "6.0.3",
Expand Down
1 change: 1 addition & 0 deletions apps/console-fb/src/lib/server/middleware/authjs.ts
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,7 @@ export const authjs = SvelteKitAuth({
debug: dev,
trustHost: true,
secret: envPri.HASURA_GRAPHQL_JWT_SECRET_KEY,
redirectProxyUrl: envPri.AUTH_REDIRECT_PROXY_URL,
// adapter: HasuraAdapter({
// endpoint: envPri.PUBLIC_GRAPHQL_ENDPOINT,
// adminSecret: envPri.HASURA_GRAPHQL_ADMIN_SECRET
Expand Down
3 changes: 3 additions & 0 deletions apps/console-fb/src/lib/variables/variables.server.ts
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,9 @@ const schema = z.object({
message: 'No spaces allowed'
}),
VERCEL: z.coerce.boolean(),
AUTH_REDIRECT_PROXY_URL: z.string().regex(new RegExp('^\\S*$'), {
message: 'No spaces allowed'
}),
AUTH_PROVIDER_AZUREAD_CLIENT_ID: z.string().regex(new RegExp('^\\S*$'), {
message: 'No spaces allowed'
}),
Expand Down
6 changes: 3 additions & 3 deletions apps/console-sc/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@
"@spectacular/utils": "workspace:*",
"@sveltejs/adapter-auto": "3.1.0",
"@sveltejs/enhanced-img": "0.1.8",
"@sveltejs/kit": "2.3.3",
"@sveltejs/kit": "2.3.5",
"@sveltejs/vite-plugin-svelte": "3.0.1",
"@tailwindcss/container-queries": "0.1.1",
"@tailwindcss/forms": "0.5.7",
Expand All @@ -35,7 +35,7 @@
"@typescript-eslint/eslint-plugin": "6.19.0",
"@typescript-eslint/parser": "6.19.0",
"@vincjo/datatables": "1.14.2",
"autoprefixer": "10.4.16",
"autoprefixer": "10.4.17",
"bits-ui": "0.14.0",
"clsx": "2.1.0",
"cmdk-sv": "0.0.13",
Expand All @@ -44,7 +44,7 @@
"eslint-config-prettier": "9.1.0",
"eslint-plugin-svelte": "2.35.1",
"formsnap": "0.4.2",
"lucide-svelte": "0.311.0",
"lucide-svelte": "0.312.0",
"postcss": "8.4.33",
"postcss-import": "16.0.0",
"postcss-load-config": "5.0.2",
Expand Down
10 changes: 5 additions & 5 deletions apps/console/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -27,9 +27,9 @@
"devDependencies": {
"@floating-ui/dom": "1.5.4",
"@fontsource-variable/inter": "5.0.16",
"@inlang/cli": "2.4.0",
"@inlang/cli": "2.5.0",
"@inlang/paraglide-js": "1.2.1",
"@inlang/paraglide-js-adapter-vite": "1.2.4",
"@inlang/paraglide-js-adapter-vite": "1.2.5",
"@nhost/nhost-js": "3.0.1",
"@skeletonlabs/skeleton": "2.7.1",
"@skeletonlabs/tw-plugin": "0.3.1",
Expand All @@ -42,7 +42,7 @@
"@sveltejs/adapter-node": "3.0.1",
"@sveltejs/adapter-vercel": "4.0.5",
"@sveltejs/enhanced-img": "0.1.8",
"@sveltejs/kit": "2.3.3",
"@sveltejs/kit": "2.3.5",
"@sveltejs/vite-plugin-svelte": "3.0.1",
"@tailwindcss/container-queries": "0.1.1",
"@tailwindcss/forms": "0.5.7",
Expand All @@ -56,7 +56,7 @@
"@vincjo/datatables": "1.14.2",
"@vitest/coverage-v8": "1.2.1",
"@xyflow/svelte": "0.0.34",
"autoprefixer": "10.4.16",
"autoprefixer": "10.4.17",
"d3-array": "3.2.4",
"d3-scale": "4.0.2",
"d3-scale-chromatic": "3.0.0",
Expand All @@ -69,7 +69,7 @@
"houdini": "1.2.36",
"houdini-svelte": "1.2.36",
"layerchart": "0.27.1",
"lucide-svelte": "0.311.0",
"lucide-svelte": "0.312.0",
"postcss": "8.4.33",
"prettier": "3.2.4",
"prettier-plugin-svelte": "3.1.2",
Expand Down
2 changes: 1 addition & 1 deletion apps/docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@
},
"dependencies": {
"@astrojs/check": "0.4.1",
"@astrojs/starlight": "0.15.3",
"@astrojs/starlight": "0.15.4",
"@astrojs/starlight-tailwind": "2.0.1",
"@astrojs/tailwind": "5.1.0",
"@astrojs/vercel": "6.1.4",
Expand Down
4 changes: 2 additions & 2 deletions apps/nhapp/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -18,10 +18,10 @@
"@playwright/test": "1.41.0",
"@sveltejs/adapter-auto": "3.1.0",
"@sveltejs/enhanced-img": "0.1.8",
"@sveltejs/kit": "2.3.3",
"@sveltejs/kit": "2.3.5",
"@sveltejs/vite-plugin-svelte": "3.0.1",
"@types/js-cookie": "3.0.6",
"autoprefixer": "10.4.16",
"autoprefixer": "10.4.17",
"eslint": "8.56.0",
"eslint-config-prettier": "9.1.0",
"eslint-plugin-svelte": "2.35.1",
Expand Down
6 changes: 3 additions & 3 deletions apps/playground/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"@sveltejs/adapter-node": "3.0.1",
"@sveltejs/adapter-vercel": "4.0.5",
"@sveltejs/enhanced-img": "0.1.8",
"@sveltejs/kit": "2.3.3",
"@sveltejs/kit": "2.3.5",
"@sveltejs/vite-plugin-svelte": "3.0.1",
"@tailwindcss/container-queries": "0.1.1",
"@tailwindcss/forms": "0.5.7",
Expand All @@ -52,7 +52,7 @@
"@vincjo/datatables": "1.14.2",
"@vitest/coverage-v8": "1.2.1",
"@xyflow/svelte": "0.0.34",
"autoprefixer": "10.4.16",
"autoprefixer": "10.4.17",
"d3-array": "3.2.4",
"d3-scale": "4.0.2",
"d3-scale-chromatic": "3.0.0",
Expand All @@ -63,7 +63,7 @@
"eslint-plugin-svelte": "2.35.1",
"formsnap": "0.4.2",
"layerchart": "0.27.1",
"lucide-svelte": "0.311.0",
"lucide-svelte": "0.312.0",
"postcss": "8.4.33",
"prettier": "3.2.4",
"prettier-plugin-svelte": "3.1.2",
Expand Down
4 changes: 2 additions & 2 deletions apps/web/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@
"@astrojs/mdx": "2.0.4",
"@astrojs/partytown": "2.0.4",
"@astrojs/sitemap": "3.0.4",
"@astrojs/starlight": "0.15.3",
"@astrojs/starlight": "0.15.4",
"@astrojs/svelte": "5.0.3",
"@astrojs/tailwind": "5.1.0",
"@astrojs/vercel": "6.1.4",
Expand All @@ -37,7 +37,7 @@
"@tailwindcss/typography": "0.5.10",
"astro": "4.1.3",
"astro-seo": "0.8.0",
"lucide-svelte": "0.311.0",
"lucide-svelte": "0.312.0",
"mode-watcher": "0.1.2",
"svelte": "4.2.9",
"tailwind-merge": "2.2.0",
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/AppFooter.astro
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import Container from './Container.astro';
<div class="m-auto md:w-10/12 lg:w-8/12 xl:w-6/12">
<div class="flex flex-wrap items-center justify-between md:flex-nowrap">
<div
class="flex w-full justify-center space-x-12 text-gray-600 sm:w-7/12 md:justify-start dark:text-gray-300"
class="flex w-full justify-center space-x-12 text-gray-600 dark:text-gray-300 sm:w-7/12 md:justify-start"
>
<ul class="list-inside list-disc space-y-8">
<li><a href="/" class="transition hover:text-primary">Home</a></li>
Expand Down
10 changes: 5 additions & 5 deletions apps/web/src/components/AppHeader.astro
Original file line number Diff line number Diff line change
Expand Up @@ -56,7 +56,7 @@ const links = [

<header>
<nav
class="absolute z-10 w-full border-b border-black/5 lg:border-transparent dark:border-white/5"
class="absolute z-10 w-full border-b border-black/5 dark:border-white/5 lg:border-transparent"
>
<Container>
<div
Expand Down Expand Up @@ -91,13 +91,13 @@ const links = [
<div
id="navLayer"
aria-hidden="true"
class="fixed inset-0 z-10 h-screen w-screen origin-bottom scale-y-0 bg-white/70 backdrop-blur-2xl transition duration-500 lg:hidden dark:bg-gray-900/70"
class="fixed inset-0 z-10 h-screen w-screen origin-bottom scale-y-0 bg-white/70 backdrop-blur-2xl transition duration-500 dark:bg-gray-900/70 lg:hidden"
></div>
<div
id="navlinks"
class="invisible absolute left-0 top-full z-20 w-full origin-top-right translate-y-1 scale-90 flex-col flex-wrap justify-end gap-6 rounded-3xl border border-gray-100 bg-white p-8 opacity-0 shadow-2xl shadow-gray-600/10 transition-all duration-300 lg:visible lg:relative lg:flex lg:w-7/12 lg:translate-y-0 lg:scale-100 lg:flex-row lg:items-center lg:gap-0 lg:border-none lg:bg-transparent lg:p-0 lg:opacity-100 lg:shadow-none dark:border-gray-700 dark:bg-gray-800 dark:shadow-none"
class="invisible absolute left-0 top-full z-20 w-full origin-top-right translate-y-1 scale-90 flex-col flex-wrap justify-end gap-6 rounded-3xl border border-gray-100 bg-white p-8 opacity-0 shadow-2xl shadow-gray-600/10 transition-all duration-300 dark:border-gray-700 dark:bg-gray-800 dark:shadow-none lg:visible lg:relative lg:flex lg:w-7/12 lg:translate-y-0 lg:scale-100 lg:flex-row lg:items-center lg:gap-0 lg:border-none lg:bg-transparent lg:p-0 lg:opacity-100 lg:shadow-none"
>
<div class="w-full text-gray-600 lg:w-auto lg:pr-4 lg:pt-0 dark:text-gray-200">
<div class="w-full text-gray-600 dark:text-gray-200 lg:w-auto lg:pr-4 lg:pt-0">
<ul
class="flex flex-col gap-6 tracking-wide lg:flex-row lg:gap-0 lg:text-sm"
>
Expand All @@ -106,7 +106,7 @@ const links = [
<li>
<a
href={link.to}
class="block transition hover:text-primary md:px-4 dark:hover:text-white"
class="block transition hover:text-primary dark:hover:text-white md:px-4"
>
<span>{link.label}</span>
</a>
Expand Down
10 changes: 5 additions & 5 deletions apps/web/src/components/Blog.astro
Original file line number Diff line number Diff line change
Expand Up @@ -5,17 +5,17 @@ import Container from './Container.astro';
<div id="blog">
<Container>
<div class="mb-12 space-y-2 text-center">
<h2 class="text-3xl font-bold text-gray-800 md:text-4xl dark:text-white"
<h2 class="text-3xl font-bold text-gray-800 dark:text-white md:text-4xl"
>Latest Articles</h2
>
<p class="text-gray-600 lg:mx-auto lg:w-6/12 dark:text-gray-300">
<p class="text-gray-600 dark:text-gray-300 lg:mx-auto lg:w-6/12">
Quam hic dolore cumque voluptate rerum beatae et quae, tempore sunt, debitis dolorum
officia aliquid explicabo? Excepturi, voluptate?
</p>
</div>
<div class="grid gap-8 md:grid-cols-2 lg:grid-cols-3">
<div
class="group rounded-3xl border border-gray-100 bg-white bg-opacity-50 p-6 shadow-2xl shadow-gray-600/10 sm:p-8 dark:border-gray-700 dark:bg-gray-800 dark:shadow-none"
class="group rounded-3xl border border-gray-100 bg-white bg-opacity-50 p-6 shadow-2xl shadow-gray-600/10 dark:border-gray-700 dark:bg-gray-800 dark:shadow-none sm:p-8"
>
<div class="relative overflow-hidden rounded-xl">
<img
Expand All @@ -40,7 +40,7 @@ import Container from './Container.astro';
</div>
</div>
<div
class="group rounded-3xl border border-gray-100 bg-white bg-opacity-50 p-6 shadow-2xl shadow-gray-600/10 sm:p-8 dark:border-gray-700 dark:bg-gray-800 dark:shadow-none"
class="group rounded-3xl border border-gray-100 bg-white bg-opacity-50 p-6 shadow-2xl shadow-gray-600/10 dark:border-gray-700 dark:bg-gray-800 dark:shadow-none sm:p-8"
>
<div class="relative overflow-hidden rounded-xl">
<img
Expand All @@ -65,7 +65,7 @@ import Container from './Container.astro';
</div>
</div>
<div
class="group rounded-3xl border border-gray-100 bg-white bg-opacity-50 p-6 shadow-2xl shadow-gray-600/10 sm:p-8 dark:border-gray-700 dark:bg-gray-800 dark:shadow-none"
class="group rounded-3xl border border-gray-100 bg-white bg-opacity-50 p-6 shadow-2xl shadow-gray-600/10 dark:border-gray-700 dark:bg-gray-800 dark:shadow-none sm:p-8"
>
<div class="relative overflow-hidden rounded-xl">
<img
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/CallToAction.astro
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ import avatar4Image from '@assets/avatars/avatar-4.webp';
/>
</div>
<div class="m-auto mt-6 space-y-6 md:w-8/12 lg:w-7/12">
<h1 class="text-center text-4xl font-bold text-gray-800 md:text-5xl dark:text-white"
<h1 class="text-center text-4xl font-bold text-gray-800 dark:text-white md:text-5xl"
>Get Started now</h1
>
<p class="text-center text-xl text-gray-600 dark:text-gray-300">
Expand All @@ -82,7 +82,7 @@ import avatar4Image from '@assets/avatars/avatar-4.webp';
</a>
<a
href="#"
class="relative flex h-12 w-full items-center justify-center px-8 before:absolute before:inset-0 before:rounded-full before:border before:border-transparent before:bg-primary/10 before:bg-gradient-to-b before:transition before:duration-300 hover:before:scale-105 active:duration-75 active:before:scale-95 sm:w-max dark:before:border-gray-700 dark:before:bg-gray-800"
class="relative flex h-12 w-full items-center justify-center px-8 before:absolute before:inset-0 before:rounded-full before:border before:border-transparent before:bg-primary/10 before:bg-gradient-to-b before:transition before:duration-300 hover:before:scale-105 active:duration-75 active:before:scale-95 dark:before:border-gray-700 dark:before:bg-gray-800 sm:w-max"
>
<span class="relative text-base font-semibold text-primary dark:text-white"
>More about</span
Expand Down
4 changes: 2 additions & 2 deletions apps/web/src/components/Features.astro
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@ import Container from './Container.astro';
clip-rule="evenodd"></path>
</svg>

<h2 class="my-8 text-2xl font-bold text-gray-700 md:text-4xl dark:text-white">
<h2 class="my-8 text-2xl font-bold text-gray-700 dark:text-white md:text-4xl">
A technology-first approach to payments and finance
</h2>
<p class="text-gray-600 dark:text-gray-300"
Expand All @@ -27,7 +27,7 @@ import Container from './Container.astro';
>
</div>
<div
class="mt-16 grid divide-x divide-y divide-gray-100 overflow-hidden rounded-3xl border border-gray-100 text-gray-600 sm:grid-cols-2 lg:grid-cols-4 lg:divide-y-0 xl:grid-cols-4 dark:divide-gray-700 dark:border-gray-700"
class="mt-16 grid divide-x divide-y divide-gray-100 overflow-hidden rounded-3xl border border-gray-100 text-gray-600 dark:divide-gray-700 dark:border-gray-700 sm:grid-cols-2 lg:grid-cols-4 lg:divide-y-0 xl:grid-cols-4"
>
<div
class="group relative bg-white transition hover:z-[1] hover:shadow-2xl hover:shadow-gray-600/10 dark:bg-gray-800"
Expand Down
6 changes: 3 additions & 3 deletions apps/web/src/components/HeroSection.astro
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import googleCloudClientImage from '@assets/clients/google-cloud.svg';
<Container>
<div class="relative ml-auto pt-36">
<div class="mx-auto text-center lg:w-2/3">
<h1 class="text-5xl font-bold text-gray-900 md:text-6xl xl:text-7xl dark:text-white"
<h1 class="text-5xl font-bold text-gray-900 dark:text-white md:text-6xl xl:text-7xl"
>Shaping a world with <span class="text-primary dark:text-white"
>reimagination.</span
></h1
Expand All @@ -42,15 +42,15 @@ import googleCloudClientImage from '@assets/clients/google-cloud.svg';
</a>
<a
href="#"
class="relative flex h-11 w-full items-center justify-center px-6 before:absolute before:inset-0 before:rounded-full before:border before:border-transparent before:bg-primary/10 before:bg-gradient-to-b before:transition before:duration-300 hover:before:scale-105 active:duration-75 active:before:scale-95 sm:w-max dark:before:border-gray-700 dark:before:bg-gray-800"
class="relative flex h-11 w-full items-center justify-center px-6 before:absolute before:inset-0 before:rounded-full before:border before:border-transparent before:bg-primary/10 before:bg-gradient-to-b before:transition before:duration-300 hover:before:scale-105 active:duration-75 active:before:scale-95 dark:before:border-gray-700 dark:before:bg-gray-800 sm:w-max"
>
<span class="relative text-base font-semibold text-primary dark:text-white"
>Learn more</span
>
</a>
</div>
<div
class="mt-16 hidden justify-between border-y border-gray-100 py-8 sm:flex dark:border-gray-800"
class="mt-16 hidden justify-between border-y border-gray-100 py-8 dark:border-gray-800 sm:flex"
>
<div class="text-left">
<h6 class="text-lg font-semibold text-gray-700 dark:text-white"
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Stats.astro
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ import pieImage from '@assets/pie.svg';
<Image src={pieImage} alt="image" decoding="async" loading="lazy" class="w-full" />
</div>
<div class="md:7/12 lg:w-1/2">
<h2 class="text-3xl font-bold text-gray-900 md:text-4xl dark:text-white">
<h2 class="text-3xl font-bold text-gray-900 dark:text-white md:text-4xl">
Nuxt development is carried out by passionate developers
</h2>
<p class="my-8 text-gray-600 dark:text-gray-300">
Expand Down
2 changes: 1 addition & 1 deletion apps/web/src/components/Testimonials.astro
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ import avatar4Image from '@assets/avatars/avatar-4.webp';
<div class="text-gray-600 dark:text-gray-300" id="reviews">
<Container>
<div class="mb-20 space-y-4 px-6 md:px-0">
<h2 class="text-center text-2xl font-bold text-gray-800 md:text-4xl dark:text-white">
<h2 class="text-center text-2xl font-bold text-gray-800 dark:text-white md:text-4xl">
We have some fans.
</h2>
</div>
Expand Down
6 changes: 5 additions & 1 deletion docs/turborepo.md
Original file line number Diff line number Diff line change
Expand Up @@ -94,7 +94,11 @@ Testing

```shell
cd apps/console
dotenv-run -p .env,.secrets -d '.*'
dotenv-run -f .env,.secrets -v '.*'
# Use unsecure mode to print values
dotenv-run -f .env,.secrets -v '.*' -u
# using printenv
dotenv-run -f .env,.secrets -v -- printenv
```

### Run
Expand Down
4 changes: 2 additions & 2 deletions packages/skeleton-ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -56,11 +56,11 @@
"@tsconfig/svelte": "5.0.2",
"@types/node": "20.11.5",
"@vincjo/datatables": "1.14.2",
"autoprefixer": "10.4.16",
"autoprefixer": "10.4.17",
"clsx": "2.1.0",
"cssnano": "6.0.3",
"formsnap": "0.4.2",
"lucide-svelte": "0.311.0",
"lucide-svelte": "0.312.0",
"postcss": "8.4.33",
"postcss-import": "16.0.0",
"postcss-load-config": "5.0.2",
Expand Down
4 changes: 2 additions & 2 deletions packages/ui/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -40,8 +40,8 @@
"clsx": "2.1.0",
"cmdk-sv": "0.0.13",
"formsnap": "0.4.2",
"lucide-svelte": "0.311.0",
"sveltekit-superforms": "2.0.0-alpha.22",
"lucide-svelte": "0.312.0",
"sveltekit-superforms": "1.13.3",
"swiper": "11.0.5",
"tailwind-merge": "2.2.0",
"tailwind-variants": "0.1.20",
Expand Down
Loading

1 comment on commit 3e66ac3

@vercel
Copy link

@vercel vercel bot commented on 3e66ac3 Jan 18, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Successfully deployed to the following URLs:

spectacular-docs – ./apps/docs

spectacular-docs.vercel.app
spectacular-docs-git-main-xmlking.vercel.app
spectacular-docs-xmlking.vercel.app

Please sign in to comment.