From ca4712e9381d64705b305088d1fc67e6fe9275b5 Mon Sep 17 00:00:00 2001 From: JiJi Date: Thu, 7 Jul 2022 23:00:04 +0800 Subject: [PATCH] Fix .gitignore --- .gitignore | 1 - dist/templates/bangumi.ejs | 44 +++++++++++++++++++++++++++++++++ dist/templates/bgm-template.ejs | 36 +++++++++++++++++++++++++++ dist/templates/pagination.ejs | 7 ++++++ 4 files changed, 87 insertions(+), 1 deletion(-) create mode 100644 dist/templates/bangumi.ejs create mode 100644 dist/templates/bgm-template.ejs create mode 100644 dist/templates/pagination.ejs diff --git a/.gitignore b/.gitignore index d39a6de..b8b9ae6 100644 --- a/.gitignore +++ b/.gitignore @@ -1,3 +1,2 @@ node_modules/ .history/ -dist/ diff --git a/dist/templates/bangumi.ejs b/dist/templates/bangumi.ejs new file mode 100644 index 0000000..98441bd --- /dev/null +++ b/dist/templates/bangumi.ejs @@ -0,0 +1,44 @@ +<% if (quote) { %> +
+

<%- quote; %>

+
+<% } %> + +
+ + <%= __('wantWatch') %> + (<%= wantWatch.length %>) + + <%= __('watching') %> + (<%= watching.length %>) + + <%= __('watched') %> + (<%= watched.length %>) +
+
+
+ <% wantWatch.forEach(function(item){ %> + <%- include('bgm-template.ejs', { item, loading, color_meta }) %> + <% }); %> + <%- include('pagination.ejs', {__: __}) %> +
+
+ <% watching.forEach(function(item){ %> + <%- include('bgm-template.ejs', { item, loading, color_meta }) %> + <% }); %> + <%- include('pagination.ejs', {__: __}) %> +
+
+ <% watched.forEach(function(item){ %> + <%- include('bgm-template.ejs', { item, loading, color_meta }) %> + <% }); %> + <%- include('pagination.ejs', {__: __}) %> +
+
+ diff --git a/dist/templates/bgm-template.ejs b/dist/templates/bgm-template.ejs new file mode 100644 index 0000000..109e884 --- /dev/null +++ b/dist/templates/bgm-template.ejs @@ -0,0 +1,36 @@ +
+
+ " <%- lazyload ? ` data-src="https://lain.bgm.tv/pic/cover/c/${item.image}"` : '' %> referrerPolicy="no-referrer" width="110" style="width:110px;margin:20px auto;" /> +
+
+ +
+ > + > + <% if(item.eps){ %> + 共<%= item.eps %>话0 + + <% } %> + + 类型 <%= item.type %> + + + 想看 <%= item.collection.wish || '-' %> + + + 在看 <%= item.collection.doing || '-' %> + + + 已看 <%= item.collection.collect || '-' %> + + + 评分 <%= item.rating.score || '-' %> + + +
+
>

简介:<%= item.summary || "暂无简介" %>

+
+
diff --git a/dist/templates/pagination.ejs b/dist/templates/pagination.ejs new file mode 100644 index 0000000..b7d2a78 --- /dev/null +++ b/dist/templates/pagination.ejs @@ -0,0 +1,7 @@ +
+ <%= __('top') %> + <%= __('prev') %> + 2 / 3 + <%= __('next') %> + <%= __('end') %> +
\ No newline at end of file