Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
30 commits
Select commit Hold shift + click to select a range
549b330
docs: update verbiage on recommendation on petite-vue (#3273)
WMcKibbin Aug 7, 2025
b67757e
docs: fix a typo in the Privacy Policy (#3277)
randomguy-2650 Aug 14, 2025
2100387
docs: add demo for dynamic select options in form essentials (#2417)
takkiraz Aug 14, 2025
d4527e0
docs: add MDN link to `Symbol` in provide-inject documentation (#3270)
meduzen Aug 21, 2025
9e82348
chore(deps): bump vitepress from 1.6.3 to 1.6.4
dependabot[bot] Aug 5, 2025
6379bf1
chore(deps): bump @vue/repl from 4.6.2 to 4.6.3
dependabot[bot] Aug 5, 2025
694478f
chore(deps): bump vue from 3.5.17 to 3.5.19
dependabot[bot] Aug 25, 2025
bd7378a
Update Vueschool banner script URL (#3280)
cnaallotey Aug 25, 2025
4f51084
docs: sync vite need node version (#3263)
btea Sep 2, 2025
69a165e
Datta Able Vue (#3267)
ritirathod0 Sep 2, 2025
3aa316a
chore(deps): bump vue from 3.5.19 to 3.5.20 (#3284)
dependabot[bot] Sep 2, 2025
595576c
docs(directives): using global custom directives with typescript (#3278)
hmd-ali Sep 2, 2025
4e8c062
feat: add Vue Plugins to the resources list (#3283)
Baroshem Sep 10, 2025
6a5c718
chore: bump vitepress
yyx990803 Sep 11, 2025
ca686dd
partners: update redberry copy
yyx990803 Sep 11, 2025
332cd2e
remove developers section
yyx990803 Sep 11, 2025
df8c418
delete perfops script
yyx990803 Sep 11, 2025
1ce8651
update redberry partner info
yyx990803 Sep 12, 2025
75734bc
fix redberry image
yyx990803 Sep 12, 2025
01c244f
feat(themes): update nuxt-ui themes to reflect v4 changes (#3294)
HugoRCD Sep 23, 2025
253ce23
Revert "chore: set up viteconf banner (#3266)"
yyx990803 Sep 24, 2025
118a006
docs: remove dead link (#3292)
jay-es Sep 25, 2025
abf53b9
docs: fixed a typo in watchers.md (#3296)
ImadSaddik Sep 25, 2025
7989b52
docs: fix typo - remove duplicate word "be" (#3293)
stuartwiener Sep 25, 2025
2b0b149
chore(deps): bump vue from 3.5.20 to 3.5.22
dependabot[bot] Sep 25, 2025
39406bf
chore(deps): bump @vue/repl from 4.6.3 to 4.7.0
dependabot[bot] Sep 4, 2025
31b4521
fix(nav): update Twitter link to x.com (#3291)
ppshuX Sep 30, 2025
a74ad0a
Merge remote-tracking branch 'origin/upstream' into sync
wxsms Oct 16, 2025
da9cb0c
chore(deps): update dependencies in pnpm-lock.yaml
wxsms Oct 16, 2025
d06d6a2
fix(guide): translate sections in composition-api.md to Chinese
wxsms Oct 16, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
42 changes: 23 additions & 19 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
@@ -1,12 +1,19 @@
import fs from 'fs'
import path from 'path'
import { defineConfigWithTheme, type HeadConfig, type Plugin } from 'vitepress'
import {
defineConfigWithTheme,
type HeadConfig,
type Plugin
} from 'vitepress'
import type { Config as ThemeConfig } from '@vue/theme'
import llmstxt from 'vitepress-plugin-llms'
import baseConfig from '@vue/theme/config'
import { headerPlugin } from './headerMdPlugin'
// import { textAdPlugin } from './textAdMdPlugin'
import { groupIconMdPlugin,groupIconVitePlugin } from 'vitepress-plugin-group-icons'
import {
groupIconMdPlugin,
groupIconVitePlugin
} from 'vitepress-plugin-group-icons'

const nav: ThemeConfig['nav'] = [
{
Expand Down Expand Up @@ -47,9 +54,12 @@ const nav: ThemeConfig['nav'] = [
text: '资源',
items: [
{ text: '合作伙伴', link: '/partners/' },
{ text: '开发者', link: '/developers/' },
{ text: '主题', link: '/ecosystem/themes' },
{ text: 'UI 组件', link: 'https://ui-libs.vercel.app/' },
{
text: '插件合集',
link: 'https://www.vue-plugins.org/'
},
{
text: '证书',
link: 'https://certificates.dev/vuejs/?ref=vuejs-nav'
Expand Down Expand Up @@ -97,7 +107,7 @@ const nav: ThemeConfig['nav'] = [
text: '动态',
items: [
{ text: '博客', link: 'https://blog.vuejs.org/' },
{ text: 'Twitter', link: 'https://twitter.com/vuejs' },
{ text: 'Twitter', link: 'https://x.com/vuejs' },
{ text: '活动', link: 'https://events.vuejs.org/' },
{ text: '新闻简报', link: '/ecosystem/newsletters' }
]
Expand Down Expand Up @@ -128,13 +138,9 @@ const nav: ThemeConfig['nav'] = [
link: '/sponsor/'
},
{
text: '专家',
badge: { text: '新' },
activeMatch: `^/(partners|developers)/`,
items: [
{ text: '合作伙伴', link: '/partners/' },
{ text: '开发者', link: '/developers/', badge: { text: '新' } }
]
text: '合作伙伴',
activeMatch: `^/partners/`,
link: '/partners/'
}
]

Expand Down Expand Up @@ -497,7 +503,7 @@ export const sidebar: ThemeConfig['sidebar'] = {
{
text: '带过渡动效的列表',
link: '/examples/#list-transition'
},
}
]
},
{
Expand Down Expand Up @@ -664,11 +670,10 @@ export default defineConfigWithTheme<ThemeConfig>({
[
'script',
{
src: 'https://vueschool.io/banner.js?affiliate=vuejs&type=top',
src: 'https://media.bitterbrains.com/main.js?from=vuejs&type=top',
async: 'true'
}
],
inlineScript('perfops.js')
]
],

themeConfig: {
Expand Down Expand Up @@ -740,7 +745,7 @@ export default defineConfigWithTheme<ThemeConfig>({
{
link: 'https://pl.vuejs.org',
text: 'Polski',
repo: 'https://github.com/vuejs-translations/docs-pl',
repo: 'https://github.com/vuejs-translations/docs-pl'
},
{
link: '/translations/',
Expand Down Expand Up @@ -803,7 +808,7 @@ export default defineConfigWithTheme<ThemeConfig>({

socialLinks: [
{ icon: 'github', link: 'https://github.com/vuejs/' },
{ icon: 'twitter', link: 'https://twitter.com/vuejs' },
{ icon: 'twitter', link: 'https://x.com/vuejs' },
{ icon: 'discord', link: 'https://discord.com/invite/vue' }
],

Expand All @@ -825,8 +830,7 @@ export default defineConfigWithTheme<ThemeConfig>({
markdown: {
theme: 'github-dark',
config(md) {
md.use(headerPlugin)
.use(groupIconMdPlugin)
md.use(headerPlugin).use(groupIconMdPlugin)
// .use(textAdPlugin)
}
},
Expand Down
9 changes: 0 additions & 9 deletions .vitepress/inlined-scripts/perfops.js

This file was deleted.

2 changes: 1 addition & 1 deletion .vitepress/inlined-scripts/restorePreference.js
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
restore('vue-docs-prefer-composition', 'prefer-composition', true)
restore('vue-docs-prefer-sfc', 'prefer-sfc', true)

// window.__VUE_BANNER_ID__ = 'viteconf2025'
// window.__VUE_BANNER_ID__ = ''
// restore(`vue-docs-banner-${__VUE_BANNER_ID__}`, 'banner-dismissed')
})()
179 changes: 19 additions & 160 deletions .vitepress/theme/components/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -20,48 +20,12 @@ function dismiss() {
}
</script>


<template>
<div class="banner" v-if="open">
<svg style="margin-right: 0.5rem" width="20" height="20" viewBox="0 0 30 30" fill="none"
xmlns="http://www.w3.org/2000/svg">
<g>
<path
d="M20.3653 1.01733L11.1779 2.87249C11.0895 2.87249 11.0012 2.96082 11.0012 2.96082C10.9128 3.04916 10.9128 3.13751 10.9128 3.13751L10.3828 13.2083C10.3828 13.2967 10.3828 13.2967 10.3828 13.3851C10.3828 13.4734 10.4711 13.4734 10.4711 13.4734C10.4711 13.4734 10.5595 13.5618 10.6478 13.5618C10.7361 13.5618 10.7361 13.5618 10.8245 13.5618L13.3864 12.9433C13.6514 12.855 13.8281 13.12 13.8281 13.3851L13.033 17.3603C12.9447 17.6254 13.2097 17.8905 13.4748 17.8021L15.0648 17.272C15.3299 17.1837 15.5066 17.4487 15.5066 17.7137L14.2697 23.8976C14.1815 24.251 14.7115 24.5159 14.8882 24.1626L15.0648 23.8976L22.5738 8.08458C22.5738 7.90789 22.3088 7.55453 22.0438 7.64287L19.3935 8.17292C19.1286 8.26125 18.9519 7.99624 19.0402 7.73122L20.7187 1.45903C20.807 1.19401 20.6304 0.928988 20.3653 1.01733Z"
fill="url(#paint0_linear_648_13)" />
<path
d="M29.6424 3.75619C29.2891 3.22614 28.5824 2.96112 27.964 3.04945L20.985 4.37457L20.72 5.43465L28.2289 4.10955C28.494 4.02121 28.7591 4.19788 28.9357 4.37457C29.1124 4.63959 29.1124 4.90462 28.9357 5.16964L15.773 28.5799C15.6846 28.845 15.4196 28.9332 15.1545 28.9332C14.8896 28.9332 14.6245 28.7566 14.5361 28.5799L1.10836 5.08129C0.931674 4.90462 0.931674 4.55125 1.10836 4.37457C1.28504 4.19788 1.46172 4.10955 1.72674 4.10955C1.72674 4.10955 1.81508 4.10955 1.90342 4.10955L9.85411 5.523L9.94246 4.55125L1.99176 3.04945C1.28504 2.96112 0.666654 3.22614 0.313291 3.75619C-0.0400717 4.28623 -0.128412 4.99295 0.22495 5.61134L13.6528 29.1099C13.9178 29.64 14.5361 29.9933 15.1545 29.9933C15.773 29.9933 16.303 29.64 16.6563 29.1099L29.8191 5.61134C30.0842 4.99295 30.0842 4.28623 29.6424 3.75619Z"
fill="url(#paint1_linear_648_13)" />
</g>
<defs>
<linearGradient id="paint0_linear_648_13" x1="10.5947" y1="3.97762" x2="20.9471" y2="17.0584"
gradientUnits="userSpaceOnUse">
<stop stop-color="#B047FF" />
<stop offset="0.75" stop-color="#FFD0D0" />
<stop offset="0.9167" stop-color="#FFF3E6" />
</linearGradient>
<linearGradient id="paint1_linear_648_13" x1="8.078" y1="1.32911" x2="23.118" y2="18.0977"
gradientUnits="userSpaceOnUse">
<stop stop-color="#57CCFF" />
<stop offset="1" stop-color="#AF48FF" />
</linearGradient>
</defs>
</svg>
<p class="vt-banner-text">
<span class="vt-main">ViteConf 2025</span>
<span class="vt-tagline"> · First time <span style="font-weight: 900;">in-person</span></span>
<span class="vt-place"> · Amsterdam</span>
<span class="vt-date"> · Oct 09-10</span>
<a target="_blank" class="vt-primary-action"
href="https://viteconf.amsterdam/?utm_source=vuejs&utm_content=top_banner">
Register
</a>
</p>
<a target="_blank"></a>
<button @click="dismiss">
<VTIconPlus class="close" />
</button>
<div class="glow glow--purple"></div>
<div class="glow glow--blue"></div>
</div>
</template>

Expand All @@ -82,80 +46,31 @@ html:not(.banner-dismissed) {
height: var(--vt-banner-height);
line-height: var(--vt-banner-height);
text-align: center;
font-size: 12px;
color: white;
background: #262626;
display: flex;
justify-content: center;
align-items: center;
overflow: hidden;
}

.glow.glow--purple {
position: absolute;
bottom: -15%;
left: -75%;
width: 80%;
aspect-ratio: 1.5;
pointer-events: none;
border-radius: 100%;
background: linear-gradient(270deg, #7a23a1, #715ebde6 60% 80%, #bd34fe00);
filter: blur(15vw);
transform: none;
opacity: .6
}

.glow.glow--blue {
position: absolute;
bottom: -15%;
right: -40%;
width: 80%;
aspect-ratio: 1.5;
pointer-events: none;
border-radius: 100%;
background: linear-gradient(180deg, #61d9ff, #0000);
filter: blur(15vw);
transform: none;
opacity: .3
}

@media (min-width: 768px) {
.glow.glow--blue {
top: -15%;
right: -40%;
width: 80%;
}

.glow.glow--purple {
bottom: -15%;
left: -40%;
width: 80%;
}
}

@media (min-width: 1025px) {
.glow.glow--blue {
top: -15%;
right: -40%;
width: 80%;
}

.glow.glow--purple {
bottom: -15%;
left: -40%;
width: 80%;
}
font-size: 13px;
font-weight: 600;
color: #fff;
background-color: var(--vt-c-green);
background: linear-gradient(
90deg,
rgba(66, 184, 131, 1) 0%,
rgba(39, 179, 137, 1) 19%,
rgba(100, 126, 255, 1) 100%
);
}

.banner-dismissed .banner {
display: none;
}

a:hover {
text-decoration: underline;
}

button {
position: absolute;
right: 0;
top: 0;
padding: 5px 5px;
padding: 5px;
}

.close {
Expand All @@ -164,65 +79,9 @@ button {
fill: #fff;
transform: rotate(45deg);
}

.vt-banner-text {
color: #fff;
font-size: 12px;
}

.vt-main {
color: transparent;
background-image: linear-gradient(120deg, #b047ff 16%, #9499ff, #9499ff);
background-clip: text;
}

.vt-primary-action {
background: radial-gradient(141.42% 141.42% at 100% 0%, #ffffff80, #fff0), radial-gradient(140.35% 140.35% at 100% 94.74%, #bd34fe, #bd34fe00), radial-gradient(89.94% 89.94% at 18.42% 15.79%, #41d1ff, #41d1ff00);
color: #fff;
padding: 4px 8px;
border-radius: 5px;
font-size: 10px;
text-decoration: none;
margin: 0 10px;
transition: all .2s ease-in-out;

&:hover {
box-shadow: 0 1px #fffc inset;
}
}


@media (max-width: 1280px) {
.banner .vt-banner-text {
font-size: 14px;
}

.vt-tagline {
display: none;
}
}

@media (max-width: 780px) {
.vt-tagline {
display: none;
}

.vt-coupon {
display: none;
}

.vt-primary-action {
margin: 0 10px;
padding: 4px 8px;
}

.vt-time-now {
display: none;
}
}

@media (max-width: 560px) {
.vt-place {
/*
@media (max-width: 720px) {
a > span {
display: none;
}
} */
Expand Down
2 changes: 1 addition & 1 deletion .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ import SponsorsAside from './components/SponsorsAside.vue'
// import VueSchoolLink from './components/VueSchoolLink.vue'
import ScrimbaLink from './components/ScrimbaLink.vue'
import WwAds from './components/WwAds.vue'
import Banner from './components/Banner.vue'
// import Banner from './components/Banner.vue'
// import TextAd from './components/TextAd.vue'

import 'vitepress/dist/client/theme-default/styles/components/vp-code-group.css'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@
"@vue/theme": "^2.3.0",
"dynamics.js": "^1.1.5",
"gsap": "^3.12.5",
"vitepress": "^1.4.3",
"vitepress": "^1.6.4",
"vue": "^3.5.12"
},
"devDependencies": {
Expand Down
Loading