Skip to content

Commit bf63b8b

Browse files
authored
Merge pull request #12 from SouSuoKe/main
修复换行符丢失、UUIDv1少4位、内网部署无法使用等问题
2 parents 795b2c1 + 4d18d42 commit bf63b8b

File tree

67 files changed

+105
-110
lines changed

Some content is hidden

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

67 files changed

+105
-110
lines changed

index.html

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
<meta property="twitter:title" content="JustHTMLs - 开源 HTML 工具集">
2020
<meta property="twitter:description" content="JustHTMLs 是一个开源的 HTML 工具集平台,汇集各种轻量级的在线工具,无需安装,即开即用。">
2121

22-
<link rel="icon" href="/favicon.svg">
22+
<link rel="icon" href="favicon.svg">
2323

2424
<!-- Structured Data (JSON-LD) -->
2525
<script type="application/ld+json">
@@ -66,7 +66,7 @@
6666
}
6767
</script>
6868

69-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
69+
<link rel="stylesheet" href="assets/vendor/fontawesome/css/all.min.css">
7070
<style>
7171
:root {
7272
--primary: #6366f1;
@@ -603,7 +603,7 @@
603603
<header>
604604
<div class="container">
605605
<div class="header-content">
606-
<a href="/" class="logo">
606+
<a href="./" class="logo">
607607
<div class="logo-icon"></div>
608608
<div>
609609
<div class="logo-text">JustHTMLs</div>
@@ -877,7 +877,7 @@ <h3>设计理念</h3>
877877

878878
async function loadHomeStats() {
879879
try {
880-
const response = await fetch('/api/clicks?ids=home');
880+
const response = await fetch('api/clicks?ids=home');
881881
if (!response.ok) {
882882
return;
883883
}

reference.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
<!DOCTYPE html>
22
<html lang="zh-CN">
33
<head>
4-
<link rel="icon" href="/favicon.svg">
4+
<link rel="icon" href="favicon.svg">
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>参考文档 - JustHTMLs</title>

tools-rank.html

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<!DOCTYPE html>
22
<html lang="zh-CN">
33
<head>
4-
<link rel="icon" href="/favicon.svg">
4+
<link rel="icon" href="favicon.svg">
55
<meta charset="UTF-8">
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>工具使用排行 - JustHTMLs</title>
88
<link rel="canonical" href="https://www.htmls.dev/tools-rank.html">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
9+
<link rel="stylesheet" href="assets/vendor/fontawesome/css/all.min.css">
1010
<style>
1111
:root {
1212
--primary: #6366f1;
@@ -211,7 +211,7 @@
211211
<header>
212212
<div class="container">
213213
<div class="header-row">
214-
<a class="back-link" href="/index.html"><i class="fas fa-arrow-left"></i> 返回首页</a>
214+
<a class="back-link" href="./"><i class="fas fa-arrow-left"></i> 返回首页</a>
215215
<div class="page-title">工具使用排行</div>
216216
<div class="controls">
217217
<label for="rank-metric">排行指标</label>
@@ -248,7 +248,7 @@ <h1>工具使用排行</h1>
248248
let stats = {};
249249

250250
async function loadTools() {
251-
const response = await fetch('/index.json');
251+
const response = await fetch('index.json');
252252
if (!response.ok) {
253253
throw new Error('加载工具列表失败');
254254
}
@@ -259,7 +259,7 @@ <h1>工具使用排行</h1>
259259
async function loadStats() {
260260
if (tools.length === 0) return;
261261
const ids = tools.map(tool => tool.id).join(',');
262-
const response = await fetch(`/api/clicks?ids=${encodeURIComponent(ids)}`);
262+
const response = await fetch(`api/clicks?ids=${encodeURIComponent(ids)}`);
263263
if (!response.ok) {
264264
throw new Error('加载统计失败');
265265
}
@@ -310,7 +310,7 @@ <h1>工具使用排行</h1>
310310
<div class="rank-item">
311311
<div class="rank-badge">${index + 1}</div>
312312
<div class="rank-info">
313-
<a class="rank-name" href="/${item.tool.entry}">${item.tool.name}</a>
313+
<a class="rank-name" href="${item.tool.entry}">${item.tool.name}</a>
314314
<div class="rank-meta">${item.tool.description}</div>
315315
</div>
316316
<div class="rank-metric">

tools/base32-decode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Base32 解码 - JustHTMLs</title>
88
<link rel="canonical" href="https://www.htmls.dev/tools/base32-decode/">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
9+
<link rel="stylesheet" href="../../assets/vendor/fontawesome/css/all.min.css">
1010
<style>
1111
:root {
1212
--primary: #3b82f6;

tools/base32-encode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Base32 编码 - JustHTMLs</title>
88
<link rel="canonical" href="https://www.htmls.dev/tools/base32-encode/">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
9+
<link rel="stylesheet" href="../../assets/vendor/fontawesome/css/all.min.css">
1010
<style>
1111
:root {
1212
--primary: #ef4444;

tools/base58-decode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Base58 解码 - JustHTMLs</title>
88
<link rel="canonical" href="https://www.htmls.dev/tools/base58-decode/">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
9+
<link rel="stylesheet" href="../../assets/vendor/fontawesome/css/all.min.css">
1010
<style>
1111
:root {
1212
--primary: #f59e0b;

tools/base58-encode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Base58 编码 - JustHTMLs</title>
88
<link rel="canonical" href="https://www.htmls.dev/tools/base58-encode/">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
9+
<link rel="stylesheet" href="../../assets/vendor/fontawesome/css/all.min.css">
1010
<style>
1111
:root {
1212
--primary: #10b981;

tools/base64-encode/index.html

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Base64 编码解码 - JustHTMLs</title>
88
<link rel="canonical" href="https://www.htmls.dev/tools/base64-encode/">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
9+
<link rel="stylesheet" href="../../assets/vendor/fontawesome/css/all.min.css">
1010
<style>
1111
:root {
1212
--primary: #f093fb;
@@ -227,7 +227,7 @@
227227
<body>
228228
<header>
229229
<div class="container">
230-
<a href="/" class="back-link">
230+
<a href="../../" class="back-link">
231231
<i class="fas fa-arrow-left"></i>
232232
返回首页
233233
</a>

tools/base64url-decode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Base64 URL 安全解码 - JustHTMLs</title>
88
<link rel="canonical" href="https://www.htmls.dev/tools/base64url-decode/">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
9+
<link rel="stylesheet" href="../../assets/vendor/fontawesome/css/all.min.css">
1010
<style>
1111
:root {
1212
--primary: #ec4899;

tools/base64url-encode/index.html

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<meta name="viewport" content="width=device-width, initial-scale=1.0">
77
<title>Base64 URL 安全编码 - JustHTMLs</title>
88
<link rel="canonical" href="https://www.htmls.dev/tools/base64url-encode/">
9-
<link rel="stylesheet" href="https://cdnjs.cloudflare.com/ajax/libs/font-awesome/6.5.1/css/all.min.css" onerror="this.onerror=null;this.href='/assets/vendor/fontawesome/css/all.min.css';">
9+
<link rel="stylesheet" href="../../assets/vendor/fontawesome/css/all.min.css">
1010
<style>
1111
:root {
1212
--primary: #8b5cf6;

0 commit comments

Comments
 (0)