1
mirror of https://invent.kde.org/network/falkon.git synced 2024-11-11 09:32:12 +01:00
Commit Graph

6347 Commits

Author SHA1 Message Date
90ec7bcf99
Only try to save data when they changed
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
9628b4b7c5
Use SiteSettings struct to move the settings data
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
90181a0606
Update loops in getSiteSettings method
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
5e0a779d53
Add preparations for handling Private mode setting
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
653e7aa429
Rewrite permissions in SiteInfo window
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
5032c504fb
Clean the unused code
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
942608b780
Rework attributes
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
d433b2292f
More work and rewrites of ideas
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:24 +02:00
8a07a7f724
Remove unneeded method
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
2df74f2f05
Update database column names
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
25261d5402
Clean and set default attributes for falkon pages
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
59e0517683
Always update default value for attribute
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
a2380e0b24
Add a little framework for webAttributes
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
4c9213bc30
A small step to add full nice Attribute support
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
bbad4d86a8
Start working on QWESettings Attributes
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
6f0249f78b
GIT_SILENT SiteSettings: Remove unused method
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
2e3e3749b4
Add implementation for SiteInfo Permissions
Done in nasty way which generates a lot of requests to database and
needs to be optimized.

Fixed an error when reading set permission.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
13ab031a5e
Tighten switches, remove empty lines between cases
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
a2eb0ad5ba
Fix typo "ASK" > "Ask"
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
109f8e0d3a
Show Ask for Default permission if set to Default
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
226c1acbd1
Show current default value beside the default option in site info
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
9f6527ce21
Change default permission to ask
Default value of default was set to default, silly me.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
9365cdce41
Add mockup permissions UI into SiteInfo window
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
e6a6a64d68
Enable alternateRowColors in Html5PermissionDialog
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
5b473b6866
Remove Q_UNREACHABLE from my new code
It is not used anywhere in Falkon code, and it seems to close program
when it is reached (at least the compiled as debug version).

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
ab0ff451c2
Add implementation of default permissions dialog
Still work in progress

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
5eff4dc0e5
Asdd UI for default HTML5 permission settings
- It is a dummy UI, may change in the future.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
0c462f0a1c
SiteSettings add Ask option for permission
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
b3e5c716dd
Constify things a bit
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
81eaf7c32f
Add data cache in HTML5PermDialog
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
f8da0b0048
Update HTML5 permissions dialog
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
7c28f6e73d
Rewrite HTML5 permissions to use database
- The permission dialog in preferences is broken

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
d0b9510b73
Rewrite JS and IMGs to use SiteSettingManager
- The set* functions needs a redesign
- There is a chance that the database update will take longer than the
  time it takes to start reloading, need to stress test or redesign.
- Might still need to look ar StatusBarIcons plugin for optimizations
  and potential changes
- I am still unsure how to store data in the database, so far I use
  numbers which is good I believe since I want to have 3 states,
  (default, allow, deny)
- Might need to add overloaded functions with bool arguments to make the
  rest of the code simpler.

PS: I believe it is fine to have a bit more complicated logic in
backend while the frontend will stay simple.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
b10b310d11
Add numRowsAffected support to SqlQueryJob
Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:23 +02:00
dc9ff73693
Initial introduction of SiteSettingsManager
- New database SQL querry
- Update current database
- Preparation for setting site settings

WIP: This is an initial draft and the design of the database table might
change as the development goes on.
WIP2: Even this commit and commit message will be scraped.

Signed-off-by: Juraj Oravec <jurajoravec@mailo.com>
2024-06-12 21:38:22 +02:00
l10n daemon script
34bbe6fa76 GIT_SILENT Sync po/docbooks with svn 2024-06-12 01:26:18 +00:00
l10n daemon script
e43025dcad GIT_SILENT Sync po/docbooks with svn 2024-06-10 01:34:14 +00:00
Heiko Becker
884a694b41 GIT_SILENT Update Appstream for new release
(cherry picked from commit b3538e6d59)
2024-06-10 00:42:57 +02:00
l10n daemon script
14e8f81cd2 GIT_SILENT Sync po/docbooks with svn 2024-06-05 01:34:57 +00:00
l10n daemon script
b62c9623f7 GIT_SILENT Sync po/docbooks with svn 2024-06-04 01:22:23 +00:00
l10n daemon script
bd108858f1 GIT_SILENT Sync po/docbooks with svn 2024-05-31 01:30:33 +00:00
l10n daemon script
f9de6e7c94 GIT_SILENT Sync po/docbooks with svn 2024-05-29 01:34:47 +00:00
Albert Astals Cid
1893d9d155 CI: flatpak: Increase runtime to 6.7 2024-05-28 20:29:23 +02:00
l10n daemon script
67d29c1bf1 GIT_SILENT Sync po/docbooks with svn 2024-05-27 01:24:03 +00:00
l10n daemon script
385fb996b5 GIT_SILENT Sync po/docbooks with svn 2024-05-24 01:26:20 +00:00
l10n daemon script
506c1fe287 GIT_SILENT Sync po/docbooks with svn 2024-05-19 01:24:06 +00:00
Heiko Becker
698ebbf856 GIT_SILENT Update Appstream for new release
(cherry picked from commit a6521b0cae)
2024-05-17 00:45:05 +02:00
l10n daemon script
c776b2ee6b GIT_SILENT Sync po/docbooks with svn 2024-05-16 01:34:57 +00:00
l10n daemon script
51111618dc GIT_SILENT Sync po/docbooks with svn 2024-05-14 01:25:27 +00:00
l10n daemon script
60fc262bc0 SVN_SILENT made messages (.desktop file) - always resolve ours
In case of conflict in i18n, keep the version of the branch "ours"
To resolve a particular conflict, "git checkout --ours path/to/file.desktop"
2024-05-14 01:17:03 +00:00