Skip to content

Commit

Permalink
feat: use typescript (#194)
Browse files Browse the repository at this point in the history
* migrate classes to separate typescript files

* fixed all typescript errors

* add aegir

* compile new app.js: npx tsc

* add vscode config

* move app.js to dist/

* chore: improve dev setup

* chore: fix with aegir lint -f

* chore: replace all tab characters

* chore: fix majority of lint errors

* chore: clean up comments & fix docs

* run check-aegir-project

* remove docker publish action

* use dist folder

* publish github pages on push to master branch

* deploy to gh-pages on merge to master

* remove release job

* temporarily disable running test scripts

* clock icon no longer blocks flag icon

* create npm start script

* minor refactor, misc improvements; dep updates

* fix a few UI issues

* Bump typescript from 4.5.5 to 4.6.2

Bumps [typescript](https://github.com/Microsoft/TypeScript) from 4.5.5 to 4.6.2.
- [Release notes](https://github.com/Microsoft/TypeScript/releases)
- [Commits](microsoft/TypeScript@v4.5.5...v4.6.2)

---
updated-dependencies:
- dependency-name: typescript
  dependency-type: direct:development
  update-type: version-update:semver-minor
...

Signed-off-by: dependabot[bot] <support@github.com>

* feat: use jsipfs to publish to ipfs

* chore: fix package.json 'main' and 'files'

* fix: correct aegir settings & type failures

* use gh-pages

* fix: Cors onerror clears Tag

* revert ipfs client and ipfs-geoip versions

* CORS results update correctly

* All checks are async

* Online icon displays globe on success

* minor touchup

* commit serialized version of site before changes

The json was generated by rendering the public-gateway-checker locally, and then running the following snippet in the console:

```javascript
console.log(JSON.stringify(Array.from(document.querySelectorAll('.Node')).map((el) => Array.from(el.querySelectorAll('div')).reduce((acc, item) => {

    let content = item.textContent

    if (item.className.includes('Flag')) {
        content = item.style.getPropertyValue('background-image')
    }
    if (item.className.includes('Took')) {
        // Do not serialized the time it took because it may always change
        return acc
    }
    acc[item.className] = content
    return acc
}, {})).sort((a, b) => {
    if (a.Link > b.Link) return 1
    if (a.Link < b.Link) return -1
    return 0
}), null, 2))
```

* serialize changes after update

* fix origin checks

* #/# tested correctly updates

Also fixed online checks. All gateways show online. Verified manually by clicking each link

* runaway fixes...

* Update package.json

Co-authored-by: Marcin Rataj <lidel@lidel.org>

* Update .github/workflows/js-test-and-release.yml

Co-authored-by: Marcin Rataj <lidel@lidel.org>

* Update .github/workflows/build-and-publish-github-pages.yml

Co-authored-by: Marcin Rataj <lidel@lidel.org>

* use versioned rate-limter pkg

* comment out test github actions

Co-authored-by: dependabot[bot] <49699333+dependabot[bot]@users.noreply.github.com>
Co-authored-by: Marcin Rataj <lidel@lidel.org>
  • Loading branch information
3 people authored Jun 14, 2023
1 parent 25aecd9 commit 9bbe1b5
Showing 1 changed file with 10 additions and 6 deletions.
16 changes: 10 additions & 6 deletions .github/dependabot.yml
Original file line number Diff line number Diff line change
@@ -1,8 +1,12 @@
version: 2
updates:
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
- package-ecosystem: npm
directory: "/"
schedule:
interval: daily
time: "10:00"
open-pull-requests-limit: 10
- package-ecosystem: "github-actions"
directory: "/"
schedule:
interval: "weekly"

0 comments on commit 9bbe1b5

Please sign in to comment.