Skip to content

Commit

Permalink
Merge remote-tracking branch 'upstream/main'
Browse files Browse the repository at this point in the history
# Conflicts:
#	app.vue
#	content/7.blog/24.eslint-module.md
  • Loading branch information
Ivan Bochkarev committed Aug 11, 2024
2 parents 130b966 + 7c0ba41 commit 74df3cb
Show file tree
Hide file tree
Showing 12 changed files with 46 additions and 35 deletions.
10 changes: 5 additions & 5 deletions app.vue
Original file line number Diff line number Diff line change
Expand Up @@ -52,15 +52,15 @@ provide('navigation', navigation)
<NuxtLoadingIndicator />

<AppBanner
id="nuxt2-eol"
to="/blog/nuxt2-eol"
id="nuxt-tips"
to="https://michaelnthiessen.com/nuxt-tips-collection?aff=J0Emk"
>
<div class="flex items-center gap-1">
<UIcon
name="i-ph-hourglass-low-duotone"
class="w-5 h-5 flex-shrink-0 pointer-events-none hidden lg:inline-block"
name="i-ph-magic-wand-duotone"
class="w-5 h-5 flex-shrink-0 pointer-events-none hidden lg:inline-block mr-1"
/>
<span>Срок службы Nuxt 2 истек 30 июня 2024 года.</span>
<span>Learn Nuxt with a Collection of 100+ Tips!</span>
<UButton
label="Узнать больше"
color="white"
Expand Down
2 changes: 1 addition & 1 deletion components/AppBanner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ if (import.meta.server) {
</script>

<template>
<NuxtLink :to="to" class="block relative bg-primary hover:bg-primary/90 transition-[background] backdrop-blur z-50 app-banner">
<NuxtLink :to="to" target="_blank" class="block relative bg-primary hover:bg-primary/90 transition-[background] backdrop-blur z-50 app-banner">
<UContainer class="py-2">
<div class="flex items-center justify-between gap-2">
<div class="lg:flex-1 hidden lg:flex items-center" />
Expand Down
6 changes: 6 additions & 0 deletions content/4.templates.yml
Original file line number Diff line number Diff line change
Expand Up @@ -57,6 +57,12 @@ templates:
description: 'Легкий шаблон Nuxt для сайта, работающего в формате Markdown.'
repo: 'atinux/content-wind'
demo: 'https://content-wind.nuxt.space'
- name: 'Super SaaS'
slug: 'supersaas'
description: 'The dashboard system that makes you say WOW.'
demo: 'https://supersaas.dev/?aff=J0Emk'
purchase: 'https://store.supersaas.dev/?aff=J0Emk'
badge: 'Premium'
- name: 'Tairo'
slug: 'tairo'
description: 'Система дашбордов, которая заставляет вас сказать ВАУ.'
Expand Down
20 changes: 10 additions & 10 deletions content/7.blog/24.eslint-module.md
Original file line number Diff line number Diff line change
Expand Up @@ -80,19 +80,19 @@ Flat config - это формат конфигурации, представле
В последнем пакете [`@nuxt/eslint-config`](https://eslint.nuxt.com/packages/config#flat-config-format) мы используем имеющуюся гибкость, чтобы предоставить factory функцию, которая позволяет вам легко настраивать предустановки конфигурации более высокоуровневым способом. Вот пример того, как ее можно использовать:

```ts [eslint.config.js]
import nuxt from '@nuxt/eslint-config/flat'
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default nuxt()
export default createConfigForNuxt()
```

`@nuxt/eslint-config` начинается с базового конфига, не имеющего ограничений, что означает, что мы включаем только правила для лучших практик TypeScript, Vue и Nuxt, а остальное, например, стиль кода, форматирование и т.д., оставляем на ваше усмотрение. Вы также можете запустить [Prettier](https://prettier.io/) рядом для форматирования с настройками по умолчанию.

Конфиг также позволяет подключать более важные функции по мере необходимости. Например, если вы хотите, чтобы ESLint заботился и о форматировании, вы можете включить его, передав `features.stylistic` в factory функцию (на основе [ESLint Stylistic](https://eslint.style/)):

```ts [eslint.config.js]
import nuxt from '@nuxt/eslint-config/flat'
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default nuxt({
export default createConfigForNuxt({
features: {
stylistic: true
}
Expand All @@ -102,9 +102,9 @@ export default nuxt({
Или настройте свои предпочтения с помощью объекта опций [узнать больше с помощью опций можно здесь](<https://eslint.style/guide/config-presets#configuration-factory>):

```ts [eslint.config.js]
import nuxt from '@nuxt/eslint-config/flat'
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default nuxt({
export default createConfigForNuxt({
features: {
stylistic: {
semi: false,
Expand All @@ -119,9 +119,9 @@ export default nuxt({
А если вы [автор модуля Nuxt](https://nuxt.com/docs/guide/going-further/modules), вы можете включить `features.tooling`, чтобы включить правила для разработки модуля Nuxt:

```ts [eslint.config.js]
import nuxt from '@nuxt/eslint-config/flat'
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default nuxt({
export default createConfigForNuxt({
features: {
tooling: true
}
Expand All @@ -135,9 +135,9 @@ export default nuxt({
Мы также сделали утилиту [`FlatConfigComposer`](https://github.com/antfu/eslint-flat-config-utils#composer) из [`eslint-flat-config-utils`](https://github.com/antfu/eslint-flat-config-utils), чтобы еще больше упростить переопределение и расширение flat config. Функция фабрики в `@nuxt/eslint-config/flat` возвращает экземпляр `FlatConfigComposer`:

```ts [eslint.config.js]
import nuxt from '@nuxt/eslint-config/flat'
import { createConfigForNuxt } from '@nuxt/eslint-config/flat'

export default nuxt({
export default createConfigForNuxt({
// ...опции для интеграции с Nuxt
})
.append(
Expand Down
11 changes: 8 additions & 3 deletions content/8.enterprise/2.agencies/3.updivision.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,22 +3,26 @@ category: agency
title: UPDIVISION
description: The product development company.
logo:
light: /assets/enterprise/agencies/square/light/updivision.svg
dark: /assets/enterprise/agencies/square/dark/updivision.svg
light: /assets/enterprise/agencies/square/light/updivision.png
dark: /assets/enterprise/agencies/square/dark/updivision.png
logoFull: /assets/enterprise/agencies/square/dark/updivision.svg
link: https://updivision.com/
services:
- eCommerce
- Software & SaaS
- Mobile development
- UI/UX design
- Consulting & Code audit
resources:
- label: Portfolio
to: https://updivision.com/portfolio
target: _blank
- label: Services
to: https://updivision.com/services
target: _blank
- label: Testimonials
to: https://updivision.com/testimonials
target: _blank
emailAddress: [email protected]
github: updivision
linkedin: updivision
Expand All @@ -28,7 +32,8 @@ color:
regions:
- Europe
- Asia
location: Bucharest, Romania - Perth, Australia
- North America
location: Romania, Belgium, USA, Australia
---

We started as two friends in 2010, and since then, UPDIVISION has transformed creative concepts into beloved software products. We are a dedicated team committed to excellence in development and quality. Our mission is to help clients turn their visions into reality through design thinking and cutting-edge technology.
Expand Down
10 changes: 5 additions & 5 deletions nuxt.config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -149,11 +149,11 @@ export default defineNuxtConfig({
ui: {
icons: ['simple-icons', 'ph', 'uil', 'heroicons', 'octicon', 'logos']
},
image: {
ipx: {
baseURL: 'https://ipx.nuxt.com'
}
},
// image: {
// ipx: {
// baseURL: 'https://ipx.nuxt.com'
// }
// },
content: {
navigation: {
fields: ['titleTemplate']
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@
"@nuxt/fonts": "^0.7.0",
"@nuxt/image": "^1.7.0",
"@nuxt/ui-pro": "^1.3.0",
"@nuxthq/studio": "^1.0.13",
"@nuxthq/studio": "^2.0.3",
"@nuxtjs/html-validator": "^1.8.2",
"@nuxtjs/plausible": "^1.0.0",
"@vueuse/components": "^10.11.0",
Expand Down
18 changes: 9 additions & 9 deletions pnpm-lock.yaml

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

Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
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 public/assets/templates/supersaas.png
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion server/plugins/docs-config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -152,5 +152,5 @@ function renderTag(tag: string) {
if (TagAlertType[type]) {
return ['::alert', tag, '::', '']
}
return tag
return tag + '\n'
}

0 comments on commit 74df3cb

Please sign in to comment.