Skip to content

Commit

Permalink
🚨 (lint) update project files w/ new lint rules
Browse files Browse the repository at this point in the history
  • Loading branch information
Tahul committed May 12, 2021
1 parent b8c786a commit 2d7598e
Show file tree
Hide file tree
Showing 24 changed files with 556 additions and 57 deletions.
39 changes: 36 additions & 3 deletions docs/components/AppFooter.vue
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,16 @@
href="https://nuxtlabs.com"
rel="noopener"
target="_blank"
class="flex items-end text-gray-900 dark:text-gray-300 dark:hover:text-gray-100 hover:text-gray-600 mb-3 sm:mb-0"
class="
flex
items-end
text-gray-900
dark:text-gray-300
dark:hover:text-gray-100
hover:text-gray-600
mb-3
sm:mb-0
"
>
<IconNuxtLabs class="mr-2" />
<p class="font-semibold text-xs">Made by Nuxt Labs</p>
Expand All @@ -18,7 +27,19 @@
aria-label="NuxtJS"
href="https://nuxtjs.org"
target="_blank"
class="text-sm flex items-center font-medium p-1 text-gray-500 transition-colors duration-200 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-400"
class="
text-sm
flex
items-center
font-medium
p-1
text-gray-500
transition-colors
duration-200
dark:text-gray-500
hover:text-gray-700
dark:hover:text-gray-400
"
>
<IconNuxt class="w-5 h-5" />
</a>
Expand All @@ -27,7 +48,19 @@
aria-label="Vue Telescope"
href="https://vuetelescope.com"
target="_blank"
class="text-sm flex items-center font-medium p-1 text-gray-500 transition-colors duration-200 dark:text-gray-500 hover:text-gray-700 dark:hover:text-gray-400"
class="
text-sm
flex
items-center
font-medium
p-1
text-gray-500
transition-colors
duration-200
dark:text-gray-500
hover:text-gray-700
dark:hover:text-gray-400
"
>
<IconVueTelescope class="w-5 h-5" />
</a>
Expand Down
26 changes: 24 additions & 2 deletions docs/components/FooterBody.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,14 +12,36 @@
<a
href="https://nuxtjs.org"
target="_blank"
class="text-sm flex items-center font-medium p-1 text-gray-500 transition-colors duration-200 dark:text-gray-500 hover:text-hex-00DC82"
class="
text-sm
flex
items-center
font-medium
p-1
text-gray-500
transition-colors
duration-200
dark:text-gray-500
hover:text-hex-00DC82
"
>
<IconNuxt class="w-5 h-5" />
</a>
<a
href="https://vuetelescope.com"
target="_blank"
class="text-sm flex items-center font-medium p-1 text-gray-500 transition-colors duration-200 dark:text-gray-500 hover:text-hex-0BDCA0"
class="
text-sm
flex
items-center
font-medium
p-1
text-gray-500
transition-colors
duration-200
dark:text-gray-500
hover:text-hex-0BDCA0
"
>
<IconVueTelescope class="w-5 h-5" />
</a>
Expand Down
16 changes: 14 additions & 2 deletions docs/components/Showcases.vue
Original file line number Diff line number Diff line change
Expand Up @@ -2,8 +2,20 @@
<div class="grid lg:grid-cols-2 gap-4">
<div v-for="(showcase, index) of showcases" :key="index" class="border dark:border-gray-800 rounded-md">
<a :href="showcase" target="_blank" class="py-1 block">
<nuxt-img loading="lazy" :src="`${showcase}/preview.png`" class="light-img rounded-md" width="1280" height="640" />
<nuxt-img loading="lazy" :src="`${showcase}/preview-dark.png`" class="dark-img rounded-md" width="1280" height="640" />
<NuxtImg
loading="lazy"
:src="`${showcase}/preview.png`"
class="light-img rounded-md"
width="1280"
height="640"
/>
<NuxtImg
loading="lazy"
:src="`${showcase}/preview-dark.png`"
class="dark-img rounded-md"
width="1280"
height="640"
/>
</a>
</div>
</div>
Expand Down
40 changes: 37 additions & 3 deletions playground/components/Page.vue
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,22 @@
<h1 class="flex-1 text-4xl font-bold tracking-tight text-gray-900 dark:text-gray-100">{{ page.title }}</h1>
<span
v-if="page.draft"
class="inline-block px-3 py-1 mr-2 text-base font-medium leading-5 tracking-tight text-yellow-500 bg-yellow-100 rounded-full items-flex dark:bg-yellow-800 dark:text-yellow-400"
class="
inline-block
px-3
py-1
mr-2
text-base
font-medium
leading-5
tracking-tight
text-yellow-500
bg-yellow-100
rounded-full
items-flex
dark:bg-yellow-800
dark:text-yellow-400
"
>Draft</span
>
<DBadge v-if="page.badge" class="font-medium">{{ page.badge }}</DBadge>
Expand All @@ -30,12 +45,31 @@
<!-- PageSummary -->
<section class="pb-10">
<ul
class="grid gap-4 font-semibold text-left text-gray-900 dark:text-gray-100 sm:grid-cols-2 xl:grid-cols-3 2xl:gap-8"
class="
grid
gap-4
font-semibold
text-left text-gray-900
dark:text-gray-100
sm:grid-cols-2
xl:grid-cols-3
2xl:gap-8
"
>
<li v-for="link of $docus.nav.value.en.links[2].children" :key="link.to" class="flex">
<NuxtLink
:to="link.to"
class="relative w-full px-6 py-8 rounded shadow bg-gray-50 dark:bg-gray-800 dark:bg-gray-900 hover:shadow-lg"
class="
relative
w-full
px-6
py-8
rounded
shadow
bg-gray-50
dark:bg-gray-800 dark:bg-gray-900
hover:shadow-lg
"
>
<InjectComponent
v-if="link.icon"
Expand Down
16 changes: 15 additions & 1 deletion src/admin/app/components/FilesTree.vue
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,21 @@
:class="{ 'bg-gray-200 text-gray-900': isCurrent(file) }"
>
<div
class="group flex cursor-pointer items-center px-1 py-1 text-sm leading-5 hover:text-gray-900 hover:bg-gray-50 focus:outline-none focus:text-gray-900 focus:bg-gray-50"
class="
group
flex
cursor-pointer
items-center
px-1
py-1
text-sm
leading-5
hover:text-gray-900
hover:bg-gray-50
focus:outline-none
focus:text-gray-900
focus:bg-gray-50
"
@click="open(file)"
>
<FilesTreeIcon :file="file" />
Expand Down
62 changes: 58 additions & 4 deletions src/admin/runtime/DocusUI.vue
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,19 @@
<li class="flex items-center pb-1 font-medium">
<button
type="button"
class="relative inline-flex items-center justify-center flex-shrink-0 w-10 h-5 rounded-full cursor-pointer group focus:outline-none"
class="
relative
inline-flex
items-center
justify-center
flex-shrink-0
w-10
h-5
rounded-full
cursor-pointer
group
focus:outline-none
"
aria-pressed="false"
@click="$docus.ui.draft = !$docus.ui.draft"
>
Expand All @@ -26,7 +38,22 @@
<span
aria-hidden="true"
:class="drafts ? 'translate-x-5' : 'translate-x-0'"
class="absolute left-0 inline-block w-5 h-5 transition-transform duration-200 ease-in-out transform bg-white border border-gray-200 rounded-full shadow pointer-events-none"
class="
absolute
left-0
inline-block
w-5
h-5
transition-transform
duration-200
ease-in-out
transform
bg-white
border border-gray-200
rounded-full
shadow
pointer-events-none
"
></span>
</button>

Expand All @@ -36,7 +63,19 @@
<li class="flex items-center font-medium">
<button
type="button"
class="relative inline-flex items-center justify-center flex-shrink-0 w-10 h-5 rounded-full cursor-pointer group focus:outline-none"
class="
relative
inline-flex
items-center
justify-center
flex-shrink-0
w-10
h-5
rounded-full
cursor-pointer
group
focus:outline-none
"
aria-pressed="false"
@click="$docus.ui.slots = !$docus.ui.slots"
>
Expand All @@ -50,7 +89,22 @@
<span
aria-hidden="true"
:class="slots ? 'translate-x-5' : 'translate-x-0'"
class="absolute left-0 inline-block w-5 h-5 transition-transform duration-200 ease-in-out transform bg-white border border-gray-200 rounded-full shadow pointer-events-none"
class="
absolute
left-0
inline-block
w-5
h-5
transition-transform
duration-200
ease-in-out
transform
bg-white
border border-gray-200
rounded-full
shadow
pointer-events-none
"
></span>
</button>

Expand Down
2 changes: 1 addition & 1 deletion src/core/runtime/api/QueryBuilder.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ const omit = keys => obj =>
.filter(key => !keys.includes(key))
.reduce((newObj, key) => Object.assign(newObj, { [key]: obj[key] }), {})

const apply = fn => data => (Array.isArray(data) ? data.map(item => fn(item)) : fn(data))
const apply = fn => data => Array.isArray(data) ? data.map(item => fn(item)) : fn(data)

export class QueryBuilder {
private query: any
Expand Down
14 changes: 13 additions & 1 deletion src/defaultTheme/components/atoms/Badge.vue
Original file line number Diff line number Diff line change
@@ -1,6 +1,18 @@
<template>
<span
class="inline-flex items-center px-3 py-1 text-base leading-5 tracking-tight rounded-full bg-primary-100 dark:bg-primary-800 text-primary"
class="
inline-flex
items-center
px-3
py-1
text-base
leading-5
tracking-tight
rounded-full
bg-primary-100
dark:bg-primary-800
text-primary
"
>
<slot />
</span>
Expand Down
11 changes: 10 additions & 1 deletion src/defaultTheme/components/atoms/CardGrid.vue
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,16 @@
{{ title }}
</h2>
<div
class="grid gap-4 font-semibold text-left text-gray-900 dark:text-gray-100 sm:grid-cols-2 xl:grid-cols-3 2xl:gap-8"
class="
grid
gap-4
font-semibold
text-left text-gray-900
dark:text-gray-100
sm:grid-cols-2
xl:grid-cols-3
2xl:gap-8
"
>
<slot />
</div>
Expand Down
12 changes: 11 additions & 1 deletion src/defaultTheme/components/atoms/CodeGroup.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,17 @@
<template>
<div class="code-group" :class="[activeTabIndex == 0 && 'first-tab']">
<div
class="relative px-2 text-sm text-white bg-gray-100 border-b-2 border-gray-200 rounded-t-md h-12 dark:bg-gray-800 dark:border-gray-700"
class="
relative
px-2
text-sm text-white
bg-gray-100
border-b-2 border-gray-200
rounded-t-md
h-12
dark:bg-gray-800
dark:border-gray-700
"
>
<button
v-for="({ label }, i) in tabs"
Expand Down
15 changes: 14 additions & 1 deletion src/defaultTheme/components/atoms/CodeSandbox.vue
Original file line number Diff line number Diff line change
@@ -1,7 +1,20 @@
<template>
<div
ref="box"
class="flex items-center justify-center w-full min-h-[500px] mx-auto mb-6 overflow-hidden text-3xl text-center text-white bg-black rounded-md codesandbox"
class="
flex
items-center
justify-center
w-full
min-h-[500px]
mx-auto
mb-6
overflow-hidden
text-3xl text-center text-white
bg-black
rounded-md
codesandbox
"
style="background-color: rgb(21, 21, 21)"
>
<iframe
Expand Down
Loading

1 comment on commit 2d7598e

@vercel
Copy link

@vercel vercel bot commented on 2d7598e May 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.