Skip to content

Revert "Add Promotion for 2023 Fundraiser" #2873

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

Merged
merged 1 commit into from
Jan 8, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 0 additions & 2 deletions client/constants.js
Original file line number Diff line number Diff line change
Expand Up @@ -90,8 +90,6 @@ export const SHOW_EDITOR_OPTIONS = 'SHOW_EDITOR_OPTIONS';
export const CLOSE_EDITOR_OPTIONS = 'CLOSE_EDITOR_OPTIONS';
export const SHOW_KEYBOARD_SHORTCUT_MODAL = 'SHOW_KEYBOARD_SHORTCUT_MODAL';
export const CLOSE_KEYBOARD_SHORTCUT_MODAL = 'CLOSE_KEYBOARD_SHORTCUT_MODAL';
export const SHOW_FUNDRAISER_MODAL = 'SHOW_FUNDRAISER_MODAL';
export const CLOSE_FUNDRAISER_MODAL = 'CLOSE_FUNDRAISER_MODAL';
export const SHOW_TOAST = 'SHOW_TOAST';
export const HIDE_TOAST = 'HIDE_TOAST';
export const SET_TOAST_TEXT = 'SET_TOAST_TEXT';
Expand Down
1,025 changes: 0 additions & 1,025 deletions client/images/processing-foundation-logo.svg

This file was deleted.

12 changes: 0 additions & 12 deletions client/modules/IDE/actions/ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -184,18 +184,6 @@ export function closeKeyboardShortcutModal() {
};
}

export function showFundraiserModal() {
return {
type: ActionTypes.SHOW_FUNDRAISER_MODAL
};
}

export function closeFundraiserModal() {
return {
type: ActionTypes.CLOSE_FUNDRAISER_MODAL
};
}

export function setUnsavedChanges(value) {
return {
type: ActionTypes.SET_UNSAVED_CHANGES,
Expand Down
14 changes: 0 additions & 14 deletions client/modules/IDE/components/About.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -162,20 +162,6 @@ function About(props) {
Discord
</a>
</p>
<p className="about__content-column-list">
<a
href="https://p5js.org/download/support.html"
target="_blank"
rel="noopener noreferrer"
>
<AsteriskIcon
className="about__content-column-asterisk"
aria-hidden="true"
focusable="false"
/>
Donate
</a>
</p>
<p className="about__content-column-list">
<Link to="/privacy-policy">
<AsteriskIcon
Expand Down
36 changes: 0 additions & 36 deletions client/modules/IDE/components/FundraiserModal.jsx

This file was deleted.

6 changes: 1 addition & 5 deletions client/modules/IDE/components/Header/MobileNav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ import {
newFile,
newFolder,
openPreferences,
showKeyboardShortcutModal,
showFundraiserModal
showKeyboardShortcutModal
} from '../../actions/ide';
import { logoutUser } from '../../../User/actions';
import { useSketchActions, useWhatPage } from '../../hooks';
Expand Down Expand Up @@ -438,9 +437,6 @@ const MoreMenu = () => {
{t('Nav.Help.Reference')}
</NavMenuItem>
<NavMenuItem href="/about">{t('Nav.Help.About')}</NavMenuItem>
<NavMenuItem onClick={() => dispatch(showFundraiserModal())}>
{t('Nav.Fundraiser')}
</NavMenuItem>
</ParentMenuContext.Provider>
</ul>
</div>
Expand Down
20 changes: 0 additions & 20 deletions client/modules/IDE/components/Header/Nav.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@ import {
newFile,
newFolder,
showKeyboardShortcutModal,
showFundraiserModal,
startSketch,
stopSketch
} from '../../actions/ide';
Expand All @@ -38,7 +37,6 @@ const Nav = ({ layout }) => (
matches ? (
<NavBar>
<LeftLayout layout={layout} />
<FundraiserSection />
<UserMenu />
</NavBar>
) : (
Expand Down Expand Up @@ -87,24 +85,6 @@ const UserMenu = () => {
return null;
};

const FundraiserSection = () => {
const { t } = useTranslation();
const dispatch = useDispatch();

return (
<>
<button
className="nav__fundraiser-btn"
onClick={() => dispatch(showFundraiserModal())}
aria-label="2023-fundraiser-button"
title="2023 Fundraiser Button"
>
{t('Nav.Fundraiser')}
</button>
</>
);
};

const DashboardMenu = () => {
const { t } = useTranslation();
const editorLink = useSelector(selectSketchPath);
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -39,13 +39,6 @@ exports[`Nav renders dashboard version for desktop 1`] = `
</a>
</li>
</ul>
<button
aria-label="2023-fundraiser-button"
class="nav__fundraiser-btn"
title="2023 Fundraiser Button"
>
Support p5.js and the Processing Foundation!
</button>
</nav>
</header>
</DocumentFragment>
Expand Down Expand Up @@ -460,13 +453,6 @@ exports[`Nav renders dashboard version for mobile 1`] = `
About
</a>
</li>
<li
class="nav__dropdown-item"
>
<button>
Support p5.js and the Processing Foundation!
</button>
</li>
</ul>
</div>
</div>
Expand Down Expand Up @@ -683,13 +669,6 @@ exports[`Nav renders editor version for desktop 1`] = `
</ul>
</li>
</ul>
<button
aria-label="2023-fundraiser-button"
class="nav__fundraiser-btn"
title="2023 Fundraiser Button"
>
Support p5.js and the Processing Foundation!
</button>
</nav>
</header>
</DocumentFragment>
Expand Down Expand Up @@ -1104,13 +1083,6 @@ exports[`Nav renders editor version for mobile 1`] = `
About
</a>
</li>
<li
class="nav__dropdown-item"
>
<button>
Support p5.js and the Processing Foundation!
</button>
</li>
</ul>
</div>
</div>
Expand Down
12 changes: 0 additions & 12 deletions client/modules/IDE/components/IDEOverlays.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,6 @@ import { useLocation, useParams } from 'react-router-dom';
import Overlay from '../../App/components/Overlay';
import {
closeKeyboardShortcutModal,
closeFundraiserModal,
closePreferences,
closeShareModal,
hideErrorModal
Expand All @@ -15,7 +14,6 @@ import AddToCollectionList from './AddToCollectionList';
import ErrorModal from './ErrorModal';
import Feedback from './Feedback';
import KeyboardShortcutModal from './KeyboardShortcutModal';
import FundraiserModal from './FundraiserModal';
import NewFileModal from './NewFileModal';
import NewFolderModal from './NewFolderModal';
import Preferences from './Preferences';
Expand All @@ -35,7 +33,6 @@ export default function IDEOverlays() {
uploadFileModalVisible,
preferencesIsVisible,
keyboardShortcutVisible,
fundraiserContentVisible,
shareModalVisible,
shareModalProjectId,
shareModalProjectName,
Expand Down Expand Up @@ -109,15 +106,6 @@ export default function IDEOverlays() {
<KeyboardShortcutModal />
</Overlay>
)}
{fundraiserContentVisible && (
<Overlay
title={t('Fundraiser.Title')}
ariaLabel={t('Fundraiser.Title')}
closeOverlay={() => dispatch(closeFundraiserModal())}
>
<FundraiserModal />
</Overlay>
)}
{errorType && (
<Overlay
title={t('Common.Error')}
Expand Down
5 changes: 0 additions & 5 deletions client/modules/IDE/reducers/ide.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,6 @@ const initialState = {
shareModalProjectName: 'My Cute Sketch',
shareModalProjectUsername: 'p5_user',
keyboardShortcutVisible: false,
fundraiserContentVisible: false,
unsavedChanges: false,
infiniteLoop: false,
previewIsRefreshing: false,
Expand Down Expand Up @@ -86,10 +85,6 @@ const ide = (state = initialState, action) => {
return Object.assign({}, state, { keyboardShortcutVisible: true });
case ActionTypes.CLOSE_KEYBOARD_SHORTCUT_MODAL:
return Object.assign({}, state, { keyboardShortcutVisible: false });
case ActionTypes.SHOW_FUNDRAISER_MODAL:
return Object.assign({}, state, { fundraiserContentVisible: true });
case ActionTypes.CLOSE_FUNDRAISER_MODAL:
return Object.assign({}, state, { fundraiserContentVisible: false });
case ActionTypes.SET_UNSAVED_CHANGES:
return Object.assign({}, state, { unsavedChanges: action.value });
case ActionTypes.DETECT_INFINITE_LOOPS:
Expand Down
10 changes: 0 additions & 10 deletions client/styles/abstracts/_variables.scss
Original file line number Diff line number Diff line change
Expand Up @@ -50,10 +50,6 @@ $themes: (
button-nav-inactive-color: $middle-gray,
button-hover-color: $lightest,
button-active-color: $lightest,
fundraiser-button-nav-color: $p5js-pink,
fundraiser-button-background-color: $p5js-pink,
fundraiser-button-color: $white,
fundraiser-button-hover-active-color: $medium-dark,
modal-background-color: $light,
preferences-button-background-color: $medium-light,
modal-border-color: $middle-light,
Expand Down Expand Up @@ -168,9 +164,6 @@ $themes: (
editor-gutter-color: $darker,
file-hover-color: $dark,
file-selected-color: $medium-dark,
fundraiser-button-background-color: $p5js-pink,
fundraiser-button-color: $white,
fundraiser-button-hover-active-color: $medium-dark,
input-text-color: $lightest,
input-background-color: $dark,
input-secondary-background-color: $medium-dark,
Expand Down Expand Up @@ -265,9 +258,6 @@ $themes: (
editor-gutter-color: $darker,
file-hover-color: $dark,
file-selected-color: $medium-dark,
fundraiser-button-background-color: $yellow,
fundraiser-button-color: $dark,
fundraiser-button-hover-active-color: $medium-light,
input-text-color: $lightest,
input-background-color: $dark,
input-secondary-background-color: $medium-dark,
Expand Down
53 changes: 0 additions & 53 deletions client/styles/components/_fundraiser.scss

This file was deleted.

9 changes: 0 additions & 9 deletions client/styles/components/_nav.scss
Original file line number Diff line number Diff line change
Expand Up @@ -23,15 +23,6 @@
align-items: center;
}

.nav__fundraiser-btn {
font-weight: bold;
font-size: #{14 / $base-font-size}rem;
@include themify() {
color: getThemifyVariable('fundraiser-button-nav-color');
}
}


.preview-nav__editor-svg {
@include icon();
}
Expand Down
1 change: 0 additions & 1 deletion client/styles/main.scss
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,6 @@
@import 'components/asset-list';
@import 'components/asset-size';
@import 'components/keyboard-shortcuts';
@import 'components/fundraiser';
@import 'components/copyable-input';
@import 'components/feedback';
@import 'components/console-input';
Expand Down
1 change: 0 additions & 1 deletion client/testData/testReduxStore.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,6 @@ const initialTestState = {
shareModalProjectName: 'My Cute Sketch',
shareModalProjectUsername: 'p5_user',
keyboardShortcutVisible: false,
fundraiserContentVisible: false,
unsavedChanges: false,
infiniteLoop: false,
previewIsRefreshing: false,
Expand Down
Loading