Skip to content

Commit

Permalink
Merge pull request #15 from MKAbuMattar/dev
Browse files Browse the repository at this point in the history
add devicons react original
  • Loading branch information
MKAbuMattar authored Jan 30, 2022
2 parents 4217087 + 64e7797 commit 8e51f0f
Show file tree
Hide file tree
Showing 76 changed files with 830 additions and 444 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,9 @@ yarn-error.log*
**/public/worker-*.js.map
**/public/fallback-*.js


generate/iconslist.js
generate/names.js
generate/tmp.json

lib

Expand Down
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
devicons-react aims to gather all logos representing development languages and tools, build into <a href="https://github.com/devicons/devicon">devicon</a>
</p>
<p align="center">
<a target="__blank" href="https://devicons-react.netlify.app/">Demo</a>
<a target="__blank" href="https://devicons-react.vercel.app/">Demo</a>
</p>
</div>

Expand Down
3 changes: 3 additions & 0 deletions build/devicons-react-original.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion docs/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@
devicons-react aims to gather all logos representing development languages and tools, build into <a href="https://github.com/devicons/devicon">devicon</a>
</p>
<p align="center">
<a target="__blank" href="https://devicons-react.netlify.app/">Demo</a>
<a target="__blank" href="https://devicons-react.vercel.app/">Demo</a>
</p>
</div>

Expand Down
24 changes: 2 additions & 22 deletions docs/components/FilteredList/ListIcons.js
Original file line number Diff line number Diff line change
Expand Up @@ -136,12 +136,7 @@ import {
DebianPlainWordmark,
DenojsOriginal,
DenojsOriginalWordmark,
DeviconLine,
DeviconLineWordmark,
DeviconOriginal,
DeviconOriginalWordmark,
DeviconPlain,
DeviconPlainWordmark,
DeviconsReactOriginal,
DigitaloceanOriginal,
DigitaloceanOriginalWordmark,
DigitaloceanPlain,
Expand Down Expand Up @@ -1073,23 +1068,8 @@ const ListIcons = ({ componentName }) => {
)}
{componentName.toLowerCase() ===
'DenojsOriginalWordmark'.toLowerCase() && <DenojsOriginalWordmark />}
{componentName.toLowerCase() === 'DeviconLine'.toLowerCase() && (
<DeviconLine />
)}
{componentName.toLowerCase() === 'DeviconLineWordmark'.toLowerCase() && (
<DeviconLineWordmark />
)}
{componentName.toLowerCase() === 'DeviconOriginal'.toLowerCase() && (
<DeviconOriginal />
)}
{componentName.toLowerCase() ===
'DeviconOriginalWordmark'.toLowerCase() && <DeviconOriginalWordmark />}
{componentName.toLowerCase() === 'DeviconPlain'.toLowerCase() && (
<DeviconPlain />
)}
{componentName.toLowerCase() === 'DeviconPlainWordmark'.toLowerCase() && (
<DeviconPlainWordmark />
)}
'DeviconsReactOriginal'.toLowerCase() && <DeviconsReactOriginal />}
{componentName.toLowerCase() === 'DigitaloceanOriginal'.toLowerCase() && (
<DigitaloceanOriginal />
)}
Expand Down
7 changes: 3 additions & 4 deletions docs/components/FilteredList/Style.js
Original file line number Diff line number Diff line change
Expand Up @@ -45,14 +45,15 @@ export const Cards = styled.div`
display: flex;
flex-wrap: wrap;
gap: 1rem;
align-items: baseline;
align-items: stretch;
justify-content: center;
`

export const Card = styled.div`
display: flex;
flex-direction: column;
width: 15rem;
justify-content: space-between;
width: 16rem;
border-radius: 5px;
background-color: #fff;
box-shadow: 0 10px 20px rgba(0, 0, 0, 0.19), 0 6px 6px rgba(0, 0, 0, 0.23);
Expand All @@ -62,9 +63,7 @@ export const CardInfo = styled.div`
padding: 2.5em 1em;
display: flex;
flex-direction: column;
align-items: center;
gap: 1rem;
text-align: center;
`

export const CardTitle = styled.h4`
Expand Down
31 changes: 3 additions & 28 deletions docs/components/FilteredList/initialItems.js
Original file line number Diff line number Diff line change
Expand Up @@ -675,34 +675,9 @@ const initialItems = [
fileName: 'devicons-react/icons/DenojsOriginalWordmark',
},
{
name: 'Devicon Line',
componentName: 'DeviconLine',
fileName: 'devicons-react/icons/DeviconLine',
},
{
name: 'Devicon Line Wordmark',
componentName: 'DeviconLineWordmark',
fileName: 'devicons-react/icons/DeviconLineWordmark',
},
{
name: 'Devicon Original',
componentName: 'DeviconOriginal',
fileName: 'devicons-react/icons/DeviconOriginal',
},
{
name: 'Devicon Original Wordmark',
componentName: 'DeviconOriginalWordmark',
fileName: 'devicons-react/icons/DeviconOriginalWordmark',
},
{
name: 'Devicon Plain',
componentName: 'DeviconPlain',
fileName: 'devicons-react/icons/DeviconPlain',
},
{
name: 'Devicon Plain Wordmark',
componentName: 'DeviconPlainWordmark',
fileName: 'devicons-react/icons/DeviconPlainWordmark',
name: 'Devicons React Original',
componentName: 'DeviconsReactOriginal',
fileName: 'devicons-react/icons/DeviconsReactOriginal',
},
{
name: 'Digitalocean Original',
Expand Down
4 changes: 2 additions & 2 deletions docs/components/Header/Header.js
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ import {
HeaderArrowWave,
} from './Style'

import ReactLogo from './Logo'
import DeviconsReactOriginal from 'devicons-react/icons/DeviconsReactOriginal'

const Header = () => {
useEffect(() => {
Expand All @@ -32,7 +32,7 @@ const Header = () => {
<HeaderContainer>
<HeaderBox>
<HeaderTitleBox>
<ReactLogo size="60" />
<DeviconsReactOriginal height="60" width="60" />
<HeaderTitle>
Devicons <span>React</span>
</HeaderTitle>
Expand Down
2 changes: 1 addition & 1 deletion docs/next-seo.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ export default {
openGraph: {
type: 'website',
locale: 'en_IE',
url: 'https://devicons-react.netlify.app/',
url: 'https://devicons-react.vercel.app/',
site_name: 'Devicons React',
},
twitter: {
Expand Down
14 changes: 7 additions & 7 deletions docs/package-lock.json

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

2 changes: 1 addition & 1 deletion docs/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@
"lint": "next lint"
},
"dependencies": {
"devicons-react": "^1.1.2",
"devicons-react": "^1.1.3",
"highlight.js": "^11.4.0",
"next": "12.0.9",
"next-pwa": "^5.4.4",
Expand Down
8 changes: 4 additions & 4 deletions generate/generate.js
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ let data
const obj = []

const names = []
const trt = []
const iconslist = []

fs.readdirSync(testFolder).forEach((file) => {
name = file
Expand All @@ -24,9 +24,9 @@ fs.readdirSync(testFolder).forEach((file) => {
<${componentName}/>
)}`
names.push(componentName)
trt.push(componentNames)
iconslist.push(componentNames)
})

fs.writeFileSync(path.resolve(__dirname, 'tmp.json'), JSON.stringify(obj))
fs.writeFileSync(path.resolve(__dirname, 'temp.json'), JSON.stringify(names))
fs.writeFileSync(path.resolve(__dirname, 'trt.json'), JSON.stringify(trt))
fs.writeFileSync(path.resolve(__dirname, 'names.js'), names.join(','))
fs.writeFileSync(path.resolve(__dirname, 'iconslist.js'), iconslist.join('\n'))
11 changes: 7 additions & 4 deletions package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "devicons-react",
"version": "1.1.2",
"version": "1.1.3",
"description": "Programming icons",
"main": "lib/index.js",
"module": "lib/index.es.js",
Expand All @@ -9,9 +9,12 @@
"clean:svg": "rm -rf svg",
"clean:svgr": "rm -rf src/icons",
"clean:svgr:index": "rm ./src/icons/index.js",
"clean:svg:devicon": "rm ./svg/devicon-line-wordmark.svg ./svg/devicon-line.svg ./svg/devicon-original-wordmark.svg ./svg/devicon-original.svg ./svg/devicon-plain-wordmark.svg ./svg/devicon-plain.svg",
"copy:svg:devicons-react": "cp ./build/devicons-react-original.svg ./svg",
"generate": "node ./generate/generate.js",
"storybook": "start-storybook -p 6006",
"build-storybook": "build-storybook",
"build:svg": "node ./build/build.config.js && npm run clean:svg && node ./build/generate.js",
"build:storybook": "build-storybook",
"build:svg": "node ./build/build.config.js && npm run clean:svg && node ./build/generate.js && npm run clean:svg:devicon && npm run copy:svg:devicons-react",
"build:svgr": "npm run clean:svgr && npx @svgr/cli --out-dir src/icons --index-template index-template.js -- svg && npm run clean:svgr:index",
"build:lib": "npm run clean:lib && rollup -c",
"build": "npm run build:svg && npm run build:svgr && npm run build:lib",
Expand Down Expand Up @@ -60,5 +63,5 @@
"bugs": {
"url": "https://github.com/MKAbuMattar/devicons-react/issues"
},
"homepage": "https://devicons-react.netlify.app/"
"homepage": "https://devicons-react.vercel.app/"
}
72 changes: 0 additions & 72 deletions src/icons/DeviconLine.js

This file was deleted.

Loading

1 comment on commit 8e51f0f

@vercel
Copy link

@vercel vercel bot commented on 8e51f0f Jan 30, 2022

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.