Skip to content

Commit

Permalink
Merge pull request #1266 from nextcloud/backport/1262/stable29
Browse files Browse the repository at this point in the history
[stable29] perf: optimize `@nextcloud/vue` imports
  • Loading branch information
AndyScherzinger authored Jul 10, 2024
2 parents 49608f7 + c395d0d commit 21a7911
Show file tree
Hide file tree
Showing 12 changed files with 19 additions and 144 deletions.
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=[window.OC.filePath('firstrunwizard', '', 'js/main-BugzTyYY.mjs'),window.OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
const __vite__fileDeps=[window.OC.filePath('firstrunwizard', '', 'js/main-BR4qyIrQ.mjs'),window.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 i}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 i(()=>import("./main-BugzTyYY.mjs"),__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 i}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 i(()=>import("./main-BR4qyIrQ.mjs"),__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=[window.OC.filePath('firstrunwizard', '', 'js/main-BugzTyYY.mjs'),window.OC.filePath('firstrunwizard', '', 'css/firstrunwizard-main.css')],__vite__mapDeps=i=>i.map(i=>__vite__fileDeps[i]);
const __vite__fileDeps=[window.OC.filePath('firstrunwizard', '', 'js/main-BR4qyIrQ.mjs'),window.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-BugzTyYY.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-BR4qyIrQ.mjs"),__vite__mapDeps([0,1]),import.meta.url)).open()});
2 changes: 2 additions & 0 deletions js/main-BR4qyIrQ.mjs

Large diffs are not rendered by default.

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

Large diffs are not rendered by default.

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

This file was deleted.

1 change: 0 additions & 1 deletion js/main-BugzTyYY.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.4.0
license: GPL-3.0

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

@nextcloud/calendar-js
version: 6.1.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: 2.2.0
license: GPL-3.0-or-later

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

@nextcloud/router
version: 2.2.1
license: GPL-3.0-or-later
Expand All @@ -60,14 +40,6 @@ license: GPL-3.0-or-later
version: 8.11.3
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,46 +48,18 @@ license: MIT
version: 10.9.0
license: MIT

ansi-regex
version: 6.0.1
license: MIT

axios
version: 1.6.1
license: MIT

char-regex
version: 2.0.0
license: MIT

charenc
version: 0.0.2
license: BSD-3-Clause

core-js
version: 3.37.0
license: MIT

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 @@ -128,34 +72,10 @@ focus-trap
version: 7.5.2
license: MIT

ical.js
version: 1.5.0
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 @@ -164,30 +84,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.22.0
license: MIT
Expand All @@ -196,14 +96,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 @@ -87,7 +87,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 @@ -47,7 +47,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 @@ -46,7 +46,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 @@ -42,7 +42,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

0 comments on commit 21a7911

Please sign in to comment.