Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Release Version 2.14.0 [Merging development into prod] #106

Merged
merged 68 commits into from
Dec 20, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
68 commits
Select commit Hold shift + click to select a range
fafca2d
feat: Revamp the first page and Signup page [#2157]
Abhishek9503 Dec 10, 2024
ed07a15
feat: Revamped otp section and last page [#2157]
Abhishek9503 Dec 11, 2024
923d7dd
disable button after otp is sent
sahell0x Dec 11, 2024
971b73d
.
sahell0x Dec 11, 2024
edfb9dc
fix: fixed the caret position in verify email page for the otp [#2157]
Abhishek9503 Dec 12, 2024
5ac3fdf
feat: added google auth redirect page [#2161]
Abhishek9503 Dec 12, 2024
29c376c
fix: fixed button css and removed some extra code [#2157]
Abhishek9503 Dec 12, 2024
c5e5278
fix: fixed loader in the redirecting page [#2157]
Abhishek9503 Dec 12, 2024
b4cf7dd
fix: fixed the registration redirection issue [#2157]
Abhishek9503 Dec 12, 2024
18a52a6
feat: Added the magic code flow [#2157]
Abhishek9503 Dec 13, 2024
75fc99c
Delete pnpm-lock.yaml
itsmdasifraza Dec 14, 2024
4d69f2b
Merge pull request #85 from sahell0x/fix/83/limit-otp-try-again
itsmdasifraza Dec 14, 2024
750cf82
Revert "disable try again button after otp is sent"
Astitva877 Dec 16, 2024
a82e974
Merge pull request #88 from sparrowapp-dev/revert-85-fix/83/limit-otp…
Abhishek9503 Dec 16, 2024
657734d
Merge pull request #84 from sparrowapp-dev/feat/revamped-login-ui-2157
Astitva877 Dec 16, 2024
0a110cf
feat: Revamped the login ui page [#2157]
Abhishek9503 Dec 16, 2024
c5bb109
fix: fixed the magic code flow error states [#2164]
Abhishek9503 Dec 16, 2024
59e6bb4
fix: fixed imports [#2164]
Abhishek9503 Dec 16, 2024
63e4902
fix: fixed some issue
Abhishek9503 Dec 16, 2024
6d7c99a
fix: fixed resend buton disable issue
Abhishek9503 Dec 16, 2024
6308f2d
fix: fixed the tscong import
Abhishek9503 Dec 16, 2024
e30026c
fix: removed console
Abhishek9503 Dec 16, 2024
f74ddc5
Merge pull request #87 from sparrowapp-dev/feat/added-magic-code-flow
Astitva877 Dec 16, 2024
0ec5afe
feat: Revamped forogot password flow [#2164]
Abhishek9503 Dec 16, 2024
d445a87
Merge pull request #90 from sparrowapp-dev/revamp-login-flow
Astitva877 Dec 16, 2024
acdc6e4
fix: fixed removed unused file
Abhishek9503 Dec 17, 2024
fd3e593
Merge pull request #89 from sparrowapp-dev/fix/revamped-forgot-password
Astitva877 Dec 17, 2024
88c5c47
feat: revamped the login with password flow [#2165]
Astitva877 Dec 17, 2024
031af7b
Merge branch 'revamp-login-flow' of https://github.com/sparrowapp-dev…
Astitva877 Dec 17, 2024
22e20ea
fix: checkbox in sign up []
Astitva877 Dec 17, 2024
98a7cda
Merge pull request #91 from sparrowapp-dev/astitva/login-revamp
Astitva877 Dec 17, 2024
606fc04
fix: disable create account buttton []
Astitva877 Dec 17, 2024
69c7d10
feat: added sparrow edge in auth []
Astitva877 Dec 17, 2024
4024b43
Merge pull request #93 from sparrowapp-dev/astitva/login-revamp
Astitva877 Dec 17, 2024
01926c0
Merge pull request #92 from sparrowapp-dev/revamp-login-flow
Astitva877 Dec 17, 2024
1eebf5a
docs: updated readme
Dec 18, 2024
9d8885f
fix: fixed some ui issue
Abhishek9503 Dec 18, 2024
7f7c4d4
Merge pull request #95 from sparrowapp-dev/fix/fixes-ui-login-issue
Astitva877 Dec 18, 2024
e5f4198
fix: fixed reset password flow []
Astitva877 Dec 18, 2024
db03ff0
Merge branch 'development' of https://github.com/sparrowapp-dev/sparr…
Astitva877 Dec 18, 2024
2ed4ab2
Merge pull request #94 from LordNayan/docs/update-readme
Astitva877 Dec 18, 2024
c415a8d
Merge pull request #96 from sparrowapp-dev/astitva/login-revamp
itsmdasifraza Dec 18, 2024
066be14
fix: fixed redirect from verify magic code []
Astitva877 Dec 18, 2024
00f970e
Merge pull request #97 from sparrowapp-dev/astitva/login-revamp
itsmdasifraza Dec 18, 2024
0d7eeb1
feat: implement copy link on web auth
itsmdasifraza Dec 18, 2024
8919174
fix: fixed text issue
Abhishek9503 Dec 18, 2024
e2c495d
Merge pull request #99 from sparrowapp-dev/fix/fixes-ui-login-issue
Astitva877 Dec 18, 2024
dfb5988
fix: check box alignment and color
Abhishek9503 Dec 18, 2024
ea70659
Merge pull request #100 from sparrowapp-dev/fix/fixes-ui-login-issue
Astitva877 Dec 18, 2024
f1f86a1
fix: google oauth flow fixed []
Astitva877 Dec 18, 2024
251584b
fix: google oauth flow fixed []
Astitva877 Dec 18, 2024
2de7b58
Merge pull request #101 from sparrowapp-dev/astitva/login-revamp
Astitva877 Dec 18, 2024
b5828ba
fix: changed placeholder name []
Astitva877 Dec 19, 2024
7bcbc0a
Merge pull request #102 from sparrowapp-dev/astitva/login-revamp
itsmdasifraza Dec 19, 2024
97e95e2
fix: disabled open desktop button []
Astitva877 Dec 19, 2024
91fe3b3
fix: disabled open desktop button []
Astitva877 Dec 19, 2024
716f717
Merge branch 'development' into astitva/login-revamp
harshvardhan-212 Dec 19, 2024
5a5ad84
Merge pull request #103 from sparrowapp-dev/astitva/login-revamp
Astitva877 Dec 19, 2024
c7ad587
feat: added mixpanel in auth repo []
Astitva877 Dec 19, 2024
a70b78e
Merge pull request #104 from sparrowapp-dev/astitva/mixpanel-integration
itsmdasifraza Dec 19, 2024
5273729
Merge branch 'development' into feat/web-auth-copy-link
itsmdasifraza Dec 19, 2024
ecaa485
feat: Merge branch 'development' of github.com:itsmdasifraza/sparrow-…
itsmdasifraza Dec 19, 2024
0c965a4
feat: Merge branch 'feat/web-auth-copy-link' of github.com:itsmdasifr…
itsmdasifraza Dec 19, 2024
428f0fd
Update OauthRedirect.svelte
itsmdasifraza Dec 19, 2024
bf9efcc
feat: Merge branch 'feat/web-auth-copy-link' of github.com:itsmdasifr…
itsmdasifraza Dec 19, 2024
4d4c39d
Merge pull request #98 from itsmdasifraza/feat/web-auth-copy-link
Astitva877 Dec 19, 2024
c2fd45a
fix: mixpanel event in login & disable desktop app button for web app []
Astitva877 Dec 20, 2024
a16d708
Merge pull request #105 from sparrowapp-dev/astitva/mixpanel-integration
itsmdasifraza Dec 20, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
67 changes: 44 additions & 23 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,40 +1,61 @@
# create-svelte
<p align="center">
<a href="https://sparrows-newsletter.beehiiv.com/subscribe">
<img src="https://sparrowassets.blob.core.windows.net/publicassest/sparrow-logo.png" width="400" alt="logo"/>
</a>
</p>

<h1 align="center">
Sparrow Identity Server
<h4 align="center">
This is an identity server for handling authentication in Sparrow.
</h4>
</h1>

## <a name="installation">🔨 Installation</a>

Everything you need to build a Svelte project, powered by [`create-svelte`](https://github.com/sveltejs/kit/tree/main/packages/create-svelte).
To setup the auth server, you will need to have the following installed on your machine :

## Creating a project
![NODE](https://img.shields.io/badge/-Node.js-black?style=for-the-badge&logoColor=white&logo=nodedotjs&color=339933)
![Yarn](https://img.shields.io/badge/-Yarn-black?style=for-the-badge&logoColor=white&logo=yarn&color=2C8EBB)
![Docker](https://img.shields.io/badge/-Docker-black?style=for-the-badge&logoColor=white&logo=docker&color=2496ED)

If you're seeing this, you've probably already done this step. Congrats!
### Prerequisite:

```bash
# create a new project in the current directory
npm create svelte@latest
# Clone the repository
git clone https://github.com/sparrowapp-dev/sparrow-app-auth.git

# create a new project in my-app
npm create svelte@latest my-app
```
# Move into the project directory
cd sparrow-app-auth

## Developing
# Install yarn globally
npm i -g yarn

# Create and setup environments file
cp .env.example .env
```

Once you've created a project and installed dependencies with `npm install` (or `pnpm install` or `yarn`), start a development server:
### Non-Docker Method

```bash
npm run dev
# Install dependencies
yarn

# or start the server and open the app in a new browser tab
npm run dev -- --open
# Run App in development mode
yarn dev
```

## Building
### Access auth server on localhost:

To create a production version of your app:
Go to http://localhost:1421/

```bash
npm run build
```
### Default User for Login:

You can preview the production build with `npm run preview`.
Sparrow creates a default user to help you get started quickly and easily.

> To deploy your app, you may need to install an [adapter](https://kit.svelte.dev/docs/adapters) for your target environment.
# sparrow-app-auth
This is an identity server for handling authentication in Sparrow.
NOTE: This only works if you have initialized the Sparrow backend server.

**Login Credentials:**

- **Email:** [email protected]
- **Password:** 12345678@
1 change: 1 addition & 0 deletions package.json
Original file line number Diff line number Diff line change
Expand Up @@ -38,6 +38,7 @@
"bootstrap": "^5.3.2",
"btoa": "^1.2.1",
"font-awesome": "^4.7.0",
"mixpanel-browser": "^2.58.0",
"path": "^0.12.7",
"svelte-navigator": "^3.2.2",
"svelte-toasts": "^1.1.2",
Expand Down
12 changes: 10 additions & 2 deletions src/App.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -13,13 +13,17 @@
import EntryPoint from './pages/Auth/entry-point/EntryPoint.svelte';
import BgContainer from '$lib/components/bgContainer/BgContainer.svelte';
import bg from '$lib/assets/sparrowLogoBackground.svg';
import SparrowBackgroundV2 from '$lib/assets/SparrowBackgroundV2.svg';
import ExternalNavigation from './routing/ExternalNavigation.svelte';
import constants from '$lib/utils/constants';
import VerifyEmail from './pages/Auth/verify-email/VerifyEmail.svelte';
import { onMount } from 'svelte';
import VerifyMagicCode from './pages/Auth/verify-magic-code/VerifyMagicCode.svelte';
import CoolDownPage from './pages/Auth/cool-down-page/CoolDownPage.svelte';
import PasswordLogin from './pages/Auth/password-login/PasswordLogin.svelte';
import PasswordUpdateRedirect from './pages/Auth/password-update-redirect/PasswordUpdateRedirect.svelte';
export let url = '/';


</script>

<Router {url}>
Expand All @@ -37,11 +41,15 @@
<ExternalNavigation to={`mailto:${constants.SPARROW_SUPPORT_EMAIL}`}/>
</Route>
<!-- <Route path="/success" component={AuthSuccess} /> -->
<Route path="/verify-magic-code/:id" component={VerifyMagicCode} />
<Route path="/cool-down-active" component={CoolDownPage} />
<Route path="/password-login" component={PasswordLogin} />
<Route path="/password-update-redirect/:id" component={PasswordUpdateRedirect} />
<Route path="/*"><Navigate to="/init" /></Route>
</Router>
<Toast/>

<div style="height: 100vh; top:0; left:0;
right:0; z-index:-100 !important" class="w-100 position-fixed">
<img src={bg} alt="" style="height:100%; width:100%; opacity: 0.7">
<img src={SparrowBackgroundV2} alt="" style="height:100%; width:100%;">
</div>
151 changes: 151 additions & 0 deletions src/lib/assets/AiSparkle.svelte
Original file line number Diff line number Diff line change
@@ -0,0 +1,151 @@
<script>
export let height = "24px";
export let width = "24px";
</script>

<svg
{width}
{height}
viewBox="0 0 29 29"
fill="none"
xmlns="http://www.w3.org/2000/svg"
>
<g filter="url(#filter0_d_15966_755424)">
<path
d="M7.15385 14.0907C10.8675 14.3146 13.8404 17.2863 14.0637 21H14.0908C14.3146 17.2863 17.2869 14.3146 21 14.0907V14.0636C17.2863 13.8392 14.3146 10.8675 14.0908 7.15381H14.0637C13.8398 10.8675 10.8675 13.8392 7.15385 14.0636V14.0907Z"
fill="url(#paint0_linear_15966_755424)"
/>
<path
d="M14.0772 7.76951C13.6098 11.0306 11.0304 13.6094 7.76926 14.0771C11.0304 14.5443 13.6101 17.123 14.0773 20.384C14.5448 17.1231 17.124 14.5444 20.3846 14.0771C17.1235 13.6095 14.5446 11.0306 14.0772 7.76951Z"
stroke="url(#paint1_linear_15966_755424)"
stroke-width="0.151515"
/>
</g>
<g filter="url(#filter1_d_15966_755424)">
<path
d="M6.00007 8.60135C7.3927 8.68529 8.50753 9.79969 8.59125 11.1923H8.60142C8.68536 9.79969 9.79998 8.68529 11.1924 8.60135V8.59118C9.79976 8.50702 8.68536 7.39262 8.60142 6H8.59125C8.50731 7.39262 7.3927 8.50702 6.00007 8.59118V8.60135Z"
fill="url(#paint2_linear_15966_755424)"
/>
<path
d="M8.59634 6.24403C8.41666 7.45739 7.45738 8.41647 6.24398 8.59624C7.45736 8.77584 8.41679 9.73486 8.59636 10.9482C8.77607 9.73487 9.7353 8.77586 10.9485 8.59625C9.7351 8.41647 8.776 7.45739 8.59634 6.24403Z"
stroke="url(#paint3_linear_15966_755424)"
stroke-width="0.0606061"
/>
</g>
<defs>
<filter
id="filter0_d_15966_755424"
x="0.103014"
y="0.358936"
width="27.9483"
height="27.9488"
filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
result="hardAlpha"
/>
<feOffset dy="0.25641" />
<feGaussianBlur stdDeviation="3.52564" />
<feComposite in2="hardAlpha" operator="out" />
<feColorMatrix
type="matrix"
values="0 0 0 0 0.0666667 0 0 0 0 0.576471 0 0 0 0 0.941176 0 0 0 0.55 0"
/>
<feBlend
mode="normal"
in2="BackgroundImageFix"
result="effect1_dropShadow_15966_755424"
/>
<feBlend
mode="normal"
in="SourceGraphic"
in2="effect1_dropShadow_15966_755424"
result="shape"
/>
</filter>
<filter
id="filter1_d_15966_755424"
x="3.17949"
y="3.4359"
width="10.8334"
height="10.8334"
filterUnits="userSpaceOnUse"
color-interpolation-filters="sRGB"
>
<feFlood flood-opacity="0" result="BackgroundImageFix" />
<feColorMatrix
in="SourceAlpha"
type="matrix"
values="0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 0 127 0"
result="hardAlpha"
/>
<feOffset dy="0.25641" />
<feGaussianBlur stdDeviation="1.41026" />
<feComposite in2="hardAlpha" operator="out" />
<feColorMatrix
type="matrix"
values="0 0 0 0 0.0666667 0 0 0 0 0.576471 0 0 0 0 0.941176 0 0 0 0.55 0"
/>
<feBlend
mode="normal"
in2="BackgroundImageFix"
result="effect1_dropShadow_15966_755424"
/>
<feBlend
mode="normal"
in="SourceGraphic"
in2="effect1_dropShadow_15966_755424"
result="shape"
/>
</filter>
<linearGradient
id="paint0_linear_15966_755424"
x1="14.0769"
y1="7.15381"
x2="14.0769"
y2="21"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#6147FF" />
<stop offset="0.695" stop-color="#0095FF" />
</linearGradient>
<linearGradient
id="paint1_linear_15966_755424"
x1="14.0769"
y1="7.15381"
x2="14.0769"
y2="21"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#999999" stop-opacity="0" />
<stop offset="1" stop-color="white" />
</linearGradient>
<linearGradient
id="paint2_linear_15966_755424"
x1="8.59623"
y1="6"
x2="8.59623"
y2="11.1923"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#6147FF" />
<stop offset="1" stop-color="#1193F0" />
</linearGradient>
<linearGradient
id="paint3_linear_15966_755424"
x1="6.53037"
y1="6"
x2="9.56067"
y2="10.697"
gradientUnits="userSpaceOnUse"
>
<stop stop-color="#666666" stop-opacity="0" />
<stop offset="1" stop-color="white" />
</linearGradient>
</defs>
</svg>
Loading
Loading