-
Notifications
You must be signed in to change notification settings - Fork 21
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: switch grant finder to use history API for client-side routing
- Loading branch information
Showing
12 changed files
with
58 additions
and
24 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -60,7 +60,7 @@ See [here](../docker/README.md) for more information about commands to use when | |
|
||
![AWS SES Error](./img/error-aws-ses.png) | ||
|
||
1. Visit `client_url/login` (e.g <http://localhost:8080/#/login>) and login w/ user `[email protected]`. You'll see a confirmation message on the screen. Check your logs to find the generated session link. | ||
1. Visit `client_url/login` (e.g <http://localhost:8080/login>) and login w/ user `[email protected]`. You'll see a confirmation message on the screen. Check your logs to find the generated session link. | ||
|
||
**NOTE:** if you only see a blank screen then ensure you've set up the `packages/client/.env` | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,7 @@ | ||
<template> | ||
<div id="app" style="text-align: center;"> | ||
<h1 style="font-size: 100px;">404</h1> | ||
<h1>Page not found</h1> | ||
<h1>The page you are looking for does not exist. Click here to go to the <b-link to="/">home page</b-link>.</h1> | ||
</div> | ||
</template> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { expect } from 'chai'; | ||
import VueRouter from 'vue-router'; | ||
|
||
import { routes } from '@/router'; | ||
|
||
describe('Router logic', () => { | ||
it('displays 404 page for unknown route', async () => { | ||
const router = new VueRouter({ routes, mode: 'history' }); | ||
await router.push('/rants'); | ||
expect(router.currentRoute.name).to.equal('notFound'); | ||
}); | ||
|
||
it('redirects hash URLs to non-hash URLS', async () => { | ||
const router = new VueRouter({ routes, mode: 'history' }); | ||
await router.push('/#/grants'); | ||
expect(router.currentRoute.fullPath).to.equal('/grants'); | ||
expect(router.currentRoute.name).to.equal('grants'); | ||
}); | ||
}); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters