|
2 | 2 | <html> |
3 | 3 | <head> |
4 | 4 | <meta charset="utf-8" /> |
5 | | -<title>WebTau: CRUD Separated</title><link rel="stylesheet" type="text/css" href="/webtau/static/css/bootstrap.min.css"> |
| 5 | +<title>WebTau: CRUD Separated</title> |
6 | 6 | <link rel="stylesheet" type="text/css" href="/webtau/static/css/katex.min.css"> |
7 | 7 | <link rel="stylesheet" type="text/css" href="/webtau/static/main.css"> |
8 | 8 | <link rel="stylesheet" type="text/css" href="/webtau/logo.css"> |
9 | 9 | <link rel="stylesheet" type="text/css" href="/webtau/static/css/global-overrides.css"> |
10 | 10 | </head> |
11 | 11 | <link rel="shortcut icon" href="/webtau/favicon.png"type="image/ico"/> |
12 | | -<body> |
| 12 | +<body class="theme-znai-dark"> |
| 13 | +<script>(function() { |
| 14 | + var themeNameKey = 'znaiTheme'; |
| 15 | + var darkThemeName = 'znai-dark'; |
| 16 | + var lightThemeName = 'default'; |
| 17 | + |
| 18 | + var znaiTheme = { |
| 19 | + changeHandlers: [], |
| 20 | + addChangeHandler(handler) { |
| 21 | + this.changeHandlers.push(handler); |
| 22 | + }, |
| 23 | + removeChangeHandler(handler) { |
| 24 | + var idx = this.changeHandlers.indexOf(handler); |
| 25 | + this.changeHandlers.splice(idx, 1); |
| 26 | + }, |
| 27 | + set(name) { |
| 28 | + this.name = name; |
| 29 | + document.body.className = 'theme-' + name; |
| 30 | + |
| 31 | + var idx = 0; |
| 32 | + var len = this.changeHandlers.length; |
| 33 | + for (; idx < len; idx++) { |
| 34 | + this.changeHandlers[idx](name); |
| 35 | + } |
| 36 | + }, |
| 37 | + setExplicitly(name) { |
| 38 | + storeThemeName(name); |
| 39 | + this.set(name); |
| 40 | + }, |
| 41 | + setExplicitlyIfNotSetAlready(name) { |
| 42 | + const themeName = getStoredThemeName(); |
| 43 | + if (themeName) { |
| 44 | + return |
| 45 | + } |
| 46 | + |
| 47 | + this.setExplicitly(name) |
| 48 | + }, |
| 49 | + toggle() { |
| 50 | + this.setExplicitly(this.name === lightThemeName ? darkThemeName : lightThemeName) |
| 51 | + } |
| 52 | + }; |
| 53 | + |
| 54 | + var mediaThemeName = setLightMatchMediaListenerAndGetThemeName() |
| 55 | + var themeName = getStoredThemeName() || mediaThemeName; |
| 56 | + znaiTheme.set(themeName); |
| 57 | + |
| 58 | + window.znaiTheme = znaiTheme; |
| 59 | + |
| 60 | + function getStoredThemeName() { |
| 61 | + return localStorage.getItem(themeNameKey); |
| 62 | + } |
| 63 | + |
| 64 | + function storeThemeName(name) { |
| 65 | + return localStorage.setItem(themeNameKey, name); |
| 66 | + } |
| 67 | + |
| 68 | + function setLightMatchMediaListenerAndGetThemeName() { |
| 69 | + if (!window.matchMedia) { |
| 70 | + return darkThemeName; |
| 71 | + } |
| 72 | + |
| 73 | + var lightQuery = window.matchMedia('(prefers-color-scheme: light)'); |
| 74 | + lightQuery.addEventListener("change", function (e) { |
| 75 | + const newThemeName = e.matches ? lightThemeName : darkThemeName; |
| 76 | + znaiTheme.setExplicitly(newThemeName); |
| 77 | + }); |
| 78 | + |
| 79 | + return lightQuery.matches ? lightThemeName : darkThemeName; |
| 80 | + } |
| 81 | +})()</script> |
13 | 82 | <div id="znai"><div id="znai-initial-page-loading" style="margin: -20px 0 0 -20px; padding: 0 40px 40px 0; width: 100vw; height: 100vh; display: flex; justify-content: center; align-items: center"> |
14 | 83 | <div></div> |
15 | 84 | </div><section style="max-width: 640px; margin-left: auto; margin-right: auto;"> |
|
26 | 95 | </div> |
27 | 96 | <script type="text/javascript" src="/webtau/toc.js"></script> |
28 | 97 | <script type="text/javascript" src="/webtau/assets.js"></script> |
29 | | -<script type="text/javascript" src="/webtau/static/react.min.js"></script> |
30 | | -<script type="text/javascript" src="/webtau/static/react-dom.min.js"></script> |
31 | 98 | <script type="text/javascript" src="/webtau/static/main.js"></script> |
32 | 99 | <script type="text/javascript" src="/webtau/search-index.js"></script> |
33 | 100 | <script> |
|
159 | 226 | }, { |
160 | 227 | "fit" : true, |
161 | 228 | "imageSrc" : "/webtau/doc-artifacts/reports/report-crud-separated-http-calls.png", |
162 | | - "timestamp" : 1586138684982, |
| 229 | + "timestamp" : 1589298774333, |
163 | 230 | "shapes" : [ ], |
164 | 231 | "width" : 1200.0, |
165 | 232 | "height" : 804.0, |
166 | 233 | "type" : "AnnotatedImage" |
167 | 234 | } ] |
168 | 235 | } ], |
169 | | - "lastModifiedTime" : 1586138367553, |
| 236 | + "lastModifiedTime" : 1589298402064, |
170 | 237 | "tocItem" : { |
171 | 238 | "sectionTitle" : "REST", |
172 | 239 | "pageTitle" : "CRUD Separated", |
|
0 commit comments