♻️ refactor: Replace CDN
parent
d1bfd27661
commit
bb1627fe4d
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
<img width="160" src="https://npm.elemecdn.com/@lobehub/assets-logo@1.0.0/assets/logo-3d.webp">
|
<img height="160" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
||||||
|
|
||||||
<h1 align="center">Lobe Theme</h1>
|
<h1 align="center">Lobe Theme</h1>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
<img width="160" src="https://npm.elemecdn.com/@lobehub/assets-logo/assets@1.0.0/logo-3d.webp">
|
<img height="160" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
||||||
|
|
||||||
<h1 align="center">Lobe Theme</h1>
|
<h1 align="center">Lobe Theme</h1>
|
||||||
|
|
||||||
|
|
|
||||||
|
|
@ -2,7 +2,7 @@
|
||||||
|
|
||||||
<div align="center">
|
<div align="center">
|
||||||
|
|
||||||
<img width="160" src="https://npm.elemecdn.com/@lobehub/assets-logo@1.0.0/assets/logo-3d.webp">
|
<img height="160" src="https://registry.npmmirror.com/@lobehub/assets-logo/1.0.0/files/assets/logo-3d.webp">
|
||||||
|
|
||||||
<h1 align="center">Lobe Theme</h1>
|
<h1 align="center">Lobe Theme</h1>
|
||||||
|
|
||||||
|
|
|
||||||
File diff suppressed because one or more lines are too long
28
src/App.tsx
28
src/App.tsx
|
|
@ -1,3 +1,4 @@
|
||||||
|
import { Meta } from '@lobehub/ui';
|
||||||
import { Suspense, memo, useEffect, useState } from 'react';
|
import { Suspense, memo, useEffect, useState } from 'react';
|
||||||
import { Helmet } from 'react-helmet';
|
import { Helmet } from 'react-helmet';
|
||||||
import { shallow } from 'zustand/shallow';
|
import { shallow } from 'zustand/shallow';
|
||||||
|
|
@ -35,33 +36,8 @@ export const App = memo(() => {
|
||||||
return (
|
return (
|
||||||
<Suspense fallback="loading...">
|
<Suspense fallback="loading...">
|
||||||
<Helmet>
|
<Helmet>
|
||||||
<link
|
<Meta title={'Stable Diffusion · LobeHub'} />
|
||||||
href="https://npm.elemecdn.com/@lobehub/assets-favicons/assets/apple-touch-icon.png"
|
|
||||||
rel="apple-touch-icon"
|
|
||||||
sizes="180x180"
|
|
||||||
/>
|
|
||||||
<link
|
|
||||||
href="https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon-32x32.png"
|
|
||||||
rel="icon"
|
|
||||||
sizes="32x32"
|
|
||||||
type="image/png"
|
|
||||||
/>
|
|
||||||
<link
|
|
||||||
href="https://npm.elemecdn.com/@lobehub/assets-favicons/assets/favicon-16x16.png"
|
|
||||||
rel="icon"
|
|
||||||
sizes="16x16"
|
|
||||||
type="image/png"
|
|
||||||
/>
|
|
||||||
<link href={manifest} rel="manifest" />
|
<link href={manifest} rel="manifest" />
|
||||||
<link
|
|
||||||
color="#000000"
|
|
||||||
href="https://npm.elemecdn.com/@lobehub/assets-favicons/assets/safari-pinned-tab.svg"
|
|
||||||
rel="mask-icon"
|
|
||||||
/>
|
|
||||||
<meta content="LobeHub" name="apple-mobile-web-app-title" />
|
|
||||||
<meta content="LobeHub" name="application-name" />
|
|
||||||
<meta content="#000000" name="msapplication-TileColor" />
|
|
||||||
<meta content="#000000" name="theme-color" />
|
|
||||||
</Helmet>
|
</Helmet>
|
||||||
<Layout>{storeLoading === false && loading === false ? <Index /> : <Loading />}</Layout>
|
<Layout>{storeLoading === false && loading === false ? <Index /> : <Loading />}</Layout>
|
||||||
</Suspense>
|
</Suspense>
|
||||||
|
|
|
||||||
|
|
@ -4,12 +4,12 @@ const manifest = {
|
||||||
icons: [
|
icons: [
|
||||||
{
|
{
|
||||||
sizes: '192x192',
|
sizes: '192x192',
|
||||||
src: 'https://npm.elemecdn.com/@lobehub/assets-favicons/assets/android-chrome-192x192.png',
|
src: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-192x192.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
{
|
{
|
||||||
sizes: '512x512',
|
sizes: '512x512',
|
||||||
src: 'https://npm.elemecdn.com/@lobehub/assets-favicons/assets/android-chrome-512x512.png',
|
src: 'https://registry.npmmirror.com/@lobehub/assets-favicons/1.1.0/files/assets/android-chrome-512x512.png',
|
||||||
type: 'image/png',
|
type: 'image/png',
|
||||||
},
|
},
|
||||||
],
|
],
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue