Skip to content

Commit

Permalink
map components subsets
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak-shah-np committed Oct 23, 2024
1 parent e11e10c commit 583a822
Show file tree
Hide file tree
Showing 12 changed files with 83 additions and 42 deletions.
72 changes: 53 additions & 19 deletions package-lock.json

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

3 changes: 2 additions & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,8 @@
"test:types": "vue-tsc --noEmit && cd playground && vue-tsc --noEmit"
},
"dependencies": {
"@nuxt/kit": "^3.12.4"
"@nuxt/kit": "^3.12.4",
"@nuxtjs/leaflet": "^1.2.3"
},
"devDependencies": {
"@nuxt/devtools": "^1.3.9",
Expand Down
4 changes: 2 additions & 2 deletions playground/nuxt.config.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
export default defineNuxtConfig({
srcDir: 'src/',
ssr: false,
modules: ['../src/module', '@nuxt/eslint', 'vuetify-nuxt-module'],
modules: ['../src/module', '@nuxt/eslint', 'vuetify-nuxt-module','@nuxtjs/leaflet'],
devtools: { enabled: true },
compatibilityDate: '2024-08-02',
imports: {
Expand All @@ -24,7 +24,7 @@ export default defineNuxtConfig({
dark: false,
colors: {
// background: '#FFFFFF',
// primary: '#008080',
primary: '#008080',
// secondary: '#E34234',
// white: '#FFFFFF',
floor: '#DCDCDC',
Expand Down
31 changes: 12 additions & 19 deletions playground/src/components/layout/ComponentDoc.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@
<div class="pa-5">
<v-card>
<v-toolbar color="primary">
<v-app-bar-nav-icon icon="mdi-cube"/>
<v-app-bar-nav-icon icon="mdi-cube" />
<v-toolbar-title>{{ propc.title }}</v-toolbar-title>
<v-spacer/>
<v-spacer />
<v-btn
prepend-icon="mdi-lightbulb-outline"
variant="outlined"
Expand Down Expand Up @@ -41,59 +41,52 @@

<v-card-item class="bg-surface">
<v-card-text>
<slot name="description"/>
<slot name="description" />
</v-card-text>
</v-card-item>
<v-divider />
<v-card-item>
<v-toolbar>
<v-app-bar-nav-icon
icon="mdi-lightbulb-outline"
/>
<v-app-bar-nav-icon icon="mdi-lightbulb-outline" />
<v-toolbar-title>Example</v-toolbar-title>
</v-toolbar>
<v-card-text ref="example">
<slot name="example"/>
<slot name="example" />
</v-card-text>
</v-card-item>
<v-card-item>
<v-toolbar>
<v-app-bar-nav-icon
icon="mdi-tune-variant"
/>
<v-app-bar-nav-icon icon="mdi-tune-variant" />
<v-toolbar-title>Props</v-toolbar-title>
</v-toolbar>
<v-card-text ref="props">
<slot name="prop"/>
<slot name="prop" />
</v-card-text>
</v-card-item>
<v-card-item>
<v-toolbar>
<v-app-bar-nav-icon
icon="mdi-dock-left"
/>
<v-app-bar-nav-icon icon="mdi-dock-left" />
<v-toolbar-title>Slots</v-toolbar-title>
</v-toolbar>
<v-card-text ref="slots">
<slot name="slot"/>
<slot name="slot" />
</v-card-text>
</v-card-item>
<v-card-item>
<v-toolbar>
<v-app-bar-nav-icon
icon="mdi-flash-outline"
/>
<v-app-bar-nav-icon icon="mdi-flash-outline" />
<v-toolbar-title>Event</v-toolbar-title>
</v-toolbar>
<v-card-text ref="events">
<slot name="event"/>
<slot name="event" />
</v-card-text>
</v-card-item>
</v-card>
</div>
</template>

<script setup lang="ts">
import { ref } from '#imports'
import { useGoTo } from 'vuetify'
const examples = ref(undefined)
const props = ref(undefined)
Expand Down
14 changes: 13 additions & 1 deletion playground/src/components/layout/SideBar.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<v-navigation-drawer v-show="false" width="400" color="primary">
<v-navigation-drawer width="400" color="primary">
<v-list v-model:opened="groups">
<v-list-group value="started">
<template #activator="{ props }">
Expand Down Expand Up @@ -62,6 +62,18 @@ const components = [
title: 'SFooter',
link: '/components/s-footer',
},
{
title: 'SLegend',
link: '/components/s-legend',
},
{
title: 'SBaseMap',
link: '/components/s-base-map',
},
{
title: 'SMapControl',
link: '/components/s-map-control',
},
]
</script>

Expand Down
Binary file added src/runtime/public/basemaps/cartodb.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/runtime/public/basemaps/dark.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/runtime/public/basemaps/google.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/runtime/public/basemaps/openstreetmap.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/runtime/public/basemaps/terrain.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
Binary file added src/runtime/public/basemaps/topo.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
1 change: 1 addition & 0 deletions tsconfig.json
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@
"compilerOptions": {
"jsx": "preserve",
"baseUrl": ".",
"moduleResolution": "Node",
"paths": {
"~/*": ["./*"],
"@/*": ["./*"],
Expand Down

0 comments on commit 583a822

Please sign in to comment.