Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit0bac5cc

Browse files
author
Filip Hric
committed
change geo provider
1 parent79ca233 commit0bac5cc

File tree

3 files changed

+4
-7
lines changed

3 files changed

+4
-7
lines changed

‎.env_example‎

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,6 +4,4 @@ VUE_APP_GOOGLE_CLIENT_SECRET=""
44
# enable or disable google SSO for the trello application
55
VUE_APP_GOOGLE_ENABLED=""
66
# token generated by google oauth playground, this is a token of a user you want to log in to the app
7-
GOOGLE_REFRESH_TOKEN=""
8-
# token for geolocation support, that you can get from https://api.ipgeolocation.io
9-
VUE_APP_GEOLOCATION_API_KEY=""
7+
GOOGLE_REFRESH_TOKEN=""

‎backend/api/location-routes.ts‎

Lines changed: 2 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,10 @@ const discountCountries = [{
1212
app.get('/',(req,res,next)=>{
1313

1414
axios
15-
.get(`https://api.ipgeolocation.io/ipgeo?apiKey=${process.env.VUE_APP_GEOLOCATION_API_KEY}&fields=country_code2`)
15+
.get('https://geo.risk3sixty.com/me')
1616
.then(({ data})=>{
17-
1817

19-
constlocale=data.country_code2
18+
constlocale=data.country
2019
constcountryDiscount=discountCountries.find(c=>c.countryCode===locale)
2120
constresult={
2221
location:locale.toLowerCase(),

‎src/components/Pricing.vue‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,7 @@
77
<div
88
v-if="pricing.discountEligible"
99
data-cy="discount"
10-
class="grid mt-4 bg-yellow-100 rounded-sm border border-yellow-300"
10+
class="gridmx-automt-4 max-w-2xl bg-yellow-100 rounded-sm border border-yellow-300"
1111
>
1212
<pclass="pb-1 text-center">
1313
Your country is <spanclass="text-2xl">{{ emoji.emojify(`:flag-${pricing.location}:`) }}</span>,

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp