Skip to content

Commit

Permalink
Init. 初始化迁移
Browse files Browse the repository at this point in the history
  • Loading branch information
RavelloH committed Jan 19, 2025
0 parents commit 6cf4c90
Show file tree
Hide file tree
Showing 813 changed files with 16,966 additions and 0 deletions.
1 change: 1 addition & 0 deletions .gitattributes
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
*.html linguist-detectable=false
42 changes: 42 additions & 0 deletions .github/workflows/main.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,42 @@
name: update
on:
schedule:
- cron: '30 19 * * *'
watch:
types: [started]
workflow_dispatch:

permissions:
contents: write
pages: write
id-token: write

jobs:
build:
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v3
- name: 'Git set'
run: |
git init
git pull
- name: 'Setup nodejs'
uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: 'Install requirements'
run: |
npm install
- name: 'Working'
run: node update.js
- name: Commit files
run: |
git config --local user.email "[email protected]"
git config --local user.name "Ravello-H"
git add -A
git commit -m "`date '+%Y-%m-%d %H:%M:%S'`" || exit
git status
git push
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
52 changes: 52 additions & 0 deletions .github/workflows/static.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,52 @@
# Simple workflow for deploying static content to GitHub Pages
name: Deploy static content to Pages

on:
# Runs on pushes targeting the default branch
push:
branches: ["main"]

# Allows you to run this workflow manually from the Actions tab
workflow_dispatch:

# Sets permissions of the GITHUB_TOKEN to allow deployment to GitHub Pages
permissions:
contents: read
pages: write
id-token: write

# Allow only one concurrent deployment, skipping runs queued between the run in-progress and latest queued.
# However, do NOT cancel in-progress runs as we want to allow these production deployments to complete.
concurrency:
group: "pages"
cancel-in-progress: false

jobs:
# Single deploy job since we're just deploying
deploy:
environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}
runs-on: ubuntu-latest
steps:
- name: Checkout
uses: actions/checkout@v4
- name: 'Setup nodejs'
uses: actions/setup-node@v3
with:
node-version: 'latest'
- name: 'Install requirements'
run: |
npm install
- name: Start to index search
run: "node indexSearch.js"
- name: Setup Pages
uses: actions/configure-pages@v5
- name: Upload artifact
uses: actions/upload-pages-artifact@v3
with:
# Upload entire repository
path: '.'
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@v4
131 changes: 131 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,131 @@
# Logs
logs
*.log
search
npm-debug.log*
yarn-debug.log*
yarn-error.log*
lerna-debug.log*
.pnpm-debug.log*

# Diagnostic reports (https://nodejs.org/api/report.html)
report.[0-9]*.[0-9]*.[0-9]*.[0-9]*.json

# Runtime data
pids
*.pid
*.seed
*.pid.lock

# Directory for instrumented libs generated by jscoverage/JSCover
lib-cov

# Coverage directory used by tools like istanbul
coverage
*.lcov

# nyc test coverage
.nyc_output

# Grunt intermediate storage (https://gruntjs.com/creating-plugins#storing-task-files)
.grunt

# Bower dependency directory (https://bower.io/)
bower_components

# node-waf configuration
.lock-wscript

# Compiled binary addons (https://nodejs.org/api/addons.html)
build/Release

# Dependency directories
node_modules/
jspm_packages/

# Snowpack dependency directory (https://snowpack.dev/)
web_modules/

# TypeScript cache
*.tsbuildinfo

# Optional npm cache directory
.npm

# Optional eslint cache
.eslintcache

# Optional stylelint cache
.stylelintcache

# Microbundle cache
.rpt2_cache/
.rts2_cache_cjs/
.rts2_cache_es/
.rts2_cache_umd/

# Optional REPL history
.node_repl_history

# Output of 'npm pack'
*.tgz

# Yarn Integrity file
.yarn-integrity

# dotenv environment variable files
.env
.env.development.local
.env.test.local
.env.production.local
.env.local

# parcel-bundler cache (https://parceljs.org/)
.cache
.parcel-cache

# Next.js build output
.next
out

# Nuxt.js build / generate output
.nuxt
dist

# Gatsby files
.cache/
# Comment in the public line in if your project uses Gatsby and not Next.js
# https://nextjs.org/blog/next-9-1#public-directory-support
# public

# vuepress build output
.vuepress/dist

# vuepress v2.x temp and cache directory
.temp
.cache

# Docusaurus cache and generated files
.docusaurus

# Serverless directories
.serverless/

# FuseBox cache
.fusebox/

# DynamoDB Local files
.dynamodb/

# TernJS port file
.tern-port

# Stores VSCode versions used for testing VSCode extensions
.vscode-test

# yarn v2
.yarn/cache
.yarn/unplugged
.yarn/build-state.yml
.yarn/install-state.gz
.pnp.*
21 changes: 21 additions & 0 deletions LICENSE
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
MIT License

Copyright (c) 2025 RavelloH

Permission is hereby granted, free of charge, to any person obtaining a copy
of this software and associated documentation files (the "Software"), to deal
in the Software without restriction, including without limitation the rights
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
copies of the Software, and to permit persons to whom the Software is
furnished to do so, subject to the following conditions:

The above copyright notice and this permission notice shall be included in all
copies or substantial portions of the Software.

THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
SOFTWARE.
1 change: 1 addition & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
# news-archive
20 changes: 20 additions & 0 deletions data/2022/06/04.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"date": "2022/06/04",
"content": [
"湖南气象台:至5日,湖南自北向南有暴雨,局地大暴雨到特大暴雨,4日最强;2日,凤凰古城局部被淹:沱江水面几乎接近桥顶。怀化麻阳苗族自治县一地段发生大面积滑坡,已致2死4失联;",
"北京:推动餐饮企业恢复发展,最高给予审定实际投资额50%的资金支持。国有房租减免即申即享;拼多多:针对上海用户派发30亿元618消费券,每人最高可领510元;南京:购买新能源汽车最高补贴12000元;",
"工信部:不得简单要求企业停工停产,或限制产能人员到岗率;央行:将货车司机贷款、个人住房、消费贷款等纳入延期范围;",
"四川芦山6.1级地震:已致4死41伤,其中1人危重,雅安全市13081人受灾,房屋严重损坏135间,救援仍在继续;",
"2日中午,广东东莞东城街道发生一起持刀伤人案致6人受伤,25岁嫌疑人被当场抓获;广东佛山:限购区内满5年的商品房在买卖时无需进行购房资格查验;",
"一箭九星!中国成功发射吉利星座01组卫星,该卫星主要用于智能联网汽车未来出行服务、车机/手机卫星交互等;",
"广西东兴:走私、偷越国(边)境造成疫情扩散,最高判处死刑;",
"台湾2日新增本土确诊76967例,新增死亡144例,媒体斥官员缺医疗常识;",
"拜登:俄罗斯可以继续出口石油,但必须远低于市场价。俄方:不会亏本出售;",
"泽连斯基:俄已控制乌约1/5领土,远超荷兰、比利时卢森堡面积总和;俄媒:波兰拟7月1日起停止向乌难民发放生活补贴;",
"当地1日,美国俄克拉何马州一医院大楼内爆发枪击案,警方:已造成5人死亡,包括一名枪手;",
"吉尔吉斯斯坦总统:俄方不再反对,商讨20多年的中吉乌铁路明年开工;",
"美商务部长透露拜登政府正积极考虑\"拉黑\"更多中企;美防长称将向台湾地区扩大武器供应,外交部:坚决反对;",
"美媒:德普指控前妻希尔德诽谤案,胜诉。前妻被判赔偿1500万美元,纠缠了6年的好莱坞大戏,终于落下帷幕;",
"俄方:亚速钢厂投降者中有欧美将领基本属实,已控制北顿涅茨克85%;俄国防部:大量在乌外国雇佣兵被击毙,规模从约6600人降至约3500人;"
]
}
20 changes: 20 additions & 0 deletions data/2022/06/05.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"date": "2022/06/05",
"content": [
"4日上午,贵广线榕江站D2809次列车撞上泥石流发生脱线事故,造成1名司机遇难及8人受伤,事发地曾发暴雨红色预警,现场泥石流淹没轨道排水沟,专家:殉职司机5秒内反应紧急制动,避免列车坠落,已属相当及时;",
"神舟十四号瞄准今日10时44分发射,航天员为陈冬、刘洋、蔡旭哲,将在轨工作生活6个月, 任务主要目的:中国空间站将建成国家太空实验室;",
"3日下午,福建福州一载有36人的龙舟倾覆,有3人失踪,报警人称事发时水闸开闸致水流变急。街道办:仍在搜救;",
"河南信阳又一老人因蜱虫病病逝:系去世感染者亲家,曾在去世感染者灵堂门口呆了10分钟,此前已有四人皆因此病离世,家属:病情发展快,或被血液传染;",
"四川统计局建议:试行企事业单位2.5天弹性作息,引导干部职工带头旅游消费,助推住宿餐饮业恢复;",
"江西九江:暂时取消购房行政性限制措施,二套房公积金贷款首付比例三成;新疆推出育儿假:子女零至三周岁,父母每年各享不少于十天;",
"网传\"完美世界\"开发公司下属企业开启付费上班模式:招人做游戏,面向人群为该公司教育版块在读学生和已毕业学生,申请费用为17800元/人;",
"甘肃定西:外省返回者,一律自费集中隔离3天。有网友称大概要花1千元;",
"台湾4日新增本土确诊68118例,新增死亡152例再刷新高;",
"马斯克:不应该有工人和领导两级制度,每个人都是工人。此前受其裁员消息影响,特斯拉股价收超跌9%,市值蒸发约672亿美元(约4400亿人民币);",
"美媒:当地3日下午,美军一架\"超级大黄蜂\"战斗机在加利福尼亚州莫哈韦沙漠坠毁,飞行员丧生,事故原因调查中;",
"日本2021年出生人口约81万创新低,女性总和生育率1.3,连续6年减少,疫情加剧\"恐婚恐育\"心理;",
"日媒:日本最早将从今年夏天开始派遣现职防卫省官员\"常驻台湾\",以强化收集情报的能力;日媒:岸田文雄或成为首位出席北约峰会的日本首相;",
"白俄总统卢卡申科:泽连斯基和乌军方爆发严重冲突对抗,其想用领土与波兰做交易,乌军方或准备反抗;",
"美国猴痘病毒基因组惊现第二分支:或已在美境内\"隐秘传播\"多时,至少两波疫情正同时发生;"
]
}
20 changes: 20 additions & 0 deletions data/2022/06/06.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"date": "2022/06/06",
"content": [
"5日早上,神舟十四号载人飞船成功发射,飞船与空间站已成功对接,3名航天员顺利进驻天和核心舱;",
"教育部:返乡高校学生确需集中隔离的,应免除费用;卫健委提出\"九不准\":坚决防止简单化、一刀切和层层加码等现象;",
"江西发布预警:至6日20时,赣州中南部可能发生洪水及山洪灾害;",
"4日凌晨,《一路向前》剧组2人在四川内江水下拍戏时突然不见,救援人员:已遇难,目前已暂停拍摄;",
"网传深圳国企书记夫人涉车位纠纷:因车位争吵称家有50台宾利,街道:开发商赠车位引纠纷,曾多次协调,警方已介入。深圳国资委:正了解核实;",
"台湾5日新增本土确诊62080例,新增死亡124例。台医生揭:台当局急推\"与病毒共存\",为选举吃孩子血馒头;外媒:斯洛伐克国会副议长劳伦契克率访团抵台,展开6天\"访问\"。岛内网友:\"讨债鬼来了\"",
"马斯克推迟特斯拉AI日,称或将于9月30日公布Optimus人形机器人原型机。曾称机器人可以执行跑杂货店、捡拾家庭物品和其他日常指令;",
"印度北方邦一化工厂发生火灾,屋顶被炸飞,已致12人死亡,起火原因是一个锅炉爆炸;",
"澳大利亚军用侦察机闯入南海,炒作中国歼16抛洒箔条进行干扰拦截,称拦截导致了安全威胁,外国网友:南海离澳有多远?;",
"波兰副外长:欧盟已在起草第七轮对俄制裁,应当掐断天然气出口;徳媒:对俄天然气制裁或使德国每年多花50亿欧元;",
"世卫组织:全球27个非猴痘流行国家和地区已发现780例猴痘病例。已出现人际传播;",
"当地4日深夜,孟加拉国南部地区一放着约4千个集装箱的仓库发生火灾并引发爆炸,已造成至少49死数百伤,初步怀疑是装有化学品的容器发生爆炸;",
"美媒:当地4日深夜,美国费城市中心发生枪击案,致3死11伤,多名嫌疑人向人群开枪;",
"俄媒:普京称如美国对乌提供远程导弹,俄将打击那些尚未打击过的目标;俄方:已定下新任务,特别军事行动将加速;",
"乌方:当地5日凌晨,俄罗斯向基辅发射了导弹。俄国防部:俄军对基辅进行了空袭,摧毁了东欧国家提供给乌的T-72坦克和其他存放在修理厂的装甲车。此前,俄曾警告,任何援乌武器都将成为打击目标;"
]
}
20 changes: 20 additions & 0 deletions data/2022/06/07.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"date": "2022/06/07",
"content": [
"教育部:不准强迫诱导毕业生签订就业协议和劳动合同,各地高校严格落实四不准纪律要求;",
"国务院:任何企业、组织和个人不得向未成年人提供文身服务,违者将依法追究其法律责任;",
"北京:推动职校毕业生在就业、落户方面与普通学校毕业生享有平等机会,将高职毕业生纳入公务员招考范围;",
"6日上午,哈尔滨巴彦一男子因感情纠纷在一步行街杀害3人,包括1名男孩,已被警方抓获;",
"广州放宽限购:外地人购房允许断缴或补缴社保不超过3个月,全日制大专生可落户花都、从化、增城;",
"深振业董秘回应车位纠纷事件:宾利车主并非国企书记家属,可能是女友。宾利女车主回应:本意从俱乐部调50辆车。据深振业2021年报显示,该高管税前年薪为37.5万元。媒体评:已成反腐线索;",
"台媒:台湾6日新增53023例,新增死亡151例,确诊数字有所下降;",
"马斯克:推特在向其提供垃圾邮件和虚假账户数量的过程中\"严重违反义务\",或将放弃收购计划。推特一度跌逾5%;推特:已与马斯克合作和分享信息,计划按照商定价格完成交易;",
"当地5日,尼日利亚西南部翁多州一教堂遭枪击逾50死,外媒:或为土匪团伙报复袭击;",
"俄外长原定6日至7日访问塞尔维亚,但因保加利亚、黑山和北马其顿对其关闭领空未能成行,俄方回应:对俄关闭领空是敌对行为;当地6日,英国首相与泽连斯基通电话,正提供远程多管火箭发射系统;",
"俄媒:当地6日,俄罗斯库尔斯克州一边境村庄再遭乌军炮击,一座桥梁和一座制糖厂损毁,伤亡情况正在确认;俄媒:俄军又一名少将在顿巴斯前线阵亡,是第4位俄乌冲突中丧生的俄军将领;",
"美国一生物公司宣布:完成全球首例自体细胞3D打印耳朵移植手术,下个目标将是3D打印器官;",
"韩媒:韩美6日凌晨联合发射8枚导弹,回应朝鲜发射8枚导弹。中方:希望有关各方保持冷静克制;",
"英国首相约翰逊面临不信任投票,投票将于当地6日下午6点至8点进行,唐宁街十号:这是结束猜测的机会。如简单多数投票反对约翰逊,他将会被赶下台;",
"6日上午,美空军一架RC-135U电子侦察机经过巴士海峡,沿着广东和海南岛近海进行抵近侦察,目标或是解放军雷达。仅今年5月,美军就累计41次前往南海对中国进行抵近侦察;"
]
}
20 changes: 20 additions & 0 deletions data/2022/06/08.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
{
"date": "2022/06/08",
"content": [
"高考数学题疑似泄露:有人在群里发布4张试卷照片。教育部回应:已接到相关举报并报案;",
"\"高考甲卷难\"上热搜,专家:命题难易度不影响录取与公平;四部门印发通知:引导2022届毕业生到城乡社区就业工作;",
"国安部:公民举报危害国家安全行为,最高可获10万元以上奖励;九部门印发通知:严查医务人员利用职务之便直播带货;",
"黑龙江鹤岗一林场发生重大刑案,警方悬赏30万抓捕嫌疑人;",
"上海:世界排名前50院校留学回国,在沪全职工作可直接落户;",
"安徽卫视27岁女主持人住院期间疑因药物使用不当离世,尸检显示:是使用药物莫西沙星发生心律失常致心源性猝死,家属:用药前没皮试,安徽医科大学第一附属医院:正在调查;",
"台湾7日新增本土确诊82973例,新增死亡124例;",
"韩媒:继发射了8枚导弹后,韩美20架战机携弹7日进行了\"空中力量演示\"行动;韩媒:韩国新总统府或改名为\"国民之家\"",
"外媒:美国将没收俄罗斯富豪阿布2架私人飞机,总价值超4亿美元;俄媒:俄方再将美财长、美能源长等61名美国公民加入永久禁止入境名单;",
"欧盟:到2024年秋季,USB-C接口将成为所有手机、平板电脑和相机的通用充电端口。意味着苹果和安卓手机可共用数据线了;",
"俄媒:拜登宣布美国进入能源紧急状态,称原因归咎于俄罗斯;白宫:美国将豁免柬埔寨、马来西亚、泰国和越南四国光伏组件24个月的进口关税;",
"印媒:当地6日晚,印度成功试射\"烈火-4\"核导弹,有效射程3500至4000公里,标志着印度军事实力的显著提升;",
"英国首相约翰逊挺过了不信任投票,211票支持,148票反对,得以继续担任英国首相;",
"俄防长:俄军已完全控制北顿涅茨克的居民区。泽连斯基:乌军仍在该地区坚守,但数量上处于劣势。一些国家对乌施压,要求向俄让步,以结束冲突;日本首相:若俄继续行动,日方将继续制裁;",
"美媒:美洲峰会召开之际,新一波移民\"大篷车队\"涌向美墨边境,蔓延51公里,预计人数将达1.5万人,或为史上最大规模;"
]
}
Loading

0 comments on commit 6cf4c90

Please sign in to comment.