kinto 19.4.0__py3-none-any.whl → 19.6.0__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 kinto might be problematic. Click here for more details.
- kinto/core/__init__.py +3 -3
- kinto/core/cornice/__init__.py +93 -0
- kinto/core/cornice/cors.py +144 -0
- kinto/core/cornice/errors.py +40 -0
- kinto/core/cornice/pyramidhook.py +373 -0
- kinto/core/cornice/renderer.py +89 -0
- kinto/core/cornice/resource.py +205 -0
- kinto/core/cornice/service.py +641 -0
- kinto/core/cornice/util.py +138 -0
- kinto/core/cornice/validators/__init__.py +94 -0
- kinto/core/cornice/validators/_colander.py +142 -0
- kinto/core/cornice/validators/_marshmallow.py +182 -0
- kinto/core/cornice_swagger/__init__.py +92 -0
- kinto/core/cornice_swagger/converters/__init__.py +21 -0
- kinto/core/cornice_swagger/converters/exceptions.py +6 -0
- kinto/core/cornice_swagger/converters/parameters.py +90 -0
- kinto/core/cornice_swagger/converters/schema.py +249 -0
- kinto/core/cornice_swagger/swagger.py +725 -0
- kinto/core/cornice_swagger/templates/index.html +73 -0
- kinto/core/cornice_swagger/templates/index_script_template.html +21 -0
- kinto/core/cornice_swagger/util.py +42 -0
- kinto/core/cornice_swagger/views.py +78 -0
- kinto/core/errors.py +6 -4
- kinto/core/openapi.py +2 -3
- kinto/core/permission/memory.py +3 -2
- kinto/core/permission/testing.py +6 -0
- kinto/core/resource/viewset.py +1 -1
- kinto/core/testing.py +1 -1
- kinto/core/utils.py +3 -2
- kinto/core/views/batch.py +1 -1
- kinto/core/views/openapi.py +1 -1
- kinto/plugins/admin/VERSION +1 -1
- kinto/plugins/admin/build/VERSION +1 -1
- kinto/plugins/admin/build/assets/{index-D8oiN37x.css → index-BdpYyatM.css} +1 -1
- kinto/plugins/admin/build/assets/{index-BKIg2XW8.js → index-n-QM_iZE.js} +65 -65
- kinto/plugins/admin/build/index.html +2 -2
- kinto/plugins/flush.py +1 -1
- kinto/plugins/openid/views.py +1 -1
- kinto/views/contribute.py +2 -1
- {kinto-19.4.0.dist-info → kinto-19.6.0.dist-info}/METADATA +3 -4
- {kinto-19.4.0.dist-info → kinto-19.6.0.dist-info}/RECORD +45 -24
- {kinto-19.4.0.dist-info → kinto-19.6.0.dist-info}/LICENSE +0 -0
- {kinto-19.4.0.dist-info → kinto-19.6.0.dist-info}/WHEEL +0 -0
- {kinto-19.4.0.dist-info → kinto-19.6.0.dist-info}/entry_points.txt +0 -0
- {kinto-19.4.0.dist-info → kinto-19.6.0.dist-info}/top_level.txt +0 -0
|
@@ -0,0 +1,73 @@
|
|
|
1
|
+
<!-- HTML for static distribution bundle build -->
|
|
2
|
+
<!DOCTYPE html>
|
|
3
|
+
<html lang="en">
|
|
4
|
+
<head>
|
|
5
|
+
<meta charset="UTF-8">
|
|
6
|
+
<title>Swagger UI</title>
|
|
7
|
+
<link href="https://fonts.googleapis.com/css?family=Open+Sans:400,700|Source+Code+Pro:300,600|Titillium+Web:400,600,700" rel="stylesheet">
|
|
8
|
+
<link rel="stylesheet" type="text/css" href="${ui_css_url}" >
|
|
9
|
+
<style>
|
|
10
|
+
html
|
|
11
|
+
{
|
|
12
|
+
box-sizing: border-box;
|
|
13
|
+
overflow: -moz-scrollbars-vertical;
|
|
14
|
+
overflow-y: scroll;
|
|
15
|
+
}
|
|
16
|
+
*,
|
|
17
|
+
*:before,
|
|
18
|
+
*:after
|
|
19
|
+
{
|
|
20
|
+
box-sizing: inherit;
|
|
21
|
+
}
|
|
22
|
+
|
|
23
|
+
body {
|
|
24
|
+
margin:0;
|
|
25
|
+
background: #fafafa;
|
|
26
|
+
}
|
|
27
|
+
</style>
|
|
28
|
+
</head>
|
|
29
|
+
|
|
30
|
+
<body>
|
|
31
|
+
|
|
32
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" style="position:absolute;width:0;height:0">
|
|
33
|
+
<defs>
|
|
34
|
+
<symbol viewBox="0 0 20 20" id="unlocked">
|
|
35
|
+
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V6h2v-.801C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8z"></path>
|
|
36
|
+
</symbol>
|
|
37
|
+
|
|
38
|
+
<symbol viewBox="0 0 20 20" id="locked">
|
|
39
|
+
<path d="M15.8 8H14V5.6C14 2.703 12.665 1 10 1 7.334 1 6 2.703 6 5.6V8H4c-.553 0-1 .646-1 1.199V17c0 .549.428 1.139.951 1.307l1.197.387C5.672 18.861 6.55 19 7.1 19h5.8c.549 0 1.428-.139 1.951-.307l1.196-.387c.524-.167.953-.757.953-1.306V9.199C17 8.646 16.352 8 15.8 8zM12 8H8V5.199C8 3.754 8.797 3 10 3c1.203 0 2 .754 2 2.199V8z"/>
|
|
40
|
+
</symbol>
|
|
41
|
+
|
|
42
|
+
<symbol viewBox="0 0 20 20" id="close">
|
|
43
|
+
<path d="M14.348 14.849c-.469.469-1.229.469-1.697 0L10 11.819l-2.651 3.029c-.469.469-1.229.469-1.697 0-.469-.469-.469-1.229 0-1.697l2.758-3.15-2.759-3.152c-.469-.469-.469-1.228 0-1.697.469-.469 1.228-.469 1.697 0L10 8.183l2.651-3.031c.469-.469 1.228-.469 1.697 0 .469.469.469 1.229 0 1.697l-2.758 3.152 2.758 3.15c.469.469.469 1.229 0 1.698z"/>
|
|
44
|
+
</symbol>
|
|
45
|
+
|
|
46
|
+
<symbol viewBox="0 0 20 20" id="large-arrow">
|
|
47
|
+
<path d="M13.25 10L6.109 2.58c-.268-.27-.268-.707 0-.979.268-.27.701-.27.969 0l7.83 7.908c.268.271.268.709 0 .979l-7.83 7.908c-.268.271-.701.27-.969 0-.268-.269-.268-.707 0-.979L13.25 10z"/>
|
|
48
|
+
</symbol>
|
|
49
|
+
|
|
50
|
+
<symbol viewBox="0 0 20 20" id="large-arrow-down">
|
|
51
|
+
<path d="M17.418 6.109c.272-.268.709-.268.979 0s.271.701 0 .969l-7.908 7.83c-.27.268-.707.268-.979 0l-7.908-7.83c-.27-.268-.27-.701 0-.969.271-.268.709-.268.979 0L10 13.25l7.418-7.141z"/>
|
|
52
|
+
</symbol>
|
|
53
|
+
|
|
54
|
+
|
|
55
|
+
<symbol viewBox="0 0 24 24" id="jump-to">
|
|
56
|
+
<path d="M19 7v4H5.83l3.58-3.59L8 6l-6 6 6 6 1.41-1.41L5.83 13H21V7z"/>
|
|
57
|
+
</symbol>
|
|
58
|
+
|
|
59
|
+
<symbol viewBox="0 0 24 24" id="expand">
|
|
60
|
+
<path d="M10 18h4v-2h-4v2zM3 6v2h18V6H3zm3 7h12v-2H6v2z"/>
|
|
61
|
+
</symbol>
|
|
62
|
+
|
|
63
|
+
</defs>
|
|
64
|
+
</svg>
|
|
65
|
+
|
|
66
|
+
<div id="swagger-ui"></div>
|
|
67
|
+
|
|
68
|
+
<script src="${ui_js_bundle_url}"> </script>
|
|
69
|
+
<script src="${ui_js_standalone_url}"> </script>
|
|
70
|
+
${swagger_ui_script}
|
|
71
|
+
</body>
|
|
72
|
+
|
|
73
|
+
</html>
|
|
@@ -0,0 +1,21 @@
|
|
|
1
|
+
<script>
|
|
2
|
+
window.onload = function() {
|
|
3
|
+
|
|
4
|
+
// Build a system
|
|
5
|
+
const ui = SwaggerUIBundle({
|
|
6
|
+
url: "${swagger_spec_url}",
|
|
7
|
+
dom_id: '#swagger-ui',
|
|
8
|
+
deepLinking: true,
|
|
9
|
+
presets: [
|
|
10
|
+
SwaggerUIBundle.presets.apis,
|
|
11
|
+
SwaggerUIStandalonePreset
|
|
12
|
+
],
|
|
13
|
+
plugins: [
|
|
14
|
+
SwaggerUIBundle.plugins.DownloadUrl
|
|
15
|
+
],
|
|
16
|
+
layout: "StandaloneLayout"
|
|
17
|
+
})
|
|
18
|
+
|
|
19
|
+
window.ui = ui
|
|
20
|
+
}
|
|
21
|
+
</script>
|
|
@@ -0,0 +1,42 @@
|
|
|
1
|
+
import colander
|
|
2
|
+
|
|
3
|
+
from kinto.core.cornice.validators import colander_body_validator
|
|
4
|
+
|
|
5
|
+
|
|
6
|
+
def trim(docstring):
|
|
7
|
+
"""
|
|
8
|
+
Remove the tabs to spaces, and remove the extra spaces / tabs that are in
|
|
9
|
+
front of the text in docstrings.
|
|
10
|
+
|
|
11
|
+
Implementation taken from http://www.python.org/dev/peps/pep-0257/
|
|
12
|
+
"""
|
|
13
|
+
if not docstring:
|
|
14
|
+
return ""
|
|
15
|
+
# Convert tabs to spaces (following the normal Python rules)
|
|
16
|
+
# and split into a list of lines:
|
|
17
|
+
lines = docstring.expandtabs().splitlines()
|
|
18
|
+
lines = [line.strip() for line in lines]
|
|
19
|
+
res = "\n".join(lines)
|
|
20
|
+
return res
|
|
21
|
+
|
|
22
|
+
|
|
23
|
+
def body_schema_transformer(schema, args):
|
|
24
|
+
validators = args.get("validators", [])
|
|
25
|
+
if colander_body_validator in validators:
|
|
26
|
+
body_schema = schema
|
|
27
|
+
schema = colander.MappingSchema()
|
|
28
|
+
schema["body"] = body_schema
|
|
29
|
+
return schema
|
|
30
|
+
|
|
31
|
+
|
|
32
|
+
def merge_dicts(base, changes):
|
|
33
|
+
"""Merge b into a recursively, without overwriting values.
|
|
34
|
+
|
|
35
|
+
:param base: the dict that will be altered.
|
|
36
|
+
:param changes: changes to update base.
|
|
37
|
+
"""
|
|
38
|
+
for k, v in changes.items():
|
|
39
|
+
if isinstance(v, dict):
|
|
40
|
+
merge_dicts(base.setdefault(k, {}), v)
|
|
41
|
+
else:
|
|
42
|
+
base.setdefault(k, v)
|
|
@@ -0,0 +1,78 @@
|
|
|
1
|
+
import importlib
|
|
2
|
+
from string import Template
|
|
3
|
+
|
|
4
|
+
import cornice
|
|
5
|
+
import cornice_swagger
|
|
6
|
+
import pkg_resources
|
|
7
|
+
from pyramid.response import Response
|
|
8
|
+
|
|
9
|
+
|
|
10
|
+
# hardcode for now since that will work for vast majority of users
|
|
11
|
+
# maybe later add minified resources for behind firewall support?
|
|
12
|
+
ui_css_url = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.23.11/swagger-ui.css"
|
|
13
|
+
ui_js_bundle_url = "https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.23.11/swagger-ui-bundle.js"
|
|
14
|
+
ui_js_standalone_url = (
|
|
15
|
+
"https://cdnjs.cloudflare.com/ajax/libs/swagger-ui/3.23.11/swagger-ui-standalone-preset.js"
|
|
16
|
+
)
|
|
17
|
+
|
|
18
|
+
|
|
19
|
+
def swagger_ui_template_view(request):
|
|
20
|
+
"""
|
|
21
|
+
Serves Swagger UI page, default Swagger UI config is used but you can
|
|
22
|
+
override the callable that generates the `<script>` tag by setting
|
|
23
|
+
`cornice_swagger.swagger_ui_script_generator` in pyramid config, it defaults
|
|
24
|
+
to 'cornice_swagger.views:swagger_ui_script_template'
|
|
25
|
+
|
|
26
|
+
:param request:
|
|
27
|
+
:return:
|
|
28
|
+
"""
|
|
29
|
+
script_generator = request.registry.settings.get(
|
|
30
|
+
"cornice_swagger.swagger_ui_script_generator",
|
|
31
|
+
"cornice_swagger.views:swagger_ui_script_template",
|
|
32
|
+
)
|
|
33
|
+
package, callable = script_generator.split(":")
|
|
34
|
+
imported_package = importlib.import_module(package)
|
|
35
|
+
script_callable = getattr(imported_package, callable)
|
|
36
|
+
template = pkg_resources.resource_string("cornice_swagger", "templates/index.html").decode(
|
|
37
|
+
"utf8"
|
|
38
|
+
)
|
|
39
|
+
|
|
40
|
+
html = Template(template).safe_substitute(
|
|
41
|
+
ui_css_url=ui_css_url,
|
|
42
|
+
ui_js_bundle_url=ui_js_bundle_url,
|
|
43
|
+
ui_js_standalone_url=ui_js_standalone_url,
|
|
44
|
+
swagger_ui_script=script_callable(request),
|
|
45
|
+
)
|
|
46
|
+
return Response(html)
|
|
47
|
+
|
|
48
|
+
|
|
49
|
+
def open_api_json_view(request):
|
|
50
|
+
"""
|
|
51
|
+
:param request:
|
|
52
|
+
:return:
|
|
53
|
+
|
|
54
|
+
Generates JSON representation of Swagger spec
|
|
55
|
+
"""
|
|
56
|
+
doc = cornice_swagger.CorniceSwagger(
|
|
57
|
+
cornice.service.get_services(), pyramid_registry=request.registry
|
|
58
|
+
)
|
|
59
|
+
kwargs = request.registry.settings["cornice_swagger.spec_kwargs"]
|
|
60
|
+
my_spec = doc.generate(**kwargs)
|
|
61
|
+
return my_spec
|
|
62
|
+
|
|
63
|
+
|
|
64
|
+
def swagger_ui_script_template(request, **kwargs):
|
|
65
|
+
"""
|
|
66
|
+
:param request:
|
|
67
|
+
:return:
|
|
68
|
+
|
|
69
|
+
Generates the <script> code that bootstraps Swagger UI, it will be injected
|
|
70
|
+
into index template
|
|
71
|
+
"""
|
|
72
|
+
swagger_spec_url = request.route_url("cornice_swagger.open_api_path")
|
|
73
|
+
template = pkg_resources.resource_string(
|
|
74
|
+
"cornice_swagger", "templates/index_script_template.html"
|
|
75
|
+
).decode("utf8")
|
|
76
|
+
return Template(template).safe_substitute(
|
|
77
|
+
swagger_spec_url=swagger_spec_url,
|
|
78
|
+
)
|
kinto/core/errors.py
CHANGED
|
@@ -140,14 +140,16 @@ def json_error_handler(request):
|
|
|
140
140
|
"""
|
|
141
141
|
errors = request.errors
|
|
142
142
|
sorted_errors = sorted(errors, key=lambda x: str(x["name"]))
|
|
143
|
+
for error in sorted_errors:
|
|
144
|
+
# Decode in place.
|
|
145
|
+
if isinstance(error["description"], bytes):
|
|
146
|
+
error["description"] = error["description"].decode("utf-8")
|
|
147
|
+
|
|
143
148
|
# In Cornice, we call error handler if at least one error was set.
|
|
144
149
|
error = sorted_errors[0]
|
|
145
150
|
name = error["name"]
|
|
146
151
|
description = error["description"]
|
|
147
152
|
|
|
148
|
-
if isinstance(description, bytes):
|
|
149
|
-
description = error["description"].decode("utf-8")
|
|
150
|
-
|
|
151
153
|
if name is not None:
|
|
152
154
|
if str(name) in description:
|
|
153
155
|
message = description
|
|
@@ -162,7 +164,7 @@ def json_error_handler(request):
|
|
|
162
164
|
errno=ERRORS.INVALID_PARAMETERS.value,
|
|
163
165
|
error="Invalid parameters",
|
|
164
166
|
message=message,
|
|
165
|
-
details=
|
|
167
|
+
details=sorted_errors,
|
|
166
168
|
)
|
|
167
169
|
response.status = errors.status
|
|
168
170
|
response = reapply_cors(request, response)
|
kinto/core/openapi.py
CHANGED
|
@@ -1,6 +1,5 @@
|
|
|
1
|
-
from cornice_swagger import CorniceSwagger
|
|
2
|
-
from cornice_swagger.converters.schema import TypeConverter
|
|
3
|
-
|
|
1
|
+
from kinto.core.cornice_swagger import CorniceSwagger
|
|
2
|
+
from kinto.core.cornice_swagger.converters.schema import TypeConverter
|
|
4
3
|
from kinto.core.schema import Any
|
|
5
4
|
|
|
6
5
|
|
kinto/core/permission/memory.py
CHANGED
|
@@ -98,8 +98,9 @@ class Permission(PermissionBase):
|
|
|
98
98
|
candidates = []
|
|
99
99
|
if bound_permissions is None:
|
|
100
100
|
for key, value in self._store.items():
|
|
101
|
-
|
|
102
|
-
|
|
101
|
+
if key.startswith("permission:"):
|
|
102
|
+
_, object_id, permission = key.split(":", 2)
|
|
103
|
+
candidates.append((object_id, permission, value))
|
|
103
104
|
else:
|
|
104
105
|
for pattern, perm in bound_permissions:
|
|
105
106
|
id_match = ".*" if with_children else "[^/]+"
|
kinto/core/permission/testing.py
CHANGED
|
@@ -344,6 +344,12 @@ class PermissionTest:
|
|
|
344
344
|
)
|
|
345
345
|
self.assertEqual(sorted(per_object_ids.keys()), ["/url/a", "/url/a/id/1", "/url/a/id/2"])
|
|
346
346
|
|
|
347
|
+
def test_accessible_objects_with_user_principle(self):
|
|
348
|
+
self.permission.add_user_principal("user1", "group")
|
|
349
|
+
self.permission.add_principal_to_ace("id1", "write", "user1")
|
|
350
|
+
per_object_ids = self.permission.get_accessible_objects(["user1"])
|
|
351
|
+
self.assertEqual(sorted(per_object_ids.keys()), ["id1"])
|
|
352
|
+
|
|
347
353
|
#
|
|
348
354
|
# get_object_permissions()
|
|
349
355
|
#
|
kinto/core/resource/viewset.py
CHANGED
|
@@ -2,10 +2,10 @@ import functools
|
|
|
2
2
|
import warnings
|
|
3
3
|
|
|
4
4
|
import colander
|
|
5
|
-
from cornice.validators import colander_validator
|
|
6
5
|
from pyramid.settings import asbool
|
|
7
6
|
|
|
8
7
|
from kinto.core import authorization
|
|
8
|
+
from kinto.core.cornice.validators import colander_validator
|
|
9
9
|
|
|
10
10
|
from .schema import (
|
|
11
11
|
ObjectGetQuerySchema,
|
kinto/core/testing.py
CHANGED
|
@@ -5,10 +5,10 @@ from collections import defaultdict
|
|
|
5
5
|
from unittest import mock
|
|
6
6
|
|
|
7
7
|
import webtest
|
|
8
|
-
from cornice import errors as cornice_errors
|
|
9
8
|
from pyramid.url import parse_url_overrides
|
|
10
9
|
|
|
11
10
|
from kinto.core import DEFAULT_SETTINGS
|
|
11
|
+
from kinto.core.cornice import errors as cornice_errors
|
|
12
12
|
from kinto.core.storage import generators
|
|
13
13
|
from kinto.core.utils import encode64, follow_subrequest, memcache, sqlalchemy
|
|
14
14
|
from kinto.plugins import prometheus, statsd
|
kinto/core/utils.py
CHANGED
|
@@ -13,7 +13,6 @@ from urllib.parse import unquote
|
|
|
13
13
|
import jsonpatch
|
|
14
14
|
import rapidjson
|
|
15
15
|
from colander import null
|
|
16
|
-
from cornice import cors
|
|
17
16
|
from pyramid import httpexceptions
|
|
18
17
|
from pyramid.authorization import Authenticated
|
|
19
18
|
from pyramid.interfaces import IRoutesMapper
|
|
@@ -21,6 +20,8 @@ from pyramid.request import Request, apply_request_extensions
|
|
|
21
20
|
from pyramid.settings import aslist
|
|
22
21
|
from pyramid.view import render_view_to_response
|
|
23
22
|
|
|
23
|
+
from kinto.core.cornice import cors
|
|
24
|
+
|
|
24
25
|
|
|
25
26
|
try:
|
|
26
27
|
import sqlalchemy
|
|
@@ -289,7 +290,7 @@ def current_service(request):
|
|
|
289
290
|
"""Return the Cornice service matching the specified request.
|
|
290
291
|
|
|
291
292
|
:returns: the service or None if unmatched.
|
|
292
|
-
:rtype: cornice.Service
|
|
293
|
+
:rtype: kinto.core.cornice.Service
|
|
293
294
|
"""
|
|
294
295
|
if request.matched_route:
|
|
295
296
|
services = request.registry.cornice_services
|
kinto/core/views/batch.py
CHANGED
|
@@ -1,11 +1,11 @@
|
|
|
1
1
|
import logging
|
|
2
2
|
|
|
3
3
|
import colander
|
|
4
|
-
from cornice.validators import colander_validator
|
|
5
4
|
from pyramid import httpexceptions
|
|
6
5
|
from pyramid.security import NO_PERMISSION_REQUIRED
|
|
7
6
|
|
|
8
7
|
from kinto.core import Service, errors
|
|
8
|
+
from kinto.core.cornice.validators import colander_validator
|
|
9
9
|
from kinto.core.errors import ErrorSchema
|
|
10
10
|
from kinto.core.resource.viewset import CONTENT_TYPES
|
|
11
11
|
from kinto.core.utils import build_request, build_response, merge_dicts
|
kinto/core/views/openapi.py
CHANGED
kinto/plugins/admin/VERSION
CHANGED
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.5.1
|
|
@@ -1 +1 @@
|
|
|
1
|
-
3.
|
|
1
|
+
3.5.1
|
|
@@ -1,4 +1,4 @@
|
|
|
1
|
-
html,body{background:#fafbfc}h1{font-family:Ubuntu,Calibri,Arial,sans-serif;font-size:2.2em}.icon{vertical-align:-.125em;margin-bottom:-.0625em}.main{padding-top:2.8em}.sidebar{padding-top:1em}.sidebar .card{margin-bottom:20px}.card.panel-info .card-header{background-color:#cce5ff;border-color:#b8daff}.card-header span{margin-right:1em;max-width:26em;display:inline-block;height:1.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-header span label{font-weight:700}.card>.card-body{position:relative}.sidebar-filters>.card-body{padding:15px 15px 0}.sidebar-filters a.clear{color:#777}.list-group-item .glyphicon.glyphicon-lock{color:#888}.content .list-actions{margin-bottom:.4em}.content .list-actions a{margin-right:.5em}.content .list-actions a>.glyphicon{margin-right:.3em}.content .edit-coll-props .btn{margin-right:0;margin-left:.3em}.kinto-admin-title{display:inline-block;font-size:2em;margin-top:0;margin-bottom:0;padding-left:100px;background:transparent url(/v1/admin/assets/logo-VBRiKSPX.png) no-repeat left;background-size:contain}.user-info{float:right;padding-top:.3em;font-size:14px}.user-info a.spaced{margin-left:1em}.server-url input:invalid,.server-url input:focus:invalid{box-shadow:0 0 5px 1px red}.session-info-bar{position:fixed;top:0;left:0;right:0;background:#24292e;color:#fff;padding:.2em 1.15em;z-index:999}.session-info-bar>a{margin-left:.5em}.server-info-panel table{margin:0}.server-info-panel .table-condensed>tbody>tr>th,.server-info-panel .table-condensed>tbody>tr>td{padding:.3em;overflow:hidden;text-overflow:ellipsis;max-width:300px}.server-info-panel tr:first-child th,.server-info-panel tr:first-child td{border:none}.alert h4 small{margin-left:.5em}.list-page .alert{margin-top:1.5em;margin-right:.5em}.tabs-container .panel-default{border-top:none}.tabs-container .panel-danger{margin-top:2em}table.record-list{margin-top:1em}table.record-list th{background:#00000014}table.record-list tbody.loading td{background:#dcdcdc26;color:#777}table.record-list td:not(.actions){max-width:8vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:.8em .5em}table.record-list td.lastmod{white-space:nowrap;width:120px}table.record-list td.status{white-space:nowrap;width:80px}table.record-list td.actions{min-width:150px;width:150px;padding:.5em 0;white-space:nowrap;text-align:center}table.record-list td.actions .btn-group{margin:0 .5em}table.record-list>tbody+tbody{border-top:none}.load-more>a{display:block;width:100%}table.record-list td.load-more{padding:0;line-height:2.5em}.load-more>a:hover,.load-more>a:active{background:#d9edf7;text-decoration:none}.card-body>.spinner{position:absolute;left:0;right:0;top:0;bottom:0;background-color:#0003;z-index:1;display:flex;justify-content:center;align-items:center;width:auto;margin:0;border-radius:3px}.load-more .spinner{margin-top:.25em}.history-row-details{display:table-row}.table>tbody>tr.history-row-details>td{padding:0;margin:0}.history-row-details td pre{border:none;margin:0}.history-row-details .alert{margin:0;border-radius:0}.sort-link{float:right;margin-top:.1em;color:#444}.sort-link.active{color:#fff}.json-record>div{padding:1px 0 1px 4px}.json-record>div.added{background:#cbeecb;color:green}.json-record>div.removed{background:#f0c9c9;color:red}.json-record-simple-review{white-space:pre-wrap}.card-header>.icon,.list-group-item .icon,.nav-tabs li .icon{margin-right:.5em}.nav-tabs.nav-justified>li>a{color:#333}.collections-menu-entry{display:flex}.collections-menu-entry a:first-child{display:inline-block;width:95%;color:#555;text-decoration:none}.collections-menu-entry.active>a{color:#fff}.home-menu i,.home-menu .icon{float:right;margin:.15em -.5em 0 0}.bucket-menu-entry-edit{float:right;color:#555;text-decoration:none}.bucket-menu-entry-edit:hover{color:inherit}.collections-menu-entry-edit{position:absolute;margin-right:-.5em;color:#888}.collections-menu-entry-edit:hover{color:inherit}.CodeMirror{border:1px solid #ccc;height:auto;border-radius:.3em}.attachment-icon{width:16px}.attachment-action{margin:0;padding:0}.attachment-info .attachment-attributes{display:flex;align-content:stretch;align-items:end}.attachment-info table{margin-bottom:0;flex-grow:1;display:block}.attachment-info .table-condensed>tbody>tr>td{overflow:hidden;text-overflow:ellipsis}.attachment-img{display:flex;align-items:center;justify-content:center;max-width:150px;max-height:150px;text-align:center;background:#fff;border:1px solid #ddd;margin:10px}.attachment-img img{max-width:100%;max-height:100%}form button[type=submit].btn-primary{font-size:1.2em;padding:12px;box-shadow:inset 0 0 0 1px #fff}.record-form-buttons .delete{margin-top:12px}.permissions-form .array-item:not(:last-child) fieldset{border-bottom:1px solid #eee}.permissions-form .field-principal{float:left;width:60%;padding-right:1em}.permissions-form .field-permissions{float:left;width:30%;padding-left:1em}.permissions-form .field-anonymous,.permissions-form .field-authenticated{width:100%;float:left;clear:both}.permissions-form .field-anonymous{border-bottom:1px solid #eee}.permissions-form .field-anonymous p,.permissions-form .field-authenticated p{width:50%}.permissions-form .field-anonymous .checkboxes,.permissions-form .field-authenticated .checkboxes{float:right;width:50%;padding-left:1em;margin-top:-60px}.permissions-form .field-groups fieldset{clear:left}.permissions-form .field-groups .checkboxes{float:right;width:50%;padding-left:1em;margin-top:-60px}.permissions-form .field-groups fieldset>.field.field-array{clear:right}.permissions-form .field-principals .checkboxes{margin-top:-35px}.permissions-form .field-principal>label{display:none}.spinner{margin:30px auto 0;width:70px;text-align:center}.spinner>div{width:18px;height:18px;background-color:#337ab7;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.spinner .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinner .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.notifications>div{top:3em}i.fa{position:relative;top:1px;display:inline-block;font-style:normal;font-weight:400;line-height:1}i.fa:before{display:inline-block;content:"";background-repeat:no-repeat;background-size:24px 24px;width:24px;height:24px}.fa.fa-check:before{background-image:url(~bootstrap-icons/icons/check.svg)}.fa-exclamation-circle:before{background-image:url(~bootstrap-icons/icons/exclamation-circle-fill.svg)}.fa-info:before{background-image:url(~bootstrap-icons/icons/info-circle-fill.svg)}.fa-warning:before{background-image:url(~bootstrap-icons/icons/exclamation-triangle-fill.svg)}.rjsf{margin-bottom:1.25rem}.rjsf pre{padding:9.5px;margin:0 0 10px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}.rjsf input[type=radio],.rjsf input[type=checkbox]{margin-right:10px}.rjsf .form-label{font-weight:700}.rjsf h5{font-size:18pt;margin:0 0 0 1pt}.rjsf hr{margin:1px 0 .5em;background-color:#ccc!important}.rjsf .row .align-items-center{align-items:flex-start!important;border-bottom:1px solid #eee}.rjsf .align-items-center button.btn{font-size:14pt}.rjsf .input-group-append button.dropdown-toggle{font-size:12pt}.formWrapper{position:relative}.formWrapper>.spinner{position:absolute;left:-1.25em;right:-1.25em;top:-1.5em;bottom:-2.5em;background-color:#0003;z-index:1;display:flex;justify-content:center;align-items:center;width:auto;margin:0;border-radius:3px}.interactive>.spinner{position:absolute;left:-1.25em;right:-1.25em;top:-.5em;bottom:0;background-color:#0003;z-index:1;display:flex;justify-content:center;align-items:center;width:auto;margin:0;border-radius:3px}.modal{background-color:#0000004d}.modal-dialog>.spinner{position:absolute;left:0;right:0;top:0;bottom:0;background-color:#0003;z-index:1;display:flex;justify-content:center;align-items:center;width:auto;margin:0;border-radius:3px}.informative{filter:grayscale(.8)}.interactive{position:relative}.bs-wizard{margin-top:40px}.progress-steps .row.bs-wizard{border-bottom:0}.bs-wizard{border-bottom:solid 1px #e0e0e0;padding:0 0 10px}.bs-wizard>.bs-wizard-step{padding:0;position:relative}.bs-wizard>.bs-wizard-step .bs-wizard-stepnum{color:#595959;font-size:16px;margin-bottom:5px}.bs-wizard>.bs-wizard-step .bs-wizard-info{color:#999;font-size:14px}.bs-wizard>.bs-wizard-step>.bs-wizard-dot{position:absolute;width:30px;height:30px;display:block;background:#fbe8aa;top:45px;left:50%;margin-top:-15px;margin-left:-15px;border-radius:50%}.bs-wizard>.bs-wizard-step>.bs-wizard-dot:after{content:" ";width:14px;height:14px;background:#fbbd19;border-radius:50px;position:absolute;top:8px;left:8px}.bs-wizard>.bs-wizard-step>.progress{position:relative;border-radius:0;height:8px;box-shadow:none;margin:20px 0}.bs-wizard>.bs-wizard-step>.progress>.progress-bar{width:0px;box-shadow:none;background:#fbe8aa}.bs-wizard>.bs-wizard-step.complete>.progress>.progress-bar{width:100%}.bs-wizard>.bs-wizard-step.active>.progress>.progress-bar{width:50%}.bs-wizard>.bs-wizard-step:first-child.active>.progress>.progress-bar{width:0%}.bs-wizard>.bs-wizard-step:last-child.active>.progress>.progress-bar{width:100%}.bs-wizard>.bs-wizard-step.disabled>.bs-wizard-dot{background-color:#f5f5f5}.bs-wizard>.bs-wizard-step.disabled>.bs-wizard-dot:after{opacity:0}.bs-wizard>.bs-wizard-step:first-child>.progress{left:50%;width:50%}.bs-wizard>.bs-wizard-step:last-child>.progress{width:50%}.bs-wizard>.bs-wizard-step.disabled a.bs-wizard-dot{pointer-events:none}.bs-wizard>.bs-wizard-step .bs-wizard-info li{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:250px;text-align:left}.diffstats{font-weight:600}.diffstats .text-green{color:#55a532}.diffstats .text-red{color:#bd2c00;padding-left:4px;padding-right:4px}.signoff-comment{display:block;overflow:auto;max-height:4em;white-space:pre-line}.rollback-changes{position:absolute;top:152px;right:30px}.breadcrumbs{padding-top:.5em;font-size:1.2em;text-transform:lowercase}/*!
|
|
1
|
+
html,body{background:#fafbfc}h1{font-family:Ubuntu,Calibri,Arial,sans-serif;font-size:2.2em}.icon{vertical-align:-.125em;margin-bottom:-.0625em}.main{padding-top:2.8em}.sidebar{padding-top:1em}.sidebar .card{margin-bottom:20px}.card.panel-info .card-header{background-color:#cce5ff;border-color:#b8daff}.card-header span{margin-right:1em;max-width:26em;display:inline-block;height:1.5em;overflow:hidden;text-overflow:ellipsis;white-space:nowrap}.card-header span label{font-weight:700}.card>.card-body{position:relative}.sidebar-filters>.card-body{padding:15px 15px 0}.sidebar-filters a.clear{color:#777}.list-group-item .glyphicon.glyphicon-lock{color:#888}.content .list-actions{margin-bottom:.4em}.content .list-actions a{margin-right:.5em}.content .list-actions a>.glyphicon{margin-right:.3em}.content .edit-coll-props .btn{margin-right:0;margin-left:.3em}.kinto-admin-title{display:inline-block;font-size:2em;margin-top:0;margin-bottom:0;padding-left:100px;background:transparent url(/v1/admin/assets/logo-VBRiKSPX.png) no-repeat left;background-size:contain}.user-info{float:right;padding-top:.3em;font-size:14px}.user-info a.spaced{margin-left:1em}.server-url input:invalid,.server-url input:focus:invalid{box-shadow:0 0 5px 1px red}.session-info-bar{position:fixed;top:0;left:0;right:0;background:#24292e;color:#fff;padding:.2em 1.15em;z-index:999}.session-info-bar>a{margin-left:.5em}.server-info-panel table{margin:0}.server-info-panel .table-condensed>tbody>tr>th,.server-info-panel .table-condensed>tbody>tr>td{padding:.3em;overflow:hidden;text-overflow:ellipsis;max-width:300px}.server-info-panel tr:first-child th,.server-info-panel tr:first-child td{border:none}.alert h4 small{margin-left:.5em}.list-page .alert{margin-top:1.5em;margin-right:.5em}.tabs-container .panel-default{border-top:none}.tabs-container .panel-danger{margin-top:2em}table.record-list{margin-top:1em}table.record-list th{background:#00000014}table.record-list tbody.loading td{background:#dcdcdc26;color:#777}table.record-list td:not(.actions){max-width:8vw;white-space:nowrap;overflow:hidden;text-overflow:ellipsis;padding:.8em .5em}table.record-list td.lastmod{white-space:nowrap;width:120px}table.record-list td.status{white-space:nowrap;width:80px}table.record-list td.actions{min-width:150px;width:150px;padding:.5em 0;white-space:nowrap;text-align:center}table.record-list td.actions .btn-group{margin:0 .5em}table.record-list>tbody+tbody{border-top:none}.load-more>a{display:block;width:100%}table.record-list td.load-more{padding:0;line-height:2.5em}.load-more>a:hover,.load-more>a:active{background:#d9edf7;text-decoration:none}.card-body>.spinner{position:absolute;left:0;right:0;top:0;bottom:0;background-color:#0003;z-index:1;display:flex;justify-content:center;align-items:center;width:auto;margin:0;border-radius:3px}.load-more .spinner{margin-top:.25em}.history-row-details{display:table-row}.table>tbody>tr.history-row-details>td{padding:0;margin:0}.history-row-details td pre{border:none;margin:0}.history-row-details .alert{margin:0;border-radius:0}.sort-link{float:right;margin-top:.1em;color:#444}.sort-link.active{color:#fff}.json-record>div{padding:1px 0 1px 4px}.json-record>div.added{background:#cbeecb;color:green}.json-record>div.removed{background:#f0c9c9;color:red}.json-record-simple-review{white-space:pre-wrap}.card-header>.icon,.list-group-item .icon,.nav-tabs li .icon{margin-right:.5em}.nav-tabs.nav-justified>li>a{color:#333}.collections-menu-entry{display:flex}.collections-menu-entry a:first-child{display:inline-block;width:95%;color:#555;text-decoration:none}.collections-menu-entry.active>a{color:#fff}.home-menu i,.home-menu .icon{float:right;margin:.15em -.5em 0 0}.bucket-menu-entry-edit{float:right;color:#555;text-decoration:none}.bucket-menu-entry-edit:hover{color:inherit}.collections-menu-entry-edit{position:absolute;margin-right:-.5em;color:#888}.collections-menu-entry-edit:hover{color:inherit}.CodeMirror{border:1px solid #ccc;height:auto;border-radius:.3em}.attachment-icon{width:16px}.attachment-action{margin:0;padding:0}.attachment-info .attachment-attributes{display:flex;align-content:stretch;align-items:end}.attachment-info table{margin-bottom:0;flex-grow:1;display:block}.attachment-info .table-condensed>tbody>tr>td{overflow:hidden;text-overflow:ellipsis}.attachment-img{display:flex;align-items:center;justify-content:center;max-width:150px;max-height:150px;text-align:center;background:#fff;border:1px solid #ddd;margin:10px}.attachment-img img{max-width:100%;max-height:100%}form button[type=submit].btn-primary{font-size:1.2em;padding:12px;box-shadow:inset 0 0 0 1px #fff}.record-form-buttons .delete{margin-top:12px}.permissions-form .array-item:not(:last-child) fieldset{border-bottom:1px solid #eee}.permissions-form .field-principal{float:left;width:60%;padding-right:1em}.permissions-form .field-permissions{float:left;width:30%;padding-left:1em}.permissions-form .field-anonymous,.permissions-form .field-authenticated{width:100%;float:left;clear:both}.permissions-form .field-anonymous{border-bottom:1px solid #eee}.permissions-form .field-anonymous p,.permissions-form .field-authenticated p{width:50%}.permissions-form .field-anonymous .checkboxes,.permissions-form .field-authenticated .checkboxes{float:right;width:50%;padding-left:1em;margin-top:-60px}.permissions-form .field-groups fieldset{clear:left}.permissions-form .field-groups .checkboxes{float:right;width:50%;padding-left:1em;margin-top:-60px}.permissions-form .field-groups fieldset>.field.field-array{clear:right}.permissions-form .field-principals .checkboxes{margin-top:-35px}.permissions-form .field-principal>label{display:none}.quickFilter{margin-bottom:-.5em}.spinner{margin:30px auto 0;width:70px;text-align:center}.spinner>div{width:18px;height:18px;background-color:#337ab7;border-radius:100%;display:inline-block;-webkit-animation:sk-bouncedelay 1.4s infinite ease-in-out both;animation:sk-bouncedelay 1.4s infinite ease-in-out both}.spinner .bounce1{-webkit-animation-delay:-.32s;animation-delay:-.32s}.spinner .bounce2{-webkit-animation-delay:-.16s;animation-delay:-.16s}@-webkit-keyframes sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0)}40%{-webkit-transform:scale(1)}}@keyframes sk-bouncedelay{0%,80%,to{-webkit-transform:scale(0);transform:scale(0)}40%{-webkit-transform:scale(1);transform:scale(1)}}.notifications>div{top:3em}i.fa{position:relative;top:1px;display:inline-block;font-style:normal;font-weight:400;line-height:1}i.fa:before{display:inline-block;content:"";background-repeat:no-repeat;background-size:24px 24px;width:24px;height:24px}.fa.fa-check:before{background-image:url(~bootstrap-icons/icons/check.svg)}.fa-exclamation-circle:before{background-image:url(~bootstrap-icons/icons/exclamation-circle-fill.svg)}.fa-info:before{background-image:url(~bootstrap-icons/icons/info-circle-fill.svg)}.fa-warning:before{background-image:url(~bootstrap-icons/icons/exclamation-triangle-fill.svg)}.rjsf{margin-bottom:1.25rem}.rjsf pre{padding:9.5px;margin:0 0 10px;line-height:1.42857143;word-break:break-all;word-wrap:break-word;background-color:#f5f5f5;border:1px solid #ccc;border-radius:4px}.rjsf input[type=radio],.rjsf input[type=checkbox]{margin-right:10px}.rjsf .form-label{font-weight:700}.rjsf h5{font-size:18pt;margin:0 0 0 1pt}.rjsf hr{margin:1px 0 .5em;background-color:#ccc!important}.rjsf .row .align-items-center{align-items:flex-start!important;border-bottom:1px solid #eee}.rjsf .align-items-center button.btn{font-size:14pt}.rjsf .input-group-append button.dropdown-toggle{font-size:12pt}.formWrapper{position:relative}.formWrapper>.spinner{position:absolute;left:-1.25em;right:-1.25em;top:-1.5em;bottom:-2.5em;background-color:#0003;z-index:1;display:flex;justify-content:center;align-items:center;width:auto;margin:0;border-radius:3px}.interactive>.spinner{position:absolute;left:-1.25em;right:-1.25em;top:-.5em;bottom:0;background-color:#0003;z-index:1;display:flex;justify-content:center;align-items:center;width:auto;margin:0;border-radius:3px}.modal{background-color:#0000004d}.modal-dialog>.spinner{position:absolute;left:0;right:0;top:0;bottom:0;background-color:#0003;z-index:1;display:flex;justify-content:center;align-items:center;width:auto;margin:0;border-radius:3px}.informative{filter:grayscale(.8)}.interactive{position:relative}.bs-wizard{margin-top:40px}.progress-steps .row.bs-wizard{border-bottom:0}.bs-wizard{border-bottom:solid 1px #e0e0e0;padding:0 0 10px}.bs-wizard>.bs-wizard-step{padding:0;position:relative}.bs-wizard>.bs-wizard-step .bs-wizard-stepnum{color:#595959;font-size:16px;margin-bottom:5px}.bs-wizard>.bs-wizard-step .bs-wizard-info{color:#999;font-size:14px}.bs-wizard>.bs-wizard-step>.bs-wizard-dot{position:absolute;width:30px;height:30px;display:block;background:#fbe8aa;top:45px;left:50%;margin-top:-15px;margin-left:-15px;border-radius:50%}.bs-wizard>.bs-wizard-step>.bs-wizard-dot:after{content:" ";width:14px;height:14px;background:#fbbd19;border-radius:50px;position:absolute;top:8px;left:8px}.bs-wizard>.bs-wizard-step>.progress{position:relative;border-radius:0;height:8px;box-shadow:none;margin:20px 0}.bs-wizard>.bs-wizard-step>.progress>.progress-bar{width:0px;box-shadow:none;background:#fbe8aa}.bs-wizard>.bs-wizard-step.complete>.progress>.progress-bar{width:100%}.bs-wizard>.bs-wizard-step.active>.progress>.progress-bar{width:50%}.bs-wizard>.bs-wizard-step:first-child.active>.progress>.progress-bar{width:0%}.bs-wizard>.bs-wizard-step:last-child.active>.progress>.progress-bar{width:100%}.bs-wizard>.bs-wizard-step.disabled>.bs-wizard-dot{background-color:#f5f5f5}.bs-wizard>.bs-wizard-step.disabled>.bs-wizard-dot:after{opacity:0}.bs-wizard>.bs-wizard-step:first-child>.progress{left:50%;width:50%}.bs-wizard>.bs-wizard-step:last-child>.progress{width:50%}.bs-wizard>.bs-wizard-step.disabled a.bs-wizard-dot{pointer-events:none}.bs-wizard>.bs-wizard-step .bs-wizard-info li{text-overflow:ellipsis;white-space:nowrap;overflow:hidden;max-width:250px;text-align:left}.diffstats{font-weight:600}.diffstats .text-green{color:#55a532}.diffstats .text-red{color:#bd2c00;padding-left:4px;padding-right:4px}.signoff-comment{display:block;overflow:auto;max-height:4em;white-space:pre-line}.rollback-changes{position:absolute;top:152px;right:30px}.breadcrumbs{padding-top:.5em;font-size:1.2em;text-transform:lowercase}/*!
|
|
2
2
|
* Bootstrap v4.6.2 (https://getbootstrap.com/)
|
|
3
3
|
* Copyright 2011-2022 The Bootstrap Authors
|
|
4
4
|
* Copyright 2011-2022 Twitter, Inc.
|