Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
263 commits
Select commit Hold shift + click to select a range
01e408b
feat: 网络请求改为 nuxt 原生 useFetch
HouLiXieBuRou Oct 23, 2024
32d1f21
feat: 配置文件更新
HouLiXieBuRou Oct 23, 2024
98752b0
chore: 使无子元素的标签自闭合
HouLiXieBuRou Oct 23, 2024
c0168f8
chore: package.json 、package-lock.json 文件更新
HouLiXieBuRou Oct 23, 2024
af856e8
fix: 修复了该页面缩放不正确问题
HouLiXieBuRou Oct 24, 2024
2bbef92
fix: 回到页首 button 出现时机修复
HouLiXieBuRou Oct 25, 2024
5dab68d
feat: download 页面服务端渲染规则更新,现在下载数据五分钟更新一次
HouLiXieBuRou Oct 28, 2024
8386ae0
fix: 高亮导航效果修复,防止对已有导航进行的修改不全面导致导航异常
HouLiXieBuRou Oct 29, 2024
c7c48d5
feat: 下载栏以及内容按钮样式更新,更简洁高效
HouLiXieBuRou Oct 29, 2024
17e7697
feat: 服务端渲染配置更新
HouLiXieBuRou Oct 29, 2024
9c66074
chore: css 样式合并,所有的子页面共有样式抽象到上层路由 app.vue 里添加
HouLiXieBuRou Oct 29, 2024
7a0a5fc
test
HouLiXieBuRou Nov 6, 2024
b5d8bd9
fix: 静态编译判断 useFetch 的 status 会导致错误,删除该判断
HouLiXieBuRou Nov 12, 2024
0d20f1e
fix: 修复从别处路由至 /download 时页面跳转需等待网络请求完成,并更新了 loading 样式
HouLiXieBuRou Nov 13, 2024
2c0e318
feat: 新闻按照语言分类
HouLiXieBuRou Nov 14, 2024
6bdf24d
Temporary storage work
HouLiXieBuRou Nov 27, 2024
49d5971
fix: 修复 barleft 页面未国际化字段;修复菜单栏自动缩放问题
HouLiXieBuRou Dec 20, 2024
77f8633
feat: 在 herder 栏目添加手动切换语言 button
HouLiXieBuRou Dec 23, 2024
e2d758a
feat: 提取 layouts; 给部分超链接补充上了跳转高亮动画;new list 页面错误修复
HouLiXieBuRou Dec 31, 2024
bc9f93f
feat: 新闻内容的累计更新
HouLiXieBuRou Dec 31, 2024
ec5346d
feat: 为多语言支持所需的工具函数添加了注释
HouLiXieBuRou Dec 31, 2024
86a4922
feat: left bar 样式调整,像老版对齐,缩短字 left 边距
HouLiXieBuRou Jan 3, 2025
68b6f17
feat: mascot 页面布局更新
HouLiXieBuRou Feb 6, 2025
30f574c
feat: tailwindcss 升级到4.0.9
HouLiXieBuRou Feb 27, 2025
0e35674
feat: 同步 website-2023 对下载页面的修改,并格式化了 locals 目录下的所有 json 文件
HouLiXieBuRou Mar 11, 2025
c163b42
fix: 修复静态构建时的内存泄露
HouLiXieBuRou Mar 26, 2025
21f95e4
fix: 修复 download 页面静态编译错误
HouLiXieBuRou Mar 27, 2025
9d3e712
fix(footer): fix footer width on narrow viewports
SkyBird233 May 30, 2025
d11e2db
fix: remove border radius from summer background
SkyBird233 May 30, 2025
c4a38c1
fix: remove unnecessary alignment class from CategorySecond component
SkyBird233 May 30, 2025
406b506
fix: warnings about prop types in BarHeader
SkyBird233 May 30, 2025
e5c8ab2
fix: move i18n.config.ts to resolve a warning
SkyBird233 May 30, 2025
af8d3b2
fix: correct variable reference for contact link in DownloadDetailsAp…
SkyBird233 May 30, 2025
3db1eeb
fix: add custom element configuration for ms-store-badge in nuxt.conf…
SkyBird233 May 30, 2025
e4e2a22
fix: override pinceau version to solve sourcemap warnings
SkyBird233 May 30, 2025
f5953df
chore: disable dark mode until it’s implemented
SkyBird233 Jun 21, 2025
dcf4a5d
fix: hover:no-underline not working after tailwindcss 4
SkyBird233 Jun 21, 2025
a497a91
fix: Element Plus theme styles not applied to generated components
SkyBird233 Jun 21, 2025
3f28125
chore: update @nuxt/content to v3.6.1 and remove docus for now
SkyBird233 Jun 22, 2025
38653a0
feat: refactor NewsCategoryList to use queryCollection directly
SkyBird233 Jun 25, 2025
25b41cf
chore: adjust content structure
SkyBird233 Jun 25, 2025
2a89f51
refactor: use simpler language code format
SkyBird233 Jun 26, 2025
ff035b8
chore: update nuxt and nuxtjs/i18n
SkyBird233 Jun 26, 2025
63ae9c4
fix: update news list and news detail page
SkyBird233 Jun 26, 2025
a7e022c
feat: add heti for article styling
SkyBird233 Jun 27, 2025
ed1d2fa
feat: update CategorySecond component styling and enhance layout in n…
SkyBird233 Jul 2, 2025
ad9392c
refactor: simplify ESLint configuration and integrate with Nuxt
SkyBird233 Jul 2, 2025
692ef93
chore: run eslint --fix
SkyBird233 Jul 2, 2025
c85b315
fix: errors and warnings reported by eslint
SkyBird233 Jul 2, 2025
b0411af
chore: run prettier --write
SkyBird233 Jul 2, 2025
ec7c406
feat: update gallery page to use async data fetching
SkyBird233 Jul 2, 2025
b23eb18
chore: remove old fileServe folder
SkyBird233 Jul 2, 2025
d601a91
fix: remove rounded corner of main1.svg
SkyBird233 Jul 2, 2025
937c89c
fix: bring icons back
SkyBird233 Jul 3, 2025
61b42b6
fix: adjust icon alignment in CategorySecond component
SkyBird233 Jul 3, 2025
5e0b3e2
refactor: optimize reactivity in BarHeader and BarLeft components
SkyBird233 Jul 3, 2025
f95caf0
fix: update axios to version 1.10.0 by npm audit fix
SkyBird233 Jul 3, 2025
7f50382
refactor: remove unused yaml import and requestToYaml function
SkyBird233 Jul 3, 2025
56783fe
refactor: remove unnecessary whitespace at the beginning of the news …
SkyBird233 Jul 3, 2025
5651f5b
feat: add responsive styling for images and update proxy configuratio…
SkyBird233 Jul 3, 2025
1198544
fix: update nuxt-monaco-editor to 1.3.2
SkyBird233 Jul 4, 2025
0c501e0
fix: correct data handling in paste detail component and update icon …
SkyBird233 Jul 4, 2025
7522f92
fix: update vite proxy configuration for pasteApi and pasteContent
SkyBird233 Jul 4, 2025
94ee035
fix: update links to use correct locale paths
SkyBird233 Jul 4, 2025
1c1b552
chore: bump @pinia/nuxt
SkyBird233 Jul 4, 2025
b7af7da
chore: update pangu to 7.0.0
SkyBird233 Jul 4, 2025
bd6b3fe
chore: update dependencies for @nuxt/content and better-sqlite3
SkyBird233 Jul 4, 2025
aef9aea
fix: update DownloadDetailsMain and DownloadWslDetails templates with…
SkyBird233 Jul 4, 2025
f485e50
fix: remove v-pangu directive and add spaceWord utility for better pe…
SkyBird233 Jul 4, 2025
f92ea7a
feat: update DownloadWslDetails component with source selection and d…
SkyBird233 Jul 5, 2025
c246f47
fix: various fixes across main pages
SkyBird233 Jul 5, 2025
e641dc8
feat: add ProsePre component and refactor CodeHighlight and CopyIcon …
SkyBird233 Jul 5, 2025
0cfd867
chore: bump @nuxt/content and better-sqlite3
SkyBird233 Jul 5, 2025
ab66b7f
chore: add @nuxt/seo
SkyBird233 Jul 5, 2025
49b68c9
feat: simple seo setup
SkyBird233 Jul 5, 2025
a0d3620
chore: disable ogImage and schemaOrg
SkyBird233 Jul 6, 2025
1088425
fix: regular page titles and liblol's translation keys
SkyBird233 Jul 6, 2025
b9976b9
fix: update titles for other pages
SkyBird233 Jul 6, 2025
1be8c38
feat: internationalize SEO and head management
SkyBird233 Jul 6, 2025
13acf2b
chore: run prettier
SkyBird233 Jul 6, 2025
82cb4b8
feat: dynamically generate language switching list and language switc…
SkyBird233 Jul 6, 2025
9f31eb7
chore: move development packages to devDependencies
SkyBird233 Jul 6, 2025
cf1e0d8
chore: run npm update
SkyBird233 Jul 6, 2025
7b169e9
fix: add a workaround for form-data
SkyBird233 Jul 6, 2025
fdc23d0
fix: add site url configuration and update comments in nuxt.config.ts
SkyBird233 Jul 6, 2025
f42b610
chore: bump deps
SkyBird233 Jul 6, 2025
c3acbbe
fix: remove unused styles in default layout to restore missing styles in
SkyBird233 Jul 9, 2025
af4209a
feat: lazy load Mocano Editor
SkyBird233 Jul 9, 2025
f6e98b8
chore: set og:site_name
SkyBird233 Jul 9, 2025
39cd254
refactor: simplify seasonal theming
SkyBird233 Jul 10, 2025
f491793
fix: download button's font size in SSG
SkyBird233 Jul 12, 2025
00cbcf4
fix: fix the app upper component and how to use it in l10n
HouLiXieBuRou Jul 22, 2025
ae45ca5
chore: modify the behavior of the formatting program and rerun it npx…
HouLiXieBuRou Jul 23, 2025
b7948e7
fix: 所有单个 html 标签下应用了多个变量的 vue 模板语法,为所有变量添加 span 包裹
HouLiXieBuRou Jul 24, 2025
4b6f41b
fix: some spacing issue
SkyBird233 Jul 24, 2025
82d2b09
fix: remove redundant whitespaces in locales/zh-cn
SkyBird233 Jul 24, 2025
523a2fb
feat: override heti font stack to fix Chinese quote width
SkyBird233 Jul 24, 2025
6db05f4
fix: 修复路由 /aosc-os/relnote/asahi 英文下的界面
HouLiXieBuRou Jul 28, 2025
4f76b4c
chore: refactor category lists
SkyBird233 Jul 26, 2025
e56923e
chore: add AOSCC content
SkyBird233 Jul 26, 2025
f4d086f
feat: add AOSCC pages
SkyBird233 Jul 26, 2025
742b952
feat: update AOSCC list in events page
SkyBird233 Jul 26, 2025
0472ea4
fix: links in AOSCC content
SkyBird233 Jul 26, 2025
6420db1
chore: add crowdsourcing content
SkyBird233 Jul 27, 2025
43f9fd8
feat: add crowdsourcing pages
SkyBird233 Jul 27, 2025
66e88ec
chore: update static resources
SkyBird233 Jul 27, 2025
6bca367
fix: update locale files for sponsors page
SkyBird233 Jul 27, 2025
a2de30f
fix: update sponsors page
SkyBird233 Jul 27, 2025
27f52b4
chore: update news
SkyBird233 Jul 27, 2025
f2ac6bd
fix: news categories
SkyBird233 Jul 27, 2025
db9f5f3
Merge branch 'website-nuxt/main' into website-nuxt
SkyBird233 Jul 31, 2025
4a96995
chore: update README files from the old nuxt branch
SkyBird233 Jul 31, 2025
f909929
feat: update README files
SkyBird233 Jul 31, 2025
5a80fbd
chore: add a build script for Cloudflare pages
SkyBird233 Aug 1, 2025
5cc793d
fix: try to fix build-cf.sh for nuxt
SkyBird233 Aug 1, 2025
2fa9def
fix: try to fix build-cf.sh for nuxt
SkyBird233 Aug 1, 2025
8ffc054
fix: 修复新闻页面里 h2 h3 标签被错误的识别为链接
HouLiXieBuRou Jul 31, 2025
fb018a4
Revert "fix: 修复新闻页面里 h2 h3 标签被错误的识别为链接"
SkyBird233 Jul 31, 2025
dfcae3f
chore: remove sticky headings for news pages for anchor links
SkyBird233 Jul 31, 2025
83887a4
fix: prevent h2 from showing underline on hovering
SkyBird233 Jul 31, 2025
59c0ff2
feat: 新闻展示页去除各级标题被选中时的下划线,并且首标题现在也会生成链接
HouLiXieBuRou Aug 1, 2025
7ccbb48
feat: show paragraph mark when hovering on h2 titles with link
SkyBird233 Aug 1, 2025
ebfbb72
fix: link color of markdown content
SkyBird233 Aug 2, 2025
3cee84a
feat: add noindex metadata to paste detail page
SkyBird233 Aug 5, 2025
2c130a6
feat: infer content path from route path in CommonContent
SkyBird233 Aug 2, 2025
971d5f6
chore: relnotes to md files
SkyBird233 Aug 2, 2025
550ffe0
fix: asahi relnote path
SkyBird233 Aug 2, 2025
57f7222
feat: replace about page with md file
SkyBird233 Aug 3, 2025
dec4957
chore: copy ProseH2
SkyBird233 Aug 3, 2025
d8b6d86
feat: replace afterglow index with md file
SkyBird233 Aug 3, 2025
9bcefba
feat: implement anchor scrolling and highlighting for async components
SkyBird233 Aug 3, 2025
3f89cae
feat: replace afterglow pages with md files
SkyBird233 Aug 4, 2025
1658ab2
feat: replace AOSC OS pages with md files
SkyBird233 Aug 4, 2025
47d04fe
feat: replace contact page with md file
SkyBird233 Aug 4, 2025
897e9c6
fix: exclude unnecessary files in content config
SkyBird233 Aug 4, 2025
7a6dc50
feat: update styles in crowdsourcing page
SkyBird233 Aug 4, 2025
b7eb90f
feat: replace events page with md file
SkyBird233 Aug 4, 2025
ab4e885
feat: replace guidelines page with md file
SkyBird233 Aug 4, 2025
aaf7e51
feat: replace internship page with md file
SkyBird233 Aug 4, 2025
eba0a2a
feat: replace l10n page with md file
SkyBird233 Aug 4, 2025
663f0e5
feat: replace liblol page with md file
SkyBird233 Aug 4, 2025
7d861e6
feat: replace oma page with md file
SkyBird233 Aug 4, 2025
40f8bd4
fix: strange anchor behavior in Chrome
SkyBird233 Aug 11, 2025
3cce57a
chore: 清理过时的组件
HouLiXieBuRou Aug 11, 2025
7088c3e
chore: 清理无用代码
HouLiXieBuRou Aug 14, 2025
bd77083
chore: 统一 md 生成页面路由入口并清理无用文件
HouLiXieBuRou Aug 14, 2025
83089ba
fix: 修复侧栏自动展开 bug
HouLiXieBuRou Aug 14, 2025
f989afb
fix: 导航栏切换语言后自动折叠 bug 修复,连续点击展开 bug 修复
HouLiXieBuRou Aug 15, 2025
e9da389
fix(layout): restore bottom padding
SkyBird233 Aug 17, 2025
2f1c01b
fix: 修复/更新 barleft 行为
HouLiXieBuRou Aug 18, 2025
d7b9e23
fix(router): scroll to top on regular navigations
SkyBird233 Aug 20, 2025
c84392b
chore(content/all): 更新相册数据
MingcongBai Aug 20, 2025
b8b434c
chore(content): 更新新闻
MingcongBai Aug 20, 2025
a92dd42
chore(public): 同步中山大学赞助信息
MingcongBai Aug 20, 2025
81dcb41
chore: 同步导航栏更改
MingcongBai Aug 20, 2025
3cdce29
chore(sponsors): 同步个人赞助者信息
MingcongBai Aug 20, 2025
465f370
feat: change caption-side to top for heti
SkyBird233 Aug 21, 2025
71b5b04
fix: 修复多层列表样式被 heti unset
HouLiXieBuRou Aug 21, 2025
67d5dae
feat: 赞助方/个人赞助者栏表格实现精简
HouLiXieBuRou Aug 21, 2025
01bc663
feat: 镜像制作文案同步
SkyBird233 Aug 21, 2025
a126cf1
feat: WSL 页面更新
SkyBird233 Aug 21, 2025
03be697
feat: 镜像源列表更新
SkyBird233 Aug 21, 2025
a9ac4bd
feat: i18n locals 配置检查工具更新,修复 allUniversalLink.json 结构不匹配问题
HouLiXieBuRou Aug 21, 2025
d84438b
feat: 剪切板展示页面样式更新
HouLiXieBuRou Aug 29, 2025
052ab92
fix: 修复一处标点使用
SkyBird233 Aug 29, 2025
d585cf8
feat: fallback for content pages
SkyBird233 Aug 30, 2025
e450d4e
chore: remove duplicated English pages
SkyBird233 Aug 30, 2025
09a0094
refactor: replace Axios with useFetch
SkyBird233 Aug 30, 2025
7840cf4
chore(deps): remove Axios
SkyBird233 Aug 30, 2025
4aef896
feat: update locale keys
SkyBird233 Sep 3, 2025
75813b8
chore: i18n 的 code 和 content 的 code 交互方式修改,方便后续使用
HouLiXieBuRou Sep 3, 2025
1f0b0bd
fix: 修复 ts 类型推断
HouLiXieBuRou Sep 4, 2025
3e75a5f
chore: simplify i18nCodeToContent in i18n/config.ts
SkyBird233 Sep 4, 2025
dd32f4a
feat: support paste-server-rs
SkyBird233 Sep 3, 2025
9c0d9bc
feat: 剪贴板超时时间随请求体增大
SkyBird233 Sep 3, 2025
e92cd71
fix(paste): only caculate expDate on client
SkyBird233 Sep 4, 2025
d5b5c7a
feat(news): 发布 8 月 30 日新闻
MingcongBai Aug 30, 2025
4fcbdd0
fix(news/minutes-2025-08-30): 补充 krunner-pinyin-search 仓库链接
MingcongBai Aug 30, 2025
709fee5
fix(news/bash-pinyin-completion-rs-0.3.0): 修复标题
MingcongBai Aug 30, 2025
fc345ec
fix(news/bash-pinyin-completion-rs-0.3.0): 修复仓库链接
MingcongBai Aug 30, 2025
5bdf6fd
feat(news): 新增 9 月 3 日测试公告
MingcongBai Sep 3, 2025
c357edc
chore(news): 移除部分过时新闻置顶
MingcongBai Sep 3, 2025
7abd135
fix: build-cf.sh always returns 0
SkyBird233 Sep 8, 2025
2d4c87e
chore: fail on SSG fetch error
SkyBird233 Sep 9, 2025
c7b97a3
chore: update workflow for nuxt
SkyBird233 Sep 9, 2025
13ea094
chore: remove test related code in deploy.yaml
SkyBird233 Sep 9, 2025
b528aaf
fix(news/2025-09-03): 修复分类
MingcongBai Sep 6, 2025
57ce374
feat(news): 添加 9 月 6 日贡献者例会纪要
MingcongBai Sep 6, 2025
77bc349
chore(news): 将 oma 1.20 测试公告从主页删除
MingcongBai Sep 8, 2025
9a98324
feat(news): 添加 oma 1.21 测试公告
MingcongBai Sep 8, 2025
af46f8d
chore(news): 将 oma 1.18 发布公告从主页删除
MingcongBai Sep 8, 2025
ee3bd8f
fix: filter news on home page
SkyBird233 Sep 9, 2025
277eec4
Merge branch 'master' into website-nuxt
SkyBird233 Sep 9, 2025
b85b7b5
chore: utils 等非 setup 环境获取 locale 变量方式更新
HouLiXieBuRou Sep 9, 2025
dd45ec4
chore: 孤立的 link 并入 allUniversalLink.json
HouLiXieBuRou Sep 9, 2025
7441c78
feat: 参数获取方式更新
HouLiXieBuRou Sep 9, 2025
71db50f
chore(deps): remove pangu
SkyBird233 Sep 9, 2025
8cc34a8
fix(prerender): redirect issue with static deployment
SkyBird233 Sep 12, 2025
f72952b
chore: optimize key layouts in downloads page
SkyBird233 Sep 15, 2025
1af5319
fix(events): correct Bilibili URL for 2024 Beijing University & TUNA …
SkyBird233 Sep 17, 2025
5bc4915
chore: copy README.zh-cn.md
SkyBird233 Sep 16, 2025
3c81ec8
chore: remove an Axios workaround from Nuxt config
SkyBird233 Sep 16, 2025
90ee26b
feat: update README files
SkyBird233 Sep 17, 2025
7184c24
WIP l10n revision
MingcongBai Sep 15, 2025
f78832a
WIP: l10n revision - update code
SkyBird233 Sep 23, 2025
9fedfa9
WIP: l10n revision - copy zh-cn folder to en-us
SkyBird233 Sep 23, 2025
e811352
fix(aoscc): 修复 Telegram 链接
abc1763613206 Sep 24, 2025
c7cfe67
chore(i18n): remove json folder
SkyBird233 Sep 23, 2025
8a563ac
chore(i18n): seo field as an example of i18n update
SkyBird233 Sep 23, 2025
8850c6f
feat(i18n): add source language to i18n-ally config
SkyBird233 Sep 23, 2025
5cfb048
feat: 删除 textValue 用法替换为t()
HouLiXieBuRou Sep 24, 2025
8abf936
feat: 多语言 json 删除没有用到的 key:val 对
HouLiXieBuRou Sep 25, 2025
d6bd38d
chore: pages/ components/ i18n/ run prettier -w
HouLiXieBuRou Sep 25, 2025
c69747e
fix: `@` sign in i18n messages
SkyBird233 Sep 25, 2025
bb8553c
test: 测试 link 修改
HouLiXieBuRou Sep 26, 2025
466cac4
feat: rewoke 10bb06da5c1ac94614550fa9e95a8d0c2c0bb1fe 不再替换非字符串的 textV…
HouLiXieBuRou Sep 26, 2025
73be79c
feat: language fallback and i18n index file simplification
SkyBird233 Sep 29, 2025
bf4a734
chore: simplify some i18n key names
SkyBird233 Sep 29, 2025
733d87a
feat: 清理未用链接
HouLiXieBuRou Sep 29, 2025
2bbca63
chore: 清理无用代码
HouLiXieBuRou Sep 29, 2025
c5ef532
chore: 脚本添加使用说明
HouLiXieBuRou Sep 29, 2025
ca7344c
feat: 清理链接脚本更新,并重新清理
HouLiXieBuRou Sep 29, 2025
82dca44
fix: 修复 e2c0e504edfb795a8a09ab19b07e3a40d387bbad 带来的链接问题
HouLiXieBuRou Sep 30, 2025
0737396
chore: 移除无用的空对象和相关字段
SkyBird233 Sep 30, 2025
336eed5
feat(news): 添加 9 月 26 日零时源服务器维护通知
MingcongBai Sep 25, 2025
d6c11b6
feat(2025-09-25): 源服务器维护已完成
MingcongBai Sep 25, 2025
0fb7ae6
feat(news): 发布 9 月 27 日例会纪要
MingcongBai Sep 27, 2025
6bf3aae
Merge branch 'master' into website-nuxt
SkyBird233 Sep 30, 2025
225ab7f
chore: disable English locale for now
SkyBird233 Sep 30, 2025
3820b2c
feat(build-cf): implement retry logic
SkyBird233 Sep 30, 2025
d8cfbbb
Merge branch 'master' into website-nuxt
SkyBird233 Oct 1, 2025
3172220
fix: text align left for markdown content
SkyBird233 Oct 2, 2025
393ab02
fix: add open-in-new icon for BarRight
SkyBird233 Oct 2, 2025
2989b63
Revert "chore: utils 等非 setup 环境获取 locale 变量方式更新"
SkyBird233 Oct 2, 2025
7882681
fix: download page title
SkyBird233 Oct 2, 2025
3fb0716
fix(i18n): update download sources names and locations
SkyBird233 Oct 2, 2025
7f5a6ce
chore: revert back to normal jumbotrons
SkyBird233 Oct 2, 2025
26979e9
fix: howToMirror link
SkyBird233 Oct 2, 2025
1373127
fix(i18n): translation of download center
SkyBird233 Oct 2, 2025
f286365
fix(paste detail): copy full content button
SkyBird233 Oct 2, 2025
49165c2
chore: remove 1px padding of mainBody
SkyBird233 Oct 2, 2025
8f44773
chore: update jumbotron images
SkyBird233 Oct 2, 2025
2b1a3be
chore: update icons of left bar
SkyBird233 Oct 2, 2025
4e77d7c
chore: add iconify-json packages to dev deps
SkyBird233 Oct 2, 2025
6c2ce2c
feat: make BarLeft behaves more similar to the old one
SkyBird233 Oct 3, 2025
5a2a52d
feat(paste): add expiration date tooltip
SkyBird233 Oct 3, 2025
019cd61
fix(BarLeft): wrong icon of back to top button
SkyBird233 Oct 3, 2025
360a49e
fix(i18n): correct translation for 'return to top' in Chinese locale
SkyBird233 Oct 3, 2025
770f7d0
fix(utils/animation.ts): 将板块高亮动画提速至 500ms
MingcongBai Oct 3, 2025
a8d7131
doc(README): 将仓库更名,website-2023* => website*
MingcongBai Oct 3, 2025
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
74 changes: 28 additions & 46 deletions .github/workflows/deploy.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -8,57 +8,39 @@ on:
jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: write
steps:
- uses: actions/checkout@v2
- uses: actions/checkout@v5
- name: Use Node.js 22
uses: actions/setup-node@v4
uses: actions/setup-node@v5
with:
node-version: '22'
- name: Cache NPM dependencies
uses: actions/cache@v4

# https://github.com/actions/cache/blob/v4/examples.md#node---npm
- name: Get npm cache directory
id: npm-cache-dir
shell: bash
run: echo "dir=$(npm config get cache)" >> ${GITHUB_OUTPUT}
- uses: actions/cache@v4
id: npm-cache # use this to check for `cache-hit` ==> if: steps.npm-cache.outputs.cache-hit != 'true'
with:
path: node_modules
key: ${{ runner.OS }}-npm-cache
path: ${{ steps.npm-cache-dir.outputs.dir }}
key: ${{ runner.os }}-node-${{ hashFiles('**/package-lock.json') }}
restore-keys: |
${{ runner.OS }}-npm-cache
- name: Setup SSH Private Key
env:
KEY: ${{ secrets.KEY }}
IP: ${{ secrets.IP }}
run: |
mkdir -p ~/.ssh/
echo "$KEY" > ~/.ssh/id_rsa
chmod 600 ~/.ssh/id_rsa
ssh-keyscan $IP >> ~/.ssh/known_hosts
- name: Install deps
run: |
sudo apt install expect tcl-expect -y
- name: Upload website
env:
IP: ${{ secrets.IP }}
run: |
rm -rf website*

# Build utilities
git submodule update --init
pushd utils/make-news-index
go build -o make-news-index
popd
${{ runner.os }}-node-

# Build news index
pushd public
../utils/make-news-index/make-news-index
popd
- name: Install dependencies
run: npm ci

- name: Build
run: npm run generate

# Build website
npm i
npm run build

zip -r website.zip website/
scp website.zip aosc@$IP:/home/aosc/web/
- name: Unzip website
run: |
cd deploy
./unzipServer.sh
- name: Copy files via SSH
uses: appleboy/scp-action@v1
with:
host: ${{ secrets.IP }}
username: aosc
key: ${{ secrets.KEY }}
source: "dist/*"
target: /home/aosc/web/website
rm: true
strip_components: 1
48 changes: 17 additions & 31 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,38 +1,24 @@
# Binary assets
public/assets/gallery/
public/assets/news/
public/assets/coffee-break/
# Nuxt dev/build outputs
.output
.data
.nuxt
.nitro
.cache
dist

# Runtime files
auto-imports.d.ts
components.d.ts
# Node dependencies
node_modules

# Logs
logs
*.log
npm-debug.log*
yarn-debug.log*
yarn-error.log*
pnpm-debug.log*
lerna-debug.log*

node_modules
dist
dist-ssr
website
website.zip
deply/website.zip
public/newsCategories
*.local

# Editor directories and files
.vscode/*
!.vscode/extensions.json
.idea
# Misc
.DS_Store
*.suo
*.ntvs*
*.njsproj
*.sln
*.sw?
pasteServer/paste/*
.fleet
.idea

# Local env files
.env
.env.*
!.env.example
3 changes: 2 additions & 1 deletion .prettierignore
Original file line number Diff line number Diff line change
Expand Up @@ -4,6 +4,7 @@ pasteServer/*
makeCategory/*
deploy/*
website/*
utils/*
auto-imports.d.ts
components.d.ts
content/*
fileServe/*
4 changes: 2 additions & 2 deletions .prettierrc
Original file line number Diff line number Diff line change
Expand Up @@ -2,11 +2,11 @@
"semi": true,
"bracketSameLine": true,
"arrowParens": "always",
"htmlWhitespaceSensitivity": "strict",
"htmlWhitespaceSensitivity": "ignore",
"vueIndentScriptAndStyle": false,
"singleQuote": true,
"trailingComma": "none",
"printWidth": 80,
"plugins": ["prettier-plugin-tailwindcss"],
"tailwindStylesheet": "./src/style.css"
"tailwindStylesheet": "./assets/css/main.css"
}
10 changes: 10 additions & 0 deletions .vscode/settings.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
{
"i18n-ally.localesPaths": [
"i18n/locales"
],
"i18n-ally.namespace": true,
"i18n-ally.pathMatcher": "{locale}/{namespaces}.json",
"i18n-ally.sourceLanguage": "zh-cn",
"i18n-ally.displayLanguage": "zh-cn",
"i18n-ally.keystyle": "nested"
}
44 changes: 23 additions & 21 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,8 +3,7 @@ AOSC Portal

[简体中文自述文件 >>](/README.zh-cn.md)

The Portal website for AOSC since 2024 (designed in 2023, hence the name),
built using Vue.js.
The Portal website for AOSC since 2024, built using [Nuxt](https://nuxt.com/).

At a glance
---
Expand All @@ -23,43 +22,45 @@ Windows home page from 2001 - 2004:
- [Reference 1, Windows XP home from late 2001](https://web.archive.org/web/20011211230629/http://microsoft.com/windowsxp/default.asp)
- [Reference 2, Windows XP mid-cycle home from 2004](https://web.archive.org/web/20040204080626/http://www.microsoft.com/china/windows/default.mspx)

Technically speaking, this website is built as a client-side rendered Web
application. In the near future, we plan to refactor this website into one
that is powered by server-side rendering or static site generator to help
with performance and indexability.

This website is not yet optimised for mobile, legacy (Afterglow-targeted),
and functionally-limited browsers. We are currently evaluating plans to
implement a purpose-specific site to help with these scenarios.

Deployment and testing
---

This website is deployed to our Web server using a GitHub workflow. It should
also be deployed in conjunction with [website-2023-utils](https://github.com/AOSC-Dev/website-2023-utils).
Please follow also the instructions there.
This website is deployed to our Web server using a GitHub workflow. The paste
backend is deployed to paste.aosc.io using [paste-server-rs](https://github.com/AOSC-Dev/website-utils/tree/master/paste-server-rs).

To test the website locally, you would need a Node.js + NPM toolchain and a
deployment of the aforementioned [website-2023-utils](https://github.com/AOSC-Dev/website-2023-utils).
To install Node.js + NPM on AOSC OS:
To test the website locally, you would need a Node.js + NPM toolchain. To
install Node.js + NPM on AOSC OS:

```
oma install nodejs
```

Then, build and serve the website locally:
Install dependencies:
```
npm install
```

Then, build and preview the website locally:

```
npm i
npm run dev
npm run generate
npm run preview
```

If you need to test the paste page, please set `PASTE_API=http://localhost:2334`
in your environmental variables or the `.env` file. For the deployment of
paste-server-rs, please refer to [website-utils](https://github.com/AOSC-Dev/website-utils).

Submitting news
---

All news articles are written in Markdown and stored in `/public/news`, with
extra assets (images, etc.) stored in `/assets/...`. All assets should be
referenced from the site (`/assets/...`, not `https://...`).
All news articles are written in Markdown and stored in `/content/{language}/news`, with
extra assets (images, etc.) stored in `/public/...`. All assets should be
referenced from the site (`/...`, not `https://...`).

News articles should contain a header:

Expand All @@ -86,8 +87,9 @@ home: true

### Localising news articles

To localise a news article, use a language code suffix such as `.zh-cn`, i.e.:
To localize a news article, just add a file with the same name to the
corresponding language folder such as `/content/zh-cn/`, i.e.:

```
2024-09-18-aosc-os-relnote.zh-cn.md
/content/zh-cn/news/2024-09-18-aosc-os-relnote.md
```
29 changes: 17 additions & 12 deletions README.zh-cn.md
Original file line number Diff line number Diff line change
@@ -1,9 +1,9 @@
安同开源社区门户网站 (AOSC Portal)
===

[英文自述文件 >>](/README.md)
[English readme file >>](/README.md)

本仓库存放自 2024 年末启用的社区门户网站(设计稿 2023 年完成,故此得名)。本网站使用 Vue.js 构建。
本仓库存放自 2024 年末启用的社区门户网站本网站使用 [Nuxt](https://nuxt.com/) 构建。

简述
---
Expand All @@ -15,32 +15,37 @@
- [参考甲:Windows XP 主页(2001 年末)](https://web.archive.org/web/20011211230629/http://microsoft.com/windowsxp/default.asp)
- [参考乙:Windows XP 中期主页(2004 年)](https://web.archive.org/web/20040204080626/http://www.microsoft.com/china/windows/default.mspx)

技术架构方面,该网站为客户端渲染 (client-side render) 的单页 Web 应用程序,我们计划在未来一段时间就将网站转写为服务端渲染 (server-side render) 或静态生成网站 (static site generator),提高网站的可索引性及性能。

目前网站亦未对移动端、低性能(星霞 OS 目标)设备及功能受限的浏览器优化,我们计划在后续研判是否通过实现专用网站解决此问题。

部署及测试
---

本网站使用 GitHub workflow 自动部署到我们的网站服务器,搭配 [website-2023-utils](https://github.com/AOSC-Dev/website-2023-utils) 一同使用(请注意阅读该仓库中的部署指南)
本网站使用 GitHub workflow 自动部署到我们的网站服务器。其中剪贴板后端为部署在 paste.aosc.io 的 [paste-server-rs](https://github.com/AOSC-Dev/website-utils/tree/master/paste-server-rs)

本地测试时,您需要安装 Node.js + NPM 工具链,安同 OS 用户可使用如下命令安装;您也需要部署 [website-2023-utils](https://github.com/AOSC-Dev/website-2023-utils)
本地测试时,您需要安装 Node.js + NPM 工具链,安同 OS 用户可使用如下命令安装:

```
oma install nodejs
```

而后,使用如下命令启动网站构建及服务:
安装依赖:
```
npm install
```

而后,使用如下命令构建网站并预览:

```
npm i
npm run dev
npm run generate
npm run preview
```

如果您需要测试剪贴板页面,请创建并修改 `.env` 文件或直接设置环境变量 `PASTE_API=http://localhost:2334`。对于 paste-server-rs 的部署请参考 [website-utils](https://github.com/AOSC-Dev/website-utils)

提交新闻
---

本站新闻使用 Markdown 格式编写,存放于 `/public/news`;额外文件(如图片等)存放于 `/assets/...`。引用额外文件时,应使用站内引用(`/assets/...`)而非站外引用(`https://...`)。
本站新闻使用 Markdown 格式编写,存放于 `/content/{language}/news`;额外文件(如图片等)存放于 `/public/...`。引用额外文件时,应使用站内引用(`/...`)而非站外引用(`https://...`)。

新闻文件均带有文件头,如下例:

Expand All @@ -67,8 +72,8 @@ home: true

### 新闻本地化

本地化新闻文章时,在文件名后加语言代号作为后缀即可(如 `.zh-cn`):
本地化新闻文章时,在对应语言文件夹下新建同名文件即可(如 `/content/zh-cn/`):

```
2024-09-18-aosc-os-relnote.zh-cn.md
/content/zh-cn/news/2024-09-18-aosc-os-relnote.md
```
51 changes: 51 additions & 0 deletions app.vue
Original file line number Diff line number Diff line change
@@ -0,0 +1,51 @@
<script setup lang="js">
const highBrightnessControllerStore = useHighBrightnessControllerStore();
const router = useRouter();
const { t } = useI18n();

useHead({
title: t('seo.heading.siteTitle'),
titleTemplate: (title) => `${title} | ${t('seo.site.siteName')}`,
link: [{ rel: 'icon', type: 'image/svg+xml', href: '/aosc.svg' }],
script: [
{
// This script will execute before the browser renders the <body>,
// ensuring the correct season class is set from the very beginning.
textContent:
'document.documentElement.classList.add(["spring","summer","autumn","winter"][(new Date().getMonth()+10)%12/3|0])',
type: 'text/javascript',
tagPosition: 'head'
}
]
});

useSeoMeta({
description: t('seo.seo.siteDescription'),
ogImage: '/aosc.svg',
ogSiteName: t('seo.site.siteName')
});

router.afterEach((to, _from) => {
highBrightnessControllerStore.obj[to.path] =
!highBrightnessControllerStore.obj[to.path];
});

const { $mitt } = useNuxtApp();
const mainRef = useTemplateRef('mainBody');
const heightRef = useTemplateRef('dMainBody');
onMounted(() => {
new ResizeObserver(() => {
$mitt.emit('mainDomChange', mainRef.value.clientHeight);
}).observe(heightRef.value);
});
</script>

<template>
<NuxtLayout>
<div ref="mainBody" class="flex-1">
<div ref="dMainBody">
<NuxtPage />
</div>
</div>
</NuxtLayout>
</template>
10 changes: 10 additions & 0 deletions app/router.options.ts
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
import type { RouterConfig } from '@nuxt/schema';
import { useScrollStore } from '~/stores/scroll';

export default <RouterConfig>{
scrollBehavior(to, _from, savedPosition) {
if (savedPosition) return savedPosition;
else if (to.hash) useScrollStore().scrollOrSet(to.hash);
else return { top: 0 };
}
};
Loading