├── postcss.config.js ├── src ├── test │ ├── resources │ │ ├── i18n │ │ │ └── messages_en.properties │ │ └── mails │ │ │ └── testEmail.html │ ├── javascript │ │ └── spec │ │ │ ├── helpers │ │ │ ├── mock-route.service.ts │ │ │ ├── mock-principal.service.ts │ │ │ ├── mock-language.service.ts │ │ │ └── mock-account.service.ts │ │ │ ├── entry.ts │ │ │ └── test.module.ts │ └── java │ │ └── com │ │ └── caosg │ │ └── ytbdl │ │ └── config │ │ └── WebConfigurerTestController.java └── main │ ├── resources │ ├── config │ │ └── liquibase │ │ │ ├── authorities.csv │ │ │ ├── users_authorities.csv │ │ │ ├── users.csv │ │ │ └── master.xml │ ├── .h2.server.properties │ ├── banner.txt │ ├── i18n │ │ ├── messages.properties │ │ ├── messages_en.properties │ │ └── messages_zh_cn.properties │ └── mails │ │ ├── creationEmail.html │ │ ├── passwordResetEmail.html │ │ └── activationEmail.html │ ├── webapp │ ├── app │ │ ├── shared │ │ │ ├── constants │ │ │ │ ├── pagination.constants.ts │ │ │ │ └── pagination.constants.js │ │ │ ├── model │ │ │ │ ├── base-entity.js │ │ │ │ ├── base-entity.ts │ │ │ │ ├── response-wrapper.model.ts │ │ │ │ ├── response-wrapper.model.js │ │ │ │ ├── request-util.js │ │ │ │ └── request-util.ts │ │ │ ├── user │ │ │ │ ├── account.model.ts │ │ │ │ ├── account.model.js │ │ │ │ ├── user.model.js │ │ │ │ ├── user.model.ts │ │ │ │ └── user.service.ts │ │ │ ├── auth │ │ │ │ ├── csrf.service.ts │ │ │ │ ├── account.service.ts │ │ │ │ ├── csrf.service.js │ │ │ │ ├── account.service.js │ │ │ │ ├── has-any-authority.directive.ts │ │ │ │ ├── state-storage.service.ts │ │ │ │ └── user-route-access-service.ts │ │ │ ├── language │ │ │ │ ├── language.constants.ts │ │ │ │ ├── language.constants.js │ │ │ │ └── find-language-from-key.pipe.ts │ │ │ ├── shared-common.module.ts │ │ │ ├── login │ │ │ │ ├── login-modal.service.ts │ │ │ │ ├── login.service.ts │ │ │ │ └── login-modal.service.js │ │ │ ├── alert │ │ │ │ ├── alert.component.ts │ │ │ │ └── alert.component.js │ │ │ ├── shared-libs.module.ts │ │ │ ├── index.ts │ │ │ ├── shared.module.ts │ │ │ ├── index.js │ │ │ └── shared-common.module.js │ │ ├── home │ │ │ ├── index.ts │ │ │ ├── home.route.ts │ │ │ ├── home.module.ts │ │ │ ├── home.scss │ │ │ └── home.component.ts │ │ ├── layouts │ │ │ ├── footer │ │ │ │ ├── footer.component.html │ │ │ │ └── footer.component.ts │ │ │ ├── profiles │ │ │ │ ├── profile-info.model.ts │ │ │ │ ├── page-ribbon.component.ts │ │ │ │ ├── profile.service.ts │ │ │ │ └── page-ribbon.scss │ │ │ ├── main │ │ │ │ ├── main.component.html │ │ │ │ └── main.component.ts │ │ │ ├── index.ts │ │ │ ├── layout-routing.module.ts │ │ │ ├── error │ │ │ │ ├── error.component.html │ │ │ │ ├── error.route.ts │ │ │ │ └── error.component.ts │ │ │ └── navbar │ │ │ │ ├── active-menu.directive.ts │ │ │ │ └── navbar.scss │ │ ├── polyfills.ts │ │ ├── admin │ │ │ ├── logs │ │ │ │ ├── log.model.ts │ │ │ │ ├── logs.route.ts │ │ │ │ ├── logs.service.ts │ │ │ │ ├── logs.component.ts │ │ │ │ └── logs.component.html │ │ │ ├── docs │ │ │ │ ├── docs.component.html │ │ │ │ ├── docs.component.ts │ │ │ │ └── docs.route.ts │ │ │ ├── audits │ │ │ │ ├── audit-data.model.ts │ │ │ │ ├── audit.model.ts │ │ │ │ ├── audits.route.ts │ │ │ │ └── audits.service.ts │ │ │ ├── health │ │ │ │ ├── health.route.ts │ │ │ │ ├── health-modal.component.ts │ │ │ │ ├── health.component.html │ │ │ │ └── health-modal.component.html │ │ │ ├── metrics │ │ │ │ ├── metrics.route.ts │ │ │ │ ├── metrics.service.ts │ │ │ │ └── metrics-modal.component.ts │ │ │ ├── configuration │ │ │ │ ├── configuration.route.ts │ │ │ │ ├── configuration.component.ts │ │ │ │ └── configuration.service.ts │ │ │ ├── admin.route.ts │ │ │ ├── user-management │ │ │ │ ├── user-management-detail.component.ts │ │ │ │ ├── user-management-delete-dialog.component.html │ │ │ │ ├── user-modal.service.ts │ │ │ │ └── user-management-delete-dialog.component.ts │ │ │ └── index.ts │ │ ├── vendor.ts │ │ ├── app.route.ts │ │ ├── blocks │ │ │ ├── config │ │ │ │ ├── prod.config.ts │ │ │ │ └── uib-pagination.config.ts │ │ │ └── interceptor │ │ │ │ ├── errorhandler.interceptor.ts │ │ │ │ ├── auth-expired.interceptor.ts │ │ │ │ ├── auth.interceptor.ts │ │ │ │ ├── http.provider.ts │ │ │ │ └── notification.interceptor.ts │ │ ├── account │ │ │ ├── register │ │ │ │ ├── register.service.ts │ │ │ │ └── register.route.ts │ │ │ ├── password │ │ │ │ ├── password.service.ts │ │ │ │ ├── password.route.ts │ │ │ │ ├── password-strength-bar.scss │ │ │ │ └── password.component.ts │ │ │ ├── password-reset │ │ │ │ ├── init │ │ │ │ │ ├── password-reset-init.service.ts │ │ │ │ │ ├── password-reset-init.route.ts │ │ │ │ │ └── password-reset-init.component.ts │ │ │ │ └── finish │ │ │ │ │ ├── password-reset-finish.service.ts │ │ │ │ │ └── password-reset-finish.route.ts │ │ │ ├── activate │ │ │ │ ├── activate.route.ts │ │ │ │ ├── activate.service.ts │ │ │ │ ├── activate.component.html │ │ │ │ └── activate.component.ts │ │ │ ├── settings │ │ │ │ └── settings.route.ts │ │ │ ├── account.route.ts │ │ │ ├── index.ts │ │ │ └── account.module.ts │ │ ├── entities │ │ │ ├── video │ │ │ │ ├── index.ts │ │ │ │ ├── video.model.ts │ │ │ │ ├── video-play.component.html │ │ │ │ ├── video-delete-dialog.component.html │ │ │ │ └── video.module.ts │ │ │ └── entity.module.ts │ │ ├── app.main-aot.ts │ │ ├── app.main.ts │ │ └── app.constants.ts │ ├── favicon.ico │ ├── content │ │ ├── images │ │ │ ├── hipster.png │ │ │ ├── hipster2x.png │ │ │ └── logo-jhipster.png │ │ └── scss │ │ │ └── vendor.scss │ ├── i18n │ │ ├── zh-cn │ │ │ ├── error.json │ │ │ ├── configuration.json │ │ │ ├── activate.json │ │ │ ├── logs.json │ │ │ ├── password.json │ │ │ ├── gateway.json │ │ │ ├── sessions.json │ │ │ ├── login.json │ │ │ ├── home.json │ │ │ ├── health.json │ │ │ ├── audits.json │ │ │ ├── register.json │ │ │ ├── reset.json │ │ │ ├── user-management.json │ │ │ ├── settings.json │ │ │ └── video.json │ │ └── en │ │ │ ├── error.json │ │ │ ├── configuration.json │ │ │ ├── logs.json │ │ │ ├── activate.json │ │ │ ├── password.json │ │ │ ├── gateway.json │ │ │ ├── sessions.json │ │ │ ├── login.json │ │ │ ├── home.json │ │ │ ├── health.json │ │ │ ├── audits.json │ │ │ ├── reset.json │ │ │ ├── register.json │ │ │ ├── user-management.json │ │ │ ├── video.json │ │ │ └── settings.json │ ├── swagger-ui │ │ └── images │ │ │ └── throbber.gif │ ├── robots.txt │ ├── manifest.webapp │ ├── sw.js │ └── 404.html │ ├── java │ └── com │ │ └── caosg │ │ └── ytbdl │ │ ├── domain │ │ ├── package-info.java │ │ ├── StringSetConverter.java │ │ ├── String2SetDeserializer.java │ │ └── Authority.java │ │ ├── service │ │ ├── package-info.java │ │ ├── dto │ │ │ └── package-info.java │ │ ├── mapper │ │ │ ├── package-info.java │ │ │ └── VideoMapper.java │ │ └── util │ │ │ ├── StreamGobbler.java │ │ │ └── RandomUtil.java │ │ ├── config │ │ ├── audit │ │ │ └── package-info.java │ │ ├── package-info.java │ │ ├── ApplicationProperties.java │ │ ├── Constants.java │ │ ├── LoggingAspectConfiguration.java │ │ ├── DateTimeFormatConfiguration.java │ │ ├── CloudDatabaseConfiguration.java │ │ ├── JacksonConfiguration.java │ │ ├── ThymeleafConfiguration.java │ │ ├── LocaleConfiguration.java │ │ └── DefaultProfileUtil.java │ │ ├── security │ │ ├── package-info.java │ │ ├── AuthoritiesConstants.java │ │ ├── UserNotActivatedException.java │ │ ├── SpringSecurityAuditorAware.java │ │ └── jwt │ │ │ └── JWTConfigurer.java │ │ ├── web │ │ └── rest │ │ │ ├── package-info.java │ │ │ ├── vm │ │ │ ├── package-info.java │ │ │ ├── KeyAndPasswordVM.java │ │ │ ├── LoggerVM.java │ │ │ ├── LoginVM.java │ │ │ └── ManagedUserVM.java │ │ │ ├── errors │ │ │ ├── ErrorConstants.java │ │ │ ├── ParameterizedErrorVM.java │ │ │ ├── FieldErrorVM.java │ │ │ ├── ErrorVM.java │ │ │ └── CustomParameterizedException.java │ │ │ ├── LogsResource.java │ │ │ └── util │ │ │ ├── HeaderUtil.java │ │ │ └── PaginationUtil.java │ │ ├── repository │ │ ├── package-info.java │ │ ├── AuthorityRepository.java │ │ ├── VideoRepository.java │ │ ├── PersistenceAuditEventRepository.java │ │ └── UserRepository.java │ │ ├── crawler │ │ ├── YoutubeDLException.java │ │ ├── dto │ │ │ └── ThumbnailsBean.java │ │ └── YoutubeDLResponse.java │ │ └── ApplicationWebXml.java │ └── docker │ ├── sonar.yml │ ├── Dockerfile │ ├── mysql.yml │ └── app.yml ├── webpack ├── logo-jhipster.png └── utils.js ├── .mvn └── wrapper │ ├── maven-wrapper.jar │ └── maven-wrapper.properties ├── proxy.conf.json ├── .editorconfig ├── tsconfig.json ├── tsconfig-aot.json ├── .yo-rc.json └── .angular-cli.json /postcss.config.js: -------------------------------------------------------------------------------- 1 | module.exports = { 2 | plugins: [] 3 | } 4 | -------------------------------------------------------------------------------- /src/test/resources/i18n/messages_en.properties: -------------------------------------------------------------------------------- 1 | email.test.title=test title 2 | -------------------------------------------------------------------------------- /src/main/resources/config/liquibase/authorities.csv: -------------------------------------------------------------------------------- 1 | name 2 | ROLE_ADMIN 3 | ROLE_USER 4 | -------------------------------------------------------------------------------- /src/main/webapp/app/shared/constants/pagination.constants.ts: -------------------------------------------------------------------------------- 1 | export const ITEMS_PER_PAGE = 20; 2 | -------------------------------------------------------------------------------- /webpack/logo-jhipster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caosg/youtube-dl-java/HEAD/webpack/logo-jhipster.png -------------------------------------------------------------------------------- /src/main/webapp/favicon.ico: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caosg/youtube-dl-java/HEAD/src/main/webapp/favicon.ico -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.jar: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caosg/youtube-dl-java/HEAD/.mvn/wrapper/maven-wrapper.jar -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/domain/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * JPA domain objects. 3 | */ 4 | package com.caosg.ytbdl.domain; 5 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/service/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Service layer beans. 3 | */ 4 | package com.caosg.ytbdl.service; 5 | -------------------------------------------------------------------------------- /src/main/webapp/app/shared/model/base-entity.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | ; 4 | -------------------------------------------------------------------------------- /src/main/webapp/app/home/index.ts: -------------------------------------------------------------------------------- 1 | export * from './home.component'; 2 | export * from './home.route'; 3 | export * from './home.module'; 4 | -------------------------------------------------------------------------------- /src/main/webapp/content/images/hipster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caosg/youtube-dl-java/HEAD/src/main/webapp/content/images/hipster.png -------------------------------------------------------------------------------- /src/main/webapp/i18n/zh-cn/error.json: -------------------------------------------------------------------------------- 1 | { 2 | "error": { 3 | "title": "错误页面!", 4 | "403": "您没有权限访问此页面." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/config/audit/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Audit specific code. 3 | */ 4 | package com.caosg.ytbdl.config.audit; 5 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/security/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Spring Security configuration. 3 | */ 4 | package com.caosg.ytbdl.security; 5 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/service/dto/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Data Transfer Objects. 3 | */ 4 | package com.caosg.ytbdl.service.dto; 5 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/web/rest/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Spring MVC REST controllers. 3 | */ 4 | package com.caosg.ytbdl.web.rest; 5 | -------------------------------------------------------------------------------- /src/main/webapp/content/images/hipster2x.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caosg/youtube-dl-java/HEAD/src/main/webapp/content/images/hipster2x.png -------------------------------------------------------------------------------- /.mvn/wrapper/maven-wrapper.properties: -------------------------------------------------------------------------------- 1 | distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.5.0/apache-maven-3.5.0-bin.zip 2 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/config/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Spring Framework configuration files. 3 | */ 4 | package com.caosg.ytbdl.config; 5 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/repository/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * Spring Data JPA repositories. 3 | */ 4 | package com.caosg.ytbdl.repository; 5 | -------------------------------------------------------------------------------- /src/main/webapp/app/layouts/footer/footer.component.html: -------------------------------------------------------------------------------- 1 |
4 | -------------------------------------------------------------------------------- /src/main/webapp/content/images/logo-jhipster.png: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caosg/youtube-dl-java/HEAD/src/main/webapp/content/images/logo-jhipster.png -------------------------------------------------------------------------------- /src/main/webapp/swagger-ui/images/throbber.gif: -------------------------------------------------------------------------------- https://raw.githubusercontent.com/caosg/youtube-dl-java/HEAD/src/main/webapp/swagger-ui/images/throbber.gif -------------------------------------------------------------------------------- /src/test/resources/mails/testEmail.html: -------------------------------------------------------------------------------- 1 | 2 | -------------------------------------------------------------------------------- /proxy.conf.json: -------------------------------------------------------------------------------- 1 | { 2 | "*": { 3 | "target": "http://localhost:8080", 4 | "secure": false, 5 | "loglevel": "debug" 6 | } 7 | } 8 | -------------------------------------------------------------------------------- /src/main/resources/config/liquibase/users_authorities.csv: -------------------------------------------------------------------------------- 1 | user_id;authority_name 2 | 1;ROLE_ADMIN 3 | 1;ROLE_USER 4 | 3;ROLE_ADMIN 5 | 3;ROLE_USER 6 | 4;ROLE_USER 7 | -------------------------------------------------------------------------------- /src/main/webapp/app/polyfills.ts: -------------------------------------------------------------------------------- 1 | /* tslint:disable */ 2 | import 'reflect-metadata/Reflect'; 3 | import 'zone.js/dist/zone'; 4 | 5 | require('../manifest.webapp'); 6 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/web/rest/vm/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * View Models used by Spring MVC REST controllers. 3 | */ 4 | package com.caosg.ytbdl.web.rest.vm; 5 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/logs/log.model.ts: -------------------------------------------------------------------------------- 1 | export class Log { 2 | constructor( 3 | public name: string, 4 | public level: string 5 | ) { } 6 | } 7 | -------------------------------------------------------------------------------- /src/main/webapp/app/shared/constants/pagination.constants.js: -------------------------------------------------------------------------------- 1 | "use strict"; 2 | Object.defineProperty(exports, "__esModule", { value: true }); 3 | exports.ITEMS_PER_PAGE = 20; 4 | -------------------------------------------------------------------------------- /src/main/webapp/app/shared/model/base-entity.ts: -------------------------------------------------------------------------------- 1 | export interface BaseEntity { 2 | // using type any to avoid methods complaining of invalid type 3 | id?: any; 4 | }; 5 | -------------------------------------------------------------------------------- /src/main/webapp/i18n/en/error.json: -------------------------------------------------------------------------------- 1 | { 2 | "error": { 3 | "title": "Error page!", 4 | "403": "You are not authorized to access the page." 5 | } 6 | } 7 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/docs/docs.component.html: -------------------------------------------------------------------------------- 1 | 3 | -------------------------------------------------------------------------------- /src/main/docker/sonar.yml: -------------------------------------------------------------------------------- 1 | version: '2' 2 | services: 3 | youtubedl-sonar: 4 | image: sonarqube:6.4-alpine 5 | ports: 6 | - 9000:9000 7 | - 9092:9092 8 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/service/mapper/package-info.java: -------------------------------------------------------------------------------- 1 | /** 2 | * MapStruct mappers for mapping domain objects and Data Transfer Objects. 3 | */ 4 | package com.caosg.ytbdl.service.mapper; 5 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/audits/audit-data.model.ts: -------------------------------------------------------------------------------- 1 | export class AuditData { 2 | constructor( 3 | public remoteAddress: string, 4 | public sessionId: string 5 | ) { } 6 | } 7 | -------------------------------------------------------------------------------- /src/main/resources/.h2.server.properties: -------------------------------------------------------------------------------- 1 | #H2 Server Properties 2 | 0=JHipster H2 (Disk)|org.h2.Driver|jdbc\:h2\:file\:./target/h2db/db/youtubedl|youtubedl 3 | webAllowOthers=true 4 | webPort=8082 5 | webSSL=false 6 | -------------------------------------------------------------------------------- /src/main/webapp/app/layouts/profiles/profile-info.model.ts: -------------------------------------------------------------------------------- 1 | export class ProfileInfo { 2 | activeProfiles: string[]; 3 | ribbonEnv: string; 4 | inProduction: boolean; 5 | swaggerEnabled: boolean; 6 | } 7 | -------------------------------------------------------------------------------- /src/main/webapp/app/layouts/footer/footer.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'jhi-footer', 5 | templateUrl: './footer.component.html' 6 | }) 7 | export class FooterComponent {} 8 | -------------------------------------------------------------------------------- /src/main/webapp/app/vendor.ts: -------------------------------------------------------------------------------- 1 | /* after changing this file run 'yarn run webpack:build' */ 2 | /* tslint:disable */ 3 | import '../content/scss/vendor.scss'; 4 | // jhipster-needle-add-element-to-vendor - JHipster will add new menu items here 5 | -------------------------------------------------------------------------------- /src/main/webapp/app/app.route.ts: -------------------------------------------------------------------------------- 1 | import { Route } from '@angular/router'; 2 | 3 | import { NavbarComponent } from './layouts'; 4 | 5 | export const navbarRoute: Route = { 6 | path: '', 7 | component: NavbarComponent, 8 | outlet: 'navbar' 9 | }; 10 | -------------------------------------------------------------------------------- /src/main/webapp/i18n/zh-cn/configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "configuration": { 3 | "title": "配置", 4 | "filter": "过滤 (按前缀)", 5 | "table": { 6 | "prefix": "前缀", 7 | "properties": "属性" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/main/webapp/i18n/zh-cn/activate.json: -------------------------------------------------------------------------------- 1 | { 2 | "activate": { 3 | "title": "启用", 4 | "messages": { 5 | "success": "您的账号已启用. 请 ", 6 | "error": "您的账号无法启用. 请重新注册." 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/webapp/i18n/zh-cn/logs.json: -------------------------------------------------------------------------------- 1 | { 2 | "logs": { 3 | "title": "日志", 4 | "nbloggers": "共有 {{ total }} 条日志.", 5 | "filter": "筛选", 6 | "table": { 7 | "name": "名称", 8 | "level": "等级" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/docs/docs.component.ts: -------------------------------------------------------------------------------- 1 | import { Component } from '@angular/core'; 2 | 3 | @Component({ 4 | selector: 'jhi-docs', 5 | templateUrl: './docs.component.html' 6 | }) 7 | export class JhiDocsComponent { 8 | constructor( 9 | ) { 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/webapp/app/shared/model/response-wrapper.model.ts: -------------------------------------------------------------------------------- 1 | import { Headers } from '@angular/http'; 2 | 3 | export class ResponseWrapper { 4 | constructor( 5 | public headers: Headers, 6 | public json: any, 7 | public status: number 8 | ) { } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/webapp/i18n/en/configuration.json: -------------------------------------------------------------------------------- 1 | { 2 | "configuration": { 3 | "title": "Configuration", 4 | "filter": "Filter (by prefix)", 5 | "table": { 6 | "prefix": "Prefix", 7 | "properties": "Properties" 8 | } 9 | } 10 | } 11 | -------------------------------------------------------------------------------- /src/main/webapp/i18n/en/logs.json: -------------------------------------------------------------------------------- 1 | { 2 | "logs": { 3 | "title": "Logs", 4 | "nbloggers": "There are {{ total }} loggers.", 5 | "filter": "Filter", 6 | "table": { 7 | "name": "Name", 8 | "level": "Level" 9 | } 10 | } 11 | } 12 | -------------------------------------------------------------------------------- /src/main/webapp/robots.txt: -------------------------------------------------------------------------------- 1 | # robotstxt.org/ 2 | 3 | User-agent: * 4 | Disallow: /api/account 5 | Disallow: /api/account/change_password 6 | Disallow: /api/account/sessions 7 | Disallow: /api/audits/ 8 | Disallow: /api/logs/ 9 | Disallow: /api/users/ 10 | Disallow: /management/ 11 | Disallow: /v2/api-docs/ 12 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/audits/audit.model.ts: -------------------------------------------------------------------------------- 1 | import { AuditData } from './audit-data.model'; 2 | 3 | export class Audit { 4 | constructor( 5 | public data: AuditData, 6 | public principal: string, 7 | public timestamp: string, 8 | public type: string 9 | ) { } 10 | } 11 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/logs/logs.route.ts: -------------------------------------------------------------------------------- 1 | import { Route } from '@angular/router'; 2 | 3 | import { LogsComponent } from './logs.component'; 4 | 5 | export const logsRoute: Route = { 6 | path: 'logs', 7 | component: LogsComponent, 8 | data: { 9 | pageTitle: 'logs.title' 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/audits/audits.route.ts: -------------------------------------------------------------------------------- 1 | import { Route } from '@angular/router'; 2 | 3 | import { AuditsComponent } from './audits.component'; 4 | 5 | export const auditsRoute: Route = { 6 | path: 'audits', 7 | component: AuditsComponent, 8 | data: { 9 | pageTitle: 'audits.title' 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/docs/docs.route.ts: -------------------------------------------------------------------------------- 1 | import { Route } from '@angular/router'; 2 | 3 | import { JhiDocsComponent } from './docs.component'; 4 | 5 | export const docsRoute: Route = { 6 | path: 'docs', 7 | component: JhiDocsComponent, 8 | data: { 9 | pageTitle: 'global.menu.admin.apidocs' 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /src/main/webapp/app/blocks/config/prod.config.ts: -------------------------------------------------------------------------------- 1 | import { enableProdMode } from '@angular/core'; 2 | import { DEBUG_INFO_ENABLED } from '../../app.constants'; 3 | 4 | export function ProdConfig() { 5 | // disable debug data on prod profile to improve performance 6 | if (!DEBUG_INFO_ENABLED) { 7 | enableProdMode(); 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/health/health.route.ts: -------------------------------------------------------------------------------- 1 | import { Route } from '@angular/router'; 2 | 3 | import { JhiHealthCheckComponent } from './health.component'; 4 | 5 | export const healthRoute: Route = { 6 | path: 'jhi-health', 7 | component: JhiHealthCheckComponent, 8 | data: { 9 | pageTitle: 'health.title' 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /src/main/webapp/i18n/zh-cn/password.json: -------------------------------------------------------------------------------- 1 | { 2 | "password": { 3 | "title": "[{{username}}] 的密码", 4 | "form": { 5 | "button": "保存" 6 | }, 7 | "messages": { 8 | "error": "发生错误! 密码无法被修改.", 9 | "success": "密码修改成功!" 10 | } 11 | } 12 | } 13 | -------------------------------------------------------------------------------- /src/main/webapp/app/admin/metrics/metrics.route.ts: -------------------------------------------------------------------------------- 1 | import { Route } from '@angular/router'; 2 | 3 | import { JhiMetricsMonitoringComponent } from './metrics.component'; 4 | 5 | export const metricsRoute: Route = { 6 | path: 'jhi-metrics', 7 | component: JhiMetricsMonitoringComponent, 8 | data: { 9 | pageTitle: 'metrics.title' 10 | } 11 | }; 12 | -------------------------------------------------------------------------------- /src/main/webapp/i18n/en/activate.json: -------------------------------------------------------------------------------- 1 | { 2 | "activate": { 3 | "title": "Activation", 4 | "messages": { 5 | "success": "Your user account has been activated. Please ", 6 | "error": "Your user could not be activated. Please use the registration form to sign up." 7 | } 8 | } 9 | } 10 | -------------------------------------------------------------------------------- /src/main/webapp/app/home/home.route.ts: -------------------------------------------------------------------------------- 1 | import { Route } from '@angular/router'; 2 | 3 | import { UserRouteAccessService } from '../shared'; 4 | import { HomeComponent } from './'; 5 | 6 | export const HOME_ROUTE: Route = { 7 | path: '', 8 | component: HomeComponent, 9 | data: { 10 | authorities: [], 11 | pageTitle: 'home.title' 12 | } 13 | }; 14 | -------------------------------------------------------------------------------- /src/main/java/com/caosg/ytbdl/repository/AuthorityRepository.java: -------------------------------------------------------------------------------- 1 | package com.caosg.ytbdl.repository; 2 | 3 | import com.caosg.ytbdl.domain.Authority; 4 | 5 | import org.springframework.data.jpa.repository.JpaRepository; 6 | 7 | /** 8 | * Spring Data JPA repository for the Authority entity. 9 | */ 10 | public interface AuthorityRepository extends JpaRepository
8 | * Properties are configured in the application.yml file.
9 | */
10 | @ConfigurationProperties(prefix = "application", ignoreUnknownFields = false)
11 | public class ApplicationProperties {
12 |
13 | }
14 |
--------------------------------------------------------------------------------
/src/main/webapp/app/account/password-reset/init/password-reset-init.service.ts:
--------------------------------------------------------------------------------
1 | import { Injectable } from '@angular/core';
2 | import { Http } from '@angular/http';
3 | import { Observable } from 'rxjs/Rx';
4 |
5 | @Injectable()
6 | export class PasswordResetInitService {
7 |
8 | constructor(private http: Http) {}
9 |
10 | save(mail: string): Observable