Skip to content

Commit

Permalink
Remove vuetify in core to test if vuetify breaks build
Browse files Browse the repository at this point in the history
  • Loading branch information
dopenguin committed Mar 13, 2024
1 parent 6b97747 commit c38fc42
Show file tree
Hide file tree
Showing 8 changed files with 12 additions and 69 deletions.
4 changes: 4 additions & 0 deletions packages/core/CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,5 +1,9 @@
# CHANGELOG

## 2.0.0-alpha.11

- Experimental: Remove vuetify in core to test if vuetify breaks build.

## 2.0.0-alpha.10

- Chore: Add `compileTemplate` to `rollup-plugin-vue`.
Expand Down
1 change: 0 additions & 1 deletion packages/core/package.json
Original file line number Diff line number Diff line change
Expand Up @@ -50,7 +50,6 @@
"lodash.merge": "^4.6.2",
"lodash.kebabcase": "^4.1.1",
"vue": "^2.6.14",
"vuetify": "^2.5.9",
"vuex": "^3.6.2"
},
"devDependencies": {
Expand Down
2 changes: 0 additions & 2 deletions packages/core/rollup.config.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,6 @@ const external = createFilter(
'ol/**',
'olcs',
'vue',
'vuetify',
'vuetify/dist/vuetify.min.css',
'vuex',
],
null,
Expand Down
4 changes: 2 additions & 2 deletions packages/core/src/components/MapContainer.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-app class="polar-wrapper" :lang="lang">
<div class="polar-wrapper" :lang="lang">
<transition name="fade">
<div
v-if="!hasWindowSize && (noControlOnZoom || oneFingerPan)"
Expand Down Expand Up @@ -40,7 +40,7 @@
<component :is="moveHandle.component" v-bind="moveHandle.props || {}" />
</template>
</MoveHandle>
</v-app>
</div>
</template>

<script lang="ts">
Expand Down
13 changes: 6 additions & 7 deletions packages/core/src/components/MoveHandle.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,14 +7,13 @@
@mousedown.stop="onMouseDown"
@touchstart.stop="onTouchStart"
>
<v-icon id="polar-move-handle-grip-icon"> fa-grip-lines </v-icon>
<v-card-actions>
<i id="polar-move-handle-grip-icon" class="fa-grip-lines"></i>
<div>
<slot name="actionButton" />
<v-spacer></v-spacer>
<v-btn icon small :aria-label="closeLabel" @click="close(true)">
<v-icon><slot name="closeIcon">fa-xmark</slot></v-icon>
</v-btn>
</v-card-actions>
<button :aria-label="closeLabel" @click="close(true)">
<i class="fa-xmark"><slot name="closeIcon"></slot></i>
</button>
</div>
<slot />
</div>
</template>
Expand Down
4 changes: 0 additions & 4 deletions packages/core/src/utils/createMap/index.ts
Original file line number Diff line number Diff line change
@@ -1,14 +1,12 @@
import Vue from 'vue'
import { makeStore } from '../../vuePlugins/vuex'
import vuetify from '../../vuePlugins/vuetify'
import language from '../../language'
import { MapContainer } from '../../components'
import { CreateOptions, MapInstance } from '../../types'
import subscribeFunction from './subscribe'
import { updateSizeOnReady } from './updateSizeOnReady'
import { makeShadowRoot } from './makeShadowRoot'
import { pullPolarStyleToShadow } from './pullPolarStyleToShadow'
import { pullVuetifyStyleToShadow } from './pullVuetifyStyleToShadow'
import { setupFontawesome } from './setupFontawesome'

/**
Expand All @@ -27,7 +25,6 @@ export default async function createMap({
await language(mapConfiguration?.language)

const instance: MapInstance = new Vue({
vuetify: vuetify(mapConfiguration?.vuetify),
el: shadowRoot.appendChild(document.createElement('div')),
render: (createElement) =>
createElement(MapContainer, {
Expand All @@ -40,7 +37,6 @@ export default async function createMap({
instance.subscribe = subscribeFunction

pullPolarStyleToShadow(shadowRoot, mapConfiguration.stylePath)
pullVuetifyStyleToShadow(shadowRoot)
setupFontawesome(shadowRoot, mapConfiguration.renderFaToLightDom)
updateSizeOnReady(instance)

Expand Down
14 changes: 0 additions & 14 deletions packages/core/src/utils/createMap/pullVuetifyStyleToShadow.ts

This file was deleted.

39 changes: 0 additions & 39 deletions packages/core/src/vuePlugins/vuetify.ts

This file was deleted.

0 comments on commit c38fc42

Please sign in to comment.