Commit Graph

1639 Commits

Author SHA1 Message Date
f888bd79f8 domain -> Changed pull-* to float-* 2023-02-14 18:25:06 +00:00
e0f939813e Tabs on dashboard.html now fade effect when switching between
First pass at HTML conversion from Master/Slave to Primary/Secondary (TODO: Backend)
Start work on migrating admin_auth_settings to Bootstrap v4
admin_setting_basic -> Change plain text for On/Off to toggles in current state, and changed "Action" column to the opposite toggle of current setting
dashboard_domain -> Reduce deuplicate code for the new dropdown-menu for Actions
register -> Add exclamation icon in front of error text
template_add -> changed box-body to card-body
user_profile -> Fixed tab naviation for Bootstrap v4. Tabs also fade between changes
2023-02-14 02:11:13 +00:00
48f80b37ed potential regex code fix for email validation 2023-02-13 15:38:33 +00:00
642fb1605d Move pretty_ipv6_ptr setting retrieval out of record list loop 2023-02-13 14:43:22 +02:00
7221271a7b Preserve domain records history after domain deletion. 2023-02-13 12:08:03 +02:00
75b33b66b7 Merge branch 'historyfix' of github.com:raunz/PowerDNS-Admin into historyfix 2023-02-13 10:26:42 +02:00
187b55e23a Patch API record update/delete logging to match current logging format 2023-02-13 10:25:17 +02:00
16d7a4f71e Add shadow element to some cards 2023-02-13 04:43:06 +00:00
d6605790bd More navigation Header Changes
"container-fluid" aditions
More button changes from flat to round and icon placement changes
2023-02-13 04:38:54 +00:00
c00ddea2fc More page formatting
Added server-side logic for register.html validation
Keep form firelds on register.html in the event of wrong input fields to save users from retyping info
More button rounding
2023-02-13 03:57:21 +00:00
c23e89bde3 Merge branch 'PowerDNS-Admin:master' into shine/config_table_key_uniqueness 2023-02-09 12:29:14 +00:00
02700ee7b0 Patch API record update/delete logging to match current logging format 2023-02-08 17:03:35 +02:00
0568a90ec1 Changed auto_ptr() logic to remove-then-add 2023-02-08 15:27:45 +02:00
d38a919644 Update yarn.lock packages 2023-02-06 15:49:39 +00:00
ac786f45be Remove btn-flat to convert to round buttons (first pass)
Convert col-xs-* to just col-* as part of bootstrap v3 -> v4
Convert box-* -> card-* as part of bootstrap v3 -> v4
Moved domain actions on main dashboard to a dropdown menu to avoid clutter
Added "Log Out" to top header left
Hid OTP on admin edit user to only show the disable card & options if the user account has OTP enabled
2023-02-06 15:45:13 +00:00
7f25e3b555 Initial go at upgrading from Bootstap v3 to v4 and to AdminLTE v3.2.0 2023-02-02 21:19:15 +00:00
e411bc9f19 Enable CAPTCHA 2023-01-30 22:46:59 +00:00
c5b9e24604 Merge pull request #1366 from Ssshafi/master
Use SITE_NAME as title
2023-01-26 18:21:33 -05:00
91c1907486 Update login.html
Use SITE_NAME for login box title on login page (with default value).
This can be useful when using multiple powerdns admin in an organization.
2023-01-26 00:02:08 +01:00
b607c1b7ff Update base.html
Use SITE_NAME for upper left title on base page.
This can be useful when using multiple powerdns admin in an organization.
2023-01-25 23:59:35 +01:00
d50d57bc70 Merge pull request #1357 from pneb/patch-6
fix: Potential fix for a regex bug
2023-01-25 16:19:27 -05:00
04ee128161 Merge branch 'master' of github.com:PowerDNS-Admin/PowerDNS-Admin 2023-01-24 05:46:15 -05:00
51249aecd3 Merge pull request #1212 from corubba/feature/privacy-first
Privacy first
2023-01-24 05:34:30 -05:00
948973ac83 Merge branch 'feature/privacy-first' 2023-01-24 05:32:38 -05:00
0c42bdad5f Merge pull request #1359 from Metrax/issue-1358
Fixing Wrapping in History Details Modal in Dashboard
2023-01-14 12:04:43 -05:00
246ad7f7d2 Fixing Wrapping in History Details Modal in Dashboard
resolves #1358
2023-01-13 10:05:20 +01:00
18bc336d7a Potential fix 2023-01-11 18:21:40 +08:00
bb29c27430 Merge pull request #1354 from Metrax/support-pdns4.7
Support pdns4.7
2023-01-10 08:01:17 -05:00
debeda5b74 Merge pull request #1340 from pneb/patch-5
patch(lib/utils.py): Fixes pretty_domain_name issue
2023-01-10 08:00:28 -05:00
c02cb3b7fe Model change: Changing domain model type variable to 8 chars
PowerDNS 4.7 is supporting 2 new zone types: "producer" & "consumer"
Due to the domain type variable is limited to 6 chars, PDA Zone update will fail if producer or cusomer zones exist.
To solve this problem, this commit increases the lenght of the domain model type variable to 8 chars.
2023-01-10 13:51:04 +01:00
9088f93233 Upgrade Database: Changing domain table type column to 8 chars
PowerDNS 4.7 is supporting 2 new zone types: "producer" & "consumer"
Due to the domain type column is limited to 6 chars, PDA Zone update will fail if producer or cusomer zones exist.
To solve this problem, this commit increases the lenght of the domain type column to 8 chars.
2023-01-10 13:49:16 +01:00
b163e517bb Update utils.py 2023-01-09 11:10:22 +08:00
53f6f3186e Merge pull request #1343 from trappiz/master
Bump alpine to 3.17 in dockerfile
2023-01-07 19:28:31 -05:00
4de7bbe354 Use alpine 3.17 as base + pip fix to remove warnings 2023-01-06 16:43:48 +01:00
7e973c7219 bump alpine to 3.15 2022-12-23 12:18:00 +01:00
c7eaec27d8 Update utils.py 2022-12-23 08:23:14 +08:00
1d885278d4 Cosmetic 2022-12-22 22:55:05 +01:00
7d153932b3 Fix back_populate relationships 2022-12-22 22:50:01 +01:00
8dd03a4d85 Update tests fix
Fix migration init_db 'id'
Handle app context when needed
Fix conftest fixtures
Rearrange test Dockerfiles
Hide DeprecationWarning during pytest execution
Upgrade all python packages
2022-12-22 22:47:02 +01:00
33ec2acd3f Added a GitHub labels configuration file. 2022-12-22 07:20:02 -05:00
eb16353476 Testing new GitHub Dependabot configuration. 2022-12-22 06:20:12 -05:00
32e19777cc Updating GitHub stale automation configuration to match new label schema. 2022-12-22 06:00:06 -05:00
8d849ee2a1 Cleanup
The `unit/apikey` directory is removed because it does not contain any
tests. Same for `unit/test_decorators.py`.
The `fixture` module is renamed to the special-name `conftest` [0] so
they are available in all tests without the need to import them. With
that in place, I removed all now unneeded or previously already unused
imports from the tests.
Also removed that wierd `sys.path` bit from `unit/zone/test_admin_apikey.py`,
no idea what that was originally intended for.

[0] https://docs.pytest.org/en/6.2.x/fixture.html#conftest-py-sharing-fixtures-across-multiple-files
2022-12-19 09:37:01 +01:00
e920bf5009 Fix broken code
PR #1089 is the culprit, as was already predicted in the review.
2022-12-19 09:37:01 +01:00
b9eb593acd Fix tests
Increased the version of pytest to make it work with py 3.10 [0].
The GET calls no longer return list but the object itself, fixed the
tests and assertions to account for that. The tests did not account for
the later added `allow_user_remove_domain` setting. And there were
issues with missing and non-stopped patchers/mocks.

Now all tests are at least passing.

[0] https://github.com/pytest-dev/pytest/pull/8540
2022-12-19 09:37:01 +01:00
44cf98a159 Fix test docker
The Dockerfile did not work as is, because the dependencies in
requirements.txt are newer than the stretch-image with its python v3.5
can support/run. Use stable debian with the lts nodejs instead, plus
had to add some libs to make the wheel build succeed.
jsonschema v4 breaks things, so its version needs to be pinned until
bravado is fixed [0].

[0] https://github.com/Yelp/bravado-core/pull/385/files#r731674447
2022-12-19 09:37:01 +01:00
0404748e6e Merge pull request #1333 from pneb/master
enhancement: Added 2 new files (auto-setup)
2022-12-15 06:40:32 -05:00
3aa6d1f258 Create setup_win.bat 2022-12-15 12:54:31 +08:00
644be65495 Create setup_linux.sh 2022-12-15 12:53:53 +08:00
3a6d173d05 Merge pull request #1332 from PowerDNS-Admin/revert-1331-patch-4
Revert "enhancement(routes/index.py): OIDC supports HTTP Scheme now"
2022-12-14 20:38:15 -05:00