Settings: add clear cache option
This commit is contained in:
parent
2da07a8d01
commit
81b5fe1450
2 changed files with 15 additions and 1 deletions
|
@ -1,6 +1,8 @@
|
||||||
import { createCacheBucket } from "~platform/cache";
|
import { createCacheBucket } from "~platform/cache";
|
||||||
|
|
||||||
export const cacheBucket = /* @__PURE__ */ createCacheBucket("mastodon");
|
export const CACHE_BUCKET_NAME = "mastodon"
|
||||||
|
|
||||||
|
export const cacheBucket = /* @__PURE__ */ createCacheBucket(CACHE_BUCKET_NAME);
|
||||||
|
|
||||||
export function toSmallCamelCase<T>(object: T) :T {
|
export function toSmallCamelCase<T>(object: T) :T {
|
||||||
if (!object || typeof object !== "object") {
|
if (!object || typeof object !== "object") {
|
||||||
|
|
|
@ -18,6 +18,7 @@ import {
|
||||||
import {
|
import {
|
||||||
Animation as AnimationIcon,
|
Animation as AnimationIcon,
|
||||||
Close as CloseIcon,
|
Close as CloseIcon,
|
||||||
|
DeleteForever,
|
||||||
Logout,
|
Logout,
|
||||||
Public as PublicIcon,
|
Public as PublicIcon,
|
||||||
Refresh as RefreshIcon,
|
Refresh as RefreshIcon,
|
||||||
|
@ -275,6 +276,17 @@ const Settings: Component = () => {
|
||||||
</ListItemButton>
|
</ListItemButton>
|
||||||
<Divider />
|
<Divider />
|
||||||
</li>
|
</li>
|
||||||
|
<li>
|
||||||
|
<ListSubheader>Storage</ListSubheader>
|
||||||
|
<ListItemButton disabled>
|
||||||
|
<ListItemIcon>
|
||||||
|
<DeleteForever />
|
||||||
|
</ListItemIcon>
|
||||||
|
<ListItemText secondary={"The cache is managed by your browser."}>
|
||||||
|
Clear cache...
|
||||||
|
</ListItemText>
|
||||||
|
</ListItemButton>
|
||||||
|
</li>
|
||||||
<li>
|
<li>
|
||||||
<ListSubheader>{t("This Application")}</ListSubheader>
|
<ListSubheader>{t("This Application")}</ListSubheader>
|
||||||
<ListItemButton component={A} href="./language">
|
<ListItemButton component={A} href="./language">
|
||||||
|
|
Loading…
Reference in a new issue