Skip to content

Commit

Permalink
chore: 修复NG-ALAIN统一标识
Browse files Browse the repository at this point in the history
  • Loading branch information
cipchk committed Oct 31, 2023
1 parent 5a71978 commit 48c8432
Show file tree
Hide file tree
Showing 13 changed files with 17 additions and 14 deletions.
2 changes: 1 addition & 1 deletion docs/contributing.zh-CN.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ type: Other

## Pull Request

Ng Alain 会关注所有的 pull request,我们会 review 以及合并你的代码,也有可能要求你做一些修改或者告诉你我们为什么不能接受这样的修改。
NG-ALAIN 会关注所有的 pull request,我们会 review 以及合并你的代码,也有可能要求你做一些修改或者告诉你我们为什么不能接受这样的修改。

**在你发送 Pull Request 之前**,请确认你是按照下面的步骤来做的:

Expand Down
2 changes: 1 addition & 1 deletion schematics/application/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainShell",
"title": "Ng Alain Shell Options Schema",
"title": "NG-ALAIN Shell Options Schema",
"type": "object",
"properties": {
"codeStyle": {
Expand Down
2 changes: 1 addition & 1 deletion schematics/curd/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainCURDComponent",
"title": "Ng Alain CURD Component Options Schema",
"title": "NG-ALAIN CURD Component Options Schema",
"type": "object",
"properties": {
"path": {
Expand Down
2 changes: 1 addition & 1 deletion schematics/edit/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainEditComponent",
"title": "Ng Alain Edit Component Options Schema",
"title": "NG-ALAIN Edit Component Options Schema",
"type": "object",
"additionalProperties": true,
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion schematics/empty/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainEmptyComponent",
"title": "Ng Alain Empty Component Options Schema",
"title": "NG-ALAIN Empty Component Options Schema",
"type": "object",
"additionalProperties": true,
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion schematics/list/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainListComponent",
"title": "Ng Alain List Component Options Schema",
"title": "NG-ALAIN List Component Options Schema",
"type": "object",
"additionalProperties": true,
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion schematics/module/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainModule",
"title": "Ng Alain Module Options Schema",
"title": "NG-ALAIN Module Options Schema",
"type": "object",
"properties": {
"name": {
Expand Down
2 changes: 1 addition & 1 deletion schematics/sta/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainSTAComponent",
"title": "Ng Alain Swagger To API Options Schema",
"title": "NG-ALAIN Swagger To API Options Schema",
"type": "object",
"additionalProperties": true,
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion schematics/tpl/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainTplComponent",
"title": "Ng Alain Tpl Options Schema",
"title": "NG-ALAIN Tpl Options Schema",
"type": "object",
"additionalProperties": true,
"properties": {
Expand Down
2 changes: 1 addition & 1 deletion schematics/view/schema.json
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
{
"$schema": "http://json-schema.org/draft-07/schema",
"$id": "SchematicsNgAlainViewComponent",
"title": "Ng Alain View Component Options Schema",
"title": "NG-ALAIN View Component Options Schema",
"type": "object",
"additionalProperties": true,
"properties": {
Expand Down
7 changes: 5 additions & 2 deletions src/app/core/meta.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -202,11 +202,14 @@ export class MetaService {
}

getPathByUrl(url: string): any {
url = url.split('=')[0].split('?')[0];
url = url
.split('=')[0]
.split('?')[0]
.replace(/\/(en|zh)$/, '/');
let ret: any;
(this._menus || []).forEach((cat: any) => {
if (ret) return;
ret = cat.list.find((i: any) => i.url === url);
ret = cat.list.find((i: { url: string }) => i.url.startsWith(url));
});
return ret;
}
Expand Down
2 changes: 1 addition & 1 deletion src/app/core/startup.service.ts
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ export class StartupService {
if (slowEl) {
slowEl.remove();
}
this.injector.get(TitleService).suffix = 'Ng Alain';
this.injector.get(TitleService).suffix = 'NG-ALAIN';
if (this.platform.isBrowser) {
setTimeout(() => this.lazyLoad(), 100);
}
Expand Down
2 changes: 1 addition & 1 deletion src/index.html
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@

<head>
<meta charset="utf-8">
<title>Ng Alain - 一个基于 Antd 中后台前端解决方案</title>
<title>NG-ALAIN - 一个基于 Antd 中后台前端解决方案</title>
<base href="/">
<meta name="viewport" content="width=device-width,initial-scale=1,user-scalable=0">
<link rel="preconnect" href="https://gw.alipayobjects.com" crossorigin="anonymous">
Expand Down

0 comments on commit 48c8432

Please sign in to comment.