├── .asf.yaml ├── .github ├── ISSUE_TEMPLATE │ ├── bug-report.md │ ├── feature-request.md │ └── question.md ├── PULL_REQUEST_TEMPLATE └── workflows │ └── maven.yml ├── .gitignore ├── .mvn ├── jvm.config └── wrapper │ └── maven-wrapper.properties ├── LICENSE ├── NOTICE ├── README.md ├── README_ZH.md ├── RELEASE-NOTES.md ├── mvnw ├── mvnw.cmd ├── pom.xml ├── shardingsphere-elasticjob-cloud-ui ├── pom.xml ├── shardingsphere-elasticjob-cloud-ui-backend │ ├── pom.xml │ ├── shardingsphere-elasticjob-cloud-ui-backend-API.md │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── shardingsphere │ │ │ │ └── elasticjob │ │ │ │ └── cloud │ │ │ │ └── ui │ │ │ │ ├── Bootstrap.java │ │ │ │ ├── config │ │ │ │ ├── BeanConfiguration.java │ │ │ │ ├── EventTraceConfiguration.java │ │ │ │ ├── FilterConfiguration.java │ │ │ │ ├── JobStateConfiguration.java │ │ │ │ ├── OpenJPAConfig.java │ │ │ │ └── RegistryConfiguration.java │ │ │ │ ├── domain │ │ │ │ ├── GlobalConfiguration.java │ │ │ │ ├── RegistryCenterConfiguration.java │ │ │ │ └── RegistryCenterConfigurations.java │ │ │ │ ├── exception │ │ │ │ ├── AppConfigurationException.java │ │ │ │ └── JobConsoleException.java │ │ │ │ ├── repository │ │ │ │ ├── ConfigurationsXmlRepository.java │ │ │ │ ├── StatisticRdbRepository.java │ │ │ │ ├── XmlRepository.java │ │ │ │ └── impl │ │ │ │ │ ├── AbstractXmlRepositoryImpl.java │ │ │ │ │ └── ConfigurationsXmlRepositoryImpl.java │ │ │ │ ├── security │ │ │ │ ├── AuthenticationFilter.java │ │ │ │ ├── AuthenticationResult.java │ │ │ │ ├── UserAccount.java │ │ │ │ └── UserAuthenticationService.java │ │ │ │ ├── service │ │ │ │ ├── FacadeService.java │ │ │ │ ├── RegistryCenterConfigurationService.java │ │ │ │ ├── RegistryCenterFactory.java │ │ │ │ ├── app │ │ │ │ │ ├── CloudAppConfiguration.java │ │ │ │ │ ├── CloudAppConfigurationNode.java │ │ │ │ │ ├── CloudAppConfigurationService.java │ │ │ │ │ └── pojo │ │ │ │ │ │ └── CloudAppConfigurationPOJO.java │ │ │ │ ├── impl │ │ │ │ │ └── RegistryCenterConfigurationServiceImpl.java │ │ │ │ ├── job │ │ │ │ │ ├── CloudJobConfigurationNode.java │ │ │ │ │ └── CloudJobConfigurationService.java │ │ │ │ ├── producer │ │ │ │ │ └── ProducerManager.java │ │ │ │ ├── state │ │ │ │ │ ├── StateNode.java │ │ │ │ │ ├── disable │ │ │ │ │ │ ├── app │ │ │ │ │ │ │ ├── DisableAppNode.java │ │ │ │ │ │ │ └── DisableAppService.java │ │ │ │ │ │ └── job │ │ │ │ │ │ │ ├── DisableJobNode.java │ │ │ │ │ │ │ └── DisableJobService.java │ │ │ │ │ ├── failover │ │ │ │ │ │ ├── FailoverNode.java │ │ │ │ │ │ ├── FailoverService.java │ │ │ │ │ │ └── FailoverTaskInfo.java │ │ │ │ │ ├── ready │ │ │ │ │ │ ├── ReadyNode.java │ │ │ │ │ │ └── ReadyService.java │ │ │ │ │ └── running │ │ │ │ │ │ ├── RunningNode.java │ │ │ │ │ │ └── RunningService.java │ │ │ │ └── statistics │ │ │ │ │ ├── StatisticManager.java │ │ │ │ │ └── util │ │ │ │ │ └── StatisticTimeUtils.java │ │ │ │ ├── util │ │ │ │ ├── HomeFolderUtils.java │ │ │ │ └── SessionRegistryCenterConfiguration.java │ │ │ │ └── web │ │ │ │ ├── controller │ │ │ │ ├── CloudAppController.java │ │ │ │ ├── CloudJobController.java │ │ │ │ ├── RegistryCenterController.java │ │ │ │ └── search │ │ │ │ │ └── JobEventRdbSearch.java │ │ │ │ ├── dto │ │ │ │ └── CloudAppConfiguration.java │ │ │ │ ├── filter │ │ │ │ └── CORSFilter.java │ │ │ │ └── response │ │ │ │ ├── ResponseResult.java │ │ │ │ └── ResponseResultUtil.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── logback.xml │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── shardingsphere │ │ └── elasticjob │ │ └── cloud │ │ └── ui │ │ └── util │ │ └── HomeFolderUtilsTest.java └── shardingsphere-elasticjob-cloud-ui-frontend │ ├── .babelrc │ ├── .editorconfig │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── .postcssrc.js │ ├── README.md │ ├── build │ ├── build.js │ ├── check-versions.js │ ├── rimraf.js │ ├── utils.js │ ├── vue-loader.conf.js │ ├── webpack.base.conf.js │ ├── webpack.dev.conf.js │ ├── webpack.prod.conf.js │ └── webpack.unit.conf.js │ ├── config │ ├── dev.env.js │ ├── index.js │ └── prod.env.js │ ├── index.html │ ├── package.json │ ├── pom.xml │ ├── src │ ├── App.vue │ ├── assets │ │ ├── img │ │ │ ├── bg.png │ │ │ ├── close.png │ │ │ ├── data-source.png │ │ │ ├── del.png │ │ │ ├── edit.png │ │ │ ├── expand.png │ │ │ ├── link.png │ │ │ ├── login-logo.png │ │ │ ├── logo.png │ │ │ ├── open.png │ │ │ ├── password.png │ │ │ ├── rules.png │ │ │ ├── shrink.png │ │ │ ├── sidebar-icon.png │ │ │ ├── sidebar-logo.png │ │ │ └── user.png │ │ ├── logo.png │ │ └── styles │ │ │ ├── index.scss │ │ │ └── theme.scss │ ├── components │ │ ├── Container │ │ │ └── index.vue │ │ ├── Footer │ │ │ └── index.vue │ │ ├── Head │ │ │ └── index.vue │ │ ├── Logo │ │ │ └── index.vue │ │ └── Menu │ │ │ └── index.vue │ ├── lang │ │ ├── en-US.js │ │ ├── index.js │ │ └── zh-CN.js │ ├── main.js │ ├── router │ │ └── index.js │ ├── store │ │ ├── actions.js │ │ ├── index.js │ │ ├── modules │ │ │ ├── global.js │ │ │ └── index.js │ │ └── mutation-types.js │ ├── utils │ │ ├── api.js │ │ └── conf.js │ └── views │ │ ├── app-config │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── appConfig.vue │ │ ├── history-status │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── historyStatus.vue │ │ ├── history-trace │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── historyTrace.vue │ │ ├── job-config │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── jobConfig.vue │ │ ├── job-dashboard │ │ ├── api.js │ │ └── index.vue │ │ ├── job-detail │ │ ├── index.vue │ │ └── module │ │ │ └── jobDetail.vue │ │ ├── job-status │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── jobStatus.vue │ │ ├── login │ │ ├── api.js │ │ └── index.vue │ │ └── registry-center │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ └── registryCenter.vue │ ├── static │ ├── 404.html │ └── favicon.png │ └── test │ ├── karma.conf.js │ └── specs │ ├── components │ ├── Container.spec.js │ ├── Footer.spec.js │ ├── Head.spec.js │ ├── Logo.spec.js │ └── Menu.spec.js │ └── views │ └── login.spec.js ├── shardingsphere-elasticjob-lite-ui ├── pom.xml ├── shardingsphere-elasticjob-lite-ui-backend │ ├── pom.xml │ ├── shardingsphere-elasticjob-lite-ui-backend-API.md │ └── src │ │ ├── main │ │ ├── java │ │ │ └── org │ │ │ │ └── apache │ │ │ │ └── shardingsphere │ │ │ │ └── elasticjob │ │ │ │ └── lite │ │ │ │ └── ui │ │ │ │ ├── Bootstrap.java │ │ │ │ ├── config │ │ │ │ ├── DynamicDataSourceConfig.java │ │ │ │ ├── FilterConfiguration.java │ │ │ │ └── OpenJPAConfig.java │ │ │ │ ├── dao │ │ │ │ ├── search │ │ │ │ │ ├── JobExecutionLogRepository.java │ │ │ │ │ └── JobStatusTraceLogRepository.java │ │ │ │ └── statistics │ │ │ │ │ ├── JobRegisterStatisticsRepository.java │ │ │ │ │ ├── JobRunningStatisticsRepository.java │ │ │ │ │ ├── StatisticInterval.java │ │ │ │ │ ├── TaskResultStatisticsRepository.java │ │ │ │ │ ├── TaskRunningStatisticsRepository.java │ │ │ │ │ └── type │ │ │ │ │ └── job │ │ │ │ │ ├── JobExecutionTypeStatistics.java │ │ │ │ │ └── JobTypeStatistics.java │ │ │ │ ├── domain │ │ │ │ ├── DataSourceFactory.java │ │ │ │ ├── EventTraceDataSource.java │ │ │ │ ├── EventTraceDataSourceConfiguration.java │ │ │ │ ├── EventTraceDataSourceConfigurations.java │ │ │ │ ├── EventTraceDataSourceFactory.java │ │ │ │ ├── GlobalConfiguration.java │ │ │ │ ├── JobExecutionLog.java │ │ │ │ ├── JobRegisterStatistics.java │ │ │ │ ├── JobRunningStatistics.java │ │ │ │ ├── JobStatusTraceLog.java │ │ │ │ ├── RegistryCenterConfiguration.java │ │ │ │ ├── RegistryCenterConfigurations.java │ │ │ │ ├── TaskResultStatistics.java │ │ │ │ └── TaskRunningStatistics.java │ │ │ │ ├── dto │ │ │ │ ├── request │ │ │ │ │ ├── BasePageRequest.java │ │ │ │ │ ├── FindJobExecutionEventsRequest.java │ │ │ │ │ └── FindJobStatusTraceEventsRequest.java │ │ │ │ └── response │ │ │ │ │ └── BasePageResponse.java │ │ │ │ ├── exception │ │ │ │ ├── DriverClassNotInWhitelistException.java │ │ │ │ ├── JdbcDriverNotFoundException.java │ │ │ │ └── JobConsoleException.java │ │ │ │ ├── repository │ │ │ │ ├── ConfigurationsXmlRepository.java │ │ │ │ ├── XmlRepository.java │ │ │ │ └── impl │ │ │ │ │ ├── AbstractXmlRepositoryImpl.java │ │ │ │ │ └── ConfigurationsXmlRepositoryImpl.java │ │ │ │ ├── security │ │ │ │ ├── AuthenticationFilter.java │ │ │ │ ├── AuthenticationResult.java │ │ │ │ ├── OAuthCode.java │ │ │ │ ├── UserAccount.java │ │ │ │ └── UserAuthenticationService.java │ │ │ │ ├── service │ │ │ │ ├── EventTraceDataSourceConfigurationService.java │ │ │ │ ├── EventTraceHistoryService.java │ │ │ │ ├── JobAPIService.java │ │ │ │ ├── RegistryCenterConfigurationService.java │ │ │ │ └── impl │ │ │ │ │ ├── EventTraceDataSourceConfigurationServiceImpl.java │ │ │ │ │ ├── EventTraceHistoryServiceImpl.java │ │ │ │ │ ├── JobAPIServiceImpl.java │ │ │ │ │ └── RegistryCenterConfigurationServiceImpl.java │ │ │ │ ├── util │ │ │ │ ├── HomeFolderUtils.java │ │ │ │ ├── SessionEventTraceDataSourceConfiguration.java │ │ │ │ └── SessionRegistryCenterConfiguration.java │ │ │ │ └── web │ │ │ │ ├── controller │ │ │ │ ├── EventTraceDataSourceController.java │ │ │ │ ├── EventTraceHistoryController.java │ │ │ │ ├── JobConfigController.java │ │ │ │ ├── JobOperationController.java │ │ │ │ ├── RegistryCenterController.java │ │ │ │ └── ServerOperationController.java │ │ │ │ ├── filter │ │ │ │ └── CORSFilter.java │ │ │ │ ├── handler │ │ │ │ └── RestExceptionHandler.java │ │ │ │ └── response │ │ │ │ ├── ResponseResult.java │ │ │ │ └── ResponseResultUtil.java │ │ └── resources │ │ │ ├── application.properties │ │ │ └── logback.xml │ │ └── test │ │ └── java │ │ └── org │ │ └── apache │ │ └── shardingsphere │ │ └── elasticjob │ │ └── lite │ │ └── ui │ │ ├── dao │ │ ├── search │ │ │ ├── RDBJobEventSearchTest.java │ │ │ └── RDBJobEventSearchTestConfiguration.java │ │ └── statistics │ │ │ └── rdb │ │ │ └── RDBStatisticRepositoryTest.java │ │ └── util │ │ └── HomeFolderUtilsTest.java └── shardingsphere-elasticjob-lite-ui-frontend │ ├── .babelrc │ ├── .editorconfig │ ├── .eslintignore │ ├── .eslintrc.js │ ├── .gitignore │ ├── .postcssrc.js │ ├── README.md │ ├── build │ ├── build.js │ ├── check-versions.js │ ├── rimraf.js │ ├── utils.js │ ├── vue-loader.conf.js │ ├── webpack.base.conf.js │ ├── webpack.dev.conf.js │ ├── webpack.prod.conf.js │ └── webpack.unit.conf.js │ ├── config │ ├── dev.env.js │ ├── index.js │ └── prod.env.js │ ├── index.html │ ├── package.json │ ├── pom.xml │ ├── src │ ├── App.vue │ ├── assets │ │ ├── img │ │ │ ├── bg.png │ │ │ ├── close.png │ │ │ ├── data-source.png │ │ │ ├── del.png │ │ │ ├── edit.png │ │ │ ├── expand.png │ │ │ ├── link.png │ │ │ ├── login-logo.png │ │ │ ├── logo.png │ │ │ ├── open.png │ │ │ ├── password.png │ │ │ ├── rules.png │ │ │ ├── shrink.png │ │ │ ├── sidebar-icon.png │ │ │ ├── sidebar-logo.png │ │ │ └── user.png │ │ ├── logo.png │ │ └── styles │ │ │ ├── index.scss │ │ │ └── theme.scss │ ├── components │ │ ├── Container │ │ │ └── index.vue │ │ ├── Footer │ │ │ └── index.vue │ │ ├── Head │ │ │ └── index.vue │ │ ├── Logo │ │ │ └── index.vue │ │ └── Menu │ │ │ └── index.vue │ ├── lang │ │ ├── en-US.js │ │ ├── index.js │ │ └── zh-CN.js │ ├── main.js │ ├── router │ │ └── index.js │ ├── store │ │ ├── actions.js │ │ ├── index.js │ │ ├── modules │ │ │ ├── global.js │ │ │ └── index.js │ │ └── mutation-types.js │ ├── utils │ │ ├── api.js │ │ └── conf.js │ └── views │ │ ├── data-source │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── dataSource.vue │ │ ├── help │ │ └── index.vue │ │ ├── history-status │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── historyStatus.vue │ │ ├── history-trace │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── historyTrace.vue │ │ ├── login │ │ ├── api.js │ │ ├── casdoor.js │ │ └── index.vue │ │ ├── operation-jobs-detail │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── operationJobsDetail.vue │ │ ├── operation-jobs │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── operationJobs.vue │ │ ├── operation-servers-detail │ │ ├── index.vue │ │ └── module │ │ │ └── operationServersDetail.vue │ │ ├── operation-servers │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ │ └── operationServers.vue │ │ └── registry-center │ │ ├── api.js │ │ ├── index.vue │ │ └── module │ │ └── registryCenter.vue │ ├── static │ ├── 404.html │ └── favicon.png │ └── test │ ├── karma.conf.js │ └── specs │ ├── components │ ├── Container.spec.js │ ├── Footer.spec.js │ ├── Head.spec.js │ ├── Logo.spec.js │ └── Menu.spec.js │ └── views │ └── login.spec.js └── shardingsphere-elasticjob-ui-distribution ├── pom.xml ├── shardingsphere-elasticjob-cloud-ui-bin-distribution ├── Dockerfile ├── pom.xml └── src │ └── main │ ├── assembly │ └── shardingsphere-elasticjob-cloud-ui-bin-distribution.xml │ ├── release-docs │ ├── LICENSE │ ├── NOTICE │ ├── README.txt │ └── licenses │ │ ├── LICENSE-H2.txt │ │ ├── LICENSE-activation.txt │ │ ├── LICENSE-aspectjweaver.txt │ │ ├── LICENSE-axios.txt │ │ ├── LICENSE-checker-qual.txt │ │ ├── LICENSE-element-ui.txt │ │ ├── LICENSE-incubator-echarts.txt │ │ ├── LICENSE-java-jwt.txt │ │ ├── LICENSE-jaxb.txt │ │ ├── LICENSE-jcl-over-slf4j.txt │ │ ├── LICENSE-jul-to-slf4j.txt │ │ ├── LICENSE-lodash.txt │ │ ├── LICENSE-logback.txt │ │ ├── LICENSE-mchange-commons.txt │ │ ├── LICENSE-moment.txt │ │ ├── LICENSE-normalize.txt │ │ ├── LICENSE-serp.txt │ │ ├── LICENSE-slf4j.txt │ │ ├── LICENSE-vue-echarts.txt │ │ ├── LICENSE-vue-i18n.txt │ │ ├── LICENSE-vue-router.txt │ │ ├── LICENSE-vue.txt │ │ └── LICENSE-vuex.txt │ └── resources │ ├── application.properties │ ├── bin │ ├── start.bat │ ├── start.sh │ └── stop.sh │ └── logback.xml ├── shardingsphere-elasticjob-lite-ui-bin-distribution ├── Dockerfile ├── pom.xml └── src │ └── main │ ├── assembly │ └── shardingsphere-elasticjob-lite-ui-bin-distribution.xml │ ├── release-docs │ ├── LICENSE │ ├── NOTICE │ ├── README.txt │ └── licenses │ │ ├── LICENSE-H2.txt │ │ ├── LICENSE-activation.txt │ │ ├── LICENSE-aspectjweaver.txt │ │ ├── LICENSE-axios.txt │ │ ├── LICENSE-checker-qual.txt │ │ ├── LICENSE-element-ui.txt │ │ ├── LICENSE-java-jwt.txt │ │ ├── LICENSE-jaxb.txt │ │ ├── LICENSE-jcl-over-slf4j.txt │ │ ├── LICENSE-jul-to-slf4j.txt │ │ ├── LICENSE-lodash.txt │ │ ├── LICENSE-logback.txt │ │ ├── LICENSE-mchange-commons.txt │ │ ├── LICENSE-postgresql.txt │ │ ├── LICENSE-serp.txt │ │ ├── LICENSE-slf4j.txt │ │ ├── LICENSE-vue-i18n.txt │ │ ├── LICENSE-vue-router.txt │ │ ├── LICENSE-vue.txt │ │ └── LICENSE-vuex.txt │ └── resources │ ├── application.properties │ ├── bin │ ├── start.bat │ ├── start.sh │ └── stop.sh │ └── logback.xml └── shardingsphere-elasticjob-ui-src-distribution ├── pom.xml └── src └── main └── assembly └── shardingsphere-elasticjob-ui-src-distribution.xml /.asf.yaml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | notifications: 19 | commits: notifications@shardingsphere.apache.org 20 | issues: notifications@shardingsphere.apache.org 21 | pullrequests: notifications@shardingsphere.apache.org 22 | 23 | github: 24 | description: Administrator console of ElasticJob 25 | labels: 26 | - elasticjob 27 | - ui 28 | features: 29 | issues: true 30 | projects: true 31 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/bug-report.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "\U0001F41B Bug Report" 3 | about: Something isn't working as expected 4 | --- 5 | 6 | ## Bug Report 7 | 8 | **For English only**, other languages will not accept. 9 | 10 | Before report a bug, make sure you have: 11 | 12 | - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere-elasticjob-ui/issues). 13 | - Read documentation: [ElasticJob Doc](https://shardingsphere.apache.org/elasticjob/current/en/overview/). 14 | 15 | Please pay attention on issues you submitted, because we maybe need more details. 16 | If no response anymore and we cannot reproduce it on current information, we will **close it**. 17 | 18 | Please answer these questions before submitting your issue. Thanks! 19 | 20 | ### Which version of ElasticJob did you use? 21 | 22 | ### Which project did you use? ElasticJob-Lite or ElasticJob-Cloud? 23 | 24 | ### Expected behavior 25 | 26 | ### Actual behavior 27 | 28 | ### Reason analyze (If you can) 29 | 30 | ### Steps to reproduce the behavior. 31 | 32 | ### Example codes for reproduce this issue (such as a github link). 33 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/feature-request.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "\U0001F680 Feature Request" 3 | about: I have a suggestion 4 | --- 5 | 6 | ## Feature Request 7 | 8 | **For English only**, other languages will not accept. 9 | 10 | Please pay attention on issues you submitted, because we maybe need more details. 11 | If no response anymore and we cannot make decision by current information, we will **close it**. 12 | 13 | Please answer these questions before submitting your issue. Thanks! 14 | 15 | ### Is your feature request related to a problem? 16 | 17 | ### Describe the feature you would like. 18 | -------------------------------------------------------------------------------- /.github/ISSUE_TEMPLATE/question.md: -------------------------------------------------------------------------------- 1 | --- 2 | name: "\U0001F914 Question" 3 | about: Usage question that isn't answered in docs or discussion 4 | --- 5 | 6 | ## Question 7 | 8 | **For English only**, other languages will not accept. 9 | 10 | Before asking a question, make sure you have: 11 | 12 | - Googled your question. 13 | - Searched open and closed [GitHub issues](https://github.com/apache/shardingsphere-elasticjob-ui/issues). 14 | - Read documentation: [ElasticJob Doc](https://shardingsphere.apache.org/elasticjob/current/en/overview/). 15 | 16 | Please pay attention on issues you submitted, because we maybe need more details. 17 | If no response anymore and we cannot reproduce it on current information, we will **close it**. 18 | -------------------------------------------------------------------------------- /.github/PULL_REQUEST_TEMPLATE: -------------------------------------------------------------------------------- 1 | Fixes #ISSUSE_ID. 2 | 3 | Changes proposed in this pull request: 4 | - 5 | - 6 | - 7 | -------------------------------------------------------------------------------- /.github/workflows/maven.yml: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | # This workflow will build a Java project with Maven 19 | # For more information see: https://help.github.com/actions/language-and-framework-guides/building-and-testing-java-with-maven 20 | 21 | name: Java CI with Maven 22 | on: 23 | push: 24 | branches: [ master ] 25 | pull_request: 26 | branches: [ master ] 27 | jobs: 28 | build: 29 | runs-on: ubuntu-latest 30 | steps: 31 | - uses: actions/checkout@v2 32 | - name: Set up JDK 1.8 33 | uses: actions/setup-java@v1 34 | with: 35 | java-version: 1.8 36 | - name: Build with Maven 37 | run: | 38 | mvn --batch-mode --no-transfer-progress clean install cobertura:cobertura -Dmaven.javadoc.skip=true 39 | bash <(curl -s https://codecov.io/bash) 40 | -------------------------------------------------------------------------------- /.gitignore: -------------------------------------------------------------------------------- 1 | # maven ignore 2 | target/ 3 | *.class 4 | *.jar 5 | *.war 6 | *.zip 7 | *.tar 8 | *.tar.gz 9 | .flattened-pom.xml 10 | 11 | # maven plugin ignore 12 | release.properties 13 | cobertura.ser 14 | *.gpg 15 | 16 | # eclipse ignore 17 | .settings/ 18 | .project 19 | .classpath 20 | 21 | # idea ignore 22 | .idea/ 23 | *.ipr 24 | *.iml 25 | *.iws 26 | 27 | # temp ignore 28 | logs/ 29 | *.log 30 | *.doc 31 | *.cache 32 | *.diff 33 | *.patch 34 | *.tmp 35 | 36 | # system ignore 37 | .DS_Store 38 | Thumbs.db 39 | node_modules/ 40 | -------------------------------------------------------------------------------- /.mvn/jvm.config: -------------------------------------------------------------------------------- 1 | -Xmx1024m -XX:MaxMetaspaceSize=256m 2 | -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | # Licensed to the Apache Software Foundation (ASF) under one 2 | # or more contributor license agreements. See the NOTICE file 3 | # distributed with this work for additional information 4 | # regarding copyright ownership. The ASF licenses this file 5 | # to you under the Apache License, Version 2.0 (the 6 | # "License"); you may not use this file except in compliance 7 | # with the License. You may obtain a copy of the License at 8 | # 9 | # https://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, 12 | # software distributed under the License is distributed on an 13 | # "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY 14 | # KIND, either express or implied. See the License for the 15 | # specific language governing permissions and limitations 16 | # under the License. 17 | distributionUrl=https://repo.maven.apache.org/maven2/org/apache/maven/apache-maven/3.8.5/apache-maven-3.8.5-bin.zip 18 | wrapperUrl=https://repo.maven.apache.org/maven2/org/apache/maven/wrapper/maven-wrapper/3.1.1/maven-wrapper-3.1.1.jar 19 | -------------------------------------------------------------------------------- /NOTICE: -------------------------------------------------------------------------------- 1 | Apache ShardingSphere ElasticJob 2 | Copyright 2018-2022 The Apache Software Foundation 3 | 4 | This product includes software developed at 5 | The Apache Software Foundation (http://www.apache.org/). 6 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/shardingsphere-elasticjob-cloud-ui-backend-API.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/shardingsphere-elasticjob-cloud-ui-backend-API.md -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/Bootstrap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui; 19 | 20 | import org.springframework.boot.SpringApplication; 21 | import org.springframework.boot.autoconfigure.SpringBootApplication; 22 | 23 | /** 24 | * Console bootstrap. 25 | */ 26 | @SpringBootApplication 27 | public class Bootstrap { 28 | 29 | /** 30 | * Startup RESTful server. 31 | * 32 | * @param args arguments 33 | */ 34 | //CHECKSTYLE:OFF 35 | public static void main(final String[] args) { 36 | //CHECKSTYLE:ON 37 | SpringApplication.run(Bootstrap.class, args); 38 | } 39 | } 40 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/config/JobStateConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.config; 19 | 20 | import lombok.Getter; 21 | import lombok.Setter; 22 | import org.springframework.boot.context.properties.ConfigurationProperties; 23 | import org.springframework.stereotype.Component; 24 | 25 | @Component 26 | @ConfigurationProperties(prefix = "job.state") 27 | @Getter 28 | @Setter 29 | public final class JobStateConfiguration { 30 | 31 | private int queueSize = 10000; 32 | } 33 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/domain/GlobalConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.domain; 19 | 20 | import lombok.Getter; 21 | import lombok.Setter; 22 | 23 | import javax.xml.bind.annotation.XmlAccessType; 24 | import javax.xml.bind.annotation.XmlAccessorType; 25 | import javax.xml.bind.annotation.XmlRootElement; 26 | 27 | /** 28 | * Global configuration. 29 | */ 30 | @Getter 31 | @Setter 32 | @XmlRootElement 33 | @XmlAccessorType(XmlAccessType.FIELD) 34 | public final class GlobalConfiguration { 35 | 36 | private RegistryCenterConfigurations registryCenterConfigurations; 37 | } 38 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/domain/RegistryCenterConfigurations.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.domain; 19 | 20 | import lombok.Getter; 21 | 22 | import javax.xml.bind.annotation.XmlAccessType; 23 | import javax.xml.bind.annotation.XmlAccessorType; 24 | import javax.xml.bind.annotation.XmlRootElement; 25 | import java.util.LinkedHashSet; 26 | import java.util.Set; 27 | 28 | /** 29 | * Registry center configurations. 30 | */ 31 | @Getter 32 | @XmlRootElement 33 | @XmlAccessorType(XmlAccessType.FIELD) 34 | public final class RegistryCenterConfigurations { 35 | 36 | private Set registryCenterConfiguration = new LinkedHashSet<>(); 37 | } 38 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/exception/AppConfigurationException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.exception; 19 | 20 | /** 21 | * Application configuration exception. 22 | */ 23 | public final class AppConfigurationException extends RuntimeException { 24 | 25 | private static final long serialVersionUID = -1466479389299512371L; 26 | 27 | public AppConfigurationException(final String errorMessage, final Object... args) { 28 | super(String.format(errorMessage, args)); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/repository/ConfigurationsXmlRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.repository; 19 | 20 | import org.apache.shardingsphere.elasticjob.cloud.ui.domain.GlobalConfiguration; 21 | 22 | /** 23 | * Configurations XML repository. 24 | */ 25 | public interface ConfigurationsXmlRepository extends XmlRepository { 26 | } 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/repository/XmlRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.repository; 19 | 20 | /** 21 | * XML repository. 22 | * 23 | * @param type of data 24 | */ 25 | public interface XmlRepository { 26 | 27 | /** 28 | * Load data. 29 | * 30 | * @return load result 31 | */ 32 | E load(); 33 | 34 | /** 35 | * Save data. 36 | * 37 | * @param entity entity 38 | */ 39 | void save(E entity); 40 | } 41 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/repository/impl/ConfigurationsXmlRepositoryImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.repository.impl; 19 | 20 | import org.apache.shardingsphere.elasticjob.cloud.ui.domain.GlobalConfiguration; 21 | import org.apache.shardingsphere.elasticjob.cloud.ui.repository.ConfigurationsXmlRepository; 22 | 23 | /** 24 | * Configurations XML repository implementation. 25 | */ 26 | public final class ConfigurationsXmlRepositoryImpl extends AbstractXmlRepositoryImpl implements ConfigurationsXmlRepository { 27 | 28 | public ConfigurationsXmlRepositoryImpl() { 29 | super("Configurations.xml", GlobalConfiguration.class); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/security/AuthenticationResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.security; 19 | 20 | import lombok.Getter; 21 | import lombok.RequiredArgsConstructor; 22 | 23 | /** 24 | * Authentication result. 25 | **/ 26 | @Getter 27 | @RequiredArgsConstructor 28 | public final class AuthenticationResult { 29 | 30 | private final String username; 31 | 32 | private final String password; 33 | 34 | private final boolean success; 35 | } 36 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/security/UserAccount.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.security; 19 | 20 | import lombok.Getter; 21 | import lombok.Setter; 22 | 23 | /** 24 | * User account. 25 | */ 26 | @Getter 27 | @Setter 28 | public final class UserAccount { 29 | 30 | private String username; 31 | 32 | private String password; 33 | } 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/service/app/CloudAppConfigurationNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.service.app; 19 | 20 | import lombok.AccessLevel; 21 | import lombok.NoArgsConstructor; 22 | 23 | /** 24 | * Cloud app configuration node. 25 | */ 26 | @NoArgsConstructor(access = AccessLevel.PRIVATE) 27 | public final class CloudAppConfigurationNode { 28 | 29 | public static final String ROOT = "/config/app"; 30 | 31 | private static final String APP_CONFIG = ROOT + "/%s"; 32 | 33 | static String getRootNodePath(final String appName) { 34 | return String.format(APP_CONFIG, appName); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/service/job/CloudJobConfigurationNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.service.job; 19 | 20 | import lombok.AccessLevel; 21 | import lombok.NoArgsConstructor; 22 | 23 | /** 24 | * Cloud job configuration node. 25 | */ 26 | @NoArgsConstructor(access = AccessLevel.PRIVATE) 27 | public final class CloudJobConfigurationNode { 28 | 29 | public static final String ROOT = "/config/job"; 30 | 31 | private static final String JOB_CONFIG = ROOT + "/%s"; 32 | 33 | static String getRootNodePath(final String jobName) { 34 | return String.format(JOB_CONFIG, jobName); 35 | } 36 | } 37 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/service/state/StateNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.service.state; 19 | 20 | import lombok.AccessLevel; 21 | import lombok.NoArgsConstructor; 22 | 23 | /** 24 | * State node. 25 | */ 26 | @NoArgsConstructor(access = AccessLevel.PRIVATE) 27 | public final class StateNode { 28 | 29 | /** 30 | * Root state node. 31 | */ 32 | public static final String ROOT = "/state"; 33 | } 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/service/state/failover/FailoverTaskInfo.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.service.state.failover; 19 | 20 | import lombok.Getter; 21 | import lombok.RequiredArgsConstructor; 22 | import org.apache.shardingsphere.elasticjob.infra.context.TaskContext.MetaInfo; 23 | 24 | /** 25 | * Failover task info. 26 | */ 27 | @RequiredArgsConstructor 28 | @Getter 29 | public final class FailoverTaskInfo { 30 | 31 | private final MetaInfo taskInfo; 32 | 33 | private final String originalTaskId; 34 | } 35 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/service/state/ready/ReadyNode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.service.state.ready; 19 | 20 | import lombok.AccessLevel; 21 | import lombok.NoArgsConstructor; 22 | import org.apache.shardingsphere.elasticjob.cloud.ui.service.state.StateNode; 23 | 24 | /** 25 | * Ready node. 26 | */ 27 | @NoArgsConstructor(access = AccessLevel.PRIVATE) 28 | final class ReadyNode { 29 | 30 | static final String ROOT = StateNode.ROOT + "/ready"; 31 | 32 | private static final String READY_JOB = ROOT + "/%s"; 33 | 34 | static String getReadyJobNodePath(final String jobName) { 35 | return String.format(READY_JOB, jobName); 36 | } 37 | } 38 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/cloud/ui/web/dto/CloudAppConfiguration.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.web.dto; 19 | 20 | import lombok.Getter; 21 | import lombok.Setter; 22 | 23 | /** 24 | * Cloud app configuration. 25 | */ 26 | @Getter 27 | @Setter 28 | public final class CloudAppConfiguration { 29 | 30 | private String appName; 31 | 32 | private String appURL; 33 | 34 | private String bootstrapScript; 35 | 36 | private double cpuCount = 1d; 37 | 38 | private double memoryMB = 128d; 39 | 40 | private boolean appCacheEnable = true; 41 | 42 | private int eventTraceSamplingCount; 43 | 44 | private boolean disabled; 45 | } 46 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | server.port=8088 19 | 20 | auth.username=root 21 | auth.password=root 22 | auth.token_expires_after_seconds=3600 23 | 24 | # ElasticJob-Cloud's zookeeper address 25 | zk.servers=127.0.0.1:2181 26 | 27 | # ElasticJob-Cloud's zookeeper namespace 28 | zk.namespace=elasticjob-cloud 29 | 30 | # ElasticJob-Cloud's zookeeper digest 31 | zk.digest= 32 | 33 | # Max size of job accumulated 34 | job.state.queue_size=10000 35 | 36 | # Event trace rdb config 37 | 38 | #event.trace.rdb_driver=com.mysql.jdbc.Driver 39 | 40 | #event.trace.rdb_url=jdbc:mysql://localhost:3306/elastic_job_cloud_log 41 | 42 | #event.trace.rdb_username=root 43 | 44 | #event.trace.rdb_password= 45 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | [%-5level] %d{HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-backend/src/test/java/org/apache/shardingsphere/elasticjob/cloud/ui/util/HomeFolderUtilsTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.cloud.ui.util; 19 | 20 | import org.junit.Test; 21 | 22 | import java.io.File; 23 | 24 | import static org.hamcrest.CoreMatchers.is; 25 | import static org.junit.Assert.assertThat; 26 | 27 | public final class HomeFolderUtilsTest { 28 | 29 | private static final String HOME_FOLDER = System.getProperty("user.home") + File.separator + ".elasticjob-console" + File.separator; 30 | 31 | @Test 32 | public void assertGetFilePathInHomeFolder() { 33 | assertThat(HomeFolderUtils.getFilePathInHomeFolder("test_file"), is(HOME_FOLDER + "test_file")); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/.babelrc: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | { 18 | "presets": [ 19 | "@babel/preset-env" 20 | ], 21 | "plugins": ["transform-vue-jsx", "@babel/plugin-transform-runtime", "@babel/plugin-syntax-dynamic-import"], 22 | "env": { 23 | "test": { 24 | "plugins": ["istanbul"] 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/.eslintignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /config/ 3 | /dist/ 4 | /*.js 5 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | node/ 4 | /dist/ 5 | /test/coverage/ 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | package-lock.json 10 | 11 | # Editor directories and files 12 | .prettierrc 13 | .idea 14 | .vscode 15 | *.suo 16 | *.ntvs* 17 | *.njsproj 18 | *.sln 19 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/.postcssrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | // https://github.com/michael-ciniawsky/postcss-load-config 19 | 20 | module.exports = { 21 | "plugins": { 22 | "postcss-import": {}, 23 | "postcss-url": {}, 24 | // to edit target browsers: use "browserslist" field in package.json 25 | "autoprefixer": {} 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/README.md: -------------------------------------------------------------------------------- 1 | # ElasticJob-UI Frontend 2 | 3 | ## How to Build 4 | 5 | ```bash 6 | # install dependencies 7 | npm install 8 | 9 | # serve with hot reload at localhost:8080 10 | npm run dev 11 | 12 | # build for production with minification 13 | npm run build 14 | 15 | # build for production and view the bundle analyzer report 16 | npm run build --report 17 | ``` 18 | 19 | ## How to Run unit tests 20 | 21 | ```bash 22 | # Karma does unit testing for components and pages 23 | npm run unit 24 | ``` 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 'use strict' 19 | 20 | module.exports = { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/config/dev.env.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 'use strict' 19 | const merge = require('webpack-merge') 20 | const prodEnv = require('./prod.env') 21 | 22 | module.exports = merge(prodEnv, { 23 | NODE_ENV: process.env.NODE_ENV !== 'mock' ? '"development"' : '"mock"' 24 | }) 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/config/prod.env.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 'use strict' 19 | module.exports = { 20 | NODE_ENV: '"production"' 21 | } 22 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | ShardingSphere ElasticJob UI 24 | 25 | 26 |
27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/bg.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/close.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/data-source.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/data-source.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/del.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/edit.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/expand.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/link.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/login-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/login-logo.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/logo.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/open.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/password.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/rules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/rules.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/shrink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/shrink.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/sidebar-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/sidebar-icon.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/sidebar-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/sidebar-logo.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/img/user.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/logo.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/assets/styles/theme.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | $--color-primary: #E17425; 18 | $--font-path: '~element-ui/lib/theme-chalk/fonts'; 19 | @import "~element-ui/packages/theme-chalk/src/index"; 20 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/components/Footer/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 28 | 41 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/lang/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import ENUS from './en-US' 19 | import ZHCN from './zh-CN' 20 | export default { 21 | 'zh-CN': ZHCN, 22 | 'en-US': ENUS 23 | } 24 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/store/actions.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as types from './mutation-types' 19 | 20 | const makeAction = type => { 21 | return ({ commit }, ...args) => commit(type, ...args) 22 | } 23 | // global actions 24 | export const setRegCenterActivated = makeAction(types.REG_CENTER_ACTIVATED) 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/store/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import Vue from 'vue' 19 | import Vuex from 'vuex' 20 | 21 | import * as actions from './actions' 22 | import modules from './modules/index' 23 | 24 | Vue.use(Vuex) 25 | 26 | export default new Vuex.Store({ 27 | actions, 28 | modules, 29 | strict: false 30 | }) 31 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/store/modules/global.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as types from '../mutation-types' 19 | 20 | const state = { 21 | regCenterActivated: '' 22 | } 23 | 24 | const mutations = { 25 | [types.REG_CENTER_ACTIVATED](state, params) { 26 | state.regCenterActivated = params 27 | } 28 | } 29 | 30 | export default { 31 | state, 32 | mutations 33 | } 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/store/modules/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | const files = require.context('.', false, /\.js$/) 19 | const modules = {} 20 | 21 | files.keys().forEach((key) => { 22 | if (key === './index.js') return 23 | modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default 24 | }) 25 | 26 | export default modules 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/store/mutation-types.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | // global mutation types 19 | export const REG_CENTER_ACTIVATED = 'REG_CENTER_ACTIVATED' 20 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/utils/conf.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | const HOST = '' 19 | const OTHERHOST = '' 20 | 21 | export default { 22 | HOST, 23 | OTHERHOST 24 | } 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/app-config/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | getApp: (params = {}) => API.get(`/api/app/list`, params), 22 | delete: (params = {}) => API.delete(`/api/app/` + params.appName, params), 23 | addApp: (params = {}) => API.post(`/api/app/register`, params), 24 | update: (params = {}) => API.post(`/api/app/update`, params), 25 | disable: (params = {}) => API.post(`/api/app/` + params.appName + `/disable`, params), 26 | enable: (params = {}) => API.post(`/api/app/` + params.appName + `/enable`, params) 27 | } 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/app-config/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/history-status/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | loadStatus: (params = {}) => API.post(`/api/job/events/statusTraces`, params) 22 | } 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/history-status/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/history-trace/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | loadExecution: (params = {}) => API.post(`/api/job/events/executions`, params) 22 | } 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/history-trace/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/job-config/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | getJobConfig: (params = {}) => API.get(`/api/job/jobs`, params), 22 | getJobDetail: (params = {}) => API.get('/api/job/jobs/' + params.jobName), 23 | disableJob: (params = {}) => API.post('/api/job/' + params.jobName + '/disable'), 24 | enableJob: (params = {}) => API.post('/api/job/' + params.jobName + '/enable'), 25 | removeJob: (params = {}) => API.delete('/api/job/' + params.jobName + '/deregister'), 26 | addJobConfig: (params = {}) => API.post(`/api/job/register`, params), 27 | updateJobConfig: (params = {}) => API.put(`/api/job/update`, params), 28 | getAppDetail: (params = {}) => API.get('/api/app/' + params.appName) 29 | } 30 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/job-config/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/job-dashboard/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | getTasksResults: (params = {}) => API.get(`/api/job/statistics/tasks/results`, params), 22 | getTasksPeriod: (period) => API.get(`/api/job/statistics/tasks/results/${period}`), 23 | getTasksRunning: (params = {}) => API.get(`/api/job/statistics/tasks/running`, params), 24 | getJobsExecutionType: (params = {}) => API.get(`/api/job/statistics/jobs/executionType`, params), 25 | getJobsRunning: (params = {}) => API.get(`/api/job/statistics/jobs/running`, params), 26 | getJobsRegister: (params = {}) => API.get(`/api/job/statistics/jobs/register`, params) 27 | } -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/job-detail/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/job-status/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | findAllRunningTasks: (params = {}) => API.get(`/api/job/tasks/running`, params), 22 | findAllReadyTasks: (params = {}) => API.get(`/api/job/tasks/ready`, params), 23 | findAllFailoverTasks: (params = {}) => API.get(`/api/job/tasks/failover`, params) 24 | } 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/job-status/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/login/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | getLogin: (params = {}) => API.post(`/api/login`, params) 22 | } 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/registry-center/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | getRegCenter: (params = {}) => API.get(`/api/registry-center/load`, params), 22 | deleteRegCenter: (params = {}) => API.delete(`/api/registry-center`, params), 23 | postRegCenter: (params = {}) => API.post(`/api/registry-center/add`, params), 24 | getRegCenterActivated: (params = {}) => API.get(`/api/registry-center/activated`, params), 25 | postRegCenterConnect: (params = {}) => API.post(`/api/registry-center/connect`, params) 26 | } 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/src/views/registry-center/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/static/404.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | ShardingSphere-UI 25 | 26 | 27 | 28 |
404
29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/static/favicon.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/test/karma.conf.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | const webpackConfig = require('../build/webpack.unit.conf') 18 | process.env.CHROME_BIN = require('puppeteer').executablePath() 19 | 20 | module.exports = function(config) { 21 | config.set({ 22 | frameworks: ['mocha'], 23 | files: ['specs/**/*.spec.js'], 24 | preprocessors: { 25 | '**/*.spec.js': ['webpack', 'sourcemap'] 26 | }, 27 | webpack: webpackConfig, 28 | reporters: ['spec', 'coverage'], 29 | coverageReporter: { 30 | dir: './coverage', 31 | reporters: [{ type: 'lcov', subdir: '.' }, { type: 'text-summary' }] 32 | }, 33 | browsers: ['ChromeHeadless'] 34 | }) 35 | } 36 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/test/specs/components/Footer.spec.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import { expect } from 'chai' 18 | import { shallowMount } from '@vue/test-utils' 19 | import Footer from '../../../src/components/Footer/index.vue' 20 | 21 | describe('Footer/index.vue', () => { 22 | it('Footer Does the component exist?', () => { 23 | const wrapper = shallowMount(Footer) 24 | expect(wrapper.find('div').text()).contains('Copyright') 25 | }) 26 | }) 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-cloud-ui/shardingsphere-elasticjob-cloud-ui-frontend/test/specs/components/Logo.spec.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import { expect } from 'chai' 18 | import { shallowMount } from '@vue/test-utils' 19 | import Logo from '../../../src/components/Logo/index.vue' 20 | 21 | describe('Logo/index.vue', () => { 22 | it('Logo Does the component exist?', () => { 23 | const wrapper = shallowMount(Logo) 24 | expect(wrapper.isVueInstance()).to.be.true 25 | }) 26 | }) 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/shardingsphere-elasticjob-lite-ui-backend-API.md: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/shardingsphere-elasticjob-lite-ui-backend-API.md -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/Bootstrap.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui; 19 | 20 | import org.springframework.boot.SpringApplication; 21 | import org.springframework.boot.autoconfigure.SpringBootApplication; 22 | 23 | /** 24 | * Console bootstrap. 25 | */ 26 | @SpringBootApplication 27 | public class Bootstrap { 28 | 29 | /** 30 | * Startup RESTful server. 31 | * 32 | * @param args arguments 33 | */ 34 | //CHECKSTYLE:OFF 35 | public static void main(final String[] args) { 36 | //CHECKSTYLE:ON 37 | SpringApplication.run(Bootstrap.class, args); 38 | } 39 | 40 | } 41 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/dao/statistics/StatisticInterval.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.dao.statistics; 19 | 20 | import lombok.Getter; 21 | import lombok.RequiredArgsConstructor; 22 | 23 | /** 24 | * Statistic interval. 25 | */ 26 | @Getter 27 | @RequiredArgsConstructor 28 | public enum StatisticInterval { 29 | 30 | MINUTE("0 * * * * ?"), 31 | 32 | HOUR("0 0 * * * ?"), 33 | 34 | DAY("0 0 0 * * ?"); 35 | 36 | private final String cron; 37 | } 38 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/dao/statistics/type/job/JobExecutionTypeStatistics.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.dao.statistics.type.job; 19 | 20 | import lombok.Getter; 21 | import lombok.RequiredArgsConstructor; 22 | 23 | /** 24 | * Job execution type statistics. 25 | */ 26 | @RequiredArgsConstructor 27 | @Getter 28 | public final class JobExecutionTypeStatistics { 29 | 30 | private final int transientJobCount; 31 | 32 | private final int daemonJobCount; 33 | } 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/dao/statistics/type/job/JobTypeStatistics.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.dao.statistics.type.job; 19 | 20 | import lombok.Getter; 21 | import lombok.RequiredArgsConstructor; 22 | 23 | /** 24 | * Job type statistics. 25 | */ 26 | @RequiredArgsConstructor 27 | @Getter 28 | public final class JobTypeStatistics { 29 | 30 | private final int scriptJobCount; 31 | 32 | private final int simpleJobCount; 33 | 34 | private final int dataflowJobCount; 35 | } 36 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/domain/RegistryCenterConfigurations.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.domain; 19 | 20 | import lombok.Getter; 21 | 22 | import javax.xml.bind.annotation.XmlAccessType; 23 | import javax.xml.bind.annotation.XmlAccessorType; 24 | import javax.xml.bind.annotation.XmlRootElement; 25 | import java.util.LinkedHashSet; 26 | import java.util.Set; 27 | 28 | /** 29 | * Registry center configurations. 30 | */ 31 | @Getter 32 | @XmlRootElement 33 | @XmlAccessorType(XmlAccessType.FIELD) 34 | public final class RegistryCenterConfigurations { 35 | 36 | private Set registryCenterConfiguration = new LinkedHashSet<>(); 37 | } 38 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/exception/DriverClassNotInWhitelistException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.exception; 19 | 20 | /** 21 | * Driver class not in whitelist exception. 22 | */ 23 | public final class DriverClassNotInWhitelistException extends RuntimeException { 24 | 25 | public DriverClassNotInWhitelistException(final String driverClass) { 26 | super("Please add '" + driverClass + "' to [dynamic.datasource.allowed-driver-classes] in application.properties"); 27 | } 28 | } 29 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/exception/JdbcDriverNotFoundException.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.exception; 19 | 20 | /** 21 | * JDBC driver not found exception. 22 | */ 23 | public final class JdbcDriverNotFoundException extends RuntimeException { 24 | 25 | private static final long serialVersionUID = 7783529705900415904L; 26 | 27 | public JdbcDriverNotFoundException(final String message) { 28 | super(String.format("Class not found: [%s]. Consider manually adding JDBC driver JAR to library path if you are trying connecting database.", message)); 29 | } 30 | } 31 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/repository/ConfigurationsXmlRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.repository; 19 | 20 | import org.apache.shardingsphere.elasticjob.lite.ui.domain.GlobalConfiguration; 21 | 22 | /** 23 | * Configurations XML repository. 24 | */ 25 | public interface ConfigurationsXmlRepository extends XmlRepository { 26 | } 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/repository/XmlRepository.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.repository; 19 | 20 | /** 21 | * XML repository. 22 | * 23 | * @param type of data 24 | */ 25 | public interface XmlRepository { 26 | 27 | /** 28 | * Load data. 29 | * 30 | * @return load result 31 | */ 32 | E load(); 33 | 34 | /** 35 | * Save data. 36 | * 37 | * @param entity entity 38 | */ 39 | void save(E entity); 40 | } 41 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/repository/impl/ConfigurationsXmlRepositoryImpl.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.repository.impl; 19 | 20 | import org.apache.shardingsphere.elasticjob.lite.ui.domain.GlobalConfiguration; 21 | import org.apache.shardingsphere.elasticjob.lite.ui.repository.ConfigurationsXmlRepository; 22 | 23 | /** 24 | * Configurations XML repository implementation. 25 | */ 26 | public final class ConfigurationsXmlRepositoryImpl extends AbstractXmlRepositoryImpl implements ConfigurationsXmlRepository { 27 | 28 | public ConfigurationsXmlRepositoryImpl() { 29 | super("Configurations.xml", GlobalConfiguration.class); 30 | } 31 | } 32 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/security/AuthenticationResult.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.security; 19 | 20 | import lombok.Getter; 21 | import lombok.RequiredArgsConstructor; 22 | 23 | /** 24 | * Authentication result. 25 | **/ 26 | @Getter 27 | @RequiredArgsConstructor 28 | public final class AuthenticationResult { 29 | 30 | private final String username; 31 | 32 | private final String password; 33 | 34 | private final boolean success; 35 | } 36 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/security/OAuthCode.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.security; 19 | 20 | import lombok.Getter; 21 | import lombok.Setter; 22 | 23 | /** 24 | * OAuth code 25 | **/ 26 | @Getter 27 | @Setter 28 | public final class OAuthCode { 29 | 30 | private String code; 31 | 32 | private String state; 33 | } 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/java/org/apache/shardingsphere/elasticjob/lite/ui/security/UserAccount.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.security; 19 | 20 | import lombok.Getter; 21 | import lombok.Setter; 22 | 23 | /** 24 | * User account. 25 | */ 26 | @Getter 27 | @Setter 28 | public final class UserAccount { 29 | 30 | private String username; 31 | 32 | private String password; 33 | } 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | [%-5level] %d{HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-backend/src/test/java/org/apache/shardingsphere/elasticjob/lite/ui/util/HomeFolderUtilsTest.java: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | package org.apache.shardingsphere.elasticjob.lite.ui.util; 19 | 20 | import org.junit.Test; 21 | 22 | import java.io.File; 23 | 24 | import static org.hamcrest.CoreMatchers.is; 25 | import static org.junit.Assert.assertThat; 26 | 27 | public final class HomeFolderUtilsTest { 28 | 29 | private static final String HOME_FOLDER = System.getProperty("user.home") + File.separator + ".elasticjob-console" + File.separator; 30 | 31 | @Test 32 | public void assertGetFilePathInHomeFolder() { 33 | assertThat(HomeFolderUtils.getFilePathInHomeFolder("test_file"), is(HOME_FOLDER + "test_file")); 34 | } 35 | } 36 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/.babelrc: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | { 18 | "presets": [ 19 | "@babel/preset-env" 20 | ], 21 | "plugins": ["transform-vue-jsx", "@babel/plugin-transform-runtime", "@babel/plugin-syntax-dynamic-import"], 22 | "env": { 23 | "test": { 24 | "plugins": ["istanbul"] 25 | } 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/.editorconfig: -------------------------------------------------------------------------------- 1 | root = true 2 | 3 | [*] 4 | charset = utf-8 5 | indent_style = space 6 | indent_size = 2 7 | end_of_line = lf 8 | insert_final_newline = true 9 | trim_trailing_whitespace = true 10 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/.eslintignore: -------------------------------------------------------------------------------- 1 | /build/ 2 | /config/ 3 | /dist/ 4 | /*.js 5 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/.gitignore: -------------------------------------------------------------------------------- 1 | .DS_Store 2 | node_modules/ 3 | node/ 4 | /dist/ 5 | /test/coverage/ 6 | npm-debug.log* 7 | yarn-debug.log* 8 | yarn-error.log* 9 | package-lock.json 10 | 11 | # Editor directories and files 12 | .prettierrc 13 | .idea 14 | .vscode 15 | *.suo 16 | *.ntvs* 17 | *.njsproj 18 | *.sln 19 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/.postcssrc.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | // https://github.com/michael-ciniawsky/postcss-load-config 19 | 20 | module.exports = { 21 | "plugins": { 22 | "postcss-import": {}, 23 | "postcss-url": {}, 24 | // to edit target browsers: use "browserslist" field in package.json 25 | "autoprefixer": {} 26 | } 27 | } 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/README.md: -------------------------------------------------------------------------------- 1 | # ElasticJob UI Frontend 2 | 3 | ## How to Build 4 | 5 | ```bash 6 | # install dependencies 7 | npm install 8 | 9 | # serve with hot reload at localhost:8080 10 | npm run dev 11 | 12 | # build for production with minification 13 | npm run build 14 | 15 | # build for production and view the bundle analyzer report 16 | npm run build --report 17 | ``` 18 | 19 | ## How to Run unit tests 20 | 21 | ```bash 22 | # Karma does unit testing for components and pages 23 | npm run unit 24 | ``` 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/build/vue-loader.conf.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 'use strict' 19 | 20 | module.exports = { 21 | 22 | } 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/config/dev.env.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 'use strict' 19 | const merge = require('webpack-merge') 20 | const prodEnv = require('./prod.env') 21 | 22 | module.exports = merge(prodEnv, { 23 | NODE_ENV: process.env.NODE_ENV !== 'mock' ? '"development"' : '"mock"' 24 | }) 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/config/prod.env.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | 'use strict' 19 | module.exports = { 20 | NODE_ENV: '"production"' 21 | } 22 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/index.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | ShardingSphere ElasticJob UI 24 | 25 | 26 |
27 | 28 | 29 | 30 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/bg.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/bg.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/close.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/close.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/data-source.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/data-source.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/del.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/del.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/edit.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/edit.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/expand.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/expand.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/link.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/link.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/login-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/login-logo.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/logo.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/open.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/open.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/password.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/password.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/rules.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/rules.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/shrink.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/shrink.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/sidebar-icon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/sidebar-icon.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/sidebar-logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/sidebar-logo.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/user.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/img/user.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/logo.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/logo.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/assets/styles/theme.scss: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | $--color-primary: #E17425; 18 | $--font-path: '~element-ui/lib/theme-chalk/fonts'; 19 | @import "~element-ui/packages/theme-chalk/src/index"; 20 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/components/Footer/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 23 | 28 | 41 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/lang/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import ENUS from './en-US' 19 | import ZHCN from './zh-CN' 20 | export default { 21 | 'zh-CN': ZHCN, 22 | 'en-US': ENUS 23 | } 24 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/store/actions.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as types from './mutation-types' 19 | 20 | const makeAction = type => { 21 | return ({ commit }, ...args) => commit(type, ...args) 22 | } 23 | // global actions 24 | export const setRegCenterActivated = makeAction(types.REG_CENTER_ACTIVATED) 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/store/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import Vue from 'vue' 19 | import Vuex from 'vuex' 20 | 21 | import * as actions from './actions' 22 | import modules from './modules/index' 23 | 24 | Vue.use(Vuex) 25 | 26 | export default new Vuex.Store({ 27 | actions, 28 | modules, 29 | strict: false 30 | }) 31 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/store/modules/global.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import * as types from '../mutation-types' 19 | 20 | const state = { 21 | regCenterActivated: '' 22 | } 23 | 24 | const mutations = { 25 | [types.REG_CENTER_ACTIVATED](state, params) { 26 | state.regCenterActivated = params 27 | } 28 | } 29 | 30 | export default { 31 | state, 32 | mutations 33 | } 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/store/modules/index.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | const files = require.context('.', false, /\.js$/) 19 | const modules = {} 20 | 21 | files.keys().forEach((key) => { 22 | if (key === './index.js') return 23 | modules[key.replace(/(\.\/|\.js)/g, '')] = files(key).default 24 | }) 25 | 26 | export default modules 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/store/mutation-types.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | // global mutation types 19 | export const REG_CENTER_ACTIVATED = 'REG_CENTER_ACTIVATED' 20 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/utils/conf.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | const HOST = '' 19 | const OTHERHOST = '' 20 | 21 | export default { 22 | HOST, 23 | OTHERHOST 24 | } 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/data-source/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | availableDriverClasses: (params = {}) => API.get(`/api/data-source/drivers`, params), 22 | load: (params = {}) => API.get(`/api/data-source/load`, params), 23 | delete: (params = {}) => API.delete(`/api/data-source`, params), 24 | add: (params = {}) => API.post(`/api/data-source/add`, params), 25 | getRegCenterActivated: (params = {}) => API.get(`/api/data-source/activated`, params), 26 | connect: (params = {}) => API.post(`/api/data-source/connect`, params), 27 | connectTest: (params = {}) => API.post(`/api/data-source/connectTest`, params) 28 | } 29 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/data-source/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/history-status/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | loadStatus: (params = {}) => API.post(`/api/event-trace/status`, params), 22 | getStatusJobNameSuggestions: (jobNamePrefix = '') => API.get(`/api/event-trace/status/jobNames/${jobNamePrefix}`) 23 | } 24 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/history-status/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/history-trace/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | loadExecution: (params = {}) => API.post(`/api/event-trace/execution`, params), 22 | getExecutionJobNameSuggestions: (jobNamePrefix = '') => API.get(`/api/event-trace/execution/jobNames/${jobNamePrefix}`), 23 | getExecutionIpSuggestions: (ipPrefix = '') => API.get(`/api/event-trace/execution/ip/${ipPrefix}`) 24 | } 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/history-trace/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/login/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | getLogin: (params = {}) => API.post(`/api/login`, params), 22 | getCasdoorLoginUrl: (params = {}) => API.get(`/api/casdoor-login-url`, params), 23 | getCasdoorLogin: (params = {}) => API.post(`/api/casdoor-login`, params) 24 | } 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/login/casdoor.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from './api' 19 | 20 | export default { 21 | loginByCasdoor: () => { 22 | // callback 23 | const urlSearchParams = new URLSearchParams(window.location.search) 24 | const params = { 25 | code: urlSearchParams.get('code'), 26 | state: urlSearchParams.get('state') 27 | } 28 | if (params.code != null && params.state != null) { 29 | API.getCasdoorLogin(params).then(res => { 30 | const data = res.model 31 | const store = window.localStorage 32 | store.setItem('Access-Token', data.accessToken) 33 | store.setItem('username', data.username) 34 | location.href = '/#/registry-center' 35 | }) 36 | } 37 | } 38 | } 39 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/operation-jobs-detail/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | getShardingInfo: (params = {}) => API.get('/api/jobs/' + params.jobName + '/sharding'), 22 | disableSharding: (params) => API.post('/api/jobs/' + params.jobName + '/sharding/' + params.item + '/disable'), 23 | enableSharding: (params) => API.post('/api/jobs/' + params.jobName + '/sharding/' + params.item + '/enable') 24 | } 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/operation-jobs-detail/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/operation-jobs/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/operation-servers-detail/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/operation-servers/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/registry-center/api.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | 18 | import API from '@/utils/api' 19 | 20 | export default { 21 | getRegCenter: (params = {}) => API.get(`/api/registry-center/load`, params), 22 | deleteRegCenter: (params = {}) => API.delete(`/api/registry-center`, params), 23 | postRegCenter: (params = {}) => API.post(`/api/registry-center/add`, params), 24 | getRegCenterActivated: (params = {}) => API.get(`/api/registry-center/activated`, params), 25 | postRegCenterConnect: (params = {}) => API.post(`/api/registry-center/connect`, params) 26 | } 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/src/views/registry-center/index.vue: -------------------------------------------------------------------------------- 1 | 17 | 18 | 21 | 22 | 31 | 32 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/static/404.html: -------------------------------------------------------------------------------- 1 | 17 | 18 | 19 | 20 | 21 | 22 | 23 | 24 | ShardingSphere-UI 25 | 26 | 27 | 28 |
404
29 | 30 | 31 | 32 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/static/favicon.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/static/favicon.png -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/test/karma.conf.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | const webpackConfig = require('../build/webpack.unit.conf') 18 | process.env.CHROME_BIN = require('puppeteer').executablePath() 19 | 20 | module.exports = function(config) { 21 | config.set({ 22 | frameworks: ['mocha'], 23 | files: ['specs/**/*.spec.js'], 24 | preprocessors: { 25 | '**/*.spec.js': ['webpack', 'sourcemap'] 26 | }, 27 | webpack: webpackConfig, 28 | reporters: ['spec', 'coverage'], 29 | coverageReporter: { 30 | dir: './coverage', 31 | reporters: [{ type: 'lcov', subdir: '.' }, { type: 'text-summary' }] 32 | }, 33 | browsers: ['ChromeHeadless'] 34 | }) 35 | } 36 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/test/specs/components/Footer.spec.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import { expect } from 'chai' 18 | import { shallowMount } from '@vue/test-utils' 19 | import Footer from '../../../src/components/Footer/index.vue' 20 | 21 | describe('Footer/index.vue', () => { 22 | it('Footer Does the component exist?', () => { 23 | const wrapper = shallowMount(Footer) 24 | expect(wrapper.find('div').text()).contains('Copyright') 25 | }) 26 | }) 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-lite-ui/shardingsphere-elasticjob-lite-ui-frontend/test/specs/components/Logo.spec.js: -------------------------------------------------------------------------------- 1 | /* 2 | * Licensed to the Apache Software Foundation (ASF) under one or more 3 | * contributor license agreements. See the NOTICE file distributed with 4 | * this work for additional information regarding copyright ownership. 5 | * The ASF licenses this file to You under the Apache License, Version 2.0 6 | * (the "License"); you may not use this file except in compliance with 7 | * the License. You may obtain a copy of the License at 8 | * 9 | * http://www.apache.org/licenses/LICENSE-2.0 10 | * 11 | * Unless required by applicable law or agreed to in writing, software 12 | * distributed under the License is distributed on an "AS IS" BASIS, 13 | * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | * See the License for the specific language governing permissions and 15 | * limitations under the License. 16 | */ 17 | import { expect } from 'chai' 18 | import { shallowMount } from '@vue/test-utils' 19 | import Logo from '../../../src/components/Logo/index.vue' 20 | 21 | describe('Logo/index.vue', () => { 22 | it('Logo Does the component exist?', () => { 23 | const wrapper = shallowMount(Logo) 24 | expect(wrapper.isVueInstance()).to.be.true 25 | }) 26 | }) 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | FROM openjdk:8-jre-slim 19 | MAINTAINER ShardingSphere "dev@shardingsphere.apache.org" 20 | 21 | ARG APP_NAME 22 | ENV LOCAL_PATH /opt/shardingsphere-elasticjob-cloud-ui 23 | 24 | ADD target/${APP_NAME}.tar.gz /opt 25 | RUN mv /opt/${APP_NAME} ${LOCAL_PATH} 26 | 27 | ENTRYPOINT ${LOCAL_PATH}/bin/start.sh ${PORT} && tail -f ${LOCAL_PATH}/logs/stdout.log 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/README.txt: -------------------------------------------------------------------------------- 1 | Welcome to Apache ShardingSphere-ElasticJob 2 | =============================================================================== 3 | 4 | ElasticJob is a distributed scheduled job solution. It is composited from 2 independent sub projects: ElasticJob Lite and ElasticJob Cloud. 5 | 6 | ElasticJob Lite is a centre-less solution, use lightweight jar to coordinate distributed jobs. 7 | 8 | ElasticJob Lite and ElasticJob Cloud provide unified API. Developers only need code one time, then decide to deploy Lite or Cloud as you want. 9 | 10 | ElasticJob became an Apache ShardingSphere Sub project on May 28 2020. 11 | 12 | Getting Started 13 | =============================================================================== 14 | To help you get started, try the following links: 15 | 16 | Getting Started 17 | https://shardingsphere.apache.org/elasticjob/current/en/quick-start/ 18 | 19 | We welcome contributions of all kinds, for details of how you can help 20 | https://shardingsphere.apache.org/community/en/contribute/ 21 | 22 | Find the issue tracker from here 23 | https://github.com/apache/shardingsphere-elasticjob/issues 24 | 25 | Please help us make Apache ShardingSphere-ElasticJob better - we appreciate any feedback you may have. 26 | 27 | Have fun! 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-activation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-activation.txt -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-axios.txt: -------------------------------------------------------------------------------- 1 | axois License 2 | --------------- 3 | 4 | Copyright (c) 2014-present Matt Zabriskie 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-checker-qual.txt: -------------------------------------------------------------------------------- 1 | checker-qual License 2 | --------------- 3 | 4 | MIT License: 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-element-ui.txt: -------------------------------------------------------------------------------- 1 | element-ui License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2016-present ElemeFE 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-java-jwt.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Auth0, Inc. (http://auth0.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-jcl-over-slf4j.txt: -------------------------------------------------------------------------------- 1 | jcl-over-slf4j License 2 | --------------- 3 | 4 | Copyright (c) 2004-2017 QOS.ch 5 | All rights reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sublicense, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-jul-to-slf4j.txt: -------------------------------------------------------------------------------- 1 | jul-to-slf4j License 2 | --------------- 3 | 4 | Copyright (c) 2004-2017 QOS.ch 5 | All rights reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sublicense, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-logback.txt: -------------------------------------------------------------------------------- 1 | Logback License 2 | --------------- 3 | 4 | Logback: the reliable, generic, fast and flexible logging framework. 5 | Copyright (C) 1999-2015, QOS.ch. All rights reserved. 6 | 7 | This program and the accompanying materials are dual-licensed under 8 | either the terms of the Eclipse Public License v1.0 as published by 9 | the Eclipse Foundation 10 | 11 | or (per the licensee's choosing) 12 | 13 | under the terms of the GNU Lesser General Public License version 2.1 14 | as published by the Free Software Foundation. 15 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-moment.txt: -------------------------------------------------------------------------------- 1 | Moment License 2 | --------------- 3 | 4 | Copyright (c) JS Foundation and other contributors 5 | 6 | Permission is hereby granted, free of charge, to any person 7 | obtaining a copy of this software and associated documentation 8 | files (the "Software"), to deal in the Software without 9 | restriction, including without limitation the rights to use, 10 | copy, modify, merge, publish, distribute, sublicense, and/or sell 11 | copies of the Software, and to permit persons to whom the 12 | Software is furnished to do so, subject to the following 13 | conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES 20 | OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT 22 | HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, 23 | WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING 24 | FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR 25 | OTHER DEALINGS IN THE SOFTWARE. 26 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-normalize.txt: -------------------------------------------------------------------------------- 1 | normalize License 2 | --------------- 3 | 4 | # The MIT License (MIT) 5 | 6 | Copyright © Nicolas Gallagher and Jonathan Neal 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy of 9 | this software and associated documentation files (the "Software"), to deal in 10 | the Software without restriction, including without limitation the rights to 11 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies 12 | of the Software, and to permit persons to whom the Software is furnished to do 13 | so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-slf4j.txt: -------------------------------------------------------------------------------- 1 | SLF4J License 2 | --------------- 3 | 4 | Copyright (c) 2004-2017 QOS.ch 5 | All rights reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sublicense, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vue-echarts.txt: -------------------------------------------------------------------------------- 1 | Vue-echarts License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2016-present GU Yiling & ECOMFE 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vue-i18n.txt: -------------------------------------------------------------------------------- 1 | Vue-i18n License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2016 kazuya kawaguchi 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy of 9 | this software and associated documentation files (the "Software"), to deal in 10 | the Software without restriction, including without limitation the rights to 11 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 12 | the Software, and to permit persons to whom the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 20 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 21 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 22 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vue-router.txt: -------------------------------------------------------------------------------- 1 | Vue-router License 2 | --------------- 3 | 4 | MIT License 5 | 6 | Copyright (c) 2013-2016 Evan You 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vue.txt: -------------------------------------------------------------------------------- 1 | Vue License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2013-present, Yuxi (Evan) You 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vuex.txt: -------------------------------------------------------------------------------- 1 | Vuex License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2015-2016 Evan You 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | server.port=8088 19 | 20 | auth.username=root 21 | auth.password=root 22 | auth.token_expires_after_seconds=3600 23 | 24 | # ElasticJob-Cloud's zookeeper address 25 | zk.servers=127.0.0.1:2181 26 | 27 | # ElasticJob-Cloud's zookeeper namespace 28 | zk.namespace=elasticjob-cloud 29 | 30 | # ElasticJob-Cloud's zookeeper digest 31 | zk.digest= 32 | 33 | # Max size of job accumulated 34 | job.state.queue_size=10000 35 | 36 | # Event trace rdb config 37 | 38 | #event.trace.rdb_driver=com.mysql.jdbc.Driver 39 | 40 | #event.trace.rdb_url=jdbc:mysql://localhost:3306/elastic_job_cloud_log 41 | 42 | #event.trace.rdb_username=root 43 | 44 | #event.trace.rdb_password= 45 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-cloud-ui-bin-distribution/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | [%-5level] %d{HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/Dockerfile: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | FROM openjdk:8-jre-slim 19 | MAINTAINER ShardingSphere "dev@shardingsphere.apache.org" 20 | 21 | ARG APP_NAME 22 | ENV LOCAL_PATH /opt/shardingsphere-elasticjob-lite-ui 23 | 24 | ADD target/${APP_NAME}.tar.gz /opt 25 | RUN mv /opt/${APP_NAME} ${LOCAL_PATH} 26 | 27 | ENTRYPOINT ${LOCAL_PATH}/bin/start.sh ${PORT} && tail -f ${LOCAL_PATH}/logs/stdout.log 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/README.txt: -------------------------------------------------------------------------------- 1 | Welcome to Apache ShardingSphere-ElasticJob 2 | =============================================================================== 3 | 4 | ElasticJob is a distributed scheduled job solution. It is composited from 2 independent sub projects: ElasticJob Lite and ElasticJob Cloud. 5 | 6 | ElasticJob Lite is a centre-less solution, use lightweight jar to coordinate distributed jobs. 7 | 8 | ElasticJob Lite and ElasticJob Cloud provide unified API. Developers only need code one time, then decide to deploy Lite or Cloud as you want. 9 | 10 | ElasticJob became an Apache ShardingSphere Sub project on May 28 2020. 11 | 12 | Getting Started 13 | =============================================================================== 14 | To help you get started, try the following links: 15 | 16 | Getting Started 17 | https://shardingsphere.apache.org/elasticjob/current/en/quick-start/ 18 | 19 | We welcome contributions of all kinds, for details of how you can help 20 | https://shardingsphere.apache.org/community/en/contribute/ 21 | 22 | Find the issue tracker from here 23 | https://github.com/apache/shardingsphere-elasticjob/issues 24 | 25 | Please help us make Apache ShardingSphere-ElasticJob better - we appreciate any feedback you may have. 26 | 27 | Have fun! 28 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-activation.txt: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/apache/shardingsphere-elasticjob-ui/7a55f4e6fc63a298103daaeed6b40f5447c6508a/shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-activation.txt -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-axios.txt: -------------------------------------------------------------------------------- 1 | axios License 2 | --------------- 3 | 4 | Copyright (c) 2014-present Matt Zabriskie 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-checker-qual.txt: -------------------------------------------------------------------------------- 1 | checker-qual License 2 | --------------- 3 | 4 | MIT License: 5 | 6 | Permission is hereby granted, free of charge, to any person obtaining a copy 7 | of this software and associated documentation files (the "Software"), to deal 8 | in the Software without restriction, including without limitation the rights 9 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 10 | copies of the Software, and to permit persons to whom the Software is 11 | furnished to do so, subject to the following conditions: 12 | 13 | The above copyright notice and this permission notice shall be included in 14 | all copies or substantial portions of the Software. 15 | 16 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 17 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 18 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 19 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 20 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 21 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 22 | THE SOFTWARE. 23 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-element-ui.txt: -------------------------------------------------------------------------------- 1 | element-ui License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2016-present ElemeFE 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-java-jwt.txt: -------------------------------------------------------------------------------- 1 | The MIT License (MIT) 2 | 3 | Copyright (c) 2015 Auth0, Inc. (http://auth0.com) 4 | 5 | Permission is hereby granted, free of charge, to any person obtaining a copy 6 | of this software and associated documentation files (the "Software"), to deal 7 | in the Software without restriction, including without limitation the rights 8 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 9 | copies of the Software, and to permit persons to whom the Software is 10 | furnished to do so, subject to the following conditions: 11 | 12 | The above copyright notice and this permission notice shall be included in all 13 | copies or substantial portions of the Software. 14 | 15 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 16 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 17 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 18 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 19 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 20 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 21 | SOFTWARE. 22 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-jcl-over-slf4j.txt: -------------------------------------------------------------------------------- 1 | jcl-over-slf4j License 2 | --------------- 3 | 4 | Copyright (c) 2004-2017 QOS.ch 5 | All rights reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sublicense, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-jul-to-slf4j.txt: -------------------------------------------------------------------------------- 1 | jul-to-slf4j License 2 | --------------- 3 | 4 | Copyright (c) 2004-2017 QOS.ch 5 | All rights reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sublicense, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-logback.txt: -------------------------------------------------------------------------------- 1 | Logback License 2 | --------------- 3 | 4 | Logback: the reliable, generic, fast and flexible logging framework. 5 | Copyright (C) 1999-2015, QOS.ch. All rights reserved. 6 | 7 | This program and the accompanying materials are dual-licensed under 8 | either the terms of the Eclipse Public License v1.0 as published by 9 | the Eclipse Foundation 10 | 11 | or (per the licensee's choosing) 12 | 13 | under the terms of the GNU Lesser General Public License version 2.1 14 | as published by the Free Software Foundation. 15 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-postgresql.txt: -------------------------------------------------------------------------------- 1 | PostgreSQL JDBC Driver License 2 | --------------- 3 | 4 | Copyright (c) 1997, PostgreSQL Global Development Group 5 | All rights reserved. 6 | 7 | Redistribution and use in source and binary forms, with or without 8 | modification, are permitted provided that the following conditions are met: 9 | 10 | 1. Redistributions of source code must retain the above copyright notice, 11 | this list of conditions and the following disclaimer. 12 | 2. Redistributions in binary form must reproduce the above copyright notice, 13 | this list of conditions and the following disclaimer in the documentation 14 | and/or other materials provided with the distribution. 15 | 16 | THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" 17 | AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE 18 | IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE 19 | ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT OWNER OR CONTRIBUTORS BE 20 | LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR 21 | CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF 22 | SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 23 | INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN 24 | CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) 25 | ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE 26 | POSSIBILITY OF SUCH DAMAGE. 27 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-slf4j.txt: -------------------------------------------------------------------------------- 1 | SLF4J License 2 | --------------- 3 | 4 | Copyright (c) 2004-2017 QOS.ch 5 | All rights reserved. 6 | 7 | Permission is hereby granted, free of charge, to any person obtaining 8 | a copy of this software and associated documentation files (the 9 | "Software"), to deal in the Software without restriction, including 10 | without limitation the rights to use, copy, modify, merge, publish, 11 | distribute, sublicense, and/or sell copies of the Software, and to 12 | permit persons to whom the Software is furnished to do so, subject to 13 | the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be 16 | included in all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, 19 | EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF 20 | MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND 21 | NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE 22 | LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION 23 | OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION 24 | WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vue-i18n.txt: -------------------------------------------------------------------------------- 1 | Vue-i18n License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2016 kazuya kawaguchi 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy of 9 | this software and associated documentation files (the "Software"), to deal in 10 | the Software without restriction, including without limitation the rights to 11 | use, copy, modify, merge, publish, distribute, sublicense, and/or sell copies of 12 | the Software, and to permit persons to whom the Software is furnished to do so, 13 | subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, FITNESS 20 | FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR 21 | COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER 22 | IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN 23 | CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. 24 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vue-router.txt: -------------------------------------------------------------------------------- 1 | Vue-router License 2 | --------------- 3 | 4 | MIT License 5 | 6 | Copyright (c) 2013-2016 Evan You 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in all 16 | copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE 24 | SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vue.txt: -------------------------------------------------------------------------------- 1 | Vue License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2013-present, Yuxi (Evan) You 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/release-docs/licenses/LICENSE-vuex.txt: -------------------------------------------------------------------------------- 1 | Vuex License 2 | --------------- 3 | 4 | The MIT License (MIT) 5 | 6 | Copyright (c) 2015-2016 Evan You 7 | 8 | Permission is hereby granted, free of charge, to any person obtaining a copy 9 | of this software and associated documentation files (the "Software"), to deal 10 | in the Software without restriction, including without limitation the rights 11 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell 12 | copies of the Software, and to permit persons to whom the Software is 13 | furnished to do so, subject to the following conditions: 14 | 15 | The above copyright notice and this permission notice shall be included in 16 | all copies or substantial portions of the Software. 17 | 18 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR 19 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, 20 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE 21 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER 22 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, 23 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN 24 | THE SOFTWARE. 25 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/resources/application.properties: -------------------------------------------------------------------------------- 1 | # 2 | # Licensed to the Apache Software Foundation (ASF) under one or more 3 | # contributor license agreements. See the NOTICE file distributed with 4 | # this work for additional information regarding copyright ownership. 5 | # The ASF licenses this file to You under the Apache License, Version 2.0 6 | # (the "License"); you may not use this file except in compliance with 7 | # the License. You may obtain a copy of the License at 8 | # 9 | # http://www.apache.org/licenses/LICENSE-2.0 10 | # 11 | # Unless required by applicable law or agreed to in writing, software 12 | # distributed under the License is distributed on an "AS IS" BASIS, 13 | # WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. 14 | # See the License for the specific language governing permissions and 15 | # limitations under the License. 16 | # 17 | 18 | server.port=8088 19 | 20 | auth.username=root 21 | auth.password=root 22 | auth.token_expires_after_seconds=3600 23 | 24 | spring.datasource.default.driver-class-name=org.h2.Driver 25 | spring.datasource.default.url=jdbc:h2:mem: 26 | spring.datasource.default.username=sa 27 | spring.datasource.default.password= 28 | spring.jpa.show-sql=false 29 | 30 | ## Uncomment the following property to allow adding DataSource dynamically. 31 | # dynamic.datasource.allowed-driver-classes={'org.h2.Driver','org.postgresql.Driver'} 32 | -------------------------------------------------------------------------------- /shardingsphere-elasticjob-ui-distribution/shardingsphere-elasticjob-lite-ui-bin-distribution/src/main/resources/logback.xml: -------------------------------------------------------------------------------- 1 | 2 | 18 | 19 | 20 | 21 | 22 | [%-5level] %d{HH:mm:ss.SSS} [%thread] %logger{36} - %msg%n 23 | 24 | 25 | 26 | 27 | 28 | 29 | 30 | 31 | 32 | 33 | 34 | --------------------------------------------------------------------------------