diff --git a/tests/web/ui/ng-alain7/src/app/layout/passport/passport.component.html b/tests/web/ui/ng-alain7/src/app/layout/passport/passport.component.html
index 6cb253fee..dc3e836c8 100644
--- a/tests/web/ui/ng-alain7/src/app/layout/passport/passport.component.html
+++ b/tests/web/ui/ng-alain7/src/app/layout/passport/passport.component.html
@@ -3,8 +3,8 @@
武林中最有影响力的《葵花宝典》;欲练神功,挥刀自宫
diff --git a/tests/web/ui/ng-alain7/src/app/routes/exception/exception-routing.module.ts b/tests/web/ui/ng-alain7/src/app/routes/exception/exception-routing.module.ts
index 1e7195458..e9d41d2d3 100644
--- a/tests/web/ui/ng-alain7/src/app/routes/exception/exception-routing.module.ts
+++ b/tests/web/ui/ng-alain7/src/app/routes/exception/exception-routing.module.ts
@@ -7,9 +7,9 @@ import { Exception500Component } from './500.component';
import { ExceptionTriggerComponent } from './trigger.component';
const routes: Routes = [
- { path: '403', component: Exception403Component },
- { path: '404', component: Exception404Component },
- { path: '500', component: Exception500Component },
+ { path: '403', component: Exception403Component, data: { title: '403' } },
+ { path: '404', component: Exception404Component, data: { title: '404' } },
+ { path: '500', component: Exception500Component, data: { title: '500' } },
{ path: 'trigger', component: ExceptionTriggerComponent },
];
@@ -17,4 +17,4 @@ const routes: Routes = [
imports: [RouterModule.forChild(routes)],
exports: [RouterModule],
})
-export class ExceptionRoutingModule {}
+export class ExceptionRoutingModule { }
diff --git a/tests/web/ui/ng-alain7/src/app/routes/passport/login/login.component.html b/tests/web/ui/ng-alain7/src/app/routes/passport/login/login.component.html
index 8243dd4be..523da62e2 100644
--- a/tests/web/ui/ng-alain7/src/app/routes/passport/login/login.component.html
+++ b/tests/web/ui/ng-alain7/src/app/routes/passport/login/login.component.html
@@ -81,5 +81,6 @@
{{ 'app.login.sign-in-with' | translate }}
+
{{ 'app.login.signup' | translate }}
diff --git a/tests/web/ui/ng-alain7/src/app/routes/profile/edit/edit.component.ts b/tests/web/ui/ng-alain7/src/app/routes/profile/edit/edit.component.ts
index 87a71793b..3e433fe5a 100644
--- a/tests/web/ui/ng-alain7/src/app/routes/profile/edit/edit.component.ts
+++ b/tests/web/ui/ng-alain7/src/app/routes/profile/edit/edit.component.ts
@@ -22,7 +22,7 @@ export class ProfileEditComponent implements OnInit {
ngOnInit() {
let user = this.settings.user;
- let userNameEdit = ['QQ_', 'Microsoft_'].some(m => user.name.startsWith(m));
+ let userNameEdit = ['QQ_', 'Microsoft_', 'GitHub_'].some(m => user.name.startsWith(m));
this.headImgUrl = user.avatar;
this.schema = {
properties: {
diff --git a/tests/web/ui/ng-alain7/src/app/routes/profile/oauth2/oauth2.component.html b/tests/web/ui/ng-alain7/src/app/routes/profile/oauth2/oauth2.component.html
index f3bc5374c..673fc385e 100644
--- a/tests/web/ui/ng-alain7/src/app/routes/profile/oauth2/oauth2.component.html
+++ b/tests/web/ui/ng-alain7/src/app/routes/profile/oauth2/oauth2.component.html
@@ -1,4 +1,4 @@
-
+
diff --git a/tests/web/ui/ng-alain7/src/app/routes/routes.routing.ts b/tests/web/ui/ng-alain7/src/app/routes/routes.routing.ts
index 96e3ecc9d..6f74db76f 100644
--- a/tests/web/ui/ng-alain7/src/app/routes/routes.routing.ts
+++ b/tests/web/ui/ng-alain7/src/app/routes/routes.routing.ts
@@ -10,12 +10,13 @@ import { DashboardComponent } from './dashboard/dashboard.component';
// single pages
import { CallbackComponent } from './callback/callback.component';
import { ACLGuard } from '@delon/acl';
+import { SimpleGuard } from '@delon/auth';
const routes: Routes = [
{
path: '',
component: LayoutDefaultComponent,
- canActivate: [],
+ canActivate: [SimpleGuard],
data: { title: '主页' },
children: [
{ path: '', redirectTo: 'dashboard', pathMatch: 'full' },
diff --git a/tests/web/ui/ng-alain7/src/app/shared/components/modal-tree/modal-tree.component.ts b/tests/web/ui/ng-alain7/src/app/shared/components/modal-tree/modal-tree.component.ts
index 8ee807aec..9b9ce1153 100644
--- a/tests/web/ui/ng-alain7/src/app/shared/components/modal-tree/modal-tree.component.ts
+++ b/tests/web/ui/ng-alain7/src/app/shared/components/modal-tree/modal-tree.component.ts
@@ -30,7 +30,7 @@ export class ModalTreeComponent {
constructor(public http: _HttpClient, private alain: AlainService) { }
- private loadTreeData() {
+ loadTreeData() {
let url = this.treeDataUrl;
if (!url) {
return;
diff --git a/tests/web/ui/ng-alain7/src/app/shared/osharp/services/identity.service.ts b/tests/web/ui/ng-alain7/src/app/shared/osharp/services/identity.service.ts
index 4069502d1..e448c9d6c 100644
--- a/tests/web/ui/ng-alain7/src/app/shared/osharp/services/identity.service.ts
+++ b/tests/web/ui/ng-alain7/src/app/shared/osharp/services/identity.service.ts
@@ -88,6 +88,7 @@ export class IdentityService {
this.tokenSrv.set({ token });
} else {
this.tokenSrv.clear();
+ this.settingSrv.setUser({});
}
// 刷新用户信息
return this.refreshUser();
diff --git a/tests/web/ui/ng-alain7/src/assets/osharp/logo-color.svg b/tests/web/ui/ng-alain7/src/assets/osharp/logo-color.svg
new file mode 100644
index 000000000..bc4022f26
--- /dev/null
+++ b/tests/web/ui/ng-alain7/src/assets/osharp/logo-color.svg
@@ -0,0 +1,17 @@
+
diff --git a/tests/web/ui/ng-alain7/src/assets/osharp/logo-full.svg b/tests/web/ui/ng-alain7/src/assets/osharp/logo-full.svg
new file mode 100644
index 000000000..d6018a786
--- /dev/null
+++ b/tests/web/ui/ng-alain7/src/assets/osharp/logo-full.svg
@@ -0,0 +1,21 @@
+
diff --git a/tests/web/ui/ng-alain7/src/assets/osharp/logo.svg b/tests/web/ui/ng-alain7/src/assets/osharp/logo.svg
new file mode 100644
index 000000000..211275662
--- /dev/null
+++ b/tests/web/ui/ng-alain7/src/assets/osharp/logo.svg
@@ -0,0 +1,17 @@
+