Skip to content
This repository was archived by the owner on Jul 2, 2022. It is now read-only.

Commit 34c6c14

Browse files
author
Tischa
committed
Merge branch 'v3/api' of https://github.com/opensummerofcode/selections into v3/api
2 parents 108550e + f5effaf commit 34c6c14

Some content is hidden

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

68 files changed

+1081
-209
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,7 @@ node_modules/
1919
.npm
2020

2121
# dotenv environment variables file
22-
.env.*
22+
.env*
23+
!.env.example
2324

2425
next-env.d.ts

client/.env.example

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
NEXT_PUBLIC_API_URL=http://localhost:4000

client/.eslintrc

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
{
2-
"extends": ["airbnb", "plugin:prettier/recommended"],
3-
"plugins": ["prettier"],
2+
"extends": ["airbnb", "plugin:prettier/recommended", "plugin:workspaces/recommended"],
3+
"plugins": ["prettier", "workspaces"],
44
"env": {
55
"browser": true,
66
"node": true

client/package.json

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,20 @@
2222
]
2323
},
2424
"dependencies": {
25+
"@urql/exchange-graphcache": "^4.2.1",
26+
"common": "^0.0.1",
2527
"evergreen-ui": "^4.26.0",
2628
"firebase": "^7.14.0",
29+
"graphql": "^15.5.1",
30+
"graphql-tag": "^2.12.5",
2731
"next": "^11.0.1",
2832
"normalize.css": "^8.0.1",
2933
"prop-types": "^15.7.2",
3034
"react": "^17.0.2",
3135
"react-dnd": "^11.0.0",
3236
"react-dnd-html5-backend": "^11.0.0",
3337
"react-dom": "^17.0.2",
38+
"urql": "^2.0.4",
3439
"zustand": "^3.5.5"
3540
},
3641
"devDependencies": {
@@ -51,6 +56,7 @@
5156
"eslint-plugin-prettier": "^3.4.0",
5257
"eslint-plugin-react": "^7.23.2",
5358
"eslint-plugin-react-hooks": "^1.7.0",
59+
"eslint-plugin-workspaces": "^0.6.2",
5460
"prettier": "^2.3.2",
5561
"typescript": "^4.3.5"
5662
}

client/public/img/icon-github.svg

Lines changed: 59 additions & 0 deletions
Loading
Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
.button {
2+
cursor: pointer;
3+
display: inline-block;
4+
text-decoration: none;
5+
padding: 1rem 1.4rem;
6+
text-align: center;
7+
font-size: 1.6rem;
8+
display: flex;
9+
align-items: center;
10+
font-weight: 600;
11+
}
12+
13+
.iconWrapper {
14+
width: 2.6rem;
15+
height: 2.6rem;
16+
margin-right: 1rem;
17+
}
18+
19+
.button img {
20+
width: 100%;
21+
height: 100%;
22+
}
23+
24+
.github,
25+
.github:visited {
26+
background-color: #333;
27+
color: #fff;
28+
}
29+
30+
.github:hover,
31+
.github:focus {
32+
color: #fff;
33+
background-color: #1f2937;
34+
}

client/src/components/AppWrapper.jsx

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
import { useAuth } from '@/hooks';
2+
3+
const AppWrapper = ({ children }) => {
4+
const { isLoading } = useAuth();
5+
6+
if (isLoading) return <p />;
7+
return { children };
8+
};
9+
10+
export default AppWrapper;

client/src/components/Filters.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
import React, { useEffect, useReducer, memo } from 'react';
22
import PropTypes from 'prop-types';
33
import { Switch, SearchInput, Button, Pill } from 'evergreen-ui';
4-
import { useAuth, useSuggestions } from '@/services';
4+
import { useAuth, useSuggestions } from '@/hooks';
55
import { normalizeString } from '../util';
66
import { Student } from '../models';
77
import { roles } from '../constants';

client/src/components/Header.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
import React from 'react';
22
import Link from 'next/link';
3-
import { useAuth } from '@/services';
3+
import { useAuth } from '@/hooks';
44

55
import styles from '@/assets/styles/header.module.css';
66

client/src/components/ProjectCard.jsx

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,7 +13,7 @@ import {
1313
Text
1414
} from 'evergreen-ui';
1515
import { DropTarget } from 'react-dnd';
16-
import { useAuth } from '@/services';
16+
import { useAuth } from '@/hooks';
1717
import { sortAlphabetically } from '../util';
1818
import ProjectModel from '../models/Project';
1919

0 commit comments

Comments
 (0)