Skip to content
This repository has been archived by the owner on Jul 3, 2024. It is now read-only.

Commit

Permalink
更改jsdelivr相关URL
Browse files Browse the repository at this point in the history
  • Loading branch information
SomeBottle committed Jan 27, 2023
1 parent f52c845 commit e688d27
Show file tree
Hide file tree
Showing 5 changed files with 20 additions and 20 deletions.
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ $config = array(
'max_num' => 15,/*队列中允许停留的最多请求数,其他请求直接返回服务繁忙*/
'last_for' => 2700 /*In seconds*/
),
'service_busy' => 'https://cdn.jsdelivr.net/gh/SomeBottle/odindex/assets/unavailable.png',/*队列过多时返回的“服务繁忙”图片url*/
'service_busy' => 'https://fastly.jsdelivr.net/gh/SomeBottle/odindex/assets/unavailable.png',/*队列过多时返回的“服务繁忙”图片url*/
'thumbnail' => true,
'preview' => true,
'max_preview_size' => 314572, /*最大支持预览的文件大小(in bytes)*/
Expand Down Expand Up @@ -297,7 +297,7 @@ AutoCache会在你的文件目录被大量访问时**自动缓存目录**,配
'max_num'=>15,/*队列中允许停留的最多请求数,其他请求直接返回服务繁忙*/
'last_for'=>2700 /*In seconds*/
),
'service_busy'=>'https://cdn.jsdelivr.net/gh/SomeBottle/odindex/assets/unavailable.png',
'service_busy'=>'https://fastly.jsdelivr.net/gh/SomeBottle/odindex/assets/unavailable.png',
```

TheQueue会在游客对文件造成大量请求时防止并发情况出现,可以有效防止账户被微软限制.
Expand Down
2 changes: 1 addition & 1 deletion assets/script.js
Original file line number Diff line number Diff line change
Expand Up @@ -35,6 +35,6 @@ document.addEventListener("DOMContentLoaded", function() {

});

import "https://cdn.jsdelivr.net/npm/marked/marked.min.js"
import "https://fastly.jsdelivr.net/npm/marked/marked.min.js"

renderReadme().catch(console.error)
2 changes: 1 addition & 1 deletion assets/woff.css
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
font-family: 'Material Icons';
font-style: normal;
font-weight: 400;
src: url(https://cdn.jsdelivr.net/gh/SomeBottle/OdIndex@1.2.6.1/assets/material-icons.woff2) format('woff2');
src: url(https://fastly.jsdelivr.net/gh/SomeBottle/OdIndex@1.2.6.1/assets/material-icons.woff2) format('woff2');
}

.material-icons {
Expand Down
2 changes: 1 addition & 1 deletion index.php
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
'max_num' => 15,/*队列中允许停留的最多请求数,其他请求直接返回服务繁忙*/
'last_for' => 2700 /*In seconds*/
),
'service_busy' => 'https://cdn.jsdelivr.net/gh/SomeBottle/odindex/assets/unavailable.png',/*队列过多时返回的“服务繁忙”图片url*/
'service_busy' => 'https://fastly.jsdelivr.net/gh/SomeBottle/odindex/assets/unavailable.png',/*队列过多时返回的“服务繁忙”图片url*/
'thumbnail' => true,
'preview' => true,
'max_preview_size' => 314572, /*最大支持预览的文件大小(in bytes)*/
Expand Down
30 changes: 15 additions & 15 deletions template.html
Original file line number Diff line number Diff line change
Expand Up @@ -5,10 +5,10 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link href="https://cdn.jsdelivr.net/gh/SomeBottle/OdIndex@3.2/assets/style.css" rel="stylesheet">
<link href='https://cdn.jsdelivr.net/gh/SomeBottle/OdIndex@1.2.6.2/assets/woff.css' rel='stylesheet'>
<link href='https://cdn.jsdelivr.net/npm/github-markdown-css/github-markdown-light.css' rel='stylesheet'>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.17.1/themes/prism.min.css">
<link href="https://fastly.jsdelivr.net/gh/SomeBottle/OdIndex@3.2/assets/style.css" rel="stylesheet">
<link href='https://fastly.jsdelivr.net/gh/SomeBottle/OdIndex@1.2.6.2/assets/woff.css' rel='stylesheet'>
<link href='https://fastly.jsdelivr.net/npm/github-markdown-css/github-markdown-light.css' rel='stylesheet'>
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/prismjs@1.17.1/themes/prism.min.css">
<title>OdIndex - /{[Path]}</title>
</head>

Expand All @@ -27,9 +27,9 @@
</div>
</div>
</body>
<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.min.js"></script>
<script src='https://cdn.jsdelivr.net/npm/markdown-it@latest/dist/markdown-it.min.js'></script>
<script src="https://cdn.jsdelivr.net/gh/SomeBottle/othumb.js@0.8/othumb.m.js"></script>
<script src="https://fastly.jsdelivr.net/npm/prismjs/prism.min.js"></script>
<script src='https://fastly.jsdelivr.net/npm/markdown-it@latest/dist/markdown-it.min.js'></script>
<script src="https://fastly.jsdelivr.net/gh/SomeBottle/othumb.js@0.8/othumb.m.js"></script>
<script>
var readmefile = "{[ReadmeFile]}";

Expand Down Expand Up @@ -96,9 +96,9 @@
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link href="https://cdn.jsdelivr.net/gh/SomeBottle/OdIndex@3.2/assets/style.css" rel="stylesheet">
<link href='https://cdn.jsdelivr.net/npm/github-markdown-css/github-markdown-light.css' rel='stylesheet'>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.17.1/themes/prism.min.css">
<link href="https://fastly.jsdelivr.net/gh/SomeBottle/OdIndex@3.2/assets/style.css" rel="stylesheet">
<link href='https://fastly.jsdelivr.net/npm/github-markdown-css/github-markdown-light.css' rel='stylesheet'>
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/prismjs@1.17.1/themes/prism.min.css">
<title>OdIndex Preview</title>
</head>

Expand Down Expand Up @@ -158,7 +158,7 @@
<div class='previewtext markdown-body' id='md'>{[FileContent]}</div>
</div>
</div>
<script src='https://cdn.jsdelivr.net/npm/markdown-it@latest/dist/markdown-it.min.js'></script>
<script src='https://fastly.jsdelivr.net/npm/markdown-it@latest/dist/markdown-it.min.js'></script>
<script>
document.getElementById('md').innerHTML = window.markdownit().render(document.getElementById('md').innerHTML);
</script>
Expand All @@ -170,7 +170,7 @@
</div>
</div>
</div>
<script src="https://cdn.jsdelivr.net/npm/prismjs/prism.min.js"></script>
<script src="https://fastly.jsdelivr.net/npm/prismjs/prism.min.js"></script>
<script>
Prism.highlightAllUnder(document.getElementById('codes'));
</script>
Expand All @@ -188,9 +188,9 @@ <h2 style='margin-top:0;'>此预览需要前往Office</h2>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<meta http-equiv="X-UA-Compatible" content="IE=edge">
<meta content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" name="viewport" />
<link href="https://cdn.jsdelivr.net/gh/SomeBottle/OdIndex@3.2/assets/style.css" rel="stylesheet">
<link href='https://cdn.jsdelivr.net/npm/github-markdown-css/github-markdown-light.css' rel='stylesheet'>
<link rel="stylesheet" href="https://cdn.jsdelivr.net/npm/prismjs@1.17.1/themes/prism.min.css">
<link href="https://fastly.jsdelivr.net/gh/SomeBottle/OdIndex@3.2/assets/style.css" rel="stylesheet">
<link href='https://fastly.jsdelivr.net/npm/github-markdown-css/github-markdown-light.css' rel='stylesheet'>
<link rel="stylesheet" href="https://fastly.jsdelivr.net/npm/prismjs@1.17.1/themes/prism.min.css">
<title>OdIndex - /{[Path]}</title>
</head>

Expand Down

0 comments on commit e688d27

Please sign in to comment.