Skip to content

Commit

Permalink
feat: v3.4.1
Browse files Browse the repository at this point in the history
  • Loading branch information
surmon-china committed Jan 3, 2022
1 parent 07d68e1 commit e98b970
Show file tree
Hide file tree
Showing 6 changed files with 8 additions and 8 deletions.
4 changes: 2 additions & 2 deletions index.html
Original file line number Diff line number Diff line change
Expand Up @@ -37,8 +37,8 @@

<!-- preload -->
<!-- https://developer.mozilla.org/zh-cn/docs/Web/HTML/Preloading_content -->
<link rel="preload" href="/gtag.js" as="script" />
<link rel="preload" href="/ghchart.svg" as="image" />
<link rel="preload" href="/effects/gtag" as="script" />
<link rel="preload" href="/effects/ghchart" as="image" />
<link rel="preload" href="/fonts/DIN-Regular.ttf" as="font" />
<link rel="preload" href="/fonts/SFMonoRegular.otf" as="font" />
<link rel="preload" href="/sponsor/index.html" as="document" />
Expand Down
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"name": "surmon.me",
"version": "3.4.0",
"version": "3.4.1",
"description": "Surmon.me blog",
"author": {
"name": "Surmon",
Expand Down
4 changes: 2 additions & 2 deletions src/bff.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ app.get('/rss.xml', async (_, response) => {
})

// gtag
app.get('/gtag.js', async (_, response) => {
app.get('/effects/gtag', async (_, response) => {
try {
const data = await cacher({
key: 'gtag',
Expand All @@ -80,7 +80,7 @@ app.get('/gtag.js', async (_, response) => {
})

// ghchart
app.get('/ghchart.svg', async (_, response) => {
app.get('/effects/ghchart', async (_, response) => {
try {
const data = await cacher({
key: 'ghchart',
Expand Down
2 changes: 1 addition & 1 deletion src/csr.ts
Original file line number Diff line number Diff line change
Expand Up @@ -64,7 +64,7 @@ app.use(gtag, {
router,
id: GA_MEASUREMENT_ID,
config: { send_page_view: false },
customResourceURL: getTargetCDNURL('/gtag.js')
customResourceURL: getTargetCDNURL('/effects/gtag')
})

// init: store (from SSR context or fetch)
Expand Down
2 changes: 1 addition & 1 deletion src/pages/about/desktop.vue
Original file line number Diff line number Diff line change
Expand Up @@ -176,7 +176,7 @@
:href="VALUABLE_LINKS.GITHUB"
@mousedown="handleGTagEvent('github_chart_link')"
>
<uimage cdn src="/ghchart.svg" />
<uimage cdn src="/effects/ghchart" />
</ulink>
</div>
</div>
Expand Down
2 changes: 1 addition & 1 deletion src/store/lens.ts
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ import tunnel from '/@/services/tunnel'
// https://www.surinderbhomra.com/Blog/2016/05/16/Resize-An-Instagram-Image-Using-A-Media-Query-Parameter
export const getInstagramImage = (media: InstagramMediaItem, size?: 't' | 'm' | 'l') => {
if (size) {
return getTargetProxyURL(`${media.permalink}/media/?size=${size}`, ProxyModule.Instagram)
return getTargetProxyURL(`${media.permalink}media/?size=${size}`, ProxyModule.Instagram)
} else {
return getTargetProxyURL(media.media_url, ProxyModule.Instagram)
}
Expand Down

0 comments on commit e98b970

Please sign in to comment.