From 7f195d3acdfb4a4b878c41b8a3de4dc699bb0095 Mon Sep 17 00:00:00 2001 From: Paul Makles <paulmakles@gmail.com> Date: Wed, 20 Jan 2021 20:05:57 +0000 Subject: [PATCH] Update README.md --- README.md | 18 +++++------------- src/util/themes/ThemeEngine.tsx | 3 +-- 2 files changed, 6 insertions(+), 15 deletions(-) diff --git a/README.md b/README.md index 3db1128f..3aa03e0f 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 7fcab1d4..a37c0935 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"; -- GitLab