diff --git a/banners/mobile/C24_WMDE_Mobile_DE_13/banner_ctrl.ts b/banners/mobile/C24_WMDE_Mobile_DE_13/banner_ctrl.ts index 1c138885f..4b3126924 100644 --- a/banners/mobile/C24_WMDE_Mobile_DE_13/banner_ctrl.ts +++ b/banners/mobile/C24_WMDE_Mobile_DE_13/banner_ctrl.ts @@ -23,6 +23,7 @@ import { createFormItems } from './form_items'; import { createFormActions } from '@src/createFormActions'; import { LocalStorageCloseTracker } from '@src/utils/LocalCloseTracker'; import { WindowTimer } from '@src/utils/Timer'; +import { currentCampaignTimePercentage } from '@src/components/ProgressBar/currentCampaignTimePercentage'; const localeFactory = new LocaleFactoryDe(); const translator = new Translator( messages ); @@ -31,7 +32,7 @@ const page = new PageWPORG( mediaWiki, ( new SkinFactory( mediaWiki ) ).getSkin( const runtimeEnvironment = new UrlRuntimeEnvironment( window.location ); const impressionCount = new LocalImpressionCount( page.getTracking().keyword, runtimeEnvironment ); const tracker = new LegacyTrackerWPORG( mediaWiki, page.getTracking().keyword, eventMappings, runtimeEnvironment ); - +const date = new Date(); const currencyFormatter = localeFactory.getCurrencyFormatter(); const app = createVueApp( BannerConductor, { @@ -54,7 +55,7 @@ const app = createVueApp( BannerConductor, { app.use( TranslationPlugin, translator ); app.use( DynamicTextPlugin, { campaignParameters: page.getCampaignParameters(), - date: new Date(), + date, formatters: localeFactory.getFormatters(), impressionCount, translator, @@ -66,5 +67,6 @@ app.provide( 'formItems', createFormItems( translator, currencyFormatter.euroAmo app.provide( 'formActions', createFormActions( page.getTracking(), impressionCount ) ); app.provide( 'tracker', tracker ); app.provide( 'timer', new WindowTimer() ); +app.provide( 'currentCampaignTimePercentage', currentCampaignTimePercentage( date, page.getCampaignParameters() ) ); app.mount( page.getBannerContainer() ); diff --git a/banners/mobile/C24_WMDE_Mobile_DE_13/banner_var.ts b/banners/mobile/C24_WMDE_Mobile_DE_13/banner_var.ts index 130119991..64233ae0a 100644 --- a/banners/mobile/C24_WMDE_Mobile_DE_13/banner_var.ts +++ b/banners/mobile/C24_WMDE_Mobile_DE_13/banner_var.ts @@ -1,6 +1,6 @@ import { createVueApp } from '@src/createVueApp'; -import './styles/styles_var.scss'; +import './styles/styles.scss'; import BannerConductor from '@src/components/BannerConductor/BannerConductor.vue'; import Banner from './components/BannerVar.vue'; diff --git a/banners/mobile/C24_WMDE_Mobile_DE_13/components/BannerCtrl.vue b/banners/mobile/C24_WMDE_Mobile_DE_13/components/BannerCtrl.vue index e28a0d24c..8b2c17d15 100644 --- a/banners/mobile/C24_WMDE_Mobile_DE_13/components/BannerCtrl.vue +++ b/banners/mobile/C24_WMDE_Mobile_DE_13/components/BannerCtrl.vue @@ -9,7 +9,9 @@ @@ -24,9 +26,7 @@ - +