Skip to content

Commit

Permalink
Prepare dev environment for the 2024 campaign
Browse files Browse the repository at this point in the history
- Update Use of Funds content import
- Update Campaign Parameters import
- Remove archive and update banner folder naming convention
- Add `@banners` import alias
- Improve all imports
- Add environment config to ensure mw Vue is never loaded in dev
- Remove jQuery plugin from webpack
- Remove iPad en

Ticket: https://phabricator.wikimedia.org/T366889
  • Loading branch information
Abban committed Jun 20, 2024
1 parent d321b60 commit 72af78e
Show file tree
Hide file tree
Showing 197 changed files with 384 additions and 1,282 deletions.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use 'src/themes/Yperala/variables/globals';
@use 'src/themes/Yperala/variables/breakpoints';
@use 'src/themes/Yperala/variables/colors';
@use 'src/themes/Yperala/variables/fonts';
@use '@src/themes/Yperala/variables/globals';
@use '@src/themes/Yperala/variables/breakpoints';
@use '@src/themes/Yperala/variables/colors';
@use '@src/themes/Yperala/variables/fonts';

@keyframes hide-mini {
0% {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use 'src/themes/Yperala/variables/breakpoints';
@use 'src/themes/Yperala/variables/colors';
@use '@src/themes/Yperala/variables/breakpoints';
@use '@src/themes/Yperala/variables/colors';

.wmde-banner {
&-full {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@use 'src/themes/Yperala/variables/globals';
@use 'src/themes/Yperala/variables/colors';
@use 'src/themes/Yperala/variables/breakpoints';
@use 'src/themes/Treedip/variables/fonts';
@use '@src/themes/Yperala/variables/globals';
@use '@src/themes/Yperala/variables/colors';
@use '@src/themes/Yperala/variables/breakpoints';
@use '@src/themes/Treedip/variables/fonts';
@use 'sass:color';

$height-small: 328px !default;
Expand Down
16 changes: 16 additions & 0 deletions banners/mobile_english/C24_WMDE_Mobile_EN_00/styles/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
@use '@src/components/BannerConductor/banner-transition';
@use '@src/themes/UseOfFunds/UseOfFunds';
@use '@src/themes/Yperala/defaults';
@use 'Banner';
@use 'MiniBanner';
@use 'FullPageBanner';
@use '@src/themes/Yperala/Slider/Slider';
@use '@src/themes/Yperala/ProgressBar/ProgressBar';
@use '@src/themes/Yperala/DonationForm/MultiStepDonation';
@use '@src/themes/Yperala/DonationForm/SubComponents/SelectGroup';
@use '@src/themes/Yperala/DonationForm/SubComponents/SelectGroupImageLabel';
@use '@src/themes/Yperala/DonationForm/SubComponents/SelectCustomAmount';
@use '@src/themes/Yperala/DonationForm/SubComponents/SmsBox';
@use '@src/themes/Yperala/Footer/Footer';
@use '@src/themes/Yperala/Footer/SelectionInput';
@use '@src/themes/Yperala/SoftClose/SoftClose';
16 changes: 0 additions & 16 deletions banners/mobile_english/styles/styles.scss

This file was deleted.

File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
@use 'src/themes/Treedip/variables/fonts';
@use 'src/themes/Treedip/variables/colors';
@use '@src/themes/Treedip/variables/fonts';
@use '@src/themes/Treedip/variables/colors';

.wmde-banner {
&-wrapper {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use 'src/themes/Treedip/variables/colors';
@use 'src/themes/Treedip/variables/fonts';
@use 'src/themes/Treedip/variables/breakpoints';
@use '@src/themes/Treedip/variables/colors';
@use '@src/themes/Treedip/variables/fonts';
@use '@src/themes/Treedip/variables/breakpoints';

$banner-height: 353px !default;
$form-width: 256px !default;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
@use 'src/themes/Treedip/variables/colors';
@use 'src/themes/Treedip/variables/fonts';
@use 'src/themes/Treedip/variables/breakpoints';
@use '@src/themes/Treedip/variables/colors';
@use '@src/themes/Treedip/variables/fonts';
@use '@src/themes/Treedip/variables/breakpoints';

$banner-height: 353px !default;
$form-width: 256px !default;
Expand Down
41 changes: 41 additions & 0 deletions banners/pad/C24_WMDE_iPad_00/styles/styles.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,41 @@
// This is the file where we import the theme-specific component styles
@use '@src/components/BannerConductor/banner-transition';
@use 'Banner';
@use 'MainBanner' with (
$banner-height: 378px,
$form-width: 256px
);
@use '@src/themes/UseOfFunds/UseOfFunds';
@use '@src/themes/Treedip/defaults';
@use '@src/themes/Treedip/ButtonClose/ButtonClose';
@use '@src/themes/Treedip/ProgressBar/ProgressBar' with (
$progress-bar-margin: 0 15px
);
@use '@src/themes/Treedip/DonationForm/DonationForm' with (
$button-font-size: 12px
);
@use '@src/themes/Treedip/DonationForm/MultiStepDonation';
@use '@src/themes/Treedip/DonationForm/SubComponents/SelectGroup' with (
$interval-option-width: 33.3333%
);
@use '@src/themes/Treedip/DonationForm/SubComponents/SelectGroupButtons' with (
$height: 30px
);
@use '@src/themes/Treedip/DonationForm/SubComponents/SelectCustomAmountButton' with (
$height: 30px
);
@use '@src/themes/Treedip/DonationForm/SubComponents/SmsBox';
@use '@src/themes/Treedip/DonationForm/Forms/MainDonationForm' with (
$padding: 40px 0 0
);
@use '@src/themes/Treedip/DonationForm/Forms/UpgradeToYearlyButtonForm';
@use '@src/themes/Treedip/DonationForm/Forms/CustomAmountForm';
@use '@src/themes/Treedip/Footer/FooterAlreadyDonated';
@use '@src/themes/Treedip/Footer/BannerFooter' with (
$right-column-width: 256px
);
@use '@src/themes/Treedip/Footer/SelectionInput';
@use '@src/themes/Treedip/Message/Message';
@use '@src/themes/Treedip/Slider/KeenSlider';
@use '@src/themes/Treedip/AlreadyDonatedModal/AlreadyDonatedModal';
@use '@src/themes/Treedip/SoftClose/SoftClose';
44 changes: 44 additions & 0 deletions banners/pad/C24_WMDE_iPad_00/styles/styles_var.scss
Original file line number Diff line number Diff line change
@@ -0,0 +1,44 @@
// This is the file where we import the theme-specific component styles
@use '@src/components/BannerConductor/banner-transition';
@use 'Banner';
@use 'MainBannerVar' with (
$banner-height: 378px,
$form-width: 35%
);
@use '@src/themes/UseOfFunds/UseOfFunds';
@use '@src/themes/Treedip/defaults';
@use '@src/themes/Treedip/ButtonClose/ButtonClose';
@use '@src/themes/Treedip/ProgressBar/ProgressBar' with (
$progress-bar-margin: 0 15px
);
@use '@src/themes/Treedip/DonationForm/DonationForm' with (
$button-font-size: 12px
);
@use '@src/themes/Treedip/DonationForm/MultiStepDonation';
@use '@src/themes/Treedip/DonationForm/SubComponents/SelectGroup' with (
$interval-option-width: 33.3333%
);
@use '@src/themes/Treedip/DonationForm/SubComponents/SelectGroupImageLabel';
@use '@src/themes/Treedip/DonationForm/SubComponents/SelectGroupButtons' with (
$height: 42px,
$padding: 0 8px 8px
);
@use '@src/themes/Treedip/DonationForm/SubComponents/SelectCustomAmountButton' with (
$height: 42px,
$padding: 0 8px 8px
);
@use '@src/themes/Treedip/DonationForm/SubComponents/SmsBox';
@use '@src/themes/Treedip/DonationForm/Forms/MainDonationForm' with (
$padding: 0
);
@use '@src/themes/Treedip/DonationForm/Forms/UpgradeToYearlyButtonForm';
@use '@src/themes/Treedip/DonationForm/Forms/CustomAmountForm';
@use '@src/themes/Treedip/Footer/FooterAlreadyDonated';
@use '@src/themes/Treedip/Footer/BannerFooter' with (
$right-column-width: 35%
);
@use '@src/themes/Treedip/Footer/SelectionInput';
@use '@src/themes/Treedip/Message/Message';
@use '@src/themes/Treedip/Slider/KeenSlider';
@use '@src/themes/Treedip/AlreadyDonatedModal/AlreadyDonatedModal';
@use '@src/themes/Treedip/SoftClose/SoftClose';
17 changes: 0 additions & 17 deletions banners/pad/styles/Banner.scss

This file was deleted.

41 changes: 0 additions & 41 deletions banners/pad/styles/styles.scss

This file was deleted.

44 changes: 0 additions & 44 deletions banners/pad/styles/styles_var.scss

This file was deleted.

68 changes: 0 additions & 68 deletions banners/pad_english/banner_ctrl.ts

This file was deleted.

Loading

0 comments on commit 72af78e

Please sign in to comment.