-
Notifications
You must be signed in to change notification settings - Fork 3
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #528 from bcgov/vue3-prep
overwrote old main with vue3 files
- Loading branch information
Showing
122 changed files
with
24,603 additions
and
40,874 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
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 |
---|---|---|
|
@@ -192,17 +192,18 @@ const auth = { | |
generateUiToken() { | ||
const i = config.get('tokenGenerate:issuer'); | ||
const s = '[email protected]'; | ||
const a = config.get('tokenGenerate:audience'); | ||
const a = config.get('server:frontend'); | ||
const signOptions = { | ||
issuer: i, | ||
subject: s, | ||
audience: a, | ||
expiresIn: config.get('tokenGenerate:expiresIn') || '30m', | ||
expiresIn: '30m', | ||
algorithm: 'RS256' | ||
}; | ||
|
||
const privateKey = config.get('tokenGenerate:privateKey'); | ||
const uiToken = jsonwebtoken.sign({}, privateKey, signOptions); | ||
|
||
return uiToken; | ||
}, | ||
isValidUiTokenWithRoles: partial(isValidUiToken, isUserHasRoles), | ||
|
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 was deleted.
Oops, something went wrong.
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 |
---|---|---|
@@ -1,19 +1,72 @@ | ||
# EDUC-GRAD-ADMIN | ||
Admin UI for Graduation Records and Assessment Data (GRAD) | ||
# ECC GRAD ADMIN | ||
|
||
[![img](https://img.shields.io/badge/Lifecycle-Experimental-339999)](https://github.com/bcgov/repomountie/blob/master/doc/lifecycle-badges.md) | ||
Requirements | ||
Working: | ||
VULIDATE UPDATED | ||
Updated vuelidate for vue 3 | ||
-updated validations on advanced search to new syntax. | ||
|
||
|
||
## GRAD Admin Frontend | ||
The Node.js Frontend for GRAD Administration application. | ||
VUE3/VITE | ||
Vite-dev proxy working with backend | ||
- /api will be redirected to localhost:8080 (set in vite.config.js) | ||
- updated port to 8081 | ||
BootstrapVue | ||
is running in compatibility mode | ||
https://stackblitz.com/edit/bootstrap-vue-with-compat-8p2z4u?file=vite.config.js | ||
|
||
### Local Setup | ||
**`Step 1`**. make sure you have Node.js 16.17.1 installed in your local machine. if not download from here https://nodejs.org/en/ | ||
|
||
**`Step 2`**. run `npm i --save-dev` in command line from frontend folder, to install required dependencies. | ||
had to add to vite.config.js | ||
alias: { | ||
vue: '@vue/compat', | ||
}, | ||
|
||
**`Step 3`**. run `npm run serve` in command line from frontend folder, to install required dependencies. | ||
|
||
`Unit Tests` | ||
run `npm run test` in command line from frontend folder, to execute unit tests. | ||
ADDED BCGOV STYLES | ||
|
||
KEYCloak - auth - setup | ||
localhost:8080/api/auth/login - to login in with idir | ||
|
||
APIService - can connect and get a repsonse from api | ||
|
||
|
||
Auth.js | ||
-updated | ||
|
||
To do: | ||
remove vue compat | ||
connect to api / vuex / keycloak | ||
displaytable (need to rename to dataTable) component VUE 3 Compatibility | ||
upgrade router -add routes | ||
vue3 forms | ||
|
||
|
||
|
||
## Recommended IDE Setup | ||
|
||
[VSCode](https://code.visualstudio.com/) + [Volar](https://marketplace.visualstudio.com/items?itemName=Vue.volar) (and disable Vetur) + [TypeScript Vue Plugin (Volar)](https://marketplace.visualstudio.com/items?itemName=Vue.vscode-typescript-vue-plugin). | ||
|
||
## Customize configuration | ||
|
||
See [Vite Configuration Reference](https://vitejs.dev/config/). | ||
|
||
## Project Setup | ||
|
||
```sh | ||
npm install | ||
``` | ||
|
||
### Compile and Hot-Reload for Development | ||
|
||
```sh | ||
npm run dev | ||
``` | ||
|
||
### Compile and Minify for Production | ||
|
||
```sh | ||
npm run build | ||
``` | ||
|
||
### Lint with [ESLint](https://eslint.org/) | ||
|
||
```sh | ||
npm run lint | ||
``` |
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,13 @@ | ||
<!DOCTYPE html> | ||
<html lang="en"> | ||
<head> | ||
<meta charset="UTF-8"> | ||
<link rel="icon" href="/favicon.ico"> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0"> | ||
<title>Graduation Records and Achievement Data</title> | ||
</head> | ||
<body> | ||
<div id="app"></div> | ||
<script type="module" src="/src/main.js"></script> | ||
</body> | ||
</html> |
Oops, something went wrong.