Skip to content
Snippets Groups Projects
Commit 504e29d9 authored by Kasper Seweryn's avatar Kasper Seweryn 🥞
Browse files

Fix GitLab pages

parent e5eba783
No related branches found
No related tags found
1 merge request!1Implement all components
Pipeline #23279 failed with stages
in 3 minutes and 27 seconds
......@@ -2,7 +2,7 @@ import { defineConfig } from 'vitepress'
export default defineConfig({
title: "Funkwhale Vue Components",
outDir: "../dist/docs",
outDir: "../public",
cleanUrls: 'with-subfolders',
themeConfig: {
nav: [
......
......@@ -92,7 +92,7 @@ const click = () => new Promise((r, resolve) => setTimeout(resolve, 1000))
 
#### Promise handling in @click
When a function passed to `@click` returns a promise, the button will automatically toggle it's loading state on, and when promise resolves/rejects, it will toggle it off.
When a function passed to `@click` returns a promise, the button will automatically toggle it's loading state on click, and when promise resolves/rejects, it will toggle it off.
::: danger
The `<fw-button>` component does not have any promise rejection mechanism implemented. Make sure, that the `@click` handler never rejects.
......
......@@ -5,6 +5,7 @@ import viteConfig from '../vite.config'
export default defineConfig((config) => ({
// @ts-expect-error UserConfigExport is not callable (only in theory)
css: viteConfig(config).css,
publicDir: false,
resolve: {
alias: {
'~': fileURLToPath(new URL('../src', import.meta.url)),
......
......@@ -6,6 +6,7 @@ import vue from '@vitejs/plugin-vue'
// https://vitejs.dev/config/
export default defineConfig(() => ({
plugins: [vue()],
publicDir: false,
resolve: {
alias: {
'?': resolve(__dirname, './test'),
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment