blob: 677afa3edbbbff18b1de1737e1b68740a608ef51 [file] [log] [blame]
{"version":3,"sources":["/home/madhan/Apache/git/atlas/docs/target/theme/components/shared/TeamList/index.js","/home/madhan/Apache/git/atlas/docs/target/src/documents/Project-Info/TeamList.md"],"names":["TeamListStyle","styled","div","TeamList","Component","constructor","props","super","this","state","isLoading","displayData","fetchData","axios","get","then","res","parseString","data","err","result","developersList","project","developers","developer","developersListLength","length","t_displayData","keys","Object","i","obj","map","k","push","setState","catch","console","log","render","colSpan","key","id","toString","name","email","organization","roles","r","role","timezone","layoutProps","MDXContent","components","mdxType","isMDXComponent"],"mappings":"ieAuBA,MAAMA,E,6EAAgBC,EAAOC,GAAI;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;;EAgDlB,MAAMC,UAAiBC,YACpCC,YAAYC,GACVC,MAAMD,GACNE,KAAKC,MAAQ,CACXC,WAAW,EACXC,YAAa,IAEfH,KAAKI,YAGPA,YACEC,IACGC,IAAK,iEACLC,KAAKC,IAEJC,sBAAYD,EAAIE,KAAM,CAACC,EAAKC,KAC1B,MAAMC,EAAiBD,EAAOE,QAAQC,WAAW,GAAGC,UAC9CC,EAAuBJ,EAAeK,OAC5C,IAAIC,EAAgB,GACpB,MAAMC,EAAOC,OAAOD,KAAKP,EAAe,IACxC,IAAK,IAAIS,EAAI,EAAGA,EAAIL,EAAsBK,IAAK,CAC7C,MAAMC,EAAM,GACZH,EAAKI,IAAIC,GAAMF,EAAIE,GAAKZ,EAAeS,GAAGG,IAC1CN,EAAcO,KAAKH,GAErBvB,KAAK2B,SAAS,CAAExB,YAAagB,EAAejB,WAAW,QAG1D0B,MAAMjB,IACLkB,QAAQC,IAAI,2CAIlBC,SACE,MAAM,YAAE5B,EAAW,UAAED,GAAcF,KAAKC,MACxC,OACE,kBAACT,EAAa,KACZ,+BACE,+BACE,4BACE,kCACA,oCACA,qCACA,4CACA,qCACA,2CAGJ,+BACGU,EACC,4BACE,wBAAI8B,QAAQ,KAAG,eAEQ,IAAvB7B,EAAYe,OACd,YAEAf,EAAYqB,IAAI,CAACd,EAAMY,IAEnB,wBAAIW,IAAKvB,EAAKwB,GAAGC,YACf,4BAAKzB,EAAKwB,GAAGC,YACb,4BAAKzB,EAAK0B,KAAKD,YACf,4BAAKzB,EAAK2B,MAAMF,YAChB,4BAAKzB,EAAK4B,aAAaH,YACvB,4BAAKzB,EAAK6B,MAAMf,IAAIgB,GAAKA,EAAEC,KAAKN,aAChC,4BAAKzB,EAAKgC,SAASP,kB,qBC9HjCQ,EAAc,GAIL,SAASC,EAAW,GAG/B,IAFFC,EAAU,EAAVA,WACG/C,EAAK,iBAER,OAAO,cALS,UAKC,iBAAK6C,EAAiB7C,EAAK,CAAE+C,WAAYA,EAAYC,QAAQ,cAC5E,oBACE,GAAM,YAAU,YAGlB,oBACE,GAAM,iLAA+K,qLAEvL,oBACE,GAAM,wWAAsW,8WAE9W,oBACE,GAAM,WAAS,WAEjB,oBACE,GAAM,oIAAkI,qIAE1I,cAAC,EAAQ,CAACA,QAAQ,cAErB,4LAEDF,EAAWG,gBAAiB,G","file":"static/js/documents-project-info-team-list.b408d1d0.js","sourcesContent":["/**\n * Licensed to the Apache Software Foundation (ASF) under one\n * or more contributor license agreements. See the NOTICE file\n * distributed with this work for additional information\n * regarding copyright ownership. The ASF licenses this file\n * to you under the Apache License, Version 2.0 (the\n * \"License\"); you may not use this file except in compliance\n * with the License. You may obtain a copy of the License at\n *\n * http://www.apache.org/licenses/LICENSE-2.0\n *\n * Unless required by applicable law or agreed to in writing, software\n * distributed under the License is distributed on an \"AS IS\" BASIS,\n * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.\n * See the License for the specific language governing permissions and\n * limitations under the License.\n */\n\nimport React, { Component } from \"react\";\nimport axios from \"axios\";\nimport { parseString } from \"xml2js\";\nimport styled from \"styled-components\";\n\nconst TeamListStyle = styled.div`\n width: 100%;\n overflow: auto;\n\n > table {\n font-family: \"Inconsolata\", monospace;\n font-size: 14px;\n display: inline-table;\n table-layout: auto;\n color: #13161f;\n width: 98%;\n padding: 0;\n box-shadow: 0 0 0 1px #529d8b;\n background-color: transparent;\n border-spacing: 0;\n border-collapse: collapse;\n border-style: hidden;\n border-radius: 2px;\n overflow-y: hidden;\n overflow-x: initial;\n margin: 5px 10px;\n }\n > table tr {\n display: table-row;\n vertical-align: inherit;\n border-color: inherit;\n }\n > table tr > td {\n padding: 10px;\n line-height: 2;\n font-weight: 200;\n white-space: pre;\n }\n > table > thead {\n color: #7d899c;\n background: #f5f6f7;\n }\n > table > tbody tr {\n display: table-row;\n border-top: 1px solid #529d8b;\n }\n > table > thead > tr > th {\n font-weight: 400;\n padding: 10px;\n text-align: left;\n }\n`;\n\nexport default class TeamList extends Component {\n constructor(props) {\n super(props);\n this.state = {\n isLoading: true,\n displayData: []\n };\n this.fetchData();\n }\n\n fetchData() {\n axios\n .get(`https://raw.githubusercontent.com/apache/atlas/master/pom.xml`)\n .then(res => {\n // Transform the raw data by extracting the nested posts\n parseString(res.data, (err, result) => {\n const developersList = result.project.developers[0].developer;\n const developersListLength = developersList.length;\n let t_displayData = [];\n const keys = Object.keys(developersList[0]);\n for (var i = 0; i < developersListLength; i++) {\n const obj = {};\n keys.map(k => (obj[k] = developersList[i][k]));\n t_displayData.push(obj);\n }\n this.setState({ displayData: t_displayData, isLoading: false });\n });\n })\n .catch(err => {\n console.log(\"fetching data from pom.xml is failed.\");\n });\n }\n\n render() {\n const { displayData, isLoading } = this.state;\n return (\n <TeamListStyle>\n <table>\n <thead>\n <tr>\n <th>Id</th>\n <th>Name</th>\n <th>Email</th>\n <th>Organization</th>\n <th>Roles</th>\n <th>Time Zone</th>\n </tr>\n </thead>\n <tbody>\n {isLoading ? (\n <tr>\n <td colSpan=\"6\">loading...</td>\n </tr>\n ) : displayData.length === 0 ? (\n \"Not found\"\n ) : (\n displayData.map((data, i) => {\n return (\n <tr key={data.id.toString()}>\n <td>{data.id.toString()}</td>\n <td>{data.name.toString()}</td>\n <td>{data.email.toString()}</td>\n <td>{data.organization.toString()}</td>\n <td>{data.roles.map(r => r.role.toString())}</td>\n <td>{data.timezone.toString()}</td>\n </tr>\n );\n })\n )}\n </tbody>\n </table>\n </TeamListStyle>\n );\n }\n}\n","\nimport React from 'react'\nimport { mdx } from '@mdx-js/react'\n\n/* @jsxRuntime classic */\n/* @jsx mdx */\nimport TeamList from 'theme/components/shared/TeamList'\n\n\nconst layoutProps = {\n \n};\nconst MDXLayout = \"wrapper\"\nexport default function MDXContent({\n components,\n ...props\n}) {\n return <MDXLayout {...layoutProps} {...props} components={components} mdxType=\"MDXLayout\">\n <h1 {...{\n \"id\": \"the-team\"\n }}>{`The Team`}</h1>\n\n <h4 {...{\n \"id\": \"a-successful-project-requires-many-people-to-play-many-roles-some-members-write-code-or-documentation-while-others-are-valuable-as-testers-submitting-patches-and-suggestions\"\n }}>{`A successful project requires many people to play many roles. Some members write code or documentation, while others are valuable as testers, submitting patches and suggestions.`}</h4>\n <h4 {...{\n \"id\": \"the-team-comprises-members-and-contributors-members-have-direct-access-to-the-source-of-a-project-and-actively-evolve-the-code-base-contributors-improve-the-project-through-submission-of-patches-and-suggestions-to-the-members-the-number-of-contributors-to-the-project-is-unbounded-get-involved-today-all-contributions-to-the-project-are-greatly-appreciated\"\n }}>{`The team comprises Members and Contributors. Members have direct access to the source of a project and actively evolve the code-base. Contributors improve the project through submission of patches and suggestions to the Members. The number of Contributors to the project is unbounded. Get involved today. All contributions to the project are greatly appreciated.`}</h4>\n <h2 {...{\n \"id\": \"members\"\n }}>{`Members`}</h2>\n <h4 {...{\n \"id\": \"the-following-is-a-list-of-developers-with-commit-privileges-that-have-directly-contributed-to-the-project-in-one-way-or-another\"\n }}>{`The following is a list of developers with commit privileges that have directly contributed to the project in one way or another.`}</h4>\n <TeamList mdxType=\"TeamList\" />\n </MDXLayout>;\n}\n;\nMDXContent.isMDXComponent = true;"],"sourceRoot":""}