Skip to content

Commit

Permalink
linting and prettier fixes
Browse files Browse the repository at this point in the history
  • Loading branch information
deepak-shah-np committed Oct 18, 2024
1 parent e74cc0a commit 2d42197
Show file tree
Hide file tree
Showing 10 changed files with 45 additions and 45 deletions.
16 changes: 12 additions & 4 deletions eslint.config.mjs
Original file line number Diff line number Diff line change
@@ -1,7 +1,15 @@
import withNuxt from './playground/.nuxt/eslint.config.mjs'
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended'
import withNuxt from './playground/.nuxt/eslint.config.mjs';
import eslintPluginPrettierRecommended from 'eslint-plugin-prettier/recommended';

export default withNuxt({
...eslintPluginPrettierRecommended,
ignores: ['node_modules', '.nuxt', 'dist', 'playground/*', 'test'],
})
ignores: ['node_modules', '.nuxt', 'dist', 'test', 'playground/*'],
rules: {
'vue/multi-word-component-names': 'off',
},
languageOptions: {
globals: {
defineNuxtConfig: 'readonly',
},
},
});
22 changes: 11 additions & 11 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>
<v-app-bar-nav-icon icon="mdi-cube"/>
<v-toolbar-title>{{ propc.title }}</v-toolbar-title>
<v-spacer></v-spacer>
<v-spacer/>
<v-btn
prepend-icon="mdi-lightbulb-outline"
variant="outlined"
Expand Down Expand Up @@ -41,52 +41,52 @@

<v-card-item class="bg-surface">
<v-card-text>
<slot name="description"></slot>
<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>
/>
<v-toolbar-title>Example</v-toolbar-title>
</v-toolbar>
<v-card-text ref="example">
<slot name="example"></slot>
<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>
/>
<v-toolbar-title>Props</v-toolbar-title>
</v-toolbar>
<v-card-text ref="props">
<slot name="prop"></slot>
<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>
/>
<v-toolbar-title>Slots</v-toolbar-title>
</v-toolbar>
<v-card-text ref="slots">
<slot name="slot"></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>
/>
<v-toolbar-title>Event</v-toolbar-title>
</v-toolbar>
<v-card-text ref="events">
<slot name="event"></slot>
<slot name="event"/>
</v-card-text>
</v-card-item>
</v-card>
Expand Down
10 changes: 4 additions & 6 deletions playground/src/components/layout/SideBar.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
v-bind="props"
prepend-icon="mdi-clipboard-text"
title="Getting Started"
></v-list-item>
/>
</template>
<v-list-item
v-for="(item, i) in gettingStarted"
Expand All @@ -16,15 +16,15 @@
:title="item.title"
:value="item.title"
:to="item.link"
></v-list-item>
/>
</v-list-group>
<v-list-group v-model:opened="groups" value="components">
<template #activator="{ props }">
<v-list-item
v-bind="props"
prepend-icon="mdi-cogs"
title="Components"
></v-list-item>
/>
</template>
<v-list-item
v-for="(item, i) in components"
Expand All @@ -33,15 +33,13 @@
:title="item.title"
:value="item.title"
:to="item.link"
></v-list-item>
/>
</v-list-group>
</v-list>
</v-navigation-drawer>
</template>

<script setup lang="ts">
import { ref } from 'vue'
const groups = ['started', 'components']
const gettingStarted = [
Expand Down
5 changes: 2 additions & 3 deletions playground/src/layouts/default.vue
Original file line number Diff line number Diff line change
Expand Up @@ -4,14 +4,13 @@
<v-app-bar-nav-icon icon="mdi-view-dashboard-variant" to="/" />
<v-app-bar-title to="/">Spatial UI Elements</v-app-bar-title>

<v-spacer></v-spacer>
<v-spacer/>
<v-btn
icon="mdi-github"
variant="elevated"
href="https://github.com/SERVIR/spatial-ui-elements"
target="_blank"
>
</v-btn>
/>
</v-app-bar>
<side-bar />

Expand Down
2 changes: 1 addition & 1 deletion playground/src/pages/Components/s-footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
],
</pre>
</td>
<td></td>
<td/>
</tr>
</tbody>
</v-table>
Expand Down
7 changes: 3 additions & 4 deletions playground/src/pages/Components/s-header-logo.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,11 +45,11 @@
</tr>
<tr>
<td>right</td>
<td>ImageProps[] </td>
<td>ImageProps[]</td>
<td>
<pre></pre>
<pre/>
</td>
<td></td>
<td/>
</tr>
<tr>
<td>configuration</td>
Expand Down Expand Up @@ -80,7 +80,6 @@

<script setup lang="ts">
import ComponentDoc from '~/components/layout/ComponentDoc.vue'
</script>

<style lang="scss" scoped>
Expand Down
10 changes: 5 additions & 5 deletions playground/src/pages/Components/s-header.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@
:configuration="configuration"
:menu="menu"
/>
<div class="pt-4"></div>
<div class="pt-4"/>
</template>
<template #prop>
<v-table>
Expand All @@ -26,7 +26,7 @@
<tr>
<td>title</td>
<td>string</td>
<td></td>
<td/>
<td>Requred</td>
</tr>
<tr>
Expand All @@ -53,14 +53,14 @@
<tr>
<td>menu</td>
<td>IRoute</td>
<td></td>
<td></td>
<td/>
<td/>
</tr>
<tr>
<td>imageIcon</td>
<td>string</td>
<td>SERVIR Logo as default</td>
<td></td>
<td/>
</tr>
</tbody>
</v-table>
Expand Down
6 changes: 3 additions & 3 deletions playground/src/pages/index.vue
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@
geospatial applications with a focus on flexibility,
performance, and ease of integration for SERVIR Science
applications.
<br />
<br />
<br >
<br >
<div class="d-flex align-center justify-center">
<img
class=""
src="/logos/servir.svg"
alt="description"
width="200"
/>
>
</div>
</v-card-text>
</v-card>
Expand Down
2 changes: 1 addition & 1 deletion src/runtime/components/SFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@
</v-row>
</v-col>
<slot />
<v-col cols="12" sm="6"> </v-col>
<v-col cols="12" sm="6"/>
</v-row>
</v-container>
</v-footer>
Expand Down
10 changes: 3 additions & 7 deletions src/runtime/components/SHeader.vue
Original file line number Diff line number Diff line change
@@ -1,10 +1,6 @@
<template>
<div>
<v-app-bar
v-bind="props.configuration"
class="s-header"

>
<v-app-bar v-bind="props.configuration" class="s-header">
<v-container class="d-flex align-center" style="height: 100%">
<v-row class="d-flex align-center">
<v-col class="d-flex align-center" cols="8" md="4">
Expand Down Expand Up @@ -81,7 +77,7 @@
<v-card-title class="text-wrap">
<b>{{ props.title }}</b></v-card-title
>
<v-divider></v-divider>
<v-divider/>

<v-list density="compact" nav>
<v-list-item
Expand All @@ -90,7 +86,7 @@
:prepend-icon="item.icon"
:title="item.title"
:to="item.route"
></v-list-item>
/>
</v-list>
</v-card>
</v-navigation-drawer>
Expand Down

0 comments on commit 2d42197

Please sign in to comment.