Skip to content

Commit f36246f

Browse files
committed
Code audit fixes: broken links, localStorage safety, CSS cleanup
- Fix footer links broken on 170+ guide pages (missing ../ prefix) - Wrap localStorage access in try/catch for Safari private browsing - Add safe-area-inset-bottom fallback for older browsers - Consolidate duplicate 768px media query blocks in style.css - Remove duplicate display:none on .nav-hamburger - Add fonts.gstatic.com preconnect across all pages - Add Orbitron font to guide pages (was missing from Google Fonts link) - Remove useless CSS preload (stylesheet loaded immediately after) - Fix 404.html: replace canonical with noindex meta - i18n expand/collapse button text in terminal blocks - Clean up robots.txt redundant Disallow directive
1 parent 5d2a99b commit f36246f

192 files changed

Lines changed: 392 additions & 213 deletions

File tree

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

404.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -12,11 +12,11 @@
1212
<meta property="og:image" content="https://www.oracleshellinstall.com/img/og-cover.jpg">
1313
<meta property="og:image:width" content="1200">
1414
<meta property="og:image:height" content="630">
15-
<link rel="canonical" href="https://www.oracleshellinstall.com/404.html">
15+
<meta name="robots" content="noindex">
1616
<link rel="icon" href="favicon.svg" type="image/svg+xml">
1717
<link rel="preconnect" href="https://fonts.googleapis.com">
18+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
1819
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
19-
<link rel="preload" href="css/style.css" as="style">
2020
<link rel="stylesheet" href="css/style.css">
2121
<style>
2222
.err-wrap{display:flex;flex-direction:column;align-items:center;justify-content:center;

compat.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<meta name="color-scheme" content="light dark">
2323
<link rel="icon" href="favicon.svg" type="image/svg+xml">
2424
<link rel="preconnect" href="https://fonts.googleapis.com">
25+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2526
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
26-
<link rel="preload" href="css/style.css" as="style">
2727
<link rel="stylesheet" href="css/style.css">
2828
<style>
2929
/* HERO */

css/style.css

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ img{max-width:100%;display:block}
9898
transform:translateY(-1px)}
9999
.nav-hamburger{display:none;background:none;border:none;color:var(--text);font-size:1.5rem;cursor:pointer;
100100
padding:6px;width:36px;height:36px;border-radius:8px;transition:all .2s;
101-
display:none;align-items:center;justify-content:center}
101+
align-items:center;justify-content:center}
102102
.nav-hamburger:hover{background:rgba(255,255,255,.08)}
103103
[data-theme="light"] .nav-hamburger:hover{background:rgba(0,0,0,.06)}
104104
.nav-actions{display:flex;align-items:center;gap:6px}
@@ -230,12 +230,6 @@ img{max-width:100%;display:block}
230230
cursor:pointer;font-size:.9rem;padding:4px;line-height:1;transition:color .2s}
231231
.wechat-popup-close:hover{color:var(--text)}
232232

233-
@media(max-width:768px){
234-
.wechat-fab{bottom:80px;right:16px;width:38px;height:38px}
235-
.wechat-popup{right:16px;bottom:128px;width:260px;padding:16px}
236-
.back-to-top{right:16px;bottom:32px;width:38px;height:38px}
237-
}
238-
239233
/* === SELECTION === */
240234
::selection{background:rgba(199,70,52,.25);color:var(--text)}
241235

@@ -256,7 +250,7 @@ img{max-width:100%;display:block}
256250
/* Bottom tab bar */
257251
.mobile-tabbar{display:flex!important;position:fixed;bottom:0;left:0;right:0;height:60px;
258252
background:var(--bg);border-top:1px solid var(--border);z-index:1000;
259-
padding:0 4px;padding-bottom:env(safe-area-inset-bottom)}
253+
padding:0 4px;padding-bottom:16px;padding-bottom:env(safe-area-inset-bottom,16px)}
260254
[data-theme="light"] .mobile-tabbar{background:var(--bg)}
261255
.mobile-tabbar a{flex:1;display:flex;flex-direction:column;align-items:center;justify-content:center;
262256
gap:3px;text-decoration:none;color:var(--text-muted);font-size:.65rem;font-weight:500;

docs.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<meta name="color-scheme" content="light dark">
2323
<link rel="icon" href="favicon.svg" type="image/svg+xml">
2424
<link rel="preconnect" href="https://fonts.googleapis.com">
25+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2526
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
26-
<link rel="preload" href="css/style.css" as="style">
2727
<link rel="stylesheet" href="css/style.css">
2828
<style>
2929
.doc-layout{display:grid;grid-template-columns:220px 1fr;gap:40px;padding:50px 0 80px;align-items:start}

download.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<meta name="color-scheme" content="light dark">
2323
<link rel="icon" href="favicon.svg" type="image/svg+xml">
2424
<link rel="preconnect" href="https://fonts.googleapis.com">
25+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2526
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
26-
<link rel="preload" href="css/style.css" as="style">
2727
<link rel="stylesheet" href="css/style.css">
2828
<style>
2929
/* HERO */

generator.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -22,8 +22,8 @@
2222
<meta name="color-scheme" content="light dark">
2323
<link rel="icon" href="favicon.svg" type="image/svg+xml">
2424
<link rel="preconnect" href="https://fonts.googleapis.com">
25+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
2526
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
26-
<link rel="preload" href="css/style.css" as="style">
2727
<link rel="stylesheet" href="css/style.css">
2828
<style>
2929
.gen-hero{padding:50px 0 20px;text-align:center}

guides/1722500845915430912.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<title>Redhat 9.3 一键安装 Oracle 19C 19.21 单机版 - OracleShellInstall</title>
77
<link rel="icon" href="../favicon.svg" type="image/svg+xml">
88
<link rel="preconnect" href="https://fonts.googleapis.com">
9-
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap" rel="stylesheet">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
1011
<link rel="stylesheet" href="../css/style.css">
1112
<link rel="stylesheet" href="guide.css">
1213
</head>

guides/1761982554933587968.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<title>麒麟 V10 一键安装 Oracle 19C 19.22 单机版 - OracleShellInstall</title>
77
<link rel="icon" href="../favicon.svg" type="image/svg+xml">
88
<link rel="preconnect" href="https://fonts.googleapis.com">
9-
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap" rel="stylesheet">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
1011
<link rel="stylesheet" href="../css/style.css">
1112
<link rel="stylesheet" href="guide.css">
1213
</head>

guides/1762008192972820480.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<title>麒麟 V10 一键安装 Oracle 11GR2(231017)单机版 - OracleShellInstall</title>
77
<link rel="icon" href="../favicon.svg" type="image/svg+xml">
88
<link rel="preconnect" href="https://fonts.googleapis.com">
9-
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap" rel="stylesheet">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
1011
<link rel="stylesheet" href="../css/style.css">
1112
<link rel="stylesheet" href="guide.css">
1213
</head>

guides/1767103571552702464.html

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,8 @@
66
<title>11GR2 rac 2节点一键安装演示 - OracleShellInstall</title>
77
<link rel="icon" href="../favicon.svg" type="image/svg+xml">
88
<link rel="preconnect" href="https://fonts.googleapis.com">
9-
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&display=swap" rel="stylesheet">
9+
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
10+
<link href="https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@400;600&family=Noto+Sans+SC:wght@300;400;500;700;900&family=Orbitron:wght@700;900&display=swap" rel="stylesheet">
1011
<link rel="stylesheet" href="../css/style.css">
1112
<link rel="stylesheet" href="guide.css">
1213
</head>

0 commit comments

Comments
 (0)