Skip to content

Commit e52c6d4

Browse files
committed
[add] a new Other post
[add] 2 awards in Resume data [add] GitHub Sponsor configuration [refactor] replace Travis CI with GitHub Actions [fix] several detail bugs
1 parent 9d70872 commit e52c6d4

File tree

10 files changed

+154
-49
lines changed

10 files changed

+154
-49
lines changed

.github/FUNDING.yml

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,3 @@
1+
custom:
2+
- https://paypal.me/TechQuery
3+
- https://tech-query.me/image/TechQuery-Alipay.jpg

.github/workflows/main.yml

Lines changed: 27 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,27 @@
1+
name: CI & CD
2+
on:
3+
push:
4+
branches:
5+
- hexo
6+
jobs:
7+
Build-and-Deploy:
8+
runs-on: ubuntu-latest
9+
steps:
10+
- name: Checkout
11+
uses: actions/checkout@v2
12+
- name: Use Node.js
13+
uses: actions/setup-node@v2
14+
with:
15+
node-version: '14'
16+
- name: Install & build
17+
run: |
18+
npm install
19+
npm run build
20+
- name: Deploy
21+
uses: peaceiris/actions-gh-pages@v3
22+
with:
23+
publish_dir: ./public
24+
cname: tech-query.me
25+
personal_token: ${{ secrets.GITHUB_TOKEN }}
26+
publish_branch: master
27+
force_orphan: true

.travis.yml

Lines changed: 0 additions & 26 deletions
This file was deleted.

ReadMe.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,11 +1,11 @@
11
# TechQuery's Web site
22

33
[![NPM Dependency](https://david-dm.org/TechQuery/TechQuery.github.io.svg)][1]
4-
[![Build Status](https://travis-ci.com/TechQuery/TechQuery.github.io.svg?branch=hexo)][2]
4+
[![CI & CD](https://github.com/TechQuery/TechQuery.github.io/workflows/CI%20&%20CD/badge.svg)][2]
55

66
- Production server: https://tech-query.me/
77

88
- Source code: https://github.com/TechQuery/TechQuery.github.io/
99

1010
[1]: https://david-dm.org/TechQuery/TechQuery.github.io
11-
[2]: https://travis-ci.com/TechQuery/TechQuery.github.io
11+
[2]: https://github.com/TechQuery/TechQuery.github.io/actions

package.json

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -51,11 +51,11 @@
5151
"object-assign": "^4.1.1"
5252
},
5353
"devDependencies": {
54-
"husky": "^4.3.6",
54+
"husky": "^4.3.7",
5555
"jsonresume-theme-kendall": "^0.2.0",
5656
"lint-staged": "^10.5.3",
5757
"prettier": "^2.2.1",
58-
"resume-cli": "3.0.0",
58+
"resume-cli": "^3.0.4",
5959
"yamljs": "^0.3.0"
6060
},
6161
"hexo": {

source/_data/resume.yml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -115,6 +115,14 @@ education:
115115
startDate: 2008-09-01
116116
endDate: 2012-06-30
117117
awards:
118+
- title: Top contributor
119+
date: 2020-12-31
120+
awarder: freeCodeCamp.org
121+
summary: Annual Award for Online Volunteers & City Community Organizers
122+
- title: China Open Source Pioneer
123+
date: 2020-12-23
124+
awarder: KaiYuanShe.cn
125+
summary: one of 33 honorees
118126
- title: Most Valuable Professional
119127
date: 2020-10
120128
awarder: Aliyun

source/_posts/Development/PWA-quick-start.md

Lines changed: 17 additions & 18 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
---
22
title: PWA 即刻上手
33
date: 2019-10-31 22:41:33
4-
updated: 2020-08-10 14:58:09
4+
updated: 2020-12-31 03:37:18
55
categories:
66
- Development
77
tags:
@@ -29,7 +29,7 @@ tags:
2929
<head>
3030
<link rel="manifest" href="index.webmanifest" />
3131
<!-- 老浏览器私有 meta 标签兼容 -->
32-
<script src="https://cdn.jsdelivr.net/npm/pwacompat@2.0.15/pwacompat.min.js"></script>
32+
<script src="https://cdn.jsdelivr.net/npm/pwacompat@2.0.17/pwacompat.min.js"></script>
3333
</head>
3434
```
3535

@@ -39,7 +39,7 @@ tags:
3939
{
4040
"name": "应用全名(启动页)",
4141
"short_name": "应用短名(桌面图标)",
42-
"start_url": "https://example.dev/",
42+
"start_url": ".",
4343
"description": "应用简介",
4444
"scope": "/",
4545
"display": "standalone",
@@ -76,14 +76,12 @@ workbox wizard
7676

7777
```javascript
7878
module.exports = {
79-
globDirectory: 'dist/',
80-
globPatterns: ['**/*.{html,css,js,json,ico,gif,jpg,jpeg,png,webp}'],
79+
globDirectory: 'dist/', // webpack 无需此行
80+
globPatterns: ['**/*.{html,css,js,json,ico,gif,jpg,jpeg,png,webp}'], // webpack 无需此行
8181
swDest: 'dist/sw.js',
82-
// 禁用 Google Cloud CDN
83-
importWorkboxFrom: 'disabled',
8482
// 启用 第三方 CDN
8583
importScripts: [
86-
'https://cdn.jsdelivr.net/npm/workbox-sw@4.3.1/build/workbox-sw.min.js'
84+
'https://cdn.jsdelivr.net/npm/workbox-sw@6.0.2/build/workbox-sw.min.js'
8785
],
8886
// 首次打开页面后尽快接管网络请求
8987
clientsClaim: true,
@@ -103,7 +101,7 @@ workbox generateSW
103101
<head>
104102
<link rel="manifest" href="index.webmanifest" />
105103
<!-- 老浏览器私有 meta 标签兼容 -->
106-
<script src="https://cdn.jsdelivr.net/npm/pwacompat@2.0.15/pwacompat.min.js"></script>
104+
<script src="https://cdn.jsdelivr.net/npm/pwacompat@2.0.17/pwacompat.min.js"></script>
107105
<script>
108106
navigator.serviceWorker?.register('sw.js');
109107
</script>
@@ -119,7 +117,7 @@ workbox generateSW
119117
```json
120118
{
121119
"scripts": {
122-
"start": "workbox generateSW && parcel source/index.html --open",
120+
"start": "parcel source/index.html --open",
123121
"pack": "parcel build source/index.html --public-url .",
124122
"build": "rm -rf dist/ && npm run pack-dist && workbox generateSW"
125123
}
@@ -171,14 +169,15 @@ import { serviceWorkerUpdate } from 'web-utility';
171169
172170
const { serviceWorker } = window.navigator;
173171
174-
serviceWorker
175-
?.register('sw.js')
176-
.then(serviceWorkerUpdate)
177-
.then(worker => {
178-
if (window.confirm('检测到新版本,是否立即启用?'))
179-
// 触发 Workbox CLI 生成的 Service Worker 中监听的消息回调
180-
worker.postMessage({ type: 'SKIP_WAITING' });
181-
});
172+
if (process.env.NODE_ENV !== 'development')
173+
serviceWorker
174+
?.register('sw.js')
175+
.then(serviceWorkerUpdate)
176+
.then(worker => {
177+
if (window.confirm('检测到新版本,是否立即启用?'))
178+
// 触发 Workbox CLI 生成的 Service Worker 中监听的消息回调
179+
worker.postMessage({ type: 'SKIP_WAITING' });
180+
});
182181
183182
serviceWorker?.addEventListener('controllerchange', () =>
184183
window.location.reload()

source/_posts/Other/America-Trump.md

Lines changed: 91 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,91 @@
1+
---
2+
title: 美国王牌
3+
date: 2021-01-12 19:39:38
4+
categories:
5+
- Other
6+
tags:
7+
- USA
8+
- Trump
9+
- democracy
10+
- election
11+
---
12+
13+
## 权利还给人民
14+
15+
> Today's ceremony, however, has very special meaning. Because today, we are not merely transferring power from one administration to another or from one party to another.
16+
>
17+
> But **we are transferring power from Washington D.C. and giving it back to you, the people.**
18+
>
19+
> _**Donald John Trump**_ > _January 21th, 2017_
20+
21+
2021 年 1 月 6 日国会山示威后,有 Twitter 中文网友评论上面这段演讲词时说:
22+
23+
> 4 年前听着觉得是政客的套话,今天才发现是**川普的理想**
24+
25+
<iframe
26+
src="https://www.youtube.com/embed/REzS8LcYR78"
27+
style="width: 100%; height: 90vh; border: none"
28+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
29+
allowfullscreen
30+
></iframe>
31+
32+
<iframe
33+
src="https://www.youtube.com/embed/_PCHcSVWfGk"
34+
style="width: 100%; height: 90vh; border: none"
35+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
36+
allowfullscreen
37+
></iframe>
38+
39+
<iframe
40+
src="https://www.youtube.com/embed/FRmldeESrp8"
41+
style="width: 100%; height: 90vh; border: none"
42+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
43+
allowfullscreen
44+
></iframe>
45+
46+
## 川普改变华盛顿
47+
48+
其实我是先看了 2020 年美国大选的一些川普家的竞选演讲后,才在国会山示威后看了上面的就职演说。
49+
50+
在就职演说看到后半段时,我竟情难自控地**泪流满面****抽泣不已**…… 而上次面对一个政治人物的演讲热泪盈眶还是[《至暗时刻》][1]中的丘吉尔。
51+
52+
大概是因为难得有个兑现大多数**竞选承诺**,我还通过互联网见证了这些**历史时刻**,并为川普深深折服 ——
53+
54+
- **率真**
55+
- 抨击**白左政治正确**矫枉过正
56+
- 反击**主流媒体左倾**
57+
- **务实**:美国优先
58+
- **高效**:乔·拜登从政 47 年碌碌无为,川普 47 个月就卓有成效
59+
- **果敢**
60+
- 阿富汗、中东和平协议
61+
- 朝鲜弃核
62+
- **力挺台湾、香港民主政体**
63+
- **制裁中国侵害人权的官员、公司**
64+
- **坚韧**:顶住 3 次弹劾、1 次患病、1 次**建制派集体反扑的大选舞弊**,并依然斗志昂扬
65+
66+
<iframe
67+
src="https://www.youtube.com/embed/7YLMsWH8ZNU"
68+
style="width: 100%; height: 90vh; border: none"
69+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
70+
allowfullscreen
71+
></iframe>
72+
73+
<iframe
74+
src="https://www.youtube.com/embed/tB9QYP3udO4"
75+
style="width: 100%; height: 90vh; border: none"
76+
allow="accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture"
77+
allowfullscreen
78+
></iframe>
79+
80+
## 让美国再次伟大
81+
82+
聆听了这些激动人心的演讲,关注了 1 月 6 日[美国国会参众两院联席会议][2]的直播,我深深地体会了**国会山绝大多数和平示威的川普支持者**所坚信的川普格言 ——
83+
84+
> **Make America great again!**
85+
86+
但愿**有生之年**,在生我养我的这片土地上,也能看到**积极参与公共事务的民众**里,有越来越多的**民选官**走上历史的舞台 ——
87+
88+
> **让中国再次伟大!**
89+
90+
[1]: https://movie.douban.com/subject/26761416/
91+
[2]: https://zh.wikipedia.org/zh-cn/%E7%BE%8E%E5%9C%8B%E5%9C%8B%E6%9C%83%E8%81%AF%E5%B8%AD%E6%9C%83%E8%AD%B0

source/_posts/Programming/more-capable-form-controls.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -31,7 +31,7 @@ img: https://webdev.imgix.net/more-capable-form-controls/hero.jpg?auto=format&fi
3131

3232
两个 Web 新特性让构建自定义表单控件更简单,解决了现有自定义控件的限制:
3333

34-
- `formdata` 时间让一个任意的 JavaScript 对象参与到表单提交中,所以你可以无需一个隐藏的 `<input>` 就能添加表单数据
34+
- `formdata` 事件让一个任意的 JavaScript 对象参与到表单提交中,所以你可以无需一个隐藏的 `<input>` 就能添加表单数据
3535
- **Form-associated Custom Elements API** 让自定义元素表现得更像内置表单控件
3636

3737
这两个特性可用于创建效果更好的新型控件。

themes/matery/source/css/my.css

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1 +1,4 @@
11
/* Here is your custom css styles. */
2+
#articleContent ul {
3+
margin-left: 1rem;
4+
}

0 commit comments

Comments
 (0)