Skip to content
This repository was archived by the owner on Sep 20, 2024. It is now read-only.

Commit 9fdc768

Browse files
committed
chore: changed getting started button to nuxt-link
1 parent e3e3f7c commit 9fdc768

File tree

2 files changed

+33
-2
lines changed

2 files changed

+33
-2
lines changed

packages/chakra-ui-docs/components/Hero.vue

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
left-icon="bolt"
3333
variant-color="vue"
3434
size="lg"
35-
@click="$router.push('/getting-started')"
35+
as="nuxt-link"
3636
>
3737
Get started
3838
</CButton>

packages/chakra-ui-docs/static/sw.js

Lines changed: 32 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1,32 @@
1-
// THIS FILE SHOULD NOT BE VERSION CONTROLLED
1+
importScripts('https://cdn.jsdelivr.net/npm/[email protected]/workbox/workbox-sw.js')
2+
3+
// --------------------------------------------------
4+
// Configure
5+
// --------------------------------------------------
6+
7+
// Set workbox config
8+
workbox.setConfig({
9+
"debug": false
10+
})
11+
12+
// Start controlling any existing clients as soon as it activates
13+
workbox.core.clientsClaim()
14+
15+
// Skip over the SW waiting lifecycle stage
16+
workbox.core.skipWaiting()
17+
18+
workbox.precaching.cleanupOutdatedCaches()
19+
20+
// --------------------------------------------------
21+
// Precaches
22+
// --------------------------------------------------
23+
24+
// Precache assets
25+
26+
// --------------------------------------------------
27+
// Runtime Caching
28+
// --------------------------------------------------
29+
30+
// Register route handlers for runtimeCaching
31+
workbox.routing.registerRoute(new RegExp('/_nuxt/'), new workbox.strategies.CacheFirst ({}), 'GET')
32+
workbox.routing.registerRoute(new RegExp('/'), new workbox.strategies.NetworkFirst ({}), 'GET')

0 commit comments

Comments
 (0)