Bumped dependencies and v1.5.0

Signed-off-by: Ajay Bura <ajbura@gmail.com>
This commit is contained in:
Ajay Bura 2021-11-07 15:46:36 +05:30
parent 956068d0d6
commit a3270041e3
8 changed files with 1182 additions and 4599 deletions

1
.gitignore vendored
View file

@ -2,5 +2,6 @@ experiment
dist dist
node_modules node_modules
devAssets devAssets
package-lock.json
.DS_Store .DS_Store

5727
package-lock.json generated

File diff suppressed because it is too large Load diff

View file

@ -1,6 +1,6 @@
{ {
"name": "cinny", "name": "cinny",
"version": "1.4.0", "version": "1.5.0",
"description": "Yet another matrix client", "description": "Yet another matrix client",
"main": "index.js", "main": "index.js",
"engines": { "engines": {
@ -9,7 +9,7 @@
}, },
"scripts": { "scripts": {
"start": "webpack serve --config ./webpack.dev.js --open", "start": "webpack serve --config ./webpack.dev.js --open",
"build": "export NODE_OPTIONS=--openssl-legacy-provider; webpack --config ./webpack.prod.js" "build": "webpack --config ./webpack.prod.js"
}, },
"keywords": [], "keywords": [],
"author": "Ajay Bura", "author": "Ajay Bura",
@ -74,8 +74,8 @@
"style-loader": "^2.0.0", "style-loader": "^2.0.0",
"util": "^0.12.4", "util": "^0.12.4",
"webpack": "^5.62.1", "webpack": "^5.62.1",
"webpack-cli": "^4.5.0", "webpack-cli": "^4.9.1",
"webpack-dev-server": "^3.11.2", "webpack-dev-server": "^4.4.0",
"webpack-merge": "^5.7.3" "webpack-merge": "^5.7.3"
} }
} }

View file

@ -11,6 +11,10 @@
overflow: hidden; overflow: hidden;
text-overflow: ellipsis; text-overflow: ellipsis;
} }
& a {
line-height: 0;
}
} }
.file-container { .file-container {

View file

@ -468,11 +468,14 @@ Register.propTypes = {
baseUrl: PropTypes.string.isRequired, baseUrl: PropTypes.string.isRequired,
}; };
function AuthCardCopy() { function AuthCard() {
const [hsConfig, setHsConfig] = useState(null); const [hsConfig, setHsConfig] = useState(null);
const [type, setType] = useState('login'); const [type, setType] = useState('login');
const handleHsChange = (info) => setHsConfig(info); const handleHsChange = (info) => {
console.log(info);
setHsConfig(info);
};
return ( return (
<> <>
@ -538,7 +541,7 @@ function Auth() {
</TitleWrapper> </TitleWrapper>
</Header> </Header>
<div className="auth-card__content"> <div className="auth-card__content">
<AuthCardCopy /> <AuthCard />
</div> </div>
</div> </div>
)} )}

View file

@ -1,5 +1,5 @@
const cons = { const cons = {
version: '1.4.0', version: '1.5.0',
secretKey: { secretKey: {
ACCESS_TOKEN: 'cinny_access_token', ACCESS_TOKEN: 'cinny_access_token',
DEVICE_ID: 'cinny_device_id', DEVICE_ID: 'cinny_device_id',

View file

@ -1,6 +1,7 @@
const HtmlWebpackPlugin = require('html-webpack-plugin'); const HtmlWebpackPlugin = require('html-webpack-plugin');
const FaviconsWebpackPlugin = require('favicons-webpack-plugin'); const FaviconsWebpackPlugin = require('favicons-webpack-plugin');
const webpack = require('webpack'); const webpack = require('webpack');
const CopyPlugin = require("copy-webpack-plugin");
module.exports = { module.exports = {
entry: { entry: {
@ -38,15 +39,13 @@ module.exports = {
use: ['html-loader'], use: ['html-loader'],
}, },
{ {
test: /\.(svg|png|jpe?g|gif|otf|ttf)$/, test: /\.(png|jpe?g|gif|otf|ttf)$/,
use: { type: 'asset/resource',
loader: 'file-loader',
options: {
name: '[name].[hash].[ext]',
outputPath: 'assets',
},
},
}, },
{
test: /\.svg$/,
type: 'asset/inline',
}
], ],
}, },
plugins: [ plugins: [
@ -70,5 +69,12 @@ module.exports = {
new webpack.DefinePlugin({ new webpack.DefinePlugin({
'process.env': JSON.stringify(process.env), 'process.env': JSON.stringify(process.env),
}), }),
new CopyPlugin({
patterns: [
{ from: 'olm.wasm' },
{ from: '_redirects' },
{ from: 'config.json' },
],
}),
], ],
}; };

View file

@ -4,7 +4,6 @@ const { merge } = require('webpack-merge');
const MiniCssExtractPlugin = require('mini-css-extract-plugin'); const MiniCssExtractPlugin = require('mini-css-extract-plugin');
const CssMinimizerPlugin = require('css-minimizer-webpack-plugin'); const CssMinimizerPlugin = require('css-minimizer-webpack-plugin');
const { CleanWebpackPlugin } = require('clean-webpack-plugin'); const { CleanWebpackPlugin } = require('clean-webpack-plugin');
const CopyPlugin = require("copy-webpack-plugin");
module.exports = merge(common, { module.exports = merge(common, {
mode: 'production', mode: 'production',
@ -36,12 +35,5 @@ module.exports = merge(common, {
new MiniCssExtractPlugin({ new MiniCssExtractPlugin({
filename: '[name].[contenthash].bundle.css', filename: '[name].[contenthash].bundle.css',
}), }),
new CopyPlugin({
patterns: [
{ from: 'olm.wasm' },
{ from: '_redirects' },
{ from: 'config.json' },
],
}),
], ],
}); });