Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F4129133
App.vue
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
App.vue
View Options
<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
Details
Attached
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)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment