Skip to content

Commit

Permalink
feat(route): Add 加拿大大使馆 and 蒙特利尔领事馆 to 中国驻外使领馆 (#7416)
Browse files Browse the repository at this point in the history
  • Loading branch information
haha authored May 12, 2021
1 parent d64c17a commit 4c499e3
Show file tree
Hide file tree
Showing 2 changed files with 31 additions and 0 deletions.
12 changes: 12 additions & 0 deletions docs/government.md
Original file line number Diff line number Diff line change
Expand Up @@ -435,6 +435,18 @@ pageClass: routes

### 支持国家列表

#### 加拿大 `CA`

- 大使馆: `/embassy/ca`

- 领事馆城市列表:

| 城市 | 路由 |
| -------- | ---------------------- |
| 蒙特利尔 | `/embassy/ca/montreal` |

* * *

#### 德国 `DE`

- 大使馆: `/embassy/de`
Expand Down
19 changes: 19 additions & 0 deletions lib/routes/embassy/supportedList.js
Original file line number Diff line number Diff line change
@@ -1,4 +1,23 @@
module.exports = {
ca: {
country: 'ca',
countryCN: '加拿大',
link: 'http://ca.china-embassy.org/chn/zytz/',
list: 'div[class=nav_title_list] > ul a',
title: '#News_Body_Title',
description: '#News_Body_Txt_A',
pubDate: '#News_Body_Time',
consulates: {
montreal: {
cityCN: '蒙特利尔',
link: 'http://montreal.chineseconsulate.org/chn/zytz/',
list: '#docMore > tbody > tr > td:nth-child(3) > div[class=Text_Center] > ul a',
title: '#News_Body_Title',
description: '#News_Body_Txt_A',
pubDate: '#News_Body_Time',
},
},
},
de: {
country: 'de',
countryCN: '德国',
Expand Down

1 comment on commit 4c499e3

@vercel
Copy link

@vercel vercel bot commented on 4c499e3 May 12, 2021

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Please sign in to comment.