Add html for preview; Add Beginning of Autumn, Beginning of Spring
This commit is contained in:
parent
12964ee7a9
commit
89971543ed
@ -18,5 +18,5 @@ node build/create.js 节日英文名称(不带标点符号)
|
||||
|
||||
- [ ] Dragon Boat Festival 古诗
|
||||
- [ ] Mid-Autumn Festival 古诗
|
||||
|
||||
- [ ] Winter Solstice 古诗
|
||||
- [ ] Winter Solstice 古诗
|
||||
- [ ] Beginning of Autumn 古诗
|
@ -7,7 +7,8 @@ order = JSON.parse(order);
|
||||
let simplifyField = fs.readFileSync(path.join(__dirname, '../data/simplify_field.json'), 'utf8');
|
||||
simplifyField = JSON.parse(simplifyField);
|
||||
|
||||
let holidayList = [], simplifyHolidayList = [];
|
||||
let ChineseEngilshMapper = {};
|
||||
let holidayList = [], simplifyHolidayList = [], solarTermsList = [], simplifySolarTermsList = [];
|
||||
for (let holidayId of order) {
|
||||
let holiday = fs.readFileSync(path.join(__dirname, `../data/holiday/${holidayId}.json`), 'utf8');
|
||||
holiday = JSON.parse(holiday);
|
||||
@ -16,6 +17,13 @@ for (let holidayId of order) {
|
||||
let simplifyHoliday = {};
|
||||
simplifyField.forEach(field => simplifyHoliday[field] = holiday[field]);
|
||||
simplifyHolidayList.push(simplifyHoliday);
|
||||
|
||||
if (holiday.solarTerms) {
|
||||
solarTermsList.push(holiday);
|
||||
simplifySolarTermsList.push(simplifyHoliday);
|
||||
}
|
||||
|
||||
ChineseEngilshMapper[holiday.name] = holiday.englishName;
|
||||
}
|
||||
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/holiday.json`), JSON.stringify(holidayList, null, 4));
|
||||
@ -23,3 +31,15 @@ fs.writeFileSync(path.join(__dirname, `../dist/holiday.min.json`), JSON.stringif
|
||||
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/holiday.simplify.json`), JSON.stringify(simplifyHolidayList, null, 4));
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/holiday.simplify.min.json`), JSON.stringify(simplifyHolidayList));
|
||||
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/holiday.solarTerms.json`), JSON.stringify(solarTermsList, null, 4));
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/holiday.solarTerms.min.json`), JSON.stringify(solarTermsList));
|
||||
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/holiday.solarTerms.simplify.json`), JSON.stringify(simplifySolarTermsList, null, 4));
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/holiday.solarTerms.simplify.min.json`), JSON.stringify(simplifySolarTermsList));
|
||||
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/chinese_english_mapper.json`), JSON.stringify(ChineseEngilshMapper, null, 4));
|
||||
fs.writeFileSync(path.join(__dirname, `../dist/chinese_english_mapper.min.json`), JSON.stringify(ChineseEngilshMapper));
|
||||
|
||||
fs.copyFileSync(path.join(__dirname, `../dist/holiday.min.json`), path.join(__dirname, `../html/data/holiday.min.json`))
|
||||
fs.copyFileSync(path.join(__dirname, `../dist/holiday.simplify.min.json`), path.join(__dirname, `../html/data/holiday.simplify.min.json`))
|
||||
|
48
data/holiday/Beginning of Autumn.json
Normal file
48
data/holiday/Beginning of Autumn.json
Normal file
@ -0,0 +1,48 @@
|
||||
{
|
||||
"id": "Beginning of Autumn",
|
||||
"skip": false,
|
||||
"name": "立秋",
|
||||
"fullName": "立秋",
|
||||
"englishName": "Beginning of Autumn",
|
||||
"alias": [],
|
||||
"friendlyDate": "公历8月7日-8月8日交节",
|
||||
"date": "~8/7-8/8",
|
||||
"holidayDate": "",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "二十四节气之一",
|
||||
"type": "SolarTerms",
|
||||
"statutory": false,
|
||||
"solarTerms": true,
|
||||
"solarTermsInfo": {
|
||||
"ecliptic": "太阳到达黄经135°",
|
||||
"climate": "降雨、湿度等趋于下降或减少",
|
||||
"phenology": "凉风至;白露生;寒蝉鸣",
|
||||
"lawOfNature": "万物开始从繁茂成长趋向成熟",
|
||||
"farming": "做好整地、施肥的准备、晒秋",
|
||||
"tradition": "祭祀土地神、晒秋节、秋忙会、贴秋膘",
|
||||
"living": "",
|
||||
"meaning": "秋季开始,收获的季节"
|
||||
},
|
||||
"desc": "立秋,是“二十四节气”之第十三个节气,也是秋季的起始。斗指西南,太阳达黄经135°,于每年公历8月7或8日交节。“立”,是开始之意;“秋”,意为禾谷成熟。整个自然界的变化是循序渐进的过程,立秋是阳气渐收、阴气渐长,由阳盛逐渐转变为阴盛的转折。在自然界,万物开始从繁茂成长趋向成熟。",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
"祭祀土地神",
|
||||
"啃秋瓜",
|
||||
"贴秋膘",
|
||||
"晒秋"
|
||||
],
|
||||
"food": [],
|
||||
"origin": "",
|
||||
"meaning": "立秋是阳气渐收、阴气渐长,由阳盛逐渐转变为阴盛的转折",
|
||||
"process": "",
|
||||
"location": "",
|
||||
"organization": "",
|
||||
"startingTime": "",
|
||||
"popularAreas": "",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "https://baike.baidu.com/item/%E7%AB%8B%E7%A7%8B/9465",
|
||||
"poetry": []
|
||||
}
|
62
data/holiday/Beginning of Spring.json
Normal file
62
data/holiday/Beginning of Spring.json
Normal file
@ -0,0 +1,62 @@
|
||||
{
|
||||
"id": "Beginning of Spring",
|
||||
"skip": false,
|
||||
"name": "立春",
|
||||
"fullName": "立春",
|
||||
"englishName": "Beginning of Spring",
|
||||
"alias": [
|
||||
"岁首",
|
||||
"岁节",
|
||||
"改岁",
|
||||
"立春节",
|
||||
"正月节"
|
||||
],
|
||||
"friendlyDate": "公历2月3日-2月5日交节",
|
||||
"date": "~2/3-2/5",
|
||||
"holidayDate": "",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "友好节日类型 多个用/分隔",
|
||||
"type": "节日类型 多个用/分隔 Chinese/Chinese-4/Western/World/SolarTerms/Others(中国传统节日/中国四大传统节日/西方传统节日/世界节日|国际节日/二十四节气/其他类型)",
|
||||
"statutory": "是否法定节假日 boolean",
|
||||
"solarTerms": "是否是二十四节气 boolean",
|
||||
"solarTermsInfo": {
|
||||
"ecliptic": "太阳到达黄经315度",
|
||||
"climate": "气温回升、风和日暖",
|
||||
"phenology": "东风解冻、蜇虫始振、鱼陟负冰",
|
||||
"lawOfNature": "",
|
||||
"farming": "耙耢保墒",
|
||||
"tradition": "拜神祭祖、纳福祈年、驱邪攘灾、除旧布新等",
|
||||
"living": "防躁动,避免过度劳累,保证睡眠情绪豁达。",
|
||||
"meaning": "阳气上升,万物更生,新岁开启"
|
||||
},
|
||||
"desc": "立春,为二十四节气之首。立,是“开始”之意;春,代表着温暖、生长。二十四节气最初是依据“斗转星移”制定,当北斗七星的斗柄指向寅位时为立春。现行是依据太阳黄经度数定节气,当太阳到达黄经315°时为立春,于每年公历2月3-5日交节。干支纪元,以寅月为春正、立春为岁首,立春乃万物起始、一切更生之义也,意味着新的一个轮回已开启。在传统观念中,立春有吉祥的涵义。",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
"迎春",
|
||||
"糊春牛",
|
||||
"打春牛",
|
||||
"咬春",
|
||||
"踏春",
|
||||
"立春祭"
|
||||
],
|
||||
"food": [
|
||||
"春盘",
|
||||
"田艾籺",
|
||||
"春饼",
|
||||
"春卷|春蚕",
|
||||
"咬春|吃萝卜"
|
||||
],
|
||||
"origin": "",
|
||||
"meaning": "立春乃万物起始、一切更生之义也,意味着新的一个轮回已开启",
|
||||
"process": "",
|
||||
"location": "",
|
||||
"organization": "",
|
||||
"startingTime": "",
|
||||
"popularAreas": "",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "https://baike.baidu.com/item/%E7%AB%8B%E6%98%A5/8896",
|
||||
"poetry": []
|
||||
}
|
@ -46,7 +46,7 @@
|
||||
"曹娥",
|
||||
"介子推"
|
||||
],
|
||||
"intangibleCulturalHeritageProtectionUnit": "非物质文化遗产保护单位",
|
||||
"intangibleCulturalHeritageProtectionUnit": "",
|
||||
"nationalCulturalHeritage": "2006年5月20日列入第一批名录",
|
||||
"worldCulturalHeritage": "2009年9月30日入选世界名录",
|
||||
"baike": "https://baike.baidu.com/item/%E7%AB%AF%E5%8D%88%E8%8A%82/1054",
|
||||
|
@ -14,14 +14,15 @@
|
||||
"date": "~4/4-4/6",
|
||||
"holidayDate": "",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "中国四大传统节日之一",
|
||||
"type": "Chinese-4",
|
||||
"friendlyType": "中国四大传统节日之一/二十四节气之一",
|
||||
"type": "Chinese-4/SolarTerms",
|
||||
"statutory": true,
|
||||
"solarTerms": true,
|
||||
"solarTermsInfo": {
|
||||
"ecliptic": "太阳到达黄经15°",
|
||||
"climate": "气温转暖、天气冷暖多变、多雨",
|
||||
"phenology": "桐始华;田鼠化为鹌;虹始见",
|
||||
"lawOfNature": "",
|
||||
"farming": "肥水管理、病虫防治",
|
||||
"tradition": "扫墓、踏青,吃蒿饼、青团、馓子、清明螺",
|
||||
"living": "护肝养肺",
|
||||
|
@ -22,6 +22,7 @@
|
||||
"ecliptic": "太阳到达黄经270°",
|
||||
"climate": "天寒地冻",
|
||||
"phenology": "一候蚯蚓结;二候麋角解;三候水泉动。",
|
||||
"lawOfNature": "",
|
||||
"farming": "兴修水利",
|
||||
"tradition": "吃水饺、吃麻糍",
|
||||
"living": "及时添衣,适当锻炼",
|
||||
|
@ -1,10 +1,12 @@
|
||||
[
|
||||
"New Year",
|
||||
"Spring Festival",
|
||||
"Beginning of Spring",
|
||||
"Cold food festival",
|
||||
"Tomb-Sweeping Day",
|
||||
"International Workers Day",
|
||||
"Dragon Boat Festival",
|
||||
"Beginning of Autumn",
|
||||
"Mid-Autumn Festival",
|
||||
"the National Day of the Peoples Republic of China",
|
||||
"Winter Solstice"
|
||||
|
@ -11,8 +11,8 @@
|
||||
"date": "日期 10/1 如果有多个,以空格分隔,格式:10/1 10/12;如果是时间范围,以-连接,格式:1/1-12/31;如果无法确定准确时间(如清明节),前面添加~代表不确定,例如~4/4-4/6或~4/5",
|
||||
"holidayDate": "放假日期 格式同上",
|
||||
"calendar": "阳历/阴历 solar/lunar",
|
||||
"friendlyType": "友好节日类型",
|
||||
"type": "节日类型 Chinese/Chinese-4/Western/World/SolarTerms/Others(中国传统节日/中国四大传统节日/西方传统节日/世界节日|国际节日/二十四节气/其他类型)",
|
||||
"friendlyType": "友好节日类型 多个用/分隔",
|
||||
"type": "节日类型 多个用/分隔 Chinese/Chinese-4/Western/World/SolarTerms/Others(中国传统节日/中国四大传统节日/西方传统节日/世界节日|国际节日/二十四节气/其他类型)",
|
||||
"statutory": "是否法定节假日 boolean",
|
||||
"solarTerms": "是否是二十四节气 boolean",
|
||||
"solarTermsInfo": {
|
||||
@ -20,10 +20,11 @@
|
||||
"ecliptic": "黄道位置",
|
||||
"climate": "气候特点",
|
||||
"phenology": "物候现象",
|
||||
"lawOfNature": "自然规律",
|
||||
"farming": "农事活动",
|
||||
"tradition": "传统习俗",
|
||||
"living": "起居养生",
|
||||
"meaning": "含义"
|
||||
"meaning": "含义/代表寓意"
|
||||
},
|
||||
"desc": "节日描述 xxx",
|
||||
"subFestival": [
|
||||
|
13
dist/chinese_english_mapper.json
vendored
Normal file
13
dist/chinese_english_mapper.json
vendored
Normal file
@ -0,0 +1,13 @@
|
||||
{
|
||||
"元旦": "New Year",
|
||||
"春节": "Spring Festival / Chinese New Year",
|
||||
"立春": "Beginning of Spring",
|
||||
"寒食节": "Cold food festival",
|
||||
"清明节": "Tomb-Sweeping Day / The Pure Brightness Day / The Mourning Day",
|
||||
"劳动节": "International Workers' Day / May Day",
|
||||
"端午节": "Dragon Boat Festival",
|
||||
"立秋": "Beginning of Autumn",
|
||||
"中秋节": "Mid-Autumn Festival",
|
||||
"国庆节": "the National Day of the People's Republic of China",
|
||||
"冬至": "Winter Solstice"
|
||||
}
|
1
dist/chinese_english_mapper.min.json
vendored
Normal file
1
dist/chinese_english_mapper.min.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
{"元旦":"New Year","春节":"Spring Festival / Chinese New Year","立春":"Beginning of Spring","寒食节":"Cold food festival","清明节":"Tomb-Sweeping Day / The Pure Brightness Day / The Mourning Day","劳动节":"International Workers' Day / May Day","端午节":"Dragon Boat Festival","立秋":"Beginning of Autumn","中秋节":"Mid-Autumn Festival","国庆节":"the National Day of the People's Republic of China","冬至":"Winter Solstice"}
|
172
dist/holiday.json
vendored
172
dist/holiday.json
vendored
@ -384,6 +384,67 @@
|
||||
"baike": "https://baike.baidu.com/item/%E6%98%A5%E8%8A%82/136876",
|
||||
"poetry": []
|
||||
},
|
||||
{
|
||||
"id": "Beginning of Spring",
|
||||
"skip": false,
|
||||
"name": "立春",
|
||||
"fullName": "立春",
|
||||
"englishName": "Beginning of Spring",
|
||||
"alias": [
|
||||
"岁首",
|
||||
"岁节",
|
||||
"改岁",
|
||||
"立春节",
|
||||
"正月节"
|
||||
],
|
||||
"friendlyDate": "公历2月3日-2月5日交节",
|
||||
"date": "~2/3-2/5",
|
||||
"holidayDate": "放假日期 格式同上",
|
||||
"calendar": "阳历/阴历 solar/lunar",
|
||||
"friendlyType": "友好节日类型 多个用/分隔",
|
||||
"type": "节日类型 多个用/分隔 Chinese/Chinese-4/Western/World/SolarTerms/Others(中国传统节日/中国四大传统节日/西方传统节日/世界节日|国际节日/二十四节气/其他类型)",
|
||||
"statutory": "是否法定节假日 boolean",
|
||||
"solarTerms": "是否是二十四节气 boolean",
|
||||
"solarTermsInfo": {
|
||||
"_": "如果不是二十四节气,solarTermsInfo 为 null",
|
||||
"ecliptic": "黄道位置",
|
||||
"climate": "气候特点",
|
||||
"phenology": "物候现象",
|
||||
"farming": "农事活动",
|
||||
"tradition": "传统习俗",
|
||||
"living": "起居养生",
|
||||
"meaning": "含义"
|
||||
},
|
||||
"desc": "节日描述 xxx",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
"节日活动 如果有别名,格式为:年夜饭|晚饭、团年饭"
|
||||
],
|
||||
"food": [
|
||||
"节日饮食 如果有别名,格式为:青团(南方)|清明饼、棉菜馍糍、茨壳粿、清明粑、艾叶粑粑、艾糍、清明果、菠菠粿、清明粿、艾叶糍粑、艾粄、艾草糕、清明团子、暖菇包、艾草青团"
|
||||
],
|
||||
"origin": "节日起源",
|
||||
"meaning": "节日意义",
|
||||
"process": "节日流程",
|
||||
"location": "节日设定地点",
|
||||
"organization": "设立机构",
|
||||
"startingTime": "设立时间/起源时期",
|
||||
"popularAreas": "流行地区",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "非物质文化遗产保护单位",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "百度百科地址",
|
||||
"poetry": [
|
||||
{
|
||||
"dynasty": "朝代 晋代/唐代/宋/...",
|
||||
"status": "作者身份",
|
||||
"author": "古诗作者 李白",
|
||||
"name": "古诗名(不加书名号)",
|
||||
"text": "古诗正文(片段)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Cold food festival",
|
||||
"skip": false,
|
||||
@ -516,11 +577,19 @@
|
||||
"date": "~4/4-4/6",
|
||||
"holidayDate": "",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "中国四大传统节日之一",
|
||||
"type": "Chinese-4",
|
||||
"friendlyType": "中国四大传统节日之一/二十四节气之一",
|
||||
"type": "Chinese-4/SolarTerms",
|
||||
"statutory": true,
|
||||
"solarTerms": true,
|
||||
"solarTermsInfo": null,
|
||||
"solarTermsInfo": {
|
||||
"ecliptic": "太阳到达黄经15°",
|
||||
"climate": "气温转暖、天气冷暖多变、多雨",
|
||||
"phenology": "桐始华;田鼠化为鹌;虹始见",
|
||||
"farming": "肥水管理、病虫防治",
|
||||
"tradition": "扫墓、踏青,吃蒿饼、青团、馓子、清明螺",
|
||||
"living": "护肝养肺",
|
||||
"meaning": "天气晴朗、草木繁茂"
|
||||
},
|
||||
"desc": "清明节,又称踏青节、行清节、三月节、祭祖节等,节期在仲春与暮春之交。清明节源自上古时代的祖先信仰与春祭礼俗,是中华民族最隆重盛大的祭祖大节。清明节兼具自然与人文两大内涵,既是自然节气点,也是传统节日,扫墓祭祖与踏青郊游是清明节的两大礼俗主题,这两大传统礼俗主题在中国自古传承,至今不辍。",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
@ -702,6 +771,60 @@
|
||||
"baike": "https://baike.baidu.com/item/%E7%AB%AF%E5%8D%88%E8%8A%82/1054",
|
||||
"poetry": []
|
||||
},
|
||||
{
|
||||
"id": "Beginning of Autumn",
|
||||
"skip": false,
|
||||
"name": "立秋",
|
||||
"fullName": "立秋",
|
||||
"englishName": "Beginning of Autumn",
|
||||
"alias": [],
|
||||
"friendlyDate": "公历8月7日-8月8日交节",
|
||||
"date": "~8/7-8/8",
|
||||
"holidayDate": "",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "二十四节气之一",
|
||||
"type": "SolarTerms",
|
||||
"statutory": false,
|
||||
"solarTerms": true,
|
||||
"solarTermsInfo": {
|
||||
"ecliptic": "黄道位置",
|
||||
"climate": "气候特点",
|
||||
"phenology": "物候现象",
|
||||
"farming": "农事活动",
|
||||
"tradition": "传统习俗",
|
||||
"living": "起居养生",
|
||||
"meaning": "含义"
|
||||
},
|
||||
"desc": "今日立秋,立秋是阳气渐收,阴气渐长,由阳盛逐渐转变为阴盛的转折。",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
"节日活动 如果有别名,格式为:年夜饭|晚饭、团年饭"
|
||||
],
|
||||
"food": [
|
||||
"节日饮食 如果有别名,格式为:青团(南方)|清明饼、棉菜馍糍、茨壳粿、清明粑、艾叶粑粑、艾糍、清明果、菠菠粿、清明粿、艾叶糍粑、艾粄、艾草糕、清明团子、暖菇包、艾草青团"
|
||||
],
|
||||
"origin": "节日起源",
|
||||
"meaning": "节日意义",
|
||||
"process": "节日流程",
|
||||
"location": "节日设定地点",
|
||||
"organization": "设立机构",
|
||||
"startingTime": "设立时间/起源时期",
|
||||
"popularAreas": "流行地区",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "非物质文化遗产保护单位",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "百度百科地址",
|
||||
"poetry": [
|
||||
{
|
||||
"dynasty": "朝代 晋代/唐代/宋/...",
|
||||
"status": "作者身份",
|
||||
"author": "古诗作者 李白",
|
||||
"name": "古诗名(不加书名号)",
|
||||
"text": "古诗正文(片段)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Mid-Autumn Festival",
|
||||
"skip": false,
|
||||
@ -819,42 +942,33 @@
|
||||
"statutory": false,
|
||||
"solarTerms": true,
|
||||
"solarTermsInfo": {
|
||||
"_": "如果不是二十四节气,solarTermsInfo 为 false",
|
||||
"ecliptic": "黄道位置",
|
||||
"climate": "气候特点",
|
||||
"phenology": "物候现象",
|
||||
"farming": "农事活动",
|
||||
"living": "起居养生"
|
||||
"ecliptic": "太阳到达黄经270°",
|
||||
"climate": "天寒地冻",
|
||||
"phenology": "一候蚯蚓结;二候麋角解;三候水泉动。",
|
||||
"farming": "兴修水利",
|
||||
"tradition": "吃水饺、吃麻糍",
|
||||
"living": "及时添衣,适当锻炼",
|
||||
"meaning": ""
|
||||
},
|
||||
"desc": "冬至,又称日南至、冬节、亚岁等,兼具自然与人文两大内涵,既是二十四节气中一个重要的节气,也是中国民间的传统祭祖节日。冬至是四时八节之一,被视为冬季的大节日,在古代民间有“冬至大如年”的讲法。冬至习俗因地域不同而又存在着习俗内容或细节上的差异。在中国南方地区,有冬至祭祖、宴饮的习俗。在中国北方地区,每年冬至日有吃饺子的习俗。",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
""
|
||||
],
|
||||
"activity": [],
|
||||
"food": [
|
||||
"吃水饺",
|
||||
"吃麻糍"
|
||||
],
|
||||
"origin": "节日起源",
|
||||
"origin": "",
|
||||
"meaning": "寒冷的冬天来临。",
|
||||
"process": "节日流程",
|
||||
"location": "节日设定地点",
|
||||
"organization": "设立机构",
|
||||
"startingTime": "设立时间/起源时期",
|
||||
"popularAreas": "流行地区",
|
||||
"process": "",
|
||||
"location": "",
|
||||
"organization": "",
|
||||
"startingTime": "",
|
||||
"popularAreas": "",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "非物质文化遗产保护单位",
|
||||
"intangibleCulturalHeritageProtectionUnit": "",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "百度百科地址",
|
||||
"poetry": [
|
||||
{
|
||||
"dynasty": "朝代 晋代/唐代/宋/...",
|
||||
"status": "作者身份",
|
||||
"author": "古诗作者 李白",
|
||||
"name": "古诗名(不加书名号)",
|
||||
"text": "古诗正文(片段)"
|
||||
}
|
||||
]
|
||||
"baike": "https://baike.baidu.com/item/%E5%86%AC%E8%87%B3/9381",
|
||||
"poetry": []
|
||||
}
|
||||
]
|
2
dist/holiday.min.json
vendored
2
dist/holiday.min.json
vendored
File diff suppressed because one or more lines are too long
38
dist/holiday.simplify.json
vendored
38
dist/holiday.simplify.json
vendored
@ -38,6 +38,26 @@
|
||||
"solarTerms": false,
|
||||
"desc": "春节(Spring Festival),即中国农历新年,俗称新春、新岁、岁旦等,口头上又称过年、过大年。春节历史悠久,由上古时代岁首祈岁祭祀演变而来。万物本乎天、人本乎祖,祈岁祭祀、敬天法祖,报本反始也。春节的起源蕴含着深邃的文化内涵,在传承发展中承载了丰厚的历史文化底蕴。在春节期间,全国各地均有举行各种庆贺新春活动,带有浓郁的各地地方特色。这些活动以除旧布新、驱邪攘灾、拜神祭祖、纳福祈年为主要内容,形式丰富多彩,凝聚着中华传统文化精华。"
|
||||
},
|
||||
{
|
||||
"name": "立春",
|
||||
"fullName": "立春",
|
||||
"englishName": "Beginning of Spring",
|
||||
"alias": [
|
||||
"岁首",
|
||||
"岁节",
|
||||
"改岁",
|
||||
"立春节",
|
||||
"正月节"
|
||||
],
|
||||
"friendlyDate": "公历2月3日-2月5日交节",
|
||||
"date": "~2/3-2/5",
|
||||
"calendar": "阳历/阴历 solar/lunar",
|
||||
"friendlyType": "友好节日类型 多个用/分隔",
|
||||
"type": "节日类型 多个用/分隔 Chinese/Chinese-4/Western/World/SolarTerms/Others(中国传统节日/中国四大传统节日/西方传统节日/世界节日|国际节日/二十四节气/其他类型)",
|
||||
"statutory": "是否法定节假日 boolean",
|
||||
"solarTerms": "是否是二十四节气 boolean",
|
||||
"desc": "节日描述 xxx"
|
||||
},
|
||||
{
|
||||
"name": "寒食节",
|
||||
"fullName": "寒食节",
|
||||
@ -70,8 +90,8 @@
|
||||
"friendlyDate": "斗指乙,太阳黄经15°,公历4月5日前后",
|
||||
"date": "~4/4-4/6",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "中国四大传统节日之一",
|
||||
"type": "Chinese-4",
|
||||
"friendlyType": "中国四大传统节日之一/二十四节气之一",
|
||||
"type": "Chinese-4/SolarTerms",
|
||||
"statutory": true,
|
||||
"solarTerms": true,
|
||||
"desc": "清明节,又称踏青节、行清节、三月节、祭祖节等,节期在仲春与暮春之交。清明节源自上古时代的祖先信仰与春祭礼俗,是中华民族最隆重盛大的祭祖大节。清明节兼具自然与人文两大内涵,既是自然节气点,也是传统节日,扫墓祭祖与踏青郊游是清明节的两大礼俗主题,这两大传统礼俗主题在中国自古传承,至今不辍。"
|
||||
@ -113,6 +133,20 @@
|
||||
"solarTerms": false,
|
||||
"desc": "端午节,又称端阳节、龙舟节、重五节、天中节等,是集拜神祭祖、祈福辟邪、欢庆娱乐和饮食为一体的民俗大节。端午节源于自然天象崇拜,由上古时代祭龙演变而来。仲夏端午,苍龙七宿飞升于正南中央,处在全年最“中正”之位,正如《易经·乾卦》第五爻:“飞龙在天”。端午是“飞龙在天”吉祥日,龙及龙舟文化始终贯穿在端午节的传承历史中。"
|
||||
},
|
||||
{
|
||||
"name": "立秋",
|
||||
"fullName": "立秋",
|
||||
"englishName": "Beginning of Autumn",
|
||||
"alias": [],
|
||||
"friendlyDate": "公历8月7日-8月8日交节",
|
||||
"date": "~8/7-8/8",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "二十四节气之一",
|
||||
"type": "SolarTerms",
|
||||
"statutory": false,
|
||||
"solarTerms": true,
|
||||
"desc": "今日立秋,立秋是阳气渐收,阴气渐长,由阳盛逐渐转变为阴盛的转折。"
|
||||
},
|
||||
{
|
||||
"name": "中秋节",
|
||||
"fullName": "中秋节",
|
||||
|
2
dist/holiday.simplify.min.json
vendored
2
dist/holiday.simplify.min.json
vendored
File diff suppressed because one or more lines are too long
287
dist/holiday.solarTerms.json
vendored
Normal file
287
dist/holiday.solarTerms.json
vendored
Normal file
@ -0,0 +1,287 @@
|
||||
[
|
||||
{
|
||||
"id": "Beginning of Spring",
|
||||
"skip": false,
|
||||
"name": "立春",
|
||||
"fullName": "立春",
|
||||
"englishName": "Beginning of Spring",
|
||||
"alias": [
|
||||
"岁首",
|
||||
"岁节",
|
||||
"改岁",
|
||||
"立春节",
|
||||
"正月节"
|
||||
],
|
||||
"friendlyDate": "公历2月3日-2月5日交节",
|
||||
"date": "~2/3-2/5",
|
||||
"holidayDate": "放假日期 格式同上",
|
||||
"calendar": "阳历/阴历 solar/lunar",
|
||||
"friendlyType": "友好节日类型 多个用/分隔",
|
||||
"type": "节日类型 多个用/分隔 Chinese/Chinese-4/Western/World/SolarTerms/Others(中国传统节日/中国四大传统节日/西方传统节日/世界节日|国际节日/二十四节气/其他类型)",
|
||||
"statutory": "是否法定节假日 boolean",
|
||||
"solarTerms": "是否是二十四节气 boolean",
|
||||
"solarTermsInfo": {
|
||||
"_": "如果不是二十四节气,solarTermsInfo 为 null",
|
||||
"ecliptic": "黄道位置",
|
||||
"climate": "气候特点",
|
||||
"phenology": "物候现象",
|
||||
"farming": "农事活动",
|
||||
"tradition": "传统习俗",
|
||||
"living": "起居养生",
|
||||
"meaning": "含义"
|
||||
},
|
||||
"desc": "节日描述 xxx",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
"节日活动 如果有别名,格式为:年夜饭|晚饭、团年饭"
|
||||
],
|
||||
"food": [
|
||||
"节日饮食 如果有别名,格式为:青团(南方)|清明饼、棉菜馍糍、茨壳粿、清明粑、艾叶粑粑、艾糍、清明果、菠菠粿、清明粿、艾叶糍粑、艾粄、艾草糕、清明团子、暖菇包、艾草青团"
|
||||
],
|
||||
"origin": "节日起源",
|
||||
"meaning": "节日意义",
|
||||
"process": "节日流程",
|
||||
"location": "节日设定地点",
|
||||
"organization": "设立机构",
|
||||
"startingTime": "设立时间/起源时期",
|
||||
"popularAreas": "流行地区",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "非物质文化遗产保护单位",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "百度百科地址",
|
||||
"poetry": [
|
||||
{
|
||||
"dynasty": "朝代 晋代/唐代/宋/...",
|
||||
"status": "作者身份",
|
||||
"author": "古诗作者 李白",
|
||||
"name": "古诗名(不加书名号)",
|
||||
"text": "古诗正文(片段)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Tomb-Sweeping Day",
|
||||
"skip": false,
|
||||
"name": "清明节",
|
||||
"fullName": "清明节",
|
||||
"englishName": "Tomb-Sweeping Day / The Pure Brightness Day / The Mourning Day",
|
||||
"alias": [
|
||||
"踏青节",
|
||||
"行清节",
|
||||
"三月节",
|
||||
"祭祖节"
|
||||
],
|
||||
"friendlyDate": "斗指乙,太阳黄经15°,公历4月5日前后",
|
||||
"date": "~4/4-4/6",
|
||||
"holidayDate": "",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "中国四大传统节日之一/二十四节气之一",
|
||||
"type": "Chinese-4/SolarTerms",
|
||||
"statutory": true,
|
||||
"solarTerms": true,
|
||||
"solarTermsInfo": {
|
||||
"ecliptic": "太阳到达黄经15°",
|
||||
"climate": "气温转暖、天气冷暖多变、多雨",
|
||||
"phenology": "桐始华;田鼠化为鹌;虹始见",
|
||||
"farming": "肥水管理、病虫防治",
|
||||
"tradition": "扫墓、踏青,吃蒿饼、青团、馓子、清明螺",
|
||||
"living": "护肝养肺",
|
||||
"meaning": "天气晴朗、草木繁茂"
|
||||
},
|
||||
"desc": "清明节,又称踏青节、行清节、三月节、祭祖节等,节期在仲春与暮春之交。清明节源自上古时代的祖先信仰与春祭礼俗,是中华民族最隆重盛大的祭祖大节。清明节兼具自然与人文两大内涵,既是自然节气点,也是传统节日,扫墓祭祖与踏青郊游是清明节的两大礼俗主题,这两大传统礼俗主题在中国自古传承,至今不辍。",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
"踏青郊游",
|
||||
"扫墓祭祖",
|
||||
"植树",
|
||||
"放风筝",
|
||||
"插柳",
|
||||
"拔河",
|
||||
"荡秋千",
|
||||
"斗鸡",
|
||||
"射柳",
|
||||
"蹴鞠",
|
||||
"蚕花会"
|
||||
],
|
||||
"food": [
|
||||
"祭祖金猪",
|
||||
"鲜果茶点",
|
||||
"青团(南方)|清明饼、棉菜馍糍、茨壳粿、清明粑、艾叶粑粑、艾糍、清明果、菠菠粿、清明粿、艾叶糍粑、艾粄、艾草糕、清明团子、暖菇包、艾草青团"
|
||||
],
|
||||
"origin": "干支历法、原始信仰、祭祀文化",
|
||||
"meaning": "礼敬祖先,亲近自然",
|
||||
"process": "清杂草、摆祭品、拜祭、鸣放鞭炮",
|
||||
"location": "中国",
|
||||
"organization": "",
|
||||
"startingTime": "",
|
||||
"popularAreas": "中国、东亚、东南亚等华人华侨聚集地",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "文化和旅游部",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "https://baike.baidu.com/item/%E6%B8%85%E6%98%8E%E8%8A%82/137575",
|
||||
"poetry": [
|
||||
{
|
||||
"dynasty": "唐代",
|
||||
"status": "",
|
||||
"author": "杜牧",
|
||||
"name": "清明",
|
||||
"text": "清明时节雨纷纷,路上行人欲断魂。借问酒家何处有?牧童遥指杏花村。"
|
||||
},
|
||||
{
|
||||
"dynasty": "清代",
|
||||
"status": "",
|
||||
"author": "厉鹗",
|
||||
"name": "百字令·丁酉清明",
|
||||
"text": "春光老去,恨年年心事,春能拘管。永日空园双燕语,折尽柳条长短。白眼看天,青袍似草,最觉当歌懒。愔愔门巷,落花早又吹满。凝想烟月当时,饧箫旧市,惯逐嬉春伴。一自笑桃人去后,几叶碧云深浅。乱掷榆钱,细垂桐乳,尚惹游丝转。望中何处?那堪天远山远!"
|
||||
},
|
||||
{
|
||||
"dynasty": "唐代",
|
||||
"status": "",
|
||||
"author": "张继",
|
||||
"name": "闾门即事",
|
||||
"text": "耕夫召募爱楼船,春草青青万项田。试上吴门窥郡郭,清明几处有新烟。"
|
||||
},
|
||||
{
|
||||
"dynasty": "宋代",
|
||||
"status": "",
|
||||
"author": "王禹俏",
|
||||
"name": "清明",
|
||||
"text": "无花无酒过清明,兴味萧然似野僧。昨日邻家乞新火,晓窗分与读书灯。"
|
||||
},
|
||||
{
|
||||
"dynasty": "宋代",
|
||||
"status": "",
|
||||
"author": "吴惟信",
|
||||
"name": "苏堤清明即事",
|
||||
"text": "梨花风起正清明,游子寻春半出城。日暮笙歌收拾去,万株杨柳属流莺。"
|
||||
},
|
||||
{
|
||||
"dynasty": "宋代",
|
||||
"status": "",
|
||||
"author": "杨万里",
|
||||
"name": "寒食上冢",
|
||||
"text": "迳直夫何细!桥危可免扶?远山枫外淡,破屋麦边孤。宿草春风又,新阡去岁无。梨花自寒食,进节只愁余。"
|
||||
},
|
||||
{
|
||||
"dynasty": "宋代",
|
||||
"status": "",
|
||||
"author": "程颢",
|
||||
"name": "郊行即事",
|
||||
"text": "芳草绿野恣行事,春入遥山碧四周。兴逐乱红穿柳巷,固因流水坐苔矶。莫辞盏酒十分劝,只恐风花一片红。况是清明好天气,不妨游衍莫忘归。"
|
||||
},
|
||||
{
|
||||
"dynasty": "明代",
|
||||
"status": "",
|
||||
"author": "王磐",
|
||||
"name": "清江引 清明日出游",
|
||||
"text": "问西楼禁烟何处好?绿野晴天道。马穿杨柳嘶,人倚秋千笑,探莺花总教春醉倒。"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Beginning of Autumn",
|
||||
"skip": false,
|
||||
"name": "立秋",
|
||||
"fullName": "立秋",
|
||||
"englishName": "Beginning of Autumn",
|
||||
"alias": [],
|
||||
"friendlyDate": "公历8月7日-8月8日交节",
|
||||
"date": "~8/7-8/8",
|
||||
"holidayDate": "",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "二十四节气之一",
|
||||
"type": "SolarTerms",
|
||||
"statutory": false,
|
||||
"solarTerms": true,
|
||||
"solarTermsInfo": {
|
||||
"ecliptic": "黄道位置",
|
||||
"climate": "气候特点",
|
||||
"phenology": "物候现象",
|
||||
"farming": "农事活动",
|
||||
"tradition": "传统习俗",
|
||||
"living": "起居养生",
|
||||
"meaning": "含义"
|
||||
},
|
||||
"desc": "今日立秋,立秋是阳气渐收,阴气渐长,由阳盛逐渐转变为阴盛的转折。",
|
||||
"subFestival": [],
|
||||
"activity": [
|
||||
"节日活动 如果有别名,格式为:年夜饭|晚饭、团年饭"
|
||||
],
|
||||
"food": [
|
||||
"节日饮食 如果有别名,格式为:青团(南方)|清明饼、棉菜馍糍、茨壳粿、清明粑、艾叶粑粑、艾糍、清明果、菠菠粿、清明粿、艾叶糍粑、艾粄、艾草糕、清明团子、暖菇包、艾草青团"
|
||||
],
|
||||
"origin": "节日起源",
|
||||
"meaning": "节日意义",
|
||||
"process": "节日流程",
|
||||
"location": "节日设定地点",
|
||||
"organization": "设立机构",
|
||||
"startingTime": "设立时间/起源时期",
|
||||
"popularAreas": "流行地区",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "非物质文化遗产保护单位",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "百度百科地址",
|
||||
"poetry": [
|
||||
{
|
||||
"dynasty": "朝代 晋代/唐代/宋/...",
|
||||
"status": "作者身份",
|
||||
"author": "古诗作者 李白",
|
||||
"name": "古诗名(不加书名号)",
|
||||
"text": "古诗正文(片段)"
|
||||
}
|
||||
]
|
||||
},
|
||||
{
|
||||
"id": "Winter Solstice",
|
||||
"skip": false,
|
||||
"name": "冬至",
|
||||
"fullName": "冬至",
|
||||
"englishName": "Winter Solstice",
|
||||
"alias": [
|
||||
"日南至",
|
||||
"冬节",
|
||||
"日短至",
|
||||
"亚岁"
|
||||
],
|
||||
"friendlyDate": "公历12月21日-12月23日交节",
|
||||
"date": "~12/21-12/23",
|
||||
"holidayDate": "",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "二十四节气之一",
|
||||
"type": "SolarTerms",
|
||||
"statutory": false,
|
||||
"solarTerms": true,
|
||||
"solarTermsInfo": {
|
||||
"ecliptic": "太阳到达黄经270°",
|
||||
"climate": "天寒地冻",
|
||||
"phenology": "一候蚯蚓结;二候麋角解;三候水泉动。",
|
||||
"farming": "兴修水利",
|
||||
"tradition": "吃水饺、吃麻糍",
|
||||
"living": "及时添衣,适当锻炼",
|
||||
"meaning": ""
|
||||
},
|
||||
"desc": "冬至,又称日南至、冬节、亚岁等,兼具自然与人文两大内涵,既是二十四节气中一个重要的节气,也是中国民间的传统祭祖节日。冬至是四时八节之一,被视为冬季的大节日,在古代民间有“冬至大如年”的讲法。冬至习俗因地域不同而又存在着习俗内容或细节上的差异。在中国南方地区,有冬至祭祖、宴饮的习俗。在中国北方地区,每年冬至日有吃饺子的习俗。",
|
||||
"subFestival": [],
|
||||
"activity": [],
|
||||
"food": [
|
||||
"吃水饺",
|
||||
"吃麻糍"
|
||||
],
|
||||
"origin": "",
|
||||
"meaning": "寒冷的冬天来临。",
|
||||
"process": "",
|
||||
"location": "",
|
||||
"organization": "",
|
||||
"startingTime": "",
|
||||
"popularAreas": "",
|
||||
"commemorator": [],
|
||||
"intangibleCulturalHeritageProtectionUnit": "",
|
||||
"nationalCulturalHeritage": "",
|
||||
"worldCulturalHeritage": "",
|
||||
"baike": "https://baike.baidu.com/item/%E5%86%AC%E8%87%B3/9381",
|
||||
"poetry": []
|
||||
}
|
||||
]
|
1
dist/holiday.solarTerms.min.json
vendored
Normal file
1
dist/holiday.solarTerms.min.json
vendored
Normal file
File diff suppressed because one or more lines are too long
74
dist/holiday.solarTerms.simplify.json
vendored
Normal file
74
dist/holiday.solarTerms.simplify.json
vendored
Normal file
@ -0,0 +1,74 @@
|
||||
[
|
||||
{
|
||||
"name": "立春",
|
||||
"fullName": "立春",
|
||||
"englishName": "Beginning of Spring",
|
||||
"alias": [
|
||||
"岁首",
|
||||
"岁节",
|
||||
"改岁",
|
||||
"立春节",
|
||||
"正月节"
|
||||
],
|
||||
"friendlyDate": "公历2月3日-2月5日交节",
|
||||
"date": "~2/3-2/5",
|
||||
"calendar": "阳历/阴历 solar/lunar",
|
||||
"friendlyType": "友好节日类型 多个用/分隔",
|
||||
"type": "节日类型 多个用/分隔 Chinese/Chinese-4/Western/World/SolarTerms/Others(中国传统节日/中国四大传统节日/西方传统节日/世界节日|国际节日/二十四节气/其他类型)",
|
||||
"statutory": "是否法定节假日 boolean",
|
||||
"solarTerms": "是否是二十四节气 boolean",
|
||||
"desc": "节日描述 xxx"
|
||||
},
|
||||
{
|
||||
"name": "清明节",
|
||||
"fullName": "清明节",
|
||||
"englishName": "Tomb-Sweeping Day / The Pure Brightness Day / The Mourning Day",
|
||||
"alias": [
|
||||
"踏青节",
|
||||
"行清节",
|
||||
"三月节",
|
||||
"祭祖节"
|
||||
],
|
||||
"friendlyDate": "斗指乙,太阳黄经15°,公历4月5日前后",
|
||||
"date": "~4/4-4/6",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "中国四大传统节日之一/二十四节气之一",
|
||||
"type": "Chinese-4/SolarTerms",
|
||||
"statutory": true,
|
||||
"solarTerms": true,
|
||||
"desc": "清明节,又称踏青节、行清节、三月节、祭祖节等,节期在仲春与暮春之交。清明节源自上古时代的祖先信仰与春祭礼俗,是中华民族最隆重盛大的祭祖大节。清明节兼具自然与人文两大内涵,既是自然节气点,也是传统节日,扫墓祭祖与踏青郊游是清明节的两大礼俗主题,这两大传统礼俗主题在中国自古传承,至今不辍。"
|
||||
},
|
||||
{
|
||||
"name": "立秋",
|
||||
"fullName": "立秋",
|
||||
"englishName": "Beginning of Autumn",
|
||||
"alias": [],
|
||||
"friendlyDate": "公历8月7日-8月8日交节",
|
||||
"date": "~8/7-8/8",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "二十四节气之一",
|
||||
"type": "SolarTerms",
|
||||
"statutory": false,
|
||||
"solarTerms": true,
|
||||
"desc": "今日立秋,立秋是阳气渐收,阴气渐长,由阳盛逐渐转变为阴盛的转折。"
|
||||
},
|
||||
{
|
||||
"name": "冬至",
|
||||
"fullName": "冬至",
|
||||
"englishName": "Winter Solstice",
|
||||
"alias": [
|
||||
"日南至",
|
||||
"冬节",
|
||||
"日短至",
|
||||
"亚岁"
|
||||
],
|
||||
"friendlyDate": "公历12月21日-12月23日交节",
|
||||
"date": "~12/21-12/23",
|
||||
"calendar": "solar",
|
||||
"friendlyType": "二十四节气之一",
|
||||
"type": "SolarTerms",
|
||||
"statutory": false,
|
||||
"solarTerms": true,
|
||||
"desc": "冬至,又称日南至、冬节、亚岁等,兼具自然与人文两大内涵,既是二十四节气中一个重要的节气,也是中国民间的传统祭祖节日。冬至是四时八节之一,被视为冬季的大节日,在古代民间有“冬至大如年”的讲法。冬至习俗因地域不同而又存在着习俗内容或细节上的差异。在中国南方地区,有冬至祭祖、宴饮的习俗。在中国北方地区,每年冬至日有吃饺子的习俗。"
|
||||
}
|
||||
]
|
1
dist/holiday.solarTerms.simplify.min.json
vendored
Normal file
1
dist/holiday.solarTerms.simplify.min.json
vendored
Normal file
@ -0,0 +1 @@
|
||||
[{"name":"立春","fullName":"立春","englishName":"Beginning of Spring","alias":["岁首","岁节","改岁","立春节","正月节"],"friendlyDate":"公历2月3日-2月5日交节","date":"~2/3-2/5","calendar":"阳历/阴历 solar/lunar","friendlyType":"友好节日类型 多个用/分隔","type":"节日类型 多个用/分隔 Chinese/Chinese-4/Western/World/SolarTerms/Others(中国传统节日/中国四大传统节日/西方传统节日/世界节日|国际节日/二十四节气/其他类型)","statutory":"是否法定节假日 boolean","solarTerms":"是否是二十四节气 boolean","desc":"节日描述 xxx"},{"name":"清明节","fullName":"清明节","englishName":"Tomb-Sweeping Day / The Pure Brightness Day / The Mourning Day","alias":["踏青节","行清节","三月节","祭祖节"],"friendlyDate":"斗指乙,太阳黄经15°,公历4月5日前后","date":"~4/4-4/6","calendar":"solar","friendlyType":"中国四大传统节日之一/二十四节气之一","type":"Chinese-4/SolarTerms","statutory":true,"solarTerms":true,"desc":"清明节,又称踏青节、行清节、三月节、祭祖节等,节期在仲春与暮春之交。清明节源自上古时代的祖先信仰与春祭礼俗,是中华民族最隆重盛大的祭祖大节。清明节兼具自然与人文两大内涵,既是自然节气点,也是传统节日,扫墓祭祖与踏青郊游是清明节的两大礼俗主题,这两大传统礼俗主题在中国自古传承,至今不辍。"},{"name":"立秋","fullName":"立秋","englishName":"Beginning of Autumn","alias":[],"friendlyDate":"公历8月7日-8月8日交节","date":"~8/7-8/8","calendar":"solar","friendlyType":"二十四节气之一","type":"SolarTerms","statutory":false,"solarTerms":true,"desc":"今日立秋,立秋是阳气渐收,阴气渐长,由阳盛逐渐转变为阴盛的转折。"},{"name":"冬至","fullName":"冬至","englishName":"Winter Solstice","alias":["日南至","冬节","日短至","亚岁"],"friendlyDate":"公历12月21日-12月23日交节","date":"~12/21-12/23","calendar":"solar","friendlyType":"二十四节气之一","type":"SolarTerms","statutory":false,"solarTerms":true,"desc":"冬至,又称日南至、冬节、亚岁等,兼具自然与人文两大内涵,既是二十四节气中一个重要的节气,也是中国民间的传统祭祖节日。冬至是四时八节之一,被视为冬季的大节日,在古代民间有“冬至大如年”的讲法。冬至习俗因地域不同而又存在着习俗内容或细节上的差异。在中国南方地区,有冬至祭祖、宴饮的习俗。在中国北方地区,每年冬至日有吃饺子的习俗。"}]
|
2
html/assets/lib/axios.min.js
vendored
Normal file
2
html/assets/lib/axios.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
8
html/assets/lib/vue.global.min.js
vendored
Normal file
8
html/assets/lib/vue.global.min.js
vendored
Normal file
File diff suppressed because one or more lines are too long
1
html/data/holiday.min.json
Normal file
1
html/data/holiday.min.json
Normal file
File diff suppressed because one or more lines are too long
1
html/data/holiday.simplify.min.json
Normal file
1
html/data/holiday.simplify.min.json
Normal file
File diff suppressed because one or more lines are too long
199
html/index.html
Normal file
199
html/index.html
Normal file
@ -0,0 +1,199 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
|
||||
<head>
|
||||
<meta charset="UTF-8">
|
||||
<meta http-equiv="X-UA-Compatible" content="IE=edge">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0">
|
||||
<title>节假日信息预览</title>
|
||||
<style>
|
||||
* {
|
||||
margin: 0;
|
||||
padding: 0;
|
||||
}
|
||||
|
||||
html,
|
||||
body {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
#app {
|
||||
height: 100%;
|
||||
}
|
||||
|
||||
td {
|
||||
border: 1px solid black;
|
||||
}
|
||||
</style>
|
||||
<!--
|
||||
Vue 3
|
||||
Docs: https://cn.vuejs.org/guide/quick-start.html
|
||||
Download: https://unpkg.com/vue@3/dist/vue.global.js
|
||||
-->
|
||||
<script src="./assets/lib/vue.global.min.js"></script>
|
||||
<!--
|
||||
axios
|
||||
Docs: http://www.axios-js.com/docs/
|
||||
Download: https://unpkg.com/axios@1.3.0/dist/axios.min.js
|
||||
-->
|
||||
<script src="./assets/lib/axios.min.js"></script>
|
||||
</head>
|
||||
|
||||
<body>
|
||||
<div id="app">
|
||||
<div>
|
||||
<h1>节日列表</h1>
|
||||
<table style="margin: 10px auto;">
|
||||
<tr v-for="festival in dataList">
|
||||
<td>{{ festival.name }}</td>
|
||||
<td>{{ festival.date }}</td>
|
||||
<td>{{ festival.englishName.split('/')[0] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
<div id="festival-compare">
|
||||
<h1>节日信息对比</h1>
|
||||
<input v-model="compare" />
|
||||
<table style="width: 100vw;">
|
||||
<template v-for="key in festivalKeys">
|
||||
<tr v-if="!['poetry','baike'].includes(key)">
|
||||
<td>{{ key }}</td>
|
||||
<td v-for="f in compareKeys">{{ dataDict[f][key] }}</td>
|
||||
</tr>
|
||||
</template>
|
||||
</table>
|
||||
<style>
|
||||
table {
|
||||
table-layout: fixed;
|
||||
width: 100%;
|
||||
}
|
||||
|
||||
table,
|
||||
th,
|
||||
td {
|
||||
border: 1px solid #999;
|
||||
padding: 5px;
|
||||
text-align: left;
|
||||
}
|
||||
|
||||
td.desc {
|
||||
white-space: nowrap;
|
||||
overflow: hidden;
|
||||
text-overflow: ellipsis;
|
||||
}
|
||||
</style>
|
||||
</div>
|
||||
<div id="festival-list">
|
||||
<h1>节日详细信息</h1>
|
||||
<div v-for="festival in dataList">
|
||||
<!-- {{ festival }}<hr style="margin: 20px 0;"> -->
|
||||
<h2>{{ festival.date }} | {{ festival.fullName }} | {{ festival.englishName }}</h2>
|
||||
<table>
|
||||
<tr v-for="key in Object.keys(festival)">
|
||||
<td>{{ key }}</td>
|
||||
<td>{{ festival[key] }}</td>
|
||||
</tr>
|
||||
</table>
|
||||
</div>
|
||||
</div>
|
||||
<hr>
|
||||
<p style="white-space: pre-wrap;">{{ JSON.stringify(dataList, null, 4) }}</p>
|
||||
</div>
|
||||
<script type="module">
|
||||
window.instance = Vue.createApp({
|
||||
data() {
|
||||
return {
|
||||
dataList: [],
|
||||
compare: '寒食节 立秋'
|
||||
}
|
||||
},
|
||||
computed: {
|
||||
festivalKeys() {
|
||||
return Object.keys(this.dataList[0] || {})
|
||||
},
|
||||
compareKeys() {
|
||||
return this.compare.split(" ")
|
||||
},
|
||||
dataDict() {
|
||||
let dict = {}
|
||||
this.dataList.forEach(i => dict[i.name] = i)
|
||||
return dict
|
||||
},
|
||||
},
|
||||
mounted() {
|
||||
// 网页加载完成
|
||||
// this.$refs.userInput.select()
|
||||
let that = this
|
||||
axios.get('data/holiday.min.json')
|
||||
// axios.get('data/holiday.simplify.min.json')
|
||||
.then(function (response) {
|
||||
// handle success
|
||||
console.log(response)
|
||||
that.dataList = response.data
|
||||
})
|
||||
.catch(function (error) {
|
||||
// handle error
|
||||
console.log(error)
|
||||
})
|
||||
.then(function () {
|
||||
// always executed
|
||||
})
|
||||
},
|
||||
methods: {
|
||||
catchError(func) {
|
||||
try {
|
||||
return func()
|
||||
} catch (err) {
|
||||
// console.log(err)
|
||||
// return '[ERROR] 该字符串暂时无法解码' + '\n' + err.message
|
||||
return
|
||||
}
|
||||
},
|
||||
scrollTo(id) {
|
||||
let dom = document.getElementById(id)
|
||||
if (dom) {
|
||||
let container = document.getElementById('content')
|
||||
// console.log("container:", container, dom.offsetTop)
|
||||
container.scrollTo({
|
||||
top: dom.offsetTop - container.offsetTop
|
||||
})
|
||||
} else {
|
||||
console.log("找不到元素,id:", id)
|
||||
}
|
||||
},
|
||||
copyString(stringToCopy, i) {
|
||||
// 复制
|
||||
// refer: https://blog.csdn.net/qq_44980680/article/details/126453761
|
||||
var input = document.createElement("textarea") // 创建input对象
|
||||
input.value = stringToCopy; // 设置复制内容
|
||||
document.body.appendChild(input) // 添加临时实例
|
||||
input.select() // 选择实例内容
|
||||
document.execCommand("Copy") // 执行复制
|
||||
document.body.removeChild(input) // 删除临时实例
|
||||
|
||||
// 显示复制成功的标志
|
||||
// copyCount.value++
|
||||
i._copyCount++
|
||||
let promotEl = this.$refs[i._promotRef][0]
|
||||
if (promotEl) {
|
||||
promotEl.textContent = "复制成功"
|
||||
let oldCopyCount = i._copyCount // copyCount.value
|
||||
let refName = i._resultTextboxRef
|
||||
this.$refs[refName][0].style.backgroundColor = '#fbfbde'
|
||||
setTimeout(() => {
|
||||
if (oldCopyCount == i._copyCount) {
|
||||
promotEl.textContent = ""
|
||||
this.$refs[refName][0].style.backgroundColor = ''
|
||||
}
|
||||
// 如果两数不等,说明中间点击复制了多次,这里就不用处理了,等最后一个timeout处理
|
||||
}, 1000)
|
||||
// document.getElementById(i.id).getElementsByClassName('result-textbox').style.backgroundColor = '#fbfbde'
|
||||
}
|
||||
},
|
||||
|
||||
}
|
||||
}).mount('#app')
|
||||
</script>
|
||||
</body>
|
||||
|
||||
</html>
|
Loading…
Reference in New Issue
Block a user