Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Enforce Pascal casing of component name in template in the docs package #4004

Merged
merged 80 commits into from
Nov 22, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
80 commits
Select commit Hold shift + click to select a range
33f3f03
add linting rule for template component name case
xiongmao86 Nov 7, 2023
a147b33
bump eslint in docs to version 8
xiongmao86 Nov 16, 2023
faedad1
add rules to docs eslintrc
xiongmao86 Nov 17, 2023
821b40e
eslint fix docs/components that doesn't need double check
xiongmao86 Nov 17, 2023
f8c76c3
Ignore transition and component
xiongmao86 Nov 18, 2023
36df497
eslint fix docs/modules
xiongmao86 Nov 18, 2023
f31c741
eslint fix docs/pages
xiongmao86 Nov 18, 2023
3747d36
eslint fix missing files in docs/components
xiongmao86 Nov 18, 2023
f7c6303
eslint fix page-config/extensions
xiongmao86 Nov 18, 2023
4f5abf1
eslint fix page-config/getting-started
xiongmao86 Nov 18, 2023
6319c4f
eslint fix page-config/introduction
xiongmao86 Nov 18, 2023
9cf0695
eslint fix page-config/services
xiongmao86 Nov 18, 2023
71a483c
eslint fix page-config/styles
xiongmao86 Nov 18, 2023
87a57e0
eslint fix accordion
xiongmao86 Nov 19, 2023
8d33f6e
eslint fix affix
xiongmao86 Nov 19, 2023
ca129e2
eslint fix alert
xiongmao86 Nov 19, 2023
4753127
eslint fix app-bar
xiongmao86 Nov 19, 2023
7708f7a
eslint fix aspect-ratio
xiongmao86 Nov 19, 2023
d2feab8
eslint fix avatar
xiongmao86 Nov 19, 2023
4549e0c
eslint fix backtop
xiongmao86 Nov 20, 2023
c0f5e7b
eslint fix badge
xiongmao86 Nov 20, 2023
21782fe
eslint fix breadcrumbs
xiongmao86 Nov 20, 2023
0780c5d
eslint fix button
xiongmao86 Nov 20, 2023
ed55e6e
eslint fix button-dropdown
xiongmao86 Nov 20, 2023
fed7842
eslint fix button-group
xiongmao86 Nov 20, 2023
075bed9
eslint fix button-toggle
xiongmao86 Nov 20, 2023
1fe8436
eslint fix card
xiongmao86 Nov 20, 2023
3ec1c7d
eslint fix carousel
xiongmao86 Nov 20, 2023
7f04df6
eslint fix checkbox
xiongmao86 Nov 20, 2023
04f25b6
eslint fix chip
xiongmao86 Nov 20, 2023
5245b27
eslint fix collapse
xiongmao86 Nov 20, 2023
1987588
eslint fix color-input
xiongmao86 Nov 20, 2023
13f17b1
eslint fix color-palette
xiongmao86 Nov 20, 2023
4ff9dcc
eslint fix config
xiongmao86 Nov 20, 2023
de102df
eslint fix confirm
xiongmao86 Nov 20, 2023
0854f47
eslint fix counter
xiongmao86 Nov 20, 2023
c918e40
eslint fix data-table
xiongmao86 Nov 21, 2023
5bc7581
eslint fix date-input
xiongmao86 Nov 21, 2023
1a20610
eslint fix date-picker
xiongmao86 Nov 21, 2023
1fd9df5
eslint fix divider
xiongmao86 Nov 21, 2023
cb63799
eslint fix dropdown
xiongmao86 Nov 21, 2023
caf8ba6
eslint fix file-upload
xiongmao86 Nov 21, 2023
0ca2fb1
eslint fix form
xiongmao86 Nov 21, 2023
a27f1de
eslint fix hover
xiongmao86 Nov 21, 2023
d8a6a72
eslint fix icon
xiongmao86 Nov 21, 2023
2f70921
eslint fix image
xiongmao86 Nov 21, 2023
6e7516a
eslint fix infinite-scroll
xiongmao86 Nov 21, 2023
0d1ee9f
eslint fix inner-loading
xiongmao86 Nov 21, 2023
d8df093
eslint fix input
xiongmao86 Nov 21, 2023
43d3c5d
eslint fix layout
xiongmao86 Nov 21, 2023
d2e290b
eslint fix list
xiongmao86 Nov 21, 2023
ef0c1b5
eslint fix modal
xiongmao86 Nov 21, 2023
75787e6
eslint fix navbar
xiongmao86 Nov 21, 2023
e435348
eslint fix option-list
xiongmao86 Nov 21, 2023
e4a4772
eslint fix pagination
xiongmao86 Nov 21, 2023
2d0a614
eslint fix parallax
xiongmao86 Nov 21, 2023
9707a5c
eslint fix popover
xiongmao86 Nov 21, 2023
4bc5feb
eslint fix progress-bar
xiongmao86 Nov 21, 2023
b7f9631
eslint fix progress-circle
xiongmao86 Nov 21, 2023
c9a251a
eslint fix radio
xiongmao86 Nov 21, 2023
2b5d5c2
eslint fix rating
xiongmao86 Nov 21, 2023
9c43116
eslint fix scroll-container
xiongmao86 Nov 21, 2023
847db59
eslint fix select
xiongmao86 Nov 21, 2023
e5bdbee
eslint fix sidebar
xiongmao86 Nov 21, 2023
dbad73a
eslint fix sidebar-item
xiongmao86 Nov 21, 2023
49d6eaa
eslint fix skeleton
xiongmao86 Nov 21, 2023
2f69e5b
eslint fixd slider
xiongmao86 Nov 21, 2023
c24c081
eslint fix spacer
xiongmao86 Nov 21, 2023
0525107
eslint fix split
xiongmao86 Nov 21, 2023
290f12a
eslint fix stepper
xiongmao86 Nov 21, 2023
9dbb731
eslint fix switch
xiongmao86 Nov 21, 2023
9fe8880
eslint fix table
xiongmao86 Nov 21, 2023
efe53c9
eslint fix tabs
xiongmao86 Nov 21, 2023
f0252f0
eslint fix textarea
xiongmao86 Nov 21, 2023
d56c294
eslint fix time-input
xiongmao86 Nov 21, 2023
2cd152c
eslint fix time-picker
xiongmao86 Nov 21, 2023
af0b4bc
eslint fix toast
xiongmao86 Nov 21, 2023
1a4770d
eslint fix tree-view
xiongmao86 Nov 21, 2023
cfc8380
eslint fix value
xiongmao86 Nov 21, 2023
7f20ba5
eslint fix virtual-scroller
xiongmao86 Nov 21, 2023
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
9 changes: 9 additions & 0 deletions packages/docs/.eslintrc.js
Original file line number Diff line number Diff line change
Expand Up @@ -15,5 +15,14 @@ module.exports = {
"rules": {
"vue/multi-word-component-names": "off",
"vue/no-reserved-component-names": "warn",
"vue/component-name-in-template-casing": ["error", "PascalCase", {
registeredComponentsOnly: false,
ignores: ["transition", "component"],
}],
"vue/max-attributes-per-line": ["error", {
singleline: {
max: 4
},
}],
},
}
16 changes: 8 additions & 8 deletions packages/docs/components/ComponentPlayground.vue
Original file line number Diff line number Diff line change
Expand Up @@ -54,24 +54,24 @@ const doShowComponent = false; // TODO: Temporarily disabled
<div class="component-playground__example">
<slot v-bind="{ bind: optionValues, slots }" />
</div>
<va-card
<VaCard
class="component-playground__options"
square
>
<va-card-content>
<VaCardContent>
<div
v-for="option in filteredOptions"
:key="option.key"
class="mb-2"
>
<va-input
<VaInput
v-if="option.type === 'input'"
v-model="option.value"
class="w-full"
:label="option.key"
:rules="option.rules"
/>
<va-select
<VaSelect
v-if="option.type === 'select'"
v-model="option.value"
class="w-full"
Expand All @@ -80,7 +80,7 @@ const doShowComponent = false; // TODO: Temporarily disabled
:rules="option.rules"
clearable
/>
<va-select
<VaSelect
v-if="option.type === 'multiselect'"
v-model="option.value"
class="w-full"
Expand All @@ -90,7 +90,7 @@ const doShowComponent = false; // TODO: Temporarily disabled
clearable
multiple
/>
<va-checkbox
<VaCheckbox
v-if="option.type === 'checkbox'"
v-model="option.value"
:label="option.key"
Expand All @@ -99,8 +99,8 @@ const doShowComponent = false; // TODO: Temporarily disabled
:rules="option.rules"
/>
</div>
</va-card-content>
</va-card>
</VaCardContent>
</VaCard>
</div>
<div v-if="doShowComponent" class="component-playground">
<div
Expand Down
84 changes: 42 additions & 42 deletions packages/docs/components/HeaderBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,8 +11,8 @@
<div class="header-banner__left">
<a :href="`https://github.com/epicmaxco/vuestic-ui/releases/tag/v${uiVersion}`">We just released&nbsp;<strong>Vuestic {{ uiVersion }} 🤗</strong></a>

<!-- <div class="header-banner__left-links">-->
<!-- <a
<!-- <div class="header-banner__left-links">-->
<!-- <a
href="https://vuejs.org/partners/epicmax.html"
title="Epicmax creates high performance Vue.js interfaces"
target="_blank"
Expand All @@ -34,53 +34,53 @@
<strong>Vue.js</strong>
</a> -->

<!-- <strong>and</strong> -->

<!-- <a-->
<!-- href="https://nuxtjs.org/partners/epicmax"-->
<!-- title="Epicmax creates high performance Vue.js interfaces"-->
<!-- target="_blank"-->
<!-- class="header-banner__link"-->
<!-- >-->
<!-- <svg-->
<!-- xmlns="http://www.w3.org/2000/svg"-->
<!-- width="24"-->
<!-- height="24"-->
<!-- viewBox="0 0 400 420"-->
<!-- aria-hidden="true"-->
<!-- >-->
<!-- <g-->
<!-- fill="none"-->
<!-- fill-rule="evenodd"-->
<!-- >-->
<!-- <path-->
<!-- d="M123 292l-1-1c-2-4-2-8-2-12H25L167 27l59 107 19-14-59-107c-1-2-8-13-20-13-5 0-13 2-19 13L4 268c-1 2-7 14-1 24 2 5 8 10 21 10h120c-13 0-19-5-21-10z"-->
<!-- fill="#00C58E"-->
<!-- />-->
<!-- <path-->
<!-- d="M395 269L280 62c-2-2-8-13-20-13-5 0-12 2-19 13l-15 24v48l34-59 114 204h-43a20 20 0 0 1-2 12v1c-6 10-19 10-21 10h68c2 0 15 0 21-10 2-5 4-13-2-23z"-->
<!-- fill="#108775"-->
<!-- />-->
<!-- <path-->
<!-- d="M332 292v-1l1-2c1-3 2-7 1-10l-4-11-90-158-13-24h-1l-13 24-91 158-3 11a21 21 0 0 0 2 13c3 5 9 10 21 10h168c3 0 16 0 22-10zM226 134l83 145H144l82-145z"-->
<!-- fill="#2F495E"-->
<!-- fill-rule="nonzero"-->
<!-- />-->
<!-- </g>-->
<!-- </svg>-->
<!-- <strong>Nuxt</strong>-->
<!-- </a>-->
<!-- </div>-->
<!-- <strong>and</strong> -->

<!-- <a-->
<!-- href="https://nuxtjs.org/partners/epicmax"-->
<!-- title="Epicmax creates high performance Vue.js interfaces"-->
<!-- target="_blank"-->
<!-- class="header-banner__link"-->
<!-- >-->
<!-- <svg-->
<!-- xmlns="http://www.w3.org/2000/svg"-->
<!-- width="24"-->
<!-- height="24"-->
<!-- viewBox="0 0 400 420"-->
<!-- aria-hidden="true"-->
<!-- >-->
<!-- <g-->
<!-- fill="none"-->
<!-- fill-rule="evenodd"-->
<!-- >-->
<!-- <path-->
<!-- d="M123 292l-1-1c-2-4-2-8-2-12H25L167 27l59 107 19-14-59-107c-1-2-8-13-20-13-5 0-13 2-19 13L4 268c-1 2-7 14-1 24 2 5 8 10 21 10h120c-13 0-19-5-21-10z"-->
<!-- fill="#00C58E"-->
<!-- />-->
<!-- <path-->
<!-- d="M395 269L280 62c-2-2-8-13-20-13-5 0-12 2-19 13l-15 24v48l34-59 114 204h-43a20 20 0 0 1-2 12v1c-6 10-19 10-21 10h68c2 0 15 0 21-10 2-5 4-13-2-23z"-->
<!-- fill="#108775"-->
<!-- />-->
<!-- <path-->
<!-- d="M332 292v-1l1-2c1-3 2-7 1-10l-4-11-90-158-13-24h-1l-13 24-91 158-3 11a21 21 0 0 0 2 13c3 5 9 10 21 10h168c3 0 16 0 22-10zM226 134l83 145H144l82-145z"-->
<!-- fill="#2F495E"-->
<!-- fill-rule="nonzero"-->
<!-- />-->
<!-- </g>-->
<!-- </svg>-->
<!-- <strong>Nuxt</strong>-->
<!-- </a>-->
<!-- </div>-->
</div>

<div class="header-banner__buttons">
<va-button
<VaButton
href="https://epicmax.co/?ref=vuestic-header"
target="blank"
>
🔥🔥🔥 Hire us
</va-button>
<va-button
</VaButton>
<VaButton
v-if="closeable"
icon="close"
preset="secondary"
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/components/PageConfigSkeleton.vue
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
<template>
<va-content
<VaContent
v-show="doShow"
class="va-skeleton page-config"
>
Expand All @@ -9,12 +9,12 @@
<h3 class="page-config-subtitle medium" />
<p class="three-lines short" />

<va-card style="height: 150px; width: 100%;" />
<VaCard style="height: 150px; width: 100%;" />
<h3 class="page-config-subtitle long" />
<p class="medium" />

<va-card style="height: 300px; width: 100%;" />
</va-content>
<VaCard style="height: 300px; width: 100%;" />
</VaContent>
</template>

<script lang="ts" setup>
Expand Down
12 changes: 6 additions & 6 deletions packages/docs/components/landing/Admin.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,31 +11,31 @@
</div>

<div class="admin__buttons">
<va-button
<VaButton
class="admin__buttons--button"
href="https://github.com/epicmaxco/vuestic-admin"
target="blank"
>
<template #prepend>
<va-icon
<VaIcon
class="fa-brands fa-github"
style="margin-right: 0.5rem;"
/>
</template>
View on GitHub
</va-button>
</VaButton>

<va-button
<VaButton
class="admin__buttons--button"
href="https://vuestic.epicmax.co/admin/dashboard"
target="blank"
:preset="breakpoint.xs ? `primary` : `secondary`"
>
Live Demo
</va-button>
</VaButton>

<div class="admin__buttons--button stars-button">
<landing-stars-button
<LandingStarsButton
repo="epicmaxco/vuestic-admin"
border-radius="0.5rem"
/>
Expand Down
8 changes: 4 additions & 4 deletions packages/docs/components/landing/Customize.vue
Original file line number Diff line number Diff line change
Expand Up @@ -11,23 +11,23 @@
</div>

<div class="customize__buttons">
<va-button
<VaButton
class="customize__buttons-item"
color="textInverted"
text-color="primary"
to="/getting-started/installation"
>
Get Started
</va-button>
</VaButton>
</div>

<div class="customize__image">
<va-aspect-ratio :ratio="1337/192">
<VaAspectRatio :ratio="1337/192">
<img
src="/landing/customize-everything.png"
alt="Vuestic UI components"
>
</va-aspect-ratio>
</VaAspectRatio>
</div>
</div>
</div>
Expand Down
4 changes: 2 additions & 2 deletions packages/docs/components/landing/Features.vue
Original file line number Diff line number Diff line change
Expand Up @@ -45,9 +45,9 @@
>
<p class="features__item-description">
Professional support: Fast and reliable assistance from
<router-link to="/introduction/team">
<RouterLink to="/introduction/team">
the core team
</router-link>
</RouterLink>
&#160;&#x1fac2;
</p>
</div>
Expand Down
6 changes: 3 additions & 3 deletions packages/docs/components/landing/Footer.vue
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@
</div>

<div class="footer__buttons">
<va-button
<VaButton
v-for="{ href, icon, label } in buttons"
:key="label"
class="footer__buttons__button"
Expand All @@ -47,13 +47,13 @@
size="large"
>
<template #prepend>
<va-icon
<VaIcon
class="footer__buttons__icon"
:component="icon"
/>
</template>
{{ label }}
</va-button>
</VaButton>
</div>

<SocialsLinks class="footer__socials" />
Expand Down
Loading
Loading