diff --git a/app/next.config.js b/app/next.config.js index 2cac5558..5c53b9fb 100644 --- a/app/next.config.js +++ b/app/next.config.js @@ -6,7 +6,7 @@ module.exports = { includePaths: [path.join(__dirname, 'styles')], }, images: { - domains: ['global-uploads.webflow.com', 'avatars.githubusercontent.com', 'open.rocket.chat'] + domains: ['global-uploads.webflow.com', 'avatars.githubusercontent.com', 'open.rocket.chat', 'media-exp1.licdn.com'] }, webpack: (config, { isServer }) => { // Fixes npm packages that depend on `fs` module diff --git a/cms/config/functions/fetchData.js b/cms/config/functions/fetchData.js index b7caeef3..da187d02 100644 --- a/cms/config/functions/fetchData.js +++ b/cms/config/functions/fetchData.js @@ -1,10 +1,11 @@ -const { carousels, - guides, - persona, - personaIcons, - releaseNotes, +const { carousels, + guides, + persona, + personaIcons, + releaseNotes, subMenus, topNavItem, + speakers, forms } = require('../initialData'); const { githubKit } = require('./github'); @@ -19,12 +20,34 @@ module.exports = async () => { var releaseNotesCount = await strapi.query("release-notes").count(); var guidesCount = await strapi.query("guides").count(); var formCount = await strapi.query("form").count(); - var ghrepos = await strapi.query("github-repositories").count({}); - + var ghrepos = await strapi.query("github-repositories").count({}); + var speakersCount = await strapi.query("speaker").count({}); + // initial fetch - + + speakers.map(async (speaker, index) => { + if (index <= speakersCount - 1) { + await strapi.query("speaker").update( + { id: speaker.id }, + { + name: speaker.name, + bio: speaker.bio, + imageUrl: speaker.picutre_url + + } + ); + } else { + await strapi.query("speaker").create({ + name: speaker.name, + bio: speaker.bio, + content: speaker.talk_summary, + imageUrl: speaker.picutre_url + }); + } + }); + if (!ghrepos) { - githubKit('RocketChat','RC4Community',['issues','contributors','pulls']); + githubKit('RocketChat', 'RC4Community', ['issues', 'contributors', 'pulls']); } forms.map(async (form, index) => { @@ -32,8 +55,8 @@ module.exports = async () => { await strapi.query("form").update( { id: form.id }, { - title: form.title, - formQs: form.formQs + title: form.title, + formQs: form.formQs } ); } else { diff --git a/cms/config/initialData/index.js b/cms/config/initialData/index.js index 8e3f589f..5512a755 100644 --- a/cms/config/initialData/index.js +++ b/cms/config/initialData/index.js @@ -6,6 +6,7 @@ const releaseNotes = require("./release-notes.json"); const subMenus = require("./sub-menus.json"); const topNavItem = require("./top-nav-item.json"); const forms = require("./forms.json") +const speakers = require("./speakers.json") module.exports = { carousels, @@ -15,5 +16,6 @@ module.exports = { releaseNotes, subMenus, topNavItem, - forms + forms, + speakers }; \ No newline at end of file diff --git a/cms/config/initialData/speakers.json b/cms/config/initialData/speakers.json new file mode 100644 index 00000000..732c3f9a --- /dev/null +++ b/cms/config/initialData/speakers.json @@ -0,0 +1,66 @@ +[ + { + "id": 1, + "name": "Rohan Lekhwani", + "picutre_url": "https://media-exp1.licdn.com/dms/image/C5103AQEfuswPxV6Gyw/profile-displayphoto-shrink_800_800/0/1559890882906?e=1654128000&v=beta&t=Vvuss_1J3PNLb0T-M9kCQ2emP_4KonboB16Yrnu1gB4", + "bio": "I'm a software engineer at Gojek working on distributed systems and cloud infrastructure. I'll be mentoring two GSoC projects this season. Prior to this I've been involved with a multitude of projects at Rocket.Chat including the opensource leaderboard, RC4GitHub, RC4Community and have two published apps (Poll Plus and MemeBuddy) on the Rocket.Chat Marketplace.", + "short_bio": "Software engineer at Gojek, GSoC'22 mentor", + "talk_topic": "Writing That Winning Proposal", + "talk_summary": "Ever wondered what's so special in an accepted proposal? Want to know what mentors look for in your proposal? Join in this fun conversation by a past GSoCer and a current GSoC mentor of two projects to know all you can do to make your proposal shine among others." + }, + { + "id": 2, + "name": "Priya Bihani", + "picutre_url": "https://avatars.githubusercontent.com/u/69837339?v=4", + "bio": "I'm a third year Computer science student & full stack developer from New Delhi, India. I worked along with Rocket.Chat last year as a Sponsored Student for my GSOC project on Image manipulation under my mentors Gabriel Henriques and Tasso Evangelista which we completed in the due time. Alongwith that I've been a part of MLH Prep fellowship & MLH fellowship in 2022.", + "short_bio": "Sponsored student for GSOC Project with Rocket.Chat | MLH fellow 2022 | Open Source Contributor & Full stack developer", + "talk_topic": "How to create proposal for your Rocket.Chat Application", + "talk_summary": "Your application is the most important part of your Road to GSOC with Rocket.Chat. It reflects your commitment and dedication, it is the only way for you mentor to judge you. So you should know how to draft your proposal." + }, + { + "id": 3, + "name": "Kartik Gupta", + "picutre_url": "https://open.rocket.chat/avatar/kartik.gupta", + "bio": "I'm Kartik Gupta from New Delhi India. I am a pre final year Computer's student and a full stack developer and Instructor, alongwith that i also like contributing to open source. I was a part of GSOC 2021@Rocket.Chat and got the opportunity to work under mentor Marcelo Schmidt on Speech To Text(Soon to be Live) and work along with such a great community of rocketters.", + "short_bio": "SHORT BIO: GSOC 2021 with Rocket.Chat | Open Source Contributor | Full stack developer & Instructor.", + "talk_topic": "How to get started with Rocket.Chat codebase!", + "talk_summary": "The road to GSOC with Rocket.Chat starts with your contributions to the project, The codebase is huge and it's easy to get overwhelmed, so you should know your way around the codebase." + }, + { + "id": 4, + "name": "Govind Dixit", + "picutre_url": "https://avatars.githubusercontent.com/u/32304546?v=4", + "bio": "Building CRED, ex-Urban Company, Headout GSoC'21 Mentor, GSoC'20 & 19 Student @Rocket.Chat", + "short_bio": "Building CRED, ex-Urban Company, Headout GSoC'21 Mentor, GSoC'20 & 19 Student @Rocket.Chat", + "talk_topic": "Demystify GSoC: Tips & Tricks for a Successful Proposal", + "talk_summary": "I will share my experience as a two-time student with Rocket.Chat and will share tips on how to write a successful proposal!" + }, + { + "id": 5, + "name": "Arthur Temporim", + "picutre_url": "https://avatars.githubusercontent.com/u/13789524?v=4", + "bio": "I graduated in 2019 from the software engineering course and am currently pursuing a master's degree in the same area. I have focused my career on the study and development of conversational agents, better known as chatbots. I currently work as a developer of chatbots and contribute to OSS projects and related communities.", + "short_bio": "A Software Engineer with experience with chatbot development and participation in OSS communities.", + "talk_topic": "What will happen after Rocket.Chat GSOC?", + "talk_summary": "I participated in the Rocket.Chat GSOC of the year 2018, I was at the end of the software engineering course and I was able to put into practice everything I had learned. But the experience gained during the months of the program was essential for me to become the engineer I am today. I hope to share with you some of the experiences I made with the knowledge gained in the program." + }, + { + "id": 6, + "name": "Anant Bhasin", + "picutre_url": "https://avatars.githubusercontent.com/u/38764067?v=4", + "bio": "An engineering student graduating this summer, Anant worked on the React Native app for his project in 2021, extending the End to End tests to Android. Currently, he is working at Goldman Sachs as an Analyst Intern(Engineering).", + "short_bio": "Student, currently Analyst Intern (Engineering) at Goldman Sachs", + "talk_topic": "Communication in GSOC program", + "talk_summary": "Communication can make or break your contributions and application" + }, + { + "id": 7, + "name": "Fongang Rodrique", + "picutre_url": "https://avatars.githubusercontent.com/u/39289653?v=4", + "bio": "A computer engineering graduate from the university of Buea, a Rocket.Chat GSoC alumni and currently a Technical writer at Rocket.Chat. Deeply interested in cyber security and also a creative photographer.", + "short_bio": "Technical Writer at Rocket.Chat", + "talk_topic": "Survive GSoC as a Newbie", + "talk_summary": "GSoC is often dominated by students with some programming experience. As a newbie in tech or someone with very little knowledge, how can you survive?" + } + +] \ No newline at end of file