diff --git a/.github/README.md b/.github/README.md index c0d5f64..44ff771 100644 --- a/.github/README.md +++ b/.github/README.md @@ -8,7 +8,9 @@ Cloudflare Worker - Status Page - ##### [![CodeQL](https://github.com/milankomaj/status-page/actions/workflows/codeql-analysis.yml/badge.svg)](https://github.com/milankomaj/status-page/actions/workflows/codeql-analysis.yml) [![Deploy](https://github.com/milankomaj/status-page/actions/workflows/deploy.yml/badge.svg)](https://github.com/milankomaj/status-page/actions/workflows/deploy.yml) ``` -Tue May 2 01:51:18 CEST 2023 + +Fri Aug 2 01:19:43 CEST 2024 + ``` --- diff --git a/.github/dependabot.yml b/.github/dependabot.yml index f9c3dc1..560c7e5 100644 --- a/.github/dependabot.yml +++ b/.github/dependabot.yml @@ -7,17 +7,17 @@ version: 2 updates: - package-ecosystem: "npm" # See documentation for possible values directory: "/" # Location of package manifests - open-pull-requests-limit: 10 schedule: interval: "weekly" day: "friday" time: "11:00" + open-pull-requests-limit: 10 # Set update schedule for GitHub Actions - package-ecosystem: "github-actions" - open-pull-requests-limit: 10 directory: "/" schedule: interval: "weekly" day: "saturday" time: "11:00" + open-pull-requests-limit: 10 diff --git a/.github/workflows/codeql-analysis.yml b/.github/workflows/codeql-analysis.yml index 74f3dcd..a911853 100644 --- a/.github/workflows/codeql-analysis.yml +++ b/.github/workflows/codeql-analysis.yml @@ -39,11 +39,11 @@ jobs: steps: - name: Checkout repository - uses: actions/checkout@v3 + uses: actions/checkout@v4 # Initializes the CodeQL tools for scanning. - name: Initialize CodeQL - uses: github/codeql-action/init@v2 + uses: github/codeql-action/init@v3 with: languages: ${{ matrix.language }} queries: +security-extended @@ -55,7 +55,7 @@ jobs: # Autobuild attempts to build any compiled languages (C/C++, C#, or Java). # If this step fails, then you should remove it and run the build manually (see below) - name: Autobuild - uses: github/codeql-action/autobuild@v2 + uses: github/codeql-action/autobuild@v3 # ℹ️ Command-line programs to run using the OS shell. # 📚 https://git.io/JvXDl @@ -69,4 +69,4 @@ jobs: # make release - name: Perform CodeQL Analysis - uses: github/codeql-action/analyze@v2 + uses: github/codeql-action/analyze@v3 diff --git a/.github/workflows/dependency-review.yml b/.github/workflows/dependency-review.yml index aae9bfc..773f18b 100644 --- a/.github/workflows/dependency-review.yml +++ b/.github/workflows/dependency-review.yml @@ -9,6 +9,6 @@ jobs: runs-on: ubuntu-latest steps: - name: 'Checkout Repository' - uses: actions/checkout@v3 + uses: actions/checkout@v4 - name: Dependency Review uses: actions/dependency-review-action@main diff --git a/.github/workflows/deploy.yml b/.github/workflows/deploy.yml index 9c16e46..f990876 100644 --- a/.github/workflows/deploy.yml +++ b/.github/workflows/deploy.yml @@ -13,12 +13,12 @@ jobs: runs-on: ubuntu-latest timeout-minutes: 10 steps: - - uses: actions/checkout@v3 - - uses: actions/setup-node@v3 + - uses: actions/checkout@v4 + - uses: actions/setup-node@v4 with: node-version: '16' - run: yarn install - - run: yarn kv-gc + - run: yarn kv-gc - run: yarn build - name: Publish uses: cloudflare/wrangler-action@2.0.0 @@ -51,7 +51,7 @@ jobs: runs-on: ubuntu-latest needs: deploy steps: - - uses: actions/checkout@v3 + - uses: actions/checkout@v4 - name: Timestamp shell: bash run: | diff --git a/config.json b/config.json new file mode 100644 index 0000000..a64c617 --- /dev/null +++ b/config.json @@ -0,0 +1,168 @@ +{ + "settings": { + "title": "status", + "url": "", + "logo": "favicon.svg", + "daysInHistogram": 90, + "collectResponseTimes": true, + "allmonitorsOperational": "All Systems Operational", + "notAllmonitorsOperational": "Not All Systems Operational", + "monitorLabelOperational": "Operational", + "monitorLabelNotOperational": "No Response", + "monitorLabelNoData": "No data", + "dayInHistogramNoData": "No data", + "dayInHistogramOperational": "Response", + "dayInHistogramNotOperational": " incident(s)" + }, + "monitors": [ + { + "id": "milankomaj-934e3", + "name": "milankomaj", + "url": "https://milankomaj-934e3.firebaseapp.com", + "method": "GET", + "expectStatus": 200, + "followRedirect": false, + "description": "milankomaj-934e3.firebaseapp.com" + }, + { + "id": "radio-fm", + "name": "radio fm", + "description": "mp3/128/https", + "url": "https://icecast.stv.livebox.sk/fm_128.mp3", + "method": "GET", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-regina", + "name": "radio regina", + "description": "mp3/128/https", + "url": "https://icecast.stv.livebox.sk/regina-bb_128.mp3", + "method": "GET", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-fun", + "name": "fun radio", + "description": "mp3/128/https", + "url": "https://stream.funradio.sk:18443/fun128.mp3", + "method": "GET", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-europa", + "name": "europa 2", + "description": "mp3/128/https", + "url": "https://stream.bauermedia.sk/europa2.mp3", + "method": "HEAD", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-jemne", + "name": "radio melody", + "description": "mp3/128/https", + "url": "https://stream.bauermedia.sk/melody-hi.mp3", + "method": "HEAD", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-rock", + "name": "radio rock", + "description": "mp3/128/https", + "url": "https://stream.bauermedia.sk/rock-hi.mp3", + "method": "HEAD", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-slovensko", + "name": "radio slovensko", + "description": "mp3/128/https", + "url": "https://icecast.stv.livebox.sk/slovensko_128.mp3", + "method": "GET", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-expres", + "name": "radio expres", + "description": "mp3/128/https", + "url": "https://stream.expres.sk/128.mp3", + "method": "GET", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-kiks", + "name": "radio kiks", + "description": "radioserver/https", + "url": "https://online.radiokiks.sk:8000", + "method": "GET", + "expectStatus": 302, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-vlna", + "name": "radio vlna", + "description": "mp3/128/https", + "url": "https://stream.radiovlna.sk/vlna-hi.mp3", + "method": "HEAD", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-wow", + "name": "radio wow", + "description": "radioserver/https", + "url": "https://radioserver.online:9816", + "method": "GET", + "expectStatus": 200, + "followRedirect": true, + "linkable": false + }, + { + "id": "bb-fm", + "name": "bb fm", + "description": "radioserver/https", + "url": "https://stream.bbfm.sk:18443", + "method": "GET", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-best", + "name": "best fm", + "description": "radioserver/https", + "url": "https://stream3.bestfm.sk:8000", + "method": "HEAD", + "expectStatus": 302, + "followRedirect": false, + "linkable": false + }, + { + "id": "radio-kosice", + "name": "rádio košice", + "description": "mp3/128/https", + "url": "https://stream.21.sk/radiokosice-128.mp3", + "method": "GET", + "expectStatus": 200, + "followRedirect": false, + "linkable": false + } + ] +} \ No newline at end of file diff --git a/config.yaml b/config.yaml index eddc35a..1609c46 100644 --- a/config.yaml +++ b/config.yaml @@ -97,10 +97,10 @@ monitors: - id: radio-kiks name: radio kiks - description: 'mp3/192/https' - url: 'https://stream.radiokiks.sk/kiks_hq.mp3' + description: 'radioserver/https' + url: 'https://online.radiokiks.sk:8000' method: GET - expectStatus: 200 + expectStatus: 302 followRedirect: false linkable: false # allows the title to be a link, default=true @@ -133,10 +133,10 @@ monitors: - id: radio-best name: best fm - description: 'mp3/128/http()' - url: 'http://stream2.bestfm.sk/128.mp3' - method: GET - expectStatus: 200 + description: 'radioserver/https' + url: 'https://stream3.bestfm.sk:8000' + method: HEAD + expectStatus: 302 followRedirect: false linkable: false # allows the title to be a link, default=true diff --git a/package.json b/package.json index d94b769..5cfdca0 100644 --- a/package.json +++ b/package.json @@ -27,7 +27,8 @@ "autoprefixer": "^10.4.14", "node-fetch": "^3.3.1", "postcss": "^8.4.23", - "prettier": "^2.8.8", + "postcss-cli": "^10.1.0", + "prettier": "^3.0.3", "tailwindcss": "^3.3.2", "yaml-loader": "^0.6.0" } diff --git a/wrangler.toml b/wrangler.toml index 088e2a9..a2178c6 100644 --- a/wrangler.toml +++ b/wrangler.toml @@ -20,4 +20,3 @@ bucket = "out" #kv-namespaces = [{binding="KV_STATUS_PAGE", id="xxxx", preview_id=""}] #zone_id="xxx" #route="xxx" -