Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

perf: optimize @nextcloud/vue imports #1262

Merged
merged 2 commits into from
Jun 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 2 additions & 23 deletions css/firstrunwizard-main.css

Large diffs are not rendered by default.

4 changes: 2 additions & 2 deletions js/firstrunwizard-about.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const __vite__fileDeps=[OC.filePath('firstrunwizard', '', 'js/main-DlZuZGQG.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
const __vite__fileDeps=[OC.filePath('firstrunwizard', '', 'js/main-Cg05rpmK.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
/*! third party licenses: js/vendor.LICENSE.txt */
import{_ as a}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",function(){const o=document.querySelector("#firstrunwizard_about button"),t=()=>{document.querySelector("#firstrunwizard_about button").addEventListener("click",async function(e){var n;e.stopPropagation(),e.preventDefault();const r=(n=document.querySelector('[aria-controls="header-menu-user-menu"]'))!=null?n:void 0,{open:u}=await a(async()=>{const{open:i}=await import("./main-DlZuZGQG.mjs");return{open:i}},__vite__mapDeps([0,1]),import.meta.url);u(r),OC.hideMenus(()=>!1)})};o?t():window._nc_event_bus.subscribe("core:user-menu:mounted",t)});
import{_ as a}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",function(){const o=document.querySelector("#firstrunwizard_about button"),t=()=>{document.querySelector("#firstrunwizard_about button").addEventListener("click",async function(e){var n;e.stopPropagation(),e.preventDefault();const r=(n=document.querySelector('[aria-controls="header-menu-user-menu"]'))!=null?n:void 0,{open:u}=await a(async()=>{const{open:i}=await import("./main-Cg05rpmK.mjs");return{open:i}},__vite__mapDeps([0,1]),import.meta.url);u(r),OC.hideMenus(()=>!1)})};o?t():window._nc_event_bus.subscribe("core:user-menu:mounted",t)});
4 changes: 2 additions & 2 deletions js/firstrunwizard-activate.mjs
Original file line number Diff line number Diff line change
@@ -1,3 +1,3 @@
const __vite__fileDeps=[OC.filePath('firstrunwizard', '', 'js/main-DlZuZGQG.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
const __vite__fileDeps=[OC.filePath('firstrunwizard', '', 'js/main-Cg05rpmK.mjs'),OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
/*! third party licenses: js/vendor.LICENSE.txt */
import{_ as t}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",async function(){(await t(()=>import("./main-DlZuZGQG.mjs"),__vite__mapDeps([0,1]),import.meta.url)).open()});
import{_ as t}from"./modulepreload-polyfill-DDskOgo1.mjs";document.addEventListener("DOMContentLoaded",async function(){(await t(()=>import("./main-Cg05rpmK.mjs"),__vite__mapDeps([0,1]),import.meta.url)).open()});
2 changes: 2 additions & 0 deletions js/main-Cg05rpmK.mjs

Large diffs are not rendered by default.

1 change: 1 addition & 0 deletions js/main-Cg05rpmK.mjs.map

Large diffs are not rendered by default.

2 changes: 0 additions & 2 deletions js/main-DlZuZGQG.mjs

This file was deleted.

1 change: 0 additions & 1 deletion js/main-DlZuZGQG.mjs.map

This file was deleted.

112 changes: 2 additions & 110 deletions js/vendor.LICENSE.txt
Original file line number Diff line number Diff line change
@@ -1,17 +1,13 @@
Included dependencies:

@floating-ui/core
version: 1.1.0
version: 0.3.1
license: MIT

@floating-ui/dom
version: 1.1.0
version: 0.1.10
license: MIT

@linusborg/vue-simple-portal
version: 0.1.5
license: Apache-2.0

@mdi/js
version: 7.4.47
license: Apache-2.0
Expand All @@ -24,18 +20,6 @@ license: GPL-3.0-or-later
version: 2.5.0
license: GPL-3.0

@nextcloud/browser-storage
version: 0.4.0
license: GPL-3.0-or-later

@nextcloud/calendar-js
version: 7.0.0
license: AGPL-3.0-or-later

@nextcloud/capabilities
version: 1.2.0
license: GPL-3.0-or-later

@nextcloud/event-bus
version: 3.2.0
license: GPL-3.0-or-later
Expand All @@ -48,10 +32,6 @@ license: GPL-3.0-or-later
version: 3.1.0
license: GPL-3.0-or-later

@nextcloud/logger
version: 3.0.1
license: GPL-3.0-or-later

@nextcloud/router
version: 3.0.1
license: GPL-3.0-or-later
Expand All @@ -60,14 +40,6 @@ license: GPL-3.0-or-later
version: 8.12.0
license: AGPL-3.0

@nextcloud/vue-select
version: 3.25.0
license: MIT

@vueuse/components
version: 10.9.0
license: MIT

@vueuse/core
version: 10.9.0
license: MIT
Expand All @@ -76,42 +48,14 @@ license: MIT
version: 10.9.0
license: MIT

ansi-regex
version: 6.0.1
license: MIT

axios
version: 1.6.8
license: MIT

char-regex
version: 2.0.0
license: MIT

charenc
version: 0.0.2
license: BSD-3-Clause

crypt
version: 0.0.2
license: BSD-3-Clause

date-format-parse
version: 0.2.7
license: MIT

debounce
version: 2.0.0
license: MIT

dompurify
version: 3.1.2
license: (MPL-2.0 OR Apache-2.0)

emoji-mart-vue-fast
version: 15.0.1
license: BSD-3-Clause

escape-html
version: 1.0.3
license: MIT
Expand All @@ -124,34 +68,10 @@ focus-trap
version: 7.5.2
license: MIT

ical.js
version: 2.0.1
license: MPL-2.0

is-buffer
version: 1.1.6
license: MIT

linkify-string
version: 4.1.0
license: MIT

linkifyjs
version: 4.1.0
license: MIT

lodash.get
version: 4.4.2
license: MIT

md5
version: 2.3.0
license: BSD-3-Clause

nanoid
version: 3.3.7
license: MIT

node-gettext
version: 3.0.0
license: (MIT)
Expand All @@ -160,30 +80,10 @@ semver
version: 7.6.1
license: ISC

string-length
version: 5.0.1
license: MIT

strip-ansi
version: 7.0.1
license: MIT

striptags
version: 3.2.0
license: MIT

tabbable
version: 6.2.0
license: MIT

tributejs
version: 5.1.3
license: MIT

uuid
version: 9.0.1
license: MIT

vite-plugin-node-polyfills
version: 0.21.0
license: MIT
Expand All @@ -192,14 +92,6 @@ vue
version: 2.7.16
license: MIT

vue-color
version: 2.8.1
license: MIT

vue-demi
version: 0.14.7
license: MIT

vue2-datepicker
version: 3.11.1
license: MIT
4 changes: 3 additions & 1 deletion src/components/SlideShow.vue
Original file line number Diff line number Diff line change
Expand Up @@ -70,7 +70,9 @@ import type { IPage } from '../pages'

import { translate as t } from '@nextcloud/l10n'
import { imagePath } from '@nextcloud/router'
import { NcButton, NcIconSvgWrapper, useIsSmallMobile } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'
import { useIsSmallMobile } from '@nextcloud/vue/dist/Composables/useIsMobile.js'
import { computed, ref, useCssModule, watch } from 'vue'

import { mdiArrowLeft, mdiArrowRight, mdiClose } from '@mdi/js'
Expand Down
2 changes: 1 addition & 1 deletion src/components/pages/KeyNotes.vue
Original file line number Diff line number Diff line change
Expand Up @@ -28,7 +28,7 @@
<script setup lang="ts">
import { mdiAccountGroup, mdiBriefcaseCheck, mdiLock, mdiSwapHorizontal } from '@mdi/js'
import { translate as t } from '@nextcloud/l10n'
import { NcIconSvgWrapper } from '@nextcloud/vue'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'

import Card from '../Card.vue'
import WizardPage from '../WizardPage.vue'
Expand Down
3 changes: 2 additions & 1 deletion src/components/pages/SharePage.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,8 @@
<script setup lang="ts">
import { mdiEmail } from '@mdi/js'
import { translate as t } from '@nextcloud/l10n'
import { NcButton, NcIconSvgWrapper } from '@nextcloud/vue'
import NcButton from '@nextcloud/vue/dist/Components/NcButton.js'
import NcIconSvgWrapper from '@nextcloud/vue/dist/Components/NcIconSvgWrapper.js'

import facebookSvg from '../../../img/facebook.svg?raw'
import mastodonSvg from '../../../img/mastodon.svg?raw'
Expand Down
3 changes: 2 additions & 1 deletion src/views/App.vue
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,8 @@

<script setup lang="ts">
import { generateUrl } from '@nextcloud/router'
import { NcModal, useIsSmallMobile } from '@nextcloud/vue'
import NcModal from '@nextcloud/vue/dist/Components/NcModal.js'
import { useIsSmallMobile } from '@nextcloud/vue/dist/Composables/useIsMobile.js'
import { computed, ref, watchEffect } from 'vue'
import axios from '@nextcloud/axios'

Expand Down