feat: add login with google in frontend

fix vite proxy setting
This commit is contained in:
Lin, Hung-Shin committed 2023-10-05 12:02:23 +08:00
1 parent aa29098954
commit 9ac7fc9752
3 files changed
+15 -2

No files matched your search

+10
View File
@@ -167,6 +167,16 @@ const goBack = () => {
>
<span>Back to Login</span>
</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>
</div>
</template>
+3
View File
@@ -22,6 +22,9 @@ export default {
border: {
DEFAULT: '#526B4E',
},
icon: {
google: '#DB4437',
},
},
},
},
+2 -2
View File
@@ -8,11 +8,11 @@ export default defineConfig({
proxy: {
'/api': {
target: process.env.API_TARGET || 'http://localhost:3000',
changeOrigin: true,
changeOrigin: false,
},
'/socket.io': {
target: process.env.API_TARGET || 'ws://localhost:3000',
changeOrigin: true,
changeOrigin: false,
ws: true,
},
},