diff --git a/.gitignore b/.gitignore index 6e47bf12f..2347aed57 100644 --- a/.gitignore +++ b/.gitignore @@ -75,6 +75,7 @@ api/staticfiles api/static api/.pytest_cache api/celerybeat-* + # Front oldfront/node_modules/ front/static/translations @@ -88,7 +89,15 @@ front/tests/e2e/reports front/test_results.xml front/coverage/ front/selenium-debug.log + +# Vitepress +front/ui-docs/.vitepress/cache +front/ui-docs/.vitepress/dist +front/ui-docs/public + +# Docs docs/_build + #Tauri front/tauri/gen diff --git a/front/package.json b/front/package.json index 653f758f1..07f7feaa2 100644 --- a/front/package.json +++ b/front/package.json @@ -1,13 +1,17 @@ { "name": "front", "version": "0.1.0", + "type": "module", "private": true, "description": "Funkwhale front-end", "author": "Funkwhale Collective ", "scripts": { "dev": "vite", + "dev:docs": "VP_DOCS=true vitepress dev ui-docs", "build": "vite build --mode development", "build:deployment": "vite build", + "build:docs": "VP_DOCS=true vitepress build ui-docs", + "serve:docs": "VP_DOCS=true vitepress serve ui-docs", "serve": "vite preview", "test": "vitest run", "test:unit": "vitest run --coverage", @@ -88,7 +92,7 @@ "@vue/eslint-config-standard": "8.0.1", "@vue/eslint-config-typescript": "12.0.0", "@vue/test-utils": "2.2.7", - "@vue/tsconfig": "0.5.1", + "@vue/tsconfig": "0.6.0", "cypress": "13.6.4", "eslint": "8.57.0", "eslint-config-standard": "17.1.0", @@ -115,6 +119,7 @@ "vite-plugin-node-polyfills": "0.17.0", "vite-plugin-pwa": "0.14.4", "vite-plugin-vue-devtools": "^7.5.2", + "vitepress": "1.5.0", "vitest": "1.3.1", "vue-tsc": "1.8.27", "workbox-core": "6.5.4", diff --git a/front/src/components/ui/Activity.vue b/front/src/components/ui/Activity.vue new file mode 100644 index 000000000..564022cfa --- /dev/null +++ b/front/src/components/ui/Activity.vue @@ -0,0 +1,69 @@ + + + + + diff --git a/front/src/components/ui/Alert.vue b/front/src/components/ui/Alert.vue new file mode 100644 index 000000000..d08835f7a --- /dev/null +++ b/front/src/components/ui/Alert.vue @@ -0,0 +1,24 @@ + + + + + diff --git a/front/src/components/ui/Button.vue b/front/src/components/ui/Button.vue new file mode 100644 index 000000000..d93669134 --- /dev/null +++ b/front/src/components/ui/Button.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/front/src/components/ui/Card.vue b/front/src/components/ui/Card.vue new file mode 100644 index 000000000..232ee720a --- /dev/null +++ b/front/src/components/ui/Card.vue @@ -0,0 +1,189 @@ + + + + + diff --git a/front/src/components/ui/Input.vue b/front/src/components/ui/Input.vue new file mode 100644 index 000000000..36a575601 --- /dev/null +++ b/front/src/components/ui/Input.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/front/src/components/ui/Layout.vue b/front/src/components/ui/Layout.vue new file mode 100644 index 000000000..cba165338 --- /dev/null +++ b/front/src/components/ui/Layout.vue @@ -0,0 +1,80 @@ + + + + + diff --git a/front/src/components/ui/Loader.vue b/front/src/components/ui/Loader.vue new file mode 100644 index 000000000..6a2afbcc3 --- /dev/null +++ b/front/src/components/ui/Loader.vue @@ -0,0 +1,19 @@ + + + + + diff --git a/front/src/components/ui/Markdown.vue b/front/src/components/ui/Markdown.vue new file mode 100644 index 000000000..dd8a3864a --- /dev/null +++ b/front/src/components/ui/Markdown.vue @@ -0,0 +1,93 @@ + + + diff --git a/front/src/components/ui/Modal.vue b/front/src/components/ui/Modal.vue new file mode 100644 index 000000000..80158c8ff --- /dev/null +++ b/front/src/components/ui/Modal.vue @@ -0,0 +1,38 @@ + + + + + diff --git a/front/src/components/ui/Pagination.vue b/front/src/components/ui/Pagination.vue new file mode 100644 index 000000000..196503465 --- /dev/null +++ b/front/src/components/ui/Pagination.vue @@ -0,0 +1,118 @@ + + + + + diff --git a/front/src/components/ui/Pill.vue b/front/src/components/ui/Pill.vue new file mode 100644 index 000000000..55ba3d2aa --- /dev/null +++ b/front/src/components/ui/Pill.vue @@ -0,0 +1,22 @@ + + + + + diff --git a/front/src/components/ui/Popover.vue b/front/src/components/ui/Popover.vue new file mode 100644 index 000000000..f669dd21b --- /dev/null +++ b/front/src/components/ui/Popover.vue @@ -0,0 +1,135 @@ + + + + + diff --git a/front/src/components/ui/SanitizedHtml.vue b/front/src/components/ui/SanitizedHtml.vue new file mode 100644 index 000000000..8b1356c21 --- /dev/null +++ b/front/src/components/ui/SanitizedHtml.vue @@ -0,0 +1,17 @@ + diff --git a/front/src/components/ui/Tab.vue b/front/src/components/ui/Tab.vue new file mode 100644 index 000000000..a53682f33 --- /dev/null +++ b/front/src/components/ui/Tab.vue @@ -0,0 +1,25 @@ + + + diff --git a/front/src/components/ui/Tabs.vue b/front/src/components/ui/Tabs.vue new file mode 100644 index 000000000..2ee624b21 --- /dev/null +++ b/front/src/components/ui/Tabs.vue @@ -0,0 +1,45 @@ + + + + + diff --git a/front/src/components/ui/Textarea.vue b/front/src/components/ui/Textarea.vue new file mode 100644 index 000000000..af3838514 --- /dev/null +++ b/front/src/components/ui/Textarea.vue @@ -0,0 +1,222 @@ + + +