diff --git a/compose.docs.yml b/compose.docs.yml index 77e8cd5a9..b8d7f7063 100644 --- a/compose.docs.yml +++ b/compose.docs.yml @@ -5,3 +5,4 @@ networks: include: - path: compose/docs.sphinx.yml - path: compose/docs.openapi.yml + - path: compose/docs.ui.yml diff --git a/compose/docs.ui.yml b/compose/docs.ui.yml new file mode 100644 index 000000000..cc724e90b --- /dev/null +++ b/compose/docs.ui.yml @@ -0,0 +1,21 @@ +services: + ui: + build: + context: ../front + dockerfile: Dockerfile.dev + command: yarn dev:docs --host 0.0.0.0 + expose: ['5173'] + ports: + - '8003:5173' + volumes: + - '../front:/app' + - '/app/node_modules' + networks: ['web'] + labels: + - 'traefik.enable=true' + - 'traefik.http.routers.test-funkwhale-ui-web.rule=Host(`ui.funkwhale.test`)' + - 'traefik.http.routers.test-funkwhale-ui-web.entrypoints=web' + - 'traefik.http.services.test-funkwhale-ui.loadbalancer.server.port=5173' + - 'traefik.http.routers.test-funkwhale-ui-webs.rule=Host(`ui.funkwhale.test`)' + - 'traefik.http.routers.test-funkwhale-ui-webs.entrypoints=webs' + - 'traefik.http.routers.test-funkwhale-ui-webs.tls=true' diff --git a/front/package.json b/front/package.json index 3e8b7692b..77c07695d 100644 --- a/front/package.json +++ b/front/package.json @@ -6,8 +6,11 @@ "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", @@ -18,7 +21,6 @@ "postinstall": "yarn run fix-fomantic-css" }, "dependencies": { - "@funkwhale/ui": "0.2.2", "@sentry/tracing": "7.47.0", "@sentry/vue": "7.47.0", "@tauri-apps/api": "2.0.0-beta.1", diff --git a/front/src/components/ui/Activity.vue b/front/src/components/ui/Activity.vue new file mode 100644 index 000000000..3904f7a2b --- /dev/null +++ b/front/src/components/ui/Activity.vue @@ -0,0 +1,73 @@ + + + + + diff --git a/front/src/components/ui/Alert.vue b/front/src/components/ui/Alert.vue new file mode 100644 index 000000000..d17fc083a --- /dev/null +++ b/front/src/components/ui/Alert.vue @@ -0,0 +1,36 @@ + + + + + diff --git a/front/src/components/ui/Button.vue b/front/src/components/ui/Button.vue new file mode 100644 index 000000000..0d606a7ec --- /dev/null +++ b/front/src/components/ui/Button.vue @@ -0,0 +1,305 @@ + + + + + diff --git a/front/src/components/ui/Card.vue b/front/src/components/ui/Card.vue new file mode 100644 index 000000000..6b082afcd --- /dev/null +++ b/front/src/components/ui/Card.vue @@ -0,0 +1,319 @@ + + + + + diff --git a/front/src/components/ui/Header.vue b/front/src/components/ui/Header.vue new file mode 100644 index 000000000..34ca1e49b --- /dev/null +++ b/front/src/components/ui/Header.vue @@ -0,0 +1,106 @@ + + + + + diff --git a/front/src/components/ui/Heading.vue b/front/src/components/ui/Heading.vue new file mode 100644 index 000000000..813be2545 --- /dev/null +++ b/front/src/components/ui/Heading.vue @@ -0,0 +1,53 @@ + + + + + diff --git a/front/src/components/ui/Input.vue b/front/src/components/ui/Input.vue new file mode 100644 index 000000000..0f8efb262 --- /dev/null +++ b/front/src/components/ui/Input.vue @@ -0,0 +1,164 @@ + + + + + diff --git a/front/src/components/ui/Layout.vue b/front/src/components/ui/Layout.vue new file mode 100644 index 000000000..22ecb052f --- /dev/null +++ b/front/src/components/ui/Layout.vue @@ -0,0 +1,115 @@ + + + + + diff --git a/front/src/components/ui/Link.vue b/front/src/components/ui/Link.vue new file mode 100644 index 000000000..24ec35af5 --- /dev/null +++ b/front/src/components/ui/Link.vue @@ -0,0 +1,168 @@ + + + + + diff --git a/front/src/components/ui/Loader.vue b/front/src/components/ui/Loader.vue new file mode 100644 index 000000000..65a5e6941 --- /dev/null +++ b/front/src/components/ui/Loader.vue @@ -0,0 +1,25 @@ + + + + + diff --git a/front/src/components/ui/Markdown.vue b/front/src/components/ui/Markdown.vue new file mode 100644 index 000000000..b90f06faf --- /dev/null +++ b/front/src/components/ui/Markdown.vue @@ -0,0 +1,92 @@ + + + diff --git a/front/src/components/ui/Modal.vue b/front/src/components/ui/Modal.vue new file mode 100644 index 000000000..ff8a7b601 --- /dev/null +++ b/front/src/components/ui/Modal.vue @@ -0,0 +1,152 @@ + + + + + diff --git a/front/src/components/ui/Nav.vue b/front/src/components/ui/Nav.vue new file mode 100644 index 000000000..9efb6dbde --- /dev/null +++ b/front/src/components/ui/Nav.vue @@ -0,0 +1,93 @@ + + + + + diff --git a/front/src/components/ui/Pagination.vue b/front/src/components/ui/Pagination.vue new file mode 100644 index 000000000..a65f485f7 --- /dev/null +++ b/front/src/components/ui/Pagination.vue @@ -0,0 +1,183 @@ + + + + + diff --git a/front/src/components/ui/Pill.vue b/front/src/components/ui/Pill.vue new file mode 100644 index 000000000..6f5beace1 --- /dev/null +++ b/front/src/components/ui/Pill.vue @@ -0,0 +1,473 @@ + + + + + diff --git a/front/src/components/ui/Pills.vue b/front/src/components/ui/Pills.vue new file mode 100644 index 000000000..0b2afade9 --- /dev/null +++ b/front/src/components/ui/Pills.vue @@ -0,0 +1,169 @@ + + + + + diff --git a/front/src/components/ui/Popover.vue b/front/src/components/ui/Popover.vue new file mode 100644 index 000000000..f345f6042 --- /dev/null +++ b/front/src/components/ui/Popover.vue @@ -0,0 +1,163 @@ + + + + + diff --git a/front/src/components/ui/SanitizedHtml.vue b/front/src/components/ui/SanitizedHtml.vue new file mode 100644 index 000000000..2d522481a --- /dev/null +++ b/front/src/components/ui/SanitizedHtml.vue @@ -0,0 +1,12 @@ + + + diff --git a/front/src/components/ui/Section.vue b/front/src/components/ui/Section.vue new file mode 100644 index 000000000..9ad348070 --- /dev/null +++ b/front/src/components/ui/Section.vue @@ -0,0 +1,174 @@ + + + + + diff --git a/front/src/components/ui/Slider.vue b/front/src/components/ui/Slider.vue new file mode 100644 index 000000000..5a9d0ff8b --- /dev/null +++ b/front/src/components/ui/Slider.vue @@ -0,0 +1,211 @@ + + + + + diff --git a/front/src/components/ui/Spacer.vue b/front/src/components/ui/Spacer.vue new file mode 100644 index 000000000..0fe90161e --- /dev/null +++ b/front/src/components/ui/Spacer.vue @@ -0,0 +1,72 @@ + + + + + diff --git a/front/src/components/ui/Tab.vue b/front/src/components/ui/Tab.vue new file mode 100644 index 000000000..316ee94b9 --- /dev/null +++ b/front/src/components/ui/Tab.vue @@ -0,0 +1,25 @@ + + + diff --git a/front/src/components/ui/Table.vue b/front/src/components/ui/Table.vue new file mode 100644 index 000000000..1db1200dc --- /dev/null +++ b/front/src/components/ui/Table.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/front/src/components/ui/Tabs.vue b/front/src/components/ui/Tabs.vue new file mode 100644 index 000000000..266a4a62a --- /dev/null +++ b/front/src/components/ui/Tabs.vue @@ -0,0 +1,67 @@ + + + + + diff --git a/front/src/components/ui/Textarea.vue b/front/src/components/ui/Textarea.vue new file mode 100644 index 000000000..2eade843c --- /dev/null +++ b/front/src/components/ui/Textarea.vue @@ -0,0 +1,366 @@ + + +