Commit Graph

2194 Commits

Author SHA1 Message Date
wvffle 73b1dc8f30 MIgrate some components 2022-09-06 09:26:36 +00:00
wvffle 2900c3818c Fix #1829 2022-09-06 09:26:36 +00:00
wvffle 09c1aba30d Rename <modal> to <semantic-modal> 2022-09-06 09:26:36 +00:00
wvffle 937a44251e Fix custom css 2022-09-06 09:26:36 +00:00
wvffle c56627bfcf Fix fomantic 2022-09-06 09:26:36 +00:00
wvffle 405eed0c0f Add semantic ui types 2022-09-06 09:26:36 +00:00
wvffle af0129b598 Simplify SetInstanceModal logic 2022-09-06 09:26:36 +00:00
wvffle 6cdf2ddd1e Fix webworker manifest in dev mode 2022-09-06 09:26:36 +00:00
wvffle e03e2ec901 Migrate home component
Adds some code that is a starter to #1316 and #1534 but depends on #1827
2022-09-06 09:26:36 +00:00
wvffle 7408fe17ec Fix radio button 2022-09-06 09:26:36 +00:00
wvffle 58ef3757a4 Fix rendering instance settings 2022-09-06 09:26:36 +00:00
wvffle 58d40a1eea Fix #1635 2022-09-06 09:26:36 +00:00
wvffle 285a0af7c1 Fix playlist card urls 2022-09-06 09:26:36 +00:00
wvffle a37835a9c2 Allow displaying multiple same tracks in track list
Well, there was some error with `@mouseleave` not firing in some cases for some weird reason, so I decided to handle the `hover` prop in the container
2022-09-06 09:26:36 +00:00
wvffle 3e5a772027 Fix duration rendering 2022-09-06 09:26:36 +00:00
wvffle 1c770ff5c2 Fix force adding already existing track to the playlist (#1802) 2022-09-06 09:26:36 +00:00
wvffle a545333ff7 Fix crashing on track number 2022-09-06 09:26:36 +00:00
wvffle c5f7022869 Migrate a bunch of components 2022-09-06 09:26:36 +00:00
wvffle de4f445e9b Fix up some tsc errors 2022-09-06 09:26:36 +00:00
wvffle 779d71abbc Migrate a bunch of components 2022-09-06 09:26:36 +00:00
wvffle 0251789f82 Fix a bunch of typescript errors 2022-09-06 09:26:36 +00:00
wvffle 11e7be988a Migrate EmbedWizard 2022-09-06 09:26:36 +00:00
wvffle b597dc4a71 Migrate Settings and SettingsGroup 2022-09-06 09:26:36 +00:00
wvffle 58eec54952 Cleanup tsconfig 2022-09-06 09:26:36 +00:00
wvffle 8d5464c28e Workaround vuejs/core/pull/4512 2022-09-06 09:26:36 +00:00
wvffle 77594351ae Remove PlayOptions and Report mixins 2022-09-06 09:26:36 +00:00
wvffle 74e88c26e8 Remove todo 2022-09-06 09:26:36 +00:00
wvffle 7d8d1a414d Fix #1777 2022-09-06 09:26:36 +00:00
wvffle 57692dcf6a Fix queue and player bugs 2022-09-06 09:26:36 +00:00
wvffle a43059899c Move track playing logic to usePlayer and useSound 2022-09-06 09:26:36 +00:00
wvffle 54a33cd14e Fix audio playback 2022-09-06 09:26:36 +00:00
wvffle cec34d49fa Rewrite player component to script setup 2022-09-06 09:26:36 +00:00
wvffle 8c11b6d0ea Rewrite queue 2022-09-06 09:26:36 +00:00
wvffle 02f8f37824 Migrate a bunch o components to script setup 2022-09-06 09:26:36 +00:00
wvffle 4240396220 Fix html sanitization 2022-09-06 09:26:36 +00:00
wvffle fd403ab7ca Migrate About.vue to script setup 2022-09-06 09:26:36 +00:00
wvffle d090adc1f1 Sanitize html 2022-09-06 09:26:36 +00:00
wvffle 9ed6213a46 Cleanup qs.stringify comments 2022-09-06 09:26:36 +00:00
wvffle 7d55d33067 Create a common view component for management lists 2022-09-06 09:26:36 +00:00
wvffle 03e29b3fbc Fix playlist modal error handling 2022-09-06 09:26:36 +00:00
wvffle 23a88d025a Tidy up routes 2022-09-06 09:26:36 +00:00
wvffle e608089557 Fix router warnings 2022-09-06 09:26:36 +00:00
wvffle dbe762d71c Fix scrollBehavior 2022-09-06 09:26:36 +00:00
wvffle d57932444b Cleanup ordering composable 2022-09-06 09:26:36 +00:00
wvffle 33dfeea168 Fix router navigation 2022-09-06 09:26:36 +00:00
wvffle a28e00708b Remove @vue/compat 2022-09-06 09:26:36 +00:00
wvffle 4b5c4c8bea Disable many compats 2022-09-06 09:26:36 +00:00
wvffle 442f9ce0d7 Fix v-if keys 2022-09-06 09:26:36 +00:00
wvffle 5dfce40cb6 Update router configuration to fix some errors 2022-09-06 09:26:36 +00:00
wvffle 7121d514fb Fix actions computed 2022-09-06 09:26:36 +00:00
wvffle 9e1e2bfa18 Rewrite search view 2022-09-06 09:26:36 +00:00
wvffle f5bd906110 Upgrade frontend dependencies 2022-09-06 09:26:36 +00:00
wvffle fe835c5d44 Fix library moderation 2022-09-06 09:26:36 +00:00
wvffle 78cdb592c5 Cleanup defaultPaginateBy and fix onMounted missing from imports 2022-09-06 09:26:36 +00:00
wvffle a8fd0e3f28 Migrate rest of ordering/pagination mixins to composables 2022-09-06 09:26:36 +00:00
wvffle 21e5d8ddf0 Fix actions not being arrays in components using smart search 2022-09-06 09:26:36 +00:00
wvffle 15e62d62f6 Add gitpod related changes 2022-09-06 09:26:36 +00:00
wvffle 70495c6a27 Reset the defaultServerUrl to the value of env var or origin when it's null in settings.json 2022-09-06 09:26:36 +00:00
wvffle c4dd04e0b8 Fix flow of setting instance url 2022-09-06 09:26:36 +00:00
wvffle 344f1af058 Add useSmartSearch composable 2022-09-06 09:26:36 +00:00
Kasper Seweryn 8cf3500842 Remove ordering and pagination mixins from a bunch of files 2022-09-06 09:26:36 +00:00
Kasper Seweryn 3266cd80bd Migrate Albums and move pagination component 2022-09-06 09:26:36 +00:00
Kasper Seweryn 3ab0435f27 Migrate pagination to v-model and start moving away from mixins 2022-09-06 09:26:36 +00:00
Kasper Seweryn a25f1bbb1f Remove unused getter 2022-09-06 09:26:36 +00:00
Kasper Seweryn 40c7e08744 Replace deprecated document.domain with location.hostname 2022-09-06 09:26:36 +00:00
Kasper Seweryn fbfe4a646a Fix instanceUrl not being optional 2022-09-06 09:26:36 +00:00
Kasper Seweryn b5970446b4 Set max websocket reconnect retries in development 2022-09-06 09:26:36 +00:00
Kasper Seweryn a872f752c5 Fix caching API routes in PWA service worker 2022-09-06 09:26:36 +00:00
Kasper Seweryn 461aa51e03 Fix websockets and vite hmr on local dev 2022-09-06 09:26:36 +00:00
Kasper Seweryn 0b53ec5b1c Add store types and fix other type errors 2022-09-06 09:26:36 +00:00
Kasper Seweryn 9e0596d136 Move *.js to *.ts 2022-09-06 09:26:36 +00:00
Kasper Seweryn 8ff0bb937b Remove $set and $delete 2022-09-06 09:26:36 +00:00
Kasper Seweryn 7a823282f9 Fix null modelValue 2022-09-06 09:26:36 +00:00
Kasper Seweryn 561c1d868c Migrate rest of inputs to new v-model 2022-09-06 09:26:36 +00:00
Kasper Seweryn bf009440ff Migrate attachment input to new v-model
It also automatically cleans up attachments that users uploaded and decided not to use
2022-09-06 09:26:36 +00:00
Kasper Seweryn 2f80e0935f Migrate a couple of components to new v-model and cleanup linting stuff 2022-09-06 09:26:36 +00:00
Kasper Seweryn 16d437be62 Migrate Translations mixin to useSharedLabels composable 2022-09-06 09:26:36 +00:00
Kasper Seweryn d6a46f5aab Remove required=false and disabled=false attributes 2022-09-06 09:26:36 +00:00
Kasper Seweryn 39b4e9a5b9 Fix withDefaults 2022-09-06 09:26:36 +00:00
Kasper Seweryn 2f8f7cbafa Refactor withDefaults 2022-09-06 09:26:36 +00:00
Kasper Seweryn e29819f314 Add TODO for <script setup> 2022-09-06 09:26:36 +00:00
Kasper Seweryn e6534a1554 Add TODOs for breaking changes 2022-09-06 09:26:36 +00:00
Kasper Seweryn 4865bf77be Fix v-if with v-for 2022-09-06 09:26:36 +00:00
Kasper Seweryn 57aef1001e Remove deprecated slot syntax 2022-09-06 09:26:36 +00:00
Kasper Seweryn 0c9dcd8545 Fix @click.native 2022-09-06 09:26:36 +00:00
Kasper Seweryn 42907b7028 Remove last filter usage 2022-09-06 09:26:36 +00:00
Kasper Seweryn 1122324799 Fix linting 2022-09-06 09:26:36 +00:00
Kasper Seweryn d01901d8bd Fix some modals 2022-09-06 09:26:36 +00:00
Kasper Seweryn 3ddae65c36 Fix view refreshing when hiding queue 2022-09-06 09:26:36 +00:00
Kasper Seweryn 1234e61e14 Remove exact prop from router links 2022-09-06 09:26:36 +00:00
Kasper Seweryn f1724fb5ea Fix double #app id 2022-09-06 09:26:36 +00:00
Kasper Seweryn 3915716dd6 Fix modals 2022-09-06 09:26:36 +00:00
Kasper Seweryn 8cc73ed73e Fix queue scroll 2022-09-06 09:26:36 +00:00
Kasper Seweryn 28e273dd74 Fix service worker init module 2022-09-06 09:26:36 +00:00
Kasper Seweryn 76279c273b Fix filters test 2022-09-06 09:26:36 +00:00
Kasper Seweryn cbaa58d215 Add useFocusTrap 2022-09-06 09:26:36 +00:00
Kasper Seweryn 7e53e9a511 Update vuedraggable 2022-09-06 09:26:36 +00:00
Kasper Seweryn b7d66232f6 Remove vue 2 filters
Fixes #1759
2022-09-06 09:26:36 +00:00
Kasper Seweryn 12b09b085a Refactor ~/logging.ts to a useLogger composable 2022-09-06 09:26:36 +00:00
Kasper Seweryn 7fb5284d0e Refactor object types to records 2022-09-06 09:26:36 +00:00
Kasper Seweryn 51435d0742 Fix currentRoute 2022-09-06 09:26:36 +00:00
Kasper Seweryn 260fdb2501 Fix locales 2022-09-06 09:26:36 +00:00
Kasper Seweryn da1cefc3b1 Fix scroll behavior 2022-09-06 09:26:36 +00:00
Kasper Seweryn 0e6097c7b8 Fix emit warning 2022-09-06 09:26:36 +00:00
Kasper Seweryn 324e028a33 Fix deprecated render function and deprecated $listeners 2022-09-06 09:26:36 +00:00
Kasper Seweryn 8402621faf Fix some vue compat warnings 2022-09-06 09:26:36 +00:00
Kasper Seweryn b3022c26b6 Add onKeyboardShortcut composable
Fixes #1726
2022-09-06 09:26:36 +00:00
Kasper Seweryn db7c0444b4 Migrate to vue3-lazyload 2022-09-06 09:26:36 +00:00
Kasper Seweryn 74ca3b1725 Migrate to vuex@4 and vue-router@4 2022-09-06 09:26:36 +00:00
Kasper Seweryn 7c5d259c2b Add vue 3 and compat 2022-09-06 09:26:36 +00:00
wvffle 0e758d0624 Fix vite.config.ts 2022-09-06 09:26:36 +00:00
Kasper Seweryn f3ccfcbe48 Add PWA support 2022-09-06 09:26:36 +00:00
Kasper Seweryn b959371784 Rename AppModule to InitModule 2022-09-06 09:26:36 +00:00
Kasper Seweryn 6a9b21a6a7 Rename AppModule to InitModule 2022-09-06 09:26:36 +00:00
Kasper Seweryn 071eb2fa35 Move ~/modules to ~/init 2022-09-06 09:26:36 +00:00
Kasper Seweryn 0b51fb037f Remove JWT leftovers 2022-09-06 09:26:36 +00:00
Kasper Seweryn 934f802be2 Cleanup updateQueryString composable 2022-09-06 09:26:36 +00:00
Kasper Seweryn f61fafec2a Remove '@/' 2022-09-06 09:26:36 +00:00
Kasper Seweryn e0e2bf4cae Load theme as fast as possible 2022-09-06 09:26:36 +00:00
Kasper Seweryn 222b9b12bc Remove files commited by accident 2022-09-06 09:26:36 +00:00
Kasper Seweryn a7cc3de3f3 Move locales.ts to locales.json and remove unused i18n script 2022-09-06 09:26:36 +00:00
Kasper Seweryn 0732bc36a8 Remove initSettings 2022-09-06 09:26:36 +00:00
Kasper Seweryn 6f670efd5e Pin dependencies 2022-09-06 09:26:36 +00:00
Kasper Seweryn 615a801b89 Fix app rendering 2022-09-06 09:26:36 +00:00
Kasper Seweryn b33af58147 Wait for all modules to load 2022-09-06 09:26:36 +00:00
Kasper Seweryn ddb035e418 Tag @wvffle in his TODO comments 2022-09-06 09:26:36 +00:00
Kasper Seweryn 4d14f0448f Fix linter problems 2022-09-06 09:26:36 +00:00
Kasper Seweryn 2b40707f4f Cleanup a lot of stuff
I've replaced `lodash` with `lodash-es`, so it can be tree-shaken

`~/modules` is a directory with application modules that run before app is mounted. Useful for configuration, web socket connection, and other stuff

`~/composables` is a directory with our custom composables. Much like `~/utils` but each util is in its own file
2022-09-06 09:26:36 +00:00
Kasper Seweryn a129f7f882 Temporarily disable failing typescript rules 2022-09-06 09:26:36 +00:00
Kasper Seweryn a578ea0341 Add script setup and typescript config 2022-09-06 09:26:36 +00:00
JuniorJPDJ 21eaaf1f4d fix(front/Docker): fixup of issue introduced in !1897 2022-07-26 21:25:14 +00:00
Porrumentzio 9ce165e8b6 Translated using Weblate (Basque)
Currently translated at 100.0% (1296 of 1296 strings)

Translation: Funkwhale/Funkwhale Web
Translate-URL: https://translate.funkwhale.audio/projects/funkwhale/front/eu/
2022-07-26 20:01:18 +00:00
RenovateBot bbe82f3c8d Lock file maintenance (develop) 2022-07-26 05:06:00 +00:00
JuniorJPDJ 6df36f519a refactor(front/Docker): cleanup nginx-based container 2022-07-25 21:29:55 +00:00
RenovateBot 31ee580449 Update dependency nginx to v1.23.1 (develop) 2022-07-22 09:43:15 +00:00
JuniorJPDJ 9cbe80eb19 fix(front/Dockerfile): allow building on unusual architectures again 2022-07-16 13:50:02 +00:00
petitminion 0f4226e06f Resolve "Add "play all" button in tag search result page" 2022-07-15 09:07:15 +00:00
JuniorJPDJ 96c2eacb0f Cleanup Gitlab CI and Dockerfiles 2022-07-11 20:20:16 +00:00
JuniorJPDJ 0545488b7f Translated using Weblate (Polish)
Currently translated at 100.0% (1296 of 1296 strings)

Translation: Funkwhale/Funkwhale Web
Translate-URL: https://translate.funkwhale.audio/projects/funkwhale/front/pl/
2022-07-10 13:34:20 +00:00
JuniorJPDJ 64a49ed121 fix(front/nginx): fix 404 response on listen URLs 2022-07-09 15:11:20 +00:00
JuniorJPDJ 7801214242 fix(front/Dockerfile): Quick fix of startup issue when AWS_S3_ENDPOINT_URL variable is missing 2022-07-09 14:17:58 +00:00
JuniorJPDJ fb8eb8e2ed Allow frontend container to run as non-root user
Also clean it up a bit
2022-07-09 13:42:56 +00:00
Jasper Bogers 194163233a Translated using Weblate (Dutch)
Currently translated at 100.0% (1296 of 1296 strings)

Translation: Funkwhale/Funkwhale Web
Translate-URL: https://translate.funkwhale.audio/projects/funkwhale/front/nl/
2022-07-08 20:34:19 +00:00
Georg Krause 5c5b35a0ad
Merge branch 'stable' into develop 2022-07-04 17:18:55 +02:00
RenovateBot 3d71827789 Lock file maintenance (stable) 2022-07-04 14:28:29 +00:00
Marcos Peña 07e51bcfc4 "Repeatedly listening to a track submits a scrobble only the first time" 2022-07-01 16:39:44 +00:00
RenovateBot f0857ae5fd Update dependency nginx to v1.23.0 (develop) 2022-07-01 08:08:15 +00:00
Kasper Seweryn 6b596e0cff Fix a typo (XOR -> OR) 2022-06-30 14:26:22 +00:00
Georg Krause e7325fbb54
Fix frontend dev docker setup 2022-06-30 14:10:19 +02:00
Thomas df271f2aa7 Translated using Weblate (French)
Currently translated at 100.0% (1296 of 1296 strings)

Translation: Funkwhale/Funkwhale Web
Translate-URL: https://translate.funkwhale.audio/projects/funkwhale/front/fr/
2022-06-29 21:34:17 +00:00