Igor Kushnir
f60e17674e
Server controllers: remove unused libraryName variable
2021-03-13 10:16:27 +02:00
Igor Kushnir
3c9ed6ef8f
Deprecated qSort => std::sort
...
This change gets rid of some GCC's -Wdeprecated-declarations warnings.
2021-03-09 21:32:23 +01:00
Luis Ángel San Martín
52953633e5
Send manga field through the server
2021-01-16 14:24:14 +01:00
Felix Kauselmann
c4f792bd40
Fix port settings
...
When setting ports, temporary or for good, we need to go via the config
files and not QTcpServer or we get undefined behavior. To support temp
ports, we need to back up the fixed port in the settings.
2020-12-11 12:33:05 +01:00
Felix Kauselmann
4a654c38c0
Headless server: Add support for setting a port from commandline
...
Manual editing of a config file for setting a port is not ideal.
Solution: add a set-port command to save a port and also a
--port option to allow setting a temporary port during startup
2020-08-29 18:21:06 +02:00
Luis Ángel San Martín
f11a757141
Code format
...
I had to update clang-format
2020-08-25 19:13:43 +02:00
Luis Ángel San Martín
5bc3ad5014
Send back more recent comic status to the client on sync
2020-08-25 19:03:00 +02:00
Luis Ángel San Martín
fe15bc2ba8
Include "last_time_opened" in JSON serialization
2020-08-25 19:01:03 +02:00
Felix Kauselmann
1b344d70e5
Update server code integration for QtWebApp 1.7.11
...
- Adapt server code for QtWebapp namespace 'stefanfrings'
- Implement custom modifications needed by v1 controller
via template engine
- Unify iphone and ipad templates
2020-08-20 18:22:57 +02:00
Felix Kauselmann
3de099491f
Move QtWebApp sources to third_party
2020-08-20 18:22:57 +02:00
Felix Kauselmann
b9acd13120
Fix code format errors due to changes in default coding style. ( #150 )
2020-07-24 21:17:49 +02:00
Luis Ángel San Martín
0b83764734
Revert "Thread ping pong"
2019-09-24 12:00:21 +02:00
Felix Kauselmann
be547081f2
Fix huge memleak in server code caused by thread pingpong fix.
...
Stopped QThreads don't process events, so cleanup signals get lost.
Prevent this from happening by keeping the threads alive and the comic
inside the thread (as we already do in the viewer). Cleanup happens by
connecting the comic's destroyed() signal to the thread's quit() slot.
2019-09-24 08:21:14 +02:00
Luis Ángel San Martín
9056fffb66
Use db transactions when updating the progress from iOS
...
Timeouts were a problem before.
2019-08-24 13:31:52 +02:00
Luis Ángel San Martín
f875e7d304
Disable sort includes in the folders where clang format is disabled
...
For me this is a bug, DisableFormat should stop any kind of changes.
2019-08-24 11:11:52 +02:00
Luis Ángel San Martín
fafcfdd2dc
Give the OK to the connection asap
2019-08-24 11:07:36 +02:00
Luis Ángel San Martín
f29724e404
Annotate overridden methods
2019-06-01 16:04:48 +02:00
Luis Ángel San Martín
e2276cbc1c
More auto
2019-06-01 16:04:48 +02:00
Luis Ángel San Martín
268bebbddd
Use nullptr instead of 0
2019-06-01 16:04:48 +02:00
Luis Ángel San Martín
bb334cfd50
Use auto to avoid duplicating the type name
2019-06-01 16:04:48 +02:00
Luis Ángel San Martín
e3ec56aa43
Format code using clang-format
2019-05-30 19:46:37 +02:00
Luis Ángel San Martín
8b54744723
Add .clang-format files
...
Third party code should be excluded from automatic formating: QsLog and QtWebApp
2019-05-30 18:58:54 +02:00
Igor Kushnir
8522b11e37
Library: fix a crash at exit when server is disabled
...
Startup::stop() called from LibraryWindow::closeEvent() crashes if
listener is not initialized.
2019-05-19 13:50:53 +03:00
François Gannaz
9aff260f06
Library: unused method parameter, so comment out the name
2019-04-01 11:25:16 +02:00
François Gannaz
6467e2a510
Library: unused method parameter, so comment out the name
2019-04-01 11:25:16 +02:00
François Gannaz
3657745f8b
Library: reorder initialization of YACReaderHttpSession
2019-04-01 11:25:16 +02:00
François Gannaz
8fa62c3a20
Library: unused method parameter, so comment out the name
2019-04-01 11:25:16 +02:00
François Gannaz
7cb57d886a
Library: fix misleading indentation
2019-04-01 11:25:16 +02:00
Jocelyn Le Sage
b3583b9bf3
Fixed potential stack overflow.
2018-09-01 08:10:18 -04:00
Felix Kauselmann
ab96056b0e
Normalize line endings
...
Normalize the line endings for a bunch of files previously not covered
by .gitattributes.
2018-08-07 11:09:02 +02:00
Felix Kauselmann
0e9a3a6407
Stop QtWebApp from eating out debug messages
...
QtWebapp installs a custom logger/message handler which reroutes all
debug messages to it's custom logger class.
As the default logging level for QtWebApp's logger is set to "critical"
this means that all debug messages are sent to nirvana. Solution:
Replace QtWebApp's messageHandler with our own (using QsLog).
2018-08-04 12:31:34 +02:00
Felix Kauselmann
d5a11fb16b
Add .gitattributes rules for text and binary handling
2018-07-30 15:04:04 +02:00
Luis Ángel San Martín
1a91206a2d
Merge branch 'develop' into 9.5.0_bugfixes
2018-05-31 18:12:52 +02:00
Luis Ángel San Martín
26c2226032
Change endpoints for getting comic info and opening a comic.
2018-05-30 19:23:39 +02:00
Luis Ángel San Martín
0100da5480
Make comicdownloadinfocontroller_v2 provide all the needed information.
2018-05-30 19:02:52 +02:00
Luis Ángel San Martín
dba264c31f
Remove old commented code.
2018-05-29 17:12:34 +02:00
Luis Ángel San Martín
79db01cffc
Do not close the connection in librariescontroller_v2
2018-05-29 17:12:22 +02:00
Luis Ángel San Martín
550795e418
Do not close the connection in covercontroller_v2
2018-05-29 17:12:09 +02:00
Felix Kauselmann
9851884021
Backport two nullpointer reference fixes from QtWebApp 1.7.4
2018-05-26 10:30:14 +02:00
Luis Ángel San Martín
d909598732
Add missing include.
...
This fixes compilation windows debug.
2018-05-25 19:26:17 +02:00
Luis Ángel San Martín
1b63dc01db
Remove comment.
2018-05-21 23:14:12 +02:00
Luis Ángel San Martín
66aa2c60c6
Fix comparison
2018-05-21 23:14:02 +02:00
Luis Ángel San Martín
8ea201ece9
Use usigned long long to fix compiler error
2018-05-21 23:13:47 +02:00
Luis Ángel San Martín
38e3b40e8f
Process last time opened in sync controller
2018-05-21 22:10:53 +02:00
Luis Ángel San Martín
d6c563e881
If a comic doesn't have library and id info, then try to update the info in all the libraries.
2018-05-21 19:52:29 +02:00
Luis Ángel San Martín
50c9238376
Only try to set the next comic as read if there is a next comic.
2018-05-20 17:42:49 +02:00
Luis Ángel San Martín
e405f14256
Set next comic as reading from update comic controller.
2018-05-20 14:49:32 +02:00
Luis Ángel San Martín
d3bb598a7d
Add controllers to provide comics information from reading lists and labels
2018-05-01 11:54:00 +02:00
Luis Ángel San Martín
0e45767e67
Check for comic opening failures before trying to serve a page.
2018-04-28 18:00:40 +02:00
Luis Ángel San Martín
618f6575b2
Fix error code in page controller
2018-04-28 17:57:06 +02:00
Luis Ángel San Martín
4e004f87af
Fix compilation in windows.
2018-04-27 22:40:36 +02:00
Luis Ángel San Martín
451c2ec688
Fix label content controller v2
2018-04-26 22:19:16 +02:00
Luis Ángel San Martín
b92b696458
Fix favorites controler v2
2018-04-26 22:18:56 +02:00
Luis Ángel San Martín
f3e8f1a6cd
Fix label to json
2018-04-26 22:18:25 +02:00
Luis Ángel San Martín
505d54d8b4
Remove outdated comments.
2018-04-26 18:29:36 +02:00
Luis Ángel San Martín
e4b4f96369
Use better http status code to notify clientes about what is going on while loading comics.
2018-04-26 18:27:42 +02:00
Luis Ángel San Martín
30211233af
Use compact json in responses.
2018-04-26 18:26:44 +02:00
Luis Ángel San Martín
87b0e64b1a
Monitorize folder content controller performance in debug mode.
2018-04-26 18:24:35 +02:00
Luis Ángel San Martín
630a5c94a0
Move from session based state to client side tokens.
...
YACReaderHttpSession is still used, but it is not a http session anymore.
2018-04-25 22:20:03 +02:00
Luis Ángel San Martín
701817d76b
Update comic url to use v2.
...
This should be replaced with json and the url shouldl be built in the client side.
2018-04-25 22:17:51 +02:00
Luis Ángel San Martín
0305377c28
Migrate some more controllers to json.
2018-04-24 14:42:30 +02:00
Luis Ángel San Martín
a9887a2d46
Add methods for getting json from reading lists and labels(tags)
2018-04-24 14:42:06 +02:00
Luis Ángel San Martín
20c7ecadd4
Add new controller for requesting the "full" information for a comic.
...
For now it doesn't serve the full information, only the information shown in the current/next comic view in iOS. I will see if I create two separated controllers or just on sending all the information when more information is needed in another iOS view.
2018-04-23 19:24:56 +02:00
Luis Ángel San Martín
b3d4e4c11e
Include comics' hash in download information.
2018-04-14 10:02:08 +02:00
Luis Ángel San Martín
9a473ae214
Send the full cover for now. Clients will resize and cache them as needed.
2018-04-14 10:01:41 +02:00
Luis Ángel San Martín
9db998174f
Use an integer as num_childer in folder.
2018-03-30 10:15:49 +02:00
Luis Ángel San Martín
c1ba2fe77e
Use json in foldercontentcontoller_v2
2018-03-25 13:15:49 +02:00
Luis Ángel San Martín
113cf341c0
Fix comic title and number json serialziation
2018-03-24 08:19:23 +01:00
Luis Ángel San Martín
1fc3c2eee7
Add title and number to comic information and fix file name field.
2018-03-22 20:11:42 +01:00
Luis Ángel San Martín
177e3ea3ba
Send the cover size ratio in the comic info json.
2018-03-13 19:08:39 +01:00
Luis Ángel San Martín
4c91da82a9
Fix reading comics controller
2018-03-11 15:27:50 +01:00
Luis Ángel San Martín
d7d741f87e
Fix comic to json conversion.
2018-03-11 15:26:28 +01:00
Luis Ángel San Martín
0c303e6ea3
Reimplement ReadingComicsControllerV2 for serving JSON.
2018-03-11 11:29:17 +01:00
Luis Ángel San Martín
7e571c8ffe
Add a new method to serialize a comic remote information to json
2018-03-11 11:28:41 +01:00
Luis Ángel San Martín
da5a4def96
Reimplement LibrariesControllerV2 for serving JSON.
2018-03-04 17:38:01 +01:00
Luis Ángel San Martín
555adc80bb
Use new separator tokens in YACReaderServerDataHelper.
2018-03-04 13:05:42 +01:00
Luis Ángel San Martín
68db72078f
Separate v1 and v2 server api classes and execution path.
2018-03-04 13:05:00 +01:00
Luis Ángel San Martín
e8c6f60c13
Merge
2017-11-26 07:39:08 +01:00
Luis Ángel San Martín
5c268217d3
Fix read flag calculation on progress read updated from the server.
2017-11-19 10:03:40 +01:00
Luis Ángel San Martín
f0d350a827
Use the new controllers.
2017-05-26 17:32:05 +02:00
Luis Ángel San Martín
d08740e32d
Added new server controller for providing the content of a reading list.
2017-05-26 17:29:28 +02:00
Luis Ángel San Martín
ac03d61f7d
Fixed TagsController.
2017-05-26 17:28:09 +02:00
Luis Ángel San Martín
6373d3660b
Implemented ReadingListsController.
2017-05-26 17:27:46 +02:00
Luis Ángel San Martín
0f9396ea9e
Commented performance measuring code from folder content controller.
2017-03-28 18:44:52 +02:00
Luis Ángel San Martín
169c6c16dd
Fixed reading comics web controller.
2017-03-28 18:43:59 +02:00
Luis Ángel San Martín
6d4ce1eabd
Added new regexps for matching requests related to reading lists.
2016-10-30 09:16:53 +01:00
Luis Ángel San Martín
42a16a273b
Added new class for serving a list of reading lists, service is not implemented yet.
2016-10-30 09:16:28 +01:00
Luis Ángel San Martín
ff4befb60e
Removed extraneous semicolon.
2016-10-30 09:15:16 +01:00
Luis Ángel San Martín
58bc6ae6bf
Map the reading uri to the new controller in the request mapper.
2016-08-23 22:23:53 +02:00
Luis Ángel San Martín
dbc9c9848a
New controller for serving the comics being read.
2016-08-23 22:23:26 +02:00
Luis Ángel San Martín
036fad4a77
Use the new crotroller in request mapper.
2016-08-23 18:21:14 +02:00
Luis Ángel San Martín
69b83dae5b
New controller for serving favoritess.
2016-08-23 18:20:16 +02:00
Luis Ángel San Martín
2aa5c00d34
Include missing info in YSFormat for comics.
2016-08-23 18:03:31 +02:00
Luis Ángel San Martín
ab795212c6
Spacing.
2016-08-23 18:03:03 +02:00
Luis Ángel San Martín
db3f2b6431
Use the new tag content controller in the request mapper.
2016-08-22 23:07:48 +02:00
Luis Ángel San Martín
df87a14dde
Include new classes in server.pri
2016-08-22 23:06:33 +02:00
Luis Ángel San Martín
4e50c5628d
Add new class for serving the content of tag.
2016-08-22 23:05:36 +02:00
Luis Ángel San Martín
1d73d1f1bf
Use the new helper class in FolderContentController.
2016-08-22 23:05:07 +02:00
Luis Ángel San Martín
de4540367f
Extracted the data generation for services to a helper class.
2016-08-22 23:04:43 +02:00
Luis Ángel San Martín
9cfb4e0f38
Fixed warning.
2016-08-22 13:44:43 +02:00