Commit graph

1214 commits

Author SHA1 Message Date
Shyam Sunder
e80c482891 server/func/images: Fix Unicode Error 2018-12-22 12:31:25 +01:00
Shyam Sunder
987a3aa8f2 docker: make deployment easier 2018-12-22 12:31:25 +01:00
Shyam Sunder
7081b5be90 client/app: Fixed relative links in app manifest 2018-12-22 12:31:25 +01:00
Shyam Sunder
116919d2a2 client/public: Remove public/ folder and generate it on build 2018-12-22 12:31:25 +01:00
Shyam Sunder
a5a06bf2d1 client/build: Clean up build process
Fixes incorrect URIs of iOS splash screens and OpenSans font
Files get gzipped inside build script
Better nginx configuration
build.js uses more consistent, synchronous code
2018-12-22 12:31:25 +01:00
Robin Appelman
e6445b431f client/posts: fix absolute url on certain domains
Use the document base href to generate absolute url.
Otherwise the image link send to IQDB/google images will be invalid
2018-12-22 12:25:12 +01:00
rr-
d3cabc4a36 server: handle empty flags in migration 2018-09-24 11:40:11 +02:00
Shyam Sunder
8a10fc8ffd server/posts: automatically detect sound in video post uploads 2018-09-24 11:36:13 +02:00
Shyam Sunder
3879c2ec20 server/search: allow searching by post flags 2018-09-24 11:36:13 +02:00
Shyam Sunder
2235a72d2f server+client: added sound flag to video posts 2018-09-24 11:36:13 +02:00
Shyam Sunder
c8fe0fcdff client: Stop showing mp4 files as undefined 2018-09-13 07:33:48 +02:00
Shyam Sunder
cbf67587e2 client: Some minor fixups to base URL feature
* Cleanup cookie storage path
* Cleanup Data URL
2018-08-23 21:04:19 +02:00
Shyam Sunder
565027269c client/js/router.js: Reads <base> href tag 2018-08-23 21:04:19 +02:00
Shyam Sunder
defada45ab client: adapted code to use <base> HTML tag 2018-08-23 21:04:19 +02:00
Shyam Sunder
b29bf8b37a client: generate web app images in build script 2018-08-23 21:04:05 +02:00
Michael Serajnik
b22c887e4b client: add basic web app support 2018-08-06 14:12:29 +02:00
rr-
45b6df020a build: fix paths to config files 2018-08-04 13:19:02 +02:00
rr-
8da22cbd5e server: fix paths to config 2018-08-03 21:04:23 +02:00
Shyam Sunder
70385cfe3d docker: Clarify required version numbers.
Per #184
2018-07-28 17:36:09 +02:00
rr-
b1a20a7134 tests: fix failing tests
Regression caused by changing the way images are converted to grayscale
in 9730aa5c
2018-07-25 19:53:37 +02:00
Shyam Sunder
6a6c4dc822 build: add Docker functionality and documentation 2018-07-25 13:39:57 +02:00
Shyam Sunder
9730aa5c05 client: clean up required Python packages
* Packages that are only used in testing or development
have been moved to `dev-requirements.txt`
* Closes #178
* Minor rewrite to drop the `scikit-image` package, which
saves around 200MB in install size
2018-07-22 14:02:30 +02:00
rr-
1fe22a4d0a server/tag-categories: disallow uppercase colors 2018-07-08 10:10:06 +02:00
rr-
c9cb9aa539 server/password-reset: try to construct full URL 2018-07-08 10:10:06 +02:00
rr-
d85e746a65 server/tests: fix failing info api tests 2018-07-08 09:42:13 +02:00
rr-
b6a5be74cf config: fix camelCase 2018-07-08 09:38:41 +02:00
rr-
320c16743d docs/install: update test instructions 2018-07-08 09:36:21 +02:00
Michael Serajnik
d43758bcc2 client/build: replace uglify-es, update dependencies 2018-07-08 09:30:29 +02:00
Shyam Sunder
60ab9246c6 client: improved build.js, use relative links
* Removed unnecessary require('config.js') calls
* 'markdown.js' now uses rel. links in EntityPermalinkWrapper
* 'password_reset.py' now generates rel. links
* Removed 'Base URL' config parameter
* Removed 'API URL' config parameter
* 'build.js' no longer reads/requires config.yaml
* Updated documentation
* Removed unnecessary node packages used in 'build.js'

abandon api_url parameter
2018-07-06 19:40:20 +02:00
Shyam Sunder
3972b902d8 client: fetch configurations from server at runtime
Permissions, regex filters, app title, email info,
and safety now fetched using server's Info API
2018-06-27 21:20:03 +02:00
Nesswit
2bf361c64a client/posts: fix upload error caused by anonymous node
Anonymous node does not exist in view when a user without anonymous upload permission tries to post upload. So in this case we should check for the existence of anonymousNode first.
2018-05-21 21:41:23 +02:00
Michael Serajnik
d39439d549 client/posts: fix viewport height calculation on iOS 2018-05-01 22:26:17 +02:00
ReAnzu
2a69f0193f server/auth: add token authentication
* Users are only authenticated against their password on login,
  and to retrieve a token
* Passwords are wiped from the GUI frontend and cookies
  after login and token retrieval
* Tokens are revoked at the end of the session/logout
* If the user chooses the "remember me" option,
  the token is stored in the cookie
* Tokens correctly delete themselves on logout
* Tokens can expire at user-specified date
* Tokens have their last usage time
* Tokens can have user defined descriptions
* Users can manage login tokens in their account settings
2018-03-25 22:23:29 +02:00
rr-
e35e709927 docs/install: use example.com for example domain 2018-03-22 09:42:58 +01:00
Michael Serajnik
a98ca55391 client/css: optimize help view margins 2018-03-10 17:45:37 +01:00
Michael Serajnik
db9132432b client/css: add default margins 2018-03-10 17:45:37 +01:00
Michael Serajnik
23a28ce69c client/css: make tab navigations scrollable on smaller screens 2018-03-10 17:45:37 +01:00
Michael Serajnik
a962bb351a client/css: refine mobile sidebar styling 2018-03-10 17:45:37 +01:00
Michael Serajnik
a08c7d65da client/css: add scrollbar styling 2018-03-10 17:45:37 +01:00
Michael Serajnik
7596f9042c client/css: remove margin on empty post container 2018-03-10 17:45:37 +01:00
Michael Serajnik
9b10d2bebf client/css: add default font sizes for headings 2018-03-10 17:45:37 +01:00
Michael Serajnik
e15dffa1dc client/css: change container paddings to be viewport size independent 2018-03-10 17:45:37 +01:00
Michael Serajnik
4ce29cf222 client/css: change font size declarations to em 2018-03-10 17:45:37 +01:00
Michael Serajnik
26a1451ff6 client/css: improve mobile styling 2018-03-10 17:45:37 +01:00
ReAnzu
c770ad8f28 client/posts: fix copy tags list of string values error #153 2018-03-09 07:53:54 +01:00
ReAnzu
3f52aceca4 server/users: harden password hashes
- Changed password setup to use libsodium and argon2id (regular SHA256
  hashing for passwords is inadequate as modern GPU's can hash generate
  billions of hashes per second).
- Added code to auto migrate old passwords to the new password_hash if
  the existing password_hash matches either of the legacy password
  generation schemes (SHA1 or SHA256).
- Added migration to support new password_hash format length
- Added column password_revision. This field will default to 0, which
  all passwords will have till they're updated. After that each password
  hash method has a revision.
2018-03-08 23:40:47 +01:00
ReAnzu
7519e071e7 server/posts: deleting a post purges its artifacts
Specifically, its thumbnail and post source.
2018-03-08 23:37:37 +01:00
ReAnzu
12ec43f098 server/posts: auto convert GIFs to WEBMs/MP4s
- Default setting is false for both conversions, as this will require
  additional resources of the server, but is bandwidth friendly for
  viewers
- WEBM conversion is slow, but better quality than MP4 conversion with
  a typically smaller file size
- Tags are copied over from the original upload
- Snapshots are generated for the new auto posts
2018-03-08 07:48:45 +01:00
ReAnzu
4ff8be6a2f server/posts: ignore ffmpeg warnings
Poorly formatted MP4 and WEBM sources can cause ffmpeg to throw a lot
of warnings. However when there is byte ouptut, the generated thumbnail
is valid. Add a bypass for the resize_fill function to allow ffmpeg to
error.
2018-03-08 07:48:44 +01:00
ReAnzu
4b3529272e server/users: let administrators add new users
* Added functionality for administrators to directly add users to the
  application
* Added permission users:create:any to handle level that users are
  allowed to create other users
* Moved old permission users:create to users:create:self
2018-03-07 21:30:24 +01:00