sovereign 1.0.0b126__py3-none-any.whl → 1.0.0b127.post6__py3-none-any.whl
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Potentially problematic release.
This version of sovereign might be problematic. Click here for more details.
- sovereign/static/darkmode.js +51 -0
- sovereign/static/node_expression.js +4 -1
- sovereign/static/resources.css +246 -0
- sovereign/static/resources.js +642 -0
- sovereign/static/sass/style.scss +24 -18
- sovereign/static/style.css +14689 -12099
- sovereign/static/style.css.map +1 -0
- sovereign/templates/base.html +59 -46
- sovereign/templates/resources.html +31 -836
- sovereign/views/interface.py +8 -6
- {sovereign-1.0.0b126.dist-info → sovereign-1.0.0b127.post6.dist-info}/METADATA +1 -1
- {sovereign-1.0.0b126.dist-info → sovereign-1.0.0b127.post6.dist-info}/RECORD +14 -11
- sovereign-1.0.0b126.dist-info/LICENSE.txt +0 -13
- {sovereign-1.0.0b126.dist-info → sovereign-1.0.0b127.post6.dist-info}/WHEEL +0 -0
- {sovereign-1.0.0b126.dist-info → sovereign-1.0.0b127.post6.dist-info}/entry_points.txt +0 -0
sovereign/views/interface.py
CHANGED
|
@@ -7,7 +7,7 @@ from fastapi.encoders import jsonable_encoder
|
|
|
7
7
|
from fastapi.requests import Request
|
|
8
8
|
from fastapi.responses import HTMLResponse, JSONResponse, Response
|
|
9
9
|
|
|
10
|
-
from sovereign import html_templates, cache
|
|
10
|
+
from sovereign import html_templates, cache, __version__
|
|
11
11
|
from sovereign.schemas import DiscoveryTypes, XDS_TEMPLATES
|
|
12
12
|
from sovereign.response_class import json_response_class
|
|
13
13
|
from sovereign.utils.mock import NodeExpressionError, mock_discovery_request
|
|
@@ -25,9 +25,7 @@ async def ui_main(request: Request) -> HTMLResponse:
|
|
|
25
25
|
request=request,
|
|
26
26
|
name="base.html",
|
|
27
27
|
media_type="text/html",
|
|
28
|
-
context={
|
|
29
|
-
"all_types": all_types,
|
|
30
|
-
},
|
|
28
|
+
context={"all_types": all_types, "sovereign_version": __version__},
|
|
31
29
|
)
|
|
32
30
|
except IndexError:
|
|
33
31
|
return html_templates.TemplateResponse(
|
|
@@ -36,9 +34,12 @@ async def ui_main(request: Request) -> HTMLResponse:
|
|
|
36
34
|
media_type="text/html",
|
|
37
35
|
context={
|
|
38
36
|
"title": "No resource types configured",
|
|
39
|
-
"message":
|
|
40
|
-
|
|
37
|
+
"message": (
|
|
38
|
+
"A template should be defined for every resource "
|
|
39
|
+
"type that you want your envoy proxies to discover."
|
|
40
|
+
),
|
|
41
41
|
"doc_link": "https://developer.atlassian.com/platform/sovereign/tutorial/templates/#templates",
|
|
42
|
+
"sovereign_version": __version__,
|
|
42
43
|
},
|
|
43
44
|
)
|
|
44
45
|
|
|
@@ -101,6 +102,7 @@ async def resources(
|
|
|
101
102
|
"version": envoy_version,
|
|
102
103
|
"available_versions": list(XDS_TEMPLATES.keys()),
|
|
103
104
|
"error": error,
|
|
105
|
+
"sovereign_version": __version__,
|
|
104
106
|
},
|
|
105
107
|
)
|
|
106
108
|
if clear_cookie:
|
|
@@ -24,14 +24,18 @@ sovereign/sources/file.py,sha256=prUThsDCSPNwZaZpkKXhAm-GVRZWbBoGKGU0It4HHXs,690
|
|
|
24
24
|
sovereign/sources/inline.py,sha256=pP77m7bHjqE3sSoqZthcuw1ARVMf9gooVwbz4B8OAek,1003
|
|
25
25
|
sovereign/sources/lib.py,sha256=0hk_G6mKJrB65WokVZnqF5kdJ3vsQZMNPuJqJO0mBsI,1031
|
|
26
26
|
sovereign/sources/poller.py,sha256=zpNUhQft-NoJbbxO1kCFp6jJSRSkBmf181xodnF_TiI,18469
|
|
27
|
-
sovereign/static/
|
|
27
|
+
sovereign/static/darkmode.js,sha256=3ip-eKGctDvNhN7UgmaHhzls7r5qIY-Jvh2EpefHbQ0,1449
|
|
28
|
+
sovereign/static/node_expression.js,sha256=GKxKTSRc_96IbL3H4L_31ueJFXq4N7scm5R1RNqxP24,1489
|
|
28
29
|
sovereign/static/panel.js,sha256=i5mGExjv-I4Gtt9dQiTyFwPZa8pg5rXeuTeidXNUiTE,2695
|
|
29
|
-
sovereign/static/
|
|
30
|
-
sovereign/static/
|
|
30
|
+
sovereign/static/resources.css,sha256=Rt_ir_FkoI-VIAOqPhk0vILy8kB2egAYbQU26SOs1io,4500
|
|
31
|
+
sovereign/static/resources.js,sha256=-TaXZ6tohyKA1SkX5YwrTcV5M8mOZ68cvEXpvZWznTo,24506
|
|
32
|
+
sovereign/static/sass/style.scss,sha256=LdGXXuHi_tyMc7XhijIOrlIxyfLt827AAs2Z7DYpFpg,990
|
|
33
|
+
sovereign/static/style.css,sha256=kmvkJ2820RKehWxhddkucbgFkvnpUgBMteOtpEuXjvQ,601347
|
|
34
|
+
sovereign/static/style.css.map,sha256=h1ufjfDVX-8z-FuJqFG2-U9AVdi66U-e8uyiGdUZjDw,66576
|
|
31
35
|
sovereign/statistics.py,sha256=QhDB0bs5kZDGjy248AOIv_bzNbz_c2U7xmJ0hoUNOmw,2033
|
|
32
|
-
sovereign/templates/base.html,sha256=
|
|
36
|
+
sovereign/templates/base.html,sha256=MMhhvvClTixKibYfhXm8Ezx6ttu6Sqki44niciCPMO4,2990
|
|
33
37
|
sovereign/templates/err.html,sha256=a3cEzOqyqWOIe3YxfTEjkxbTfxBxq1knD6GwzEFljfs,603
|
|
34
|
-
sovereign/templates/resources.html,sha256=
|
|
38
|
+
sovereign/templates/resources.html,sha256=5MfXHW8s3tAWda66Q48zVgDhZNLwHGsdCKkKHLZohIs,10420
|
|
35
39
|
sovereign/testing/loaders.py,sha256=mcmErhI9ZkJUBZl8jv2qP-PCBRFeAIgyBFlfCgU4Vvk,199
|
|
36
40
|
sovereign/testing/modifiers.py,sha256=7_c2hWXn_sYJ6997N1_uSWtClOikcOzu1yRCY56-l-4,361
|
|
37
41
|
sovereign/tracing.py,sha256=Xo3npgh6yesACSlynv9j6qnXxvYEBzXv5LL4Zkc1QDw,2446
|
|
@@ -58,10 +62,9 @@ sovereign/views/api.py,sha256=jKVjSvi0Tr1HHix3hc0H8yGZoyDind2sJ4w7a4pJvy0,2168
|
|
|
58
62
|
sovereign/views/crypto.py,sha256=7y0eHWtt-bbr2CwHEkH7odPaJ1IEviU-71U-MYJD0Kc,3360
|
|
59
63
|
sovereign/views/discovery.py,sha256=B_D1ckfbN1dSKBvuFCTyfB79GUUriCADTB53OwZ8D4Q,2409
|
|
60
64
|
sovereign/views/healthchecks.py,sha256=TaXbxkX679jyQ8v5FxtBa2Qa0Z7KuqQ10WgAqfuVGUc,1743
|
|
61
|
-
sovereign/views/interface.py,sha256=
|
|
65
|
+
sovereign/views/interface.py,sha256=o6DaOqoh2M09_SsZrCOxr9rCVxMUZHXRXj4TNq800Ho,6999
|
|
62
66
|
sovereign/worker.py,sha256=Y4le54cZU1Enj8scu1G1sM_KPVPUmZ7vmTuxpd59X2Q,5855
|
|
63
|
-
sovereign-1.0.
|
|
64
|
-
sovereign-1.0.
|
|
65
|
-
sovereign-1.0.
|
|
66
|
-
sovereign-1.0.
|
|
67
|
-
sovereign-1.0.0b126.dist-info/RECORD,,
|
|
67
|
+
sovereign-1.0.0b127.post6.dist-info/METADATA,sha256=hpa3Z9VRRb17W23iRWYirqwdNe6z0JiLCyKsX8fVJTU,6310
|
|
68
|
+
sovereign-1.0.0b127.post6.dist-info/WHEEL,sha256=Nq82e9rUAnEjt98J6MlVmMCZb-t9cYE2Ir1kpBmnWfs,88
|
|
69
|
+
sovereign-1.0.0b127.post6.dist-info/entry_points.txt,sha256=VKJdnnN_HNL8xYQMXsFXfFmN6QkdXMEk5S964avxQJI,1404
|
|
70
|
+
sovereign-1.0.0b127.post6.dist-info/RECORD,,
|
|
@@ -1,13 +0,0 @@
|
|
|
1
|
-
Copyright @ 2018 Atlassian Pty Ltd
|
|
2
|
-
|
|
3
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
|
4
|
-
you may not use this file except in compliance with the License.
|
|
5
|
-
You may obtain a copy of the License at
|
|
6
|
-
|
|
7
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
|
8
|
-
|
|
9
|
-
Unless required by applicable law or agreed to in writing, software
|
|
10
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
|
11
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
12
|
-
See the License for the specific language governing permissions and
|
|
13
|
-
limitations under the License.
|
|
File without changes
|
|
File without changes
|