Browse Source

update web push servers to the domains we're using

pull/80/head
Trent Larson 11 months ago
parent
commit
681d949098
  1. 8
      src/constants/app.ts
  2. 20
      src/views/AccountViewView.vue

8
src/constants/app.ts

@ -12,11 +12,11 @@ export enum AppString {
DEFAULT_ENDORSER_API_SERVER = TEST_ENDORSER_API_SERVER, DEFAULT_ENDORSER_API_SERVER = TEST_ENDORSER_API_SERVER,
PROD_PUSH_SERVER = "https://push.endorser.ch", PROD_PUSH_SERVER = "https://timesafari.app",
TEST_PUSH_SERVER = "https://timesafari-pwa.anomalistlabs.com", TEST1_PUSH_SERVER = "https://test.timesafari.app",
LOCAL_PUSH_SERVER = "http://localhost:3001", TEST2_PUSH_SERVER = "https://timesafari-pwa.anomalistlabs.com",
DEFAULT_PUSH_SERVER = TEST_PUSH_SERVER, DEFAULT_PUSH_SERVER = TEST1_PUSH_SERVER,
} }
/** /**

20
src/views/AccountViewView.vue

@ -323,19 +323,19 @@
<fa icon="floppy-disk" class="fa-fw" color="white"></fa> <fa icon="floppy-disk" class="fa-fw" color="white"></fa>
</button> </button>
<button <button
class="px-4 rounded bg-slate-200 border border-slate-400" class="px-3 rounded bg-slate-200 border border-slate-400"
@click="apiServerInput = AppConstants.PROD_ENDORSER_API_SERVER" @click="apiServerInput = AppConstants.PROD_ENDORSER_API_SERVER"
> >
Use Prod Use Prod
</button> </button>
<button <button
class="px-4 rounded bg-slate-200 border border-slate-400" class="px-3 rounded bg-slate-200 border border-slate-400"
@click="apiServerInput = AppConstants.TEST_ENDORSER_API_SERVER" @click="apiServerInput = AppConstants.TEST_ENDORSER_API_SERVER"
> >
Use Test Use Test
</button> </button>
<button <button
class="px-4 rounded bg-slate-200 border border-slate-400" class="px-3 rounded bg-slate-200 border border-slate-400"
@click="apiServerInput = AppConstants.LOCAL_ENDORSER_API_SERVER" @click="apiServerInput = AppConstants.LOCAL_ENDORSER_API_SERVER"
> >
Use Local Use Local
@ -359,22 +359,22 @@
<fa icon="floppy-disk" class="fa-fw" color="white"></fa> <fa icon="floppy-disk" class="fa-fw" color="white"></fa>
</button> </button>
<button <button
class="px-4 rounded bg-slate-200 border border-slate-400" class="px-3 rounded bg-slate-200 border border-slate-400"
@click="webPushServerInput = AppConstants.PROD_PUSH_SERVER" @click="webPushServerInput = AppConstants.PROD_PUSH_SERVER"
> >
Use Prod Use Prod
</button> </button>
<button <button
class="px-4 rounded bg-slate-200 border border-slate-400" class="px-3 rounded bg-slate-200 border border-slate-400"
@click="webPushServerInput = AppConstants.TEST_PUSH_SERVER" @click="webPushServerInput = AppConstants.TEST1_PUSH_SERVER"
> >
Use Test Use Test 1
</button> </button>
<button <button
class="px-4 rounded bg-slate-200 border border-slate-400" class="px-3 rounded bg-slate-200 border border-slate-400"
@click="webPushServerInput = AppConstants.LOCAL_PUSH_SERVER" @click="webPushServerInput = AppConstants.TEST2_PUSH_SERVER"
> >
Use Local Use Test 2
</button> </button>
</div> </div>
</div> </div>

Loading…
Cancel
Save