You've already forked comprehensive-rust
mirror of
https://github.com/google/comprehensive-rust.git
synced 2025-06-17 22:57:35 +02:00
Bump dprint plugins to their latest versions (#2402)
This commit is contained in:
@ -1,31 +1,31 @@
|
||||
(function savePlaygrounds() {
|
||||
function setCodeToPlayground() {
|
||||
var codes = JSON.parse(
|
||||
localStorage.getItem(`${window.location.href}₹code`)
|
||||
localStorage.getItem(`${window.location.href}₹code`),
|
||||
);
|
||||
if (codes) {
|
||||
var i = 0;
|
||||
Array.from(document.querySelectorAll(".playground")).forEach(function (
|
||||
pre_block
|
||||
) {
|
||||
let code_block = pre_block.querySelector("code");
|
||||
let editor = window.ace.edit(code_block);
|
||||
editor.setValue(codes[i]);
|
||||
editor.clearSelection();
|
||||
i += 1;
|
||||
});
|
||||
Array.from(document.querySelectorAll(".playground")).forEach(
|
||||
function (pre_block) {
|
||||
let code_block = pre_block.querySelector("code");
|
||||
let editor = window.ace.edit(code_block);
|
||||
editor.setValue(codes[i]);
|
||||
editor.clearSelection();
|
||||
i += 1;
|
||||
},
|
||||
);
|
||||
}
|
||||
}
|
||||
function getCodeFromPlayground() {
|
||||
var codes = [];
|
||||
Array.from(document.querySelectorAll(".playground")).forEach(function (
|
||||
pre_block
|
||||
) {
|
||||
let code_block = pre_block.querySelector("code");
|
||||
let editor = window.ace.edit(code_block);
|
||||
let code = editor.getValue();
|
||||
codes.push(code);
|
||||
});
|
||||
Array.from(document.querySelectorAll(".playground")).forEach(
|
||||
function (pre_block) {
|
||||
let code_block = pre_block.querySelector("code");
|
||||
let editor = window.ace.edit(code_block);
|
||||
let code = editor.getValue();
|
||||
codes.push(code);
|
||||
},
|
||||
);
|
||||
localStorage.setItem(`${window.location.href}₹code`, JSON.stringify(codes));
|
||||
}
|
||||
setCodeToPlayground();
|
||||
|
Reference in New Issue
Block a user