Skip to content

Commit

Permalink
update mantine and fix linting errors
Browse files Browse the repository at this point in the history
  • Loading branch information
azliu0 committed Apr 7, 2024
1 parent 5e73ac3 commit 12d6bea
Show file tree
Hide file tree
Showing 8 changed files with 95 additions and 124 deletions.
195 changes: 78 additions & 117 deletions client/package-lock.json

Large diffs are not rendered by default.

8 changes: 4 additions & 4 deletions client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -10,10 +10,10 @@
"preview": "vite preview"
},
"dependencies": {
"@mantine/core": "^7.0.0",
"@mantine/hooks": "^7.0.0",
"@mantine/notifications": "^7.0.0",
"@mantine/tiptap": "^7.0.0",
"@mantine/core": "^7.7.1",
"@mantine/hooks": "^7.7.1",
"@mantine/notifications": "^7.7.1",
"@mantine/tiptap": "^7.7.1",
"@tabler/icons-react": "^2.34.0",
"@tiptap/core": "^2.0.0",
"@tiptap/extension-bubble-menu": "^2.0.0",
Expand Down
1 change: 1 addition & 0 deletions client/src/hooks/useUserStore.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@ interface userState {
location: string;
zoomlink: string;
discord: string;
// eslint-disable-next-line @typescript-eslint/no-explicit-any
getUser: () => Promise<any>;
}

Expand Down
1 change: 1 addition & 0 deletions client/src/routes/leaderboard.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ export default function Leaderboard() {
parseFloat(computeNormalizedRating(a.average_rating, a.num_ratings))
);
});
// eslint-disable-next-line @typescript-eslint/no-explicit-any
const newRankings = rankings.map((mentor: mentor, idx: any) => ({
...mentor,
rank: idx + 1,
Expand Down
2 changes: 1 addition & 1 deletion client/src/routes/profile.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import {
import { notifications } from "@mantine/notifications";
import * as auth from "../api/auth";

export default function profilePage() {
export default function ProfilePage() {
const [name, email, role, location, zoomlink, getUser, discord] =
useUserStore((store) => [
store.name,
Expand Down
4 changes: 3 additions & 1 deletion client/src/routes/queue.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -43,6 +43,7 @@ function DisplayContent(props: displayContentProps) {
content: props.content,
editable: false,
extensions: [
// eslint-disable-next-line @typescript-eslint/no-explicit-any
StarterKit as any,
CodeBlockLowlight.configure({
lowlight,
Expand All @@ -57,7 +58,7 @@ function DisplayContent(props: displayContentProps) {
);
}

export default function queuePage() {
export default function QueuePage() {
const navigate = useNavigate();
const [tickets, setTickets] = useState<Array<ticket>>([]);
const [loading, setLoading] = useState<boolean>(true);
Expand Down Expand Up @@ -107,6 +108,7 @@ export default function queuePage() {
});
};

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const showNotif = (res: any) => {
if (res.ok) {
notifications.show({
Expand Down
2 changes: 2 additions & 0 deletions client/src/routes/ticket.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -59,6 +59,7 @@ export default function TicketPage() {
const editor = useEditor(
{
extensions: [
// eslint-disable-next-line @typescript-eslint/no-explicit-any
StarterKit as any,
Underline,
Link,
Expand Down Expand Up @@ -172,6 +173,7 @@ export default function TicketPage() {
});
};

// eslint-disable-next-line @typescript-eslint/no-explicit-any
const showNotif = (res: any) => {
if (res.ok) {
notifications.show({
Expand Down
6 changes: 5 additions & 1 deletion scripts/devcontainer_setup.sh
Original file line number Diff line number Diff line change
Expand Up @@ -13,4 +13,8 @@ fi

echo "Installing dependencies..."

parallel --tag -j2 --line-buffer ::: "pip install --user -r requirements.txt" "cd client && rm -rf node_modules/ && npm install"
parallel --tag -j2 --line-buffer ::: "pip install --user -r requirements.txt" "cd client && rm -rf node_modules/ && npm install"

echo "Initializing git repository..."

git config --global --add safe.directory /workspaces/qstack

0 comments on commit 12d6bea

Please sign in to comment.