1010 v-if =" isLoading && !spec && !displayError"
1111 class =" swaggerLoader"
1212 >
13- <ActivityIndicator :loading =" true" />
13+ <ActivityIndicator :loading =" true" />
1414 </div >
1515
1616 <Alert
2424 v-else-if =" !isLoading && !spec"
2525 severity =" warning"
2626 >
27- <span v-html =" $sanitize(missingSpecLearnMore)" />
27+ <span v-html =" $sanitize(missingSpecLearnMore)" />
2828 </Alert >
2929
3030 <div
3434</template >
3535
3636<script lang="ts">
37- import { defineComponent , PropType } from ' vue' ;
37+ import {defineComponent , PropType } from ' vue' ;
3838import {
3939 ActivityIndicator ,
4040 Alert ,
@@ -56,6 +56,7 @@ interface OpenApiSpec {
5656
5757interface OpenApiServer {
5858 url? : string ;
59+
5960 [key : string ]: unknown ;
6061}
6162
@@ -132,7 +133,6 @@ export default defineComponent({
132133 return this .specLoadError || this .loadError ;
133134 },
134135 missingSpecLearnMore(): string {
135- // TODO: replace with the final FAQ page once it is published.
136136 return translate (
137137 ' ApiReference_SwaggerPageSpecNotAvailable' ,
138138 externalLink (' https://matomo.org/faq/how-to/how-to-use-the-api-reference-in-matomo#why-is-the-openapi-specification-file-not-generated' ),
@@ -177,7 +177,7 @@ export default defineComponent({
177177
178178 return {
179179 ... spec ,
180- servers: [{ url: this .piwikUrl } as OpenApiServer ],
180+ servers: [{url: this .piwikUrl } as OpenApiServer ],
181181 };
182182 },
183183 shortenSummaryPaths(swaggerRoot : ParentNode ) {
@@ -280,7 +280,7 @@ export default defineComponent({
280280 return ;
281281 }
282282
283- const { element } = state ;
283+ const {element} = state ;
284284
285285 window .clearTimeout (state .resetTimeoutId );
286286 element .innerHTML = copyIconMarkup ;
0 commit comments