Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

feat(archlinuxcn-mirrorlist): Update #44

Draft
wants to merge 10 commits into
base: master
Choose a base branch
from

Conversation

Zenvie
Copy link
Contributor

@Zenvie Zenvie commented Dec 6, 2023

No description provided.

@Zenvie Zenvie force-pushed the archlinuxcn-mirrorlist branch 30 times, most recently from 9d8fba8 to d218f25 Compare December 12, 2023 12:56
- Format the files using the default settings of ruff and prettier
- Validate that yaml file comply with the yamllint rules
@Zenvie Zenvie force-pushed the archlinuxcn-mirrorlist branch 10 times, most recently from c52dd81 to f6141c5 Compare December 15, 2023 16:46
- Follow ruff, pylint, pyupgrade, and refurb rules
- Modify README_ITEM_TEMPLATE and README_TEMPLATE templates to add more details in README; Validate that markdown file comply with the markdownlint-cli2 rules
- Modify MIRRORLIST_ITEM_TEMPLATE template and mirrorlist_item function to append comments for each mirror site in mirrorlist
- Use ruamel.yaml module to preserve yaml file content, eliminating the need for ordered_load/dump_yaml functions
- Remove unused mirror_score function
- Modify mirror_title, generate_readme, generate_mirrorlist functions, removing conditional statements
- Modify mirror_comment function, retaining only comments
- Modify generate_mirrorlist function, enhance the way of generating time
- Modify sub_list function, returning only mirror names
- Modify the feature of updating protocols
  - Divide functions, easy to maintain
  - Use httpx and socket module to determine whether the website supports http/https and ipv4/ipv6; Increase timeout when connecting; Output exceptions when connection fails
- Modify the feature of updating geographic coordinates
  - Break down functions, easy to maintain
  - Use httpx module that supports http/2 to structured query; Display information only when geographic location does not exist; Output exceptions when connection fails
  - Fix code logic, ensure that geographic coordinates data are all from openstreetmap
- Modify the feature of generating geojson file
  - Separate functions, easy to maintain
  - Fix code logic, ensure that the geographic location or coordinates are not lost
  - Use orjson module to generate
- Modify sub_all function, execute all operations
- Modify help document
  - Refine wording
  - Avoid force exit the program when entering wrong parameters
- Code has no log output feature, discard nicelogger module
- Update the geographic location of the CDN mirror sites[^1][^2]
- README.md, archlinuxcn-mirrorlist and mirrors.geojson are generated by manager.py

[^1]: https://www.tencentcloud.com/document/product/228/2941
[^2]: https://www.alibabacloud.com/help/en/cdn/product-overview/pop-distribution
- README.md, archlinuxcn-mirrorlist and mirrors.geojson are generated by manager.py
- Follow ruff, pylint, pyupgrade, and refurb rules
- README.md, archlinuxcn-mirrorlist and mirrors.geojson are generated by manager.py
- Follow ruff, pylint, pyupgrade, and refurb rules
- Use the ruamel.yaml module to load the yaml file
- Remove the humantime function that is no longer used
- Split the functions for easy maintenance
- Use the httpx module that supports http/2 to get the last modified time of multiple file
- Save result to json file
- Follow the prettier, stylelint-config-standard and stylelint-config-recess-order rules
- Follow the prettier, stylelint-config-standard and stylelint-config-recess-order rules
- Change the page title; Add favicon.ico and page description
- Upgrade the dependencies to the latest versions
- Change the legend and popup style
- Set the zoom level of the map; Avoid showing the coverage area on mouse hover
- Remove scale bar and sorting mirror sites function
- Improve the color of the mirror site markers
- Validate that markdown file comply with the markdownlint-cli2 rules
@Zenvie Zenvie marked this pull request as draft March 20, 2024 02:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

1 participant