Skip to content

Commit

Permalink
chore: Adjust viteconfig for updated vite version
Browse files Browse the repository at this point in the history
Signed-off-by: Ferdinand Thiessen <opensource@fthiessen.de>
  • Loading branch information
susnux committed Feb 16, 2025
1 parent 54ad228 commit 795da89
Show file tree
Hide file tree
Showing 4 changed files with 9 additions and 9 deletions.
4 changes: 2 additions & 2 deletions cypress.config.mjs
Original file line number Diff line number Diff line change
Expand Up @@ -77,9 +77,9 @@ export default defineConfig({
devSourcemap: true,
preprocessorOptions: {
scss: {
additionalData: `@use 'sass:math'; $scope_version:${SCOPE_VERSION}; @import 'variables'; @import 'material-icons';`,
additionalData: `@use 'sass:math'; @use 'variables.scss' as *; @use 'material-icons.css' as *; $scope_version:${SCOPE_VERSION};`,
sourceMapContents: false,
includePaths: [
loadPaths: [
resolve(__dirname, 'src/assets'),
],
},
Expand Down
6 changes: 3 additions & 3 deletions src/components/NcAppNavigation/NcAppNavigation.vue
Original file line number Diff line number Diff line change
Expand Up @@ -56,8 +56,8 @@
</template>

<script>
import IconCheck from 'vue-material-design-icons/Check'
import IconCog from 'vue-material-design-icons/Cog'
import IconCheck from 'vue-material-design-icons/Check.vue'
import IconCog from 'vue-material-design-icons/Cog.vue'

export default {
components: {
Expand Down Expand Up @@ -346,7 +346,7 @@ export default {

isFocusWithinNavigation() {
const activeElement = document.activeElement
return this.$refs.appNavigationContainer.contains(activeElement)
return this.$refs.appNavigationContainer?.contains(activeElement)
},
},
}
Expand Down
4 changes: 2 additions & 2 deletions src/components/NcAppSidebar/NcAppSidebar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -398,7 +398,7 @@ Note: the built-in toggle button is only available then NcAppSidebar is used in
</template>

<script>
import Cog from 'vue-material-design-icons/Cog'
import Cog from 'vue-material-design-icons/Cog.vue'

export default {
components: {
Expand Down Expand Up @@ -479,7 +479,7 @@ If the sidebar should be shown conditionally without any explicit toggle button,
</template>

<script>
import Cog from 'vue-material-design-icons/Cog'
import Cog from 'vue-material-design-icons/Cog.vue'

export default {
components: {
Expand Down
4 changes: 2 additions & 2 deletions vite.config.mts
Original file line number Diff line number Diff line change
Expand Up @@ -87,9 +87,9 @@ const overrides = defineConfig({
devSourcemap: true,
preprocessorOptions: {
scss: {
additionalData: `@use 'sass:math'; $scope_version:${SCOPE_VERSION}; @import 'variables'; @import 'material-icons';`,
additionalData: `@use 'sass:math'; @use 'variables.scss' as *; @use 'material-icons.css' as *; $scope_version:${SCOPE_VERSION};`,
sourceMapContents: false,
includePaths: [
loadPaths: [
resolve(__dirname, 'src/assets'),
],
},
Expand Down

0 comments on commit 795da89

Please sign in to comment.