Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix(v1): self-host user images #3200

Merged
merged 14 commits into from
Aug 8, 2020
8 changes: 8 additions & 0 deletions website-1.x/core/Showcase.js
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,15 @@

const React = require('react');
const PropTypes = require('prop-types');
const users = require('../data/users');

users.forEach((user) => {
if (!user.image.startsWith('/img/users')) {
throw new Error(
`User image should be self-hosted in /img/users folder. This was not the case for ${user.image}`,
);
}
});
slorber marked this conversation as resolved.
Show resolved Hide resolved
const UserLink = ({infoLink, image, caption}) => (
<a className="link" href={infoLink} key={infoLink}>
<img src={image} alt={caption} title={caption} />
Expand Down
34 changes: 17 additions & 17 deletions website-1.x/data/users.js
Original file line number Diff line number Diff line change
Expand Up @@ -51,21 +51,21 @@ module.exports = [
},
{
caption: 'Amphora Data',
image: '/img/users/AmphoraData.png',
image: '/img/users/amphora-data.png',
infoLink: 'https://amphoradata.github.io/',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Anssr Data Platform',
image: '/img/users/anssr.svg',
image: '/img/users/anssr-data-plataform.svg',
infoLink: 'https://anssr.io/',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Apify SDK',
image: '/img/users/apify.svg',
image: '/img/users/apify-skd.svg',
infoLink: 'https://sdk.apify.com/',
fbOpenSource: false,
pinned: false,
Expand Down Expand Up @@ -275,14 +275,14 @@ module.exports = [
},
{
caption: 'Goby',
image: 'https://goby-lang.org/img/goby-logo.svg',
image: '/img/users/goby-logo.svg',
infoLink: 'https://goby-lang.org',
fbOpenSource: false,
pinned: false,
},
{
caption: 'graphql-compose',
image: 'https://graphql-compose.github.io/svg/graphql-compose-logo.svg',
image: '/img/users/graphql-compose-logo.svg',
infoLink: 'https://graphql-compose.github.io',
fbOpenSource: false,
pinned: false,
Expand Down Expand Up @@ -317,7 +317,7 @@ module.exports = [
},
{
caption: 'Home Assistant',
image: 'https://developers.home-assistant.io/img/logo-responsive.svg',
image: '/img/users/home-assistant.svg',
infoLink: 'https://developers.home-assistant.io/',
fbOpenSource: false,
pinned: false,
Expand All @@ -338,7 +338,7 @@ module.exports = [
},
{
caption: 'Jafar',
image: 'https://yahoo.github.io/jafar/img/jafar.svg',
image: '/img/users/jafar.svg',
infoLink: 'https://yahoo.github.io/jafar',
fbOpenSource: false,
pinned: false,
Expand Down Expand Up @@ -450,7 +450,7 @@ module.exports = [
},
{
caption: 'Node SerialPort',
image: 'https://serialport.io/img/serialport-logo.svg',
image: '/img/users/serialport-logo.svg',
infoLink: 'https://serialport.io',
fbOpenSource: false,
pinned: false,
Expand All @@ -464,7 +464,7 @@ module.exports = [
},
{
caption: 'Open Power Quality',
image: 'https://openpowerquality.org/img/opqlogo.png',
image: '/img/users/open-power-quality.png',
infoLink: 'https://openpowerquality.org/',
fbOpenSource: false,
pinned: false,
Expand Down Expand Up @@ -506,15 +506,15 @@ module.exports = [
},
{
caption: 'pnpm',
image: 'https://pnpm.js.org/img/pnpm.svg',
image: '/img/users/pnpm.svg',
infoLink: 'https://pnpm.js.org/',
fbOpenSource: false,
pinned: false,
},
{
caption: 'Polymath Network',
image: 'https://developers.polymath.network/img/text.svg',
infoLink: 'https://developers.polymath.network',
image: '/img/users/polymatch-network.png',
infoLink: 'https://polymath.network',
fbOpenSource: false,
pinned: false,
},
Expand Down Expand Up @@ -688,7 +688,7 @@ module.exports = [
},
{
caption: 'rest-hapi',
image: 'https://jkheadley.github.io/rest-hapi/img/rest-hapi-logo-alt.png',
image: '/img/users/rest-hapi.png',
infoLink: 'https://jkheadley.github.io/rest-hapi/',
fbOpenSource: false,
pinned: false,
Expand Down Expand Up @@ -723,7 +723,7 @@ module.exports = [
},
{
caption: 'single-spa',
image: 'https://single-spa.js.org/img/logo-white-bgblue.svg',
image: '/img/users/single-spa.svg',
infoLink: 'https://single-spa.js.org/',
fbOpenSource: false,
pinned: false,
Expand All @@ -737,7 +737,7 @@ module.exports = [
},
{
caption: 'smash.gg',
image: 'https://imgur.com/eBFBDei.png',
image: '/img/users/smash.png',
infoLink: 'https://developer.smash.gg',
fbOpenSource: false,
pinned: false,
Expand All @@ -751,7 +751,7 @@ module.exports = [
},
{
caption: 'Stackery',
image: 'https://www.stackery.io/img/stackery-large-mark-teal-w.png',
image: '/img/users/stackery-large-mark-teal-w.png',
infoLink: 'https://docs.stackery.io',
fbOpenSource: false,
pinned: false,
Expand Down Expand Up @@ -793,7 +793,7 @@ module.exports = [
},
{
caption: 'textlint',
image: 'https://textlint.github.io/img/textlint-icon.png',
image: '/img/users/textlint-icon.png',
infoLink: 'https://textlint.github.io/',
fbOpenSource: false,
pinned: false,
Expand Down
Binary file removed website-1.x/static/img/users/atalaya.png
Binary file not shown.
36 changes: 36 additions & 0 deletions website-1.x/static/img/users/goby-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website-1.x/static/img/users/graphql-compose-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website-1.x/static/img/users/home-assistant.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website-1.x/static/img/users/jafar.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
9 changes: 9 additions & 0 deletions website-1.x/static/img/users/pnpm.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website-1.x/static/img/users/rest-hapi.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website-1.x/static/img/users/serialport-logo.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions website-1.x/static/img/users/single-spa.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website-1.x/static/img/users/smash.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added website-1.x/static/img/users/textlint-icon.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.