Skip to content
This repository has been archived by the owner on Mar 15, 2022. It is now read-only.

Commit

Permalink
added mui, fixed mini bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
ksanganee authored and moodyhunter committed Feb 16, 2022
1 parent 3d40df4 commit 239424c
Show file tree
Hide file tree
Showing 14 changed files with 1,952 additions and 217 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -32,6 +32,7 @@ yarn-error.log*
.env.development.local
.env.test.local
.env.production.local
*.local

# vercel
.vercel
28 changes: 18 additions & 10 deletions bin/generate-proto.js
Original file line number Diff line number Diff line change
@@ -1,18 +1,24 @@
/// This file gets called by running `npm run build:gen_proto`, it generates corresponding typescript proto implementation
/// modules for all proto files in ./common/

const path = require('path');
const shell = require('shelljs');
const process = require('process');
const path = require("path");
const shell = require("shelljs");
const process = require("process");

// https://github.com/shelljs/shelljs/issues/469
process.env.PATH += (path.delimiter + path.join(process.cwd(), 'node_modules', '.bin'));

const PROTO_DIR = path.join(__dirname, '../common');
const MODEL_DIR = path.join(__dirname, '../utils/proto');
const PROTOC_PATH = path.join(__dirname, "../node_modules/grpc-tools/bin/protoc");
const PLUGIN_PATH = path.join(__dirname, "../node_modules/.bin/protoc-gen-ts_proto");
process.env.PATH +=
path.delimiter + path.join(process.cwd(), "node_modules", ".bin");

const PROTO_DIR = path.join(__dirname, "../common");
const MODEL_DIR = path.join(__dirname, "../utils/proto");
const PROTOC_PATH = path.join(
__dirname,
"../node_modules/grpc-tools/bin/protoc"
);
const PLUGIN_PATH = path.join(
__dirname,
"../node_modules/.bin/protoc-gen-ts_proto"
);

const protoConfig = [
`--plugin=${PLUGIN_PATH}`,
Expand All @@ -24,4 +30,6 @@ const protoConfig = [
];

// https://github.com/stephenh/ts-proto#usage
shell.exec(`${PROTOC_PATH} ${protoConfig.join(" ")}`, (code, stdout, stderr) => console.log(code, stdout, stderr));
shell.exec(`${PROTOC_PATH} ${protoConfig.join(" ")}`, (code, stdout, stderr) =>
console.log(code, stdout, stderr)
);
Empty file removed components/SignupBox.jsx
Empty file.
13 changes: 0 additions & 13 deletions components/Unauthenticated.jsx

This file was deleted.

11 changes: 11 additions & 0 deletions components/Unauthenticated.tsx
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
import Link from "next/link";

function Unauthenticated() {
return (
<div>
<Link href="/api/auth/signin">You haven&apos;t logged in.</Link>
</div>
);
}

export default Unauthenticated;
4 changes: 2 additions & 2 deletions next.config.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
module.exports = {
reactStrictMode: true,
}
reactStrictMode: true,
};
Loading

0 comments on commit 239424c

Please sign in to comment.