diff --git a/.ci.sh b/.ci.sh index 0a39899..b42c23c 100644 --- a/.ci.sh +++ b/.ci.sh @@ -3,7 +3,7 @@ PATH=$PATH:"$(go env GOPATH)/bin" GO111MODULE=on ASC_URL=https://keybase.io/nirui/pgp_keys.asc -VERSION_VARIABLE=github.com/niruix/sshwifty/application.version +VERSION_VARIABLE=github.com/nirui/sshwifty/application.version BUILD_TARGETS="darwin/amd64 windows/386 windows/amd64 openbsd/386 openbsd/amd64 openbsd/arm openbsd/arm64 freebsd/386 freebsd/amd64 freebsd/arm freebsd/arm64 linux/386 linux/amd64 linux/arm linux/arm64 linux/riscv64 linux/ppc64 linux/ppc64le linux/mips linux/mipsle linux/mips64 linux/mips64le" DOCKER_BUILD_TARGETS="linux/amd64,linux/arm/v7,linux/arm64" diff --git a/.github/workflows/workflow.yml b/.github/workflows/workflow.yml index c71854b..884edcb 100644 --- a/.github/workflows/workflow.yml +++ b/.github/workflows/workflow.yml @@ -20,9 +20,9 @@ jobs: run: | export GITHUB_USER="${{ github.repository_owner }}" export GITHUB_USER_TOKEN="${{ secrets.GITHUB_TOKEN }}" + export DOCKER_HUB_USER="${{ secrets.DOCKER_HUB_USERNAME }}" export DOCKER_HUB_PASSWORD="${{ secrets.DOCKER_HUB_PASSWORD }}" export COVERALLS_TOKEN="${{ secrets.COVERALLS_TOKEN }}" - export DOCKER_HUB_USER="${{ github.repository_owner }}" export DOCKER_CUSTOM_COMMAND='echo "GitHub Action Build"' diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index 4aeb4a1..0000000 --- a/.travis.yml +++ /dev/null @@ -1,91 +0,0 @@ -language: go - -sudo: false - -env: - global: - - GO111MODULE=on - - ASC_URL=https://keybase.io/nirui/pgp_keys.asc - - PACKAGE=github.com/niruix/sshwifty - - VERSION_VARIABLE=github.com/niruix/sshwifty/application.version - - BUILD_TARGETS="darwin/amd64 windows/386 windows/amd64 openbsd/386 openbsd/amd64 openbsd/arm openbsd/arm64 freebsd/386 freebsd/amd64 freebsd/arm freebsd/arm64 linux/386 linux/amd64 linux/arm linux/arm64 linux/ppc64 linux/ppc64le linux/mips linux/mipsle linux/mips64 linux/mips64le" - - SSHWIFTY_VERSION=$(git describe --always --dirty='*' --tag) - - SSHWIFTY_COMMIT=$(git describe --always) - - SSHWIFTY_RELEASE=$([[ "$SSHWIFTY_VERSION" =~ ^[0-9]+\.[0-9]+\.[0-9]+\-[a-zA-Z0-9]+\-release$ ]] && echo "yes") - - SSHWIFTY_DEPLOY=$([[ "$SSHWIFTY_RELEASE" != "yes" || "$TRAVIS_TAG" == "" || "$GITHUB_USER" == "" || "$GITHUB_TOKEN" == "" ]] || echo "yes") - - SSHWIFTY_TEST_COVER=$([[ "$COVERALLS_TOKEN" == "" ]] || echo "yes") - -branches: - only: - - master - - dev - - /^[0-9]+\.[0-9]+\.[0-9]+\-[a-zA-Z0-9]+\-release$/ - -go: - - stable - -before_install: - - export - - nvm install node --latest-npm && nvm use node - - npm install && npm run generate - - | - if [[ "$SSHWIFTY_TEST_COVER" == "yes" ]]; then - go get github.com/go-playground/overalls - go get github.com/mattn/goveralls - fi - - | - if [[ "$SSHWIFTY_DEPLOY" == "yes" ]]; then - go get github.com/tcnksm/ghr - go get github.com/mitchellh/gox - fi - -script: - - go vet ./... - - npm run testonly - -after_success: - - | - if [[ "$SSHWIFTY_TEST_COVER" == "yes" ]]; then - overalls -project="$PACKAGE" -covermode=count - goveralls -coverprofile=./overalls.coverprofile -service travis-ci - fi - -before_deploy: - - | - if [[ "$SSHWIFTY_DEPLOY" == "yes" ]]; then - mkdir -p ./.tmp/deploy - curl "$ASC_URL" > ./.tmp/deploy/GPG.asc - cat ./.tmp/deploy/GPG.asc | gpg --import - CGO_ENABLED=0 gox -ldflags "-s -w -X $VERSION_VARIABLE=$SSHWIFTY_VERSION" -osarch "$BUILD_TARGETS" -output "./.tmp/deploy/{{.Dir}}_$(echo $SSHWIFTY_VERSION)_{{.OS}}_{{.Arch}}/{{.Dir}}_{{.OS}}_{{.Arch}}" - git archive --format tar --output "./.tmp/deploy/src" HEAD - echo "# Version $SSHWIFTY_VERSION" > ./.tmp/deploy/Note - echo >> ./.tmp/deploy/Note - echo "Following updates is included since the last release $(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))" >> ./.tmp/deploy/Note - git log $(git describe --abbrev=0 --tags $(git rev-list --tags --skip=1 --max-count=1))..HEAD --pretty=format:"- %h %s - (%an) %GK %G?" >> ./.tmp/deploy/Note - echo 'echo Preparing for $1 ...;' > prepare.sh - echo '(cd $1/ && find . -maxdepth 1 -type f ! -name "SUM.*" -exec sha512sum {} \; > SUM.sha512);' >> prepare.sh - echo '(cp *.md $1/);' >> prepare.sh - echo '(cp ./.tmp/deploy/GPG.asc $1/);' >> prepare.sh - echo '(cp ./.tmp/deploy/Note $1/);' >> prepare.sh - echo '(cp ./sshwifty.conf.example.json $1/);' >> prepare.sh - echo '(cp "./.tmp/deploy/src" $1/);' >> prepare.sh - echo '(cd $1/ && tar zpcvf "../$(basename $(pwd)).tar.gz" * --owner=0 --group=0);' >> prepare.sh - chmod +x ./prepare.sh - find ./.tmp/deploy/ -maxdepth 1 -type d ! -name "deploy" -exec ./prepare.sh {} \; - rm ./prepare.sh -f - find ./.tmp/deploy/ -maxdepth 1 -type d ! -name "deploy" -exec rm {} -rf \; - find ./.tmp/deploy/ -maxdepth 1 -type f -name "*.tar.gz" -execdir sha512sum {} \; > ./.tmp/deploy/SUM.sha512 - echo "$GITHUB_USER" > ./deploy_user - echo "$SSHWIFTY_VERSION-prebuild" > ./deploy_title - echo 'ghr -u "$(cat ./deploy_user)" -n "$(cat ./deploy_title)" -b "$(cat ./.tmp/deploy/Note)" -delete -prerelease "$(cat ./deploy_title)" ./.tmp/deploy' > ./deploy.sh - chmod +x ./deploy.sh - cat ./.tmp/deploy/SUM.sha512 - fi - -deploy: - provider: script - script: ./deploy.sh - skip_cleanup: true - on: - all_branches: true - condition: $SSHWIFTY_DEPLOY = yes diff --git a/README.md b/README.md index 8fb0ff0..32b0101 100644 --- a/README.md +++ b/README.md @@ -6,7 +6,7 @@ compatible (standard) web browser. ![Web Interface](Screenshot.png) -![Build Status](https://github.com/niruix/sshwifty/workflows/Sshwifty-CI/badge.svg) +![Build Status](https://github.com/nirui/sshwifty/workflows/Sshwifty-CI/badge.svg) ## Install @@ -18,7 +18,7 @@ Please be advised that those binaries is generated by an automatic proccess, the author of this project will NOT verify them. You have to try it at your owk risk. -[release]: https://github.com/niruix/sshwifty/releases +[release]: https://github.com/nirui/sshwifty/releases ### Docker Image @@ -66,7 +66,7 @@ Following tools is required in order to build the software from source code: To start the build process, execute: ``` -$ git clone https://github.com/niruix/sshwifty +$ git clone https://github.com/nirui/sshwifty $ cd sshwifty $ npm install $ npm run build diff --git a/application/application.go b/application/application.go index 31f4812..a2f2e09 100644 --- a/application/application.go +++ b/application/application.go @@ -26,10 +26,10 @@ import ( "sync" "syscall" - "github.com/niruix/sshwifty/application/command" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/server" + "github.com/nirui/sshwifty/application/command" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/server" ) // ProccessSignaller send signal to the running application diff --git a/application/command/commander.go b/application/command/commander.go index 94479a4..bef54ad 100644 --- a/application/command/commander.go +++ b/application/command/commander.go @@ -22,9 +22,9 @@ import ( "sync" "time" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/network" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/network" + "github.com/nirui/sshwifty/application/rw" ) // Configuration contains configuration data needed to run command diff --git a/application/command/commands.go b/application/command/commands.go index eaf3f8d..2135aeb 100644 --- a/application/command/commands.go +++ b/application/command/commands.go @@ -21,8 +21,8 @@ import ( "errors" "fmt" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/log" ) // Consts diff --git a/application/command/fsm.go b/application/command/fsm.go index 637fc12..107939b 100644 --- a/application/command/fsm.go +++ b/application/command/fsm.go @@ -20,7 +20,7 @@ package command import ( "errors" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/rw" ) // Errors diff --git a/application/command/handler.go b/application/command/handler.go index e45b68c..eabf50d 100644 --- a/application/command/handler.go +++ b/application/command/handler.go @@ -24,8 +24,8 @@ import ( "sync" "time" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/rw" ) // Errors diff --git a/application/command/handler_echo_test.go b/application/command/handler_echo_test.go index 35206e5..114b509 100644 --- a/application/command/handler_echo_test.go +++ b/application/command/handler_echo_test.go @@ -23,8 +23,8 @@ import ( "sync" "testing" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/rw" ) func testDummyFetchGen(data []byte) rw.FetchReaderFetcher { diff --git a/application/command/handler_stream_test.go b/application/command/handler_stream_test.go index 0040c7c..c542834 100644 --- a/application/command/handler_stream_test.go +++ b/application/command/handler_stream_test.go @@ -24,8 +24,8 @@ import ( "sync" "testing" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/rw" ) func testDummyFetchChainGen(dd <-chan []byte) rw.FetchReaderFetcher { diff --git a/application/command/streams.go b/application/command/streams.go index a3760ff..0d120eb 100644 --- a/application/command/streams.go +++ b/application/command/streams.go @@ -21,8 +21,8 @@ import ( "errors" "io" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/rw" ) // Errors diff --git a/application/commands/address.go b/application/commands/address.go index bcf036e..3e66d4a 100644 --- a/application/commands/address.go +++ b/application/commands/address.go @@ -22,7 +22,7 @@ import ( "net" "strconv" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/rw" ) //Errors diff --git a/application/commands/commands.go b/application/commands/commands.go index 5d99b5e..bc80720 100644 --- a/application/commands/commands.go +++ b/application/commands/commands.go @@ -18,7 +18,7 @@ package commands import ( - "github.com/niruix/sshwifty/application/command" + "github.com/nirui/sshwifty/application/command" ) // New creates a new commands group diff --git a/application/commands/integer.go b/application/commands/integer.go index 1a23964..4139f2a 100644 --- a/application/commands/integer.go +++ b/application/commands/integer.go @@ -20,7 +20,7 @@ package commands import ( "errors" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/rw" ) // Errors diff --git a/application/commands/ssh.go b/application/commands/ssh.go index a4cf68b..e57dd72 100644 --- a/application/commands/ssh.go +++ b/application/commands/ssh.go @@ -26,11 +26,11 @@ import ( "golang.org/x/crypto/ssh" - "github.com/niruix/sshwifty/application/command" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/network" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/command" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/network" + "github.com/nirui/sshwifty/application/rw" ) // Server -> client signal Consts diff --git a/application/commands/string.go b/application/commands/string.go index 552a84a..c98c3ba 100644 --- a/application/commands/string.go +++ b/application/commands/string.go @@ -20,7 +20,7 @@ package commands import ( "errors" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/rw" ) // Errors diff --git a/application/commands/telnet.go b/application/commands/telnet.go index 48bd7d7..6d9830c 100644 --- a/application/commands/telnet.go +++ b/application/commands/telnet.go @@ -23,11 +23,11 @@ import ( "sync" "time" - "github.com/niruix/sshwifty/application/command" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/network" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/command" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/network" + "github.com/nirui/sshwifty/application/rw" ) // Errors diff --git a/application/configuration/config.go b/application/configuration/config.go index a095b24..a564d4c 100644 --- a/application/configuration/config.go +++ b/application/configuration/config.go @@ -23,7 +23,7 @@ import ( "net" "time" - "github.com/niruix/sshwifty/application/network" + "github.com/nirui/sshwifty/application/network" ) // Server contains configuration of a HTTP server diff --git a/application/configuration/loader.go b/application/configuration/loader.go index 366fa08..85e39b4 100644 --- a/application/configuration/loader.go +++ b/application/configuration/loader.go @@ -18,7 +18,7 @@ package configuration import ( - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) // PresetReloader reloads preset diff --git a/application/configuration/loader_direct.go b/application/configuration/loader_direct.go index 796b044..bcbb50a 100644 --- a/application/configuration/loader_direct.go +++ b/application/configuration/loader_direct.go @@ -18,7 +18,7 @@ package configuration import ( - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) const ( diff --git a/application/configuration/loader_enviro.go b/application/configuration/loader_enviro.go index b97ad6b..115b3af 100644 --- a/application/configuration/loader_enviro.go +++ b/application/configuration/loader_enviro.go @@ -25,7 +25,7 @@ import ( "strings" "time" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) const ( diff --git a/application/configuration/loader_file.go b/application/configuration/loader_file.go index 0f0f4f3..8327271 100644 --- a/application/configuration/loader_file.go +++ b/application/configuration/loader_file.go @@ -27,7 +27,7 @@ import ( "strings" "time" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) const ( diff --git a/application/configuration/loader_redundant.go b/application/configuration/loader_redundant.go index b85c99c..ec9799a 100644 --- a/application/configuration/loader_redundant.go +++ b/application/configuration/loader_redundant.go @@ -20,7 +20,7 @@ package configuration import ( "fmt" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) const ( diff --git a/application/controller/base.go b/application/controller/base.go index 92adfe8..ca2b140 100644 --- a/application/controller/base.go +++ b/application/controller/base.go @@ -21,7 +21,7 @@ import ( "net/http" "strings" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) // Error diff --git a/application/controller/controller.go b/application/controller/controller.go index a4fd07e..f6a1158 100644 --- a/application/controller/controller.go +++ b/application/controller/controller.go @@ -22,10 +22,10 @@ import ( "strings" "time" - "github.com/niruix/sshwifty/application/command" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/server" + "github.com/nirui/sshwifty/application/command" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/server" ) // Errors diff --git a/application/controller/failure.go b/application/controller/failure.go index 6607efa..743811b 100644 --- a/application/controller/failure.go +++ b/application/controller/failure.go @@ -20,7 +20,7 @@ package controller import ( "net/http" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) func serveFailure( diff --git a/application/controller/home.go b/application/controller/home.go index 5261d88..d724829 100644 --- a/application/controller/home.go +++ b/application/controller/home.go @@ -20,7 +20,7 @@ package controller import ( "net/http" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) // home controller diff --git a/application/controller/socket.go b/application/controller/socket.go index c3412dd..61733aa 100644 --- a/application/controller/socket.go +++ b/application/controller/socket.go @@ -33,10 +33,10 @@ import ( "github.com/gorilla/websocket" - "github.com/niruix/sshwifty/application/command" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/log" - "github.com/niruix/sshwifty/application/rw" + "github.com/nirui/sshwifty/application/command" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/log" + "github.com/nirui/sshwifty/application/rw" ) // Errors diff --git a/application/controller/socket_verify.go b/application/controller/socket_verify.go index 7eb6e83..0ebc309 100644 --- a/application/controller/socket_verify.go +++ b/application/controller/socket_verify.go @@ -26,8 +26,8 @@ import ( "strconv" "time" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/log" ) type socketVerification struct { diff --git a/application/controller/static.go b/application/controller/static.go index 18232ee..405f48e 100644 --- a/application/controller/static.go +++ b/application/controller/static.go @@ -26,7 +26,7 @@ import ( "strings" "time" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/log" ) type staticData struct { diff --git a/application/controller/static_page_generater/main.go b/application/controller/static_page_generater/main.go index e811249..b4ebd73 100644 --- a/application/controller/static_page_generater/main.go +++ b/application/controller/static_page_generater/main.go @@ -35,7 +35,7 @@ import ( ) const ( - parentPackage = "github.com/niruix/sshwifty/application/controller" + parentPackage = "github.com/nirui/sshwifty/application/controller" ) const ( @@ -199,7 +199,7 @@ var ( // // Copyright (C) {{ .Date.Year }} Rui NI (nirui@gmx.com) // -// https://github.com/niruix/sshwifty +// https://github.com/nirui/sshwifty // // This file is generated at {{ .Date.Format "Mon, 02 Jan 2006 15:04:05 MST" }} // by "go generate", DO NOT EDIT! Also, do not open this file, it maybe too large diff --git a/application/plate.go b/application/plate.go index 8c3145d..8736bb0 100644 --- a/application/plate.go +++ b/application/plate.go @@ -22,7 +22,7 @@ const ( Name = "Sshwifty" FullName = "Sshwifty Web SSH Client" Author = "Rui NI " - URL = "https://github.com/niruix/sshwifty" + URL = "https://github.com/nirui/sshwifty" ) // Banner message diff --git a/application/server/conn.go b/application/server/conn.go index 74e1c60..a42daed 100644 --- a/application/server/conn.go +++ b/application/server/conn.go @@ -21,7 +21,7 @@ import ( "net" "time" - "github.com/niruix/sshwifty/application/network" + "github.com/nirui/sshwifty/application/network" ) var ( diff --git a/application/server/server.go b/application/server/server.go index 5fef5cd..ea053ef 100644 --- a/application/server/server.go +++ b/application/server/server.go @@ -27,9 +27,9 @@ import ( "sync" "time" - "github.com/niruix/sshwifty/application/command" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application/command" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/log" ) type dumpWrite struct{} diff --git a/go.mod b/go.mod index 2b8a8be..ff2a056 100644 --- a/go.mod +++ b/go.mod @@ -15,7 +15,7 @@ // You should have received a copy of the GNU Affero General Public License // along with this program. If not, see . -module github.com/niruix/sshwifty +module github.com/nirui/sshwifty go 1.13 diff --git a/sshwifty.go b/sshwifty.go index 00379c7..f998bc0 100644 --- a/sshwifty.go +++ b/sshwifty.go @@ -20,11 +20,11 @@ package main import ( "os" - "github.com/niruix/sshwifty/application" - "github.com/niruix/sshwifty/application/commands" - "github.com/niruix/sshwifty/application/configuration" - "github.com/niruix/sshwifty/application/controller" - "github.com/niruix/sshwifty/application/log" + "github.com/nirui/sshwifty/application" + "github.com/nirui/sshwifty/application/commands" + "github.com/nirui/sshwifty/application/configuration" + "github.com/nirui/sshwifty/application/controller" + "github.com/nirui/sshwifty/application/log" ) func main() { diff --git a/ui/auth.vue b/ui/auth.vue index c51f3eb..9b95cac 100644 --- a/ui/auth.vue +++ b/ui/auth.vue @@ -28,7 +28,7 @@
Passphrase @@ -49,7 +49,7 @@ class="message" > A valid password is required in order to use this - Sshwifty + Sshwifty instance
@@ -79,20 +79,20 @@ export default { } el.focus(); - } - } + }, + }, }, props: { error: { type: String, - default: "" - } + default: "", + }, }, data() { return { submitting: false, passphrase: "", - passphraseErr: "" + passphraseErr: "", }; }, watch: { @@ -100,7 +100,7 @@ export default { if (newVal.length > 0) { this.submitting = false; } - } + }, }, mounted() {}, methods: { @@ -120,7 +120,7 @@ export default { this.passphraseErr = ""; this.$emit("auth", this.passphrase); - } - } + }, + }, }; diff --git a/ui/index.html b/ui/index.html index 67896f9..6d8b6ca 100644 --- a/ui/index.html +++ b/ui/index.html @@ -45,7 +45,7 @@ Copyright © 2019-2020 Rui NI <nirui@gmx.com>

- + Source code diff --git a/ui/widgets/connect.vue b/ui/widgets/connect.vue index e53105f..b2e17aa 100644 --- a/ui/widgets/connect.vue +++ b/ui/widgets/connect.vue @@ -67,7 +67,7 @@

Sshwifty is a free software, you can deploy it on your own trusted infrastructure. - Learn more

@@ -92,54 +92,54 @@ export default { window: Window, "connect-switch": ConnectSwitch, "connect-known": ConnectKnown, - "connect-new": ConnectNew + "connect-new": ConnectNew, }, props: { display: { type: Boolean, - default: false + default: false, }, inputting: { type: Boolean, - default: false + default: false, }, presets: { type: Array, - default: () => [] + default: () => [], }, restrictedToPresets: { type: Boolean, - default: () => false + default: () => false, }, knowns: { type: Array, - default: () => [] + default: () => [], }, knownsLauncherBuilder: { type: Function, - default: () => [] + default: () => [], }, knownsExport: { type: Function, - default: () => [] + default: () => [], }, knownsImport: { type: Function, - default: () => [] + default: () => [], }, connectors: { type: Array, - default: () => [] + default: () => [], }, busy: { type: Boolean, - default: false - } + default: false, + }, }, data() { return { tab: "new", - canSelect: true + canSelect: true, }; }, methods: { @@ -184,7 +184,7 @@ export default { } this.$emit("known-clear-session", uid); - } - } + }, + }, };