diff --git a/website/data/users.js b/website/data/users.js new file mode 100644 index 0000000000..dea88e424d --- /dev/null +++ b/website/data/users.js @@ -0,0 +1,221 @@ +module.exports = [ + // Please add your logo in alphabetical order of caption. + { + caption: 'Almin', + image: '/img/users/almin.png', + infoLink: 'https://almin.js.org/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Anssr Data Platform', + image: '/img/users/anssr.svg', + infoLink: 'https://anssr.io/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Bemuse', + image: '/img/users/bemuse.png', + infoLink: 'https://bemuse.ninja/project/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'BlueWhale', + image: '/img/users/BlueWhale.png', + infoLink: 'https://facebookresearch.github.io/BlueWhale/', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'BuckleScript', + image: '/img/users/bucklescript.svg', + infoLink: 'https://bucklescript.github.io/', + fbOpenSource: false, + pinned: true, + }, + { + caption: 'CaptainDuckDuck', + image: '/img/users/captainduckduck.png', + infoLink: 'https://captainduckduck.com/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Dep', + image: '/img/users/golang-dep.svg', + infoLink: 'https://golang.github.io/dep/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Docusaurus', + image: '/img/users/docusaurus.svg', + infoLink: 'https://www.docusaurus.io', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'Draft.js', + image: '/img/users/draftjs.png', + infoLink: 'https://draftjs.org/', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'FastText', + image: '/img/users/fasttext.png', + infoLink: 'https://fasttext.cc', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'Instant Articles Builder', + image: '/img/users/facebook-instant-articles-rules-editor.svg', + infoLink: 'https://facebook.github.io/instant-articles-builder/', + fbOpenSource: true, + pinned: false, + }, + { + caption: 'Goby', + image: 'https://goby-lang.org/img/goby-logo.svg', + infoLink: 'https://goby-lang.org', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Home Assistant', + image: 'https://developers.home-assistant.io/img/logo-responsive.svg', + infoLink: 'https://developers.home-assistant.io/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Jest', + image: '/img/users/jest.png', + infoLink: 'https://facebook.github.io/jest/', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'MakeItOpen', + image: '/img/users/makeitopen.png', + infoLink: 'http://makeitopen.com/', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'Metro', + image: '/img/users/metro.svg', + infoLink: 'https://facebook.github.io/metro/', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'Open Power Quality', + image: 'https://openpowerquality.org/img/opqlogo.png', + infoLink: 'https://openpowerquality.org/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'pnpm', + image: 'https://pnpm.js.org/img/pnpm.svg', + infoLink: 'https://pnpm.js.org/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Prettier', + image: '/img/users/prettier.png', + infoLink: 'https://www.prettier.io', + fbOpenSource: false, + pinned: true, + }, + { + caption: 'Pyre', + image: '/img/users/pyre.svg', + infoLink: 'https://pyre-check.org', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'React Native', + image: '/img/users/react-native.svg', + infoLink: 'https://facebook.github.io/react-native', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'React Native Elements', + image: '/img/users/react-native-elements.png', + infoLink: 'https://react-native-training.github.io/react-native-elements/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'react-native-ios-kit', + image: '/img/users/react-native-ios-kit.svg', + infoLink: 'https://callstack.github.io/react-native-ios-kit', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Reason', + image: '/img/users/reason.svg', + infoLink: 'https://reasonml.github.io/', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'ReasonReact', + image: '/img/users/reason-react.svg', + infoLink: 'https://reasonml.github.io/reason-react/', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'Rejoiner', + image: '/img/users/rejoiner.svg', + infoLink: 'http://rejoiner.io/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Relay', + image: '/img/users/relay.svg', + infoLink: 'https://facebook.github.io/relay/', + fbOpenSource: true, + pinned: true, + }, + { + caption: 'textlint', + image: 'https://textlint.github.io/img/textlint-icon.png', + infoLink: 'https://textlint.github.io/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Verdaccio', + image: 'http://www.verdaccio.org/img/verdaccio-tiny@2x.png', + infoLink: 'http://www.verdaccio.org/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'Vuls', + image: 'https://vuls.io/img/docs/vuls_logo.png', + infoLink: 'https://vuls.io/', + fbOpenSource: false, + pinned: false, + }, + { + caption: 'WarriorJS', + image: '/img/users/warriorjs.svg', + infoLink: 'https://warrior.js.org/', + fbOpenSource: false, + pinned: false, + }, + // Please add your logo in alphabetical order of caption. +]; diff --git a/website/data/users.json b/website/data/users.json deleted file mode 100644 index 09625135f7..0000000000 --- a/website/data/users.json +++ /dev/null @@ -1,212 +0,0 @@ -[ - { - "caption": "Almin", - "image": "/img/almin.png", - "infoLink": "https://almin.js.org/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Bemuse", - "image": "/img/bemuse.png", - "infoLink": "https://bemuse.ninja/project/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "BlueWhale", - "image": "/img/BlueWhale.png", - "infoLink": "https://facebookresearch.github.io/BlueWhale/", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "BuckleScript", - "image": "/img/bucklescript.svg", - "infoLink": "https://bucklescript.github.io/", - "fbOpenSource": false, - "pinned": true - }, - { - "caption": "CaptainDuckDuck", - "image": "/img/captainduckduck.png", - "infoLink": "https://captainduckduck.com/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Dep", - "image": "/img/golang-dep.svg", - "infoLink": "https://golang.github.io/dep/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Docusaurus", - "image": "/img/docusaurus.svg", - "infoLink": "https://www.docusaurus.io", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "Draft.js", - "image": "/img/draftjs.png", - "infoLink": "https://draftjs.org/", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "FastText", - "image": "/img/fasttext.png", - "infoLink": "https://fasttext.cc", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "Instant Articles Builder", - "image": "/img/facebook-instant-articles-rules-editor.svg", - "infoLink": "https://facebook.github.io/instant-articles-builder/", - "fbOpenSource": true, - "pinned": false - }, - { - "caption": "Goby", - "image": "https://goby-lang.org/img/goby-logo.svg", - "infoLink": "https://goby-lang.org", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Home Assistant", - "image": "https://developers.home-assistant.io/img/logo-responsive.svg", - "infoLink": "https://developers.home-assistant.io/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Jest", - "image": "/img/jest.png", - "infoLink": "https://facebook.github.io/jest/", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "MakeItOpen", - "image": "/img/makeitopen.png", - "infoLink": "http://makeitopen.com/", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "Open Power Quality", - "image": "https://openpowerquality.org/img/opqlogo.png", - "infoLink": "https://openpowerquality.org/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "pnpm", - "image": "https://pnpm.js.org/img/pnpm.svg", - "infoLink": "https://pnpm.js.org/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Prettier", - "image": "/img/prettier.png", - "infoLink": "https://www.prettier.io", - "fbOpenSource": false, - "pinned": true - }, - { - "caption": "Pyre", - "image": "/img/pyre.svg", - "infoLink": "https://pyre-check.org", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "React Native", - "image": "/img/react-native.svg", - "infoLink": "https://facebook.github.io/react-native", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "React Native Elements", - "image": "/img/react-native-elements.png", - "infoLink": "https://react-native-training.github.io/react-native-elements/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "react-native-ios-kit", - "image": "/img/react-native-ios-kit.svg", - "infoLink": "https://callstack.github.io/react-native-ios-kit", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Reason", - "image": "/img/reason.svg", - "infoLink": "https://reasonml.github.io/", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "ReasonReact", - "image": "/img/reason-react.svg", - "infoLink": "https://reasonml.github.io/reason-react/", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "Rejoiner", - "image": "/img/rejoiner.svg", - "infoLink": "http://rejoiner.io/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Relay", - "image": "/img/relay.svg", - "infoLink": "https://facebook.github.io/relay/", - "fbOpenSource": true, - "pinned": true - }, - { - "caption": "textlint", - "image": "https://textlint.github.io/img/textlint-icon.png", - "infoLink": "https://textlint.github.io/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Verdaccio", - "image": "http://www.verdaccio.org/img/verdaccio-tiny@2x.png", - "infoLink": "http://www.verdaccio.org/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Vuls", - "image": "https://vuls.io/img/docs/vuls_logo.png", - "infoLink": "https://vuls.io/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "WarriorJS", - "image": "/img/warriorjs.svg", - "infoLink": "https://warrior.js.org/", - "fbOpenSource": false, - "pinned": false - }, - { - "caption": "Anssr Data Platform", - "image": "/img/anssr.svg", - "infoLink": "https://anssr.io/", - "fbOpenSource": false, - "pinned": false - } -] diff --git a/website/pages/en/users.js b/website/pages/en/users.js index b2e5360cff..c0ed68e412 100644 --- a/website/pages/en/users.js +++ b/website/pages/en/users.js @@ -12,30 +12,22 @@ const siteConfig = require(process.cwd() + '/siteConfig.js'); const translate = require('../../server/translate.js').translate; class Users extends React.Component { + renderUser(user, i) { + return ( + + {user.caption} + + ); + } + render() { const fbShowcase = siteConfig.users - .filter(user => { - return user.fbOpenSource === true; - }) - .map((user, i) => { - return ( - - {user.caption} - - ); - }); + .filter(user => user.fbOpenSource) + .map((user, i) => this.renderUser(user, i)); const showcase = siteConfig.users - .filter(user => { - return !user.fbOpenSource; - }) - .map((user, i) => { - return ( - - {user.caption} - - ); - }); + .filter(user => !user.fbOpenSource) + .map((user, i) => this.renderUser(user, i)); return (
@@ -67,7 +59,7 @@ class Users extends React.Component {

Edit this page with a{' '} - + Pull Request {' '} to add your logo. diff --git a/website/siteConfig.js b/website/siteConfig.js index 92ba47d50a..052977d9cf 100644 --- a/website/siteConfig.js +++ b/website/siteConfig.js @@ -6,7 +6,7 @@ */ /* List of projects/orgs using your project for the users page */ -const users = require('./data/users.json'); +const users = require('./data/users'); const siteConfig = { title: 'Docusaurus', @@ -52,9 +52,7 @@ const siteConfig = { 'https://cdnjs.cloudflare.com/ajax/libs/clipboard.js/2.0.0/clipboard.min.js', '/js/code-blocks-buttons.js', ], - stylesheets: [ - '/css/code-blocks-buttons.css', - ], + stylesheets: ['/css/code-blocks-buttons.css'], gaTrackingId: 'UA-44373548-31', facebookAppId: '199138890728411', facebookComments: true, @@ -66,8 +64,8 @@ const siteConfig = { cleanUrl: true, scrollToTop: true, scrollToTopOptions: { - zIndex: 100 - } + zIndex: 100, + }, }; module.exports = siteConfig; diff --git a/website/static/img/BlueWhale.png b/website/static/img/users/BlueWhale.png similarity index 100% rename from website/static/img/BlueWhale.png rename to website/static/img/users/BlueWhale.png diff --git a/website/static/img/almin.png b/website/static/img/users/almin.png similarity index 100% rename from website/static/img/almin.png rename to website/static/img/users/almin.png diff --git a/website/static/img/anssr.svg b/website/static/img/users/anssr.svg similarity index 100% rename from website/static/img/anssr.svg rename to website/static/img/users/anssr.svg diff --git a/website/static/img/bemuse.png b/website/static/img/users/bemuse.png similarity index 100% rename from website/static/img/bemuse.png rename to website/static/img/users/bemuse.png diff --git a/website/static/img/bucklescript.svg b/website/static/img/users/bucklescript.svg similarity index 100% rename from website/static/img/bucklescript.svg rename to website/static/img/users/bucklescript.svg diff --git a/website/static/img/captainduckduck.png b/website/static/img/users/captainduckduck.png similarity index 100% rename from website/static/img/captainduckduck.png rename to website/static/img/users/captainduckduck.png diff --git a/website/static/img/users/docusaurus.svg b/website/static/img/users/docusaurus.svg new file mode 100644 index 0000000000..9db6d0d066 --- /dev/null +++ b/website/static/img/users/docusaurus.svg @@ -0,0 +1 @@ + \ No newline at end of file diff --git a/website/static/img/draftjs.png b/website/static/img/users/draftjs.png similarity index 100% rename from website/static/img/draftjs.png rename to website/static/img/users/draftjs.png diff --git a/website/static/img/facebook-instant-articles-rules-editor.svg b/website/static/img/users/facebook-instant-articles-rules-editor.svg similarity index 100% rename from website/static/img/facebook-instant-articles-rules-editor.svg rename to website/static/img/users/facebook-instant-articles-rules-editor.svg diff --git a/website/static/img/fasttext.png b/website/static/img/users/fasttext.png similarity index 100% rename from website/static/img/fasttext.png rename to website/static/img/users/fasttext.png diff --git a/website/static/img/golang-dep.svg b/website/static/img/users/golang-dep.svg similarity index 100% rename from website/static/img/golang-dep.svg rename to website/static/img/users/golang-dep.svg diff --git a/website/static/img/jest.png b/website/static/img/users/jest.png similarity index 100% rename from website/static/img/jest.png rename to website/static/img/users/jest.png diff --git a/website/static/img/makeitopen.png b/website/static/img/users/makeitopen.png similarity index 100% rename from website/static/img/makeitopen.png rename to website/static/img/users/makeitopen.png diff --git a/website/static/img/users/metro.svg b/website/static/img/users/metro.svg new file mode 100644 index 0000000000..ef4adc4795 --- /dev/null +++ b/website/static/img/users/metro.svg @@ -0,0 +1 @@ +Metro diff --git a/website/static/img/prettier.png b/website/static/img/users/prettier.png similarity index 100% rename from website/static/img/prettier.png rename to website/static/img/users/prettier.png diff --git a/website/static/img/pyre.svg b/website/static/img/users/pyre.svg similarity index 100% rename from website/static/img/pyre.svg rename to website/static/img/users/pyre.svg diff --git a/website/static/img/react-native-elements.png b/website/static/img/users/react-native-elements.png similarity index 100% rename from website/static/img/react-native-elements.png rename to website/static/img/users/react-native-elements.png diff --git a/website/static/img/react-native-ios-kit.svg b/website/static/img/users/react-native-ios-kit.svg similarity index 100% rename from website/static/img/react-native-ios-kit.svg rename to website/static/img/users/react-native-ios-kit.svg diff --git a/website/static/img/react-native.svg b/website/static/img/users/react-native.svg similarity index 100% rename from website/static/img/react-native.svg rename to website/static/img/users/react-native.svg diff --git a/website/static/img/reason-react.svg b/website/static/img/users/reason-react.svg similarity index 100% rename from website/static/img/reason-react.svg rename to website/static/img/users/reason-react.svg diff --git a/website/static/img/reason.svg b/website/static/img/users/reason.svg similarity index 100% rename from website/static/img/reason.svg rename to website/static/img/users/reason.svg diff --git a/website/static/img/rejoiner.svg b/website/static/img/users/rejoiner.svg similarity index 100% rename from website/static/img/rejoiner.svg rename to website/static/img/users/rejoiner.svg diff --git a/website/static/img/relay.svg b/website/static/img/users/relay.svg similarity index 100% rename from website/static/img/relay.svg rename to website/static/img/users/relay.svg diff --git a/website/static/img/warriorjs.svg b/website/static/img/users/warriorjs.svg similarity index 100% rename from website/static/img/warriorjs.svg rename to website/static/img/users/warriorjs.svg diff --git a/yarn.lock b/yarn.lock index d735b252bf..3af33b9c19 100644 --- a/yarn.lock +++ b/yarn.lock @@ -1221,7 +1221,7 @@ class-utils@^0.3.5: isobject "^3.0.0" static-extend "^0.1.1" -classnames@^2.2.5: +classnames@^2.2.6: version "2.2.6" resolved "https://registry.yarnpkg.com/classnames/-/classnames-2.2.6.tgz#43935bffdd291f326dad0a205309b38d00f650ce" @@ -4781,7 +4781,7 @@ preserve@^0.2.0: version "0.2.0" resolved "https://registry.yarnpkg.com/preserve/-/preserve-0.2.0.tgz#815ed1f6ebc65926f865b310c0713bcb3315ce4b" -prettier@^1.9.1: +prettier@^1.13.5: version "1.13.5" resolved "https://registry.yarnpkg.com/prettier/-/prettier-1.13.5.tgz#7ae2076998c8edce79d63834e9b7b09fead6bfd0" @@ -4930,7 +4930,7 @@ react-dev-utils@^5.0.1: strip-ansi "3.0.1" text-table "0.2.0" -react-dom@^16.3.2: +react-dom@^16.4.0: version "16.4.0" resolved "https://registry.yarnpkg.com/react-dom/-/react-dom-16.4.0.tgz#099f067dd5827ce36a29eaf9a6cdc7cbf6216b1e" dependencies: @@ -4943,7 +4943,7 @@ react-error-overlay@^4.0.0: version "4.0.0" resolved "https://registry.yarnpkg.com/react-error-overlay/-/react-error-overlay-4.0.0.tgz#d198408a85b4070937a98667f500c832f86bd5d4" -react@^16.3.2: +react@^16.4.0: version "16.4.0" resolved "https://registry.yarnpkg.com/react/-/react-16.4.0.tgz#402c2db83335336fba1962c08b98c6272617d585" dependencies: @@ -5944,7 +5944,7 @@ tr46@~0.0.3: version "0.0.3" resolved "https://registry.yarnpkg.com/tr46/-/tr46-0.0.3.tgz#8184fd347dac9cdc185992f3a6622e14b9d9ab6a" -tree-node-cli@^1.2.1: +tree-node-cli@^1.2.2: version "1.2.2" resolved "https://registry.yarnpkg.com/tree-node-cli/-/tree-node-cli-1.2.2.tgz#d8aa63f7ed4eeea02d047e0b30b662194d9ec4fc" dependencies: