double qutes eslint rule
This commit is contained in:
1 parent
2e517cc7f7
commit
85bc8c4af5
57 files changed
+370
-366
No files matched your search
+32
-32
@@ -1,20 +1,20 @@
|
||||
import Head from 'next/head'
|
||||
import { App } from 'src/components/App'
|
||||
import { tail } from 'lodash'
|
||||
import { Page } from 'src/components/Page'
|
||||
import { Meta } from 'src/components/Meta'
|
||||
import { MetaBuilder } from 'src/lib/meta'
|
||||
import { apiGet } from '@/next-lib'
|
||||
import { GetStaticProps, NextPage } from 'next'
|
||||
import { IBreadcumbsPart, IMenu, IMeta, ITag, Sign, Token } from '@/types'
|
||||
import { Html } from 'src/components/Html'
|
||||
import { Youtube } from '@/components/Youtube'
|
||||
import { createMenu, createPage, createPageUrls } from '@/remote/factory'
|
||||
import { paramsToSlug } from '@/remote/lib'
|
||||
import { PageGrid } from '@/components/PageGrid'
|
||||
import { useRouter } from 'next/router'
|
||||
import { FileCard } from '@/components/FIleCard'
|
||||
import { Picture } from '@/components/Picture'
|
||||
import Head from "next/head"
|
||||
import { App } from "src/components/App"
|
||||
import { tail } from "lodash"
|
||||
import { Page } from "src/components/Page"
|
||||
import { Meta } from "src/components/Meta"
|
||||
import { MetaBuilder } from "src/lib/meta"
|
||||
import { apiGet } from "@/next-lib"
|
||||
import { GetStaticProps, NextPage } from "next"
|
||||
import { IBreadcumbsPart, IMenu, IMeta, ITag, Sign, Token } from "@/types"
|
||||
import { Html } from "src/components/Html"
|
||||
import { Youtube } from "@/components/Youtube"
|
||||
import { createMenu, createPage, createPageUrls } from "@/remote/factory"
|
||||
import { paramsToSlug } from "@/remote/lib"
|
||||
import { PageGrid } from "@/components/PageGrid"
|
||||
import { useRouter } from "next/router"
|
||||
import { FileCard } from "@/components/FIleCard"
|
||||
import { Picture } from "@/components/Picture"
|
||||
|
||||
async function getUrls() {
|
||||
let urls: string[] = []
|
||||
@@ -59,8 +59,8 @@ const Index: NextPage<Props> = props => {
|
||||
return (
|
||||
<App
|
||||
contentStyle={{
|
||||
marginTop: 'var(--size-l)',
|
||||
marginBottom: 'var(--size-xl)',
|
||||
marginTop: "var(--size-l)",
|
||||
marginBottom: "var(--size-xl)",
|
||||
}}
|
||||
menu={props.menu}
|
||||
breadcrumbs={props.breadcrumb}
|
||||
@@ -76,10 +76,10 @@ const Index: NextPage<Props> = props => {
|
||||
tags={props.tags}
|
||||
date={props.date ? new Date(props.date) : undefined}
|
||||
>
|
||||
<article className={'article'}>
|
||||
<article className={"article"}>
|
||||
{props.tokens.map((x, i) => {
|
||||
switch (x.token) {
|
||||
case 'html':
|
||||
case "html":
|
||||
return (
|
||||
<Html
|
||||
key={i}
|
||||
@@ -87,7 +87,7 @@ const Index: NextPage<Props> = props => {
|
||||
/>
|
||||
)
|
||||
|
||||
case 'instagram':
|
||||
case "instagram":
|
||||
return (
|
||||
<Html
|
||||
key={i}
|
||||
@@ -95,7 +95,7 @@ const Index: NextPage<Props> = props => {
|
||||
/>
|
||||
)
|
||||
|
||||
case 'youtube':
|
||||
case "youtube":
|
||||
return (
|
||||
<Youtube
|
||||
key={i}
|
||||
@@ -103,7 +103,7 @@ const Index: NextPage<Props> = props => {
|
||||
/>
|
||||
)
|
||||
|
||||
case 'image':
|
||||
case "image":
|
||||
return (
|
||||
<Picture
|
||||
key={i}
|
||||
@@ -117,7 +117,7 @@ const Index: NextPage<Props> = props => {
|
||||
/>
|
||||
)
|
||||
|
||||
case 'file':
|
||||
case "file":
|
||||
return (
|
||||
<FileCard
|
||||
key={i}
|
||||
@@ -126,7 +126,7 @@ const Index: NextPage<Props> = props => {
|
||||
/>
|
||||
)
|
||||
|
||||
case 'grid':
|
||||
case "grid":
|
||||
return (
|
||||
<PageGrid
|
||||
key={i}
|
||||
@@ -158,7 +158,7 @@ export const getStaticProps: GetStaticProps<Props> = async ctx => {
|
||||
}
|
||||
}
|
||||
|
||||
const menu = await apiGet(createMenu)('https://hudozka.tmshv.com/menu', () => [])
|
||||
const menu = await apiGet(createMenu)("https://hudozka.tmshv.com/menu", () => [])
|
||||
|
||||
const description = page.description ?? undefined
|
||||
const breadcrumbSize = page?.breadcrumb?.length ?? 0
|
||||
@@ -181,10 +181,10 @@ export const getStaticProps: GetStaticProps<Props> = async ctx => {
|
||||
menu,
|
||||
breadcrumb,
|
||||
documentSignature: {
|
||||
date: '20.01.2021г.',
|
||||
person: 'Тимашева Марина Геннадьевна',
|
||||
position: 'Директор',
|
||||
signature: '0ac4ea89753a4ba9893799442325fb41',
|
||||
date: "20.01.2021г.",
|
||||
person: "Тимашева Марина Геннадьевна",
|
||||
position: "Директор",
|
||||
signature: "0ac4ea89753a4ba9893799442325fb41",
|
||||
},
|
||||
},
|
||||
}
|
||||
@@ -197,7 +197,7 @@ export const getStaticPaths = async () => {
|
||||
fallback: true,
|
||||
paths: urls
|
||||
.map(path => {
|
||||
const slug = tail(path.split('/'))
|
||||
const slug = tail(path.split("/"))
|
||||
|
||||
return {
|
||||
params: {
|
||||
|
||||
+10
-10
@@ -1,13 +1,13 @@
|
||||
import 'src/style/style.css'
|
||||
import 'src/style/content.css'
|
||||
import 'src/style/article.css'
|
||||
import 'src/style/marker/marker-table.css'
|
||||
import 'src/style/kazimir/video.css'
|
||||
import "src/style/style.css"
|
||||
import "src/style/content.css"
|
||||
import "src/style/article.css"
|
||||
import "src/style/marker/marker-table.css"
|
||||
import "src/style/kazimir/video.css"
|
||||
|
||||
import App from 'next/app'
|
||||
import Head from 'next/head'
|
||||
import { YMetrika } from 'src/components/YMetrika'
|
||||
import { GAnalytics } from 'src/components/GAnalytics'
|
||||
import App from "next/app"
|
||||
import Head from "next/head"
|
||||
import { YMetrika } from "src/components/YMetrika"
|
||||
import { GAnalytics } from "src/components/GAnalytics"
|
||||
|
||||
export default class MyApp extends App {
|
||||
render() {
|
||||
@@ -39,7 +39,7 @@ export default class MyApp extends App {
|
||||
/>
|
||||
|
||||
<YMetrika account={24027460} />
|
||||
<GAnalytics account={'UA-60209057-1'} />
|
||||
<GAnalytics account={"UA-60209057-1"} />
|
||||
</Head>
|
||||
<Component {...pageProps} />
|
||||
</>
|
||||
|
||||
+1
-1
@@ -1,4 +1,4 @@
|
||||
import { Html, Head, Main, NextScript } from 'next/document'
|
||||
import { Html, Head, Main, NextScript } from "next/document"
|
||||
|
||||
export default function Document() {
|
||||
return (
|
||||
|
||||
+8
-8
@@ -1,22 +1,22 @@
|
||||
import { NextPage } from 'next'
|
||||
import { Wrapper } from 'src/components/Wrapper'
|
||||
import { NotFound } from 'src/components/NotFound'
|
||||
import { Copyright } from 'src/components/Copyright'
|
||||
import { Block } from 'src/components/Block'
|
||||
import { Spacer } from 'src/components/Spacer'
|
||||
import { NextPage } from "next"
|
||||
import { Wrapper } from "src/components/Wrapper"
|
||||
import { NotFound } from "src/components/NotFound"
|
||||
import { Copyright } from "src/components/Copyright"
|
||||
import { Block } from "src/components/Block"
|
||||
import { Spacer } from "src/components/Spacer"
|
||||
|
||||
const Index: NextPage = () => (
|
||||
<Wrapper
|
||||
header={null}
|
||||
footer={(
|
||||
<Block as={'footer'} direction={'horizontal'}>
|
||||
<Block as={"footer"} direction={"horizontal"}>
|
||||
<Spacer />
|
||||
<Copyright />
|
||||
<Spacer />
|
||||
</Block>
|
||||
)}
|
||||
>
|
||||
<Block direction={'vertical'}>
|
||||
<Block direction={"vertical"}>
|
||||
<NotFound />
|
||||
<Spacer />
|
||||
</Block>
|
||||
|
||||
+16
-16
@@ -1,13 +1,13 @@
|
||||
import Head from 'next/head'
|
||||
import { App } from 'src/components/App'
|
||||
import { Meta } from 'src/components/Meta'
|
||||
import { PageGrid } from 'src/components/PageGrid'
|
||||
import { HudozkaTitle } from 'src/components/HudozkaTitle'
|
||||
import { MetaBuilder } from 'src/lib/meta'
|
||||
import { GetStaticProps, NextPage } from 'next'
|
||||
import { IMenu, IMeta, PageCardDto } from 'src/types'
|
||||
import { apiGet } from '@/next-lib'
|
||||
import { createHomeCards, createMenu } from '@/remote/factory'
|
||||
import Head from "next/head"
|
||||
import { App } from "src/components/App"
|
||||
import { Meta } from "src/components/Meta"
|
||||
import { PageGrid } from "src/components/PageGrid"
|
||||
import { HudozkaTitle } from "src/components/HudozkaTitle"
|
||||
import { MetaBuilder } from "src/lib/meta"
|
||||
import { GetStaticProps, NextPage } from "next"
|
||||
import { IMenu, IMeta, PageCardDto } from "src/types"
|
||||
import { apiGet } from "@/next-lib"
|
||||
import { createHomeCards, createMenu } from "@/remote/factory"
|
||||
|
||||
type Props = {
|
||||
title: string
|
||||
@@ -28,8 +28,8 @@ const Index: NextPage<Props> = props => (
|
||||
|
||||
<HudozkaTitle
|
||||
style={{
|
||||
marginTop: 'var(--size-m)',
|
||||
marginBottom: 'var(--size-m)',
|
||||
marginTop: "var(--size-m)",
|
||||
marginBottom: "var(--size-m)",
|
||||
}}
|
||||
/>
|
||||
|
||||
@@ -40,14 +40,14 @@ const Index: NextPage<Props> = props => (
|
||||
)
|
||||
|
||||
export const getStaticProps: GetStaticProps<Props> = async () => {
|
||||
const items = await apiGet(createHomeCards)('https://hudozka.tmshv.com/home', async () => [])
|
||||
const menu = await apiGet(createMenu)('https://hudozka.tmshv.com/menu', () => [])
|
||||
const items = await apiGet(createHomeCards)("https://hudozka.tmshv.com/home", async () => [])
|
||||
const menu = await apiGet(createMenu)("https://hudozka.tmshv.com/menu", () => [])
|
||||
|
||||
const title = 'Шлиссельбургская ДХШ'
|
||||
const title = "Шлиссельбургская ДХШ"
|
||||
const meta = (new MetaBuilder())
|
||||
.setTitle(title)
|
||||
.setData({
|
||||
url: '/',
|
||||
url: "/",
|
||||
})
|
||||
.build()
|
||||
|
||||
|
||||
Reference in new issue
Block a user