Skip to content

Commit

Permalink
npm install create package-lock.json
Browse files Browse the repository at this point in the history
  • Loading branch information
vnobo committed Oct 26, 2023
1 parent 9b419fb commit 5ba3a01
Show file tree
Hide file tree
Showing 13 changed files with 23 additions and 34 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ version=0.0.1-SNAPSHOT
org.gradle.parallel=true
org.gradle.caching=true
org.gradle.daemon=true
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx2048M
org.gradle.jvmargs=-Dfile.encoding=UTF-8 -Xmx1024M
dusername=alexbob
dpassword=dckr_pat_wvKMRljAECuiaY7riNJ5RVOMM-M
demail=5199840@qq.com
Expand Down
2 changes: 1 addition & 1 deletion ui/web/proxy.conf.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"/api": {
"target": "http://192.168.1.2:18080",
"target": "http://127.0.0.1:8080",
"secure": false,
"pathRewrite": {
"^/api": ""
Expand Down
2 changes: 1 addition & 1 deletion ui/web/src/app/app-routing.module.ts
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
import {NgModule} from '@angular/core';
import {RouterModule, Routes, TitleStrategy} from '@angular/router';
import {PageNotFoundComponent} from "./shared/page-not-found/page-not-found.component";
import {PageNotFoundComponent} from "./pages/page-not-found/page-not-found.component";
import {PageTitleStrategy} from "./shared/page-title-strategy.service";

const routes: Routes = [
Expand Down
2 changes: 0 additions & 2 deletions ui/web/src/app/app.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -9,10 +9,8 @@ import {Component, OnInit} from '@angular/core';
styleUrls: ['./app.component.scss']
})
export class AppComponent implements OnInit {
page: number = 0;

ngOnInit(): void {
this.page = 1;
}

}
4 changes: 3 additions & 1 deletion ui/web/src/app/app.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -8,10 +8,12 @@ import {RouterModule} from '@angular/router';
import {httpInterceptorProviders} from "./http-interceptors";
import {HttpClientXsrfModule} from "@angular/common/http";
import {SharedModule} from "./shared/shared.module";
import {PageNotFoundComponent} from "./pages/page-not-found/page-not-found.component";

@NgModule({
declarations: [
AppComponent
AppComponent,
PageNotFoundComponent
],
imports: [
ServiceWorkerModule.register('ngsw-worker.js', {
Expand Down
Original file line number Diff line number Diff line change
@@ -1,13 +1,11 @@
import {Component} from '@angular/core';
import {LayoutService} from "../layout.service";

@Component({
selector: 'app-page-not-found',
templateUrl: './page-not-found.component.html',
styleUrls: ['./page-not-found.component.scss']
})
export class PageNotFoundComponent {
constructor(private layoutService: LayoutService) {
layoutService.isHide(true);
constructor() {
}
}
16 changes: 7 additions & 9 deletions ui/web/src/app/security/login/login.component.html
Original file line number Diff line number Diff line change
Expand Up @@ -15,10 +15,9 @@ <h5 class="text-center mb-4" i18n>Login to your account</h5>
<i class="layui-icon layui-icon-username"></i>
</div>
<input [class.is-invalid]="loginForm.controls.username.invalid &&
(loginForm.controls.username.dirty || loginForm.controls.username.touched)" [class.is-valid]="loginForm.controls.username.valid" autocomplete="off" class="layui-input"
name="username" placeholder="用户名"
required
type="text">
(loginForm.controls.username.dirty || loginForm.controls.username.touched)"
[class.is-valid]="loginForm.controls.username.valid" autocomplete="off" class="layui-input"
name="username" placeholder="用户名" required type="text">
</div>
</div>
<div class="layui-form-item">
Expand All @@ -27,10 +26,9 @@ <h5 class="text-center mb-4" i18n>Login to your account</h5>
<i class="layui-icon layui-icon-password"></i>
</div>
<input [class.is-invalid]="loginForm.controls.password.invalid &&
(loginForm.controls.password.dirty || loginForm.controls.password.touched)" [class.is-valid]="loginForm.controls.password.valid" autocomplete="off" class="layui-input"
name="password" placeholder="密 码"
required
type="password">
(loginForm.controls.password.dirty || loginForm.controls.password.touched)"
[class.is-valid]="loginForm.controls.password.valid" autocomplete="off" class="layui-input"
name="password" placeholder="密 码" required type="password">
</div>
<div *ngIf="loginForm.controls.password.errors?.['minlength']
|| loginForm.controls.password.errors?.['maxlength']" class="invalid-feedback" i18n>
Expand Down Expand Up @@ -65,7 +63,7 @@ <h5 class="text-center mb-4" i18n>Login to your account</h5>
<a href="#forget" style="float: right; margin-top: 7px;">忘记密码?</a>
</div>
<div class="layui-form-item">
<button class="layui-btn layui-btn-fluid" lay-filter="demo-login" lay-submit>登录</button>
<button class="layui-btn layui-btn-fluid" type="submit">登录</button>
</div>
</div>
</form>
Expand Down
14 changes: 5 additions & 9 deletions ui/web/src/app/security/login/login.component.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {Component, OnDestroy, OnInit} from '@angular/core';
import {FormBuilder, FormControl, Validators} from "@angular/forms";
import {Credentials, LoginService} from "./login.service";
import {ActivatedRoute, Router} from "@angular/router";
import {LayoutService} from "../../shared/layout.service";

@Component({
selector: 'app-login',
Expand All @@ -25,11 +24,10 @@ export class LoginComponent implements OnInit, OnDestroy {
rememberMe: new FormControl(false)
});

constructor(private formBuilder: FormBuilder,
private loginService: LoginService,
private layoutService: LayoutService,
private router: Router,
private route: ActivatedRoute) {
constructor(private router: Router,
private route: ActivatedRoute,
private formBuilder: FormBuilder,
private loginService: LoginService) {
}

onSubmit(): void {
Expand All @@ -54,14 +52,12 @@ export class LoginComponent implements OnInit, OnDestroy {
this.loginForm.patchValue({
username: credentials.username,
password: credentials.password,
rememberMe: true
rememberMe: false
});
}
this.layoutService.isHide(true);
}

ngOnDestroy(): void {
this.layoutService.isHide(false);
}

}
2 changes: 1 addition & 1 deletion ui/web/src/app/shared/page-title-strategy.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ export class PageTitleStrategy extends TitleStrategy {
override updateTitle(routerState: RouterStateSnapshot) {
const title = this.buildTitle(routerState);
if (title !== undefined) {
this.title.setTitle($localize`:@@siteTitlePrefix:Plate Platform- | ${title}`);
this.title.setTitle($localize`:@@siteTitlePrefix:Plate Platform | ${title}`);
}
}
}
3 changes: 0 additions & 3 deletions ui/web/src/app/shared/shared.module.ts
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ import {NgModule} from '@angular/core';
import {CommonModule} from '@angular/common';
import {FormsModule, ReactiveFormsModule} from "@angular/forms";
import {HttpClientModule} from "@angular/common/http";
import {PageNotFoundComponent} from "./page-not-found/page-not-found.component";
import {MatSnackBarModule} from "@angular/material/snack-bar";
import {MatProgressBarModule} from "@angular/material/progress-bar";
import {RouterModule} from "@angular/router";
Expand All @@ -13,10 +12,8 @@ import {RouterModule} from "@angular/router";
RouterModule
],
declarations: [
PageNotFoundComponent
],
exports: [
PageNotFoundComponent,
CommonModule,
FormsModule,
HttpClientModule,
Expand Down
6 changes: 3 additions & 3 deletions ui/web/src/locale/messages.zh.xlf
Original file line number Diff line number Diff line change
Expand Up @@ -47,8 +47,8 @@
<note category="location">src/app/security/login/login.component.html:12</note>
</notes>
<segment>
<source>Plateva Platform Manager</source>
<target>平台管理后台</target>
<source>Plate Platform Manager</source>
<target>盘子管理平台</target>
</segment>
</unit>
<unit id="1274686598843595771">
Expand Down Expand Up @@ -156,7 +156,7 @@
<note category="location">src/app/shared/page-title-strategy.service.ts:16</note>
</notes>
<segment>
<source>盘子管理平台- | <ph id="0" equiv="PH" disp="title"/></source>
<source>盘子管理平台 | <ph id="0" equiv="PH" disp="title"/></source>
</segment>
</unit>
</file>
Expand Down

0 comments on commit 5ba3a01

Please sign in to comment.