Skip to content
This repository has been archived by the owner on Oct 11, 2022. It is now read-only.

Commit

Permalink
Merge pull request #5422 from withspectrum/disable-community-creation
Browse files Browse the repository at this point in the history
Remove community creation, marketing pages
  • Loading branch information
brianlovin committed Feb 9, 2021
2 parents d1c3960 + 7a1234b commit 913be0c
Show file tree
Hide file tree
Showing 46 changed files with 90 additions and 4,568 deletions.
2 changes: 1 addition & 1 deletion api/routes/auth/logout.js
Expand Up @@ -3,7 +3,7 @@ const debug = require('debug')('api:routes:auth:logout');
import { destroySession } from '../../models/session';

const IS_PROD = process.env.NODE_ENV === 'production';
const HOME = IS_PROD ? '/' : 'http://localhost:3000/';
const HOME = IS_PROD ? '/explore' : 'http://localhost:3000/explore';
const logoutRouter = Router();

logoutRouter.get('/', (req, res) => {
Expand Down
126 changes: 0 additions & 126 deletions cypress/integration/community/settings/create_spec.js

This file was deleted.

12 changes: 0 additions & 12 deletions cypress/integration/faq_page_spec.js

This file was deleted.

11 changes: 0 additions & 11 deletions cypress/integration/home_spec.js

This file was deleted.

107 changes: 0 additions & 107 deletions cypress/integration/navbar_spec.js

This file was deleted.

1 change: 0 additions & 1 deletion docs/testing/integration.md
Expand Up @@ -35,7 +35,6 @@ describe('Home View', () => {
it('should render the home page', () => {
cy.get('[data-cy="home-page"]').should('be.visible');
cy.get('[href*="/login"]').should('be.visible');
cy.get('[href*="/new/community"]').should('be.visible');
});
});
```
Expand Down
2 changes: 1 addition & 1 deletion hyperion/renderer/index.js
Expand Up @@ -190,7 +190,7 @@ const renderer = (req: express$Request, res: express$Response) => {
: 'Only output in production.';
res.status(500);
res.send(
`<!DOCTYPE html><html><head><title>Spectrum</title> <style>body{margin: 0;}html{-webkit-font-smoothing: antialiased; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';}h1, p{line-height: 1.5;}.container{background: rgb(56,24,229);background: linear-gradient(90deg, rgba(56,24,229,1) 0%, rgba(56,24,229,0.8029586834733894) 52%, rgba(56,24,229,1) 100%); width: 100%; display: flex; height: 100vh; justify-content: center;}.item{color: white; font-weight: bold; align-self: center; text-align: center;}a{color: white;}span{font-size: 40px; padding: 0; margin: 0;}</style></head><body> <div class="container"> <div class="item"> <span>😢</span> <h1>Oops, something went wrong. Sorry!</h1> <p>Please refresh or <a href="/">go home</a>. </p></div></div></body></html>`
`<!DOCTYPE html><html><head><title>Spectrum</title> <style>body{margin: 0;}html{-webkit-font-smoothing: antialiased; font-family: -apple-system, BlinkMacSystemFont, 'Segoe UI', Helvetica, Arial, sans-serif, 'Apple Color Emoji', 'Segoe UI Emoji', 'Segoe UI Symbol';}h1, p{line-height: 1.5;}.container{background: rgb(56,24,229);background: linear-gradient(90deg, rgba(56,24,229,1) 0%, rgba(56,24,229,0.8029586834733894) 52%, rgba(56,24,229,1) 100%); width: 100%; display: flex; height: 100vh; justify-content: center;}.item{color: white; font-weight: bold; align-self: center; text-align: center;}a{color: white;}span{font-size: 40px; padding: 0; margin: 0;}</style></head><body> <div class="container"> <div class="item"> <span>😢</span> <h1>Oops, something went wrong. Sorry!</h1> <p>Please refresh the page.</p></div></div></body></html>`
);
});
};
Expand Down
21 changes: 5 additions & 16 deletions src/components/announcementBanner/index.js
Expand Up @@ -4,7 +4,7 @@ import Icon from 'src/components/icon';
import { Bar, Content, Dismiss } from './style';
import { getItemFromStorage, storeItem } from 'src/helpers/localStorage';

const lsKey = 'hasDismissedPrivacyTermsRedirectBanner';
const lsKey = 'hasDismissedSunsetAnnouncementBanner';

type State = {
visible: boolean,
Expand All @@ -31,25 +31,14 @@ class Banner extends React.Component<{}, State> {
<Content>
<Icon glyph="announcement" size="24" />
<p>
Spectrum has updated its{' '}
Spectrum will become read-only on August 10, 2021. Learn more about
the decision in our{' '}
<a
target="_blank"
rel="noopener noreferrer"
href={
'https://help.github.com/en/github/site-policy/github-privacy-statement'
'https://spectrum.chat/spectrum/general/join-us-on-our-new-journey~e4ca0386-f15c-4ba8-8184-21cf5fa39cf5'
}
>
Privacy Statement
</a>
{', and '}
<a
target="_blank"
rel="noopener noreferrer"
href={
'https://help.github.com/en/github/site-policy/github-terms-of-service'
}
>
Terms of Service
official announcement
</a>
.
</p>
Expand Down

0 comments on commit 913be0c

Please sign in to comment.