Commit Graph

43 Commits

Author SHA1 Message Date
Trim21
2a0d29c1f5 style: add new rule for imports (#785) 2024-08-13 22:31:39 +00:00
Trim21
ad355c5935 build: disable sass deprecated warning (#778) 2024-08-10 13:28:39 +00:00
Jesse Chan
477919856b server: create production build with webpack directly 2021-11-28 22:48:22 -08:00
Jesse Chan
d746831783 Revert "client: migrate some styles to CSS module or CSS-in-JS"
This reverts commit ffcc5c8e05.

Hit some visual regressions.
2021-11-19 01:56:22 -08:00
Jesse Chan
ffcc5c8e05 client: migrate some styles to CSS module or CSS-in-JS 2021-11-08 23:20:09 -08:00
Jesse Chan
dc17bfb2eb dependencies: bump (major) 2021-09-06 19:22:23 +08:00
Jesse Chan
6f957480d0 dependencies: bump (major) 2021-04-22 22:52:20 +08:00
Jesse Chan
c4bf66fbf6 client: migrate to lingui.js 2021-01-29 20:53:55 +08:00
Jesse Chan
73bc640c8e client: move to new React JSX factory styles 2021-01-20 12:39:44 +08:00
Jesse Chan
ac1ffdb4a9 Revert "client: initial service worker support"
This reverts commit 3c015c6f09.

Service worker does not work well with HTTP basic auth. Plus,
some caching policy problems need to be figured out first.
2020-12-14 22:07:21 +08:00
Jesse Chan
3c015c6f09 client: initial service worker support 2020-12-13 15:37:40 +08:00
Jesse Chan
4e108ad9cf client: remove legacy font formats
All supported browsers support WOFF 2.0.
2020-12-03 18:05:40 +08:00
Jesse Chan
150572ea38 client: remove unused typed-css-modules-loader 2020-11-15 20:41:23 +08:00
Jesse Chan
7b2bf411ee client: remove unused svg component generator 2020-11-15 20:08:40 +08:00
Jesse Chan
963c146718 dependencies: bump Webpack to 5 2020-11-04 00:05:42 +08:00
Jesse Chan
a2fdc67b07 dependencies: switch to css-minimizer-webpack-plugin 2020-11-03 23:13:30 +08:00
Jesse Chan
f8f972aaf0 client: AboutTab: use loader to pre-process ABOUT.md 2020-10-20 17:57:23 +08:00
Jesse Chan
7e5182a04a client: webpack: process file assets with allowed file extension list 2020-10-20 17:57:23 +08:00
Jesse Chan
cce56235b9 client: build: add progress bar of webpack build process 2020-10-17 13:44:06 +08:00
Jesse Chan
61002f698b webpack: exclude node_modules from source-map-loader 2020-10-14 10:58:52 +08:00
Jesse Chan
b710ad4cf2 client: set minimum chunk size to 10000 chars 2020-09-18 18:13:40 +08:00
Jesse Chan
a92375fb65 TorrentPeers: manage dynamic geoip flag loading via JS 2020-09-18 17:57:35 +08:00
Jesse Chan
4613713a5d client: use extracted CSS for production build 2020-09-18 17:57:32 +08:00
Jesse Chan
aaf873d9fa dependencies: bump (major) 2020-09-18 00:04:57 +08:00
Jesse Chan
485bb1ff34 i18n: implement dynamic language loading 2020-09-17 19:56:53 +08:00
Jesse Chan
656fd60b24 Enforce client, server isolation 2020-08-23 17:05:01 +08:00
Jesse Chan
f5fa7908b7 client: use relative path in static assets 2020-08-23 15:48:55 +08:00
Jesse Chan
c7f69407dd TorrentPeers: Simplify peer geo flag handling
Signed-off-by: Jesse Chan <jc@linux.com>
2020-08-04 16:16:42 +08:00
Jesse Chan
4ea381049a Update dependencies (non-breaking)
This change uses the best-effort approach to update dependencies.
Changelogs of each dependency have been manually reviewed and all
dependency that doesn't *actually* have BREAKING changes or have
minimal changes are bumped to their latest versions.

In most cases, the maintainers of those dependencies don't actually
understand semvar and inappropriately bumped major version for trivial,
non-breaking changes. In other cases, the minimum supported Node version
is upgraded, which is indeed breaking but that's not a concern for this
project as a recent Node version is always expected. Or, the dependency
does have certain breaking changes but those changes are not relevant to
functions used by this project.

Also bumped versions of dependencies if only minimal changes are required:

* autoprefixer: transform from "browsers" property to browserslist
* prettier: reformated sources after update

Signed-off-by: Jesse Chan <jc@linux.com>
2020-08-04 03:16:44 +08:00
John Furrow
92404918a0 Introduce Typescript & CSS Modules (#815)
* Adding typescript support

* Begins configuring webpack builds

* Fix lint warnings

* Updates react-router

* Fixes lint configuration

* Adds missing dependency

* Restores disabled performance hints

* Renames connectStores

* Types connectStores

* Uses correct envvars and fixes missing EOF newline

* Formats files

* Defaults props to empty object

* Ignores type definitions in eslint

* Another newline

* Adjusts script invocation

* Ignore jsdoc output

* Undoes the autoformatting of CSS module types

* Improves lint rules

* Finishes webpack config changes

* Updates deps

* Fixes lint errors and attempts to fix SVG icon generator

* Fixes SVG sprite generator

* Adds type for SVG imports

* Explicitly use babelrc in SVG loader

* Formats files

* Refactors prettier formatter, formats CSS module type defs

* Updates style types

* Uses nicer syntax in typed-css-modules-loader

* Removes unnecessary div

* optional property in package.json

* package-lock

* Fixes upstream lint errors

* Removes unused modules
2019-11-22 22:47:09 -08:00
John Furrow
eefeb4e3c1 Updates css-loader and removes dead option. Fixes #805 2019-05-29 19:55:25 -07:00
John Furrow
dbedc6c7a5 Improves eslint rules (#785)
* Switch to airbnb's eslint

* Applies automatic fixes

* Clean up dependencies

* New lint rules

* Apply auto fixes

* Prettier

* Update prettier position in eslint config

* Aligns prettier and eslint

* Use partial configs for client and server directories

* Finalizes eslint config (for now)

* Applies all elsint fixes

* Removes duplciated config

* Fixes build & local dev

* Fix CI build
2019-05-02 22:21:47 -07:00
John Furrow
4346c0d6b5 Applies eslint rules (#702) 2018-09-02 21:19:43 -07:00
John Furrow
6dec5cddac Implements Prettier (#701)
* Adds and configures prettier

* Creates format script

* Runs prettier

* Adds npm scripts and checks for formatting in CI
2018-09-02 20:43:35 -07:00
John Furrow
5557a26c5d Remove config.js from client bundle 2017-12-28 21:14:45 -08:00
John Furrow
4f5151b072 Bandwidth form migrated 2017-10-22 16:21:42 -07:00
John Furrow
ca57db3fa7 Use webpack's require for flag images 2017-10-16 21:55:22 -07:00
John Furrow
fcd4e4f2ba Update dependencies 2017-10-16 21:55:22 -07:00
John Furrow
bd8a5fe152 Stop providing static assets to users 2017-10-16 21:53:17 -07:00
John Furrow
a464f751db Move files around 2017-10-16 21:52:18 -07:00
John Furrow
dc6233ed03 The build process is mostly working 2017-10-16 21:51:51 -07:00
John Furrow
709573a20e Welp, the webpack dev server actually works now 2017-10-16 21:50:07 -07:00
John Furrow
b577b7087b Minimal edits made, but not working atm 2017-10-16 21:49:36 -07:00