diff --git a/README.md b/README.md index 3db1128f2825469744ab6eb0c70fe814dc776458..3aa03e0fe83bbfc5e39ae7be4f6e338633962b66 100644 --- a/README.md +++ b/README.md @@ -1,19 +1,11 @@ # revolt -## CLI Commands -* `npm install`: Installs dependencies - -* `npm run start`: Runs `serve` or `dev`, depending on `NODE_ENV` value. Defaults to `dev server` - -* `npm run dev`: Run a development, HMR server +This is the web client for Revolt, which is also available live at [app.revolt.chat](https://app.revolt.chat). -* `npm run serve`: Run a production-like server - -* `npm run build`: Production-ready build - -* `npm run lint`: Pass TypeScript files using TSLint +## CLI Commands -* `npm run test`: Run Jest and [`preact-render-spy`](https://github.com/mzgoddard/preact-render-spy) for your tests +* `yarn dev`: Runs a development server. +* `yarn build`: Creates a production build of the client. -For detailed explanation on how things work, checkout the [CLI Readme](https://github.com/developit/preact-cli/blob/master/README.md). +* `yarn start`: Runs a production server with the build produced above. diff --git a/src/util/themes/ThemeEngine.tsx b/src/util/themes/ThemeEngine.tsx index 7fcab1d4871666983e04a06b339d11b15a40a4a4..a37c0935ddf5eb806b8f41a1110ac28075f0629e 100644 --- a/src/util/themes/ThemeEngine.tsx +++ b/src/util/themes/ThemeEngine.tsx @@ -1,8 +1,7 @@ import { h } from 'preact'; -import { connectState, State } from '../state'; import { PRESETS } from './presets'; import { Helmet } from 'react-helmet'; -import { connect } from 'react-redux'; +import { connectState } from '../state'; import { Theme, ThemeOptions } from './types'; import { isMobile } from 'react-device-detect'; import { createContext, ReactNode, useLayoutEffect } from "react";