mirror of
				https://github.com/steveiliop56/tinyauth.git
				synced 2025-10-31 14:15:50 +00:00 
			
		
		
		
	Compare commits
	
		
			4 Commits
		
	
	
		
			v3.2.0-bet
			...
			v3.2.0-bet
		
	
	| Author | SHA1 | Date | |
|---|---|---|---|
|   | 6d17ce699a | ||
|   | 20dbb35d44 | ||
|   | 36d9dd7354 | ||
|   | 5129f9bff8 | 
							
								
								
									
										105
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							
							
						
						
									
										105
									
								
								.github/workflows/release.yml
									
									
									
									
										vendored
									
									
								
							| @@ -6,7 +6,85 @@ on: | ||||
|       - "v*" | ||||
|  | ||||
| jobs: | ||||
|   build: | ||||
|   binary-build: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
|  | ||||
|       - uses: oven-sh/setup-bun@v2 | ||||
|         with: | ||||
|           bun-version: latest | ||||
|  | ||||
|       - uses: actions/setup-go@v5 | ||||
|         with: | ||||
|           go-version: "^1.23.2" | ||||
|  | ||||
|       - name: Install frontend dependencies | ||||
|         run: | | ||||
|           cd frontend | ||||
|           bun install | ||||
|  | ||||
|       - name: Install backend dependencies | ||||
|         run: | | ||||
|           go mod tidy | ||||
|  | ||||
|       - name: Build frontend | ||||
|         run: | | ||||
|           cd frontend | ||||
|           bun run build | ||||
|  | ||||
|       - name: Build | ||||
|         run: | | ||||
|           cp -r frontend/dist internal/assets/dist | ||||
|           CGO_ENABLED=0 go build -ldflags "-s -w" -o tinyauth-amd64 | ||||
|  | ||||
|       - name: Upload artifact | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           name: tinyauth-amd64 | ||||
|           path: tinyauth-amd64 | ||||
|  | ||||
|   binary-build-arm: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout | ||||
|         uses: actions/checkout@v4 | ||||
|  | ||||
|       - uses: oven-sh/setup-bun@v2 | ||||
|         with: | ||||
|           bun-version: latest | ||||
|  | ||||
|       - uses: actions/setup-go@v5 | ||||
|         with: | ||||
|           go-version: "^1.23.2" | ||||
|  | ||||
|       - name: Install frontend dependencies | ||||
|         run: | | ||||
|           cd frontend | ||||
|           bun install | ||||
|  | ||||
|       - name: Install backend dependencies | ||||
|         run: | | ||||
|           go mod tidy | ||||
|  | ||||
|       - name: Build frontend | ||||
|         run: | | ||||
|           cd frontend | ||||
|           bun run build | ||||
|  | ||||
|       - name: Build | ||||
|         run: | | ||||
|           cp -r frontend/dist internal/assets/dist | ||||
|           CGO_ENABLED=0 go build -ldflags "-s -w" -o tinyauth-arm64 | ||||
|  | ||||
|       - name: Upload artifact | ||||
|         uses: actions/upload-artifact@v4 | ||||
|         with: | ||||
|           name: tinyauth-arm64 | ||||
|           path: tinyauth-arm64 | ||||
|  | ||||
|   image-build: | ||||
|     runs-on: ubuntu-latest | ||||
|     steps: | ||||
|       - name: Checkout | ||||
| @@ -51,7 +129,7 @@ jobs: | ||||
|           if-no-files-found: error | ||||
|           retention-days: 1 | ||||
|  | ||||
|   build-arm: | ||||
|   image-build-arm: | ||||
|     runs-on: ubuntu-24.04-arm | ||||
|     steps: | ||||
|       - name: Checkout | ||||
| @@ -96,11 +174,11 @@ jobs: | ||||
|           if-no-files-found: error | ||||
|           retention-days: 1 | ||||
|  | ||||
|   merge: | ||||
|   image-merge: | ||||
|     runs-on: ubuntu-latest | ||||
|     needs: | ||||
|       - build | ||||
|       - build-arm | ||||
|       - image-build | ||||
|       - image-build-arm | ||||
|     steps: | ||||
|       - name: Download digests | ||||
|         uses: actions/download-artifact@v4 | ||||
| @@ -134,3 +212,20 @@ jobs: | ||||
|         run: | | ||||
|           docker buildx imagetools create $(jq -cr '.tags | map("-t " + .) | join(" ")' <<< "$DOCKER_METADATA_OUTPUT_JSON") \ | ||||
|             $(printf 'ghcr.io/${{ github.repository_owner }}/tinyauth@sha256:%s ' *) | ||||
|  | ||||
|   update-release: | ||||
|     runs-on: ubuntu-latest | ||||
|     needs: | ||||
|       - binary-build | ||||
|       - binary-build-arm | ||||
|     steps: | ||||
|       - uses: actions/download-artifact@v4 | ||||
|         with: | ||||
|           pattern: tinyauth-* | ||||
|           path: binaries | ||||
|           merge-multiple: true | ||||
|  | ||||
|       - name: Release | ||||
|         uses: softprops/action-gh-release@v2 | ||||
|         with: | ||||
|           files: binaries/* | ||||
|   | ||||
| @@ -1,6 +1,8 @@ | ||||
| import { useMantineColorScheme } from "@mantine/core"; | ||||
| import type { SVGProps } from "react"; | ||||
|  | ||||
| export function TailscaleIcon(props: SVGProps<SVGSVGElement>) { | ||||
|   const { colorScheme } = useMantineColorScheme(); | ||||
|   return ( | ||||
|     <svg | ||||
|       xmlns="http://www.w3.org/2000/svg" | ||||
| @@ -9,47 +11,17 @@ export function TailscaleIcon(props: SVGProps<SVGSVGElement>) { | ||||
|       height={24} | ||||
|       {...props} | ||||
|     > | ||||
|       <style>{".st0{opacity:0.2;fill:#CCCAC9;}.st1{fill:#FFFFFF;}"}</style> | ||||
|       <g> | ||||
|         <g> | ||||
|           <path | ||||
|             className="st0" | ||||
|             d="M65.6,127.7c35.3,0,63.9-28.6,63.9-63.9S100.9,0,65.6,0S1.8,28.6,1.8,63.9S30.4,127.7,65.6,127.7z" | ||||
|           /> | ||||
|           <path | ||||
|             className="st1" | ||||
|             d="M65.6,318.1c35.3,0,63.9-28.6,63.9-63.9s-28.6-63.9-63.9-63.9S1.8,219,1.8,254.2S30.4,318.1,65.6,318.1z" | ||||
|           /> | ||||
|           <path | ||||
|             className="st0" | ||||
|             d="M65.6,512c35.3,0,63.9-28.6,63.9-63.9s-28.6-63.9-63.9-63.9S1.8,412.9,1.8,448.1S30.4,512,65.6,512z" | ||||
|           /> | ||||
|           <path | ||||
|             className="st1" | ||||
|             d="M257.2,318.1c35.3,0,63.9-28.6,63.9-63.9s-28.6-63.9-63.9-63.9s-63.9,28.6-63.9,63.9S221.9,318.1,257.2,318.1z" | ||||
|           /> | ||||
|           <path | ||||
|             className="st1" | ||||
|             d="M257.2,512c35.3,0,63.9-28.6,63.9-63.9s-28.6-63.9-63.9-63.9s-63.9,28.6-63.9,63.9S221.9,512,257.2,512z" | ||||
|           /> | ||||
|           <path | ||||
|             className="st0" | ||||
|             d="M257.2,127.7c35.3,0,63.9-28.6,63.9-63.9S292.5,0,257.2,0s-63.9,28.6-63.9,63.9S221.9,127.7,257.2,127.7z" | ||||
|           /> | ||||
|           <path | ||||
|             className="st0" | ||||
|             d="M446.4,127.7c35.3,0,63.9-28.6,63.9-63.9S481.6,0,446.4,0c-35.3,0-63.9,28.6-63.9,63.9S411.1,127.7,446.4,127.7z" | ||||
|           /> | ||||
|           <path | ||||
|             className="st1" | ||||
|             d="M446.4,318.1c35.3,0,63.9-28.6,63.9-63.9s-28.6-63.9-63.9-63.9s-63.9,28.6-63.9,63.9S411.1,318.1,446.4,318.1z" | ||||
|           /> | ||||
|           <path | ||||
|             className="st0" | ||||
|             d="M446.4,512c35.3,0,63.9-28.6,63.9-63.9s-28.6-63.9-63.9-63.9s-63.9,28.6-63.9,63.9S411.1,512,446.4,512z" | ||||
|           /> | ||||
|         </g> | ||||
|       </g> | ||||
|       {colorScheme === "dark" ? ( | ||||
|         <> | ||||
|           <path xmlns="http://www.w3.org/2000/svg" d="M65.6 318.1c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9S1.8 219 1.8 254.2s28.6 63.9 63.8 63.9m191.6 0c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.9 28.6-63.9 63.9 28.6 63.9 63.9 63.9m0 193.9c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.9 28.6-63.9 63.9 28.6 63.9 63.9 63.9m189.2-193.9c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.9 28.6-63.9 63.9 28.6 63.9 63.9 63.9" fill="#ffffff"/> | ||||
|           <path xmlns="http://www.w3.org/2000/svg" d="M65.6 127.7c35.3 0 63.9-28.6 63.9-63.9S100.9 0 65.6 0 1.8 28.6 1.8 63.9s28.6 63.8 63.8 63.8m0 384.3c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.8 28.7-63.8 63.9S30.4 512 65.6 512m191.6-384.3c35.3 0 63.9-28.6 63.9-63.9S292.5 0 257.2 0s-63.9 28.6-63.9 63.9 28.6 63.8 63.9 63.8m189.2 0c35.3 0 63.9-28.6 63.9-63.9S481.6 0 446.4 0c-35.3 0-63.9 28.6-63.9 63.9s28.6 63.8 63.9 63.8m0 384.3c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.9 28.6-63.9 63.9 28.6 63.9 63.9 63.9" fill="#CCCAC9" opacity="0.2"/> | ||||
|         </> | ||||
|       ) : ( | ||||
|         <> | ||||
|           <path xmlns="http://www.w3.org/2000/svg" d="M65.6 318.1c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9S1.8 219 1.8 254.2s28.6 63.9 63.8 63.9m191.6 0c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.9 28.6-63.9 63.9 28.6 63.9 63.9 63.9m0 193.9c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.9 28.6-63.9 63.9 28.6 63.9 63.9 63.9m189.2-193.9c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.9 28.6-63.9 63.9 28.6 63.9 63.9 63.9"/> | ||||
|           <path xmlns="http://www.w3.org/2000/svg" d="M65.6 127.7c35.3 0 63.9-28.6 63.9-63.9S100.9 0 65.6 0 1.8 28.6 1.8 63.9s28.6 63.8 63.8 63.8m0 384.3c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.8 28.7-63.8 63.9S30.4 512 65.6 512m191.6-384.3c35.3 0 63.9-28.6 63.9-63.9S292.5 0 257.2 0s-63.9 28.6-63.9 63.9 28.6 63.8 63.9 63.8m189.2 0c35.3 0 63.9-28.6 63.9-63.9S481.6 0 446.4 0c-35.3 0-63.9 28.6-63.9 63.9s28.6 63.8 63.9 63.8m0 384.3c35.3 0 63.9-28.6 63.9-63.9s-28.6-63.9-63.9-63.9-63.9 28.6-63.9 63.9 28.6 63.9 63.9 63.9" opacity=".2"/> | ||||
|         </> | ||||
|       )} | ||||
|     </svg> | ||||
|   ); | ||||
| } | ||||
|   | ||||
| @@ -1,12 +1,12 @@ | ||||
| { | ||||
|     "loginTitle": "Welcome back, login with", | ||||
|     "loginDivider": "Or continue with password", | ||||
|     "loginUsername": "Username", | ||||
|     "loginPassword": "Password", | ||||
|     "loginSubmit": "Login", | ||||
|     "loginFailTitle": "Failed to log in", | ||||
|     "loginFailSubtitle": "Please check your username and password", | ||||
|     "loginFailRateLimit": "You failed to login too many times, please try again later", | ||||
|     "loginTitle": "Willkommen zurück, logge dich ein mit", | ||||
|     "loginDivider": "Oder mit Passwort fortfahren", | ||||
|     "loginUsername": "Benutzername", | ||||
|     "loginPassword": "Passwort", | ||||
|     "loginSubmit": "Anmelden", | ||||
|     "loginFailTitle": "Login fehlgeschlagen", | ||||
|     "loginFailSubtitle": "Bitte überprüfe deinen Benutzernamen und Passwort", | ||||
|     "loginFailRateLimit": "Sie konnten sich zu oft nicht einloggen, bitte versuchen Sie es später erneut", | ||||
|     "loginSuccessTitle": "Logged in", | ||||
|     "loginSuccessSubtitle": "Welcome back!", | ||||
|     "loginOauthFailTitle": "Internal error", | ||||
|   | ||||
| @@ -1,11 +1,11 @@ | ||||
| { | ||||
|     "loginTitle": "Welcome back, login with", | ||||
|     "loginDivider": "Or continue with password", | ||||
|     "loginUsername": "Username", | ||||
|     "loginPassword": "Password", | ||||
|     "loginSubmit": "Login", | ||||
|     "loginFailTitle": "Failed to log in", | ||||
|     "loginFailSubtitle": "Please check your username and password", | ||||
|     "loginTitle": "Welkom terug, log in met", | ||||
|     "loginDivider": "Of ga door met wachtwoord", | ||||
|     "loginUsername": "Gebruikersnaam", | ||||
|     "loginPassword": "Wachtwoord", | ||||
|     "loginSubmit": "Log in", | ||||
|     "loginFailTitle": "Mislukt om in te loggen", | ||||
|     "loginFailSubtitle": "Gelieve uw gebruikersnaam en wachtwoord te controleren", | ||||
|     "loginFailRateLimit": "You failed to login too many times, please try again later", | ||||
|     "loginSuccessTitle": "Logged in", | ||||
|     "loginSuccessSubtitle": "Welcome back!", | ||||
|   | ||||
| @@ -29,7 +29,7 @@ const queryClient = new QueryClient({ | ||||
|  | ||||
| createRoot(document.getElementById("root")!).render( | ||||
|   <StrictMode> | ||||
|     <MantineProvider forceColorScheme="dark"> | ||||
|     <MantineProvider defaultColorScheme="auto"> | ||||
|       <QueryClientProvider client={queryClient}> | ||||
|         <Notifications /> | ||||
|         <AppContextProvider> | ||||
|   | ||||
		Reference in New Issue
	
	Block a user