Skip to content

Commit

Permalink
chore: change to use unpkg for local development
Browse files Browse the repository at this point in the history
  • Loading branch information
bennyxguo committed Sep 10, 2023
1 parent 9f84fbf commit 518009d
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 11 deletions.
3 changes: 1 addition & 2 deletions src/utils/comments/waline-api.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
declare const Waline: any

import {
init,
pageviewCount,
commentCount,
RecentComments
// eslint-disable-next-line @typescript-eslint/ban-ts-comment
// @ts-expect-error
} from 'https://unpkg.com/@waline/client@v2/dist/waline.mjs'
import { cleanPath, filterHTMLContent, formatTime } from '..'
Expand Down
18 changes: 9 additions & 9 deletions templates/index.html
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
<!DOCTYPE html>
<!doctype html>
<html lang="en">
<!-- Development mode -->
<head>
Expand All @@ -8,36 +8,36 @@
<link rel="icon" href="/favicon.ico" />
<script
rel="preload"
src="https://cdn.jsdelivr.net/npm/[email protected]/js/md5.min.js"
src="https://unpkg.com/blueimp-md5@^2.19.0/js/md5.min.js"
></script>
<script
rel="preload"
src="https://cdn.jsdelivr.net/npm/[email protected]/lodash.min.js"
src="https://unpkg.com/lodash@^4.17.21/lodash.min.js"
></script>
<script
rel="preload"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/gitalk.min.js"
src="https://unpkg.com/gitalk@^1.8.0/dist/gitalk.min.js"
></script>
<link
href="https://cdn.jsdelivr.net/npm/[email protected]/dist/gitalk.min.css"
href="https://unpkg.com/gitalk@^1.8.0/dist/gitalk.min.css"
rel="stylesheet"
/>
<script
rel="preload"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/Valine.min.js"
src="https://unpkg.com/valine@^1.5.1/dist/Valine.min.js"
></script>
<script
rel="preload"
src="https://cdn.jsdelivr.net/npm/leancloud-storage@latest/dist/av-min.js"
src="https://unpkg.com/leancloud-storage@^4.15.0/dist/av-min.js"
></script>
<script
rel="preload"
src="https://cdn.jsdelivr.net/npm/[email protected]/dist/twikoo.all.min.js"
src="https://unpkg.com/twikoo@^1.6.17/dist/twikoo.all.min.js"
></script>
<link rel="stylesheet" href="https://fonts.loli.net/css?family=Rubik" />
<link
rel="stylesheet"
href="https://cdn.jsdelivr.net/npm/@waline/client@2.15.5/dist/waline.min.css"
href="https://unpkg.com/@waline/client@v2/dist/waline.css"
/>
<title>Development Template</title>
</head>
Expand Down

0 comments on commit 518009d

Please sign in to comment.