From 455f667e887647cb583fc6a72066b21bd50b1704 Mon Sep 17 00:00:00 2001 From: Jonatan Nilsson Date: Wed, 30 Mar 2022 08:33:27 +0000 Subject: [PATCH] header: Fix highlighting not working properly in log --- appveyor.yml | 4 ++++ client/header.js | 2 +- package.json | 2 +- 3 files changed, 6 insertions(+), 2 deletions(-) diff --git a/appveyor.yml b/appveyor.yml index ec5083e..26604af 100644 --- a/appveyor.yml +++ b/appveyor.yml @@ -23,6 +23,7 @@ environment: build_script: - sh: | + mkdir /lib64 ln -s /lib/libc.musl-x86_64.so.1 /lib64/ld-linux-x86-64.so.2 chmod -R 777 /appveyor/projects npm install @@ -59,6 +60,9 @@ on_success: -H "Authorization: token $deploytoken" \ -F "attachment=@${CURR_VER}_build-sc.7z" \ https://git.nfp.is/api/v1/repos/$APPVEYOR_REPO_NAME/releases/$RELEASE_ID/assets + + echo "Deplying to production" + curl -X POST http://192.168.93.51:8881/update/manager | jq fi # on build failure diff --git a/client/header.js b/client/header.js index a5001b2..537758e 100644 --- a/client/header.js +++ b/client/header.js @@ -26,7 +26,7 @@ const Header = { m('div.seperator'), m(m.route.Link, { href: '/log', - class: path === '/log' ? 'active' : '', + class: path.startsWith('/log') ? 'active' : '', }, 'Log'), m('div.seperator'), m(m.route.Link, { diff --git a/package.json b/package.json index 38aa4da..102187b 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "sc-manager", - "version": "2.0.0", + "version": "2.0.1", "description": "", "main": "index.js", "scripts": {