-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat(vue): upgrade swrv for vue 3 (#314)
* feat(*): update swrv for vue 3 * chore(examples): update basic example * chore(examples): update vite example * docs: update serve command * chore(examples): update pwa * fix: fallback IS_SERVER to false * chore(examples): update pwa * chore: bump version * chore: update peerDependencies * chore: update peerDependencies * chore: update peerDependencies * docs: update readme * docs(vitepress): switch to vitepress * ci: update node version * ci: update test config * ci: update test config * ci: update workflow * chore: resolves #285 * chore: badges * chore: badges * docs: update tagline * docs: build link * docs: outline levels
- Loading branch information
1 parent
2b599a8
commit 3cf0a4e
Showing
32 changed files
with
1,015 additions
and
3,858 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,52 @@ | ||
import { defineConfig } from 'vitepress' | ||
|
||
export default defineConfig({ | ||
title: 'swrv', | ||
description: 'swrv', | ||
head: [['link', { rel: 'icon', type: 'image/png', href: 'https://2tjosk2rxzc21medji3nfn1g-wpengine.netdna-ssl.com/wp-content/uploads/2018/08/kong-logomark-color-64px.png' }]], | ||
lastUpdated: true, | ||
themeConfig: { | ||
outline: [2, 3], | ||
socialLinks: [ | ||
{ icon: 'github', link: 'https://github.com/Kong/swrv'} | ||
], | ||
logo: '/logo_45.png', | ||
footer: { | ||
message: 'Released under the Apache-2.0 License.', | ||
copyright: 'Copyright © 2020-present Kong, Inc.' | ||
}, | ||
editLink: { | ||
pattern: 'https://github.com/Kong/swrv/edit/master/docs/:path', | ||
text: 'Edit this page on GitHub' | ||
}, | ||
nav: [ | ||
{ text: 'Home', link: '/' }, | ||
{ text: 'Getting Started', link: '/guide/getting-started' }, | ||
{ text: 'API Reference', link: '/configuration' } | ||
], | ||
sidebar: [ | ||
{ | ||
text: 'Guide', | ||
items: [ | ||
{ | ||
text: 'Getting Started', | ||
link: '/guide/getting-started' | ||
} | ||
] | ||
}, | ||
{ | ||
text: 'APIs', | ||
items: [ | ||
{ | ||
text: 'Configuration', | ||
link: '/configuration' | ||
}, | ||
{ | ||
text: 'Features', | ||
link: '/features' | ||
} | ||
] | ||
} | ||
] | ||
} | ||
}) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,3 @@ | ||
:root { | ||
--c-white: red; | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
:root { | ||
--c-brand: #0089eb; | ||
--c-brand-light: #0798ff; | ||
} | ||
|
||
.nav-bar .logo { | ||
height: 25px; | ||
margin-right: 0.5rem; | ||
} | ||
|
||
.custom-block.tip { | ||
border-color: var(--c-brand-light); | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,6 @@ | ||
import DefaultTheme from 'vitepress/theme' | ||
import './index.css' | ||
|
||
export default { | ||
...DefaultTheme, | ||
} |
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,6 +1,5 @@ | ||
--- | ||
title: Features | ||
lang: en-US | ||
--- | ||
|
||
# {{ $frontmatter.title }} | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.