8
8
sm =" 12"
9
9
md =" 12"
10
10
xl =" 8" >
11
- <h1 class =" text-center mb-6 text-h4" >
12
- {{ heading }}
13
- </h1 >
14
- <!-- TODO: Wait for Vuetify 3 implementation (https://github.com/vuetifyjs/vuetify/issues/13509) -->
15
- <!-- <v-stepper v-model="wizardStage" class="transparent-background">
16
- <v-stepper-header>
17
- <v-stepper-step
11
+ <VStepper
12
+ v-model =" wizardStage"
13
+ class =" transparent-background" >
14
+ <VStepperHeader >
15
+ <VStepperItem
18
16
:complete =" wizardStage > 1"
19
- step ="1"
17
+ value =" 1"
20
18
:editable =" maxWizardStage > 0" >
21
- {{ t('wizard. languageLocale') }}
22
- </v-stepper-step >
19
+ {{ t('languageLocale') }}
20
+ </VStepperItem >
23
21
24
- <v-divider />
22
+ <VDivider />
25
23
26
- <v-stepper-step
24
+ <VStepperItem
27
25
:complete =" wizardStage > 2"
28
- step ="2"
26
+ value =" 2"
29
27
:editable =" maxWizardStage > 1" >
30
- {{ t('wizard. administratorAccount') }}
31
- </v-stepper-step >
28
+ {{ t('administratorAccount') }}
29
+ </VStepperItem >
32
30
33
- <v-divider />
31
+ <VDivider />
34
32
35
- <v-stepper-step
33
+ <VStepperItem
36
34
:complete =" wizardStage > 3"
37
- step ="3"
35
+ value =" 3"
38
36
:editable =" maxWizardStage > 2" >
39
- {{ t('wizard. preferredMetadataLanguage') }}
40
- </v-stepper-step >
37
+ {{ t('preferredMetadataLanguage') }}
38
+ </VStepperItem >
41
39
42
- <v-divider />
40
+ <VDivider />
43
41
44
- <v-stepper-step
42
+ <VStepperItem
45
43
:complete =" wizardStage > 4"
46
- step ="4"
44
+ value =" 4"
47
45
:editable =" maxWizardStage > 3" >
48
- {{ t('wizard.remoteAccess') }}
49
- </v-stepper-step>
50
- </v-stepper-header>
51
-
52
- <v-stepper-items>
53
- <v-stepper-content step="1">
54
- <wizard-language class="pt-4" @step-complete="nextStep" />
55
- </v-stepper-content>
46
+ {{ t('remoteAccess') }}
47
+ </VStepperItem >
48
+ </VStepperHeader >
49
+
50
+ <VStepperWindow >
51
+ <VStepperWindowItem
52
+ key =" 1-content"
53
+ value =" 1" >
54
+ <WizardLanguage
55
+ class =" pt-4"
56
+ @step-complete =" nextStep" />
57
+ </VStepperWindowItem >
56
58
57
- <v-stepper-content step="2">
58
- <wizard-admin-account
59
+ <VStepperWindowItem
60
+ key =" 2-content"
61
+ value =" 2" >
62
+ <WizardAdminAccount
59
63
class =" pt-4"
60
64
@step-complete =" nextStep"
61
65
@previous-step =" previousStep" />
62
- </v-stepper-content >
66
+ </VStepperWindowItem >
63
67
64
- <v-stepper-content step="3">
65
- <wizard-metadata
68
+ <VStepperWindowItem
69
+ key =" 3-content"
70
+ value =" 3" >
71
+ <WizardMetadata
66
72
class =" pt-4"
67
73
@step-complete =" nextStep"
68
74
@previous-step =" previousStep" />
69
- </v-stepper-content >
75
+ </VStepperWindowItem >
70
76
71
- <v-stepper-content step="4">
72
- <wizard-remote-access
77
+ <VStepperWindowItem
78
+ key =" 4-content"
79
+ value =" 4" >
80
+ <WizardRemoteAccess
73
81
class =" pt-4"
74
82
@step-complete =" nextStep"
75
83
@previous-step =" previousStep" />
76
- </v-stepper-content >
77
- </v-stepper-items >
78
- </v-stepper> -- >
84
+ </VStepperWindowItem >
85
+ </VStepperWindow >
86
+ </VStepper >
79
87
</VCol >
80
88
</VRow >
81
89
</VContainer >
89
97
90
98
<script setup lang="ts">
91
99
import { getStartupApi } from ' @jellyfin/sdk/lib/utils/api/startup-api' ;
92
- import { computed , ref } from ' vue' ;
100
+ import { ref } from ' vue' ;
93
101
import { useI18n } from ' vue-i18n' ;
94
102
import { useRouter } from ' vue-router' ;
95
103
import { useSnackbar } from ' @/composables/use-snackbar' ;
@@ -101,25 +109,6 @@ const router = useRouter();
101
109
const wizardStage = ref (1 );
102
110
const maxWizardStage = ref (1 );
103
111
104
- const heading = computed (() => {
105
- switch (wizardStage .value ) {
106
- case 1 : {
107
- return t (' languageLocale' );
108
- }
109
- case 2 : {
110
- return t (' administratorAccount' );
111
- }
112
- case 3 : {
113
- return t (' preferredMetadataLanguage' );
114
- }
115
- case 4 : {
116
- return t (' remoteAccess' );
117
- }
118
- }
119
-
120
- return ' ' ;
121
- });
122
-
123
112
/**
124
113
* Completes server setup
125
114
*/
0 commit comments