2019-08-04 22:34:23 +08:00
|
|
|
<!DOCTYPE html>
|
|
|
|
<html lang="en">
|
|
|
|
|
|
|
|
<head>
|
2019-08-05 19:26:37 +08:00
|
|
|
<title>$$.Title$$ - Shiori - Bookmarks Manager</title>
|
2019-08-04 22:34:23 +08:00
|
|
|
|
|
|
|
<meta charset="UTF-8">
|
|
|
|
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
|
|
|
|
|
|
|
<link rel="apple-touch-icon-precomposed" sizes="152x152" href="/res/apple-touch-icon-152x152.png">
|
|
|
|
<link rel="apple-touch-icon-precomposed" sizes="144x144" href="/res/apple-touch-icon-144x144.png">
|
|
|
|
<link rel="icon" type="image/png" href="/res/favicon-32x32.png" sizes="32x32">
|
|
|
|
<link rel="icon" type="image/png" href="/res/favicon-16x16.png" sizes="16x16">
|
|
|
|
<link rel="icon" type="image/x-icon" href="/res/favicon.ico">
|
|
|
|
|
2019-08-06 09:45:39 +08:00
|
|
|
<link href="/css/source-sans-pro.min.css" rel="stylesheet">
|
2019-08-04 22:34:23 +08:00
|
|
|
<link href="/css/stylesheet.css" rel="stylesheet">
|
|
|
|
<link href="/css/custom-dialog.css" rel="stylesheet">
|
|
|
|
<link href="/css/bookmark-item.css" rel="stylesheet">
|
|
|
|
|
|
|
|
<script src="/js/vue.min.js"></script>
|
|
|
|
</head>
|
|
|
|
|
2019-08-05 23:32:43 +08:00
|
|
|
<body class="night">
|
2019-08-04 22:34:23 +08:00
|
|
|
<div id="content-scene" :class="{night: displayOptions.nightMode}">
|
|
|
|
<div id="header">
|
2019-08-05 19:26:37 +08:00
|
|
|
<p id="metadata">Added $$.Modified$$ UTC</p>
|
|
|
|
<p id="title">$$.Title$$</p>
|
2019-08-04 22:34:23 +08:00
|
|
|
<div id="links">
|
|
|
|
<a href="$$.URL$$" target="_blank">View Original</a>
|
2019-08-05 23:06:00 +08:00
|
|
|
$$if .HasArchive$$
|
|
|
|
<a href="/bookmark/$$.ID$$/archive">View Archive</a>
|
|
|
|
$$end$$
|
2019-08-04 22:34:23 +08:00
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
<div id="content">
|
|
|
|
$$html .HTML$$
|
|
|
|
</div>
|
|
|
|
</div>
|
|
|
|
|
|
|
|
<script type="module">
|
|
|
|
// Create initial variable
|
|
|
|
import basePage from "/js/page/base.js";
|
|
|
|
|
|
|
|
new Vue({
|
|
|
|
el: '#content-scene',
|
|
|
|
mixins: [basePage],
|
|
|
|
methods: {
|
|
|
|
loadSetting() {
|
|
|
|
var opts = JSON.parse(localStorage.getItem("shiori-setting")) || {},
|
|
|
|
showId = (typeof opts.showId === "boolean") ? opts.showId : false,
|
|
|
|
listMode = (typeof opts.listMode === "boolean") ? opts.listMode : false,
|
|
|
|
nightMode = (typeof opts.nightMode === "boolean") ? opts.nightMode : false,
|
|
|
|
useArchive = (typeof opts.useArchive === "boolean") ? opts.useArchive : false;
|
|
|
|
|
|
|
|
this.displayOptions = {
|
|
|
|
showId: showId,
|
|
|
|
listMode: listMode,
|
|
|
|
nightMode: nightMode,
|
|
|
|
useArchive: useArchive,
|
|
|
|
};
|
|
|
|
|
|
|
|
document.body.className = nightMode ? "night" : "";
|
|
|
|
}
|
|
|
|
},
|
|
|
|
mounted() {
|
|
|
|
this.loadSetting();
|
2019-08-05 23:06:00 +08:00
|
|
|
|
|
|
|
document.querySelectorAll("#content a").forEach((elem) => {
|
|
|
|
elem.setAttribute("target", "_blank");
|
|
|
|
});
|
2019-08-04 22:34:23 +08:00
|
|
|
}
|
|
|
|
});
|
|
|
|
</script>
|
|
|
|
</body>
|
|
|
|
|
|
|
|
</html>
|