mirror of
				https://github.com/cinnyapp/cinny.git
				synced 2025-11-04 06:20:28 +03:00 
			
		
		
		
	feat: URL navigation in auth (#1603)
* bump to react 18 and install react-router-dom * Upgrade to react 18 root * update vite * add cs api's * convert state/auth to ts * add client config context * add auto discovery context * add spec version context * add auth flow context * add background dot pattern css * add promise utils * init url based routing * update auth route server path as effect * add auth server hook * always use server from discovery info in context * login - WIP * upgrade jotai to v2 * add atom with localStorage util * add multi account sessions atom * add default IGNORE res to auto discovery * add error type in async callback hook * handle password login error * fix async callback hook * allow password login * Show custom server not allowed error in mxId login * add sso login component * add token login * fix hardcoded m.login.password in login func * update server input on url change * Improve sso login labels * update folds * fix async callback batching state update in safari * wrap async callback set state in queueMicrotask * wip * wip - register * arrange auth file structure * add error codes * extract filed error component form password login * add register util function * handle register flow - WIP * update unsupported auth flow method reasons * improve password input styles * Improve UIA flow next stage calculation complete stages can have any order so we will look for first stage which is not in completed * process register UIA flow stages * Extract register UIA stages component * improve register error messages * add focus trap & step count in UIA stages * add reset password path and path utils * add path with origin hook * fix sso redirect url * rename register token query param to token * restyle auth screen header * add reset password component - WIP * add reset password form * add netlify rewrites * fix netlify file indentation * test netlify redirect * fix vite to include netlify toml * add more netlify redirects * add splat to public and assets path * fix vite base name * add option to use hash router in config and remove appVersion * add splash screen component * add client config loading and error screen * fix server picker bug * fix reset password email input type * make auth page small screen responsive * fix typo in reset password screen
This commit is contained in:
		
							parent
							
								
									bb88eb7154
								
							
						
					
					
						commit
						20db27fa7e
					
				
					 103 changed files with 4772 additions and 543 deletions
				
			
		
							
								
								
									
										22
									
								
								package.json
									
										
									
									
									
								
							
							
						
						
									
										22
									
								
								package.json
									
										
									
									
									
								
							| 
						 | 
				
			
			@ -39,13 +39,13 @@
 | 
			
		|||
    "file-saver": "2.0.5",
 | 
			
		||||
    "flux": "4.0.3",
 | 
			
		||||
    "focus-trap-react": "10.0.2",
 | 
			
		||||
    "folds": "1.5.0",
 | 
			
		||||
    "folds": "1.5.1",
 | 
			
		||||
    "formik": "2.2.9",
 | 
			
		||||
    "html-dom-parser": "4.0.0",
 | 
			
		||||
    "html-react-parser": "4.2.0",
 | 
			
		||||
    "immer": "9.0.16",
 | 
			
		||||
    "is-hotkey": "0.2.0",
 | 
			
		||||
    "jotai": "1.12.0",
 | 
			
		||||
    "jotai": "2.6.0",
 | 
			
		||||
    "katex": "0.16.4",
 | 
			
		||||
    "linkify-html": "4.0.2",
 | 
			
		||||
    "linkify-react": "4.1.1",
 | 
			
		||||
| 
						 | 
				
			
			@ -55,17 +55,18 @@
 | 
			
		|||
    "pdfjs-dist": "3.10.111",
 | 
			
		||||
    "prismjs": "1.29.0",
 | 
			
		||||
    "prop-types": "15.8.1",
 | 
			
		||||
    "react": "17.0.2",
 | 
			
		||||
    "react": "18.2.0",
 | 
			
		||||
    "react-aria": "3.29.1",
 | 
			
		||||
    "react-autosize-textarea": "7.1.0",
 | 
			
		||||
    "react-blurhash": "0.2.0",
 | 
			
		||||
    "react-dnd": "15.1.2",
 | 
			
		||||
    "react-dnd-html5-backend": "15.1.3",
 | 
			
		||||
    "react-dom": "17.0.2",
 | 
			
		||||
    "react-dnd": "16.0.1",
 | 
			
		||||
    "react-dnd-html5-backend": "16.0.1",
 | 
			
		||||
    "react-dom": "18.2.0",
 | 
			
		||||
    "react-error-boundary": "4.0.10",
 | 
			
		||||
    "react-google-recaptcha": "2.1.0",
 | 
			
		||||
    "react-modal": "3.16.1",
 | 
			
		||||
    "react-range": "1.8.14",
 | 
			
		||||
    "react-router-dom": "6.20.0",
 | 
			
		||||
    "sanitize-html": "2.8.0",
 | 
			
		||||
    "slate": "0.94.1",
 | 
			
		||||
    "slate-history": "0.93.0",
 | 
			
		||||
| 
						 | 
				
			
			@ -81,13 +82,14 @@
 | 
			
		|||
    "@types/file-saver": "2.0.5",
 | 
			
		||||
    "@types/node": "18.11.18",
 | 
			
		||||
    "@types/prismjs": "1.26.0",
 | 
			
		||||
    "@types/react": "18.0.26",
 | 
			
		||||
    "@types/react-dom": "18.0.9",
 | 
			
		||||
    "@types/react": "18.2.39",
 | 
			
		||||
    "@types/react-dom": "18.2.17",
 | 
			
		||||
    "@types/react-google-recaptcha": "2.1.8",
 | 
			
		||||
    "@types/sanitize-html": "2.9.0",
 | 
			
		||||
    "@types/ua-parser-js": "0.7.36",
 | 
			
		||||
    "@typescript-eslint/eslint-plugin": "5.46.1",
 | 
			
		||||
    "@typescript-eslint/parser": "5.46.1",
 | 
			
		||||
    "@vitejs/plugin-react": "3.0.0",
 | 
			
		||||
    "@vitejs/plugin-react": "4.2.0",
 | 
			
		||||
    "buffer": "6.0.3",
 | 
			
		||||
    "eslint": "8.29.0",
 | 
			
		||||
    "eslint-config-airbnb": "19.0.4",
 | 
			
		||||
| 
						 | 
				
			
			@ -100,7 +102,7 @@
 | 
			
		|||
    "prettier": "2.8.1",
 | 
			
		||||
    "sass": "1.56.2",
 | 
			
		||||
    "typescript": "4.9.4",
 | 
			
		||||
    "vite": "4.3.9",
 | 
			
		||||
    "vite": "5.0.8",
 | 
			
		||||
    "vite-plugin-static-copy": "0.13.0"
 | 
			
		||||
  }
 | 
			
		||||
}
 | 
			
		||||
| 
						 | 
				
			
			
 | 
			
		|||
		Loading…
	
	Add table
		Add a link
		
	
		Reference in a new issue