Compare commits
2 Commits
7c021c90ee
...
c941264346
Author | SHA1 | Date |
---|---|---|
leca | c941264346 | |
leca | c471cb3f62 |
|
@ -118,3 +118,5 @@ install_manifest.txt
|
||||||
|
|
||||||
checks-parser_autogen
|
checks-parser_autogen
|
||||||
checks-parser
|
checks-parser
|
||||||
|
|
||||||
|
deploy/appimage/AppDir/usr/share/doc/
|
||||||
|
|
2
TODO
2
TODO
|
@ -25,6 +25,6 @@ Build:
|
||||||
Try to compile it on Windows
|
Try to compile it on Windows
|
||||||
|
|
||||||
Issues:
|
Issues:
|
||||||
Captcha is not showing when running in appimage
|
Captcha is not showing when running in appimage [solved]
|
||||||
Stores modules are not being downloaded
|
Stores modules are not being downloaded
|
||||||
I need to pack tesseract data for ru, en
|
I need to pack tesseract data for ru, en
|
||||||
|
|
|
@ -3,4 +3,5 @@ Name=Checks parser
|
||||||
Exec=usr/bin/checks-parser
|
Exec=usr/bin/checks-parser
|
||||||
Icon=checks-parser
|
Icon=checks-parser
|
||||||
Type=Application
|
Type=Application
|
||||||
Categories=Utility
|
Categories=Utility;
|
||||||
|
X-AppImage-Version=7c021c9
|
||||||
|
|
|
@ -0,0 +1,7 @@
|
||||||
|
# Generated by linuxdeployqt
|
||||||
|
# https://github.com/probonopd/linuxdeployqt/
|
||||||
|
[Paths]
|
||||||
|
Prefix = ../
|
||||||
|
Plugins = plugins
|
||||||
|
Imports = qml
|
||||||
|
Qml2Imports = qml
|
|
@ -105,5 +105,5 @@ std::string Net::fetch_check_data_from_ofdru(std::string fn, std::string fd, std
|
||||||
}
|
}
|
||||||
|
|
||||||
void Net::get_captcha_from_ofdru() {
|
void Net::get_captcha_from_ofdru() {
|
||||||
get_file("https://check.ofd.ru/api/captcha/common/img", get_path_relative_to_home(".local/share/checks_parser/captcha.png"));
|
get_file("https://check.ofd.ru/api/captcha/common/img", get_path_relative_to_home(".local/share/checks_parser/captcha.jpg"));
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,7 +1,7 @@
|
||||||
#include "solvecaptchadialog.h"
|
#include "solvecaptchadialog.h"
|
||||||
#include "ui_solvecaptchadialog.h"
|
#include "ui_solvecaptchadialog.h"
|
||||||
#include "utils/utils.h"
|
#include "utils/utils.h"
|
||||||
|
#include <iostream>
|
||||||
#include <QMessageBox>
|
#include <QMessageBox>
|
||||||
|
|
||||||
SolveCaptchaDialog::SolveCaptchaDialog(QWidget *parent, std::string* solved_captcha) :
|
SolveCaptchaDialog::SolveCaptchaDialog(QWidget *parent, std::string* solved_captcha) :
|
||||||
|
@ -10,7 +10,8 @@ SolveCaptchaDialog::SolveCaptchaDialog(QWidget *parent, std::string* solved_capt
|
||||||
solved_captcha(solved_captcha) {
|
solved_captcha(solved_captcha) {
|
||||||
ui->setupUi(this);
|
ui->setupUi(this);
|
||||||
|
|
||||||
QString captcha_path = QString::fromStdString(get_path_relative_to_home(".local/share/checks_parser/captcha.png"));
|
QString captcha_path = QString::fromStdString(get_path_relative_to_home(".local/share/checks_parser/captcha.jpg"));
|
||||||
|
std::cout << captcha_path.toStdString() << std::endl;
|
||||||
ui->captcha_picture->setPixmap(captcha_path);
|
ui->captcha_picture->setPixmap(captcha_path);
|
||||||
ui->captcha_picture->setScaledContents(true);
|
ui->captcha_picture->setScaledContents(true);
|
||||||
}
|
}
|
||||||
|
|
|
@ -281,12 +281,12 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../solvecaptchadialog.cpp" line="22"/>
|
<location filename="../solvecaptchadialog.cpp" line="23"/>
|
||||||
<source>Please, enter a valid captcha</source>
|
<source>Please, enter a valid captcha</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../solvecaptchadialog.cpp" line="24"/>
|
<location filename="../solvecaptchadialog.cpp" line="25"/>
|
||||||
<source>No captcha</source>
|
<source>No captcha</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
|
@ -281,12 +281,12 @@
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../solvecaptchadialog.cpp" line="22"/>
|
<location filename="../solvecaptchadialog.cpp" line="23"/>
|
||||||
<source>Please, enter a valid captcha</source>
|
<source>Please, enter a valid captcha</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
<message>
|
<message>
|
||||||
<location filename="../solvecaptchadialog.cpp" line="24"/>
|
<location filename="../solvecaptchadialog.cpp" line="25"/>
|
||||||
<source>No captcha</source>
|
<source>No captcha</source>
|
||||||
<translation type="unfinished"></translation>
|
<translation type="unfinished"></translation>
|
||||||
</message>
|
</message>
|
||||||
|
|
Loading…
Reference in New Issue