mirror of
https://github.com/LadybirdBrowser/ladybird
synced 2026-04-25 17:25:08 +02:00
Base: Format internal Ladybird pages with prettier
These are currently not checked by CI.
This commit is contained in:
Notes:
github-actions[bot]
2026-04-22 15:23:15 +00:00
Author: https://github.com/trflynn89 Commit: https://github.com/LadybirdBrowser/ladybird/commit/e1f731a514a Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/9037
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -234,20 +234,20 @@
|
||||
<img src="resource://icons/128x128/app-browser-dark.png" />
|
||||
</picture>
|
||||
<h1>Bookmarks</h1>
|
||||
<div class="header-menu">
|
||||
<button class="menu-toggle" id="menu-toggle" aria-label="Bookmark options">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
||||
<circle cx="12" cy="5" r="2" />
|
||||
<circle cx="12" cy="12" r="2" />
|
||||
<circle cx="12" cy="19" r="2" />
|
||||
</svg>
|
||||
</button>
|
||||
<div class="menu-dropdown hidden" id="menu-dropdown">
|
||||
<button class="menu-item" id="import-button">Import from HTML...</button>
|
||||
<button class="menu-item" id="export-button">Export to HTML...</button>
|
||||
</div>
|
||||
<div class="header-menu">
|
||||
<button class="menu-toggle" id="menu-toggle" aria-label="Bookmark options">
|
||||
<svg xmlns="http://www.w3.org/2000/svg" viewBox="0 0 24 24" fill="currentColor" aria-hidden="true">
|
||||
<circle cx="12" cy="5" r="2" />
|
||||
<circle cx="12" cy="12" r="2" />
|
||||
<circle cx="12" cy="19" r="2" />
|
||||
</svg>
|
||||
</button>
|
||||
<div class="menu-dropdown hidden" id="menu-dropdown">
|
||||
<button class="menu-item" id="import-button">Import from HTML...</button>
|
||||
<button class="menu-item" id="export-button">Export to HTML...</button>
|
||||
</div>
|
||||
<input type="file" id="import-file" accept=".html,text/html" hidden />
|
||||
</div>
|
||||
<input type="file" id="import-file" accept=".html,text/html" hidden />
|
||||
</header>
|
||||
|
||||
<div class="card">
|
||||
@@ -587,7 +587,9 @@
|
||||
}
|
||||
|
||||
for (const dt of dl.children) {
|
||||
if (dt.tagName !== "DT") continue;
|
||||
if (dt.tagName !== "DT") {
|
||||
continue;
|
||||
}
|
||||
|
||||
const anchor = dt.querySelector(":scope > A");
|
||||
if (anchor) {
|
||||
@@ -663,7 +665,9 @@
|
||||
|
||||
importFileInput.addEventListener("change", () => {
|
||||
const file = importFileInput.files[0];
|
||||
if (!file) return;
|
||||
if (!file) {
|
||||
return;
|
||||
}
|
||||
|
||||
const reader = new FileReader();
|
||||
reader.onload = () => {
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -103,14 +103,14 @@
|
||||
<tbody id="process-table"></tbody>
|
||||
</table>
|
||||
<script type="module">
|
||||
import { getByteFormatter } from "resource://ladybird/utils.js";
|
||||
import { getByteFormatter } from "resource://ladybird/utils.js";
|
||||
const memoryFormatter = getByteFormatter(() => {
|
||||
return {
|
||||
unitDisplay: "narrow",
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
}
|
||||
})
|
||||
};
|
||||
});
|
||||
const cpuFormatter = new Intl.NumberFormat([], {
|
||||
minimumFractionDigits: 2,
|
||||
maximumFractionDigits: 2,
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html>
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
@@ -1,4 +1,4 @@
|
||||
<!DOCTYPE html>
|
||||
<!doctype html>
|
||||
<html lang="en">
|
||||
<head>
|
||||
<meta charset="UTF-8" />
|
||||
|
||||
Reference in New Issue
Block a user