diff --git a/spug_api/apps/account/__init__.py b/spug_api/apps/account/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/account/__init__.py +++ b/spug_api/apps/account/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/account/management/commands/useradd.py b/spug_api/apps/account/management/commands/useradd.py index b69a156..4ad540f 100644 --- a/spug_api/apps/account/management/commands/useradd.py +++ b/spug_api/apps/account/management/commands/useradd.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.core.management.base import BaseCommand from apps.account.models import User diff --git a/spug_api/apps/account/models.py b/spug_api/apps/account/models.py index 87f5a00..914d3e7 100644 --- a/spug_api/apps/account/models.py +++ b/spug_api/apps/account/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from django.contrib.auth.hashers import make_password, check_password diff --git a/spug_api/apps/account/urls.py b/spug_api/apps/account/urls.py index cda6563..d13ef8e 100644 --- a/spug_api/apps/account/urls.py +++ b/spug_api/apps/account/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.conf.urls import url from apps.account.views import * diff --git a/spug_api/apps/account/views.py b/spug_api/apps/account/views.py index 372d3fc..0962cf8 100644 --- a/spug_api/apps/account/views.py +++ b/spug_api/apps/account/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.core.cache import cache from django.views.generic import View from django.db.models import F diff --git a/spug_api/apps/alarm/__init__.py b/spug_api/apps/alarm/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/alarm/__init__.py +++ b/spug_api/apps/alarm/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/alarm/models.py b/spug_api/apps/alarm/models.py index 429b3b8..1fa175e 100644 --- a/spug_api/apps/alarm/models.py +++ b/spug_api/apps/alarm/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from apps.account.models import User diff --git a/spug_api/apps/alarm/urls.py b/spug_api/apps/alarm/urls.py index 5b21358..537b994 100644 --- a/spug_api/apps/alarm/urls.py +++ b/spug_api/apps/alarm/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/alarm/utils.py b/spug_api/apps/alarm/utils.py index a903965..08c474b 100644 --- a/spug_api/apps/alarm/utils.py +++ b/spug_api/apps/alarm/utils.py @@ -1,3 +1,5 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Released under the MIT License. from apps.alarm.models import Alarm from datetime import datetime, timedelta diff --git a/spug_api/apps/alarm/views.py b/spug_api/apps/alarm/views.py index 4850b8c..fb6347b 100644 --- a/spug_api/apps/alarm/views.py +++ b/spug_api/apps/alarm/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from libs import json_response, JsonParser, Argument from apps.alarm.models import Alarm, Group, Contact diff --git a/spug_api/apps/apis/__init__.py b/spug_api/apps/apis/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/apis/__init__.py +++ b/spug_api/apps/apis/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/apis/config.py b/spug_api/apps/apis/config.py index 61ed0cd..7b34916 100644 --- a/spug_api/apps/apis/config.py +++ b/spug_api/apps/apis/config.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.http.response import HttpResponse from django_redis import get_redis_connection from apps.config.models import Config, Service, Environment diff --git a/spug_api/apps/apis/urls.py b/spug_api/apps/apis/urls.py index 5cbac86..fbe5265 100644 --- a/spug_api/apps/apis/urls.py +++ b/spug_api/apps/apis/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from apps.apis import config diff --git a/spug_api/apps/app/__init__.py b/spug_api/apps/app/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/app/__init__.py +++ b/spug_api/apps/app/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/app/models.py b/spug_api/apps/app/models.py index ae8c77c..3da9dac 100644 --- a/spug_api/apps/app/models.py +++ b/spug_api/apps/app/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from apps.account.models import User diff --git a/spug_api/apps/app/urls.py b/spug_api/apps/app/urls.py index 4ea56a4..1200006 100644 --- a/spug_api/apps/app/urls.py +++ b/spug_api/apps/app/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/app/utils.py b/spug_api/apps/app/utils.py index cbc6d99..0a51f63 100644 --- a/spug_api/apps/app/utils.py +++ b/spug_api/apps/app/utils.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.conf import settings from apps.app.models import Deploy from libs.gitlib import Git diff --git a/spug_api/apps/app/views.py b/spug_api/apps/app/views.py index 986f176..6647520 100644 --- a/spug_api/apps/app/views.py +++ b/spug_api/apps/app/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from django.db.models import F from libs import JsonParser, Argument, json_response diff --git a/spug_api/apps/config/__init__.py b/spug_api/apps/config/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/config/__init__.py +++ b/spug_api/apps/config/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/config/models.py b/spug_api/apps/config/models.py index 37704f5..b787f00 100644 --- a/spug_api/apps/config/models.py +++ b/spug_api/apps/config/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from apps.account.models import User diff --git a/spug_api/apps/config/urls.py b/spug_api/apps/config/urls.py index 2cbc9c3..a96b30e 100644 --- a/spug_api/apps/config/urls.py +++ b/spug_api/apps/config/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/config/views.py b/spug_api/apps/config/views.py index 6c66fa3..60e7aeb 100644 --- a/spug_api/apps/config/views.py +++ b/spug_api/apps/config/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from django.db.models import F from libs import json_response, JsonParser, Argument diff --git a/spug_api/apps/deploy/__init__.py b/spug_api/apps/deploy/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/deploy/__init__.py +++ b/spug_api/apps/deploy/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/deploy/models.py b/spug_api/apps/deploy/models.py index 51e72b6..aae8a0a 100644 --- a/spug_api/apps/deploy/models.py +++ b/spug_api/apps/deploy/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from apps.account.models import User diff --git a/spug_api/apps/deploy/urls.py b/spug_api/apps/deploy/urls.py index dafba11..c4d38d6 100644 --- a/spug_api/apps/deploy/urls.py +++ b/spug_api/apps/deploy/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/deploy/utils.py b/spug_api/apps/deploy/utils.py index 3385b9c..2daf53b 100644 --- a/spug_api/apps/deploy/utils.py +++ b/spug_api/apps/deploy/utils.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django_redis import get_redis_connection from django.conf import settings from libs.utils import AttrDict, human_time diff --git a/spug_api/apps/deploy/views.py b/spug_api/apps/deploy/views.py index 9b8c9c8..02164e4 100644 --- a/spug_api/apps/deploy/views.py +++ b/spug_api/apps/deploy/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from django.db.models import F from libs import json_response, JsonParser, Argument, human_datetime, human_time diff --git a/spug_api/apps/exec/__init__.py b/spug_api/apps/exec/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/exec/__init__.py +++ b/spug_api/apps/exec/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/exec/models.py b/spug_api/apps/exec/models.py index ae39b32..20719c1 100644 --- a/spug_api/apps/exec/models.py +++ b/spug_api/apps/exec/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from apps.account.models import User diff --git a/spug_api/apps/exec/urls.py b/spug_api/apps/exec/urls.py index 5019c92..0484e5f 100644 --- a/spug_api/apps/exec/urls.py +++ b/spug_api/apps/exec/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.conf.urls import url from .views import * diff --git a/spug_api/apps/exec/views.py b/spug_api/apps/exec/views.py index 433f4f1..c859bbd 100644 --- a/spug_api/apps/exec/views.py +++ b/spug_api/apps/exec/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from libs import json_response, JsonParser, Argument, human_datetime from libs.channel import Channel diff --git a/spug_api/apps/home/__init__.py b/spug_api/apps/home/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/home/__init__.py +++ b/spug_api/apps/home/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/home/urls.py b/spug_api/apps/home/urls.py index 0637e8a..42531c2 100644 --- a/spug_api/apps/home/urls.py +++ b/spug_api/apps/home/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/home/views.py b/spug_api/apps/home/views.py index 14438dd..0d8dbbc 100644 --- a/spug_api/apps/home/views.py +++ b/spug_api/apps/home/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db.models import F from apps.app.models import App from apps.host.models import Host diff --git a/spug_api/apps/host/__init__.py b/spug_api/apps/host/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/host/__init__.py +++ b/spug_api/apps/host/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/host/models.py b/spug_api/apps/host/models.py index 95b8e26..76c082a 100644 --- a/spug_api/apps/host/models.py +++ b/spug_api/apps/host/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from apps.account.models import User diff --git a/spug_api/apps/host/urls.py b/spug_api/apps/host/urls.py index 0937203..7be76ea 100644 --- a/spug_api/apps/host/urls.py +++ b/spug_api/apps/host/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/host/views.py b/spug_api/apps/host/views.py index 7fd6fdb..ba3f488 100644 --- a/spug_api/apps/host/views.py +++ b/spug_api/apps/host/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from django.shortcuts import render from django.http.response import HttpResponseBadRequest diff --git a/spug_api/apps/monitor/__init__.py b/spug_api/apps/monitor/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/monitor/__init__.py +++ b/spug_api/apps/monitor/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/monitor/executors.py b/spug_api/apps/monitor/executors.py index fe5814b..2df3697 100644 --- a/spug_api/apps/monitor/executors.py +++ b/spug_api/apps/monitor/executors.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from libs.ssh import SSH from apps.host.models import Host from apps.setting.utils import AppSetting diff --git a/spug_api/apps/monitor/management/commands/runmonitor.py b/spug_api/apps/monitor/management/commands/runmonitor.py index 2ba3b7a..5a26432 100644 --- a/spug_api/apps/monitor/management/commands/runmonitor.py +++ b/spug_api/apps/monitor/management/commands/runmonitor.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.core.management.base import BaseCommand from apps.monitor.scheduler import Scheduler diff --git a/spug_api/apps/monitor/models.py b/spug_api/apps/monitor/models.py index 625bd26..19010c9 100644 --- a/spug_api/apps/monitor/models.py +++ b/spug_api/apps/monitor/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from apps.account.models import User diff --git a/spug_api/apps/monitor/scheduler.py b/spug_api/apps/monitor/scheduler.py index cb66780..9b6ceb1 100644 --- a/spug_api/apps/monitor/scheduler.py +++ b/spug_api/apps/monitor/scheduler.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.triggers.interval import IntervalTrigger from apscheduler import events diff --git a/spug_api/apps/monitor/urls.py b/spug_api/apps/monitor/urls.py index dc08786..6f578a1 100644 --- a/spug_api/apps/monitor/urls.py +++ b/spug_api/apps/monitor/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/monitor/utils.py b/spug_api/apps/monitor/utils.py index f8527ec..faafd8a 100644 --- a/spug_api/apps/monitor/utils.py +++ b/spug_api/apps/monitor/utils.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. def seconds_to_human(seconds): text = '' if seconds > 3600: diff --git a/spug_api/apps/monitor/views.py b/spug_api/apps/monitor/views.py index f889a10..85fa265 100644 --- a/spug_api/apps/monitor/views.py +++ b/spug_api/apps/monitor/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from libs import json_response, JsonParser, Argument, human_datetime from apps.monitor.models import Detection diff --git a/spug_api/apps/notify/__init__.py b/spug_api/apps/notify/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/notify/__init__.py +++ b/spug_api/apps/notify/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/notify/models.py b/spug_api/apps/notify/models.py index 54d22f8..afdb316 100644 --- a/spug_api/apps/notify/models.py +++ b/spug_api/apps/notify/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime diff --git a/spug_api/apps/notify/urls.py b/spug_api/apps/notify/urls.py index 2174598..f8a0df1 100644 --- a/spug_api/apps/notify/urls.py +++ b/spug_api/apps/notify/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/notify/views.py b/spug_api/apps/notify/views.py index c8da9b0..db2df19 100644 --- a/spug_api/apps/notify/views.py +++ b/spug_api/apps/notify/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from apps.notify.models import Notify from libs import json_response, JsonParser, Argument diff --git a/spug_api/apps/schedule/__init__.py b/spug_api/apps/schedule/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/schedule/__init__.py +++ b/spug_api/apps/schedule/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/schedule/executors.py b/spug_api/apps/schedule/executors.py index 495e583..3cb7dbb 100644 --- a/spug_api/apps/schedule/executors.py +++ b/spug_api/apps/schedule/executors.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from queue import Queue from threading import Thread from libs.ssh import SSH diff --git a/spug_api/apps/schedule/management/commands/runscheduler.py b/spug_api/apps/schedule/management/commands/runscheduler.py index 216ae93..3093848 100644 --- a/spug_api/apps/schedule/management/commands/runscheduler.py +++ b/spug_api/apps/schedule/management/commands/runscheduler.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.core.management.base import BaseCommand from apps.schedule.scheduler import Scheduler diff --git a/spug_api/apps/schedule/models.py b/spug_api/apps/schedule/models.py index 9ebca29..f28b522 100644 --- a/spug_api/apps/schedule/models.py +++ b/spug_api/apps/schedule/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin, human_datetime from apps.account.models import User diff --git a/spug_api/apps/schedule/scheduler.py b/spug_api/apps/schedule/scheduler.py index b764791..c66b4d6 100644 --- a/spug_api/apps/schedule/scheduler.py +++ b/spug_api/apps/schedule/scheduler.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from apscheduler.schedulers.background import BackgroundScheduler from apscheduler.triggers.interval import IntervalTrigger from apscheduler.triggers.date import DateTrigger @@ -85,7 +88,7 @@ class Scheduler: def _init_builtin_jobs(self): self.scheduler.add_job(auto_clean_records, 'cron', hour=0, minute=0) - + def _init(self): self.scheduler.start() self._init_builtin_jobs() diff --git a/spug_api/apps/schedule/urls.py b/spug_api/apps/schedule/urls.py index 160da03..7f6a220 100644 --- a/spug_api/apps/schedule/urls.py +++ b/spug_api/apps/schedule/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.conf.urls import url from django.urls import path diff --git a/spug_api/apps/schedule/views.py b/spug_api/apps/schedule/views.py index fc28ef0..05dd52d 100644 --- a/spug_api/apps/schedule/views.py +++ b/spug_api/apps/schedule/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from django_redis import get_redis_connection from apps.schedule.models import Task diff --git a/spug_api/apps/setting/__init__.py b/spug_api/apps/setting/__init__.py index e69de29..4648b15 100644 --- a/spug_api/apps/setting/__init__.py +++ b/spug_api/apps/setting/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/apps/setting/models.py b/spug_api/apps/setting/models.py index a1e3c6d..57ef480 100644 --- a/spug_api/apps/setting/models.py +++ b/spug_api/apps/setting/models.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.db import models from libs import ModelMixin diff --git a/spug_api/apps/setting/urls.py b/spug_api/apps/setting/urls.py index f5bddba..4cb4500 100644 --- a/spug_api/apps/setting/urls.py +++ b/spug_api/apps/setting/urls.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .views import * diff --git a/spug_api/apps/setting/utils.py b/spug_api/apps/setting/utils.py index d7c2c7c..142d90a 100644 --- a/spug_api/apps/setting/utils.py +++ b/spug_api/apps/setting/utils.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from functools import lru_cache from apps.setting.models import Setting diff --git a/spug_api/apps/setting/views.py b/spug_api/apps/setting/views.py index ebdc242..bd3bb72 100644 --- a/spug_api/apps/setting/views.py +++ b/spug_api/apps/setting/views.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.views.generic import View from libs import JsonParser, Argument, json_response from apps.setting.utils import AppSetting diff --git a/spug_api/consumer/__init__.py b/spug_api/consumer/__init__.py index e69de29..4648b15 100644 --- a/spug_api/consumer/__init__.py +++ b/spug_api/consumer/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/consumer/consumers.py b/spug_api/consumer/consumers.py index 1ab5c96..5c68bc6 100644 --- a/spug_api/consumer/consumers.py +++ b/spug_api/consumer/consumers.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from channels.generic.websocket import WebsocketConsumer from django_redis import get_redis_connection from apps.setting.utils import AppSetting diff --git a/spug_api/consumer/executors.py b/spug_api/consumer/executors.py index ce45a08..68b0607 100644 --- a/spug_api/consumer/executors.py +++ b/spug_api/consumer/executors.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from channels.consumer import SyncConsumer from apps.setting.utils import AppSetting from django_redis import get_redis_connection diff --git a/spug_api/consumer/routing.py b/spug_api/consumer/routing.py index 4160413..e5b7fa8 100644 --- a/spug_api/consumer/routing.py +++ b/spug_api/consumer/routing.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.urls import path from .consumers import * diff --git a/spug_api/libs/__init__.py b/spug_api/libs/__init__.py index 95a7771..9a7323d 100644 --- a/spug_api/libs/__init__.py +++ b/spug_api/libs/__init__.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from .parser import JsonParser, Argument from .decorators import * from .validators import * diff --git a/spug_api/libs/channel.py b/spug_api/libs/channel.py index 2ad3e8f..05d6d81 100644 --- a/spug_api/libs/channel.py +++ b/spug_api/libs/channel.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from channels.layers import get_channel_layer from asgiref.sync import async_to_sync import uuid diff --git a/spug_api/libs/decorators.py b/spug_api/libs/decorators.py index e662ad3..2cbccdb 100644 --- a/spug_api/libs/decorators.py +++ b/spug_api/libs/decorators.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from functools import wraps from .utils import json_response diff --git a/spug_api/libs/gitlib.py b/spug_api/libs/gitlib.py index b55ed53..b11e659 100644 --- a/spug_api/libs/gitlib.py +++ b/spug_api/libs/gitlib.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from git import Repo, RemoteReference, TagReference, InvalidGitRepositoryError import shutil import os diff --git a/spug_api/libs/middleware.py b/spug_api/libs/middleware.py index 814e4a8..4f00d5e 100644 --- a/spug_api/libs/middleware.py +++ b/spug_api/libs/middleware.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.utils.deprecation import MiddlewareMixin from django.conf import settings from .utils import json_response diff --git a/spug_api/libs/mixins.py b/spug_api/libs/mixins.py index d83490b..6c26ced 100644 --- a/spug_api/libs/mixins.py +++ b/spug_api/libs/mixins.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from .utils import json_response diff --git a/spug_api/libs/parser.py b/spug_api/libs/parser.py index da6b945..841f46d 100644 --- a/spug_api/libs/parser.py +++ b/spug_api/libs/parser.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. import json from .utils import AttrDict diff --git a/spug_api/libs/ssh.py b/spug_api/libs/ssh.py index f362568..8a7ee7c 100644 --- a/spug_api/libs/ssh.py +++ b/spug_api/libs/ssh.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from paramiko.client import SSHClient, AutoAddPolicy from paramiko.config import SSH_PORT from paramiko.rsakey import RSAKey diff --git a/spug_api/libs/utils.py b/spug_api/libs/utils.py index af7a013..d3003ae 100644 --- a/spug_api/libs/utils.py +++ b/spug_api/libs/utils.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from django.http.response import HttpResponse from django.db.models import QuerySet from datetime import datetime, date as datetime_date diff --git a/spug_api/libs/validators.py b/spug_api/libs/validators.py index 8da3b54..872021c 100644 --- a/spug_api/libs/validators.py +++ b/spug_api/libs/validators.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. import ipaddress from datetime import datetime diff --git a/spug_api/manage.py b/spug_api/manage.py index 8499048..e0f7804 100755 --- a/spug_api/manage.py +++ b/spug_api/manage.py @@ -1,4 +1,7 @@ #!/usr/bin/env python +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. """Django's command-line utility for administrative tasks.""" import os import sys diff --git a/spug_api/spug/__init__.py b/spug_api/spug/__init__.py index e69de29..4648b15 100644 --- a/spug_api/spug/__init__.py +++ b/spug_api/spug/__init__.py @@ -0,0 +1,3 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. diff --git a/spug_api/spug/asgi.py b/spug_api/spug/asgi.py index ff5dea8..21d2462 100644 --- a/spug_api/spug/asgi.py +++ b/spug_api/spug/asgi.py @@ -1,8 +1,12 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. """ ASGI entrypoint. Configures Django and then runs the application defined in the ASGI_APPLICATION setting. """ + import os import django from channels.routing import get_default_application diff --git a/spug_api/spug/routing.py b/spug_api/spug/routing.py index 770c08b..c2e6748 100644 --- a/spug_api/spug/routing.py +++ b/spug_api/spug/routing.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. from channels.routing import ProtocolTypeRouter, ChannelNameRouter, URLRouter from consumer import routing, executors diff --git a/spug_api/spug/settings.py b/spug_api/spug/settings.py index 8621c0a..0570ba3 100644 --- a/spug_api/spug/settings.py +++ b/spug_api/spug/settings.py @@ -1,4 +1,8 @@ """ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. + Django settings for spug project. Generated by 'django-admin startproject' using Django 2.2.7. diff --git a/spug_api/spug/urls.py b/spug_api/spug/urls.py index 57e5907..0563bde 100644 --- a/spug_api/spug/urls.py +++ b/spug_api/spug/urls.py @@ -1,4 +1,7 @@ """spug URL Configuration +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. The `urlpatterns` list routes URLs to views. For more information please see: https://docs.djangoproject.com/en/2.2/topics/http/urls/ diff --git a/spug_api/spug/wsgi.py b/spug_api/spug/wsgi.py index 28d5315..1f34d09 100644 --- a/spug_api/spug/wsgi.py +++ b/spug_api/spug/wsgi.py @@ -1,4 +1,7 @@ """ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. WSGI config for spug project. It exposes the WSGI callable as a module-level variable named ``application``. diff --git a/spug_api/tools/start-api.sh b/spug_api/tools/start-api.sh index bcf5ca9..adb5b96 100644 --- a/spug_api/tools/start-api.sh +++ b/spug_api/tools/start-api.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. # start api service + cd $(dirname $(dirname $0)) source ./venv/bin/activate -exec gunicorn -b 127.0.0.1:9001 -w 2 --threads 8 --access-logfile - spug.wsgi \ No newline at end of file +exec gunicorn -b 127.0.0.1:9001 -w 2 --threads 8 --access-logfile - spug.wsgi diff --git a/spug_api/tools/start-monitor.sh b/spug_api/tools/start-monitor.sh index dbe7837..5194947 100644 --- a/spug_api/tools/start-monitor.sh +++ b/spug_api/tools/start-monitor.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. # start monitor service + cd $(dirname $(dirname $0)) source ./venv/bin/activate -exec python manage.py runmonitor \ No newline at end of file +exec python manage.py runmonitor diff --git a/spug_api/tools/start-scheduler.sh b/spug_api/tools/start-scheduler.sh index e379eae..37094a5 100644 --- a/spug_api/tools/start-scheduler.sh +++ b/spug_api/tools/start-scheduler.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. # start schedule service + cd $(dirname $(dirname $0)) source ./venv/bin/activate -exec python manage.py runscheduler \ No newline at end of file +exec python manage.py runscheduler diff --git a/spug_api/tools/start-worker.sh b/spug_api/tools/start-worker.sh index 0e6a9b4..a799f7d 100644 --- a/spug_api/tools/start-worker.sh +++ b/spug_api/tools/start-worker.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. # start worker service + cd $(dirname $(dirname $0)) source ./venv/bin/activate -exec python manage.py runworker ssh_exec \ No newline at end of file +exec python manage.py runworker ssh_exec diff --git a/spug_api/tools/start-ws.sh b/spug_api/tools/start-ws.sh index 8e6b904..c8889a8 100644 --- a/spug_api/tools/start-ws.sh +++ b/spug_api/tools/start-ws.sh @@ -1,5 +1,9 @@ #!/bin/bash +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. # start websocket service + cd $(dirname $(dirname $0)) source ./venv/bin/activate -exec daphne -p 9002 spug.asgi:application \ No newline at end of file +exec daphne -p 9002 spug.asgi:application diff --git a/spug_api/tools/useradd.py b/spug_api/tools/useradd.py index 123d1df..c9dfcbe 100644 --- a/spug_api/tools/useradd.py +++ b/spug_api/tools/useradd.py @@ -1,3 +1,6 @@ +# Copyright: (c) OpenSpug Organization. https://github.com/openspug/spug +# Copyright: (c) +# Released under the MIT License. import argparse import django import sys diff --git a/spug_web/config-overrides.js b/spug_web/config-overrides.js index 023c4a1..a9dfd76 100644 --- a/spug_web/config-overrides.js +++ b/spug_web/config-overrides.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ const {override, fixBabelImports, addDecoratorsLegacy} = require('customize-cra'); module.exports = override( @@ -7,4 +12,4 @@ module.exports = override( libraryDirectory: 'es', style: true, }) -); \ No newline at end of file +); diff --git a/spug_web/jsconfig.json b/spug_web/jsconfig.json index 5c66bd0..ef46175 100644 --- a/spug_web/jsconfig.json +++ b/spug_web/jsconfig.json @@ -5,4 +5,4 @@ "include": [ "src" ] -} \ No newline at end of file +} diff --git a/spug_web/src/App.js b/spug_web/src/App.js index 1550602..7fe5ab7 100644 --- a/spug_web/src/App.js +++ b/spug_web/src/App.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React, { Component } from 'react'; import {Switch, Route} from 'react-router-dom'; import Login from './pages/login'; diff --git a/spug_web/src/components/ACEditor.js b/spug_web/src/components/ACEditor.js index 78c209b..1188ec8 100644 --- a/spug_web/src/components/ACEditor.js +++ b/spug_web/src/components/ACEditor.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from "react"; import Editor from 'react-ace'; import 'ace-builds/src-noconflict/ext-language_tools'; @@ -15,4 +20,4 @@ export default function (props) { {...props} /> ) -} \ No newline at end of file +} diff --git a/spug_web/src/components/AuthButton.js b/spug_web/src/components/AuthButton.js index 05e192f..58a678f 100644 --- a/spug_web/src/components/AuthButton.js +++ b/spug_web/src/components/AuthButton.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Button } from 'antd'; import { hasPermission } from "../libs"; @@ -9,4 +14,4 @@ export default function AuthButton(props) { disabled = true; } return -} \ No newline at end of file +} diff --git a/spug_web/src/components/AuthCard.js b/spug_web/src/components/AuthCard.js index 7f3cdc0..d427dfb 100644 --- a/spug_web/src/components/AuthCard.js +++ b/spug_web/src/components/AuthCard.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {Card} from 'antd'; import { hasPermission } from 'libs'; @@ -9,4 +14,4 @@ export default function AuthCard(props) { disabled = true; } return disabled ? null : {props.children} -} \ No newline at end of file +} diff --git a/spug_web/src/components/AuthDiv.js b/spug_web/src/components/AuthDiv.js index d2ba2fe..f4cffa8 100644 --- a/spug_web/src/components/AuthDiv.js +++ b/spug_web/src/components/AuthDiv.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { hasPermission } from "../libs"; @@ -8,4 +13,4 @@ export default function AuthDiv(props) { disabled = true; } return disabled ? null :
{props.children}
-} \ No newline at end of file +} diff --git a/spug_web/src/components/AuthLink.js b/spug_web/src/components/AuthLink.js index 2d1b50c..f660653 100644 --- a/spug_web/src/components/AuthLink.js +++ b/spug_web/src/components/AuthLink.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {Link} from 'react-router-dom'; import { hasPermission } from 'libs'; @@ -9,4 +14,4 @@ export default function AuthLink(props) { disabled = true; } return {props.children} -} \ No newline at end of file +} diff --git a/spug_web/src/components/LinkButton.js b/spug_web/src/components/LinkButton.js index 33a2133..c9aadec 100644 --- a/spug_web/src/components/LinkButton.js +++ b/spug_web/src/components/LinkButton.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Button } from 'antd'; import { hasPermission } from 'libs'; @@ -11,4 +16,4 @@ export default function LinkButton(props) { return -} \ No newline at end of file +} diff --git a/spug_web/src/components/SearchForm.js b/spug_web/src/components/SearchForm.js index 921751b..b0b344b 100644 --- a/spug_web/src/components/SearchForm.js +++ b/spug_web/src/components/SearchForm.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Row, Col, Form } from 'antd'; import styles from './index.module.css'; @@ -28,4 +33,4 @@ export default class extends React.Component { ) } -} \ No newline at end of file +} diff --git a/spug_web/src/components/StatisticsCard.js b/spug_web/src/components/StatisticsCard.js index 72c530f..0e64af7 100644 --- a/spug_web/src/components/StatisticsCard.js +++ b/spug_web/src/components/StatisticsCard.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Card, Col, Row } from "antd"; import lodash from 'lodash'; @@ -33,4 +38,4 @@ class StatisticsCard extends React.Component { } } -export default StatisticsCard \ No newline at end of file +export default StatisticsCard diff --git a/spug_web/src/components/index.js b/spug_web/src/components/index.js index 1669ca9..0e302cb 100644 --- a/spug_web/src/components/index.js +++ b/spug_web/src/components/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import StatisticsCard from './StatisticsCard'; import SearchForm from './SearchForm'; import LinkButton from './LinkButton'; @@ -16,4 +21,4 @@ export { AuthCard, AuthDiv, ACEditor, -} \ No newline at end of file +} diff --git a/spug_web/src/index.js b/spug_web/src/index.js index d7ae3a1..1a8e02c 100644 --- a/spug_web/src/index.js +++ b/spug_web/src/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import ReactDOM from 'react-dom'; import { Router } from 'react-router-dom'; diff --git a/spug_web/src/layout/Footer.js b/spug_web/src/layout/Footer.js index cc04385..b9e8cfd 100644 --- a/spug_web/src/layout/Footer.js +++ b/spug_web/src/layout/Footer.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Layout, Icon } from 'antd'; import styles from './layout.module.css'; @@ -13,4 +18,4 @@ export default class extends React.Component { ) } -} \ No newline at end of file +} diff --git a/spug_web/src/layout/Sider.js b/spug_web/src/layout/Sider.js index cf19c7a..8273a73 100644 --- a/spug_web/src/layout/Sider.js +++ b/spug_web/src/layout/Sider.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { withRouter } from 'react-router-dom'; import { Layout, Menu, Icon } from 'antd'; @@ -94,4 +99,4 @@ class Sider extends React.Component { } } -export default withRouter(Sider) \ No newline at end of file +export default withRouter(Sider) diff --git a/spug_web/src/layout/index.js b/spug_web/src/layout/index.js index 9b04c64..52cb65c 100644 --- a/spug_web/src/layout/index.js +++ b/spug_web/src/layout/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Layout } from 'antd'; import Sider from './Sider'; @@ -40,4 +45,4 @@ export default class extends React.Component { ) } -} \ No newline at end of file +} diff --git a/spug_web/src/libs/functools.js b/spug_web/src/libs/functools.js index 9ca5967..1d31655 100644 --- a/spug_web/src/libs/functools.js +++ b/spug_web/src/libs/functools.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ let Permission = { isSuper: false, permissions: [] @@ -51,4 +56,4 @@ export function human_time(date) { const minute = now.getMinutes() < 10 ? '0' + now.getMinutes() : now.getMinutes(); const second = now.getSeconds() < 10 ? '0' + now.getSeconds() : now.getSeconds(); return `${human_date()} ${hour}:${minute}:${second}` -} \ No newline at end of file +} diff --git a/spug_web/src/libs/history.js b/spug_web/src/libs/history.js index 1445169..39db5e5 100644 --- a/spug_web/src/libs/history.js +++ b/spug_web/src/libs/history.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import {createBrowserHistory} from 'history'; -export default createBrowserHistory() \ No newline at end of file +export default createBrowserHistory() diff --git a/spug_web/src/libs/http.js b/spug_web/src/libs/http.js index 8ca14f7..459199b 100644 --- a/spug_web/src/libs/http.js +++ b/spug_web/src/libs/http.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import http from 'axios' import history from './history' import {message} from 'antd'; diff --git a/spug_web/src/libs/index.js b/spug_web/src/libs/index.js index 85a2d2d..c61697e 100644 --- a/spug_web/src/libs/index.js +++ b/spug_web/src/libs/index.js @@ -1,5 +1,10 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import _http from './http'; export * from './functools'; export * from './router'; -export const http = _http; \ No newline at end of file +export const http = _http; diff --git a/spug_web/src/libs/router.js b/spug_web/src/libs/router.js index ecaf2a7..8570cc9 100644 --- a/spug_web/src/libs/router.js +++ b/spug_web/src/libs/router.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Switch, Route } from 'react-router-dom'; import moduleRoutes from '../routes'; @@ -54,4 +59,4 @@ export class Router extends React.Component { ) } -} \ No newline at end of file +} diff --git a/spug_web/src/menus.js b/spug_web/src/menus.js index e769b71..affde25 100644 --- a/spug_web/src/menus.js +++ b/spug_web/src/menus.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ export default [ {icon: 'desktop', title: '工作台', auth: 'home.home.view', path: '/home'}, {icon: 'cloud-server', title: '主机管理', auth: 'host.host.view', path: '/host'}, @@ -36,4 +41,4 @@ export default [ {title: '系统设置', auth: 'system.setting.view', path: '/system/setting'}, ] }, -] \ No newline at end of file +] diff --git a/spug_web/src/pages/alarm/alarm/Table.js b/spug_web/src/pages/alarm/alarm/Table.js index 0534b94..71cb074 100644 --- a/spug_web/src/pages/alarm/alarm/Table.js +++ b/spug_web/src/pages/alarm/alarm/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Tag } from 'antd'; @@ -65,4 +70,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/alarm/alarm/index.js b/spug_web/src/pages/alarm/alarm/index.js index 2de0001..6183484 100644 --- a/spug_web/src/pages/alarm/alarm/index.js +++ b/spug_web/src/pages/alarm/alarm/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -19,4 +24,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/alarm/alarm/store.js b/spug_web/src/pages/alarm/alarm/store.js index caca221..b14ac9f 100644 --- a/spug_web/src/pages/alarm/alarm/store.js +++ b/spug_web/src/pages/alarm/alarm/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -15,4 +20,4 @@ class Store { }; } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/alarm/contact/Form.js b/spug_web/src/pages/alarm/contact/Form.js index f08dbaa..f475605 100644 --- a/spug_web/src/pages/alarm/contact/Form.js +++ b/spug_web/src/pages/alarm/contact/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, message } from 'antd'; @@ -69,4 +74,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/alarm/contact/Table.js b/spug_web/src/pages/alarm/contact/Table.js index 5429891..46a453a 100644 --- a/spug_web/src/pages/alarm/contact/Table.js +++ b/spug_web/src/pages/alarm/contact/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, message } from 'antd'; @@ -70,4 +75,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/alarm/contact/index.js b/spug_web/src/pages/alarm/contact/index.js index b8724b1..e17c803 100644 --- a/spug_web/src/pages/alarm/contact/index.js +++ b/spug_web/src/pages/alarm/contact/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -22,4 +27,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/alarm/contact/store.js b/spug_web/src/pages/alarm/contact/store.js index 9ecbc88..ecc0ddb 100644 --- a/spug_web/src/pages/alarm/contact/store.js +++ b/spug_web/src/pages/alarm/contact/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -22,4 +27,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/alarm/group/Form.js b/spug_web/src/pages/alarm/group/Form.js index 85a7c9e..e646d09 100644 --- a/spug_web/src/pages/alarm/group/Form.js +++ b/spug_web/src/pages/alarm/group/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Transfer, message } from 'antd'; @@ -65,4 +70,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/alarm/group/Table.js b/spug_web/src/pages/alarm/group/Table.js index 73b5265..c6a2dc5 100644 --- a/spug_web/src/pages/alarm/group/Table.js +++ b/spug_web/src/pages/alarm/group/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, message } from 'antd'; @@ -93,4 +98,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/alarm/group/index.js b/spug_web/src/pages/alarm/group/index.js index 1d9e6b5..9eab177 100644 --- a/spug_web/src/pages/alarm/group/index.js +++ b/spug_web/src/pages/alarm/group/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -22,4 +27,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/alarm/group/store.js b/spug_web/src/pages/alarm/group/store.js index ce8aa66..c422d75 100644 --- a/spug_web/src/pages/alarm/group/store.js +++ b/spug_web/src/pages/alarm/group/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -22,4 +27,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/alarm/routes.js b/spug_web/src/pages/alarm/routes.js index 47650af..a684dac 100644 --- a/spug_web/src/pages/alarm/routes.js +++ b/spug_web/src/pages/alarm/routes.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from 'libs/router'; import Alarm from './alarm'; import Contact from './contact'; @@ -8,4 +13,4 @@ export default [ makeRoute('/alarm', Alarm), makeRoute('/contact', Contact), makeRoute('/group', Group), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/config/app/Form.js b/spug_web/src/pages/config/app/Form.js index 85187d8..24af7de 100644 --- a/spug_web/src/pages/config/app/Form.js +++ b/spug_web/src/pages/config/app/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, message } from 'antd'; @@ -59,4 +64,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/config/app/Rel.js b/spug_web/src/pages/config/app/Rel.js index 6aa9986..94f9be7 100644 --- a/spug_web/src/pages/config/app/Rel.js +++ b/spug_web/src/pages/config/app/Rel.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {observer} from 'mobx-react'; import {Modal, Form, Transfer, message, Tabs, Alert} from 'antd'; @@ -92,4 +97,4 @@ class Rel extends React.Component { } } -export default Rel \ No newline at end of file +export default Rel diff --git a/spug_web/src/pages/config/app/Table.js b/spug_web/src/pages/config/app/Table.js index c3be539..7804014 100644 --- a/spug_web/src/pages/config/app/Table.js +++ b/spug_web/src/pages/config/app/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, message } from 'antd'; @@ -66,4 +71,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/config/app/index.js b/spug_web/src/pages/config/app/index.js index 4d296a8..6759931 100644 --- a/spug_web/src/pages/config/app/index.js +++ b/spug_web/src/pages/config/app/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -26,4 +31,4 @@ export default observer(function () { {store.relVisible && } ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/config/app/store.js b/spug_web/src/pages/config/app/store.js index c2926d6..638736b 100644 --- a/spug_web/src/pages/config/app/store.js +++ b/spug_web/src/pages/config/app/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -33,4 +38,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/config/environment/Form.js b/spug_web/src/pages/config/environment/Form.js index 053104e..0b5c50c 100644 --- a/spug_web/src/pages/config/environment/Form.js +++ b/spug_web/src/pages/config/environment/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, message } from 'antd'; @@ -59,4 +64,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/config/environment/Table.js b/spug_web/src/pages/config/environment/Table.js index 0cd813a..4449a26 100644 --- a/spug_web/src/pages/config/environment/Table.js +++ b/spug_web/src/pages/config/environment/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, message } from 'antd'; @@ -66,4 +71,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/config/environment/index.js b/spug_web/src/pages/config/environment/index.js index 81c2d9f..2648430 100644 --- a/spug_web/src/pages/config/environment/index.js +++ b/spug_web/src/pages/config/environment/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -22,4 +27,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/config/environment/store.js b/spug_web/src/pages/config/environment/store.js index 679018f..76eed09 100644 --- a/spug_web/src/pages/config/environment/store.js +++ b/spug_web/src/pages/config/environment/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -28,4 +33,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/config/routes.js b/spug_web/src/pages/config/routes.js index 99201ac..c6864d3 100644 --- a/spug_web/src/pages/config/routes.js +++ b/spug_web/src/pages/config/routes.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from 'libs/router'; import Environment from './environment'; import Service from './service'; @@ -10,4 +15,4 @@ export default [ makeRoute('/service', Service), makeRoute('/app', App), makeRoute('/setting/:type/:id', Setting), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/config/service/Form.js b/spug_web/src/pages/config/service/Form.js index ec6dc15..ac57b17 100644 --- a/spug_web/src/pages/config/service/Form.js +++ b/spug_web/src/pages/config/service/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, message } from 'antd'; @@ -59,4 +64,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/config/service/Table.js b/spug_web/src/pages/config/service/Table.js index d096e3d..ef42284 100644 --- a/spug_web/src/pages/config/service/Table.js +++ b/spug_web/src/pages/config/service/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, message } from 'antd'; @@ -68,4 +73,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/config/service/index.js b/spug_web/src/pages/config/service/index.js index 76f95d9..98c0448 100644 --- a/spug_web/src/pages/config/service/index.js +++ b/spug_web/src/pages/config/service/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -22,4 +27,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/config/service/store.js b/spug_web/src/pages/config/service/store.js index 29eadd9..f723d20 100644 --- a/spug_web/src/pages/config/service/store.js +++ b/spug_web/src/pages/config/service/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -22,4 +27,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/config/setting/DiffConfig.js b/spug_web/src/pages/config/setting/DiffConfig.js index 672040b..d4373d6 100644 --- a/spug_web/src/pages/config/setting/DiffConfig.js +++ b/spug_web/src/pages/config/setting/DiffConfig.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Table, Row, Col, Checkbox, Form, Button, Alert } from 'antd'; @@ -89,4 +94,4 @@ class Record extends React.Component { } } -export default Record \ No newline at end of file +export default Record diff --git a/spug_web/src/pages/config/setting/Form.js b/spug_web/src/pages/config/setting/Form.js index 6e2e767..cb6bbce 100644 --- a/spug_web/src/pages/config/setting/Form.js +++ b/spug_web/src/pages/config/setting/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {observer} from 'mobx-react'; import {Modal, Form, Input, Checkbox, Switch, Row, Col, message} from 'antd'; @@ -107,4 +112,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/config/setting/JSONView.js b/spug_web/src/pages/config/setting/JSONView.js index 407f730..6921b57 100644 --- a/spug_web/src/pages/config/setting/JSONView.js +++ b/spug_web/src/pages/config/setting/JSONView.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Button, message } from 'antd'; @@ -80,4 +85,4 @@ class JSONView extends React.Component { } } -export default JSONView \ No newline at end of file +export default JSONView diff --git a/spug_web/src/pages/config/setting/Record.js b/spug_web/src/pages/config/setting/Record.js index f338987..2425323 100644 --- a/spug_web/src/pages/config/setting/Record.js +++ b/spug_web/src/pages/config/setting/Record.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Table, Tooltip, Tag } from 'antd'; @@ -65,4 +70,4 @@ class Record extends React.Component { } } -export default Record \ No newline at end of file +export default Record diff --git a/spug_web/src/pages/config/setting/TableView.js b/spug_web/src/pages/config/setting/TableView.js index b8e8120..c5efa59 100644 --- a/spug_web/src/pages/config/setting/TableView.js +++ b/spug_web/src/pages/config/setting/TableView.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, Tooltip, Icon, message } from 'antd'; @@ -75,4 +80,4 @@ class TableView extends React.Component { } } -export default TableView \ No newline at end of file +export default TableView diff --git a/spug_web/src/pages/config/setting/TextView.js b/spug_web/src/pages/config/setting/TextView.js index 2453117..34bd065 100644 --- a/spug_web/src/pages/config/setting/TextView.js +++ b/spug_web/src/pages/config/setting/TextView.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import Editor from 'react-ace'; @@ -74,4 +79,4 @@ class TextView extends React.Component { } } -export default TextView \ No newline at end of file +export default TextView diff --git a/spug_web/src/pages/config/setting/index.js b/spug_web/src/pages/config/setting/index.js index 30c32b8..ca07c37 100644 --- a/spug_web/src/pages/config/setting/index.js +++ b/spug_web/src/pages/config/setting/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Menu, Input, Button, Select, PageHeader, Icon } from 'antd'; @@ -101,4 +106,4 @@ class Index extends React.Component { } } -export default Index \ No newline at end of file +export default Index diff --git a/spug_web/src/pages/config/setting/store.js b/spug_web/src/pages/config/setting/store.js index 2b46d73..c633bdb 100644 --- a/spug_web/src/pages/config/setting/store.js +++ b/spug_web/src/pages/config/setting/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -36,4 +41,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/deploy/app/AddSelect.js b/spug_web/src/pages/deploy/app/AddSelect.js index 3fce3c9..4638cc0 100644 --- a/spug_web/src/pages/deploy/app/AddSelect.js +++ b/spug_web/src/pages/deploy/app/AddSelect.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Card, Icon } from 'antd'; @@ -79,4 +84,4 @@ class AddSelect extends React.Component { } } -export default AddSelect \ No newline at end of file +export default AddSelect diff --git a/spug_web/src/pages/deploy/app/Ext1Form.js b/spug_web/src/pages/deploy/app/Ext1Form.js index 8be42bd..171e2fd 100644 --- a/spug_web/src/pages/deploy/app/Ext1Form.js +++ b/spug_web/src/pages/deploy/app/Ext1Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Steps } from 'antd'; @@ -26,4 +31,4 @@ export default observer(function Ext1From() { {store.page === 2 && } ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup1.js b/spug_web/src/pages/deploy/app/Ext1Setup1.js index 4d98a5f..43e1a66 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup1.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup1.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Link } from 'react-router-dom'; @@ -39,4 +44,4 @@ export default observer(function Ext2Setup1() { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/deploy/app/Ext1Setup2.js b/spug_web/src/pages/deploy/app/Ext1Setup2.js index 5c5f28b..aff7423 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup2.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup2.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Form, Input, Select, Button, Icon } from "antd"; @@ -65,4 +70,4 @@ class Ext1Setup2 extends React.Component { } } -export default Ext1Setup2 \ No newline at end of file +export default Ext1Setup2 diff --git a/spug_web/src/pages/deploy/app/Ext1Setup3.js b/spug_web/src/pages/deploy/app/Ext1Setup3.js index 6d632b7..f0b8186 100644 --- a/spug_web/src/pages/deploy/app/Ext1Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext1Setup3.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Form, Row, Col, Button, Radio, Icon, message } from "antd"; @@ -144,4 +149,4 @@ class Ext1Setup3 extends React.Component { } } -export default Ext1Setup3 \ No newline at end of file +export default Ext1Setup3 diff --git a/spug_web/src/pages/deploy/app/Ext2Form.js b/spug_web/src/pages/deploy/app/Ext2Form.js index 5a2744c..71ab789 100644 --- a/spug_web/src/pages/deploy/app/Ext2Form.js +++ b/spug_web/src/pages/deploy/app/Ext2Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Steps } from 'antd'; @@ -26,4 +31,4 @@ export default observer(function Ext2From() { {store.page === 2 && } ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/deploy/app/Ext2Setup1.js b/spug_web/src/pages/deploy/app/Ext2Setup1.js index 1ca7565..5e3b9ac 100644 --- a/spug_web/src/pages/deploy/app/Ext2Setup1.js +++ b/spug_web/src/pages/deploy/app/Ext2Setup1.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Link } from 'react-router-dom'; diff --git a/spug_web/src/pages/deploy/app/Ext2Setup2.js b/spug_web/src/pages/deploy/app/Ext2Setup2.js index ba8d24d..a7b426f 100644 --- a/spug_web/src/pages/deploy/app/Ext2Setup2.js +++ b/spug_web/src/pages/deploy/app/Ext2Setup2.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Form, Select, Button, Icon } from "antd"; @@ -52,4 +57,4 @@ class Ext2Setup2 extends React.Component { } } -export default Ext2Setup2 \ No newline at end of file +export default Ext2Setup2 diff --git a/spug_web/src/pages/deploy/app/Ext2Setup3.js b/spug_web/src/pages/deploy/app/Ext2Setup3.js index 864e87c..c80bf1f 100644 --- a/spug_web/src/pages/deploy/app/Ext2Setup3.js +++ b/spug_web/src/pages/deploy/app/Ext2Setup3.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Form, Input, Button, message, Divider, Alert, Icon } from 'antd'; @@ -115,4 +120,4 @@ class Ext2Setup3 extends React.Component { } } -export default Ext2Setup3 \ No newline at end of file +export default Ext2Setup3 diff --git a/spug_web/src/pages/deploy/app/Form.js b/spug_web/src/pages/deploy/app/Form.js index 85187d8..24af7de 100644 --- a/spug_web/src/pages/deploy/app/Form.js +++ b/spug_web/src/pages/deploy/app/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, message } from 'antd'; @@ -59,4 +64,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/deploy/app/Table.js b/spug_web/src/pages/deploy/app/Table.js index b26a34f..3b11268 100644 --- a/spug_web/src/pages/deploy/app/Table.js +++ b/spug_web/src/pages/deploy/app/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { toJS } from 'mobx'; import { observer } from 'mobx-react'; @@ -134,4 +139,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/deploy/app/index.js b/spug_web/src/pages/deploy/app/index.js index 89d9825..ceabffc 100644 --- a/spug_web/src/pages/deploy/app/index.js +++ b/spug_web/src/pages/deploy/app/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -30,4 +35,4 @@ export default observer(function () { {store.ext2Visible && } ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/deploy/app/store.js b/spug_web/src/pages/deploy/app/store.js index dbda7ea..3712520 100644 --- a/spug_web/src/pages/deploy/app/store.js +++ b/spug_web/src/pages/deploy/app/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -67,4 +72,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/deploy/do/Ext1Index.js b/spug_web/src/pages/deploy/do/Ext1Index.js index 644072c..c2fcb41 100644 --- a/spug_web/src/pages/deploy/do/Ext1Index.js +++ b/spug_web/src/pages/deploy/do/Ext1Index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Steps, Collapse, PageHeader, Spin, Tag, Button, Icon } from 'antd'; @@ -137,4 +142,4 @@ class Ext1Index extends React.Component { } } -export default Ext1Index \ No newline at end of file +export default Ext1Index diff --git a/spug_web/src/pages/deploy/do/Ext2Index.js b/spug_web/src/pages/deploy/do/Ext2Index.js index d51d55c..db3068e 100644 --- a/spug_web/src/pages/deploy/do/Ext2Index.js +++ b/spug_web/src/pages/deploy/do/Ext2Index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Steps, Collapse, PageHeader, Spin, Tag, Button, Icon } from 'antd'; @@ -141,4 +146,4 @@ class Ext1Index extends React.Component { } } -export default Ext1Index \ No newline at end of file +export default Ext1Index diff --git a/spug_web/src/pages/deploy/do/store.js b/spug_web/src/pages/deploy/do/store.js index 2973229..e570acf 100644 --- a/spug_web/src/pages/deploy/do/store.js +++ b/spug_web/src/pages/deploy/do/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; class Store { @@ -9,4 +14,4 @@ class Store { }; } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/deploy/request/Approve.js b/spug_web/src/pages/deploy/request/Approve.js index 7a9aaeb..beae6cb 100644 --- a/spug_web/src/pages/deploy/request/Approve.js +++ b/spug_web/src/pages/deploy/request/Approve.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Switch, message } from 'antd'; @@ -52,4 +57,4 @@ class Approve extends React.Component { } } -export default Form.create()(Approve) \ No newline at end of file +export default Form.create()(Approve) diff --git a/spug_web/src/pages/deploy/request/Ext1Form.js b/spug_web/src/pages/deploy/request/Ext1Form.js index 17b478e..d1560c3 100644 --- a/spug_web/src/pages/deploy/request/Ext1Form.js +++ b/spug_web/src/pages/deploy/request/Ext1Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Select, Col, Button, Tag, Icon, message } from 'antd'; @@ -171,4 +176,4 @@ class Ext1Form extends React.Component { } } -export default Form.create()(Ext1Form) \ No newline at end of file +export default Form.create()(Ext1Form) diff --git a/spug_web/src/pages/deploy/request/Ext2Form.js b/spug_web/src/pages/deploy/request/Ext2Form.js index db0c50f..9be6e9a 100644 --- a/spug_web/src/pages/deploy/request/Ext2Form.js +++ b/spug_web/src/pages/deploy/request/Ext2Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Tag, message } from 'antd'; @@ -94,4 +99,4 @@ class Ext2Form extends React.Component { } } -export default Form.create()(Ext2Form) \ No newline at end of file +export default Form.create()(Ext2Form) diff --git a/spug_web/src/pages/deploy/request/Form.js b/spug_web/src/pages/deploy/request/Form.js index 0c7cf5d..413d51f 100644 --- a/spug_web/src/pages/deploy/request/Form.js +++ b/spug_web/src/pages/deploy/request/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Select, Col, Button, message } from 'antd'; @@ -101,4 +106,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/deploy/request/SelectApp.js b/spug_web/src/pages/deploy/request/SelectApp.js index e52f8da..2dd4e4c 100644 --- a/spug_web/src/pages/deploy/request/SelectApp.js +++ b/spug_web/src/pages/deploy/request/SelectApp.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Link } from 'react-router-dom'; import { observer } from 'mobx-react'; @@ -89,4 +94,4 @@ class SelectApp extends React.Component { } } -export default SelectApp \ No newline at end of file +export default SelectApp diff --git a/spug_web/src/pages/deploy/request/Table.js b/spug_web/src/pages/deploy/request/Table.js index 5b4b742..34379bd 100644 --- a/spug_web/src/pages/deploy/request/Table.js +++ b/spug_web/src/pages/deploy/request/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, Icon, Popover, Tag, message } from 'antd'; @@ -167,4 +172,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/deploy/request/index.js b/spug_web/src/pages/deploy/request/index.js index 4603d55..4d32672 100644 --- a/spug_web/src/pages/deploy/request/index.js +++ b/spug_web/src/pages/deploy/request/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -33,4 +38,4 @@ export default observer(function () { {store.approveVisible && } ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/deploy/request/store.js b/spug_web/src/pages/deploy/request/store.js index de99f07..a709d50 100644 --- a/spug_web/src/pages/deploy/request/store.js +++ b/spug_web/src/pages/deploy/request/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -45,4 +50,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/deploy/routes.js b/spug_web/src/pages/deploy/routes.js index fec1355..d1c8fad 100644 --- a/spug_web/src/pages/deploy/routes.js +++ b/spug_web/src/pages/deploy/routes.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from "../../libs/router"; import app from './app'; import request from './request'; @@ -10,4 +15,4 @@ export default [ makeRoute('/request', request), makeRoute('/do/ext1/:id', doExt1Index), makeRoute('/do/ext2/:id', doExt2Index), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/exec/routes.js b/spug_web/src/pages/exec/routes.js index 0a75e09..ce62c05 100644 --- a/spug_web/src/pages/exec/routes.js +++ b/spug_web/src/pages/exec/routes.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from "../../libs/router"; import Template from './template'; import Task from './task'; @@ -6,4 +11,4 @@ import Task from './task'; export default [ makeRoute('/template', Template), makeRoute('/task', Task), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/exec/task/ExecConsole.js b/spug_web/src/pages/exec/task/ExecConsole.js index 687b99b..c5c5f50 100644 --- a/spug_web/src/pages/exec/task/ExecConsole.js +++ b/spug_web/src/pages/exec/task/ExecConsole.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Collapse, Icon } from 'antd'; @@ -93,4 +98,4 @@ class ExecConsole extends React.Component { } } -export default ExecConsole \ No newline at end of file +export default ExecConsole diff --git a/spug_web/src/pages/exec/task/HostSelector.js b/spug_web/src/pages/exec/task/HostSelector.js index 52eafe8..eda5982 100644 --- a/spug_web/src/pages/exec/task/HostSelector.js +++ b/spug_web/src/pages/exec/task/HostSelector.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Table, Input, Button, Select } from 'antd'; @@ -110,4 +115,4 @@ class HostSelector extends React.Component { } } -export default HostSelector \ No newline at end of file +export default HostSelector diff --git a/spug_web/src/pages/exec/task/TemplateSelector.js b/spug_web/src/pages/exec/task/TemplateSelector.js index 0c8b780..4a87c18 100644 --- a/spug_web/src/pages/exec/task/TemplateSelector.js +++ b/spug_web/src/pages/exec/task/TemplateSelector.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Table, Input, Button, Select } from 'antd'; @@ -104,4 +109,4 @@ class TemplateSelector extends React.Component { } } -export default TemplateSelector \ No newline at end of file +export default TemplateSelector diff --git a/spug_web/src/pages/exec/task/index.js b/spug_web/src/pages/exec/task/index.js index 3f10292..a11a3a2 100644 --- a/spug_web/src/pages/exec/task/index.js +++ b/spug_web/src/pages/exec/task/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Form, Button, Tag } from 'antd'; @@ -53,4 +58,4 @@ class TaskIndex extends React.Component { } } -export default TaskIndex \ No newline at end of file +export default TaskIndex diff --git a/spug_web/src/pages/exec/task/store.js b/spug_web/src/pages/exec/task/store.js index 3716d35..9d3d141 100644 --- a/spug_web/src/pages/exec/task/store.js +++ b/spug_web/src/pages/exec/task/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; class Store { @@ -38,4 +43,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/exec/template/Form.js b/spug_web/src/pages/exec/template/Form.js index 0c7cf5d..413d51f 100644 --- a/spug_web/src/pages/exec/template/Form.js +++ b/spug_web/src/pages/exec/template/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Select, Col, Button, message } from 'antd'; @@ -101,4 +106,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/exec/template/Table.js b/spug_web/src/pages/exec/template/Table.js index 386796e..4be42e3 100644 --- a/spug_web/src/pages/exec/template/Table.js +++ b/spug_web/src/pages/exec/template/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, message } from 'antd'; @@ -68,4 +73,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/exec/template/index.js b/spug_web/src/pages/exec/template/index.js index b36ce42..59b6fa5 100644 --- a/spug_web/src/pages/exec/template/index.js +++ b/spug_web/src/pages/exec/template/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Select, Button } from 'antd'; @@ -29,4 +34,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/exec/template/store.js b/spug_web/src/pages/exec/template/store.js index 6d4ee39..f08df11 100644 --- a/spug_web/src/pages/exec/template/store.js +++ b/spug_web/src/pages/exec/template/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -27,4 +32,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/home/AlarmTrend.js b/spug_web/src/pages/home/AlarmTrend.js index 37f0375..a8c7f95 100644 --- a/spug_web/src/pages/home/AlarmTrend.js +++ b/spug_web/src/pages/home/AlarmTrend.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Card } from 'antd'; import { Chart, Geom, Axis, Tooltip } from 'bizcharts'; diff --git a/spug_web/src/pages/home/DeployPie.js b/spug_web/src/pages/home/DeployPie.js index b699955..5a6b84c 100644 --- a/spug_web/src/pages/home/DeployPie.js +++ b/spug_web/src/pages/home/DeployPie.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Card } from 'antd'; import { Chart, Geom, Axis, Tooltip, Coord, Guide, Label } from 'bizcharts'; diff --git a/spug_web/src/pages/home/RequestTop.js b/spug_web/src/pages/home/RequestTop.js index 0b786c2..bb4ca07 100644 --- a/spug_web/src/pages/home/RequestTop.js +++ b/spug_web/src/pages/home/RequestTop.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Card } from 'antd'; import { Chart, Geom, Axis, Tooltip } from 'bizcharts'; diff --git a/spug_web/src/pages/home/StatisticCard.js b/spug_web/src/pages/home/StatisticCard.js index c75437a..77c9809 100644 --- a/spug_web/src/pages/home/StatisticCard.js +++ b/spug_web/src/pages/home/StatisticCard.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {Statistic, Card, Row, Col} from 'antd'; import { http } from 'libs'; @@ -43,4 +48,4 @@ export default class StatisticCard extends React.Component { ) } -} \ No newline at end of file +} diff --git a/spug_web/src/pages/home/index.js b/spug_web/src/pages/home/index.js index b91ad99..d481449 100644 --- a/spug_web/src/pages/home/index.js +++ b/spug_web/src/pages/home/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Row, Col } from 'antd'; import { AuthDiv } from 'components'; diff --git a/spug_web/src/pages/home/routes.js b/spug_web/src/pages/home/routes.js index 6e03f0b..365f9d3 100644 --- a/spug_web/src/pages/home/routes.js +++ b/spug_web/src/pages/home/routes.js @@ -1,7 +1,12 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from "../../libs/router"; import Index from './index'; export default [ makeRoute('', Index), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/host/Form.js b/spug_web/src/pages/host/Form.js index f939b06..052bdb5 100644 --- a/spug_web/src/pages/host/Form.js +++ b/spug_web/src/pages/host/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Select, Col, Button, message } from 'antd'; @@ -145,4 +150,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/host/Table.js b/spug_web/src/pages/host/Table.js index 70b9798..ae98d53 100644 --- a/spug_web/src/pages/host/Table.js +++ b/spug_web/src/pages/host/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, message } from 'antd'; @@ -82,4 +87,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/host/index.js b/spug_web/src/pages/host/index.js index 6dd068f..ebae285 100644 --- a/spug_web/src/pages/host/index.js +++ b/spug_web/src/pages/host/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button, Select } from 'antd'; @@ -29,4 +34,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/host/routes.js b/spug_web/src/pages/host/routes.js index 6e03f0b..365f9d3 100644 --- a/spug_web/src/pages/host/routes.js +++ b/spug_web/src/pages/host/routes.js @@ -1,7 +1,12 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from "../../libs/router"; import Index from './index'; export default [ makeRoute('', Index), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/host/store.js b/spug_web/src/pages/host/store.js index d593820..a1f9269 100644 --- a/spug_web/src/pages/host/store.js +++ b/spug_web/src/pages/host/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -31,4 +36,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/login/index.js b/spug_web/src/pages/login/index.js index ef1e1f3..3712408 100644 --- a/spug_web/src/pages/login/index.js +++ b/spug_web/src/pages/login/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {Form, Input, Icon, Button, Tabs, Modal} from 'antd'; import styles from './login.module.css'; @@ -56,8 +61,8 @@ class LoginIndex extends React.Component { return (
-
logoSpug devops
-
Open source O & M management system by openspug
+
logoSpug
+
灵活、强大、功能全面的开源运维平台
this.setState({loginType: e})}> @@ -103,4 +108,4 @@ class LoginIndex extends React.Component { } } -export default Form.create()(LoginIndex) \ No newline at end of file +export default Form.create()(LoginIndex) diff --git a/spug_web/src/pages/monitor/Form.js b/spug_web/src/pages/monitor/Form.js index d242ec4..c37ee75 100644 --- a/spug_web/src/pages/monitor/Form.js +++ b/spug_web/src/pages/monitor/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Select, Radio, message, Steps, Button, Transfer, Checkbox } from 'antd'; @@ -233,4 +238,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/monitor/Table.js b/spug_web/src/pages/monitor/Table.js index 2f1ad24..ff0be36 100644 --- a/spug_web/src/pages/monitor/Table.js +++ b/spug_web/src/pages/monitor/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, Tag, message } from 'antd'; @@ -148,4 +153,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/monitor/index.js b/spug_web/src/pages/monitor/index.js index 2b21afd..7ec6a73 100644 --- a/spug_web/src/pages/monitor/index.js +++ b/spug_web/src/pages/monitor/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Input, Select, Button } from 'antd'; import { SearchForm, AuthDiv, AuthCard } from 'components'; @@ -30,4 +35,4 @@ export default function () { ) -} \ No newline at end of file +} diff --git a/spug_web/src/pages/monitor/routes.js b/spug_web/src/pages/monitor/routes.js index 6e03f0b..365f9d3 100644 --- a/spug_web/src/pages/monitor/routes.js +++ b/spug_web/src/pages/monitor/routes.js @@ -1,7 +1,12 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from "../../libs/router"; import Index from './index'; export default [ makeRoute('', Index), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/monitor/store.js b/spug_web/src/pages/monitor/store.js index 9371dd9..6ea9cfc 100644 --- a/spug_web/src/pages/monitor/store.js +++ b/spug_web/src/pages/monitor/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -23,4 +28,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/schedule/Form.js b/spug_web/src/pages/schedule/Form.js index 1fc830c..3d6eb94 100644 --- a/spug_web/src/pages/schedule/Form.js +++ b/spug_web/src/pages/schedule/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, Select, Col, Button, Steps, Tabs, InputNumber, DatePicker, Icon, message } from 'antd'; @@ -232,4 +237,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/schedule/Info.js b/spug_web/src/pages/schedule/Info.js index ee2b67b..d3e461b 100644 --- a/spug_web/src/pages/schedule/Info.js +++ b/spug_web/src/pages/schedule/Info.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Modal, Form, Tabs, Spin } from 'antd'; import { StatisticsCard } from 'components'; @@ -63,4 +68,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/schedule/Table.js b/spug_web/src/pages/schedule/Table.js index a26b0fc..e27dd3d 100644 --- a/spug_web/src/pages/schedule/Table.js +++ b/spug_web/src/pages/schedule/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, Tag, Dropdown, Icon, Menu, message } from 'antd'; @@ -136,4 +141,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/schedule/index.js b/spug_web/src/pages/schedule/index.js index 68eab39..72218bb 100644 --- a/spug_web/src/pages/schedule/index.js +++ b/spug_web/src/pages/schedule/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Select, Button } from 'antd'; @@ -39,4 +44,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/schedule/routes.js b/spug_web/src/pages/schedule/routes.js index 6e03f0b..365f9d3 100644 --- a/spug_web/src/pages/schedule/routes.js +++ b/spug_web/src/pages/schedule/routes.js @@ -1,7 +1,12 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from "../../libs/router"; import Index from './index'; export default [ makeRoute('', Index), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/schedule/store.js b/spug_web/src/pages/schedule/store.js index 0cbd2a5..4a45879 100644 --- a/spug_web/src/pages/schedule/store.js +++ b/spug_web/src/pages/schedule/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -47,4 +52,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/system/account/Form.js b/spug_web/src/pages/system/account/Form.js index 0e7dc7f..f518e93 100644 --- a/spug_web/src/pages/system/account/Form.js +++ b/spug_web/src/pages/system/account/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {Modal, Form, Select, Input, message, Col} from 'antd'; import http from 'libs/http'; @@ -86,4 +91,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/system/account/Table.js b/spug_web/src/pages/system/account/Table.js index a1aa67a..11cf88a 100644 --- a/spug_web/src/pages/system/account/Table.js +++ b/spug_web/src/pages/system/account/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {observer} from 'mobx-react'; import {Table, Divider, Modal, Badge, message, Form, Input} from 'antd'; @@ -115,4 +120,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/system/account/index.js b/spug_web/src/pages/system/account/index.js index c485ab2..2059718 100644 --- a/spug_web/src/pages/system/account/index.js +++ b/spug_web/src/pages/system/account/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Input, Select, Button } from 'antd'; import { SearchForm, AuthCard } from 'components'; @@ -27,4 +32,4 @@ export default function () { ) -} \ No newline at end of file +} diff --git a/spug_web/src/pages/system/account/store.js b/spug_web/src/pages/system/account/store.js index 54f789d..617cbef 100644 --- a/spug_web/src/pages/system/account/store.js +++ b/spug_web/src/pages/system/account/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -23,4 +28,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/system/role/DeployPerm.js b/spug_web/src/pages/system/role/DeployPerm.js index c3b6dc1..f8e8c6e 100644 --- a/spug_web/src/pages/system/role/DeployPerm.js +++ b/spug_web/src/pages/system/role/DeployPerm.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {observer} from 'mobx-react'; import {Modal, Form, Transfer, message, Tabs, Alert} from 'antd'; @@ -102,4 +107,4 @@ class DeployPerm extends React.Component { } } -export default DeployPerm \ No newline at end of file +export default DeployPerm diff --git a/spug_web/src/pages/system/role/Form.js b/spug_web/src/pages/system/role/Form.js index 92578e9..c9732e4 100644 --- a/spug_web/src/pages/system/role/Form.js +++ b/spug_web/src/pages/system/role/Form.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Modal, Form, Input, message } from 'antd'; @@ -54,4 +59,4 @@ class ComForm extends React.Component { } } -export default Form.create()(ComForm) \ No newline at end of file +export default Form.create()(ComForm) diff --git a/spug_web/src/pages/system/role/PagePerm.js b/spug_web/src/pages/system/role/PagePerm.js index 556a32d..cf5128f 100644 --- a/spug_web/src/pages/system/role/PagePerm.js +++ b/spug_web/src/pages/system/role/PagePerm.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import {Modal, Checkbox, Row, Col, message, Alert} from 'antd'; @@ -112,4 +117,4 @@ class PagePerm extends React.Component { } } -export default PagePerm \ No newline at end of file +export default PagePerm diff --git a/spug_web/src/pages/system/role/Table.js b/spug_web/src/pages/system/role/Table.js index a01676a..e968a4a 100644 --- a/spug_web/src/pages/system/role/Table.js +++ b/spug_web/src/pages/system/role/Table.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Table, Divider, Modal, message } from 'antd'; @@ -62,4 +67,4 @@ class ComTable extends React.Component { } } -export default ComTable \ No newline at end of file +export default ComTable diff --git a/spug_web/src/pages/system/role/codes.js b/spug_web/src/pages/system/role/codes.js index 3af14bd..38f638a 100644 --- a/spug_web/src/pages/system/role/codes.js +++ b/spug_web/src/pages/system/role/codes.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ export default [{ key: 'home', label: '工作台', @@ -154,4 +159,4 @@ export default [{ {key: 'del', label: '删除联系组'}, ] }] -}] \ No newline at end of file +}] diff --git a/spug_web/src/pages/system/role/index.js b/spug_web/src/pages/system/role/index.js index 269d701..098e648 100644 --- a/spug_web/src/pages/system/role/index.js +++ b/spug_web/src/pages/system/role/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { observer } from 'mobx-react'; import { Input, Button } from 'antd'; @@ -28,4 +33,4 @@ export default observer(function () { {store.deployPermVisible && } ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/system/role/store.js b/spug_web/src/pages/system/role/store.js index 523d474..aaca42d 100644 --- a/spug_web/src/pages/system/role/store.js +++ b/spug_web/src/pages/system/role/store.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; import codes from './codes'; @@ -56,4 +61,4 @@ class Store { } } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/system/routes.js b/spug_web/src/pages/system/routes.js index 3bd379e..662cc84 100644 --- a/spug_web/src/pages/system/routes.js +++ b/spug_web/src/pages/system/routes.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from 'libs/router'; import Account from './account'; import Setting from './setting'; @@ -7,4 +12,4 @@ export default [ makeRoute('/account', Account), makeRoute('/role', Role), makeRoute('/setting', Setting), -] \ No newline at end of file +] diff --git a/spug_web/src/pages/system/setting/AlarmSetting.js b/spug_web/src/pages/system/setting/AlarmSetting.js index f0d80b3..1bef588 100644 --- a/spug_web/src/pages/system/setting/AlarmSetting.js +++ b/spug_web/src/pages/system/setting/AlarmSetting.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Button, Form, Input } from 'antd'; import styles from './index.module.css'; @@ -15,4 +20,4 @@ export default function AlarmSetting(props) { ) -} \ No newline at end of file +} diff --git a/spug_web/src/pages/system/setting/BasicSetting.js b/spug_web/src/pages/system/setting/BasicSetting.js index 6570f16..f11872a 100644 --- a/spug_web/src/pages/system/setting/BasicSetting.js +++ b/spug_web/src/pages/system/setting/BasicSetting.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Button, Form, Input } from 'antd'; import styles from './index.module.css'; @@ -19,4 +24,4 @@ export default function BasicSetting(props) { ) -} \ No newline at end of file +} diff --git a/spug_web/src/pages/system/setting/MailServer.js b/spug_web/src/pages/system/setting/MailServer.js index 0e68024..20c4907 100644 --- a/spug_web/src/pages/system/setting/MailServer.js +++ b/spug_web/src/pages/system/setting/MailServer.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React, { useState } from 'react'; import {observer} from 'mobx-react'; import { Button, Form, Input, message } from 'antd'; @@ -76,4 +81,4 @@ function MailServer(props) { ) } -export default observer(Form.create()(MailServer)) \ No newline at end of file +export default observer(Form.create()(MailServer)) diff --git a/spug_web/src/pages/system/setting/OpenService.js b/spug_web/src/pages/system/setting/OpenService.js index 45eeb17..b09b9b9 100644 --- a/spug_web/src/pages/system/setting/OpenService.js +++ b/spug_web/src/pages/system/setting/OpenService.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {observer} from 'mobx-react'; import {Button, Form, Input, message} from 'antd'; @@ -34,4 +39,4 @@ export default observer(function () { ) -}) \ No newline at end of file +}) diff --git a/spug_web/src/pages/system/setting/index.js b/spug_web/src/pages/system/setting/index.js index 06774fb..c54f6b2 100644 --- a/spug_web/src/pages/system/setting/index.js +++ b/spug_web/src/pages/system/setting/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import { Menu } from 'antd'; import {AuthDiv} from 'components'; @@ -48,4 +53,4 @@ class Index extends React.Component { } } -export default Index \ No newline at end of file +export default Index diff --git a/spug_web/src/pages/system/setting/store.js b/spug_web/src/pages/system/setting/store.js index 3501aee..890f76f 100644 --- a/spug_web/src/pages/system/setting/store.js +++ b/spug_web/src/pages/system/setting/store.js @@ -1,4 +1,8 @@ - +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { observable } from "mobx"; import http from 'libs/http'; @@ -19,4 +23,4 @@ class Store { }; } -export default new Store() \ No newline at end of file +export default new Store() diff --git a/spug_web/src/pages/welcome/index.js b/spug_web/src/pages/welcome/index.js index 951586c..497037c 100644 --- a/spug_web/src/pages/welcome/index.js +++ b/spug_web/src/pages/welcome/index.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import React from 'react'; import {Card } from 'antd'; @@ -7,4 +12,4 @@ export default function (props) {
{localStorage.getItem('nickname')}, 欢迎你
) -} \ No newline at end of file +} diff --git a/spug_web/src/pages/welcome/routes.js b/spug_web/src/pages/welcome/routes.js index e230da8..07df5c5 100644 --- a/spug_web/src/pages/welcome/routes.js +++ b/spug_web/src/pages/welcome/routes.js @@ -1,6 +1,11 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeRoute } from 'libs/router'; import Index from './index'; export default [ makeRoute('', Index), -] \ No newline at end of file +] diff --git a/spug_web/src/routes.js b/spug_web/src/routes.js index 61b2e86..624e59f 100644 --- a/spug_web/src/routes.js +++ b/spug_web/src/routes.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ import { makeModuleRoute } from "./libs/router"; import welcomeRoues from './pages/welcome/routes'; @@ -23,4 +28,4 @@ export default [ makeModuleRoute('/alarm', alarmRoutes), makeModuleRoute('/config', configRoutes), makeModuleRoute('/deploy', deployRoutes), -] \ No newline at end of file +] diff --git a/spug_web/src/serviceWorker.js b/spug_web/src/serviceWorker.js index f8c7e50..3586890 100644 --- a/spug_web/src/serviceWorker.js +++ b/spug_web/src/serviceWorker.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ // This optional code is used to register a service worker. // register() is not called by default. diff --git a/spug_web/src/setupProxy.js b/spug_web/src/setupProxy.js index fb2eaa8..5f5eadd 100644 --- a/spug_web/src/setupProxy.js +++ b/spug_web/src/setupProxy.js @@ -1,3 +1,8 @@ +/** + * Copyright (c) OpenSpug Organization. https://github.com/openspug/spug + * Copyright (c) + * Released under the MIT License. + */ const proxy = require('http-proxy-middleware'); module.exports = function (app) { @@ -10,4 +15,4 @@ module.exports = function (app) { '^/api': '' } })) -}; \ No newline at end of file +};