Skip to content

Commit

Permalink
ci(web): 🐛 test error codes
Browse files Browse the repository at this point in the history
  • Loading branch information
willin committed Dec 28, 2023
1 parent d9b0318 commit 0a9d7e1
Show file tree
Hide file tree
Showing 5 changed files with 10 additions and 12 deletions.
2 changes: 1 addition & 1 deletion apps/sso/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@
"main": "src/index.ts",
"scripts": {
"dev": "wrangler dev --config wrangler.toml",
"deploy": "wrangler publish --config wrangler.toml",
"deploy": "wrangler deploy --config wrangler.toml",
"lint": "prettier --write . && eslint . --fix",
"test": "vitest run --pass-with-no-tests"
},
Expand Down
6 changes: 3 additions & 3 deletions apps/website/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
"dev": "vite dev",
"build": "vite build",
"dev:cloudflare": "wrangler dev --config wrangler.toml",
"deploy": "wrangler publish --config wrangler.toml",
"deploy": "wrangler deploy --config wrangler.toml",
"preview": "vite preview",
"check": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json",
"check:watch": "svelte-kit sync && svelte-check --tsconfig ./tsconfig.json --watch",
Expand All @@ -20,8 +20,8 @@
},
"devDependencies": {
"@sveltejs/adapter-cloudflare-workers": "^2.0.1",
"@sveltejs/kit": "^2.0.0",
"@sveltejs/vite-plugin-svelte": "^3.0.0",
"@sveltejs/kit": "^2.0.6",
"@sveltejs/vite-plugin-svelte": "^3.0.1",
"@tailwindcss/typography": "^0.5.10",
"autoprefixer": "^10.4.16",
"daisyui": "^4.4.24",
Expand Down
2 changes: 1 addition & 1 deletion apps/website/src/lib/utils.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ export const providerNames = {
};

export function getProviderName(
provider: keyof typeof providerNames & string
provider: keyof typeof providerNames | string
): string {
return providerNames?.[provider] || provider;
}
Original file line number Diff line number Diff line change
Expand Up @@ -86,7 +86,8 @@
</form>
<AdSlot />
<h3 class="my-4">{$t('user.thirdparty')}</h3>
<div>

<!-- <div>
{#snippet ThirdPartyCard(thirdUser)}
<div class='card w-full my-4 bg-base-100 shadow-xl'>
<div class='card-body'>
Expand Down Expand Up @@ -114,8 +115,9 @@
{@render ThirdPartyCard(thirdUser)}
{/each}
</div>
<div>
{#snippet BindThirdCard(provider)}
{#each providers as provider(provider)}
<div class='card w-full my-4 bg-base-100 shadow-xl'>
<div class='card-body'>
<h2 class='card-title capitalize'>{getProviderName(provider)}</h2>
Expand All @@ -130,9 +132,5 @@
</div>
</div>
</div>
{/snippet}

{#each providers as provider(provider)}
{@render BindThirdCard(provider)}
{/each}
</div>
</div> -->
Binary file modified bun.lockb
Binary file not shown.

0 comments on commit 0a9d7e1

Please sign in to comment.