Page MenuHomeWickedGov Phorge

App.vue
No OneTemporary

Size
1 KB
Referenced Files
None
Subscribers
None
<template>
<temp-accounts-onboarding-dialog :steps="steps">
<template
v-for="step in steps"
:key="step.name"
#[step.name]
>
<component :is="step.componentName" :ref="step.ref"></component>
</template>
</temp-accounts-onboarding-dialog>
</template>
<script>
const { ref } = require( 'vue' );
const TempAccountsOnboardingDialog = require( './TempAccountsOnboardingDialog.vue' );
const TempAccountsOnboardingIntroStep = require( './TempAccountsOnboardingIntroStep.vue' );
const TempAccountsOnboardingIPInfoStep = require( './TempAccountsOnboardingIPInfoStep.vue' );
const TempAccountsOnboardingIPRevealStep = require( './TempAccountsOnboardingIPRevealStep.vue' );
// @vue/component
module.exports = exports = {
name: 'App',
compilerOptions: {
whitespace: 'condense'
},
components: {
TempAccountsOnboardingDialog,
TempAccountsOnboardingIntroStep,
TempAccountsOnboardingIPInfoStep,
TempAccountsOnboardingIPRevealStep
},
setup() {
// Generate the steps to be shown in the onboarding dialog. We need to generate
// these steps programmatically as the IPInfo step will only be shown if
// IPInfo is installed.
const steps = [ { componentName: 'TempAccountsOnboardingIntroStep' } ];
if ( mw.config.get( 'wgCheckUserIPInfoExtensionLoaded' ) ) {
steps.push( { componentName: 'TempAccountsOnboardingIPInfoStep' } );
}
steps.push( { componentName: 'TempAccountsOnboardingIPRevealStep' } );
steps.forEach( ( step, index ) => {
step.name = 'step' + ( index + 1 );
step.ref = ref( null );
} );
return { steps };
}
};
</script>

File Metadata

Mime Type
text/html
Expires
Wed, Aug 19, 09:38 (2 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
41/f5/4dad2c9593a2168c71514c7680c1
Default Alt Text
App.vue (1 KB)

Event Timeline