Skip to content

Commit 304c65a

Browse files
authored
Merge branch 'main' into fix-gpg-signature-error-page
2 parents 36db28e + 814b44a commit 304c65a

File tree

12 files changed

+115
-10
lines changed

12 files changed

+115
-10
lines changed

docs/content/doc/advanced/config-cheat-sheet.en-us.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1145,7 +1145,7 @@ in this mapping or the filetype using heuristics.
11451145
## Time (`time`)
11461146

11471147
- `FORMAT`: Time format to display on UI. i.e. RFC1123 or 2006-01-02 15:04:05
1148-
- `DEFAULT_UI_LOCATION`: Default location of time on the UI, so that we can display correct user's time on UI. i.e. Shanghai/Asia
1148+
- `DEFAULT_UI_LOCATION`: Default location of time on the UI, so that we can display correct user's time on UI. i.e. Asia/Shanghai
11491149

11501150
## Task (`task`)
11511151

options/gitignore/Godot

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1+
# Godot 4+ specific ignores
2+
.godot/
3+
14
# Godot-specific ignores
25
.import/
36
export.cfg
@@ -9,3 +12,4 @@ export_presets.cfg
912
# Mono-specific ignores
1013
.mono/
1114
data_*/
15+
mono_crash.*.json

options/license/Bitstream-Charter

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,9 @@
1+
(c) Copyright 1989-1992, Bitstream Inc., Cambridge, MA.
2+
3+
You are hereby granted permission under all Bitstream propriety rights
4+
to use, copy, modify, sublicense, sell, and redistribute the 4 Bitstream
5+
Charter (r) Type 1 outline fonts and the 4 Courier Type 1 outline fonts for
6+
any purpose and without restriction; provided, that this notice is left
7+
intact on all copies of such fonts and that Bitstream's trademark is acknowledged
8+
as shown below on all unmodified copies of the 4 Charter Type 1 fonts.
9+
BITSTREAM CHARTER is a registered trademark of Bitstream Inc.

options/license/Graphics-Gems

Lines changed: 5 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,5 @@
1+
LICENSE
2+
3+
This code repository predates the concept of Open Source, and predates most licenses along such lines. As such, the official license truly is:
4+
5+
EULA: The Graphics Gems code is copyright-protected. In other words, you cannot claim the text of the code as your own and resell it. Using the code is permitted in any program, product, or library, non-commercial or commercial. Giving credit is not required, though is a nice gesture. The code comes as-is, and if there are any flaws or problems with any Gems code, nobody involved with Gems - authors, editors, publishers, or webmasters - are to be held responsible. Basically, don't be a jerk, and remember that anything free comes with no guarantee.

options/license/IJG-short

Lines changed: 35 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,35 @@
1+
The authors make NO WARRANTY or representation, either express or
2+
implied, with respect to this software, its quality, accuracy,
3+
merchantability, or fitness for a particular purpose. This software is
4+
provided "AS IS", and you, its user, assume the entire risk as to its
5+
quality and accuracy.
6+
7+
This software is copyright (C) 1991, 1992, Thomas G. Lane. All Rights
8+
Reserved except as specified below.
9+
10+
Permission is hereby granted to use, copy, modify, and distribute this
11+
software (or portions thereof) for any purpose, without fee, subject to
12+
these conditions:
13+
14+
(1) If any part of the source code for this software
15+
is distributed, then this README file must be included, with this
16+
copyright and no-warranty notice unaltered; and any additions,
17+
deletions, or changes to the original files must be clearly indicated
18+
in accompanying documentation.
19+
20+
(2) If only executable code is
21+
distributed, then the accompanying documentation must state that "this
22+
software is based in part on the work of the Independent JPEG Group".
23+
24+
(3) Permission for use of this software is granted only if the user
25+
accepts full responsibility for any undesirable consequences; the
26+
authors accept NO LIABILITY for damages of any kind.
27+
28+
Permission is NOT granted for the use of any IJG author's name or
29+
company name in advertising or publicity relating to this software or
30+
products derived from it. This software may be referred to only as
31+
"the Independent JPEG Group's software".
32+
33+
We specifically permit and encourage the use of this software as the
34+
basis of commercial products, provided that all warranty or liability
35+
claims are assumed by the product vendor.

options/license/MIT-Wu

Lines changed: 28 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,28 @@
1+
Copyright (c) 2003-2005 Tom Wu
2+
All Rights Reserved.
3+
4+
Permission is hereby granted, free of charge, to any person obtaining
5+
a copy of this software and associated documentation files (the
6+
"Software"), to deal in the Software without restriction, including
7+
without limitation the rights to use, copy, modify, merge, publish,
8+
distribute, sublicense, and/or sell copies of the Software, and to
9+
permit persons to whom the Software is furnished to do so, subject to
10+
the following conditions:
11+
12+
The above copyright notice and this permission notice shall be
13+
included in all copies or substantial portions of the Software.
14+
15+
THE SOFTWARE IS PROVIDED "AS-IS" AND WITHOUT WARRANTY OF ANY KIND,
16+
EXPRESS, IMPLIED OR OTHERWISE, INCLUDING WITHOUT LIMITATION, ANY
17+
WARRANTY OF MERCHANTABILITY OR FITNESS FOR A PARTICULAR PURPOSE.
18+
19+
IN NO EVENT SHALL TOM WU BE LIABLE FOR ANY SPECIAL, INCIDENTAL,
20+
INDIRECT OR CONSEQUENTIAL DAMAGES OF ANY KIND, OR ANY DAMAGES WHATSOEVER
21+
RESULTING FROM LOSS OF USE, DATA OR PROFITS, WHETHER OR NOT ADVISED OF
22+
THE POSSIBILITY OF DAMAGE, AND ON ANY THEORY OF LIABILITY, ARISING OUT
23+
OF OR IN CONNECTION WITH THE USE OR PERFORMANCE OF THIS SOFTWARE.
24+
25+
In addition, the following condition applies:
26+
27+
All redistributions must retain an intact copy of this copyright notice
28+
and disclaimer.

options/license/TPDL

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
Copyright (C) 1996-2010 David Muir Sharnoff. Copyright (C) 2011 Google, Inc.
2+
License hereby granted for anyone to use, modify or redistribute this module at their own risk. Please feed useful changes back to [email protected].

options/license/TTWL

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
Copyright (C) 1996-2002,2005,2006 David Muir Sharnoff.
2+
Copyright (C) 2005 Aristotle Pagaltzis
3+
Copyright (C) 2012-2013 Google, Inc.
4+
5+
This module may be modified, used, copied, and redistributed at your own risk.
6+
Although allowed by the preceding license, please do not publicly
7+
redistribute modified versions of this code with the name "Text::Tabs"
8+
unless it passes the unmodified Text::Tabs test suite.

web_src/js/markup/codecopy.js

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,18 @@
11
import {svg} from '../svg.js';
22

3-
export function renderCodeCopy() {
4-
const els = document.querySelectorAll('.markup .code-block code');
5-
if (!els.length) return;
6-
3+
export function makeCodeCopyButton() {
74
const button = document.createElement('button');
85
button.classList.add('code-copy', 'ui', 'button');
96
button.innerHTML = svg('octicon-copy');
7+
return button;
8+
}
9+
10+
export function renderCodeCopy() {
11+
const els = document.querySelectorAll('.markup .code-block code');
12+
if (!els.length) return;
1013

1114
for (const el of els) {
12-
const btn = button.cloneNode(true);
15+
const btn = makeCodeCopyButton();
1316
btn.setAttribute('data-clipboard-text', el.textContent);
1417
el.after(btn);
1518
}

web_src/js/markup/mermaid.js

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
import {isDarkTheme} from '../utils.js';
2+
import {makeCodeCopyButton} from './codecopy.js';
3+
24
const {mermaidMaxSourceCharacters} = window.config;
35

46
const iframeCss = `
@@ -58,7 +60,13 @@ export async function renderMermaid() {
5860
iframe.sandbox = 'allow-scripts';
5961
iframe.style.height = `${Math.ceil(parseFloat(heightStr))}px`;
6062
iframe.srcdoc = `<html><head><style>${iframeCss}</style></head><body>${svgStr}</body></html>`;
61-
el.closest('pre').replaceWith(iframe);
63+
const mermaidBlock = document.createElement('div');
64+
mermaidBlock.classList.add('mermaid-block');
65+
mermaidBlock.append(iframe);
66+
const btn = makeCodeCopyButton();
67+
btn.setAttribute('data-clipboard-text', source);
68+
mermaidBlock.append(btn);
69+
el.closest('pre').replaceWith(mermaidBlock);
6270
});
6371
} catch (err) {
6472
displayError(el, err);

web_src/js/modules/tippy.js

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,7 @@ export function createTippy(target, opts = {}) {
66
placement: target.getAttribute('data-placement') || 'top-start',
77
animation: false,
88
allowHTML: false,
9+
hideOnClick: false,
910
interactiveBorder: 30,
1011
ignoreAttributes: true,
1112
maxWidth: 500, // increase over default 350px
@@ -46,7 +47,7 @@ export function showTemporaryTooltip(target, content) {
4647
}
4748

4849
tippy.setContent(content);
49-
tippy.show();
50+
if (!tippy.state.isShown) tippy.show();
5051
tippy.setProps({
5152
onHidden: (tippy) => {
5253
if (oldContent) {

web_src/less/markup/codecopy.less

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
1-
.markup .code-block {
1+
.markup .code-block,
2+
.markup .mermaid-block {
23
position: relative;
34
}
45

@@ -26,7 +27,8 @@
2627
background: var(--color-secondary-dark-1) !important;
2728
}
2829

29-
.markup .code-block:hover .code-copy {
30+
.markup .code-block:hover .code-copy,
31+
.markup .mermaid-block:hover .code-copy {
3032
visibility: visible;
3133
animation: fadein .2s both;
3234
}

0 commit comments

Comments
 (0)