-
Notifications
You must be signed in to change notification settings - Fork 56
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
f19e58d
commit 8f88424
Showing
15 changed files
with
340 additions
and
200 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,3 +1,3 @@ | ||
export * from './use-locale' | ||
export * from './useMapGetter' | ||
export * from './VmUpdater' | ||
export * from './useVmProps' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,9 @@ | ||
import type { SFCWithInstall } from '@supermapgis/common/utils' | ||
import { withInstall } from '@supermapgis/common/utils' | ||
import type { SFCWithInstall } from '@supermapgis/common/utils/index.common' | ||
import { withInstall } from '@supermapgis/common/utils/index.common' | ||
import attributes from './attributes.vue' | ||
|
||
export const Attributes: SFCWithInstall<typeof attributes> = withInstall(attributes) | ||
export default Attributes | ||
export const SmAttributes: SFCWithInstall<typeof attributes> = withInstall(attributes) | ||
export default SmAttributes | ||
|
||
export * from './attributes' | ||
export type { AttributesInstance } from './instance' |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,5 @@ | ||
import { SmConfigProvider } from '@supermapgis/vue-iclient-common/config-provider' | ||
import { SmAttributes } from './attributes' | ||
import type { Plugin } from 'vue' | ||
|
||
export default [SmConfigProvider, SmAttributes] as Plugin[] |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
import { makeInstaller } from './make-installer' | ||
import Components from './component' | ||
|
||
export default makeInstaller([...Components]) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,6 @@ | ||
export * from '@supermapgis/vue-iclient-common/index.common' | ||
export * from './web-map' | ||
import installer from './defaults' | ||
export * from '@supermapgis/vue-iclient-mapboxgl/component' | ||
export * from './make-installer' | ||
|
||
export const install = installer.install | ||
export default installer |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
import { provideGlobalConfig } from '@supermapgis/vue-iclient-common/config-provider' | ||
import type { ConfigProviderContext } from '@supermapgis/vue-iclient-common/config-provider' | ||
import type { App, Plugin } from '@vue/runtime-core' | ||
export const INSTALLED_KEY = Symbol('INSTALLED_KEY') | ||
|
||
export const makeInstaller = (components: Plugin[] = []) => { | ||
const install = (app: App, options?: ConfigProviderContext) => { | ||
if (app[INSTALLED_KEY]) return | ||
|
||
app[INSTALLED_KEY] = true | ||
components.forEach(c => app.use(c)) | ||
|
||
if (options) provideGlobalConfig(options, app, true) | ||
} | ||
|
||
return { | ||
install | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.