auto-component 0.0.4 → 0.0.5

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
package/package.json CHANGED
@@ -1,6 +1,6 @@
1
1
  {
2
2
  "name": "auto-component",
3
- "version": "0.0.4",
3
+ "version": "0.0.5",
4
4
  "main": "src/auto-component.jsx",
5
5
  "peerDependencies": {
6
6
  "react": "*",
@@ -1,6 +1,5 @@
1
1
  import { useState, useEffect } from 'react'
2
2
  import beautify from 'js-beautify'
3
- import response from '../../assets/response.js'
4
3
  import './Componenter.css'
5
4
 
6
5
  const Componenter = ({ exclusions }) => {
@@ -17,6 +16,10 @@ const Componenter = ({ exclusions }) => {
17
16
 
18
17
  const [ activeTab, setActiveTab ] = useState('request')
19
18
 
19
+ const response = {
20
+ html: `{projects.map((project, index) => (<div key={index} style={{ border: '1px solid #ccc', padding: '16px', marginBottom: '16px', display: 'flex', flexDirection: 'column', alignItems: 'center' }}><h3>{project.title}</h3><p>{project.description}</p><div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}>{project.images.map((image, imgIndex) => (<img key={imgIndex} src={image} alt={\`Project Image \${imgIndex + 1}\`} style={{ width: '100%', maxWidth: '150px', marginBottom: '8px' }} />))}</div><div style={{ display: 'flex', justifyContent: 'space-between', width: '100%' }}><a href={project.gitLink} style={{ color: 'blue' }}>GitHub</a><a href={project.deployLink} style={{ color: 'green' }}>Deployed</a></div></div>))}`
21
+ }
22
+
20
23
  //**-------------------------**/
21
24
  // ** HTML/CSS Formatting ** //
22
25
  //**-----------------------**/