1ec5 / avim

Vietnamese input method extension (IME) for Firefox, Thunderbird, SeaMonkey, Komodo, etc. — bộ gõ tiếng Việt dành cho Firefox, Thunderbird, SeaMonkey, Komodo, …
http://avim.1ec5.org/
MIT License
46 stars 4 forks source link

Show landing page with release notes after upgrading AVIM #90

Open 1ec5 opened 10 years ago

1ec5 commented 10 years ago

Years ago, when a new version of AVIM came out, Firefox would tell you what’s new before you installed the update. Nowadays the upgrade happens silently, so users have no idea how much AVIM has improved in the past 5–6 years. The first time you open Firefox after upgrading AVIM, we should display the latest release notes. Along these lines, the first time you open Firefox after installing AVIM, we should display Typing in Vietnamese.

1ec5 commented 9 years ago

The landing page would use this call to fetch all the release notes:

$.ajax("https://api.github.com/repos/1ec5/avim/releases", {
    ifModified: true,
    complete: function (data) {
        console.log(data.responseJSON[0].body);
    }
});

Then body would be parsed by something like markdown-js.

1ec5 commented 9 years ago

As of 8181aeb715828d9f9c9a11f4ebb3f4ff78d2d0a1, the landing page is now live. All that remains is to show it on first run.