зеркало из https://github.com/golang/pkgsite.git
tsconfig,content/static: change TS build target to ES2019
ES2020 adds support for optional chaining to the JavaScript language and has been adopted in all major browsers. However, support for optional chaining is not universal so we are seeing some JavaScript errors related to the syntax. Downgrading our build target to ES2019 to prevent these errors in older browsers. Change-Id: I7bb08d26ab6fe54a4341db5a517356573bce6e1d Reviewed-on: https://go-review.googlesource.com/c/pkgsite/+/295932 Trust: Jamal Carvalho <jamal@golang.org> Reviewed-by: Jonathan Amsterdam <jba@google.com>
This commit is contained in:
Родитель
bd9e150e8a
Коммит
f5b8213723
|
@ -6,8 +6,9 @@
|
|||
*/
|
||||
export class CopyToClipboardController {
|
||||
constructor(el) {
|
||||
var _a;
|
||||
this._el = el;
|
||||
this._data = el.dataset['toCopy'] ?? '';
|
||||
this._data = (_a = el.dataset['toCopy']) !== null && _a !== void 0 ? _a : '';
|
||||
el.addEventListener('click', e => this.handleCopyClick(e));
|
||||
}
|
||||
handleCopyClick(e) {
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"clipboard.js","sourceRoot":"","sources":["clipboard.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAMH,MAAM,OAAO,yBAAyB;IAWpC,YAAY,EAAqB;QAC/B,IAAI,CAAC,GAAG,GAAG,EAAE,CAAC;QACd,IAAI,CAAC,KAAK,GAAG,EAAE,CAAC,OAAO,CAAC,QAAQ,CAAC,IAAI,EAAE,CAAC;QACxC,EAAE,CAAC,gBAAgB,CAAC,OAAO,EAAE,CAAC,CAAC,EAAE,CAAC,IAAI,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC,CAAC;IAC7D,CAAC;IAKD,eAAe,CAAC,CAAa;QAC3B,CAAC,CAAC,cAAc,EAAE,CAAC;QACnB,MAAM,wBAAwB,GAAG,IAAI,CAAC;QAGtC,IAAI,CAAC,SAAS,CAAC,SAAS,EAAE;YACxB,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,CAAC;YACjE,OAAO;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K,CAAC;aACrB,IAAI,CAAC,GAAG,EAAE;YACT,IAAI,CAAC,eAAe,CAAC,SAAS,EAAE,wBAAwB,CAAC,CAAC;QAC5D,CAAC,CAAC;aACD,KAAK,CAAC,GAAG,EAAE;YACV,IAAI,CAAC,eAAe,CAAC,gBAAgB,EAAE,wBAAwB,CAAC,CAAC;QACnE,CAAC,CAAC,CAAC;IACP,CAAC;IAKD,eAAe,CAAC,IAAY,EAAE,UAAkB;QAC9C,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE,IAAI,CAAC,CAAC;QAC5C,UAAU,CAAC,GAAG,EAAE,CAAC,IAAI,CAAC,GAAG,CAAC,YAAY,CAAC,cAAc,EAAE,EAAE,CAAC,EAAE,UAAU,CAAC,CAAC;IAC1E,CAAC;CACF"}
|
|
@ -17,6 +17,7 @@ const PlayExampleClassName = {
|
|||
};
|
||||
export class PlaygroundExampleController {
|
||||
constructor(exampleEl) {
|
||||
var _a, _b, _c, _d;
|
||||
this.exampleEl = exampleEl;
|
||||
this.exampleEl = exampleEl;
|
||||
this.anchorEl = exampleEl.querySelector('a');
|
||||
|
@ -27,23 +28,33 @@ export class PlaygroundExampleController {
|
|||
this.runButtonEl = exampleEl.querySelector(PlayExampleClassName.RUN_BUTTON);
|
||||
this.inputEl = exampleEl.querySelector(PlayExampleClassName.EXAMPLE_INPUT);
|
||||
this.outputEl = exampleEl.querySelector(PlayExampleClassName.EXAMPLE_OUTPUT);
|
||||
this.playButtonEl?.addEventListener('click', () => this.handleShareButtonClick());
|
||||
this.shareButtonEl?.addEventListener('click', () => this.handleShareButtonClick());
|
||||
this.formatButtonEl?.addEventListener('click', () => this.handleFormatButtonClick());
|
||||
this.runButtonEl?.addEventListener('click', () => this.handleRunButtonClick());
|
||||
(_a = this.playButtonEl) === null || _a === void 0
|
||||
? void 0
|
||||
: _a.addEventListener('click', () => this.handleShareButtonClick());
|
||||
(_b = this.shareButtonEl) === null || _b === void 0
|
||||
? void 0
|
||||
: _b.addEventListener('click', () => this.handleShareButtonClick());
|
||||
(_c = this.formatButtonEl) === null || _c === void 0
|
||||
? void 0
|
||||
: _c.addEventListener('click', () => this.handleFormatButtonClick());
|
||||
(_d = this.runButtonEl) === null || _d === void 0
|
||||
? void 0
|
||||
: _d.addEventListener('click', () => this.handleRunButtonClick());
|
||||
if (!this.inputEl) return;
|
||||
this.resize();
|
||||
this.inputEl.addEventListener('keyup', () => this.resize());
|
||||
this.inputEl.addEventListener('keydown', e => this.onKeydown(e));
|
||||
}
|
||||
getAnchorHash() {
|
||||
return this.anchorEl?.hash;
|
||||
var _a;
|
||||
return (_a = this.anchorEl) === null || _a === void 0 ? void 0 : _a.hash;
|
||||
}
|
||||
expand() {
|
||||
this.exampleEl.open = true;
|
||||
}
|
||||
resize() {
|
||||
if (this.inputEl?.value) {
|
||||
var _a;
|
||||
if ((_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.value) {
|
||||
const numLineBreaks = (this.inputEl.value.match(/\n/g) || []).length;
|
||||
this.inputEl.style.height = `${(20 + numLineBreaks * 20 + 12 + 2) / 16}rem`;
|
||||
}
|
||||
|
@ -71,11 +82,12 @@ export class PlaygroundExampleController {
|
|||
this.setOutputText('An error has occurred…');
|
||||
}
|
||||
handleShareButtonClick() {
|
||||
var _a;
|
||||
const PLAYGROUND_BASE_URL = 'https://play.golang.org/p/';
|
||||
this.setOutputText('Waiting for remote server…');
|
||||
fetch('/play/share', {
|
||||
method: 'POST',
|
||||
body: this.inputEl?.textContent,
|
||||
body: (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.textContent,
|
||||
})
|
||||
.then(res => res.text())
|
||||
.then(shareId => {
|
||||
|
@ -88,9 +100,16 @@ export class PlaygroundExampleController {
|
|||
});
|
||||
}
|
||||
handleFormatButtonClick() {
|
||||
var _a, _b;
|
||||
this.setOutputText('Waiting for remote server…');
|
||||
const body = new FormData();
|
||||
body.append('body', this.inputEl?.value ?? '');
|
||||
body.append(
|
||||
'body',
|
||||
(_b = (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.value) !== null &&
|
||||
_b !== void 0
|
||||
? _b
|
||||
: ''
|
||||
);
|
||||
fetch('/play/fmt', {
|
||||
method: 'POST',
|
||||
body: body,
|
||||
|
@ -108,10 +127,14 @@ export class PlaygroundExampleController {
|
|||
});
|
||||
}
|
||||
handleRunButtonClick() {
|
||||
var _a;
|
||||
this.setOutputText('Waiting for remote server…');
|
||||
fetch('/play/compile', {
|
||||
method: 'POST',
|
||||
body: JSON.stringify({ body: this.inputEl?.value, version: 2 }),
|
||||
body: JSON.stringify({
|
||||
body: (_a = this.inputEl) === null || _a === void 0 ? void 0 : _a.value,
|
||||
version: 2,
|
||||
}),
|
||||
})
|
||||
.then(res => res.json())
|
||||
.then(async ({ Events, Errors }) => {
|
||||
|
|
Различия файлов скрыты, потому что одна или несколько строк слишком длинны
|
@ -16,20 +16,27 @@ export class ExpandableRowsTableController {
|
|||
setAttributes() {
|
||||
for (const a of ['data-aria-controls', 'data-aria-labelledby', 'data-id']) {
|
||||
this.table.querySelectorAll(`[${a}]`).forEach(t => {
|
||||
t.setAttribute(a.replace('data-', ''), t.getAttribute(a) ?? '');
|
||||
var _a;
|
||||
t.setAttribute(
|
||||
a.replace('data-', ''),
|
||||
(_a = t.getAttribute(a)) !== null && _a !== void 0 ? _a : ''
|
||||
);
|
||||
t.removeAttribute(a);
|
||||
});
|
||||
}
|
||||
}
|
||||
attachEventListeners() {
|
||||
var _a;
|
||||
this.toggles.forEach(t => {
|
||||
t.addEventListener('click', e => {
|
||||
this.handleToggleClick(e);
|
||||
});
|
||||
});
|
||||
this.expandAll?.addEventListener('click', () => {
|
||||
this.expandAllItems();
|
||||
});
|
||||
(_a = this.expandAll) === null || _a === void 0
|
||||
? void 0
|
||||
: _a.addEventListener('click', () => {
|
||||
this.expandAllItems();
|
||||
});
|
||||
document.addEventListener('keydown', e => {
|
||||
if ((e.ctrlKey || e.metaKey) && e.key === 'f') {
|
||||
this.expandAllItems();
|
||||
|
@ -38,13 +45,19 @@ export class ExpandableRowsTableController {
|
|||
}
|
||||
handleToggleClick(e) {
|
||||
let target = e.currentTarget;
|
||||
if (!target?.hasAttribute('aria-expanded')) {
|
||||
if (!(target === null || target === void 0 ? void 0 : target.hasAttribute('aria-expanded'))) {
|
||||
target = this.table.querySelector(
|
||||
`button[aria-controls="${target?.getAttribute('aria-controls')}"]`
|
||||
`button[aria-controls="${
|
||||
target === null || target === void 0 ? void 0 : target.getAttribute('aria-controls')
|
||||
}"]`
|
||||
);
|
||||
}
|
||||
const isExpanded = target?.getAttribute('aria-expanded') === 'true';
|
||||
target?.setAttribute('aria-expanded', isExpanded ? 'false' : 'true');
|
||||
const isExpanded =
|
||||
(target === null || target === void 0 ? void 0 : target.getAttribute('aria-expanded')) ===
|
||||
'true';
|
||||
target === null || target === void 0
|
||||
? void 0
|
||||
: target.setAttribute('aria-expanded', isExpanded ? 'false' : 'true');
|
||||
e.stopPropagation();
|
||||
this.updateVisibleItems();
|
||||
}
|
||||
|
@ -56,18 +69,26 @@ export class ExpandableRowsTableController {
|
|||
}
|
||||
updateVisibleItems() {
|
||||
this.toggles.forEach(t => {
|
||||
const isExpanded = t?.getAttribute('aria-expanded') === 'true';
|
||||
const rowIds = t?.getAttribute('aria-controls')?.trimEnd().split(' ');
|
||||
rowIds?.forEach(id => {
|
||||
const target = document.getElementById(`${id}`);
|
||||
if (isExpanded) {
|
||||
target?.classList.add('visible');
|
||||
target?.classList.remove('hidden');
|
||||
} else {
|
||||
target?.classList.add('hidden');
|
||||
target?.classList.remove('visible');
|
||||
}
|
||||
});
|
||||
var _a;
|
||||
const isExpanded =
|
||||
(t === null || t === void 0 ? void 0 : t.getAttribute('aria-expanded')) === 'true';
|
||||
const rowIds =
|
||||
(_a = t === null || t === void 0 ? void 0 : t.getAttribute('aria-controls')) === null ||
|
||||
_a === void 0
|
||||
? void 0
|
||||
: _a.trimEnd().split(' ');
|
||||
rowIds === null || rowIds === void 0
|
||||
? void 0
|
||||
: rowIds.forEach(id => {
|
||||
const target = document.getElementById(`${id}`);
|
||||
if (isExpanded) {
|
||||
target === null || target === void 0 ? void 0 : target.classList.add('visible');
|
||||
target === null || target === void 0 ? void 0 : target.classList.remove('hidden');
|
||||
} else {
|
||||
target === null || target === void 0 ? void 0 : target.classList.add('hidden');
|
||||
target === null || target === void 0 ? void 0 : target.classList.remove('visible');
|
||||
}
|
||||
});
|
||||
});
|
||||
}
|
||||
}
|
||||
|
|
|
@ -1 +1 @@
|
|||
{"version":3,"file":"table.js","sourceRoot":"","sources":["table.ts"],"names":[],"mappings":"AAAA;;;;;GAKG;AAeH,MAAM,OAAO,6BAA6B;IASxC,YAAY,KAAuB,EAAE,SAA6B;QAChE,IAAI,CAAC,KAAK,GAAG,KAAK,CAAC;QACnB,IAAI,CAAC,SAAS,GAAG,SAAS,CAAC;QAC3B,IAAI,CAAC,OAAO,GAAG,KAAK,CAAC,gBAAgB,CAAsB,sBAAsB,CAAC,CAAC;QACnF,IAAI,CAAC,aAAa,EAAE,CAAC;QACrB,IAAI,CAAC,oBAAoB,EAAE,CAAC;QAC5B,IAAI,CAAC,kBAAkB,EAAE,CAAC;IAC5B,CAAC;IAMO,aAAa;QACnB,KAAK,MAAM,CAAC,IAAI,CAAC,oBAAoB,EAAE,sBAAsB,EAAE,SAAS,CAAC,EAAE;YACzE,IAAI,CAAC,KAAK,CAAC,gBAAgB,CAAC,IAAI,CAAC,GAAG,CAAC,CAAC,OAAO,CAAC,CAAC,CAAC,EAAE;gBAChD,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,OAAO,CAAC,OAAO,EAAE,EAAE,CAAC,EAAE,CAAC,CAAC,YAAY,CAAC,CAAC,CAAC,IAAI,EAAE,CAAC,CAAC;gBAChE,CAAC,CAAC,eAAe,CAAC,CAAC,CAAC,CAAC;YACvB,CAAC,CAAC,CAAC;SACJ;IACH,CAAC;IAEO,oBAAoB;QAC1B,IAAI,CAAC,OAAO,CAAC,OAAO,CAAC,CAA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AM,CAAE,SAAS,CAAC,GAAG,CAAC,SAAS,EAAE;oBACjC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,CAAC,MAAM,CAAC,QAAQ,EAAE;iBACpC;qBAAM;oBACL,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,CAAC,GAAG,CAAC,QAAQ,EAAE;oBAChC,MAAM,aAAN,MAAM,uBAAN,MAAM,CAAE,SAAS,CAAC,MAAM,CAAC,SAAS,EAAE;iBACrC;YACH,CAAC,EAAE;QACL,CAAC,CAAC,CAAC;IACL,CAAC;CACF"}
|
|
@ -4,7 +4,7 @@
|
|||
|
||||
/* Basic Options */
|
||||
// "incremental": true, /* Enable incremental compilation */
|
||||
"target": "ES2020", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
||||
"target": "ES2019", /* Specify ECMAScript target version: 'ES3' (default), 'ES5', 'ES2015', 'ES2016', 'ES2017', 'ES2018', 'ES2019', 'ES2020', or 'ESNEXT'. */
|
||||
"module": "ES2020", /* Specify module code generation: 'none', 'commonjs', 'amd', 'system', 'umd', 'es2015', 'es2020', or 'ESNext'. */
|
||||
// "lib": [], /* Specify library files to be included in the compilation. */
|
||||
// "allowJs": true, /* Allow javascript files to be compiled. */
|
||||
|
|
Загрузка…
Ссылка в новой задаче