diff --git a/.github/workflows/development.yml b/.github/workflows/development.yml index 2f8f56d2..2553984c 100644 --- a/.github/workflows/development.yml +++ b/.github/workflows/development.yml @@ -21,8 +21,8 @@ jobs: - name: Set Version run: | - echo "::add-path::$(go env GOPATH)/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Install Global Dependencies @@ -98,26 +98,26 @@ jobs: - name: Add GOBIN to PATH run: | - echo ::set-env name=VERSION::$(cat version.txt) + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Set Linux Build Flags if: matrix.platform == 'linux' run: | - echo ::set-env name=BUILD_FLAGS::'-extldflags -static' - echo ::set-env name=XGO_TAGS::'netgo,osusergo,linux,sqlite_omit_load_extension' + echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV + echo "XGO_TAGS=netgo osusergo linux sqlite_omit_load_extension" >> $GITHUB_ENV shell: bash - name: Set Darwin Build Flags if: matrix.platform == 'darwin' - run: echo ::set-env name=XGO_TAGS::'netgo,osusergo,darwin,sqlite_omit_load_extension' + run: echo "XGO_TAGS=netgo osusergo darwin sqlite_omit_load_extension" >> $GITHUB_ENV shell: bash - name: Set Windows Build Flags if: matrix.platform == 'windows' run: | - echo ::set-env name=BUILD_FLAGS::'-extldflags -static' - echo ::set-env name=XGO_TAGS::'netgo,osusergo,sqlite_omit_load_extension' + echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV + echo "XGO_TAGS=netgo osusergo sqlite_omit_load_extension" >> $GITHUB_ENV shell: bash - name: Build ${{ matrix.platform }}/${{ matrix.arch }} @@ -146,7 +146,7 @@ jobs: chmod +x statping tar -czvf statping-linux-${{ matrix.arch }}.tar.gz statping rm -rf statping - echo ::set-env name=compressed::statping-linux-${{ matrix.arch }}.tar.gz + echo "compressed=statping-linux-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV - name: Compress Windows Builds if: matrix.platform == 'windows' @@ -156,7 +156,7 @@ jobs: chmod +x statping.exe zip statping-windows-${{ matrix.arch }}.zip statping.exe rm -rf statping.exe - echo ::set-env name=compressed::statping-windows-${{ matrix.arch }}.zip + echo "compressed=statping-windows-${{ matrix.arch }}.zip" >> $GITHUB_ENV - name: Compress Darwin Builds if: matrix.platform == 'darwin' @@ -166,7 +166,7 @@ jobs: chmod +x statping tar -czvf statping-darwin-${{ matrix.arch }}.tar.gz statping rm -rf statping - echo ::set-env name=compressed::statping-darwin-${{ matrix.arch }}.tar.gz + echo "compressed=statping-darwin-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV - name: Upload Compiled Statping Binary uses: actions/upload-artifact@v1 @@ -227,9 +227,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -305,9 +305,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -359,9 +359,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -416,9 +416,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -456,11 +456,17 @@ jobs: uses: actions/checkout@v2 - name: Setting ENV's - run: echo ::set-env name=VERSION::$(cat version.txt) + run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx - uses: crazy-max/ghaction-docker-buildx@v3 + uses: docker/setup-buildx-action@v1 + id: buildx + with: + install: true - name: Docker Login env: @@ -498,7 +504,7 @@ jobs: # organization: statping # # - name: Setting ENV's -# run: echo ::set-env name=VERSION::$(cat version.txt) +# run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV # shell: bash # # - name: Sentry Release diff --git a/.github/workflows/master.yml b/.github/workflows/master.yml index b16c68a2..c7ca3ce4 100644 --- a/.github/workflows/master.yml +++ b/.github/workflows/master.yml @@ -21,8 +21,8 @@ jobs: - name: Set Version run: | - echo "::add-path::$(go env GOPATH)/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Install Global Dependencies @@ -98,26 +98,26 @@ jobs: - name: Add GOBIN to PATH run: | - echo ::set-env name=VERSION::$(cat version.txt) + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Set Linux Build Flags if: matrix.platform == 'linux' run: | - echo ::set-env name=BUILD_FLAGS::'-extldflags -static' - echo ::set-env name=XGO_TAGS::'netgo,osusergo,linux,sqlite_omit_load_extension' + echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV + echo "XGO_TAGS=netgo osusergo linux sqlite_omit_load_extension" >> $GITHUB_ENV shell: bash - name: Set Darwin Build Flags if: matrix.platform == 'darwin' - run: echo ::set-env name=XGO_TAGS::'netgo,osusergo,darwin,sqlite_omit_load_extension' + run: echo "XGO_TAGS=netgo osusergo darwin sqlite_omit_load_extension" >> $GITHUB_ENV shell: bash - name: Set Windows Build Flags if: matrix.platform == 'windows' run: | - echo ::set-env name=BUILD_FLAGS::'-extldflags -static' - echo ::set-env name=XGO_TAGS::'netgo,osusergo,sqlite_omit_load_extension' + echo "BUILD_FLAGS=-extldflags -static" >> $GITHUB_ENV + echo "XGO_TAGS=netgo osusergo sqlite_omit_load_extension" >> $GITHUB_ENV shell: bash - name: Build ${{ matrix.platform }}/${{ matrix.arch }} @@ -146,7 +146,7 @@ jobs: chmod +x statping tar -czvf statping-linux-${{ matrix.arch }}.tar.gz statping rm -rf statping - echo ::set-env name=compressed::statping-linux-${{ matrix.arch }}.tar.gz + echo "compressed=statping-linux-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV - name: Compress Windows Builds if: matrix.platform == 'windows' @@ -156,7 +156,7 @@ jobs: chmod +x statping.exe zip statping-windows-${{ matrix.arch }}.zip statping.exe rm -rf statping.exe - echo ::set-env name=compressed::statping-windows-${{ matrix.arch }}.zip + echo "compressed=statping-windows-${{ matrix.arch }}.zip" >> $GITHUB_ENV - name: Compress Darwin Builds if: matrix.platform == 'darwin' @@ -166,7 +166,7 @@ jobs: chmod +x statping tar -czvf statping-darwin-${{ matrix.arch }}.tar.gz statping rm -rf statping - echo ::set-env name=compressed::statping-darwin-${{ matrix.arch }}.tar.gz + echo "compressed=statping-darwin-${{ matrix.arch }}.tar.gz" >> $GITHUB_ENV - name: Upload Compiled Statping Binary uses: actions/upload-artifact@v1 @@ -227,9 +227,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -305,9 +305,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -359,9 +359,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -416,9 +416,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -456,11 +456,17 @@ jobs: uses: actions/checkout@v2 - name: Setting ENV's - run: echo ::set-env name=VERSION::$(cat version.txt) + run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash + - name: Set up QEMU + uses: docker/setup-qemu-action@v1 + - name: Set up Docker Buildx - uses: crazy-max/ghaction-docker-buildx@v3 + uses: docker/setup-buildx-action@v1 + id: buildx + with: + install: true - name: Docker Login env: @@ -498,7 +504,7 @@ jobs: # organization: statping # # - name: Setting ENV's -# run: echo ::set-env name=VERSION::$(cat version.txt) +# run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV # shell: bash # # - name: Sentry Release @@ -512,7 +518,7 @@ jobs: uses: actions/checkout@v2 - name: Setting ENV's - run: echo ::set-env name=VERSION::$(cat version.txt) + run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Update Homebrew Package @@ -529,7 +535,7 @@ jobs: uses: actions/checkout@v2 - name: Setting ENV's - run: echo ::set-env name=VERSION::$(cat version.txt) + run: echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Slack Notification diff --git a/.github/workflows/pr.yml b/.github/workflows/pr.yml index a4d46946..02777270 100644 --- a/.github/workflows/pr.yml +++ b/.github/workflows/pr.yml @@ -28,8 +28,8 @@ jobs: - name: Add GOBIN to PATH run: | - echo "::add-path::$(go env GOPATH)/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Install Global Dependencies @@ -96,9 +96,9 @@ jobs: - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) @@ -135,13 +135,13 @@ jobs: - uses: actions/checkout@v2 - uses: actions/setup-go@v2 with: - go-version: '1.14.2' + go-version: 1.15.x - name: Setting ENV's run: | - echo "::add-path::$(go env GOPATH)/bin" - echo "::add-path::/opt/hostedtoolcache/node/12.18.2/x64/bin" - echo ::set-env name=VERSION::$(cat version.txt) + echo "$(go env GOPATH)/bin" >> $GITHUB_PATH + echo "/opt/hostedtoolcache/node/12.18.2/x64/bin" >> $GITHUB_PATH + echo "VERSION=$(cat version.txt)" >> $GITHUB_ENV shell: bash - name: Download Compiled Frontend (rice-box.go) diff --git a/.vscode/launch.json b/.vscode/launch.json new file mode 100644 index 00000000..c23774cd --- /dev/null +++ b/.vscode/launch.json @@ -0,0 +1,17 @@ +{ + // Use IntelliSense to learn about possible attributes. + // Hover to view descriptions of existing attributes. + // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 + "version": "0.2.0", + "configurations": [ + { + "name": "Launch", + "type": "go", + "request": "launch", + "mode": "auto", + "program": "${fileDirname}", + "env": {}, + "args": [] + } + ] +} \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 7714e6d3..4f0f1685 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,19 @@ +# 0.90.75 (12-20-2020) +- Removed favicons and PNG files from assets, now using base64 images +- Cleaned up some issues with UI + +# 0.90.74 (12-18-2020) +- Fixed issue with favicon/manifest.json throwing 404 errors +- Modified language go:generate script to slowdown for 429 errors +- Removed Sentry error logging functionality + +# 0.90.73 (12-15-2020) +- Removed complexity in code for http server +- Removed internal cache functionality (not useful, needs refactor) +- Merged PR https://github.com/statping/statping/pull/909 +- Merged PR https://github.com/statping/statping/pull/880 +- Merged PR https://github.com/statping/statping/pull/859 + # 0.90.72 (10-28-2020) - Fixed issue with graphs becoming stuck on reload diff --git a/Makefile b/Makefile index 571873b9..fbd195f9 100644 --- a/Makefile +++ b/Makefile @@ -146,10 +146,7 @@ frontend-build: cd frontend && yarn && yarn build @cp -r frontend/dist source/ @cp -r frontend/src/assets/scss source/dist/ - @cp frontend/public/favicon.ico source/dist/ @cp frontend/public/robots.txt source/dist/ - @cp frontend/public/banner.png source/dist/ - @cp -r frontend/public/favicon source/dist/ @echo "Frontend build complete at ./source/dist" yarn: @@ -302,8 +299,8 @@ dockerhub: docker push statping/statping docker-build-dev: - docker build --build-arg VERSION=${VERSION} -t hunterlong/statping:latest --no-cache -f Dockerfile . - docker tag hunterlong/statping:dev hunterlong/statping:dev-v${VERSION} + docker build --build-arg VERSION=${VERSION} -t statping/statping:latest --no-cache -f Dockerfile . + docker tag statping/statping:latest statping/statping:dev-v${VERSION} post-release: frontend-build upload_to_s3 publish-homebrew dockerhub diff --git a/dev/postman.json b/dev/postman.json index f21fd2b1..4aaf42be 100644 --- a/dev/postman.json +++ b/dev/postman.json @@ -343,6 +343,146 @@ } ] }, + { + "name": "View Configuration", + "event": [ + { + "listen": "test", + "script": { + "id": "557dd7ef-fa5a-4f3d-98b3-4bca5e3ce154", + "exec": [ + "pm.test(\"Response is ok\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{api_key}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "url": { + "raw": "{{endpoint}}/api/settings/configs", + "host": [ + "{{endpoint}}" + ], + "path": [ + "api", + "settings", + "configs" + ] + }, + "description": "This endpoint will return the config.yml configuration without database credentials." + }, + "response": [ + { + "name": "View Configuration", + "originalRequest": { + "method": "GET", + "header": [], + "url": { + "raw": "{{endpoint}}/api/settings/configs", + "host": [ + "{{endpoint}}" + ], + "path": [ + "api", + "settings", + "configs" + ] + } + }, + "status": "OK", + "code": 200, + "_postman_previewlanguage": "plain", + "header": [ + { + "key": "Date", + "value": "Fri, 18 Sep 2020 03:41:34 GMT" + }, + { + "key": "Content-Length", + "value": "256" + }, + { + "key": "Content-Type", + "value": "text/plain; charset=utf-8" + }, + { + "key": "Connection", + "value": "close" + } + ], + "cookie": [], + "body": "api_secret: demoapisecret123\nlanguage: en\nallow_reports: true\nlocation: /root/go/src/github.com/statping/statping\ndisable_http: false\ndemo_mode: false\ndisable_logs: false\nuse_assets: false\nsample_data: true\nuse_cdn: false\ndisable_colors: false\n" + } + ] + }, + { + "name": "Update Configuration", + "event": [ + { + "listen": "test", + "script": { + "id": "5074172f-5689-4471-aced-50b0a0b6b2b4", + "exec": [ + "pm.test(\"Response is ok\", function () {", + " pm.response.to.have.status(200);", + "});" + ], + "type": "text/javascript" + } + } + ], + "protocolProfileBehavior": { + "disableBodyPruning": true + }, + "request": { + "auth": { + "type": "bearer", + "bearer": [ + { + "key": "token", + "value": "{{api_key}}", + "type": "string" + } + ] + }, + "method": "GET", + "header": [], + "body": { + "mode": "raw", + "raw": "api_secret: demoapisecret123\nlanguage: en\nallow_reports: true\nlocation: /root/go/src/github.com/statping/statping\ndisable_http: false\ndemo_mode: false\ndisable_logs: false\nuse_assets: false\nsample_data: true\nuse_cdn: false\ndisable_colors: false\n", + "options": { + "raw": {} + } + }, + "url": { + "raw": "{{endpoint}}/api/settings/configs", + "host": [ + "{{endpoint}}" + ], + "path": [ + "api", + "settings", + "configs" + ] + }, + "description": "This endpoint will update the config.yml configuration." + }, + "response": [] + }, { "name": "Logs Last Line", "event": [ @@ -567,166 +707,6 @@ } ] }, - { - "name": "Clear Cache", - "event": [ - { - "listen": "test", - "script": { - "id": "dbabc164-5030-441d-90f7-b29c7fe794df", - "exec": [ - "pm.test(\"Response is ok\", function () {", - " pm.response.to.have.status(200);", - "});" - ], - "type": "text/javascript" - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{api_key}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "{{endpoint}}/api/clear_cache", - "host": [ - "{{endpoint}}" - ], - "path": [ - "api", - "clear_cache" - ] - }, - "description": "This endpoint will clear all the cache files in your Statping instance. This includes chart data and service views." - }, - "response": [ - { - "name": "Clear Cache", - "originalRequest": { - "method": "GET", - "header": [], - "url": { - "raw": "{{endpoint}}/api/clear_cache", - "host": [ - "{{endpoint}}" - ], - "path": [ - "api", - "clear_cache" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Length", - "value": "21" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Date", - "value": "Sat, 02 May 2020 01:06:43 GMT" - } - ], - "cookie": [], - "body": "{\n \"status\": \"success\"\n}" - } - ] - }, - { - "name": "List Cache", - "event": [ - { - "listen": "test", - "script": { - "id": "992ce59d-3cce-43f1-9c3d-895c55a3e0a1", - "exec": [ - "pm.test(\"Response is ok\", function () {", - " pm.response.to.have.status(200);", - "});" - ], - "type": "text/javascript" - } - } - ], - "request": { - "auth": { - "type": "bearer", - "bearer": [ - { - "key": "token", - "value": "{{api_key}}", - "type": "string" - } - ] - }, - "method": "GET", - "header": [], - "url": { - "raw": "{{endpoint}}/api/cache", - "host": [ - "{{endpoint}}" - ], - "path": [ - "api", - "cache" - ] - }, - "description": "This endpoint will return all cached API endpoints." - }, - "response": [ - { - "name": "List Cache", - "originalRequest": { - "method": "GET", - "header": [], - "url": { - "raw": "{{endpoint}}/api/cache", - "host": [ - "{{endpoint}}" - ], - "path": [ - "api", - "cache" - ] - } - }, - "status": "OK", - "code": 200, - "_postman_previewlanguage": "json", - "header": [ - { - "key": "Content-Length", - "value": "1631" - }, - { - "key": "Content-Type", - "value": "application/json" - }, - { - "key": "Date", - "value": "Sat, 02 May 2020 01:06:32 GMT" - } - ], - "cookie": [], - "body": "[\n {\n \"url\": \"/api/services/1/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.511702322Z\",\n \"size\": 1541\n },\n {\n \"url\": \"/api/services/1/hits_data?start=1588127787&end=1588381587&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:57.808458203Z\",\n \"size\": 45223\n },\n {\n \"url\": \"/api/services/2/hits_data?start=1588127787&end=1588381587&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:57.873815975Z\",\n \"size\": 45224\n },\n {\n \"url\": \"/api/services/3/hits_data?start=1588127787&end=1588381587&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:57.909984136Z\",\n \"size\": 45088\n },\n {\n \"url\": \"/api/services/2/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.48592429Z\",\n \"size\": 1538\n },\n {\n \"url\": \"/api/services/4/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.493425593Z\",\n \"size\": 1538\n },\n {\n \"url\": \"/api/services/3/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.493554858Z\",\n \"size\": 1538\n },\n {\n \"url\": \"/api/services/5/failure_data?start=1585789587&end=1588381587&group=24h&fill=true\",\n \"expiration\": \"2020-05-02T01:06:57.511424891Z\",\n \"size\": 1538\n },\n {\n \"url\": \"/api/services/5/hits_data?start=1588127788&end=1588381588&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:58.377413844Z\",\n \"size\": 45193\n },\n {\n \"url\": \"/api/services/4/hits_data?start=1588127788&end=1588381588&group=5m&fill=false\",\n \"expiration\": \"2020-05-02T01:06:58.380229692Z\",\n \"size\": 45198\n }\n]" - } - ] - }, { "name": "Shields.io Badge", "event": [ @@ -1801,7 +1781,10 @@ ], "body": { "mode": "raw", - "raw": "{\n \"name\": \"New Service\",\n \"domain\": \"https://statping.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 30,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 30,\n \"order_id\": 0\n}" + "raw": "{\n \"name\": \"New Service\",\n \"domain\": \"https://statping.com\",\n \"expected\": \"\",\n \"expected_status\": 200,\n \"check_interval\": 30,\n \"type\": \"http\",\n \"method\": \"GET\",\n \"post_data\": \"\",\n \"port\": 0,\n \"timeout\": 30,\n \"order_id\": 0\n}", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/services", @@ -2069,7 +2052,10 @@ "header": [], "body": { "mode": "raw", - "raw": "" + "raw": "", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/services/{{service_id}}/failures", @@ -2492,7 +2478,10 @@ ], "body": { "mode": "raw", - "raw": "{\n\t\"message\": \"Website is loading very slowly, looking into this.\",\n\t\"type\": \"Investigating\"\n}" + "raw": "{\n\t\"message\": \"Website is loading very slowly, looking into this.\",\n\t\"type\": \"Investigating\"\n}", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/incidents/2/updates", @@ -2654,7 +2643,10 @@ ], "body": { "mode": "raw", - "raw": "{\n\t\"title\": \"Updated Downtime\",\n\t\"description\": \"This is an update for an incident\"\n}" + "raw": "{\n\t\"title\": \"Updated Downtime\",\n\t\"description\": \"This is an update for an incident\"\n}", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/incidents/1", @@ -3105,7 +3097,10 @@ ], "body": { "mode": "raw", - "raw": "{\n \"name\": \"New Group\",\n \"public\": true\n}" + "raw": "{\n \"name\": \"New Group\",\n \"public\": true\n}", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/groups", @@ -3261,7 +3256,10 @@ "header": [], "body": { "mode": "raw", - "raw": "" + "raw": "", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/groups/{{group_id}}", @@ -3541,7 +3539,10 @@ "value": "{{token}}", "type": "text" } - ] + ], + "options": { + "urlencoded": {} + } }, "url": { "raw": "{{endpoint}}/api/users/token", @@ -3787,7 +3788,10 @@ ], "body": { "mode": "raw", - "raw": "{\n \"username\": \"adminuser2\",\n \"email\": \"info@adminemail.com\",\n \"password\": \"passsword123\",\n \"admin\": true\n}" + "raw": "{\n \"username\": \"adminuser2\",\n \"email\": \"info@adminemail.com\",\n \"password\": \"passsword123\",\n \"admin\": true\n}", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/users", @@ -3990,7 +3994,10 @@ ], "body": { "mode": "raw", - "raw": "{\n \"username\": \"adminupdated\",\n \"email\": \"info@email.com\",\n \"password\": \"password12345\",\n \"admin\": true\n}" + "raw": "{\n \"username\": \"adminupdated\",\n \"email\": \"info@email.com\",\n \"password\": \"password12345\",\n \"admin\": true\n}", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/users/{{user_id}}", @@ -4514,7 +4521,7 @@ ], "body": { "mode": "raw", - "raw": "{\n \"method\": \"success\",\n \"notifier\": {\n \"enabled\": false,\n \"limits\": 60,\n \"method\": \"slack\",\n \"host\": \"https://webhooksurl.slack.com/***\",\n \"success_data\": \"{\\n \\\"blocks\\\": [{\\n \\\"type\\\": \\\"section\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"The service {{.Service.Name}} is back online.\\\"\\n }\\n }, {\\n \\\"type\\\": \\\"actions\\\",\\n \\\"elements\\\": [{\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"View Service\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"style\\\": \\\"primary\\\",\\n \\\"url\\\": \\\"{{.Core.Domain}}/service/{{.Service.Id}}\\\"\\n }, {\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"Go to Statping\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"url\\\": \\\"{{.Core.Domain}}\\\"\\n }]\\n }]\\n}\",\n \"failure_data\": \"{\\n \\\"blocks\\\": [{\\n \\\"type\\\": \\\"section\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\":warning: The service {{.Service.Name}} is currently offline! :warning:\\\"\\n }\\n }, {\\n \\\"type\\\": \\\"divider\\\"\\n }, {\\n \\\"type\\\": \\\"section\\\",\\n \\\"fields\\\": [{\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Service:*\\\\n{{.Service.Name}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*URL:*\\\\n{{.Service.Domain}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Status Code:*\\\\n{{.Service.LastStatusCode}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*When:*\\\\n{{.Failure.CreatedAt}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Downtime:*\\\\n{{.Service.Downtime.Human}}\\\"\\n }, {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"*Error:*\\\\n{{.Failure.Issue}}\\\"\\n }]\\n }, {\\n \\\"type\\\": \\\"divider\\\"\\n }, {\\n \\\"type\\\": \\\"actions\\\",\\n \\\"elements\\\": [{\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"View Offline Service\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"style\\\": \\\"danger\\\",\\n \\\"url\\\": \\\"{{.Core.Domain}}/service/{{.Service.Id}}\\\"\\n }, {\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"Go to Statping\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"url\\\": \\\"{{.Core.Domain}}\\\"\\n }]\\n }]\\n}\"\n }\n}", + "raw": "{\n \"method\": \"success\",\n \"notifier\": {\n \"enabled\": false,\n \"limits\": 60,\n \"method\": \"slack\",\n \"host\": \"https://hooks.slack.com/services/TTJ1B49DP/XBNU09O9M/9uI2123SUnYBuGcxLopZomz9H\",\n \"success_data\": \"{\\n \\\"blocks\\\": [{\\n \\\"type\\\": \\\"section\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"The service {{.Service.Name}} is back online.\\\"\\n }\\n }, {\\n \\\"type\\\": \\\"actions\\\",\\n \\\"elements\\\": [{\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"View Service\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"style\\\": \\\"primary\\\",\\n \\\"url\\\": \\\"{{.Core.Domain}}/service/{{.Service.Id}}\\\"\\n }, {\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"Go to Statping\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"url\\\": \\\"{{.Core.Domain}}\\\"\\n }]\\n }]\\n}\",\n \"failure_data\": \"{\\n \\\"blocks\\\": [{\\n \\\"type\\\": \\\"section\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\":warning: The service {{.Service.Name}} is currently offline! :warning:\\\"\\n }\\n }, {\\n \\\"type\\\": \\\"divider\\\"\\n }, {\\n \\\"type\\\": \\\"section\\\",\\n \\\"fields\\\": [{\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Service:*\\\\n{{.Service.Name}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*URL:*\\\\n{{.Service.Domain}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Status Code:*\\\\n{{.Service.LastStatusCode}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*When:*\\\\n{{.Failure.CreatedAt}}\\\"\\n }, {\\n \\\"type\\\": \\\"mrkdwn\\\",\\n \\\"text\\\": \\\"*Downtime:*\\\\n{{.Service.Downtime.Human}}\\\"\\n }, {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"*Error:*\\\\n{{.Failure.Issue}}\\\"\\n }]\\n }, {\\n \\\"type\\\": \\\"divider\\\"\\n }, {\\n \\\"type\\\": \\\"actions\\\",\\n \\\"elements\\\": [{\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"View Offline Service\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"style\\\": \\\"danger\\\",\\n \\\"url\\\": \\\"{{.Core.Domain}}/service/{{.Service.Id}}\\\"\\n }, {\\n \\\"type\\\": \\\"button\\\",\\n \\\"text\\\": {\\n \\\"type\\\": \\\"plain_text\\\",\\n \\\"text\\\": \\\"Go to Statping\\\",\\n \\\"emoji\\\": true\\n },\\n \\\"url\\\": \\\"{{.Core.Domain}}\\\"\\n }]\\n }]\\n}\"\n }\n}", "options": { "raw": {} } @@ -4798,7 +4805,10 @@ ], "body": { "mode": "raw", - "raw": "{\n \"title\": \"API Message\",\n \"description\": \"This is an example a upcoming message for a service!\",\n \"start_on\": \"2022-11-17T03:28:16.323797-08:00\",\n \"end_on\": \"2022-11-17T05:13:16.323798-08:00\",\n \"service\": 1,\n \"notify_users\": true,\n \"notify_method\": \"email\",\n \"notify_before\": 6,\n \"notify_before_scale\": \"hour\"\n}" + "raw": "{\n \"title\": \"API Message\",\n \"description\": \"This is an example a upcoming message for a service!\",\n \"start_on\": \"2022-11-17T03:28:16.323797-08:00\",\n \"end_on\": \"2022-11-17T05:13:16.323798-08:00\",\n \"service\": 1,\n \"notify_users\": true,\n \"notify_method\": \"email\",\n \"notify_before\": 6,\n \"notify_before_scale\": \"hour\"\n}", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/messages", @@ -5077,7 +5087,10 @@ "header": [], "body": { "mode": "raw", - "raw": "" + "raw": "", + "options": { + "raw": {} + } }, "url": { "raw": "{{endpoint}}/api/messages/{{message_id}}", @@ -6114,7 +6127,10 @@ "value": "0", "type": "text" } - ] + ], + "options": { + "formdata": {} + } }, "url": { "raw": "{{endpoint}}/oauth/slack", diff --git a/docker-compose.yml b/docker-compose.yml index 7f49c6fa..a276180a 100644 --- a/docker-compose.yml +++ b/docker-compose.yml @@ -3,7 +3,7 @@ version: '2.3' services: statping: container_name: statping - image: statping/statping:latest + image: statping/statping:dev restart: always volumes: - statping_data:/app diff --git a/frontend/config/sentry.properties b/frontend/config/sentry.properties index f3cd274e..20eefd4d 100644 --- a/frontend/config/sentry.properties +++ b/frontend/config/sentry.properties @@ -1,6 +1,6 @@ [defaults] org=Statping -project=statping_frontend +project=frontend url=https://sentry.statping.com [auth] diff --git a/frontend/package.json b/frontend/package.json index 46b06aac..760c5140 100644 --- a/frontend/package.json +++ b/frontend/package.json @@ -19,9 +19,7 @@ "@fortawesome/free-brands-svg-icons": "^5.12.1", "@fortawesome/free-solid-svg-icons": "^5.12.0", "@fortawesome/vue-fontawesome": "^0.1.9", - "@sentry/browser": "^5.20.1", - "@sentry/integrations": "^5.20.1", - "apexcharts": "^3.6.6", + "apexcharts": "^3.23.0", "axios": "^0.19.1", "codemirror-colorpicker": "^1.9.66", "core-js": "^3.6.5", diff --git a/frontend/public/banner.png b/frontend/public/banner.png deleted file mode 100644 index 0378161b..00000000 Binary files a/frontend/public/banner.png and /dev/null differ diff --git a/frontend/public/base.gohtml b/frontend/public/base.gohtml index 45ecbe3c..696d733f 100644 --- a/frontend/public/base.gohtml +++ b/frontend/public/base.gohtml @@ -10,37 +10,19 @@ - - - - - - - - - - - - - - - - + - - + - - {{if USE_CDN}} diff --git a/frontend/public/favicon.ico b/frontend/public/favicon.ico deleted file mode 100644 index 470003b4..00000000 Binary files a/frontend/public/favicon.ico and /dev/null differ diff --git a/frontend/public/favicon/android-icon-144x144.png b/frontend/public/favicon/android-icon-144x144.png deleted file mode 100644 index f55ea661..00000000 Binary files a/frontend/public/favicon/android-icon-144x144.png and /dev/null differ diff --git a/frontend/public/favicon/android-icon-192x192.png b/frontend/public/favicon/android-icon-192x192.png deleted file mode 100644 index 21a5596f..00000000 Binary files a/frontend/public/favicon/android-icon-192x192.png and /dev/null differ diff --git a/frontend/public/favicon/android-icon-36x36.png b/frontend/public/favicon/android-icon-36x36.png deleted file mode 100644 index 778e9de8..00000000 Binary files a/frontend/public/favicon/android-icon-36x36.png and /dev/null differ diff --git a/frontend/public/favicon/android-icon-48x48.png b/frontend/public/favicon/android-icon-48x48.png deleted file mode 100644 index 28e73a57..00000000 Binary files a/frontend/public/favicon/android-icon-48x48.png and /dev/null differ diff --git a/frontend/public/favicon/android-icon-72x72.png b/frontend/public/favicon/android-icon-72x72.png deleted file mode 100644 index 7af7307d..00000000 Binary files a/frontend/public/favicon/android-icon-72x72.png and /dev/null differ diff --git a/frontend/public/favicon/android-icon-96x96.png b/frontend/public/favicon/android-icon-96x96.png deleted file mode 100644 index ef0750b9..00000000 Binary files a/frontend/public/favicon/android-icon-96x96.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-114x114.png b/frontend/public/favicon/apple-icon-114x114.png deleted file mode 100644 index 6471883c..00000000 Binary files a/frontend/public/favicon/apple-icon-114x114.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-120x120.png b/frontend/public/favicon/apple-icon-120x120.png deleted file mode 100644 index 81c84a57..00000000 Binary files a/frontend/public/favicon/apple-icon-120x120.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-144x144.png b/frontend/public/favicon/apple-icon-144x144.png deleted file mode 100644 index f55ea661..00000000 Binary files a/frontend/public/favicon/apple-icon-144x144.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-152x152.png b/frontend/public/favicon/apple-icon-152x152.png deleted file mode 100644 index 9581c51d..00000000 Binary files a/frontend/public/favicon/apple-icon-152x152.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-180x180.png b/frontend/public/favicon/apple-icon-180x180.png deleted file mode 100644 index de8ea8c1..00000000 Binary files a/frontend/public/favicon/apple-icon-180x180.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-57x57.png b/frontend/public/favicon/apple-icon-57x57.png deleted file mode 100644 index b0c659ac..00000000 Binary files a/frontend/public/favicon/apple-icon-57x57.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-60x60.png b/frontend/public/favicon/apple-icon-60x60.png deleted file mode 100644 index 64360eff..00000000 Binary files a/frontend/public/favicon/apple-icon-60x60.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-72x72.png b/frontend/public/favicon/apple-icon-72x72.png deleted file mode 100644 index 7af7307d..00000000 Binary files a/frontend/public/favicon/apple-icon-72x72.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-76x76.png b/frontend/public/favicon/apple-icon-76x76.png deleted file mode 100644 index aeb5e674..00000000 Binary files a/frontend/public/favicon/apple-icon-76x76.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon-precomposed.png b/frontend/public/favicon/apple-icon-precomposed.png deleted file mode 100644 index 5b5d510a..00000000 Binary files a/frontend/public/favicon/apple-icon-precomposed.png and /dev/null differ diff --git a/frontend/public/favicon/apple-icon.png b/frontend/public/favicon/apple-icon.png deleted file mode 100644 index 5b5d510a..00000000 Binary files a/frontend/public/favicon/apple-icon.png and /dev/null differ diff --git a/frontend/public/favicon/browserconfig.xml b/frontend/public/favicon/browserconfig.xml deleted file mode 100644 index c5541482..00000000 --- a/frontend/public/favicon/browserconfig.xml +++ /dev/null @@ -1,2 +0,0 @@ - -#ffffff \ No newline at end of file diff --git a/frontend/public/favicon/favicon-16x16.png b/frontend/public/favicon/favicon-16x16.png deleted file mode 100644 index 0e072ef4..00000000 Binary files a/frontend/public/favicon/favicon-16x16.png and /dev/null differ diff --git a/frontend/public/favicon/favicon-32x32.png b/frontend/public/favicon/favicon-32x32.png deleted file mode 100644 index 98349d07..00000000 Binary files a/frontend/public/favicon/favicon-32x32.png and /dev/null differ diff --git a/frontend/public/favicon/favicon-96x96.png b/frontend/public/favicon/favicon-96x96.png deleted file mode 100644 index ef0750b9..00000000 Binary files a/frontend/public/favicon/favicon-96x96.png and /dev/null differ diff --git a/frontend/public/favicon/favicon.ico b/frontend/public/favicon/favicon.ico deleted file mode 100644 index 9c844c45..00000000 Binary files a/frontend/public/favicon/favicon.ico and /dev/null differ diff --git a/frontend/public/favicon/manifest.json b/frontend/public/favicon/manifest.json deleted file mode 100644 index 216d7249..00000000 --- a/frontend/public/favicon/manifest.json +++ /dev/null @@ -1,41 +0,0 @@ -{ - "name": "Statping", - "icons": [ - { - "src": "favicon\/android-icon-36x36.png", - "sizes": "36x36", - "type": "image\/png", - "density": "0.75" - }, - { - "src": "favicon\/android-icon-48x48.png", - "sizes": "48x48", - "type": "image\/png", - "density": "1.0" - }, - { - "src": "favicon\/android-icon-72x72.png", - "sizes": "72x72", - "type": "image\/png", - "density": "1.5" - }, - { - "src": "favicon\/android-icon-96x96.png", - "sizes": "96x96", - "type": "image\/png", - "density": "2.0" - }, - { - "src": "favicon\/android-icon-144x144.png", - "sizes": "144x144", - "type": "image\/png", - "density": "3.0" - }, - { - "src": "favicon\/android-icon-192x192.png", - "sizes": "192x192", - "type": "image\/png", - "density": "4.0" - } - ] -} diff --git a/frontend/public/favicon/ms-icon-144x144.png b/frontend/public/favicon/ms-icon-144x144.png deleted file mode 100644 index f55ea661..00000000 Binary files a/frontend/public/favicon/ms-icon-144x144.png and /dev/null differ diff --git a/frontend/public/favicon/ms-icon-150x150.png b/frontend/public/favicon/ms-icon-150x150.png deleted file mode 100644 index a88d7f11..00000000 Binary files a/frontend/public/favicon/ms-icon-150x150.png and /dev/null differ diff --git a/frontend/public/favicon/ms-icon-310x310.png b/frontend/public/favicon/ms-icon-310x310.png deleted file mode 100644 index c4c472c7..00000000 Binary files a/frontend/public/favicon/ms-icon-310x310.png and /dev/null differ diff --git a/frontend/public/favicon/ms-icon-70x70.png b/frontend/public/favicon/ms-icon-70x70.png deleted file mode 100644 index 1df5ea39..00000000 Binary files a/frontend/public/favicon/ms-icon-70x70.png and /dev/null differ diff --git a/frontend/public/favicon/social.png b/frontend/public/favicon/social.png deleted file mode 100644 index 4b1532ed..00000000 Binary files a/frontend/public/favicon/social.png and /dev/null differ diff --git a/frontend/public/index.html b/frontend/public/index.html index a0fee432..cf620e9a 100644 --- a/frontend/public/index.html +++ b/frontend/public/index.html @@ -5,7 +5,6 @@ - Statping diff --git a/frontend/src/API.js b/frontend/src/API.js index 3edd8702..3e62d295 100644 --- a/frontend/src/API.js +++ b/frontend/src/API.js @@ -7,8 +7,8 @@ const tokenKey = "statping_auth"; class Api { constructor() { - this.version = "0.90.67"; - this.commit = "7e121335791d2143a2eefd404dbcce83b8f46f61"; + this.version = "0.90.74"; + this.commit = "df8e1f73d9f7fdf218bc5c26130d7d8a6af6719a"; } async oauth() { @@ -200,14 +200,6 @@ class Api { return axios.get('api/renew').then(response => (response.data)) } - async cache() { - return axios.get('api/cache').then(response => (response.data)) - } - - async clearCache() { - return axios.get('api/clear_cache').then(response => (response.data)) - } - async logs() { return axios.get('api/logs').then(response => (response.data)) || [] } diff --git a/frontend/src/assets/banner.png b/frontend/src/assets/banner.png deleted file mode 100644 index 5aa272e1..00000000 Binary files a/frontend/src/assets/banner.png and /dev/null differ diff --git a/frontend/src/assets/logo.png b/frontend/src/assets/logo.png deleted file mode 100644 index 1b7c3d1c..00000000 Binary files a/frontend/src/assets/logo.png and /dev/null differ diff --git a/frontend/src/assets/scss/base.scss b/frontend/src/assets/scss/base.scss index 8143cde0..2a74d6ac 100644 --- a/frontend/src/assets/scss/base.scss +++ b/frontend/src/assets/scss/base.scss @@ -89,7 +89,7 @@ } .chartmarker SPAN { - font-size: 4pt; + font-size: 8pt; display: block; color: #b1b1b1; } diff --git a/frontend/src/components/Dashboard/Cache.vue b/frontend/src/components/Dashboard/Cache.vue deleted file mode 100644 index 5a0e3f38..00000000 --- a/frontend/src/components/Dashboard/Cache.vue +++ /dev/null @@ -1,53 +0,0 @@ - - - - - - diff --git a/frontend/src/components/Dashboard/ServiceEvents.vue b/frontend/src/components/Dashboard/ServiceEvents.vue index f325c4b9..8137fa32 100644 --- a/frontend/src/components/Dashboard/ServiceEvents.vue +++ b/frontend/src/components/Dashboard/ServiceEvents.vue @@ -23,7 +23,7 @@
No New Events - + Last failure was {{ago(service.last_error)}} ago.
diff --git a/frontend/src/components/Dashboard/ServiceInfo.vue b/frontend/src/components/Dashboard/ServiceInfo.vue index 79d9e3a4..944a26ec 100644 --- a/frontend/src/components/Dashboard/ServiceInfo.vue +++ b/frontend/src/components/Dashboard/ServiceInfo.vue @@ -9,21 +9,15 @@ -
+
-
+
-
- -
-
- -
-
+
@@ -44,7 +38,8 @@
@@ -91,10 +86,8 @@ hovered: false, hoverbtn: "", openTab: "", - set1: [], set2: [], loaded: false, - set1_name: "", set2_name: "", failures: null, visible: false @@ -111,7 +104,7 @@ this.hoverbtn = name }, unsetHover() { - this.hoverbtn = this.$t('uptime', [this.service.online_7_days]) + this.hoverbtn = this.$t('uptime') + " "+ this.service.online_7_days + "%" }, async setVisible(isVisible, entry) { if (isVisible && !this.visible) { @@ -126,9 +119,7 @@ this.uptime = await Api.service_uptime(this.service.id, this.toUnix(start), this.toUnix(end)) }, async loadInfo() { - this.set1 = await this.getHits(86400 * 7, "12h") - this.set1_name = this.calc(this.set1) - this.set2 = await this.getHits(86400, "60m") + this.set2 = await this.getHits(86400 * 3, "60m") this.set2_name = this.calc(this.set2) this.loaded = true }, diff --git a/frontend/src/components/Dashboard/ServiceSparkLine.vue b/frontend/src/components/Dashboard/ServiceSparkLine.vue index 08991ff1..e061efe7 100644 --- a/frontend/src/components/Dashboard/ServiceSparkLine.vue +++ b/frontend/src/components/Dashboard/ServiceSparkLine.vue @@ -57,13 +57,13 @@ let ts = w.globals.seriesX[seriesIndex][dataPointIndex]; const dt = new Date(ts).toLocaleDateString("en-us", timeoptions) let val = series[seriesIndex][dataPointIndex]; - return `
Average Response Time: ${this.humanTime(val)}${dt}
` + return `
Average Response Time: ${this.humanTime(val)}${dt}
` }, fixed: { enabled: true, position: 'bottomLeft', offsetX: 0, - offsetY: -30, + offsetY: -15, }, x: { show: true, diff --git a/frontend/src/forms/Login.vue b/frontend/src/forms/Login.vue index 928b953b..cdbf10a9 100644 --- a/frontend/src/forms/Login.vue +++ b/frontend/src/forms/Login.vue @@ -110,7 +110,7 @@ return "" }, GHlogin() { - window.location = `https://github.com/login/oauth/authorize?client_id=${this.oauth.gh_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/github")}&scope=user,repo` + window.location = `https://github.com/login/oauth/authorize?client_id=${this.oauth.gh_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/github")}&scope=read:user,read:org` }, Slacklogin() { window.location = `https://slack.com/oauth/authorize?client_id=${this.oauth.slack_client_id}&redirect_uri=${this.encode(this.core.domain+"/oauth/slack")}&scope=identity.basic` diff --git a/frontend/src/forms/Setup.vue b/frontend/src/forms/Setup.vue index f1f2ceb9..6e6f463f 100644 --- a/frontend/src/forms/Setup.vue +++ b/frontend/src/forms/Setup.vue @@ -1,7 +1,7 @@