Commit Graph

30 Commits

Author SHA1 Message Date
Jesse Chan 04a8573511 server: replace domain from URL RegEx with plain split, slice and join 2021-02-04 08:33:44 +08:00
Jesse Chan 20fc3ac6a8 server: torrents: disallow comma in tag 2020-12-15 20:57:36 +08:00
Jesse Chan 1a878d5423 flood: rearrange, remove misc files and reformat 2020-11-15 23:03:47 +08:00
Jesse Chan 8d2959edfc API: activity-stream: migrate all diff actions to JSON Patch 2020-10-20 20:31:08 +08:00
Jesse Chan 25c68fbd70 client: migrate Torrent Details Modal to TypeScript 2020-10-01 17:34:00 +08:00
Jesse Chan 43b2d8fbbf server: services: migrate to TypeScript 2020-09-27 22:27:14 +08:00
Jesse Chan 30d2b034b3 dependency: migrate from moment to dayjs 2020-09-18 00:23:58 +08:00
Jesse Chan c78e5d88d1 client: partially migrate to TypeScript 2020-09-16 12:36:54 +08:00
damolp fc7a74405f torrentListPropMap: use d.hashing= instead of d.is_hash_checking=
d.hashing= allows Flood to show torrents queued for hashing.

Cherry-Pick: Flood-UI/flood#868
Signed-off-by: Jesse Chan <jc@linux.com>
2020-08-05 17:00:13 +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 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
Ben Sampson 03d3943974 Filter out CDATA tag for RSS feeds (#691)
* add cdata regex

* remove cdata via regex

* add trailing comma

* fix no-useless-escape

* switch let to const
2018-09-20 21:46:28 -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 dc6233ed03 The build process is mostly working 2017-10-16 21:51:51 -07:00
Stéphane de Wit 72d23a3026 Get UDP trackers domain name 2017-08-14 15:14:45 +02:00
John Furrow 7f1acd711b Introduce services 2017-05-28 18:24:04 -07:00
John Furrow 6a8bb2a4b7 Move eta function to shared format utility 2016-12-10 21:41:43 -08:00
John Furrow 7192c19ba4 Move and rename clientUtil.mapClientResponse to clientResponseUtil.mapPropsToResponse 2016-10-28 20:35:53 -07:00
John Furrow 5e1741e570 Clean up Torrent class and related utils 2016-08-14 19:08:59 -07:00
John Furrow 2783f26b21 Adhere to all-caps constants and remove constants which get mutated 2016-08-14 19:01:43 -07:00
John Furrow 110303a25f Add feed parser module and create model 2016-08-13 14:04:01 -07:00
John Furrow 4856bae9d7 Clean up utils 2016-08-13 13:09:38 -07:00
Stéphane de Wit 60eb7b0715 Fix torrents with more than one tracker
'getCalculatedTrackers' method returned only the first domain.

Global regEx matching should not be used on a shared regEx instance.
2016-08-12 22:37:11 +02:00
Stéphane de Wit 7c7dcea7e1 Add support for long TLDs
Some trackers use top-level domains with more than 6 characters.

At the moment, the longest non-IDN TLD is 18-characters long (http://data.iana.org/TLD/tlds-alpha-by-domain.txt).
2016-08-07 20:50:32 +02:00
John Furrow 02c3b5e4b0 Introduce client settings 2016-06-06 21:03:48 -07:00
John Furrow e77dfac3ae Switch entirely to fat arrow functions 2016-03-19 12:46:11 +01:00
John Furrow dc423ac6e9 Add tracker filter an abstract components along the way 2016-02-07 18:06:40 -08:00
John Furrow 81d799b598 Add TorrentCollection class and store torrents by hash 2016-02-06 18:36:28 -08:00