-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
d2027a2
commit 90c657d
Showing
12 changed files
with
958 additions
and
215 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
module.exports = { | ||
env: { | ||
es2021: true, | ||
node: true, | ||
}, | ||
extends: "eslint:recommended", | ||
overrides: [], | ||
parserOptions: { | ||
ecmaVersion: "latest", | ||
sourceType: "module", | ||
}, | ||
rules: {}, | ||
}; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,4 @@ | ||
{ | ||
"editor.formatOnSave": true, | ||
"editor.defaultFormatter": "esbenp.prettier-vscode" | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,2 +1,2 @@ | ||
import handler from "../src/index.js"; | ||
export default handler; | ||
export default handler; |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,63 +1,84 @@ | ||
<!DOCTYPE HTML> | ||
<!DOCTYPE html> | ||
<html lang="zh_CN"> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title><%= title %></title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta http-equiv="Refresh" content="0; url='<%= url %>'" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta property="application-name" content="<%= provider %>" /> | ||
<meta property="og:site_name" content="<%= provider %>" /> | ||
<meta name="theme-color" content="#de698c" /> | ||
<link rel="canonical" href="<%= url %>" /> | ||
<meta name="title" content="<%= title %>" /> | ||
<meta name="language" content="zh_CN" /> | ||
<meta name="description" content="<%= compat_description %>"> | ||
<link rel="alternate" href="<%= oembed_json %>" type="application/json+oembed" title="<%= title %>" /> | ||
<link rel="alternate" href="<%= oembed_xml %>" type="text/xml+oembed" title="<%= title %>" /> | ||
<meta property="og:type" content="video.other" /> | ||
<meta property="og:title" content="<%= title %>" /> | ||
<meta property="og:url" content="<%= url %>" /> | ||
<meta property="og:author" content="<%= author %>" /> | ||
<meta property="og:image" content="<%= thumbnail %>"> | ||
<meta property="og:description" content="<%= compat_description %>"> | ||
<meta property="og:image:width" content="<%= thumbnail_width %>"> | ||
<meta property="og:image:height" content="<%= thumbnail_height %>"> | ||
<meta property="og:video:url" content="<%= embed_url %>" /> | ||
<meta property="og:video:secure_url" content="<%= embed_url %>" /> | ||
<meta property="og:video:type" content="<%= lie_about_embed_player ? 'video/mp4' : 'text/html'%>"> | ||
<meta property="og:video:width" content="<%= width %>" /> | ||
<meta property="og:video:height" content="<%= height %>" /> | ||
<meta property="twitter:card" content="player" /> | ||
<meta property="twitter:url" content="<%= url %>" /> | ||
<meta property="twitter:title" content="<%= title %>" /> | ||
<meta name="twitter:description" content="<%= compat_description %>"> | ||
<meta property="twitter:image" content="<%= thumbnail %>" /> | ||
<meta property="twitter:player" content="<%= embed_url %>" /> | ||
<meta property="twitter:player:width" content="<%= width %>" /> | ||
<meta property="twitter:player:height" content="<%= height %>" /> | ||
<div itemscope itemid="" itemtype="http://schema.org/VideoObject"> | ||
<link itemprop="url" href="<%= url %>"> | ||
<meta itemprop="name" content="<%= title %>"> | ||
<meta itemprop="description" content="<%= compat_description %>"> | ||
<meta itemprop="duration" content="<%= duration %>"> | ||
<span itemprop="author" itemscope itemtype="http://schema.org/Person"> | ||
<link itemprop="url" href="<%= author_url %>"> | ||
<link itemprop="name" content="<%= author %>"> | ||
</span> | ||
<link itemprop="thumbnailUrl" href="<%= thumbnail %>"> | ||
<span itemprop="thumbnail" itemscope itemtype="http://schema.org/ImageObject"> | ||
<link itemprop="url" href="<%= thumbnail %>"> | ||
<meta itemprop="width" content="<%= thumbnail_width %>"> | ||
<meta itemprop="height" content="<%= thumbnail_height %>"> | ||
</span> | ||
<link itemprop="embedUrl" href="<%= embed_url %>"> | ||
<meta itemprop="width" content="<%= width %>"> | ||
<meta itemprop="height" content="<%= height %>"> | ||
<meta itemprop="playerType" content="HTML5"> | ||
</div> | ||
</head> | ||
<body> | ||
<p><a href="<%= url %>">正在重定向到 <%= url %></a></p> | ||
</body> | ||
<head> | ||
<meta charset="UTF-8" /> | ||
<title><%= title %></title> | ||
<meta http-equiv="X-UA-Compatible" content="IE=edge" /> | ||
<meta http-equiv="Refresh" content="0; url='<%= url %>'" /> | ||
<meta name="viewport" content="width=device-width, initial-scale=1.0" /> | ||
<meta property="application-name" content="<%= provider %>" /> | ||
<meta property="og:site_name" content="<%= provider %>" /> | ||
<meta name="theme-color" content="#de698c" /> | ||
<link rel="canonical" href="<%= url %>" /> | ||
<meta name="title" content="<%= title %>" /> | ||
<meta name="language" content="zh_CN" /> | ||
<meta name="description" content="<%= compat_description %>" /> | ||
<link | ||
rel="alternate" | ||
href="<%= oembed_json %>" | ||
type="application/json+oembed" | ||
title="<%= title %>" | ||
/> | ||
<link | ||
rel="alternate" | ||
href="<%= oembed_xml %>" | ||
type="text/xml+oembed" | ||
title="<%= title %>" | ||
/> | ||
<meta property="og:type" content="video.other" /> | ||
<meta property="og:title" content="<%= title %>" /> | ||
<meta property="og:url" content="<%= url %>" /> | ||
<meta property="og:author" content="<%= author %>" /> | ||
<meta property="og:image" content="<%= thumbnail %>" /> | ||
<meta property="og:description" content="<%= compat_description %>" /> | ||
<meta property="og:image:width" content="<%= thumbnail_width %>" /> | ||
<meta property="og:image:height" content="<%= thumbnail_height %>" /> | ||
<meta property="og:video:url" content="<%= embed_url %>" /> | ||
<meta property="og:video:secure_url" content="<%= embed_url %>" /> | ||
<meta | ||
property="og:video:type" | ||
content="<%= lie_about_embed_player ? 'video/mp4' : 'text/html'%>" | ||
/> | ||
<meta property="og:video:width" content="<%= width %>" /> | ||
<meta property="og:video:height" content="<%= height %>" /> | ||
<meta property="twitter:card" content="player" /> | ||
<meta property="twitter:url" content="<%= url %>" /> | ||
<meta property="twitter:title" content="<%= title %>" /> | ||
<meta name="twitter:description" content="<%= compat_description %>" /> | ||
<meta property="twitter:image" content="<%= thumbnail %>" /> | ||
<meta property="twitter:player" content="<%= embed_url %>" /> | ||
<meta property="twitter:player:width" content="<%= width %>" /> | ||
<meta property="twitter:player:height" content="<%= height %>" /> | ||
<div itemscope itemid="" itemtype="http://schema.org/VideoObject"> | ||
<link itemprop="url" href="<%= url %>" /> | ||
<meta itemprop="name" content="<%= title %>" /> | ||
<meta itemprop="description" content="<%= compat_description %>" /> | ||
<meta itemprop="duration" content="<%= duration %>" /> | ||
<span | ||
itemprop="author" | ||
itemscope | ||
itemtype="http://schema.org/Person" | ||
> | ||
<link itemprop="url" href="<%= author_url %>" /> | ||
<link itemprop="name" content="<%= author %>" /> | ||
</span> | ||
<link itemprop="thumbnailUrl" href="<%= thumbnail %>" /> | ||
<span | ||
itemprop="thumbnail" | ||
itemscope | ||
itemtype="http://schema.org/ImageObject" | ||
> | ||
<link itemprop="url" href="<%= thumbnail %>" /> | ||
<meta itemprop="width" content="<%= thumbnail_width %>" /> | ||
<meta itemprop="height" content="<%= thumbnail_height %>" /> | ||
</span> | ||
<link itemprop="embedUrl" href="<%= embed_url %>" /> | ||
<meta itemprop="width" content="<%= width %>" /> | ||
<meta itemprop="height" content="<%= height %>" /> | ||
<meta itemprop="playerType" content="HTML5" /> | ||
</div> | ||
</head> | ||
<body> | ||
<p><a href="<%= url %>">正在重定向到 <%= url %></a></p> | ||
</body> | ||
</html> |
Oops, something went wrong.