mirror of
https://github.com/linux-odyssey/linux-odyssey.git
synced 2026-11-08 03:20:12 +08:00
feat: add login with google in frontend
fix vite proxy setting
This commit is contained in:
1 parent
aa29098954
commit
9ac7fc9752
3 files changed
+15
-2
No files matched your search
@@ -167,6 +167,16 @@ const goBack = () => {
|
|||||||
>
|
>
|
||||||
<span>Back to Login</span>
|
<span>Back to Login</span>
|
||||||
</button>
|
</button>
|
||||||
|
<hr class="my-8" />
|
||||||
|
<p class="flex justify-center font-semibold text-text text-m">
|
||||||
|
Log in with social account
|
||||||
|
</p>
|
||||||
|
<a
|
||||||
|
class="inline-flex justify-center rounded-lg text-sm font-black py-2 mt-3 bg-icon-google text-text w-full"
|
||||||
|
href="/api/v1/auth/google"
|
||||||
|
>
|
||||||
|
<span>Google</span>
|
||||||
|
</a>
|
||||||
</form>
|
</form>
|
||||||
</div>
|
</div>
|
||||||
</template>
|
</template>
|
||||||
@@ -22,6 +22,9 @@ export default {
|
|||||||
border: {
|
border: {
|
||||||
DEFAULT: '#526B4E',
|
DEFAULT: '#526B4E',
|
||||||
},
|
},
|
||||||
|
icon: {
|
||||||
|
google: '#DB4437',
|
||||||
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
+2
-2
@@ -8,11 +8,11 @@ export default defineConfig({
|
|||||||
proxy: {
|
proxy: {
|
||||||
'/api': {
|
'/api': {
|
||||||
target: process.env.API_TARGET || 'http://localhost:3000',
|
target: process.env.API_TARGET || 'http://localhost:3000',
|
||||||
changeOrigin: true,
|
changeOrigin: false,
|
||||||
},
|
},
|
||||||
'/socket.io': {
|
'/socket.io': {
|
||||||
target: process.env.API_TARGET || 'ws://localhost:3000',
|
target: process.env.API_TARGET || 'ws://localhost:3000',
|
||||||
changeOrigin: true,
|
changeOrigin: false,
|
||||||
ws: true,
|
ws: true,
|
||||||
},
|
},
|
||||||
},
|
},
|
||||||
|
|||||||
Reference in new issue
Block a user