Skip to content

Commit 4e3fa64

Browse files
author
Ivan Bochkarev
committed
Update branch
2 parents a24939a + 3124b79 commit 4e3fa64

File tree

441 files changed

+19581
-11496
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

441 files changed

+19581
-11496
lines changed

.env.example

Lines changed: 21 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
# Specify the path of the docs/ directory of nuxt/nuxt locally
2-
NUXT_DOCS_PATH=
3-
# Specify the path of the .docs/ directory of nuxt/examples locally
1+
# Specify the path of the nuxt/nuxt repository locally
2+
NUXT_PATH=
3+
# Specify the path of the nuxt/examples repository locally
44
NUXT_EXAMPLES_PATH=
5-
# Specify the path of @nuxt/ui-pro locally
5+
# Specify the path of the nuxt/ui-pro repository locally
66
NUXT_UI_PRO_PATH=
77
# Production token for @nuxt/ui-pro, purchase on https://ui.nuxt.com/pro/purchase
88
NUXT_UI_PRO_LICENSE=
@@ -12,3 +12,20 @@ NUXT_PUBLIC_SITE_URL=
1212
NUXT_GITHUB_TOKEN=
1313
# Use for Turnsttle: Privacy-focused alternative to CAPTCHA from Cloudflare https://nuxt.com/modules/turnstile
1414
NUXT_PUBLIC_TURNSTILE_SITE_KEY=
15+
16+
# ===================================
17+
# Authentication (Optional)
18+
# ===================================
19+
# Required only for the feedback analytics admin dashboard
20+
# Create a GitHub OAuth app at: https://github.com/settings/applications/new
21+
# Callback URL: http://localhost:3000/api/auth/github (adjust for your domain)
22+
23+
# GitHub OAuth Application Client ID
24+
NUXT_OAUTH_GITHUB_CLIENT_ID=
25+
26+
# GitHub OAuth Application Client Secret
27+
NUXT_OAUTH_GITHUB_CLIENT_SECRET=
28+
29+
# Session encryption password (generate a secure random string)
30+
# You can use: openssl rand -base64 32
31+
NUXT_SESSION_PASSWORD=

.github/workflows/ci.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,23 +13,23 @@ jobs:
1313
runs-on: ubuntu-latest
1414
steps:
1515
- uses: actions/checkout@v4
16-
- run: npm i -g --force corepack && corepack enable
16+
- run: corepack enable
1717
- uses: actions/setup-node@v4
1818
with:
1919
node-version: 20
2020
cache: "pnpm"
2121
- run: pnpm install
22-
- run: pnpm nuxi prepare
22+
- run: pnpm nuxt prepare
2323
- run: pnpm lint
2424
typecheck:
2525
runs-on: ubuntu-latest
2626
steps:
2727
- uses: actions/checkout@v4
28-
- run: npm i -g --force corepack && corepack enable
28+
- run: corepack enable
2929
- uses: actions/setup-node@v4
3030
with:
3131
node-version: 20
3232
cache: "pnpm"
3333
- run: pnpm install
34-
- run: pnpm nuxi prepare
34+
- run: pnpm nuxt prepare
3535
- run: pnpm typecheck

.github/workflows/e2e.yml

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -13,15 +13,15 @@ jobs:
1313
lighthouse:
1414
environment:
1515
name: ${{ github.event.deployment.environment || 'Production' }}
16-
url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }}
16+
url: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }}
1717
if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch'
1818
runs-on: ubuntu-latest
1919
steps:
2020
- uses: actions/checkout@v3
2121
- name: Audit URLs using Lighthouse
2222
uses: treosh/lighthouse-ci-action@v12
2323
with:
24-
urls: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }}
24+
urls: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }}
2525
uploadArtifacts: true
2626
temporaryPublicStorage: true
2727
env:
@@ -30,7 +30,7 @@ jobs:
3030
warmup:
3131
environment:
3232
name: ${{ github.event.deployment.environment || 'Production' }}
33-
url: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }}
33+
url: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }}
3434
if: github.event.deployment_status.state == 'success' || github.event_name == 'workflow_dispatch'
3535
runs-on: ubuntu-latest
3636

@@ -41,4 +41,4 @@ jobs:
4141
curl -sS $BASE_URL/api/sponsors
4242
curl -sS $BASE_URL/api/modules
4343
env:
44-
BASE_URL: ${{ github.event.inputs.url || github.event.deployment.payload.web_url || github.event.deployment_status.target_url }}
44+
BASE_URL: ${{ github.event.inputs.url || github.event.deployment_status.environment_url }}

.github/workflows/nuxthub.yml

Lines changed: 48 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,48 @@
1+
name: Deploy to NuxtHub
2+
3+
on:
4+
push:
5+
repository_dispatch:
6+
types: [docs-updated]
7+
8+
jobs:
9+
deploy:
10+
name: "Deploy to NuxtHub"
11+
runs-on: ubuntu-latest
12+
environment:
13+
name: ${{ github.ref == 'refs/heads/main' && 'production' || 'preview' }}
14+
url: ${{ steps.deploy.outputs.deployment-url }}
15+
permissions:
16+
contents: read
17+
id-token: write
18+
19+
steps:
20+
- uses: actions/checkout@v4
21+
22+
- name: Install pnpm
23+
uses: pnpm/action-setup@v4
24+
25+
- name: Install Node.js
26+
uses: actions/setup-node@v4
27+
with:
28+
node-version: 22
29+
cache: 'pnpm'
30+
31+
- name: Install dependencies
32+
run: pnpm install
33+
34+
- name: Ensure NuxtHub module is installed
35+
run: pnpx nuxthub@latest ensure
36+
37+
- name: Build application
38+
run: pnpm build
39+
env:
40+
NUXT_UI_PRO_LICENSE: ${{ secrets.NUXT_UI_PRO_LICENSE }}
41+
NUXT_CONTENT_PREVIEW_STAGING_API: https://dev-api.nuxt.studio
42+
NUXT_SITE_URL: https://nuxt.com
43+
44+
- name: Deploy to NuxtHub
45+
uses: nuxt-hub/action@v1
46+
id: deploy
47+
with:
48+
project-key: nuxt-com-lvuq

.gitignore

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -18,3 +18,5 @@ dist
1818
# Local editor
1919
*.code-workspace
2020
.idea/
21+
22+
.wrangler

CODEOWNERS

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
* @danielroe
2+
* @atinux

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ pnpm install
2121
cp .env.example .env
2222
```
2323

24-
Клонируйте/сделайте форк репозитория [translation-gang/nuxt](https://github.com/translation-gang/nuxt) в нужном вам месте (но не в проекте Nuxt.com) и внутри директории `docs/`, запустите:
24+
Clone/Fork [nuxt/nuxt](https://github.com/translation-gang/nuxt) repo where you want (but not in the Nuxt.com project) and inside the root of the repo, run:
2525

2626
```bash
2727
pwd
@@ -33,7 +33,7 @@ pwd
3333
echo %cd%
3434
```
3535

36-
Скопируйте вывод команды выше и вставьте его в переменную `NUXT_DOCS_PATH` в файле `.env`.
36+
Скопируйте вывод команды выше и вставьте его в переменную `NUXT_PATH` в файле `.env`.
3737

3838
## Разработка
3939

@@ -45,7 +45,7 @@ pnpm dev
4545

4646
### Добавьте шаблон Nuxt
4747

48-
Чтобы добавить шаблон Nuxt в список, добавьте его в список на странице [./content/4.templates.yml](./content/4.templates.yml).
48+
Чтобы добавить шаблон Nuxt в список, добавьте его в папку [./content/templates](./content/templates).
4949

5050
Обязательно запустите сервер разработки, чтобы сгенерировать скриншот для шаблона, и перейдите по адресу <http://localhost:3000/templates>, чтобы увидеть результат.
5151

app/app.config.ts

Lines changed: 18 additions & 180 deletions
Original file line numberDiff line numberDiff line change
@@ -1,188 +1,26 @@
11
export default defineAppConfig({
22
ui: {
3-
primary: 'green',
4-
gray: 'slate',
5-
avatar: {
6-
default: {
7-
icon: 'i-ph-image'
8-
}
9-
},
10-
button: {
11-
default: {
12-
loadingIcon: 'i-ph-spinner'
13-
}
14-
},
15-
input: {
16-
default: {
17-
loadingIcon: 'i-ph-spinner'
18-
}
19-
},
20-
select: {
21-
default: {
22-
loadingIcon: 'i-ph-spinner',
23-
trailingIcon: 'i-ph-caret-down'
24-
}
25-
},
26-
selectMenu: {
27-
default: {
28-
selectedIcon: 'i-ph-check'
29-
}
30-
},
31-
notification: {
32-
default: {
33-
closeButton: {
34-
icon: 'i-ph-x'
35-
}
36-
}
37-
},
38-
commandPalette: {
39-
default: {
40-
icon: 'i-ph-magnifying-glass',
41-
loadingIcon: 'i-ph-spinner',
42-
selectedIcon: 'i-ph-check',
43-
emptyState: {
44-
icon: 'i-ph-magnifying-glass'
45-
},
46-
closeButton: {
47-
icon: 'i-ph-x'
48-
}
49-
}
50-
},
51-
table: {
52-
default: {
53-
sortAscIcon: 'i-ph-sort-ascending',
54-
sortDescIcon: 'i-ph-sort-descending',
55-
sortButton: {
56-
icon: 'i-ph-list'
57-
},
58-
loadingState: {
59-
icon: 'i-ph-spinner'
60-
},
61-
emptyState: {
62-
icon: 'i-ph-database'
63-
}
64-
}
65-
},
66-
pagination: {
67-
default: {
68-
prevButton: {
69-
icon: 'i-ph-arrow-left'
70-
},
71-
nextButton: {
72-
icon: 'i-ph-arrow-right'
73-
}
74-
}
75-
},
76-
card: {
77-
rounded: 'rounded-xl'
78-
},
79-
tooltip: {
80-
background: '!bg-background',
81-
popper: {
82-
strategy: 'absolute'
83-
}
84-
},
85-
breadcrumb: {
86-
divider: {
87-
base: 'w-4 h-4'
88-
},
89-
default: {
90-
divider: 'i-ph-caret-right'
91-
}
92-
},
93-
// `@nuxt/ui-pro` specific
94-
variables: {
95-
dark: {
96-
background: 'var(--color-gray-950)'
97-
}
98-
},
99-
icons: {
100-
dark: 'i-ph-moon',
101-
light: 'i-ph-sun',
102-
search: 'i-ph-magnifying-glass',
103-
external: 'i-ph-arrow-up-right',
104-
chevron: 'i-ph-caret-down',
105-
hash: 'i-ph-hash'
106-
},
107-
header: {
108-
wrapper: 'lg:mb-0 lg:border-0',
109-
links: {
110-
trailingIcon: {
111-
base: 'w-4 h-4'
112-
},
113-
popover: {
114-
popper: {
115-
strategy: 'absolute'
116-
},
117-
ui: {
118-
width: 'w-[16rem]'
119-
}
120-
}
121-
},
122-
popover: {
123-
links: {
124-
active: 'dark:bg-gray-950/50',
125-
inactive: 'dark:hover:bg-gray-950/50'
126-
}
127-
},
128-
button: {
129-
icon: {
130-
open: 'i-ph-list',
131-
close: 'i-ph-x'
132-
}
133-
}
134-
},
135-
navigation: {
136-
accordion: {
137-
button: {
138-
trailingIcon: {
139-
base: 'w-4 h-4'
140-
}
141-
}
142-
}
143-
},
144-
page: {
145-
card: {
146-
to: 'dark:hover:bg-gray-900/50'
3+
colors: {
4+
primary: 'green',
5+
neutral: 'slate',
6+
important: 'violet'
7+
}
8+
},
9+
uiPro: {
10+
pageHero: {
11+
slots: {
12+
container: 'py-10 sm:py-20 lg:py-20',
13+
title: 'sm:text-5xl'
14714
}
14815
},
149-
content: {
150-
search: {
151-
fileIcon: {
152-
name: 'i-ph-file-text'
153-
}
154-
},
155-
toc: {
156-
button: {
157-
trailingIcon: {
158-
base: 'w-4 h-4'
159-
}
160-
}
161-
},
162-
surround: {
163-
icon: {
164-
prev: 'i-ph-arrow-left',
165-
next: 'i-ph-arrow-right'
166-
}
167-
},
168-
collapsible: {
169-
button: {
170-
icon: {
171-
base: 'w-3 h-3'
172-
}
173-
}
16+
prose: {
17+
img: {
18+
base: 'w-full'
17419
},
175-
prose: {
176-
code: {
177-
button: {
178-
icon: {
179-
copy: 'i-ph-copy',
180-
copied: 'i-ph-check-square'
181-
}
182-
},
183-
icon: {
184-
terminal: 'i-ph-terminal-window'
185-
}
20+
codeTree: {
21+
slots: {
22+
root: 'bg-default m-0',
23+
content: '[&>div>pre]:rounded-r-none'
18624
}
18725
}
18826
}

0 commit comments

Comments
 (0)