-
Notifications
You must be signed in to change notification settings - Fork 2
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: add
expiresIn
app config for local storage caching
- Loading branch information
Showing
8 changed files
with
1,135 additions
and
1,014 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,11 @@ | ||
export default defineNuxtConfig({ | ||
modules: ['../src/module'], | ||
nuxtTwemoji: {}, | ||
modules: ['nuxt-twemoji'], | ||
twemoji: { | ||
|
||
}, | ||
devtools: { enabled: true }, | ||
compatibilityDate: '2024-07-14', | ||
imports: { | ||
autoImport: true, | ||
}, | ||
}) |
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 |
---|---|---|
|
@@ -8,6 +8,7 @@ | |
"generate": "nuxi generate" | ||
}, | ||
"dependencies": { | ||
"nuxt": "latest" | ||
"nuxt": "latest", | ||
"nuxt-twemoji": "latest" | ||
} | ||
} |
Large diffs are not rendered by default.
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,2 @@ | ||
packages: | ||
- "playground" |
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,10 @@ | ||
export const schema = { | ||
expiresIn: { | ||
$default: 3.154e+7, | ||
$schema: { | ||
title: 'Default SVG cache expiration time', | ||
description: 'Time in seconds for the SVG local storage cache to expire, defaults to 1 year', | ||
tsType: 'number', | ||
}, | ||
}, | ||
} |
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,15 @@ | ||
export interface NuxtTwemojiRuntimeOptions { | ||
/** | ||
* Default SVG cache expiration time | ||
* | ||
* Time in seconds for the SVG local storage cache to expire, defaults to 1 year | ||
* | ||
* @default 3.154e+7 | ||
* | ||
*/ | ||
expiresIn: number | ||
} | ||
|
||
export interface ModuleOptions extends Partial<NuxtTwemojiRuntimeOptions> { | ||
mode?: 'client' | 'server' | 'universal' | ||
} |