rails_mini_profiler 0.1.2 → 0.3.0
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.
- checksums.yaml +4 -4
- data/README.md +19 -10
- data/app/assets/javascripts/rails_mini_profiler.js +1 -78
- data/app/assets/stylesheets/rails_mini_profiler/application.css +1 -171
- data/app/controllers/rails_mini_profiler/profiled_requests_controller.rb +10 -1
- data/app/helpers/rails_mini_profiler/application_helper.rb +9 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/bookmark.svg +0 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/chart.svg +0 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/delete.svg +0 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/graph.svg +0 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/logo.svg +0 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/logo_variant.svg +0 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/search.svg +0 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/setting.svg +0 -0
- data/app/{assets/images/rails_mini_profiler → javascript/images}/show.svg +0 -0
- data/app/javascript/packs/rails-mini-profiler.js +80 -0
- data/app/javascript/stylesheets/flamegraph.scss +9 -0
- data/app/{assets/stylesheets/rails_mini_profiler/flashes.css → javascript/stylesheets/flashes.scss} +0 -0
- data/app/{assets/stylesheets/rails_mini_profiler/navbar.css → javascript/stylesheets/navbar.scss} +2 -2
- data/app/{assets/stylesheets/rails_mini_profiler/profiled_requests.css → javascript/stylesheets/profiled_requests.scss} +1 -7
- data/app/javascript/stylesheets/rails-mini-profiler.scss +175 -0
- data/app/{assets/stylesheets/rails_mini_profiler/traces.css → javascript/stylesheets/traces.scss} +0 -5
- data/app/models/rails_mini_profiler/application_record.rb +1 -1
- data/app/presenters/rails_mini_profiler/profiled_request_presenter.rb +2 -2
- data/app/views/layouts/rails_mini_profiler/application.html.erb +1 -8
- data/app/views/layouts/rails_mini_profiler/flamegraph.html.erb +1 -8
- data/app/views/rails_mini_profiler/badge.html.erb +1 -1
- data/app/views/rails_mini_profiler/profiled_requests/index.html.erb +3 -3
- data/app/views/rails_mini_profiler/shared/_head.erb +13 -0
- data/app/views/rails_mini_profiler/shared/_navbar.html.erb +1 -1
- data/lib/generators/rails_mini_profiler/install_generator.rb +18 -0
- data/lib/generators/rails_mini_profiler/templates/rails_mini_profiler.js.erb +13 -0
- data/lib/generators/rails_mini_profiler/templates/rails_mini_profiler.rb.erb +18 -7
- data/lib/rails_mini_profiler.rb +29 -3
- data/lib/rails_mini_profiler/badge.rb +21 -1
- data/lib/rails_mini_profiler/configuration.rb +24 -0
- data/lib/rails_mini_profiler/engine.rb +8 -1
- data/lib/rails_mini_profiler/guard.rb +18 -7
- data/lib/rails_mini_profiler/logger.rb +5 -0
- data/lib/rails_mini_profiler/models/base_model.rb +5 -0
- data/lib/rails_mini_profiler/models/trace.rb +28 -0
- data/lib/rails_mini_profiler/redirect.rb +8 -0
- data/lib/rails_mini_profiler/request_context.rb +24 -5
- data/lib/rails_mini_profiler/storage.rb +18 -0
- data/lib/rails_mini_profiler/tracers.rb +1 -1
- data/lib/rails_mini_profiler/version.rb +4 -1
- data/vendor/assets/images/bookmark.svg +10 -0
- data/vendor/assets/images/chart.svg +12 -0
- data/vendor/assets/images/delete.svg +9 -0
- data/vendor/assets/images/graph.svg +11 -0
- data/vendor/assets/images/logo.svg +18 -0
- data/vendor/assets/images/logo_variant.svg +32 -0
- data/vendor/assets/images/search.svg +10 -0
- data/vendor/assets/images/setting.svg +10 -0
- data/vendor/assets/images/show.svg +11 -0
- data/vendor/assets/javascripts/rails-mini-profiler.css +1 -0
- data/vendor/assets/javascripts/rails-mini-profiler.js +1 -0
- metadata +31 -21
- data/app/assets/fonts/rails_mini_profiler/LICENSE.txt +0 -202
- data/app/assets/fonts/rails_mini_profiler/OpenSans-Bold.ttf +0 -0
- data/app/assets/fonts/rails_mini_profiler/OpenSans-Regular.ttf +0 -0
- data/app/assets/fonts/rails_mini_profiler/OpenSans-SemiBold.ttf +0 -0
- data/app/assets/stylesheets/rails_mini_profiler/flamegraph.css +0 -14
- data/lib/rails_mini_profiler/errors.rb +0 -8
@@ -0,0 +1,18 @@
|
|
1
|
+
<svg id='logo' xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1070" height="1070" viewBox="0 0 1070 1070" version="1.1">
|
2
|
+
<style>#logo path{fill:none;stroke-width:64;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4}</style>
|
3
|
+
<defs>
|
4
|
+
<linearGradient id="shadow">
|
5
|
+
<stop offset="0" style="stop-color:#ffffff"/>
|
6
|
+
<stop offset="1" style="stop-color:#e5e7eb"/>
|
7
|
+
</linearGradient>
|
8
|
+
<linearGradient xlink:href="#shadow" id="vertical1" gradientUnits="userSpaceOnUse" x1="279" y1="855" x2="279" y2="791"/>
|
9
|
+
<linearGradient xlink:href="#shadow" id="vertical2" gradientUnits="userSpaceOnUse" x1="407" y1="855" x2="407" y2="791"/>
|
10
|
+
<linearGradient xlink:href="#shadow" id="angled" gradientUnits="userSpaceOnUse" x1="919" y1="663" x2="791" y2="535"/>
|
11
|
+
</defs>
|
12
|
+
<path d="m279 791v64" stroke="url(#vertical1)"/>
|
13
|
+
<path d="m407 791v64" stroke="url(#vertical2)"/>
|
14
|
+
<path d="m599 791c-30.074 0-64 18.798-64 64" stroke="#fff"/>
|
15
|
+
<path d="m791 535c15.784 70.529 40.556 124.09 128 128-14.698 70.947-39.743 124.835-128 128h-64c-34.335 7.22-63.695 19.822-64 64" style="stroke-linejoin:round;stroke:url(#angled)"/>
|
16
|
+
<circle cx="727" cy="663" r="32" fill="#fff"/>
|
17
|
+
<path d="m151 791h202c78.323 0 129.769-51.336 182-128 52.231-76.664 96.239-126.245 192-128h67.286c0 0-4.243-24-6.422-31-2.18-7-5.583 23-10.475 11-4.892-12-11.273-66-19.41-81-8.137-15-18.029 9-29.942-7C716.122 411 702.187 373 685.964 340 669.741 325 651.23 351 630.165 339 609.101 327 585.482 277 559.043 270 532.604 263 503.345 299 471 299 438.655 299 409.396 263 382.957 270.125 356.518 277.25 342.899 317.5 321.835 330 300.77 342.5 262.259 337.25 246.036 353.375 229.813 369.5 235.878 407 223.964 425c-11.914 18-41.806 16.5-49.942 34.625-8.137 18.125 5.482 65.875 0.59 82.375-4.892 16.5-24.295 31.75-26.475 44.875C145.957 600 161 611 161 619c0 21.333-20 42.667-20 64 0 21.333 20 26.667 20 48 0 21.333-5.959 39.677-10 60z" stroke="#fff"/>
|
18
|
+
</svg>
|
@@ -0,0 +1,32 @@
|
|
1
|
+
<svg xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink" width="1070" height="1070" viewBox="0 0 1070 1070" version="1.1">
|
2
|
+
<style>path{fill:none;stroke-width:64;stroke-linecap:round;stroke-linejoin:miter;stroke-miterlimit:4}</style>
|
3
|
+
<defs>
|
4
|
+
<linearGradient id="lightShadow">
|
5
|
+
<stop offset="0" style="stop-color:#c22121;stop-opacity:1"/>
|
6
|
+
<stop offset="1" style="stop-color:#9c1a1a;stop-opacity:0"/>
|
7
|
+
</linearGradient>
|
8
|
+
<linearGradient id="darkShadow">
|
9
|
+
<stop offset="0" style="stop-color:#9c1a1a;stop-opacity:1"/>
|
10
|
+
<stop offset="1" style="stop-color:#9c1a1a;stop-opacity:0"/>
|
11
|
+
</linearGradient>
|
12
|
+
<linearGradient id="pinkToOrange">
|
13
|
+
<stop offset="0" style="stop-color:#f21d88"/>
|
14
|
+
<stop offset="0.8" style="stop-color:#dc2626"/>
|
15
|
+
<stop offset="1" style="stop-color:#f23c1d"/>
|
16
|
+
</linearGradient>
|
17
|
+
<linearGradient xlink:href="#pinkToOrange" id="default" gradientUnits="userSpaceOnUse" x1="1246.198" y1="1275.081" x2="111.563" y2="237.888"/>
|
18
|
+
<linearGradient xlink:href="#pinkToOrange" id="eye" gradientUnits="userSpaceOnUse" x1="660" y1="738.714" x2="761.286" y2="637.429"/>
|
19
|
+
<linearGradient xlink:href="#darkShadow" id="leftLeg" gradientUnits="userSpaceOnUse" x1="279" y1="791" x2="279" y2="855"/>
|
20
|
+
<linearGradient xlink:href="#darkShadow" id="rightLeg" gradientUnits="userSpaceOnUse" x1="407" y1="791" x2="407" y2="855"/>
|
21
|
+
<linearGradient xlink:href="#lightShadow" id="nose" gradientUnits="userSpaceOnUse" x1="794.286" y1="535" x2="919" y2="663"/>
|
22
|
+
</defs>
|
23
|
+
<circle r="32" cy="663" cx="727" style="fill:url(#eye)"/>
|
24
|
+
<path d="m279 791v64" style="stroke:url(#default)"/>
|
25
|
+
<path d="m279 791.505v64" style="stroke:url(#leftLeg)"/>
|
26
|
+
<path d="m407 791v64" style="stroke:url(#default)"/>
|
27
|
+
<path d="m407 791v64" style="stroke:url(#rightLeg)"/>
|
28
|
+
<path d="m599 791c-30.074 0-64 18.798-64 64" style="stroke:url(#default)"/>
|
29
|
+
<path d="m791 535c15.784 70.529 40.556 124.09 128 128-14.698 70.947-39.743 124.835-128 128h-64c-34.335 7.22-63.695 19.822-64 64" style="stroke-linejoin:round;stroke:url(#default)"/>
|
30
|
+
<path d="m791 535c15.784 70.529 40.556 124.09 128 128-14.698 70.947-39.743 124.835-128 128h-64c-34.335 7.22-63.695 19.822-64 64" style="stroke-linejoin:round;stroke:url(#nose)"/>
|
31
|
+
<path d="m151 791h202c78.323 0 129.769-51.336 182-128 52.231-76.664 96.239-126.245 192-128h67.286c0 0-4.243-24-6.422-31-2.18-7-5.583 23-10.475 11-4.892-12-11.273-66-19.41-81-8.137-15-18.029 9-29.942-7C716.122 411 702.187 373 685.964 340 669.741 325 651.23 351 630.165 339 609.101 327 585.482 277 559.043 270 532.604 263 503.345 299 471 299 438.655 299 409.396 263 382.957 270.125 356.518 277.25 342.899 317.5 321.835 330 300.77 342.5 262.259 337.25 246.036 353.375 229.813 369.5 235.878 407 223.964 425c-11.914 18-41.806 16.5-49.942 34.625-8.137 18.125 5.482 65.875 0.59 82.375-4.892 16.5-24.295 31.75-26.475 44.875C145.957 600 161 611 161 619c0 21.333-20 42.667-20 64 0 21.333 20 26.667 20 48 0 21.333-5.959 39.677-10 60z" style="stroke:url(#default)"/>
|
32
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<title>Iconly/Bulk/Search</title>
|
4
|
+
<g id="Iconly/Bulk/Search" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
5
|
+
<g id="Search" transform="translate(2.000000, 2.000000)" fill="#000000" fill-rule="nonzero">
|
6
|
+
<ellipse id="Ellipse_746" cx="8.59921927" cy="8.65324385" rx="8.59921927" ry="8.65324385"></ellipse>
|
7
|
+
<path d="M18.674623,19.9552573 C18.3405833,19.9444414 18.0229443,19.8069986 17.7853553,19.5704698 L15.7489321,17.1901566 C15.3123366,16.7908936 15.2766365,16.1123232 15.668898,15.6689038 L15.668898,15.6689038 C15.8525005,15.4831065 16.1021409,15.3786387 16.3625268,15.3786387 C16.6229128,15.3786387 16.8725531,15.4831065 17.0561557,15.6689038 L19.6172468,17.7181208 C19.9861582,18.0957076 20.0999999,18.656254 19.9078887,19.1492153 C19.7157774,19.6421767 19.2536179,19.9754211 18.7279791,20 L18.674623,19.9552573 Z" id="Path_34202" opacity="0.400000006"></path>
|
8
|
+
</g>
|
9
|
+
</g>
|
10
|
+
</svg>
|
@@ -0,0 +1,10 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg" xmlns:xlink="http://www.w3.org/1999/xlink">
|
3
|
+
<title>Iconly/Bulk/Setting</title>
|
4
|
+
<g id="Iconly/Bulk/Setting" stroke="none" stroke-width="1" fill="none" fill-rule="evenodd">
|
5
|
+
<g id="Setting" transform="translate(2.499897, 2.000100)" fill="#000000" fill-rule="nonzero">
|
6
|
+
<path d="M9.51207539,12.83 C7.9076023,12.83 6.60971643,11.58 6.60971643,10.01 C6.60971643,8.44 7.9076023,7.18 9.51207539,7.18 C11.1165485,7.18 12.3837756,8.44 12.3837756,10.01 C12.3837756,11.58 11.1165485,12.83 9.51207539,12.83" id="Path"></path>
|
7
|
+
<path d="M18.730131,12.37 C18.5359591,12.07 18.2600306,11.77 17.9023455,11.58 C17.6161974,11.44 17.4322451,11.21 17.2687319,10.94 C16.7475337,10.08 17.0541209,8.95 17.9227847,8.44 C18.944742,7.87 19.2717684,6.6 18.6790331,5.61 L17.9943217,4.43 C17.411806,3.44 16.1343592,3.09 15.1226214,3.67 C14.2232989,4.15 13.0684871,3.83 12.5472888,2.98 C12.3837756,2.7 12.2917995,2.4 12.3122386,2.1 C12.3428973,1.71 12.2202625,1.34 12.0363101,1.04 C11.6581859,0.42 10.9734745,0 10.217226,0 L8.77626608,0 C8.03023719,0.02 7.34552574,0.42 6.96740151,1.04 C6.77322961,1.34 6.6608143,1.71 6.68125344,2.1 C6.70169259,2.4 6.60971643,2.7 6.44620325,2.98 C5.92500498,3.83 4.77019314,4.15 3.88109021,3.67 C2.85913283,3.09 1.59190568,3.44 0.999170395,4.43 L0.314458948,5.61 C-0.26805676,6.6 0.0589696023,7.87 1.07070741,8.44 C1.93937119,8.95 2.2459584,10.08 1.73497971,10.94 C1.56124696,11.21 1.37729463,11.44 1.09114656,11.58 C0.743681049,11.77 0.437093834,12.07 0.273580653,12.37 C-0.104543579,12.99 -0.0841044313,13.77 0.2940198,14.42 L0.999170395,15.62 C1.37729463,16.26 2.08244522,16.66 2.81825454,16.66 C3.16572005,16.66 3.574503,16.56 3.90152936,16.36 C4.15701871,16.19 4.46360592,16.13 4.80085186,16.13 C5.81258967,16.13 6.6608143,16.96 6.68125344,17.95 C6.68125344,19.1 7.62145424,20 8.8069248,20 L10.1967868,20 C11.3720378,20 12.3122386,19.1 12.3122386,17.95 C12.3428973,16.96 13.191122,16.13 14.2028598,16.13 C14.5298861,16.13 14.8364734,16.19 15.1021823,16.36 C15.4292086,16.56 15.827772,16.66 16.1854571,16.66 C16.9110468,16.66 17.6161974,16.26 17.9943217,15.62 L18.7096918,14.42 C19.0775965,13.75 19.1082552,12.99 18.730131,12.37" id="Path" opacity="0.400000006"></path>
|
8
|
+
</g>
|
9
|
+
</g>
|
10
|
+
</svg>
|
@@ -0,0 +1,11 @@
|
|
1
|
+
<?xml version="1.0" encoding="UTF-8"?>
|
2
|
+
<svg width="24px" height="24px" viewBox="0 0 24 24" version="1.1" xmlns="http://www.w3.org/2000/svg">
|
3
|
+
<g id="Iconly/Bulk/Show" stroke="none" stroke-width="1" fill-rule="evenodd">
|
4
|
+
<g id="Show" transform="translate(2.000000, 4.000000)" fill="currentColor" fill-rule="nonzero">
|
5
|
+
<path d="M10,0 C12.0682927,0 14.0292683,0.717575758 15.7365854,2.04606061 C17.4439024,3.36387879 18.897561,5.29454545 19.9414634,7.70909091 C20.0195122,7.89236364 20.0195122,8.10666667 19.9414634,8.28121212 C17.8536585,13.110303 14.1365854,16 10,16 L10,16 L9.9902439,16 C5.86341463,16 2.14634146,13.110303 0.0585365854,8.28121212 C-0.0195121951,8.10666667 -0.0195121951,7.89236364 0.0585365854,7.70909091 C2.14634146,2.8790303 5.86341463,0 9.9902439,0 L9.9902439,0 Z M10,4.12121212 C7.84390244,4.12121212 6.09756098,5.8569697 6.09756098,8 C6.09756098,10.1333333 7.84390244,11.8690909 10,11.8690909 C12.1463415,11.8690909 13.8926829,10.1333333 13.8926829,8 C13.8926829,5.8569697 12.1463415,4.12121212 10,4.12121212 Z"
|
6
|
+
id="Fill-1" opacity="0.400000006"></path>
|
7
|
+
<path d="M12.4309268,7.99689697 C12.4309268,9.32538182 11.3382439,10.4114424 10.0016585,10.4114424 C8.65531707,10.4114424 7.56263415,9.32538182 7.56263415,7.99689697 C7.56263415,7.83204848 7.58214634,7.67786667 7.61141463,7.52271515 L7.66019512,7.52271515 C8.74312195,7.52271515 9.62117073,6.66938182 9.66019512,5.60174545 C9.7675122,5.58332121 9.88458537,5.57265455 10.0016585,5.57265455 C11.3382439,5.57265455 12.4309268,6.65871515 12.4309268,7.99689697"
|
8
|
+
id="Fill-4"></path>
|
9
|
+
</g>
|
10
|
+
</g>
|
11
|
+
</svg>
|
@@ -0,0 +1 @@
|
|
1
|
+
@import url("https://fonts.googleapis.com/css2?family=Open+Sans:wght@400;600;700&display=swap");.flash{margin-top:1rem;padding:1rem;border-radius:5px}.flash-error{color:#fff;background:var(--red-500)}.flash-notice{color:#fff;background:var(--green-400)}#wrapper{height:100vh;width:100%}#speedscope-iframe{width:100%;height:100%;border:none}.header{margin:0;padding:1.5rem 0;display:flex;justify-content:center;box-shadow:0 0 20px 0 rgba(0,0,0,.2);background:var(--primary)}.header a{color:#fff;text-decoration:none}.nav{width:var(--main-width);justify-content:space-between}.home,.nav{display:flex}.home{align-items:center;text-decoration:none}.home-logo{width:64px;height:64px}.home-title{padding:0 0 0 1rem;margin:0}.header-links{margin:0;padding:0;list-style:none;display:flex;align-items:center;font-weight:700}main{width:100%;display:flex;justify-content:center}.main-section{width:var(--main-width)}.placeholder{display:flex;flex-direction:column;justify-content:center;align-items:center;width:100%;height:450px}.placeholder-image{height:30%;width:30%;-webkit-filter:grayscale(1) brightness(2.5)}.placeholder-text{text-align:center;color:var(--grey-400)}.profiled-requests-actions{display:flex;padding:1rem 0;justify-content:space-between;align-items:center}.search-field{padding:.5rem;border-radius:.25em;border:1px solid var(--grey-400);color:var(--grey-700)}.clear-action button{background:var(--red-500);color:#fff}.table{width:100%;border-collapse:collapse;border-radius:5px;border:1px hidden var(--border-color);box-shadow:0 0 0 1px var(--border-color)}.table thead tr{color:var(--grey-400)}.table thead th{font-weight:400}.table tr{border:1px solid var(--border-color);color:var(--grey-700);cursor:pointer}.table tr:nth-child(2n){background:var(--grey-50)}.table tbody tr:hover{background:var(--grey-100)}.table td,.table th{padding:.5rem 1rem}.request-path{max-width:300px;white-space:nowrap;overflow:hidden;text-overflow:ellipsis}.request-buttons{z-index:1;text-align:right}.request-buttons a{text-decoration:none;padding:0 .25rem;color:var(--grey-700)}.request-buttons a:active,.request-buttons a:focus-visible,.request-buttons a:hover{color:var(--blue-500)}.request-buttons a.link-disabled{cursor:default;pointer-events:none;text-decoration:none;color:var(--grey-200)}.request-details-data{display:flex;margin:0;padding:0}.data-item{display:flex;flex-direction:column;align-items:flex-start;list-style:none;margin-right:3rem;padding:0}.data-item small{color:var(--grey-400)}.data-item span{margin:.25rem 0}[class*=request-method-get],[class*=request-status-2]{color:#fff;background:var(--green-400)!important}[class*=request-method-patch],[class*=request-method-put],[class*=request-status-4]{color:#fff;background:var(--yellow-400)!important}[class*=request-method-delete],[class*=request-status-5]{color:#fff;background:var(--red-500)!important}.request-details-actions{margin:0;padding:2em 0;display:flex;align-items:center;justify-content:space-between}.flamegraph-button button{background:var(--grey-200)}.trace-list{margin:0;padding:0}.trace{list-style:none;display:flex;padding:.25em 0;align-items:center;justify-content:flex-start}.trace:nth-child(odd){background:var(--grey-100)}.trace .trace-bar{position:relative;margin:0;height:16px;padding:0;cursor:pointer;background:linear-gradient(to top right,var(--grey-500),var(--grey-400))}.instantiation-trace .trace-bar{background:linear-gradient(to top right,var(--green-400),var(--green-300))}.sequel-trace .trace-bar{background:linear-gradient(to top right,var(--green-500),var(--green-400))}.controller-trace .trace-bar{background:linear-gradient(to top right,var(--yellow-500),var(--yellow-400))}.render-partial-trace .trace-bar,.render-template-trace .trace-bar{background:linear-gradient(to top right,var(--blue-500),var(--blue-400))}.trace-name{margin:0;box-sizing:border-box;padding:0 .5em;overflow:hidden;font-size:14px;text-align:right;text-overflow:ellipsis;color:var(--grey-400)}.trace-payload{margin:0}.sequel-trace-query{padding:1em;background:var(--grey-100)}.sequel-trace-binds,.sequel-trace-query{overflow:auto;max-height:100px;white-space:pre-wrap}.sequel-trace-binds{margin:0 0 1em;padding:.5em 1em;font-size:12px;background:var(--grey-50)}.trace-table{margin-top:1em;width:100%;border-collapse:collapse;border:1px hidden var(--border-color)}@font-face{font-family:Open Sans;font-weight:400;font-style:normal}@font-face{font-family:Open Sans;font-weight:600;font-style:normal}@font-face{font-family:Open Sans;font-weight:700;font-style:normal}html{--grey-50:#f9fafb;--grey-100:#f3f4f6;--grey-200:#e5e7eb;--grey-400:#9ca3af;--grey-500:#6b7280;--grey-700:#374151;--grey-900:#111827;--red-400:#f87171;--red-500:#ef4444;--red-600:#dc2626;--yellow-400:#fbbf24;--yellow-500:#f59e0b;--green-300:#6ee7b7;--green-400:#34d399;--green-500:#10b981;--blue-400:#60a5fa;--blue-500:#3b82f6;--main-width:1056px;--primary:var(--red-600);--border-color:var(--grey-200);--text-color:var(--grey-900);font-family:Open Sans,monospace}body,html{width:100%;height:100%;margin:0;padding:0}body{color:var(--text-color)}h1{padding:2rem 0 1rem}button{border:none;border-radius:.25rem;padding:.5em;text-align:center;text-decoration:none;display:inline-block;font-size:1rem;cursor:pointer}button:hover{box-shadow:0 .25rem .25rem 0 var(--grey-50)}.text-left{text-align:left}.text-right{text-align:right}.pill{margin:.2rem 0;padding:.1rem .4rem;border-radius:5px;font-size:.9rem;font-weight:600;letter-spacing:.1rem;background:var(--grey-200)}.popover{display:flex;flex-direction:column;width:600px;padding:1em;color:#000}.popover-header{display:flex;padding-bottom:1em;flex-direction:row;justify-content:space-between;align-items:center}.popover-description{margin:0;padding:0}.popover-close{background:transparent;padding:0;font-weight:700;font-size:20px;color:var(--grey-400)}.popover-body{padding:1em 0}.popover-footer{border-top:1px solid var(--grey-50)}.tippy-box[data-theme~=rmp]{background:#fff;box-shadow:8px 0 30px 4px rgba(0,0,0,.2),8px 4px 10px 0 rgba(0,0,0,.05);border-radius:3px;transition:all .2s cubic-bezier(.19,1,.22,1)}.tippy-box[data-theme~=rmp][data-placement^=top]>.tippy-arrow:before{border-top-color:#fff}.tippy-box[data-theme~=rmp][data-placement^=bottom]>.tippy-arrow:before{border-bottom-color:#fff}.tippy-box[data-theme~=rmp][data-placement^=left]>.tippy-arrow:before{border-left-color:#fff}.tippy-box[data-theme~=rmp][data-placement^=right]>.tippy-arrow:before{border-right-color:#fff}
|
@@ -0,0 +1 @@
|
|
1
|
+
!function(e){"function"==typeof define&&define.amd?define(e):e()}((function(){"use strict";var e="top",t="bottom",n="right",r="left",o="auto",i=[e,t,n,r],a="start",s="end",c="viewport",u="popper",f=i.reduce((function(e,t){return e.concat([t+"-"+a,t+"-"+s])}),[]),p=[].concat(i,[o]).reduce((function(e,t){return e.concat([t,t+"-"+a,t+"-"+s])}),[]),d=["beforeRead","read","afterRead","beforeMain","main","afterMain","beforeWrite","write","afterWrite"];function l(e){return e?(e.nodeName||"").toLowerCase():null}function m(e){if(null==e)return window;if("[object Window]"!==e.toString()){var t=e.ownerDocument;return t&&t.defaultView||window}return e}function v(e){return e instanceof m(e).Element||e instanceof Element}function h(e){return e instanceof m(e).HTMLElement||e instanceof HTMLElement}function g(e){return"undefined"!=typeof ShadowRoot&&(e instanceof m(e).ShadowRoot||e instanceof ShadowRoot)}var b={name:"applyStyles",enabled:!0,phase:"write",fn:function(e){var t=e.state;Object.keys(t.elements).forEach((function(e){var n=t.styles[e]||{},r=t.attributes[e]||{},o=t.elements[e];h(o)&&l(o)&&(Object.assign(o.style,n),Object.keys(r).forEach((function(e){var t=r[e];!1===t?o.removeAttribute(e):o.setAttribute(e,!0===t?"":t)})))}))},effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};return Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow),function(){Object.keys(t.elements).forEach((function(e){var r=t.elements[e],o=t.attributes[e]||{},i=Object.keys(t.styles.hasOwnProperty(e)?t.styles[e]:n[e]).reduce((function(e,t){return e[t]="",e}),{});h(r)&&l(r)&&(Object.assign(r.style,i),Object.keys(o).forEach((function(e){r.removeAttribute(e)})))}))}},requires:["computeStyles"]};function y(e){return e.split("-")[0]}var w=Math.round;function x(e,t){void 0===t&&(t=!1);var n=e.getBoundingClientRect(),r=1,o=1;return h(e)&&t&&(r=n.width/e.offsetWidth||1,o=n.height/e.offsetHeight||1),{width:w(n.width/r),height:w(n.height/o),top:w(n.top/o),right:w(n.right/r),bottom:w(n.bottom/o),left:w(n.left/r),x:w(n.left/r),y:w(n.top/o)}}function O(e){var t=x(e),n=e.offsetWidth,r=e.offsetHeight;return Math.abs(t.width-n)<=1&&(n=t.width),Math.abs(t.height-r)<=1&&(r=t.height),{x:e.offsetLeft,y:e.offsetTop,width:n,height:r}}function E(e,t){var n=t.getRootNode&&t.getRootNode();if(e.contains(t))return!0;if(n&&g(n)){var r=t;do{if(r&&e.isSameNode(r))return!0;r=r.parentNode||r.host}while(r)}return!1}function T(e){return m(e).getComputedStyle(e)}function A(e){return["table","td","th"].indexOf(l(e))>=0}function D(e){return((v(e)?e.ownerDocument:e.document)||window.document).documentElement}function L(e){return"html"===l(e)?e:e.assignedSlot||e.parentNode||(g(e)?e.host:null)||D(e)}function j(e){return h(e)&&"fixed"!==T(e).position?e.offsetParent:null}function k(e){for(var t=m(e),n=j(e);n&&A(n)&&"static"===T(n).position;)n=j(n);return n&&("html"===l(n)||"body"===l(n)&&"static"===T(n).position)?t:n||function(e){var t=-1!==navigator.userAgent.toLowerCase().indexOf("firefox");if(-1!==navigator.userAgent.indexOf("Trident")&&h(e)&&"fixed"===T(e).position)return null;for(var n=L(e);h(n)&&["html","body"].indexOf(l(n))<0;){var r=T(n);if("none"!==r.transform||"none"!==r.perspective||"paint"===r.contain||-1!==["transform","perspective"].indexOf(r.willChange)||t&&"filter"===r.willChange||t&&r.filter&&"none"!==r.filter)return n;n=n.parentNode}return null}(e)||t}function C(e){return["top","bottom"].indexOf(e)>=0?"x":"y"}var M=Math.max,S=Math.min,B=Math.round;function H(e,t,n){return M(e,S(t,n))}function W(e){return Object.assign({},{top:0,right:0,bottom:0,left:0},e)}function I(e,t){return t.reduce((function(t,n){return t[n]=e,t}),{})}var V={top:"auto",right:"auto",bottom:"auto",left:"auto"};function P(o){var i,a=o.popper,s=o.popperRect,c=o.placement,u=o.offsets,f=o.position,p=o.gpuAcceleration,d=o.adaptive,l=o.roundOffsets,v=!0===l?function(e){var t=e.x,n=e.y,r=window.devicePixelRatio||1;return{x:B(B(t*r)/r)||0,y:B(B(n*r)/r)||0}}(u):"function"==typeof l?l(u):u,h=v.x,g=void 0===h?0:h,b=v.y,y=void 0===b?0:b,w=u.hasOwnProperty("x"),x=u.hasOwnProperty("y"),O=r,E=e,A=window;if(d){var L=k(a),j="clientHeight",C="clientWidth";L===m(a)&&"static"!==T(L=D(a)).position&&(j="scrollHeight",C="scrollWidth"),L=L,c===e&&(E=t,y-=L[j]-s.height,y*=p?1:-1),c===r&&(O=n,g-=L[C]-s.width,g*=p?1:-1)}var M,S=Object.assign({position:f},d&&V);return p?Object.assign({},S,((M={})[E]=x?"0":"",M[O]=w?"0":"",M.transform=(A.devicePixelRatio||1)<2?"translate("+g+"px, "+y+"px)":"translate3d("+g+"px, "+y+"px, 0)",M)):Object.assign({},S,((i={})[E]=x?y+"px":"",i[O]=w?g+"px":"",i.transform="",i))}var R={passive:!0};var q={left:"right",right:"left",bottom:"top",top:"bottom"};function N(e){return e.replace(/left|right|bottom|top/g,(function(e){return q[e]}))}var U={start:"end",end:"start"};function _(e){return e.replace(/start|end/g,(function(e){return U[e]}))}function F(e){var t=m(e);return{scrollLeft:t.pageXOffset,scrollTop:t.pageYOffset}}function z(e){return x(D(e)).left+F(e).scrollLeft}function $(e){var t=T(e),n=t.overflow,r=t.overflowX,o=t.overflowY;return/auto|scroll|overlay|hidden/.test(n+o+r)}function X(e){return["html","body","#document"].indexOf(l(e))>=0?e.ownerDocument.body:h(e)&&$(e)?e:X(L(e))}function Y(e,t){var n;void 0===t&&(t=[]);var r=X(e),o=r===(null==(n=e.ownerDocument)?void 0:n.body),i=m(r),a=o?[i].concat(i.visualViewport||[],$(r)?r:[]):r,s=t.concat(a);return o?s:s.concat(Y(L(a)))}function J(e){return Object.assign({},e,{left:e.x,top:e.y,right:e.x+e.width,bottom:e.y+e.height})}function G(e,t){return t===c?J(function(e){var t=m(e),n=D(e),r=t.visualViewport,o=n.clientWidth,i=n.clientHeight,a=0,s=0;return r&&(o=r.width,i=r.height,/^((?!chrome|android).)*safari/i.test(navigator.userAgent)||(a=r.offsetLeft,s=r.offsetTop)),{width:o,height:i,x:a+z(e),y:s}}(e)):h(t)?function(e){var t=x(e);return t.top=t.top+e.clientTop,t.left=t.left+e.clientLeft,t.bottom=t.top+e.clientHeight,t.right=t.left+e.clientWidth,t.width=e.clientWidth,t.height=e.clientHeight,t.x=t.left,t.y=t.top,t}(t):J(function(e){var t,n=D(e),r=F(e),o=null==(t=e.ownerDocument)?void 0:t.body,i=M(n.scrollWidth,n.clientWidth,o?o.scrollWidth:0,o?o.clientWidth:0),a=M(n.scrollHeight,n.clientHeight,o?o.scrollHeight:0,o?o.clientHeight:0),s=-r.scrollLeft+z(e),c=-r.scrollTop;return"rtl"===T(o||n).direction&&(s+=M(n.clientWidth,o?o.clientWidth:0)-i),{width:i,height:a,x:s,y:c}}(D(e)))}function K(e,t,n){var r="clippingParents"===t?function(e){var t=Y(L(e)),n=["absolute","fixed"].indexOf(T(e).position)>=0&&h(e)?k(e):e;return v(n)?t.filter((function(e){return v(e)&&E(e,n)&&"body"!==l(e)})):[]}(e):[].concat(t),o=[].concat(r,[n]),i=o[0],a=o.reduce((function(t,n){var r=G(e,n);return t.top=M(r.top,t.top),t.right=S(r.right,t.right),t.bottom=S(r.bottom,t.bottom),t.left=M(r.left,t.left),t}),G(e,i));return a.width=a.right-a.left,a.height=a.bottom-a.top,a.x=a.left,a.y=a.top,a}function Q(e){return e.split("-")[1]}function Z(o){var i,c=o.reference,u=o.element,f=o.placement,p=f?y(f):null,d=f?Q(f):null,l=c.x+c.width/2-u.width/2,m=c.y+c.height/2-u.height/2;switch(p){case e:i={x:l,y:c.y-u.height};break;case t:i={x:l,y:c.y+c.height};break;case n:i={x:c.x+c.width,y:m};break;case r:i={x:c.x-u.width,y:m};break;default:i={x:c.x,y:c.y}}var v=p?C(p):null;if(null!=v){var h="y"===v?"height":"width";switch(d){case a:i[v]=i[v]-(c[h]/2-u[h]/2);break;case s:i[v]=i[v]+(c[h]/2-u[h]/2)}}return i}function ee(r,o){void 0===o&&(o={});var a=o,s=a.placement,f=void 0===s?r.placement:s,p=a.boundary,d=void 0===p?"clippingParents":p,l=a.rootBoundary,m=void 0===l?c:l,h=a.elementContext,g=void 0===h?u:h,b=a.altBoundary,y=void 0!==b&&b,w=a.padding,O=void 0===w?0:w,E=W("number"!=typeof O?O:I(O,i)),T=g===u?"reference":u,A=r.elements.reference,L=r.rects.popper,j=r.elements[y?T:g],k=K(v(j)?j:j.contextElement||D(r.elements.popper),d,m),C=x(A),M=Z({reference:C,element:L,strategy:"absolute",placement:f}),S=J(Object.assign({},L,M)),B=g===u?S:C,H={top:k.top-B.top+E.top,bottom:B.bottom-k.bottom+E.bottom,left:k.left-B.left+E.left,right:B.right-k.right+E.right},V=r.modifiersData.offset;if(g===u&&V){var P=V[f];Object.keys(H).forEach((function(r){var o=[n,t].indexOf(r)>=0?1:-1,i=[e,t].indexOf(r)>=0?"y":"x";H[r]+=P[i]*o}))}return H}function te(e,t){void 0===t&&(t={});var n=t,r=n.placement,o=n.boundary,a=n.rootBoundary,s=n.padding,c=n.flipVariations,u=n.allowedAutoPlacements,d=void 0===u?p:u,l=Q(r),m=l?c?f:f.filter((function(e){return Q(e)===l})):i,v=m.filter((function(e){return d.indexOf(e)>=0}));0===v.length&&(v=m);var h=v.reduce((function(t,n){return t[n]=ee(e,{placement:n,boundary:o,rootBoundary:a,padding:s})[y(n)],t}),{});return Object.keys(h).sort((function(e,t){return h[e]-h[t]}))}function ne(e,t,n){return void 0===n&&(n={x:0,y:0}),{top:e.top-t.height-n.y,right:e.right-t.width+n.x,bottom:e.bottom-t.height+n.y,left:e.left-t.width-n.x}}function re(o){return[e,n,t,r].some((function(e){return o[e]>=0}))}function oe(e,t,n){void 0===n&&(n=!1);var r,o,i=h(t),a=h(t)&&function(e){var t=e.getBoundingClientRect(),n=t.width/e.offsetWidth||1,r=t.height/e.offsetHeight||1;return 1!==n||1!==r}(t),s=D(t),c=x(e,a),u={scrollLeft:0,scrollTop:0},f={x:0,y:0};return(i||!i&&!n)&&(("body"!==l(t)||$(s))&&(u=(r=t)!==m(r)&&h(r)?{scrollLeft:(o=r).scrollLeft,scrollTop:o.scrollTop}:F(r)),h(t)?((f=x(t,!0)).x+=t.clientLeft,f.y+=t.clientTop):s&&(f.x=z(s))),{x:c.left+u.scrollLeft-f.x,y:c.top+u.scrollTop-f.y,width:c.width,height:c.height}}function ie(e){var t=new Map,n=new Set,r=[];function o(e){n.add(e.name),[].concat(e.requires||[],e.requiresIfExists||[]).forEach((function(e){if(!n.has(e)){var r=t.get(e);r&&o(r)}})),r.push(e)}return e.forEach((function(e){t.set(e.name,e)})),e.forEach((function(e){n.has(e.name)||o(e)})),r}var ae={placement:"bottom",modifiers:[],strategy:"absolute"};function se(){for(var e=arguments.length,t=new Array(e),n=0;n<e;n++)t[n]=arguments[n];return!t.some((function(e){return!(e&&"function"==typeof e.getBoundingClientRect)}))}function ce(e){void 0===e&&(e={});var t=e,n=t.defaultModifiers,r=void 0===n?[]:n,o=t.defaultOptions,i=void 0===o?ae:o;return function(e,t,n){void 0===n&&(n=i);var o,a,s={placement:"bottom",orderedModifiers:[],options:Object.assign({},ae,i),modifiersData:{},elements:{reference:e,popper:t},attributes:{},styles:{}},c=[],u=!1,f={state:s,setOptions:function(n){p(),s.options=Object.assign({},i,s.options,n),s.scrollParents={reference:v(e)?Y(e):e.contextElement?Y(e.contextElement):[],popper:Y(t)};var o,a,u=function(e){var t=ie(e);return d.reduce((function(e,n){return e.concat(t.filter((function(e){return e.phase===n})))}),[])}((o=[].concat(r,s.options.modifiers),a=o.reduce((function(e,t){var n=e[t.name];return e[t.name]=n?Object.assign({},n,t,{options:Object.assign({},n.options,t.options),data:Object.assign({},n.data,t.data)}):t,e}),{}),Object.keys(a).map((function(e){return a[e]}))));return s.orderedModifiers=u.filter((function(e){return e.enabled})),s.orderedModifiers.forEach((function(e){var t=e.name,n=e.options,r=void 0===n?{}:n,o=e.effect;if("function"==typeof o){var i=o({state:s,name:t,instance:f,options:r}),a=function(){};c.push(i||a)}})),f.update()},forceUpdate:function(){if(!u){var e=s.elements,t=e.reference,n=e.popper;if(se(t,n)){s.rects={reference:oe(t,k(n),"fixed"===s.options.strategy),popper:O(n)},s.reset=!1,s.placement=s.options.placement,s.orderedModifiers.forEach((function(e){return s.modifiersData[e.name]=Object.assign({},e.data)}));for(var r=0;r<s.orderedModifiers.length;r++)if(!0!==s.reset){var o=s.orderedModifiers[r],i=o.fn,a=o.options,c=void 0===a?{}:a,p=o.name;"function"==typeof i&&(s=i({state:s,options:c,name:p,instance:f})||s)}else s.reset=!1,r=-1}}},update:(o=function(){return new Promise((function(e){f.forceUpdate(),e(s)}))},function(){return a||(a=new Promise((function(e){Promise.resolve().then((function(){a=void 0,e(o())}))}))),a}),destroy:function(){p(),u=!0}};if(!se(e,t))return f;function p(){c.forEach((function(e){return e()})),c=[]}return f.setOptions(n).then((function(e){!u&&n.onFirstUpdate&&n.onFirstUpdate(e)})),f}}var ue=ce({defaultModifiers:[{name:"eventListeners",enabled:!0,phase:"write",fn:function(){},effect:function(e){var t=e.state,n=e.instance,r=e.options,o=r.scroll,i=void 0===o||o,a=r.resize,s=void 0===a||a,c=m(t.elements.popper),u=[].concat(t.scrollParents.reference,t.scrollParents.popper);return i&&u.forEach((function(e){e.addEventListener("scroll",n.update,R)})),s&&c.addEventListener("resize",n.update,R),function(){i&&u.forEach((function(e){e.removeEventListener("scroll",n.update,R)})),s&&c.removeEventListener("resize",n.update,R)}},data:{}},{name:"popperOffsets",enabled:!0,phase:"read",fn:function(e){var t=e.state,n=e.name;t.modifiersData[n]=Z({reference:t.rects.reference,element:t.rects.popper,strategy:"absolute",placement:t.placement})},data:{}},{name:"computeStyles",enabled:!0,phase:"beforeWrite",fn:function(e){var t=e.state,n=e.options,r=n.gpuAcceleration,o=void 0===r||r,i=n.adaptive,a=void 0===i||i,s=n.roundOffsets,c=void 0===s||s,u={placement:y(t.placement),popper:t.elements.popper,popperRect:t.rects.popper,gpuAcceleration:o};null!=t.modifiersData.popperOffsets&&(t.styles.popper=Object.assign({},t.styles.popper,P(Object.assign({},u,{offsets:t.modifiersData.popperOffsets,position:t.options.strategy,adaptive:a,roundOffsets:c})))),null!=t.modifiersData.arrow&&(t.styles.arrow=Object.assign({},t.styles.arrow,P(Object.assign({},u,{offsets:t.modifiersData.arrow,position:"absolute",adaptive:!1,roundOffsets:c})))),t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-placement":t.placement})},data:{}},b,{name:"offset",enabled:!0,phase:"main",requires:["popperOffsets"],fn:function(t){var o=t.state,i=t.options,a=t.name,s=i.offset,c=void 0===s?[0,0]:s,u=p.reduce((function(t,i){return t[i]=function(t,o,i){var a=y(t),s=[r,e].indexOf(a)>=0?-1:1,c="function"==typeof i?i(Object.assign({},o,{placement:t})):i,u=c[0],f=c[1];return u=u||0,f=(f||0)*s,[r,n].indexOf(a)>=0?{x:f,y:u}:{x:u,y:f}}(i,o.rects,c),t}),{}),f=u[o.placement],d=f.x,l=f.y;null!=o.modifiersData.popperOffsets&&(o.modifiersData.popperOffsets.x+=d,o.modifiersData.popperOffsets.y+=l),o.modifiersData[a]=u}},{name:"flip",enabled:!0,phase:"main",fn:function(i){var s=i.state,c=i.options,u=i.name;if(!s.modifiersData[u]._skip){for(var f=c.mainAxis,p=void 0===f||f,d=c.altAxis,l=void 0===d||d,m=c.fallbackPlacements,v=c.padding,h=c.boundary,g=c.rootBoundary,b=c.altBoundary,w=c.flipVariations,x=void 0===w||w,O=c.allowedAutoPlacements,E=s.options.placement,T=y(E),A=m||(T===E||!x?[N(E)]:function(e){if(y(e)===o)return[];var t=N(e);return[_(e),t,_(t)]}(E)),D=[E].concat(A).reduce((function(e,t){return e.concat(y(t)===o?te(s,{placement:t,boundary:h,rootBoundary:g,padding:v,flipVariations:x,allowedAutoPlacements:O}):t)}),[]),L=s.rects.reference,j=s.rects.popper,k=new Map,C=!0,M=D[0],S=0;S<D.length;S++){var B=D[S],H=y(B),W=Q(B)===a,I=[e,t].indexOf(H)>=0,V=I?"width":"height",P=ee(s,{placement:B,boundary:h,rootBoundary:g,altBoundary:b,padding:v}),R=I?W?n:r:W?t:e;L[V]>j[V]&&(R=N(R));var q=N(R),U=[];if(p&&U.push(P[H]<=0),l&&U.push(P[R]<=0,P[q]<=0),U.every((function(e){return e}))){M=B,C=!1;break}k.set(B,U)}if(C)for(var F=function(e){var t=D.find((function(t){var n=k.get(t);if(n)return n.slice(0,e).every((function(e){return e}))}));if(t)return M=t,"break"},z=x?3:1;z>0;z--){if("break"===F(z))break}s.placement!==M&&(s.modifiersData[u]._skip=!0,s.placement=M,s.reset=!0)}},requiresIfExists:["offset"],data:{_skip:!1}},{name:"preventOverflow",enabled:!0,phase:"main",fn:function(o){var i=o.state,s=o.options,c=o.name,u=s.mainAxis,f=void 0===u||u,p=s.altAxis,d=void 0!==p&&p,l=s.boundary,m=s.rootBoundary,v=s.altBoundary,h=s.padding,g=s.tether,b=void 0===g||g,w=s.tetherOffset,x=void 0===w?0:w,E=ee(i,{boundary:l,rootBoundary:m,padding:h,altBoundary:v}),T=y(i.placement),A=Q(i.placement),D=!A,L=C(T),j="x"===L?"y":"x",B=i.modifiersData.popperOffsets,W=i.rects.reference,I=i.rects.popper,V="function"==typeof x?x(Object.assign({},i.rects,{placement:i.placement})):x,P={x:0,y:0};if(B){if(f||d){var R="y"===L?e:r,q="y"===L?t:n,N="y"===L?"height":"width",U=B[L],_=B[L]+E[R],F=B[L]-E[q],z=b?-I[N]/2:0,$=A===a?W[N]:I[N],X=A===a?-I[N]:-W[N],Y=i.elements.arrow,J=b&&Y?O(Y):{width:0,height:0},G=i.modifiersData["arrow#persistent"]?i.modifiersData["arrow#persistent"].padding:{top:0,right:0,bottom:0,left:0},K=G[R],Z=G[q],te=H(0,W[N],J[N]),ne=D?W[N]/2-z-te-K-V:$-te-K-V,re=D?-W[N]/2+z+te+Z+V:X+te+Z+V,oe=i.elements.arrow&&k(i.elements.arrow),ie=oe?"y"===L?oe.clientTop||0:oe.clientLeft||0:0,ae=i.modifiersData.offset?i.modifiersData.offset[i.placement][L]:0,se=B[L]+ne-ae-ie,ce=B[L]+re-ae;if(f){var ue=H(b?S(_,se):_,U,b?M(F,ce):F);B[L]=ue,P[L]=ue-U}if(d){var fe="x"===L?e:r,pe="x"===L?t:n,de=B[j],le=de+E[fe],me=de-E[pe],ve=H(b?S(le,se):le,de,b?M(me,ce):me);B[j]=ve,P[j]=ve-de}}i.modifiersData[c]=P}},requiresIfExists:["offset"]},{name:"arrow",enabled:!0,phase:"main",fn:function(o){var a,s=o.state,c=o.name,u=o.options,f=s.elements.arrow,p=s.modifiersData.popperOffsets,d=y(s.placement),l=C(d),m=[r,n].indexOf(d)>=0?"height":"width";if(f&&p){var v=function(e,t){return W("number"!=typeof(e="function"==typeof e?e(Object.assign({},t.rects,{placement:t.placement})):e)?e:I(e,i))}(u.padding,s),h=O(f),g="y"===l?e:r,b="y"===l?t:n,w=s.rects.reference[m]+s.rects.reference[l]-p[l]-s.rects.popper[m],x=p[l]-s.rects.reference[l],E=k(f),T=E?"y"===l?E.clientHeight||0:E.clientWidth||0:0,A=w/2-x/2,D=v[g],L=T-h[m]-v[b],j=T/2-h[m]/2+A,M=H(D,j,L),S=l;s.modifiersData[c]=((a={})[S]=M,a.centerOffset=M-j,a)}},effect:function(e){var t=e.state,n=e.options.element,r=void 0===n?"[data-popper-arrow]":n;null!=r&&("string"!=typeof r||(r=t.elements.popper.querySelector(r)))&&E(t.elements.popper,r)&&(t.elements.arrow=r)},requires:["popperOffsets"],requiresIfExists:["preventOverflow"]},{name:"hide",enabled:!0,phase:"main",requiresIfExists:["preventOverflow"],fn:function(e){var t=e.state,n=e.name,r=t.rects.reference,o=t.rects.popper,i=t.modifiersData.preventOverflow,a=ee(t,{elementContext:"reference"}),s=ee(t,{altBoundary:!0}),c=ne(a,r),u=ne(s,o,i),f=re(c),p=re(u);t.modifiersData[n]={referenceClippingOffsets:c,popperEscapeOffsets:u,isReferenceHidden:f,hasPopperEscaped:p},t.attributes.popper=Object.assign({},t.attributes.popper,{"data-popper-reference-hidden":f,"data-popper-escaped":p})}}]}),fe="tippy-content",pe="tippy-arrow",de="tippy-svg-arrow",le={passive:!0,capture:!0};function me(e,t,n){if(Array.isArray(e)){var r=e[t];return null==r?Array.isArray(n)?n[t]:n:r}return e}function ve(e,t){var n={}.toString.call(e);return 0===n.indexOf("[object")&&n.indexOf(t+"]")>-1}function he(e,t){return"function"==typeof e?e.apply(void 0,t):e}function ge(e,t){return 0===t?e:function(r){clearTimeout(n),n=setTimeout((function(){e(r)}),t)};var n}function be(e){return[].concat(e)}function ye(e,t){-1===e.indexOf(t)&&e.push(t)}function we(e){return[].slice.call(e)}function xe(){return document.createElement("div")}function Oe(e){return["Element","Fragment"].some((function(t){return ve(e,t)}))}function Ee(e){return Oe(e)?[e]:function(e){return ve(e,"NodeList")}(e)?we(e):Array.isArray(e)?e:we(document.querySelectorAll(e))}function Te(e,t){e.forEach((function(e){e&&(e.style.transitionDuration=t+"ms")}))}function Ae(e,t){e.forEach((function(e){e&&e.setAttribute("data-state",t)}))}function De(e,t,n){var r=t+"EventListener";["transitionend","webkitTransitionEnd"].forEach((function(t){e[r](t,n)}))}var Le={isTouch:!1},je=0;function ke(){Le.isTouch||(Le.isTouch=!0,window.performance&&document.addEventListener("mousemove",Ce))}function Ce(){var e=performance.now();e-je<20&&(Le.isTouch=!1,document.removeEventListener("mousemove",Ce)),je=e}function Me(){var e,t=document.activeElement;if((e=t)&&e._tippy&&e._tippy.reference===e){var n=t._tippy;t.blur&&!n.state.isVisible&&t.blur()}}var Se="undefined"!=typeof window&&"undefined"!=typeof document?navigator.userAgent:"",Be=/MSIE |Trident\//.test(Se),He=Object.assign({appendTo:function(){return document.body},aria:{content:"auto",expanded:"auto"},delay:0,duration:[300,250],getReferenceClientRect:null,hideOnClick:!0,ignoreAttributes:!1,interactive:!1,interactiveBorder:2,interactiveDebounce:0,moveTransition:"",offset:[0,10],onAfterUpdate:function(){},onBeforeUpdate:function(){},onCreate:function(){},onDestroy:function(){},onHidden:function(){},onHide:function(){},onMount:function(){},onShow:function(){},onShown:function(){},onTrigger:function(){},onUntrigger:function(){},onClickOutside:function(){},placement:"top",plugins:[],popperOptions:{},render:null,showOnCreate:!1,touch:!0,trigger:"mouseenter focus",triggerTarget:null},{animateFill:!1,followCursor:!1,inlinePositioning:!1,sticky:!1},{},{allowHTML:!1,animation:"fade",arrow:!0,content:"",inertia:!1,maxWidth:350,role:"tooltip",theme:"",zIndex:9999}),We=Object.keys(He);function Ie(e){var t=(e.plugins||[]).reduce((function(t,n){var r=n.name,o=n.defaultValue;return r&&(t[r]=void 0!==e[r]?e[r]:o),t}),{});return Object.assign({},e,{},t)}function Ve(e,t){var n=Object.assign({},t,{content:he(t.content,[e])},t.ignoreAttributes?{}:function(e,t){return(t?Object.keys(Ie(Object.assign({},He,{plugins:t}))):We).reduce((function(t,n){var r=(e.getAttribute("data-tippy-"+n)||"").trim();if(!r)return t;if("content"===n)t[n]=r;else try{t[n]=JSON.parse(r)}catch(e){t[n]=r}return t}),{})}(e,t.plugins));return n.aria=Object.assign({},He.aria,{},n.aria),n.aria={expanded:"auto"===n.aria.expanded?t.interactive:n.aria.expanded,content:"auto"===n.aria.content?t.interactive?null:"describedby":n.aria.content},n}function Pe(e,t){e.innerHTML=t}function Re(e){var t=xe();return!0===e?t.className=pe:(t.className=de,Oe(e)?t.appendChild(e):Pe(t,e)),t}function qe(e,t){Oe(t.content)?(Pe(e,""),e.appendChild(t.content)):"function"!=typeof t.content&&(t.allowHTML?Pe(e,t.content):e.textContent=t.content)}function Ne(e){var t=e.firstElementChild,n=we(t.children);return{box:t,content:n.find((function(e){return e.classList.contains(fe)})),arrow:n.find((function(e){return e.classList.contains(pe)||e.classList.contains(de)})),backdrop:n.find((function(e){return e.classList.contains("tippy-backdrop")}))}}function Ue(e){var t=xe(),n=xe();n.className="tippy-box",n.setAttribute("data-state","hidden"),n.setAttribute("tabindex","-1");var r=xe();function o(n,r){var o=Ne(t),i=o.box,a=o.content,s=o.arrow;r.theme?i.setAttribute("data-theme",r.theme):i.removeAttribute("data-theme"),"string"==typeof r.animation?i.setAttribute("data-animation",r.animation):i.removeAttribute("data-animation"),r.inertia?i.setAttribute("data-inertia",""):i.removeAttribute("data-inertia"),i.style.maxWidth="number"==typeof r.maxWidth?r.maxWidth+"px":r.maxWidth,r.role?i.setAttribute("role",r.role):i.removeAttribute("role"),n.content===r.content&&n.allowHTML===r.allowHTML||qe(a,e.props),r.arrow?s?n.arrow!==r.arrow&&(i.removeChild(s),i.appendChild(Re(r.arrow))):i.appendChild(Re(r.arrow)):s&&i.removeChild(s)}return r.className=fe,r.setAttribute("data-state","hidden"),qe(r,e.props),t.appendChild(n),n.appendChild(r),o(e.props,e.props),{popper:t,onUpdate:o}}Ue.$$tippy=!0;var _e=1,Fe=[],ze=[];function $e(e,t){var n,r,o,i,a,s,c,u,f,p=Ve(e,Object.assign({},He,{},Ie((n=t,Object.keys(n).reduce((function(e,t){return void 0!==n[t]&&(e[t]=n[t]),e}),{}))))),d=!1,l=!1,m=!1,v=!1,h=[],g=ge(Y,p.interactiveDebounce),b=_e++,y=(f=p.plugins).filter((function(e,t){return f.indexOf(e)===t})),w={id:b,reference:e,popper:xe(),popperInstance:null,props:p,state:{isEnabled:!0,isVisible:!1,isDestroyed:!1,isMounted:!1,isShown:!1},plugins:y,clearDelayTimeouts:function(){clearTimeout(r),clearTimeout(o),cancelAnimationFrame(i)},setProps:function(t){if(w.state.isDestroyed)return;H("onBeforeUpdate",[w,t]),$();var n=w.props,r=Ve(e,Object.assign({},w.props,{},t,{ignoreAttributes:!0}));w.props=r,z(),n.interactiveDebounce!==r.interactiveDebounce&&(V(),g=ge(Y,r.interactiveDebounce));n.triggerTarget&&!r.triggerTarget?be(n.triggerTarget).forEach((function(e){e.removeAttribute("aria-expanded")})):r.triggerTarget&&e.removeAttribute("aria-expanded");I(),B(),E&&E(n,r);w.popperInstance&&(Q(),ee().forEach((function(e){requestAnimationFrame(e._tippy.popperInstance.forceUpdate)})));H("onAfterUpdate",[w,t])},setContent:function(e){w.setProps({content:e})},show:function(){var e=w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=Le.isTouch&&!w.props.touch,o=me(w.props.duration,0,He.duration);if(e||t||n||r)return;if(k().hasAttribute("disabled"))return;if(H("onShow",[w],!1),!1===w.props.onShow(w))return;w.state.isVisible=!0,j()&&(O.style.visibility="visible");B(),N(),w.state.isMounted||(O.style.transition="none");if(j()){var i=M(),a=i.box,s=i.content;Te([a,s],0)}c=function(){var e;if(w.state.isVisible&&!v){if(v=!0,O.offsetHeight,O.style.transition=w.props.moveTransition,j()&&w.props.animation){var t=M(),n=t.box,r=t.content;Te([n,r],o),Ae([n,r],"visible")}W(),I(),ye(ze,w),null==(e=w.popperInstance)||e.forceUpdate(),w.state.isMounted=!0,H("onMount",[w]),w.props.animation&&j()&&function(e,t){_(e,t)}(o,(function(){w.state.isShown=!0,H("onShown",[w])}))}},function(){var e,t=w.props.appendTo,n=k();e=w.props.interactive&&t===He.appendTo||"parent"===t?n.parentNode:he(t,[n]);e.contains(O)||e.appendChild(O);Q()}()},hide:function(){var e=!w.state.isVisible,t=w.state.isDestroyed,n=!w.state.isEnabled,r=me(w.props.duration,1,He.duration);if(e||t||n)return;if(H("onHide",[w],!1),!1===w.props.onHide(w))return;w.state.isVisible=!1,w.state.isShown=!1,v=!1,d=!1,j()&&(O.style.visibility="hidden");if(V(),U(),B(),j()){var o=M(),i=o.box,a=o.content;w.props.animation&&(Te([i,a],r),Ae([i,a],"hidden"))}W(),I(),w.props.animation?j()&&function(e,t){_(e,(function(){!w.state.isVisible&&O.parentNode&&O.parentNode.contains(O)&&t()}))}(r,w.unmount):w.unmount()},hideWithInteractivity:function(e){C().addEventListener("mousemove",g),ye(Fe,g),g(e)},enable:function(){w.state.isEnabled=!0},disable:function(){w.hide(),w.state.isEnabled=!1},unmount:function(){w.state.isVisible&&w.hide();if(!w.state.isMounted)return;Z(),ee().forEach((function(e){e._tippy.unmount()})),O.parentNode&&O.parentNode.removeChild(O);ze=ze.filter((function(e){return e!==w})),w.state.isMounted=!1,H("onHidden",[w])},destroy:function(){if(w.state.isDestroyed)return;w.clearDelayTimeouts(),w.unmount(),$(),delete e._tippy,w.state.isDestroyed=!0,H("onDestroy",[w])}};if(!p.render)return w;var x=p.render(w),O=x.popper,E=x.onUpdate;O.setAttribute("data-tippy-root",""),O.id="tippy-"+w.id,w.popper=O,e._tippy=w,O._tippy=w;var T=y.map((function(e){return e.fn(w)})),A=e.hasAttribute("aria-expanded");return z(),I(),B(),H("onCreate",[w]),p.showOnCreate&&te(),O.addEventListener("mouseenter",(function(){w.props.interactive&&w.state.isVisible&&w.clearDelayTimeouts()})),O.addEventListener("mouseleave",(function(e){w.props.interactive&&w.props.trigger.indexOf("mouseenter")>=0&&(C().addEventListener("mousemove",g),g(e))})),w;function D(){var e=w.props.touch;return Array.isArray(e)?e:[e,0]}function L(){return"hold"===D()[0]}function j(){var e;return!!(null==(e=w.props.render)?void 0:e.$$tippy)}function k(){return u||e}function C(){var e,t,n=k().parentNode;return n?(null==(t=be(n)[0])||null==(e=t.ownerDocument)?void 0:e.body)?t.ownerDocument:document:document}function M(){return Ne(O)}function S(e){return w.state.isMounted&&!w.state.isVisible||Le.isTouch||a&&"focus"===a.type?0:me(w.props.delay,e?0:1,He.delay)}function B(){O.style.pointerEvents=w.props.interactive&&w.state.isVisible?"":"none",O.style.zIndex=""+w.props.zIndex}function H(e,t,n){var r;(void 0===n&&(n=!0),T.forEach((function(n){n[e]&&n[e].apply(void 0,t)})),n)&&(r=w.props)[e].apply(r,t)}function W(){var t=w.props.aria;if(t.content){var n="aria-"+t.content,r=O.id;be(w.props.triggerTarget||e).forEach((function(e){var t=e.getAttribute(n);if(w.state.isVisible)e.setAttribute(n,t?t+" "+r:r);else{var o=t&&t.replace(r,"").trim();o?e.setAttribute(n,o):e.removeAttribute(n)}}))}}function I(){!A&&w.props.aria.expanded&&be(w.props.triggerTarget||e).forEach((function(e){w.props.interactive?e.setAttribute("aria-expanded",w.state.isVisible&&e===k()?"true":"false"):e.removeAttribute("aria-expanded")}))}function V(){C().removeEventListener("mousemove",g),Fe=Fe.filter((function(e){return e!==g}))}function P(e){if(!(Le.isTouch&&(m||"mousedown"===e.type)||w.props.interactive&&O.contains(e.target))){if(k().contains(e.target)){if(Le.isTouch)return;if(w.state.isVisible&&w.props.trigger.indexOf("click")>=0)return}else H("onClickOutside",[w,e]);!0===w.props.hideOnClick&&(w.clearDelayTimeouts(),w.hide(),l=!0,setTimeout((function(){l=!1})),w.state.isMounted||U())}}function R(){m=!0}function q(){m=!1}function N(){var e=C();e.addEventListener("mousedown",P,!0),e.addEventListener("touchend",P,le),e.addEventListener("touchstart",q,le),e.addEventListener("touchmove",R,le)}function U(){var e=C();e.removeEventListener("mousedown",P,!0),e.removeEventListener("touchend",P,le),e.removeEventListener("touchstart",q,le),e.removeEventListener("touchmove",R,le)}function _(e,t){var n=M().box;function r(e){e.target===n&&(De(n,"remove",r),t())}if(0===e)return t();De(n,"remove",s),De(n,"add",r),s=r}function F(t,n,r){void 0===r&&(r=!1),be(w.props.triggerTarget||e).forEach((function(e){e.addEventListener(t,n,r),h.push({node:e,eventType:t,handler:n,options:r})}))}function z(){var e;L()&&(F("touchstart",X,{passive:!0}),F("touchend",J,{passive:!0})),(e=w.props.trigger,e.split(/\s+/).filter(Boolean)).forEach((function(e){if("manual"!==e)switch(F(e,X),e){case"mouseenter":F("mouseleave",J);break;case"focus":F(Be?"focusout":"blur",G);break;case"focusin":F("focusout",G)}}))}function $(){h.forEach((function(e){var t=e.node,n=e.eventType,r=e.handler,o=e.options;t.removeEventListener(n,r,o)})),h=[]}function X(e){var t,n=!1;if(w.state.isEnabled&&!K(e)&&!l){var r="focus"===(null==(t=a)?void 0:t.type);a=e,u=e.currentTarget,I(),!w.state.isVisible&&ve(e,"MouseEvent")&&Fe.forEach((function(t){return t(e)})),"click"===e.type&&(w.props.trigger.indexOf("mouseenter")<0||d)&&!1!==w.props.hideOnClick&&w.state.isVisible?n=!0:te(e),"click"===e.type&&(d=!n),n&&!r&&ne(e)}}function Y(e){var t=e.target,n=k().contains(t)||O.contains(t);"mousemove"===e.type&&n||function(e,t){var n=t.clientX,r=t.clientY;return e.every((function(e){var t=e.popperRect,o=e.popperState,i=e.props.interactiveBorder,a=o.placement.split("-")[0],s=o.modifiersData.offset;if(!s)return!0;var c="bottom"===a?s.top.y:0,u="top"===a?s.bottom.y:0,f="right"===a?s.left.x:0,p="left"===a?s.right.x:0,d=t.top-r+c>i,l=r-t.bottom-u>i,m=t.left-n+f>i,v=n-t.right-p>i;return d||l||m||v}))}(ee().concat(O).map((function(e){var t,n=null==(t=e._tippy.popperInstance)?void 0:t.state;return n?{popperRect:e.getBoundingClientRect(),popperState:n,props:p}:null})).filter(Boolean),e)&&(V(),ne(e))}function J(e){K(e)||w.props.trigger.indexOf("click")>=0&&d||(w.props.interactive?w.hideWithInteractivity(e):ne(e))}function G(e){w.props.trigger.indexOf("focusin")<0&&e.target!==k()||w.props.interactive&&e.relatedTarget&&O.contains(e.relatedTarget)||ne(e)}function K(e){return!!Le.isTouch&&L()!==e.type.indexOf("touch")>=0}function Q(){Z();var t=w.props,n=t.popperOptions,r=t.placement,o=t.offset,i=t.getReferenceClientRect,a=t.moveTransition,s=j()?Ne(O).arrow:null,u=i?{getBoundingClientRect:i,contextElement:i.contextElement||k()}:e,f=[{name:"offset",options:{offset:o}},{name:"preventOverflow",options:{padding:{top:2,bottom:2,left:5,right:5}}},{name:"flip",options:{padding:5}},{name:"computeStyles",options:{adaptive:!a}},{name:"$$tippy",enabled:!0,phase:"beforeWrite",requires:["computeStyles"],fn:function(e){var t=e.state;if(j()){var n=M().box;["placement","reference-hidden","escaped"].forEach((function(e){"placement"===e?n.setAttribute("data-placement",t.placement):t.attributes.popper["data-popper-"+e]?n.setAttribute("data-"+e,""):n.removeAttribute("data-"+e)})),t.attributes.popper={}}}}];j()&&s&&f.push({name:"arrow",options:{element:s,padding:3}}),f.push.apply(f,(null==n?void 0:n.modifiers)||[]),w.popperInstance=ue(u,O,Object.assign({},n,{placement:r,onFirstUpdate:c,modifiers:f}))}function Z(){w.popperInstance&&(w.popperInstance.destroy(),w.popperInstance=null)}function ee(){return we(O.querySelectorAll("[data-tippy-root]"))}function te(e){w.clearDelayTimeouts(),e&&H("onTrigger",[w,e]),N();var t=S(!0),n=D(),o=n[0],i=n[1];Le.isTouch&&"hold"===o&&i&&(t=i),t?r=setTimeout((function(){w.show()}),t):w.show()}function ne(e){if(w.clearDelayTimeouts(),H("onUntrigger",[w,e]),w.state.isVisible){if(!(w.props.trigger.indexOf("mouseenter")>=0&&w.props.trigger.indexOf("click")>=0&&["mouseleave","mousemove"].indexOf(e.type)>=0&&d)){var t=S(!1);t?o=setTimeout((function(){w.state.isVisible&&w.hide()}),t):i=requestAnimationFrame((function(){w.hide()}))}}else U()}}function Xe(e,t){void 0===t&&(t={});var n=He.plugins.concat(t.plugins||[]);document.addEventListener("touchstart",ke,le),window.addEventListener("blur",Me);var r=Object.assign({},t,{plugins:n}),o=Ee(e).reduce((function(e,t){var n=t&&$e(t,r);return n&&e.push(n),e}),[]);return Oe(e)?o[0]:o}Xe.defaultProps=He,Xe.setDefaultProps=function(e){Object.keys(e).forEach((function(t){He[t]=e[t]}))},Xe.currentInput=Le,Object.assign({},b,{effect:function(e){var t=e.state,n={popper:{position:t.options.strategy,left:"0",top:"0",margin:"0"},arrow:{position:"absolute"},reference:{}};Object.assign(t.elements.popper.style,n.popper),t.styles=n,t.elements.arrow&&Object.assign(t.elements.arrow.style,n.arrow)}}),Xe.setDefaultProps({render:Ue}),document.addEventListener("DOMContentLoaded",(function(){var e,t;!function(){var e=document.getElementById("profiled-requests-table");if(e)for(var t=e.getElementsByTagName("tr"),n=function(t){var n=e.rows[t],r=n.dataset.link;n.onclick=function(){window.location.href=r}},r=0;r<t.length;r++)n(r)}(),(e=document.getElementById("profiled-request-search"))&&e.addEventListener("keyup",(function(e){"Enter"===e.key&&(e.preventDefault(),document.getElementById("profiled-request-search-form").submit())})),document.querySelectorAll(".trace-bar").forEach((function(e){Xe(e,{trigger:"click",content:e.children[0],theme:"rmp",maxWidth:"700px",placement:"bottom",interactive:!0,onShow:function(e){e.popper.querySelector(".popover-close").addEventListener("click",(function(){e.hide()}))},onHide:function(e){e.popper.querySelector(".popover-close").removeEventListener("click",(function(){e.hide()}))}})})),(t=document.getElementById("trace-search"))&&t.addEventListener("keyup",(function(e){"Enter"===e.key&&(e.preventDefault(),document.getElementById("trace-form").submit())}))}),!1)}));
|
metadata
CHANGED
@@ -1,14 +1,14 @@
|
|
1
1
|
--- !ruby/object:Gem::Specification
|
2
2
|
name: rails_mini_profiler
|
3
3
|
version: !ruby/object:Gem::Version
|
4
|
-
version: 0.
|
4
|
+
version: 0.3.0
|
5
5
|
platform: ruby
|
6
6
|
authors:
|
7
7
|
- hschne
|
8
8
|
autorequire:
|
9
9
|
bindir: bin
|
10
10
|
cert_chain: []
|
11
|
-
date: 2021-08-
|
11
|
+
date: 2021-08-21 00:00:00.000000000 Z
|
12
12
|
dependencies:
|
13
13
|
- !ruby/object:Gem::Dependency
|
14
14
|
name: inline_svg
|
@@ -48,31 +48,29 @@ files:
|
|
48
48
|
- README.md
|
49
49
|
- Rakefile
|
50
50
|
- app/assets/config/rails_mini_profiler_manifest.js
|
51
|
-
- app/assets/fonts/rails_mini_profiler/LICENSE.txt
|
52
|
-
- app/assets/fonts/rails_mini_profiler/OpenSans-Bold.ttf
|
53
|
-
- app/assets/fonts/rails_mini_profiler/OpenSans-Regular.ttf
|
54
|
-
- app/assets/fonts/rails_mini_profiler/OpenSans-SemiBold.ttf
|
55
|
-
- app/assets/images/rails_mini_profiler/bookmark.svg
|
56
|
-
- app/assets/images/rails_mini_profiler/chart.svg
|
57
|
-
- app/assets/images/rails_mini_profiler/delete.svg
|
58
|
-
- app/assets/images/rails_mini_profiler/graph.svg
|
59
|
-
- app/assets/images/rails_mini_profiler/logo.svg
|
60
|
-
- app/assets/images/rails_mini_profiler/logo_variant.svg
|
61
|
-
- app/assets/images/rails_mini_profiler/search.svg
|
62
|
-
- app/assets/images/rails_mini_profiler/setting.svg
|
63
|
-
- app/assets/images/rails_mini_profiler/show.svg
|
64
51
|
- app/assets/javascripts/rails_mini_profiler.js
|
65
52
|
- app/assets/stylesheets/rails_mini_profiler/application.css
|
66
|
-
- app/assets/stylesheets/rails_mini_profiler/flamegraph.css
|
67
|
-
- app/assets/stylesheets/rails_mini_profiler/flashes.css
|
68
|
-
- app/assets/stylesheets/rails_mini_profiler/navbar.css
|
69
|
-
- app/assets/stylesheets/rails_mini_profiler/profiled_requests.css
|
70
|
-
- app/assets/stylesheets/rails_mini_profiler/traces.css
|
71
53
|
- app/controllers/rails_mini_profiler/application_controller.rb
|
72
54
|
- app/controllers/rails_mini_profiler/flamegraphs_controller.rb
|
73
55
|
- app/controllers/rails_mini_profiler/profiled_requests_controller.rb
|
74
56
|
- app/helpers/rails_mini_profiler/application_helper.rb
|
75
57
|
- app/helpers/rails_mini_profiler/profiled_requests_helper.rb
|
58
|
+
- app/javascript/images/bookmark.svg
|
59
|
+
- app/javascript/images/chart.svg
|
60
|
+
- app/javascript/images/delete.svg
|
61
|
+
- app/javascript/images/graph.svg
|
62
|
+
- app/javascript/images/logo.svg
|
63
|
+
- app/javascript/images/logo_variant.svg
|
64
|
+
- app/javascript/images/search.svg
|
65
|
+
- app/javascript/images/setting.svg
|
66
|
+
- app/javascript/images/show.svg
|
67
|
+
- app/javascript/packs/rails-mini-profiler.js
|
68
|
+
- app/javascript/stylesheets/flamegraph.scss
|
69
|
+
- app/javascript/stylesheets/flashes.scss
|
70
|
+
- app/javascript/stylesheets/navbar.scss
|
71
|
+
- app/javascript/stylesheets/profiled_requests.scss
|
72
|
+
- app/javascript/stylesheets/rails-mini-profiler.scss
|
73
|
+
- app/javascript/stylesheets/traces.scss
|
76
74
|
- app/models/rails_mini_profiler/application_record.rb
|
77
75
|
- app/models/rails_mini_profiler/controller_trace.rb
|
78
76
|
- app/models/rails_mini_profiler/flamegraph.rb
|
@@ -100,17 +98,18 @@ files:
|
|
100
98
|
- app/views/rails_mini_profiler/profiled_requests/shared/_trace.html.erb
|
101
99
|
- app/views/rails_mini_profiler/profiled_requests/show.html.erb
|
102
100
|
- app/views/rails_mini_profiler/shared/_flashes.html.erb
|
101
|
+
- app/views/rails_mini_profiler/shared/_head.erb
|
103
102
|
- app/views/rails_mini_profiler/shared/_navbar.html.erb
|
104
103
|
- config/routes.rb
|
105
104
|
- db/migrate/20210621185018_create_rmp.rb
|
106
105
|
- lib/generators/rails_mini_profiler/USAGE
|
107
106
|
- lib/generators/rails_mini_profiler/install_generator.rb
|
107
|
+
- lib/generators/rails_mini_profiler/templates/rails_mini_profiler.js.erb
|
108
108
|
- lib/generators/rails_mini_profiler/templates/rails_mini_profiler.rb.erb
|
109
109
|
- lib/rails_mini_profiler.rb
|
110
110
|
- lib/rails_mini_profiler/badge.rb
|
111
111
|
- lib/rails_mini_profiler/configuration.rb
|
112
112
|
- lib/rails_mini_profiler/engine.rb
|
113
|
-
- lib/rails_mini_profiler/errors.rb
|
114
113
|
- lib/rails_mini_profiler/flamegraph_guard.rb
|
115
114
|
- lib/rails_mini_profiler/guard.rb
|
116
115
|
- lib/rails_mini_profiler/logger.rb
|
@@ -142,6 +141,17 @@ files:
|
|
142
141
|
- public/rails_mini_profiler/speedscope/source-map.438fa06b.js.map
|
143
142
|
- public/rails_mini_profiler/speedscope/speedscope.026f36b0.js
|
144
143
|
- public/rails_mini_profiler/speedscope/speedscope.026f36b0.js.map
|
144
|
+
- vendor/assets/images/bookmark.svg
|
145
|
+
- vendor/assets/images/chart.svg
|
146
|
+
- vendor/assets/images/delete.svg
|
147
|
+
- vendor/assets/images/graph.svg
|
148
|
+
- vendor/assets/images/logo.svg
|
149
|
+
- vendor/assets/images/logo_variant.svg
|
150
|
+
- vendor/assets/images/search.svg
|
151
|
+
- vendor/assets/images/setting.svg
|
152
|
+
- vendor/assets/images/show.svg
|
153
|
+
- vendor/assets/javascripts/rails-mini-profiler.css
|
154
|
+
- vendor/assets/javascripts/rails-mini-profiler.js
|
145
155
|
homepage: https://github.com/hschne/rails-mini-profiler
|
146
156
|
licenses:
|
147
157
|
- MIT
|
@@ -1,202 +0,0 @@
|
|
1
|
-
|
2
|
-
Apache License
|
3
|
-
Version 2.0, January 2004
|
4
|
-
http://www.apache.org/licenses/
|
5
|
-
|
6
|
-
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
7
|
-
|
8
|
-
1. Definitions.
|
9
|
-
|
10
|
-
"License" shall mean the terms and conditions for use, reproduction,
|
11
|
-
and distribution as defined by Sections 1 through 9 of this document.
|
12
|
-
|
13
|
-
"Licensor" shall mean the copyright owner or entity authorized by
|
14
|
-
the copyright owner that is granting the License.
|
15
|
-
|
16
|
-
"Legal Entity" shall mean the union of the acting entity and all
|
17
|
-
other entities that control, are controlled by, or are under common
|
18
|
-
control with that entity. For the purposes of this definition,
|
19
|
-
"control" means (i) the power, direct or indirect, to cause the
|
20
|
-
direction or management of such entity, whether by contract or
|
21
|
-
otherwise, or (ii) ownership of fifty percent (50%) or more of the
|
22
|
-
outstanding shares, or (iii) beneficial ownership of such entity.
|
23
|
-
|
24
|
-
"You" (or "Your") shall mean an individual or Legal Entity
|
25
|
-
exercising permissions granted by this License.
|
26
|
-
|
27
|
-
"Source" form shall mean the preferred form for making modifications,
|
28
|
-
including but not limited to software source code, documentation
|
29
|
-
source, and configuration files.
|
30
|
-
|
31
|
-
"Object" form shall mean any form resulting from mechanical
|
32
|
-
transformation or translation of a Source form, including but
|
33
|
-
not limited to compiled object code, generated documentation,
|
34
|
-
and conversions to other media types.
|
35
|
-
|
36
|
-
"Work" shall mean the work of authorship, whether in Source or
|
37
|
-
Object form, made available under the License, as indicated by a
|
38
|
-
copyright notice that is included in or attached to the work
|
39
|
-
(an example is provided in the Appendix below).
|
40
|
-
|
41
|
-
"Derivative Works" shall mean any work, whether in Source or Object
|
42
|
-
form, that is based on (or derived from) the Work and for which the
|
43
|
-
editorial revisions, annotations, elaborations, or other modifications
|
44
|
-
represent, as a whole, an original work of authorship. For the purposes
|
45
|
-
of this License, Derivative Works shall not include works that remain
|
46
|
-
separable from, or merely link (or bind by name) to the interfaces of,
|
47
|
-
the Work and Derivative Works thereof.
|
48
|
-
|
49
|
-
"Contribution" shall mean any work of authorship, including
|
50
|
-
the original version of the Work and any modifications or additions
|
51
|
-
to that Work or Derivative Works thereof, that is intentionally
|
52
|
-
submitted to Licensor for inclusion in the Work by the copyright owner
|
53
|
-
or by an individual or Legal Entity authorized to submit on behalf of
|
54
|
-
the copyright owner. For the purposes of this definition, "submitted"
|
55
|
-
means any form of electronic, verbal, or written communication sent
|
56
|
-
to the Licensor or its representatives, including but not limited to
|
57
|
-
communication on electronic mailing lists, source code control systems,
|
58
|
-
and issue tracking systems that are managed by, or on behalf of, the
|
59
|
-
Licensor for the purpose of discussing and improving the Work, but
|
60
|
-
excluding communication that is conspicuously marked or otherwise
|
61
|
-
designated in writing by the copyright owner as "Not a Contribution."
|
62
|
-
|
63
|
-
"Contributor" shall mean Licensor and any individual or Legal Entity
|
64
|
-
on behalf of whom a Contribution has been received by Licensor and
|
65
|
-
subsequently incorporated within the Work.
|
66
|
-
|
67
|
-
2. Grant of Copyright License. Subject to the terms and conditions of
|
68
|
-
this License, each Contributor hereby grants to You a perpetual,
|
69
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
70
|
-
copyright license to reproduce, prepare Derivative Works of,
|
71
|
-
publicly display, publicly perform, sublicense, and distribute the
|
72
|
-
Work and such Derivative Works in Source or Object form.
|
73
|
-
|
74
|
-
3. Grant of Patent License. Subject to the terms and conditions of
|
75
|
-
this License, each Contributor hereby grants to You a perpetual,
|
76
|
-
worldwide, non-exclusive, no-charge, royalty-free, irrevocable
|
77
|
-
(except as stated in this section) patent license to make, have made,
|
78
|
-
use, offer to sell, sell, import, and otherwise transfer the Work,
|
79
|
-
where such license applies only to those patent claims licensable
|
80
|
-
by such Contributor that are necessarily infringed by their
|
81
|
-
Contribution(s) alone or by combination of their Contribution(s)
|
82
|
-
with the Work to which such Contribution(s) was submitted. If You
|
83
|
-
institute patent litigation against any entity (including a
|
84
|
-
cross-claim or counterclaim in a lawsuit) alleging that the Work
|
85
|
-
or a Contribution incorporated within the Work constitutes direct
|
86
|
-
or contributory patent infringement, then any patent licenses
|
87
|
-
granted to You under this License for that Work shall terminate
|
88
|
-
as of the date such litigation is filed.
|
89
|
-
|
90
|
-
4. Redistribution. You may reproduce and distribute copies of the
|
91
|
-
Work or Derivative Works thereof in any medium, with or without
|
92
|
-
modifications, and in Source or Object form, provided that You
|
93
|
-
meet the following conditions:
|
94
|
-
|
95
|
-
(a) You must give any other recipients of the Work or
|
96
|
-
Derivative Works a copy of this License; and
|
97
|
-
|
98
|
-
(b) You must cause any modified files to carry prominent notices
|
99
|
-
stating that You changed the files; and
|
100
|
-
|
101
|
-
(c) You must retain, in the Source form of any Derivative Works
|
102
|
-
that You distribute, all copyright, patent, trademark, and
|
103
|
-
attribution notices from the Source form of the Work,
|
104
|
-
excluding those notices that do not pertain to any part of
|
105
|
-
the Derivative Works; and
|
106
|
-
|
107
|
-
(d) If the Work includes a "NOTICE" text file as part of its
|
108
|
-
distribution, then any Derivative Works that You distribute must
|
109
|
-
include a readable copy of the attribution notices contained
|
110
|
-
within such NOTICE file, excluding those notices that do not
|
111
|
-
pertain to any part of the Derivative Works, in at least one
|
112
|
-
of the following places: within a NOTICE text file distributed
|
113
|
-
as part of the Derivative Works; within the Source form or
|
114
|
-
documentation, if provided along with the Derivative Works; or,
|
115
|
-
within a display generated by the Derivative Works, if and
|
116
|
-
wherever such third-party notices normally appear. The contents
|
117
|
-
of the NOTICE file are for informational purposes only and
|
118
|
-
do not modify the License. You may add Your own attribution
|
119
|
-
notices within Derivative Works that You distribute, alongside
|
120
|
-
or as an addendum to the NOTICE text from the Work, provided
|
121
|
-
that such additional attribution notices cannot be construed
|
122
|
-
as modifying the License.
|
123
|
-
|
124
|
-
You may add Your own copyright statement to Your modifications and
|
125
|
-
may provide additional or different license terms and conditions
|
126
|
-
for use, reproduction, or distribution of Your modifications, or
|
127
|
-
for any such Derivative Works as a whole, provided Your use,
|
128
|
-
reproduction, and distribution of the Work otherwise complies with
|
129
|
-
the conditions stated in this License.
|
130
|
-
|
131
|
-
5. Submission of Contributions. Unless You explicitly state otherwise,
|
132
|
-
any Contribution intentionally submitted for inclusion in the Work
|
133
|
-
by You to the Licensor shall be under the terms and conditions of
|
134
|
-
this License, without any additional terms or conditions.
|
135
|
-
Notwithstanding the above, nothing herein shall supersede or modify
|
136
|
-
the terms of any separate license agreement you may have executed
|
137
|
-
with Licensor regarding such Contributions.
|
138
|
-
|
139
|
-
6. Trademarks. This License does not grant permission to use the trade
|
140
|
-
names, trademarks, service marks, or product names of the Licensor,
|
141
|
-
except as required for reasonable and customary use in describing the
|
142
|
-
origin of the Work and reproducing the content of the NOTICE file.
|
143
|
-
|
144
|
-
7. Disclaimer of Warranty. Unless required by applicable law or
|
145
|
-
agreed to in writing, Licensor provides the Work (and each
|
146
|
-
Contributor provides its Contributions) on an "AS IS" BASIS,
|
147
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or
|
148
|
-
implied, including, without limitation, any warranties or conditions
|
149
|
-
of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A
|
150
|
-
PARTICULAR PURPOSE. You are solely responsible for determining the
|
151
|
-
appropriateness of using or redistributing the Work and assume any
|
152
|
-
risks associated with Your exercise of permissions under this License.
|
153
|
-
|
154
|
-
8. Limitation of Liability. In no event and under no legal theory,
|
155
|
-
whether in tort (including negligence), contract, or otherwise,
|
156
|
-
unless required by applicable law (such as deliberate and grossly
|
157
|
-
negligent acts) or agreed to in writing, shall any Contributor be
|
158
|
-
liable to You for damages, including any direct, indirect, special,
|
159
|
-
incidental, or consequential damages of any character arising as a
|
160
|
-
result of this License or out of the use or inability to use the
|
161
|
-
Work (including but not limited to damages for loss of goodwill,
|
162
|
-
work stoppage, computer failure or malfunction, or any and all
|
163
|
-
other commercial damages or losses), even if such Contributor
|
164
|
-
has been advised of the possibility of such damages.
|
165
|
-
|
166
|
-
9. Accepting Warranty or Additional Liability. While redistributing
|
167
|
-
the Work or Derivative Works thereof, You may choose to offer,
|
168
|
-
and charge a fee for, acceptance of support, warranty, indemnity,
|
169
|
-
or other liability obligations and/or rights consistent with this
|
170
|
-
License. However, in accepting such obligations, You may act only
|
171
|
-
on Your own behalf and on Your sole responsibility, not on behalf
|
172
|
-
of any other Contributor, and only if You agree to indemnify,
|
173
|
-
defend, and hold each Contributor harmless for any liability
|
174
|
-
incurred by, or claims asserted against, such Contributor by reason
|
175
|
-
of your accepting any such warranty or additional liability.
|
176
|
-
|
177
|
-
END OF TERMS AND CONDITIONS
|
178
|
-
|
179
|
-
APPENDIX: How to apply the Apache License to your work.
|
180
|
-
|
181
|
-
To apply the Apache License to your work, attach the following
|
182
|
-
boilerplate notice, with the fields enclosed by brackets "[]"
|
183
|
-
replaced with your own identifying information. (Don't include
|
184
|
-
the brackets!) The text should be enclosed in the appropriate
|
185
|
-
comment syntax for the file format. We also recommend that a
|
186
|
-
file or class name and description of purpose be included on the
|
187
|
-
same "printed page" as the copyright notice for easier
|
188
|
-
identification within third-party archives.
|
189
|
-
|
190
|
-
Copyright [yyyy] [name of copyright owner]
|
191
|
-
|
192
|
-
Licensed under the Apache License, Version 2.0 (the "License");
|
193
|
-
you may not use this file except in compliance with the License.
|
194
|
-
You may obtain a copy of the License at
|
195
|
-
|
196
|
-
http://www.apache.org/licenses/LICENSE-2.0
|
197
|
-
|
198
|
-
Unless required by applicable law or agreed to in writing, software
|
199
|
-
distributed under the License is distributed on an "AS IS" BASIS,
|
200
|
-
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
201
|
-
See the License for the specific language governing permissions and
|
202
|
-
limitations under the License.
|
Binary file
|
Binary file
|
Binary file
|
@@ -1,14 +0,0 @@
|
|
1
|
-
/*
|
2
|
-
Place all the styles related to the matching controller here.
|
3
|
-
They will automatically be included in application.css.
|
4
|
-
*/
|
5
|
-
|
6
|
-
#wrapper {
|
7
|
-
height: 100vh;
|
8
|
-
width: 100%;
|
9
|
-
}
|
10
|
-
|
11
|
-
#speedscope-iframe {
|
12
|
-
width: 100%;
|
13
|
-
height: 100%;
|
14
|
-
border: none; }
|