Skip to content

Commit

Permalink
Update: Use seed script to populate profiles (#25)
Browse files Browse the repository at this point in the history
* Update: Use seed script to populate profiles

* Fix: keypair will always exist

* Fix: pull more from dfx.json

* Fix: pull more from dfx.json

* Build: Security fixes
  • Loading branch information
Stanley Jones authored Apr 10, 2020
1 parent 59f754c commit 94f32d6
Show file tree
Hide file tree
Showing 5 changed files with 301 additions and 59 deletions.
42 changes: 20 additions & 22 deletions dfx.json
Original file line number Diff line number Diff line change
@@ -1,26 +1,24 @@
{
"canisters": {
"connectd": {
"main": "src/connectd/main.mo"
},
"linkedup": {
"main": "src/linkedup/main.mo",
"frontend": {
"entrypoint": "src/linkedup/public/main.js",
"assets": [
"src/linkedup/public/*.html",
"src/linkedup/public/*.css"
]
}
}
"canisters": {
"connectd": {
"main": "src/connectd/main.mo"
},
"defaults": {
"build": {
"output": "canisters"
},
"start": {
"address": "127.0.0.1",
"port": 8000
}
"linkedup": {
"main": "src/linkedup/main.mo",
"frontend": {
"entrypoint": "src/linkedup/public/main.js",
"assets": ["src/linkedup/public/*.html", "src/linkedup/public/*.css"]
}
}
},
"defaults": {
"build": {
"output": "canisters"
},
"start": {
"address": "127.0.0.1",
"port": 8000
}
},
"dfx": "0.5.5"
}
141 changes: 130 additions & 11 deletions package-lock.json

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

56 changes: 30 additions & 26 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,28 +1,32 @@
{
"author": "Enzo Haussecker",
"dependencies": {
"animate.css": "^3.7.2",
"bootstrap": "^4.4.1",
"copy-webpack-plugin": "^5.1.1",
"font-awesome": "^4.7.0",
"jquery": "^3.4.1",
"popper.js": "^1.16.1",
"showdown": "^1.9.1",
"tweetnacl": "^1.0.3",
"typed.js": "^2.0.11",
"wowjs": "^1.1.3"
},
"devDependencies": {
"css-loader": "^3.5.1",
"style-loader": "^1.1.3",
"terser-webpack-plugin": "2.2.2",
"webpack": "4.41.3",
"webpack-cli": "3.3.10"
},
"license": "Apache 2.0 with LLVM Exception",
"name": "linkedup",
"scripts": {
"build": "webpack"
},
"version": "1.0.0"
"author": "Enzo Haussecker",
"dependencies": {
"animate.css": "^3.7.2",
"bootstrap": "^4.4.1",
"copy-webpack-plugin": "^5.1.1",
"font-awesome": "^4.7.0",
"jquery": "^3.5.0",
"popper.js": "^1.16.1",
"showdown": "^1.9.1",
"tweetnacl": "^1.0.3",
"typed.js": "^2.0.11",
"wowjs": "^1.1.3"
},
"devDependencies": {
"css-loader": "^3.5.2",
"node-crc": "^1.3.0",
"node-fetch": "^2.6.0",
"node-webcrypto-ossl": "^2.0.1",
"style-loader": "^1.1.3",
"terser-webpack-plugin": "2.2.2",
"webpack": "4.41.3",
"webpack-cli": "3.3.10"
},
"license": "Apache 2.0 with LLVM Exception",
"name": "linkedup",
"scripts": {
"build": "webpack",
"seed": "node scripts/seed"
},
"version": "1.0.0"
}
47 changes: 47 additions & 0 deletions scripts/data.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,47 @@
[
{
"firstName": "Dominic",
"lastName": "Williams",
"title": "Founder & Chief Scientist",
"company": "DFINITY",
"experience": "**President & Chief Scientist**, DFINITY \nJan 2015 – Present \nPalo Alto, CA\n\n**President & CTO**, String Labs, Inc \nJun 2015 – Feb 2018 \nPalo Alto, CA",
"education": "**King's College London** \nBA, Computer Science",
"imgUrl": "https://media-exp1.licdn.com/dms/image/C5603AQHdxGV6zMbg-A/profile-displayphoto-shrink_800_800/0?e=1585180800&v=beta&t=Tnsg560fWry_85AVz6MSkeUqOisiSi0e47Hl5T0Yzxk"
},
{
"firstName": "Diego",
"lastName": "Prats",
"title": "Director of Product",
"company": "DFINITY",
"experience": "**Director of Product**, DFINITY \nMay 2019 – Present \nPalo Alto, CA\n\n**VP Product Engineering**, Overnight \nFeb 2016 – Aug 2018 \nLos Angeles, CA",
"education": "**Harvard University** \nBA, Economics",
"imgUrl": "https://media-exp1.licdn.com/dms/image/C5603AQEsCX2F2XWSAA/profile-displayphoto-shrink_800_800/0?e=1585180800&v=beta&t=fyvnlBegGsbZSiZcWarxNTBRimRk3vfVTHWb8MH-HLU"
},
{
"firstName": "Jan",
"lastName": "Camenisch",
"title": "VP of Research",
"company": "DFINITY",
"experience": "**VP of Research**, DFINITY \nSep 2018 – Present \nZurich, CH\n\n**Principal Research Staff Member**, IBM Research \nJul 1999 – Aug 2018 \nZurich, CH",
"education": "**ETH Zurich** \nPhD, Computer Science / Cryptography",
"imgUrl": "https://media-exp1.licdn.com/dms/image/C5603AQFQTQN-Vnp7Lw/profile-displayphoto-shrink_800_800/0?e=1585180800&v=beta&t=_riz0HNQ0NlhTeg3iVcoHjo9oeTM87CrmqTj3ASv518"
},
{
"firstName": "Sanam",
"lastName": "Saaber",
"title": "General Counsel",
"company": "DFINITY",
"experience": "**General Counsel**, DFINITY \nMay 2019 – Present \nPalo Alto, CA\n\n**VP Legal**, Box \nOct 2012 – May 2019",
"education": "**University of California, Davis** \nJD, Law",
"imgUrl": "https://media-exp1.licdn.com/dms/image/C5603AQFLtjzidPnwDQ/profile-displayphoto-shrink_200_200/0?e=1585180800&v=beta&t=bmJEF9yY3J0lcVYlKFs6U57nGCzF69jd6v3P1lHXC1c"
},
{
"firstName": "Barack",
"lastName": "Obama",
"title": "President (Retired)",
"company": "United States of America",
"experience": "**President**, USA \nJan 2009 – Jan 2017 \nWashington, DC",
"education": "**Harvard University** \nJD, Law",
"imgUrl": "https://media-exp1.licdn.com/dms/image/C4E03AQF2C6iUecWOnQ/profile-displayphoto-shrink_800_800/0?e=1585180800&v=beta&t=HlFVhKOrVV5QK8AMZb_IDNPSi8oExM9lNIqAoTQ5HKo"
}
]
Loading

0 comments on commit 94f32d6

Please sign in to comment.