Skip to content
Merged
Show file tree
Hide file tree
Changes from 30 commits
Commits
Show all changes
37 commits
Select commit Hold shift + click to select a range
9e80adb
chore(deps): bump vue from 3.5.0-beta.1 to 3.5.0-beta.2 (#2972)
dependabot[bot] Aug 20, 2024
9a4c812
Added a link explaining how to use inheritAttrs in normal <script> (#…
NataliaTepluhina Aug 20, 2024
44fc18f
docs: update defcc latest information (#2979)
defcc Aug 23, 2024
c38ade5
chore(deps): bump vitepress from 1.3.2 to 1.3.4 (#2982)
dependabot[bot] Aug 27, 2024
059bdf2
Update Yiling's personal information (#2983)
Justineo Aug 29, 2024
c8d996e
chore: update devtools info to point to new version
yyx990803 Sep 2, 2024
253615a
fix: update links to Vue Loader docs (#2988)
jfaustino Sep 2, 2024
c69984f
chore(deps): bump vue from 3.5.0-beta.2 to 3.5.0-rc.1 (#2986)
dependabot[bot] Sep 3, 2024
290f997
3.5: failSilently for onScopeDispose
yyx990803 Aug 29, 2024
ad9a9c5
3.5: reactive props destructure
yyx990803 Aug 29, 2024
66a8ced
3.5: watcher side effect cleanup + WatchHandle pause / resume
yyx990803 Aug 30, 2024
cd4b2e1
3.5: watch deep support number
yyx990803 Aug 30, 2024
b9ed0eb
3.5: useId and app.config.idPrefix
yyx990803 Aug 30, 2024
e1a923e
3.5: lazy hydration
yyx990803 Aug 30, 2024
9bc11b2
3.5: data-allow-mismatch
yyx990803 Aug 30, 2024
e3d9fc6
3.5: add composition api helpers page
yyx990803 Aug 30, 2024
9d52084
useAttrs, useSlots, useModel
yyx990803 Aug 30, 2024
71cec81
3.5: useTemplateRef()
yyx990803 Aug 30, 2024
3c4ecd8
app.config.throwUnhandledErrorInProduction
yyx990803 Aug 30, 2024
b6339b6
remove version badages for previous minors
yyx990803 Aug 30, 2024
444c780
3.5: deferred teleport
yyx990803 Aug 30, 2024
83a0cf1
3.5: custom elements
yyx990803 Sep 2, 2024
b9c86c0
3.5: props destructure extras
yyx990803 Sep 2, 2024
e565332
fix dead link
yyx990803 Sep 2, 2024
60cebdc
Update src/api/application.md
yyx990803 Sep 3, 2024
2584dd1
bump vue to 3.5
yyx990803 Sep 3, 2024
bfcf01f
fix(typo): watch guide typo (#2989)
ralacerda Sep 3, 2024
7f55589
docs: remarks about minor versions (#2990)
AloisSeckar Sep 4, 2024
6d4e543
feat(*): add vuetoronto banner (#2992)
jillztom Sep 4, 2024
d044079
docs: sync upstream translate
ikxin Sep 9, 2024
07b415c
Apply suggestions from code review
ikxin Sep 10, 2024
6912db3
Apply suggestions from code review
Justineo Sep 10, 2024
320908a
Apply suggestions from code review
Justineo Sep 10, 2024
00c21aa
Apply suggestions from code review
Justineo Sep 10, 2024
308ee4d
Apply suggestions from code review
Justineo Sep 10, 2024
a9a703a
Apply suggestions from code review
Justineo Sep 10, 2024
80157a7
Update src/guide/components/props.md
Justineo Sep 10, 2024
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
5 changes: 5 additions & 0 deletions .vitepress/config.ts
Original file line number Diff line number Diff line change
Expand Up @@ -368,6 +368,10 @@ export const sidebar: ThemeConfig['sidebar'] = {
{
text: '依赖注入',
link: '/api/composition-api-dependency-injection'
},
{
text: 'Helpers',
link: '/api/composition-api-helpers'
}
]
},
Expand Down Expand Up @@ -417,6 +421,7 @@ export const sidebar: ThemeConfig['sidebar'] = {
{
text: '进阶 API',
items: [
{ text: '自定义元素', link: '/api/custom-elements' },
{ text: '渲染函数', link: '/api/render-function' },
{ text: '服务端渲染', link: '/api/ssr' },
{ text: 'TypeScript 工具类型', link: '/api/utility-types' },
Expand Down
4 changes: 2 additions & 2 deletions .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__ = ''
// restore(`vue-docs-banner-${__VUE_BANNER_ID__}`, 'banner-dismissed')
window.__VUE_BANNER_ID__ = 'vt2024_1'
restore(`vue-docs-banner-${__VUE_BANNER_ID__}`, 'banner-dismissed')
})()
88 changes: 75 additions & 13 deletions .vitepress/theme/components/Banner.vue
Original file line number Diff line number Diff line change
Expand Up @@ -22,16 +22,31 @@ function dismiss() {

<template>
<div class="banner" v-if="open">
<a target="_blank"></a>
<p class="vt-banner-text">
<span class="vt-text-primary">VueConf Toronto</span>
<span class="vt-tagline"> - Join the premier Vue.js conference</span>
| 18-20 Nov 2024 <span class="vt-place"> - Toronto, Canada</span>
<a
target="_blank"
class="vt-primary-action"
href="https://vuetoronto.com/?utm_source=vuejs&utm_content=top_banner"
>
Register
</a>
</p>
<button @click="dismiss">
<VTIconPlus class="close" />
</button>
<p class="vt-banner-text vt-coupon">
<span class="vt-text-primary">Use code</span> VUEJS
<span class="vt-text-primary">to get 15% off</span>
</p>
</div>
</template>

<style>
html:not(.banner-dismissed) {
--vt-banner-height: 30px;
--vt-banner-height: 60px;
}
</style>

Expand All @@ -50,12 +65,10 @@ html:not(.banner-dismissed) {
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%
);
background: #11252b;
display: flex;
justify-content: center;
align-items: center;
}

.banner-dismissed .banner {
Expand All @@ -70,7 +83,7 @@ button {
position: absolute;
right: 0;
top: 0;
padding: 5px;
padding: 20px 10px;
}

.close {
Expand All @@ -79,10 +92,59 @@ button {
fill: #fff;
transform: rotate(45deg);
}
/*
@media (max-width: 720px) {
a > span {

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

.vt-text-primary {
color: #75c05e;
}

.vt-primary-action {
background: #75c05e;
color: #121c1a;
padding: 8px 15px;
border-radius: 5px;
font-size: 14px;
text-decoration: none;
margin: 0 20px;
font-weight: bold;
}
.vt-primary-action:hover {
text-decoration: none;
background: #5a9f45;
}

@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: 7px 10px;
}
.vt-time-now {
display: none;
}
}

@media (max-width: 560px) {
.vt-place {
display: none;
}
} */
}
</style>
4 changes: 2 additions & 2 deletions .vitepress/theme/index.ts
Original file line number Diff line number Diff line change
Expand Up @@ -10,15 +10,15 @@ import {
} from './components/preferences'
import SponsorsAside from './components/SponsorsAside.vue'
// import VueSchoolLink from './components/VueSchoolLink.vue'
// import Banner from './components/Banner.vue'
import Banner from './components/Banner.vue'
import WwAds from './components/WwAds.vue'
// import TextAd from './components/TextAd.vue'

export default Object.assign({}, VPTheme, {
Layout: () => {
// @ts-ignore
return h(VPTheme.Layout, null, {
// banner: () => h(Banner),
banner: () => h(Banner),
'sidebar-top': () => h(PreferenceSwitch),
'sidebar-bottom': () => h(SecurityUpdateBtn),
'aside-mid': () => h(SponsorsAside),
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@
"dynamics.js": "^1.1.5",
"gsap": "^3.12.5",
"vitepress": "^1.3.2",
"vue": "^3.5.0-beta.1"
"vue": "^3.5.0"
},
"devDependencies": {
"@types/body-scroll-lock": "^3.1.2",
Expand Down
Loading