Page Menu
Home
WickedGov Phorge
Search
Configure Global Search
Log In
Files
F5983898
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' },
{ componentName: 'TempAccountsOnboardingIPRevealStep' }
];
if ( mw.config.get( 'wgCheckUserIPInfoExtensionLoaded' ) ) {
steps.push( { componentName: 'TempAccountsOnboardingIPInfoStep' } );
}
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
Sat, Oct 3, 23:05 (1 w, 5 d ago)
Storage Engine
local-disk
Storage Format
Raw Data
Storage Handle
f9/a6/72506d4efe3f91bc2afc7dedad21
Default Alt Text
App.vue (1 KB)
Attached To
Mode
rMWPROD MediaWiki Production
Attached
Detach File
Event Timeline
Log In to Comment