Skip to content

Commit

Permalink
docs: rename to vitesse-react
Browse files Browse the repository at this point in the history
  • Loading branch information
yunhanhuang committed Oct 31, 2024
1 parent 346cf5d commit 596e7b0
Show file tree
Hide file tree
Showing 7 changed files with 13 additions and 18 deletions.
7 changes: 1 addition & 6 deletions .vscode/settings.example.json
Original file line number Diff line number Diff line change
Expand Up @@ -4,10 +4,5 @@
"editor.codeActionsOnSave": {
"source.fixAll.eslint": "explicit"
},
"eslint.validate": [
"javascript",
"typescript",
"javascriptreact",
"typescriptreact"
]
"eslint.validate": ["javascript", "typescript", "javascriptreact", "typescriptreact"]
}
8 changes: 4 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
# Revitesse Lite
# Vitesse React

It is a copy of [Vitesse Lite](https://github.com/antfu/vitesse-lite), but it uses React. All the configs always keep fresh.
It is a copy of [Vitesse](https://github.com/antfu/vitesse), but it uses React. All the configs always keep fresh.

## Features

Expand All @@ -16,14 +16,14 @@ It is a copy of [Vitesse Lite](https://github.com/antfu/vitesse-lite), but it us

### GitHub Template

[Create a repo from this template on GitHub](https://github.com/flower-f/revitesse-lite/generate).
[Create a repo from this template on GitHub](https://github.com/flower-f/vitesse-react/generate).

### Clone to local

If you prefer to do it manually with the cleaner git history

```bash
npx degit flower-f/revitesse-lite xxx
npx degit flower-f/vitesse-react xxx
cd xxx
git init # To make sure that the husky can work well
# If you use Linux system, you might need to execute 'chmod 777 ./.husky/*'
Expand Down
6 changes: 3 additions & 3 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,16 @@
<meta charset="UTF-8" />
<link rel="icon" type="image/svg+xml" href="/favicon.svg" />
<meta name="viewport" content="width=device-width, initial-scale=1.0" />
<title>Revitesse Lite</title>
<title>Vitesse React</title>
<meta name="description" content="Opinionated Vite Starter Template">
</head>
<body class="font-sans dark:text-white dark:bg-hex-121212">
<div id="root"></div>
<script>
(function () {
const prefersDark = window.matchMedia && window.matchMedia('(prefers-color-scheme: dark)').matches
const setting = localStorage.getItem('revitesse-dark-mode')
? localStorage.getItem('revitesse-dark-mode') === 'true'
const setting = localStorage.getItem('vitesse-react-dark-mode')
? localStorage.getItem('vitesse-react-dark-mode') === 'true'
? 'dark'
: 'light'
: 'auto'
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
{
"name": "revitesse-lite",
"name": "vitesse-react",
"private": true,
"version": "0.0.0",
"type": "module",
Expand Down
2 changes: 1 addition & 1 deletion src/components/Footer.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ export const Footer = () => {
<a
className='icon-btn iconify carbon--logo-github'
rel='noreferrer'
href='https://github.com/flower-f/revitesse-lite'
href='https://github.com/flower-f/vitesse-react'
target='_blank'
title='GitHub'
>
Expand Down
2 changes: 1 addition & 1 deletion src/hooks/useDark.ts
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@ import { useEffect } from 'react';

const useDarkStorage = (defaultValue?: boolean) => {
const isDarkOS = useMedia('(prefers-color-scheme: dark)');
const [isDarkMode, setDarkMode] = useLocalStorage('revitesse-dark-mode', defaultValue ?? isDarkOS ?? false);
const [isDarkMode, setDarkMode] = useLocalStorage('vitesse-react-dark-mode', defaultValue ?? isDarkOS ?? false);

useUpdateEffect(() => {
setDarkMode(isDarkOS);
Expand Down
4 changes: 2 additions & 2 deletions src/pages/IndexPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -21,8 +21,8 @@ export const IndexPage = () => {
<div>
<div className='iconify inline-block text-4xl carbon--campsite hover:opacity-75'></div>
<p>
<a rel='noreferrer' href='https://github.com/flower-f/revitesse-lite' target='_blank'>
Revitesse Lite
<a rel='noreferrer' href='https://github.com/flower-f/vitesse-react' target='_blank'>
Vitesse React
</a>
</p>

Expand Down

0 comments on commit 596e7b0

Please sign in to comment.