Skip to content

Commit 1440d76

Browse files
committed
add license header
1 parent 4bf91f1 commit 1440d76

File tree

128 files changed

+176
-104
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

128 files changed

+176
-104
lines changed

Dockerfile

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
# builder for backend
23
FROM golang:1.13.5-alpine AS builder
34

Makefile

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
# Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
2+
13
test:
24
GO_TESTING=1 go test --cover -covermode=count -coverprofile=coverage.out ./...
35

build.sh

+2
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,7 @@
11
#!/bin/bash
22

3+
# Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
4+
35
# Reference:
46
# https://github.com/golang/go/blob/master/src/go/build/syslist.go
57
os_archs=(

cmd/README.md

-13
This file was deleted.

cmd/user/main.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package main
33

44
import (

docker-compose.yml

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
# Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
version: "3"
23
services:
34
# 网关

frontend/assets/README.md

-7
This file was deleted.

frontend/components/README.md

-7
This file was deleted.

frontend/components/connection_re_play_dialog.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<el-dialog title="终端回放" :visible.sync="isShow" width="1255px">
34
<replayer

frontend/components/console.vue

+2
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,5 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
2+
13
<template>
24
<div
35
v-if="hosts && hosts.length"

frontend/components/invite_dialog.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<el-dialog title="邀请成员加入" :visible.sync="isShow">
34
<el-form

frontend/components/profile.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<el-dialog
34
class="profile-dialog"

frontend/components/replayer.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<div style="position: relative">
34
<div class="ctrl-bar">

frontend/components/team_mutation_dialog.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<el-dialog
34
:title="type === 'create' ? '创建团队' : '更新团队'"

frontend/components/terminal.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<div style="height: 100%;" ref="container"></div>
34
</template>

frontend/layouts/README.md

-7
This file was deleted.

frontend/layouts/default.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<el-container style="height: 100vh;">
34
<el-aside width="200px" class="aside">

frontend/layouts/empty.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<nuxt />
34
</template>

frontend/layouts/entry.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<nuxt />
34
</template>

frontend/nuxt.config.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
export default {
23
mode: 'universal',
34
/*

frontend/pages/host/index.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<div id="host-page">
34
<el-row :gutter="20">

frontend/pages/host/mutation.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<div class="main">
34
<el-card shadow="never">

frontend/pages/index.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<div></div>
34
</template>

frontend/pages/login.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<div class="login-container">
34
<div id="login-form">

frontend/pages/register.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<div class="login-container">
34
<div id="login-form">

frontend/pages/replay/_id.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<replayer
34
:rows="0"

frontend/pages/team/index.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<div id="team-page" class="main">
34
<template v-if="currentWorkspace">

frontend/pages/tty/_id.vue

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
<!-- Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0. -->
12
<template>
23
<terminal :rows="0" class="terminal" ref="terminal" :host="host" />
34
</template>

frontend/plugins/README.md

-7
This file was deleted.

frontend/plugins/axios.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
const TOKEN_KEY = 'Authorization'
23

34
export default function({ store, $axios, redirect, req, res }) {

frontend/plugins/dateformat.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
import Vue from 'vue'
23
import format from 'date-fns/format'
34

frontend/plugins/element-ui.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
import Vue from 'vue'
23

34
import {

frontend/scripts/clean-build.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
const fs = require('fs')
23
const path = require('path')
34

frontend/static/README.md

-11
This file was deleted.

frontend/store/README.md

-10
This file was deleted.

frontend/store/console.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
export const state = () => ({
23
hosts: [], // 当前正在连接的服务器
34
currentHostId: null, // 当前正在连接的服务器

frontend/store/host.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
export const state = () => ({})
23

34
export const getters = {}

frontend/store/index.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
import { parse as cookieParse } from 'cookie'
23

34
export const state = () => ({

frontend/store/team.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
export const state = () => ({})
23

34
export const getters = {}

frontend/store/user.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
import cookie from 'js-cookie'
23

34
export const state = () => ({

frontend/store/workspace.js

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
import cookie from 'js-cookie'
23

34
export const state = () => ({

internal/app/config/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package config
33

44
import (

internal/app/config/database.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package config
33

44
import (

internal/app/config/redis.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package config
33

44
import (

internal/app/config/user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package config
33

44
import (

internal/app/db/db.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package db
33

44
import (

internal/app/db/model_host.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package db
33

44
import (

internal/app/db/model_host_connection_record.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package db
33

44
import (

internal/app/db/model_host_record.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package db
23

34
import (

internal/app/db/model_oauth.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package db
33

44
import (

internal/app/db/model_team.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package db
23

34
import (

internal/app/db/model_team_member.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package db
33

44
import (

internal/app/db/model_team_member_invite.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package db
23

34
import (

internal/app/db/model_user.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package db
33

44
import (

internal/app/exception/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package exception
33

44
var (

internal/app/exception/core.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package exception
33

44
import "fmt"

internal/app/exception/core_test.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package exception_test
33

44
import (

internal/app/host/collaborator_add.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package host
23

34
import (

internal/app/host/collaborator_remove.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package host
23

34
import (

internal/app/host/connection.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package host
33

44
import (

internal/app/host/create.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package host
23

34
import (

internal/app/host/delete.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package host
23

34
import (

internal/app/host/query.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package host
23

34
import (

internal/app/host/transfer.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package host
23

34
import (

internal/app/host/update.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package host
23

34
import (

internal/app/middleware/authenticate.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package middleware
33

44
import (

internal/app/middleware/common.go

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
// Copyright 2020 Axetroy. All rights reserved. Apache License 2.0.
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
22
package middleware
33

44
import (

internal/app/middleware/cors.go

+1
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
1+
// Copyright 2019-2020 Axetroy. All rights reserved. Apache License 2.0.
12
package middleware
23

34
import (

0 commit comments

Comments
 (0)