UI fixups from Lidarr

pull/2/head
Qstick 5 years ago
parent c0bb1392e2
commit ee9d35e55f

@ -24,7 +24,7 @@
"ignoreAtRules": [ "ignoreAtRules": [
"/^add\\-mixin$/", "/^add\\-mixin$/",
"/^define\\-mixin$/" "/^define\\-mixin$/"
] ]
} }
], ],
"at-rule-no-vendor-prefix": true, "at-rule-no-vendor-prefix": true,

@ -4,6 +4,7 @@ const livereload = require('gulp-livereload');
const path = require('path'); const path = require('path');
const webpack = require('webpack'); const webpack = require('webpack');
const errorHandler = require('./helpers/errorHandler'); const errorHandler = require('./helpers/errorHandler');
const OptimizeCssAssetsPlugin = require('optimize-css-assets-webpack-plugin');
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin');
const TerserPlugin = require('terser-webpack-plugin'); const TerserPlugin = require('terser-webpack-plugin');
@ -47,6 +48,8 @@ HtmlWebpackPlugin.prototype.injectAssetsIntoHtml = function(html, assets, assetT
}; };
const plugins = [ const plugins = [
new OptimizeCssAssetsPlugin({}),
new webpack.DefinePlugin({ new webpack.DefinePlugin({
__DEV__: !isProduction, __DEV__: !isProduction,
'process.env.NODE_ENV': isProduction ? JSON.stringify('production') : JSON.stringify('development') 'process.env.NODE_ENV': isProduction ? JSON.stringify('production') : JSON.stringify('development')
@ -254,7 +257,7 @@ gulp.task('webpack', () => {
gulp.task('webpackWatch', () => { gulp.task('webpackWatch', () => {
config.watch = true; config.watch = true;
return webpackStream(config) return webpackStream(config, webpack)
.on('error', errorHandler) .on('error', errorHandler)
.pipe(gulp.dest('_output/UI')) .pipe(gulp.dest('_output/UI'))
.on('error', errorHandler) .on('error', errorHandler)

@ -43,8 +43,8 @@ class IndexerSettings extends Component {
} }
} }
// Render
// //
// Render
render() { render() {
const { const {

@ -51,7 +51,7 @@ class AddIndexerModalContent extends Component {
<Alert kind={kinds.INFO}> <Alert kind={kinds.INFO}>
<div>Radarr supports any indexer that uses the Newznab standard, as well as other indexers listed below.</div> <div>Radarr supports any indexer that uses the Newznab standard, as well as other indexers listed below.</div>
<div>For more information on the individual indexers, clink on the info buttons.</div> <div>For more information on the individual indexers, click on the info buttons.</div>
</Alert> </Alert>
<FieldSet legend="Usenet"> <FieldSet legend="Usenet">

@ -84,7 +84,7 @@ class Indexer extends Component {
<IconButton <IconButton
className={styles.cloneButton} className={styles.cloneButton}
title="Clone Profile" title="Clone Indexer"
name={icons.CLONE} name={icons.CLONE}
onPress={this.onCloneIndexerPress} onPress={this.onCloneIndexerPress}
/> />

@ -38,6 +38,9 @@ class MetadataSettings extends Component {
} }
} }
//
// Render
render() { render() {
const { const {
isSaving, isSaving,

@ -62,12 +62,10 @@
"gulp": "4.0.2", "gulp": "4.0.2",
"gulp-cached": "1.1.1", "gulp-cached": "1.1.1",
"gulp-concat": "2.6.1", "gulp-concat": "2.6.1",
"gulp-declare": "0.3.0",
"gulp-livereload": "4.0.2", "gulp-livereload": "4.0.2",
"gulp-postcss": "8.0.0", "gulp-postcss": "8.0.0",
"gulp-print": "5.0.2", "gulp-print": "5.0.2",
"gulp-sourcemaps": "2.6.5", "gulp-sourcemaps": "2.6.5",
"gulp-stripbom": "1.0.5",
"gulp-watch": "5.0.1", "gulp-watch": "5.0.1",
"gulp-wrap": "0.15.0", "gulp-wrap": "0.15.0",
"history": "4.10.1", "history": "4.10.1",
@ -81,6 +79,7 @@
"moment": "2.24.0", "moment": "2.24.0",
"mousetrap": "1.6.5", "mousetrap": "1.6.5",
"normalize.css": "8.0.1", "normalize.css": "8.0.1",
"optimize-css-assets-webpack-plugin": "5.0.3",
"postcss-color-function": "4.1.0", "postcss-color-function": "4.1.0",
"postcss-loader": "3.0.0", "postcss-loader": "3.0.0",
"postcss-mixins": "6.2.3", "postcss-mixins": "6.2.3",

Loading…
Cancel
Save