Skip to content

Commit f6b398f

Browse files
Jeromehardaway/add GitHub login (#636)
* add updated login * adding auth folder * made sure that next-auth and types/next-auth was installed * login works * fixed the colors to use tailwind.config * fix user typescript issue * types issues fixed * address errors on login and _app files * fixed next/app prettier error * made recommeneded fixes for types in login and _app * fix prettier code * fixing the errors * added eslint rule; and ran prettier
1 parent 9ed9a9e commit f6b398f

File tree

240 files changed

+9061
-27284
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

240 files changed

+9061
-27284
lines changed

.github/workflows/playwright.yml

Lines changed: 54 additions & 54 deletions
Original file line numberDiff line numberDiff line change
@@ -1,59 +1,59 @@
11
name: Playwright Tests
22

33
on:
4-
push:
5-
branches: [main, master]
6-
pull_request:
7-
branches: [main, master]
4+
push:
5+
branches: [main, master]
6+
pull_request:
7+
branches: [main, master]
88

99
jobs:
10-
test:
11-
timeout-minutes: 60
12-
runs-on: ubuntu-latest
13-
14-
steps:
15-
- uses: actions/checkout@v3
16-
17-
- name: Cache node modules
18-
uses: actions/cache@v2
19-
env:
20-
cache-name: cache-node-modules
21-
with:
22-
# This path is platform dependent; use **/node_modules for Windows
23-
path: |
24-
node_modules
25-
**/node_modules
26-
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
27-
restore-keys: |
28-
${{ runner.os }}-build-${{ env.cache-name }}-
29-
${{ runner.os }}-build-
30-
${{ runner.os }}-
31-
32-
- uses: actions/setup-node@v3
33-
with:
34-
node-version: 18
35-
36-
- name: Install dependencies
37-
run: yarn
38-
39-
- name: Cache Playwright Browsers
40-
uses: actions/cache@v2
41-
with:
42-
path: |
43-
~/.cache/ms-playwright
44-
key: ${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
45-
restore-keys: |
46-
${{ runner.os }}-playwright-
47-
48-
- name: Install Playwright Browsers
49-
run: yarn playwright install --with-deps
50-
51-
- name: Run Playwright tests
52-
run: yarn playwright test
53-
54-
- uses: actions/upload-artifact@v3
55-
if: always()
56-
with:
57-
name: playwright-report
58-
path: playwright-report/
59-
retention-days: 30
10+
test:
11+
timeout-minutes: 60
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- uses: actions/checkout@v3
16+
17+
- name: Cache node modules
18+
uses: actions/cache@v2
19+
env:
20+
cache-name: cache-node-modules
21+
with:
22+
# This path is platform dependent; use **/node_modules for Windows
23+
path: |
24+
node_modules
25+
**/node_modules
26+
key: ${{ runner.os }}-build-${{ env.cache-name }}-${{ hashFiles('**/yarn.lock') }}
27+
restore-keys: |
28+
${{ runner.os }}-build-${{ env.cache-name }}-
29+
${{ runner.os }}-build-
30+
${{ runner.os }}-
31+
32+
- uses: actions/setup-node@v3
33+
with:
34+
node-version: 18
35+
36+
- name: Install dependencies
37+
run: yarn
38+
39+
- name: Cache Playwright Browsers
40+
uses: actions/cache@v2
41+
with:
42+
path: |
43+
~/.cache/ms-playwright
44+
key: ${{ runner.os }}-playwright-${{ hashFiles('**/yarn.lock') }}
45+
restore-keys: |
46+
${{ runner.os }}-playwright-
47+
48+
- name: Install Playwright Browsers
49+
run: yarn playwright install --with-deps
50+
51+
- name: Run Playwright tests
52+
run: yarn playwright test
53+
54+
- uses: actions/upload-artifact@v3
55+
if: always()
56+
with:
57+
name: playwright-report
58+
path: playwright-report/
59+
retention-days: 30

.prettierrc

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
{
2-
"endOfLine": "lf",
3-
"semi": true,
42
"singleQuote": false,
3+
"trailingComma": "es5",
54
"tabWidth": 4,
6-
"trailingComma": "es5"
5+
"semi": true,
6+
"printWidth": 100,
7+
"endOfLine": "lf"
78
}

README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -106,4 +106,4 @@ Curious about upcoming features? Check our [Roadmap](https://github.com/orgs/Vet
106106
107107
## License :scroll:
108108
109-
This project is under the MIT License - see the [License](https://github.com/Vets-Who-Code/vwc-site/blob/master/LICENSE) for more details.
109+
This project is under the MIT License - see the [License](https://github.com/Vets-Who-Code/vwc-site/blob/master/LICENSE) for more details.

blog-template.md

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,5 +13,3 @@ tags:
1313
is_featured: Boolean value (true or false)
1414
views: Number of views (if applicable)
1515
---
16-
17-

next-sitemap.config.js

Lines changed: 1 addition & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -9,12 +9,7 @@ module.exports = {
99
policies: [
1010
{
1111
userAgent: "*",
12-
disallow: [
13-
"/profile",
14-
"/blogs/search",
15-
"/blogs/search",
16-
"/courses/search",
17-
],
12+
disallow: ["/profile", "/blogs/search", "/blogs/search", "/courses/search"],
1813
},
1914
{ userAgent: "*", allow: "/" },
2015
],

0 commit comments

Comments
 (0)