Checkpoint the party/runtime stack before share-program and malicious-mode work.
Ship the TLS mesh, composer, Beaver/Yao/leaf MPC, prep/online paths, apps, and docs so the tree is pushable before elevating share_expr, security_mode, and prep resume. Co-authored-by: Cursor <cursoragent@cursor.com>
This commit is contained in:
parent
695f8e84f7
commit
0d22946a0e
1835 changed files with 170291 additions and 2849 deletions
|
|
@ -1,29 +1,10 @@
|
|||
// SPDX-License-Identifier: MIT
|
||||
/**
|
||||
|
||||
Doxygen Awesome
|
||||
https://github.com/jothepro/doxygen-awesome-css
|
||||
|
||||
MIT License
|
||||
|
||||
Copyright (c) 2021 - 2023 jothepro
|
||||
|
||||
Permission is hereby granted, free of charge, to any person obtaining a copy
|
||||
of this software and associated documentation files (the "Software"), to deal
|
||||
in the Software without restriction, including without limitation the rights
|
||||
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
|
||||
copies of the Software, and to permit persons to whom the Software is
|
||||
furnished to do so, subject to the following conditions:
|
||||
|
||||
The above copyright notice and this permission notice shall be included in all
|
||||
copies or substantial portions of the Software.
|
||||
|
||||
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
|
||||
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
|
||||
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
|
||||
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
|
||||
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
|
||||
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
|
||||
SOFTWARE.
|
||||
Copyright (c) 2021 - 2025 jothepro
|
||||
|
||||
*/
|
||||
|
||||
|
|
@ -56,31 +37,48 @@ class DoxygenAwesomeDarkModeToggle extends HTMLElement {
|
|||
}()
|
||||
|
||||
static init() {
|
||||
$(function() {
|
||||
$(document).ready(function() {
|
||||
const toggleButton = document.createElement('doxygen-awesome-dark-mode-toggle')
|
||||
toggleButton.title = DoxygenAwesomeDarkModeToggle.title
|
||||
const toggleSelector = 'doxygen-awesome-dark-mode-toggle'
|
||||
const existingToggle = document.querySelector(toggleSelector)
|
||||
const toggleButton = existingToggle || document.createElement(toggleSelector)
|
||||
if (!existingToggle) {
|
||||
toggleButton.title = DoxygenAwesomeDarkModeToggle.title
|
||||
toggleButton.updateIcon()
|
||||
|
||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', () => {
|
||||
toggleButton.updateIcon()
|
||||
|
||||
window.matchMedia('(prefers-color-scheme: dark)').addEventListener('change', event => {
|
||||
toggleButton.updateIcon()
|
||||
})
|
||||
document.addEventListener("visibilitychange", visibilityState => {
|
||||
if (document.visibilityState === 'visible') {
|
||||
toggleButton.updateIcon()
|
||||
}
|
||||
});
|
||||
|
||||
$(document).ready(function(){
|
||||
var td = document.getElementById("MSearchBox").parentNode.parentNode.insertCell();
|
||||
td.appendChild(toggleButton)
|
||||
//<!-- document.getElementById("MSearchBox").parentNode.appendChild(toggleButton) //-->
|
||||
})
|
||||
$(window).resize(function(){
|
||||
document.getElementById("MSearchBox").parentNode.appendChild(toggleButton)
|
||||
})
|
||||
})
|
||||
document.addEventListener("visibilitychange", () => {
|
||||
if (document.visibilityState === 'visible') {
|
||||
toggleButton.updateIcon()
|
||||
}
|
||||
});
|
||||
}
|
||||
|
||||
const moveToggle = () => {
|
||||
const searchBox = document.getElementById("MSearchBox")
|
||||
const toggle = document.querySelector(toggleSelector) || toggleButton
|
||||
if (searchBox && searchBox.parentNode !== toggle.parentNode) {
|
||||
searchBox.parentNode.appendChild(toggle)
|
||||
}
|
||||
}
|
||||
|
||||
const containsSearchBox = node => {
|
||||
return node.nodeType === Node.ELEMENT_NODE &&
|
||||
(node.id === "MSearchBox" || node.querySelector("#MSearchBox") !== null)
|
||||
}
|
||||
|
||||
const observer = new MutationObserver(mutations => {
|
||||
const searchBoxChanged = mutations.some(mutation =>
|
||||
[...mutation.addedNodes, ...mutation.removedNodes]
|
||||
.some(containsSearchBox)
|
||||
)
|
||||
|
||||
if (searchBoxChanged) {
|
||||
moveToggle()
|
||||
}
|
||||
})
|
||||
observer.observe(document.documentElement, { childList: true, subtree: true })
|
||||
moveToggle()
|
||||
}
|
||||
|
||||
constructor() {
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue