Giter Club home page Giter Club logo

mirrorz-help's People

Contributors

1715173329 avatar aethocesora avatar bianyifan avatar brx86 avatar determ1ne avatar eastonman avatar h3arn avatar huandzh avatar idawnlight avatar panda2134 avatar ralxyz avatar sadpencil avatar sukkaw avatar taoky avatar xeonacid avatar zclkkk avatar zenithalhourlyrate avatar zhishengyuan avatar zhuoy3 avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar

mirrorz-help's Issues

feat: click to open

For a CodeBlock we have "click to copy" now; we sometime puts url there so there might also be a click to open button, opt-in by enableClickOpen option.

bug: Alpine: Incorrect `sed` code to change apk mirror source, double `alpine` in url

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

$ sed -i 's#https\?://dl-cdn.alpinelinux.org#http://mirror.nju.edu.cn/alpine#g' /etc/apk/repositories
$ apk update
> fetch http://mirror.nju.edu.cn/alpine/alpine/v3.18/main/aarch64/APKINDEX.tar.gz  ##double alpine 
> ...  

期望的现象(What you expected to happen)

delete /alpine

sed -i 's#https\?://dl-cdn.alpinelinux.org#http://mirror.nju.edu.cn#g' /etc/apk/repositories

如何重现此问题(How to reproduce it)

omitted

操作系统(OS Version)

arm64-based docker alpine

浏览器(如果适用)(Browser version, if applicable)

omitted

其他环境(Other environments)

omitted

其他需要说明的事项(Anything else we need to know)

Alpine Mirror-z Help (NJU)

api: generate help list per site

mirrorz-help has a bunch of helps but not all mirror sites need them, we need to generate a list per site via some API, e.g. https://mirrors.help/api/list/SJTUG-Siyuan

And the result would be a site local name to mirrorz-cname

{
  "site-name": "cname",
  "mx-linux": "mxlinux"
}

Also the list should consider the metadata provided in #58 (comment)

feat(cernet): domain name generator

mirrorz-302 in mirrors.cernet.edu.cn supports a user preference list, e.g.

https://sjtug-ustc-tuna.mirrors.cernet.edu.cn/ubuntu/

This could be generated via some popup window.

feat: i18n and l10n

Just some thoughts:

ubuntu.zh.mdx
ubuntu.en.mdx
ubuntu.geekpie.mdx
ubuntu.tuna.mdx

debian security源地址仍然写的原来的地址

{{security_official}}{{is_sid}}deb {{http_protocol}}security.debian.org/debian-security {{release_name}}{{security}} main contrib non-free{{has_nfw}}
{{security_official}}{{is_sid}}{{enable_source}}deb-src {{http_protocol}}security.debian.org/debian-security {{release_name}}{{security}} main contrib non-free{{has_nfw}}

这个地方security.debian.org/debian-security是不是忘了换成{{mirror}}-security

feat: mirrorz.json d extension

A mirror site can have many domain names for different purposes. e.g. https://cernet.mirrors.ustc.edu.cn and https://mirrors4.tuna.tsinghua.edu.cn

This ability has been covered by mirrorz-d-extension

We should enable users to specify a more detailed domain name instead of the generic site.url, with each endpoint showing its ability

Expected UI (to be discussed):

Select mirror: TUNA
Select domain: tuna4 (IPv4, SSL, NOSSL)

If it is not public

Select mirror: UESTC
Select domain: uestc (NOT PUBLIC) (IPv4, SSL, NOSSL)

contents(debian-ports): init

Currently HIT (riscv64 only), ISCAS (full), LZUOSS (full), NJU(FULL), SJTUG(riscv64 only) have this mirror.

Help example:

[root@Aldebaran apt]# cat sources.list
deb https://mirror.iscas.ac.cn/debian-ports unstable main
# deb-src https://mirror.iscas.ac.cn/debian-ports unstable main

ci(contents): ping affected mirror sites

When there is a PR changing the content of one mdx, affected mirror site admins should be notified, and we should set up approving mechanisms (e.g. at least 2 approvals) (thanks to @RalXYZ)

We should maintain two map

  • contents -> affected mirror sites (from mirrorz.json)
  • mirror site -> mirror admin github account (TODO)
    • There should be doc admins and other admins
       "TUNA": {
           "help": @somebody,
           "chores": @another,
        }
    

The first part is a CI commenting in the PR that what mirror sites are affected.

After we set up the admin map, the CI should mention them.

bug: 镜像列表搜索和镜像帮助说明的数据不一致

先决条件 (Prerequisites)

  • 我已确认这个问题没有在其他 issues中提出过。
    I am sure that this problem has NEVER been discussed in other issues.

发生了什么(What happened)

访问 https://help.mirrors.cernet.edu.cn/immortalwrt/ 可以看到可用的镜像只有两个:

image

而实际上通过镜像列表( https://mirrors.cernet.edu.cn/list )搜索可以看到三个:

image

期望的现象(What you expected to happen)

数据应一致

如何重现此问题(How to reproduce it)

如上。

操作系统(OS Version)

manjaro

浏览器(如果适用)(Browser version, if applicable)

Chrome

其他环境(Other environments)

No response

其他需要说明的事项(Anything else we need to know)

No response

contents(Manjaro): 默认的 stable branch 只显示 sjtu 镜像源

帮助页面的链接(Help page URL)

https://mirror.nju.edu.cn/manjaro/

原文 (Text)

生成可用**镜像站列表:

sudo pacman-mirrors -i -c China -m rank

反馈和修正 (Feedback)

生成可用**镜像站列表:

sudo pacman-mirrors -i -c China -m rank -a --set-branch unstable

备注 (Note)

branch 只允许 stable 的话,目前只有 sjtu 支持,不过最好的解决方法似乎应当是等待其他源也支持 stable?

feat: 一键换源脚本

特性描述 (Feature Description)

LinuxMirrors 是我的项目,可以通过使用 bash shell 脚本实现一键换源,这是一个非盈利的开源项目,我想推广给更多的人,不知道贵组织是否感兴趣

feat: mask not available help from input mirrorz.json

Currently, the list in https://mirrors.help always displays all mirror items.

However, once we do not have data for one help doc, accessing that help doc would result in an exception. We should mask them in the list.

xtom.help just overrides the json https://github.com/xtomcom/xtom.help/blob/master/override/routes.json

TUNA mirror-web instead, masks them by deleting items after statically rendering them in https://github.com/tuna/mirror-web/blob/cdc12cd622e43206b7b7b32be3b112db9d44bf32/static/js/help.es6#L55

contents(oh-my-zsh-plugins 系列): init:

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.