Skip to content

Commit

Permalink
getting started on institution styling and added env-cmd to package.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vgeordy committed Aug 8, 2022
1 parent 7609101 commit cab1f71
Show file tree
Hide file tree
Showing 9 changed files with 168 additions and 4 deletions.
Empty file.
4 changes: 4 additions & 0 deletions Institution/server.js
Original file line number Diff line number Diff line change
@@ -1,6 +1,10 @@
const express = require('express')
const app = express()
const Institutionurl = 'localhost:3004/'

app.use(express.static('public'));
app.use('/css',express.static(__dirname + 'public/css'));

app.use(express.urlencoded({extended: true}))
app.set('view engine', 'ejs')

Expand Down
1 change: 1 addition & 0 deletions Institution/views/index.ejs
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@
<meta name="viewport" content="width=device-width, initial-scale=1.0">
<link rel="shortcut icon" href="">
<title>Document</title>
<link rel="stylesheet" type="text/css" href="css/style.css" />
</head>
<body>
<form action="/institutions/mercycollege" method="POST">
Expand Down
1 change: 0 additions & 1 deletion client/blockquery/query.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ web3.eth.getTransactionCount(contractAddress, currentBlock).then((e) => {
console.log("trx count n: ", e);
});


for (let i = currentBlock; i>=0; i--) { //&& (n > 0)
try {
if (block && block.transactions) {
Expand Down
3 changes: 2 additions & 1 deletion client/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -48,6 +48,7 @@
},
"devDependencies": {
"@mui/material": "^5.9.2",
"react-select": "^5.4.0"
"react-select": "^5.4.0",
"env-cmd": "^10.1.0"
}
}
3 changes: 1 addition & 2 deletions client/src/components/Demo/NoticeNoArtifact.jsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
function NoticeNoArtifact() {
return (
<p>
⚠️ Cannot find <span className="code">HPA</span> contract artifact.
Please complete the above preparation first, then restart the react dev server.
Please connect to the Ganache Ethereum network!
</p>
);
}
Expand Down
1 change: 1 addition & 0 deletions client/src/components/PACreation/index.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,7 @@ const PACreation = () => {
<>
<PAContext.Provider value={{id, setID, firstName, setFirstName, subject, setSubject, digitalSignature, setDigitalSignature}}>
<Container>
<Requester/>
<UploadHPA/>
<SubmitHPA />
</Container>
Expand Down
156 changes: 156 additions & 0 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 3 additions & 0 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,8 @@
{
"dependencies": {
"react-router-dom": "^6.3.0"
},
"devDependencies": {
"env-cmd": "^10.1.0"
}
}

0 comments on commit cab1f71

Please sign in to comment.