Giter VIP home page Giter VIP logo

Comments (10)

orangedeng avatar orangedeng commented on September 25, 2024

For Shows where the airgap package is downloaded(aliyunoss or github)
Add a new dropdown button next to view install script, displaying <source> Source Text.
截屏2023-05-04 11 43 27
And select AliyunOSS or Github from dropdown.
Please use role-secondary class for the button.
And use the API PUT /v1/settings/package-download-source to set the download source. Both aliyunoss and github are valid.

from autok3s.

ly5156 avatar ly5156 commented on September 25, 2024

Display <source> Source Text.
test

from autok3s.

JacieChao avatar JacieChao commented on September 25, 2024

If the airgap package is downloading too slowly or the package download failed with the specified source(e.g. using github source in a bad network environment). Is it better to add a retry button on the UI page to retry download after switching Source?

from autok3s.

orangedeng avatar orangedeng commented on September 25, 2024

If the airgap package is downloading too slowly or the package download failed with the specified source(e.g. using github source in a bad network environment). Is it better to add a retry button on the UI page to retry download after switching Source?

If so, I think both Cancel and Retry are also needed. For now, It will retry and re-download it after editing the package without any changes.

from autok3s.

JacieChao avatar JacieChao commented on September 25, 2024

Sure. It also makes sense. I think it's better to add information about this to the doc for users who want to retry and re-download the package after switching the source or some other case.

from autok3s.

orangedeng avatar orangedeng commented on September 25, 2024

@ly5156 The #589 requires UI enhancement.

  • Add actions(Cancel and Download) for airgap package.
  • Popup logs when the package is created and changed to Downloading state

from autok3s.

ly5156 avatar ly5156 commented on September 25, 2024

image

image

image

from autok3s.

JacieChao avatar JacieChao commented on September 25, 2024
  • The package will re-download after Edit package. UI needs to show download logs also after edit the package.
  • UI needs to Disconnect the download log when user canceled the downloading process.

from autok3s.

JacieChao avatar JacieChao commented on September 25, 2024

Edit the package with Active status, and save without modification. The package changed to OutOfSync status, UI shows popup logs, and the log shows the package xxxxx is ready, skip downloading resources. The log API won't Disconnect and the package won't change to Active status.
image

from autok3s.

JacieChao avatar JacieChao commented on September 25, 2024

Tested with v0.8.0:

  • UI shows the source type(where the package is downloaded), users can switch the source from the Source Button.
  • The package shows the downloading status when downloading and shows the download logs, users can clearly handle the download process or download failed reasons.
  • The package can be re-download with the OutOfSync status. The package can be canceled with the Downloading status.

from autok3s.

Related Issues (20)

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.