Skip to content

Commit f619026

Browse files
committed
Merge remote-tracking branch 'upstream/master'
2 parents e0d4516 + e0e9382 commit f619026

File tree

73 files changed

+13551
-14763
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

73 files changed

+13551
-14763
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,7 @@
1+
# Important
2+
3+
Issues of this repository are tracked on https://github.com/aspnetboilerplate/aspnetboilerplate. Please create your issues on https://github.com/aspnetboilerplate/aspnetboilerplate/issues.
4+
15
# Introduction
26

37
This is a template to create **ASP.NET Core MVC / Angular** based startup projects for [ASP.NET Boilerplate](https://aspnetboilerplate.com/Pages/Documents). It has 2 different versions:
@@ -30,4 +34,4 @@ Create & download your project from https://aspnetboilerplate.com/Templates
3034

3135
# License
3236

33-
[MIT](LICENSE).
37+
[MIT](LICENSE).

angular/src/account/login/login.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -71,7 +71,7 @@ export class LoginService {
7171
);
7272

7373
this._utilsService.setCookieValue(
74-
AppConsts.authorization.encrptedAuthTokenName,
74+
AppConsts.authorization.encryptedAuthTokenName,
7575
encryptedAccessToken,
7676
tokenExpireDate,
7777
abp.appPath

angular/src/shared/AppConsts.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,6 +15,6 @@ export class AppConsts {
1515
};
1616

1717
static readonly authorization = {
18-
encrptedAuthTokenName: 'enc_auth_token'
18+
encryptedAuthTokenName: 'enc_auth_token'
1919
};
2020
}

angular/src/shared/auth/app-auth.service.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@ export class AppAuthService {
66

77
logout(reload?: boolean): void {
88
abp.auth.clearToken();
9-
abp.utils.setCookieValue(AppConsts.authorization.encrptedAuthTokenName, undefined, undefined, abp.appPath);
9+
abp.utils.setCookieValue(AppConsts.authorization.encryptedAuthTokenName, undefined, undefined, abp.appPath);
1010
if (reload !== false) {
1111
location.href = AppConsts.appBaseUrl;
1212
}

angular/src/shared/helpers/SignalRAspNetCoreHelper.ts

Lines changed: 11 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -2,20 +2,26 @@ import { AppConsts } from '@shared/AppConsts';
22
import { UtilsService } from '@abp/utils/utils.service';
33

44
export class SignalRAspNetCoreHelper {
5-
static initSignalR(): void {
6-
7-
const encryptedAuthToken = new UtilsService().getCookieValue(AppConsts.authorization.encrptedAuthTokenName);
5+
static initSignalR(callback?: () => void): void {
6+
const encryptedAuthToken = new UtilsService().getCookieValue(AppConsts.authorization.encryptedAuthTokenName);
87

98
abp.signalr = {
109
autoConnect: true,
1110
connect: undefined,
1211
hubs: undefined,
13-
qs: AppConsts.authorization.encrptedAuthTokenName + '=' + encodeURIComponent(encryptedAuthToken),
12+
qs: AppConsts.authorization.encryptedAuthTokenName + '=' + encodeURIComponent(encryptedAuthToken),
1413
remoteServiceBaseUrl: AppConsts.remoteServiceBaseUrl,
1514
startConnection: undefined,
1615
url: '/signalr'
1716
};
1817

19-
jQuery.getScript(AppConsts.appBaseUrl + '/assets/abp/abp.signalr-client.js');
18+
const script = document.createElement('script');
19+
if (callback) {
20+
script.onload = () => {
21+
callback();
22+
};
23+
}
24+
script.src = AppConsts.appBaseUrl + '/assets/abp/abp.signalr-client.js';
25+
document.head.appendChild(script);
2026
}
2127
}

reactjs/config-overrides.js

Lines changed: 0 additions & 63 deletions
This file was deleted.

reactjs/craco.config.js

Lines changed: 54 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,54 @@
1+
const { when, whenDev, whenProd, whenCI, whenTest, ESLINT_MODES, POSTCSS_MODES } = require('@craco/craco');
2+
const CopyWebpackPlugin = require('copy-webpack-plugin');
3+
const CracoAntDesignPlugin = require('craco-antd');
4+
5+
module.exports = {
6+
plugins: [
7+
{
8+
plugin: CracoAntDesignPlugin,
9+
options: {
10+
customizeTheme: {
11+
'@primary-color': '#1DA57A',
12+
'@link-color': '#1DA57A',
13+
},
14+
},
15+
},
16+
],
17+
webpack: {
18+
alias: {},
19+
plugins: [],
20+
configure: (webpackConfig, { env, paths }) => {
21+
if (!webpackConfig.plugins) {
22+
config.plugins = [];
23+
}
24+
25+
webpackConfig.plugins.push(
26+
process.env.NODE_ENV === 'production'
27+
? new CopyWebpackPlugin([
28+
{
29+
from: 'node_modules/@aspnet/signalr/dist/browser/signalr.min.js',
30+
},
31+
{
32+
from: 'node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr-client.js',
33+
},
34+
{
35+
from: 'src/lib/abp.js',
36+
},
37+
])
38+
: new CopyWebpackPlugin([
39+
{
40+
from: 'node_modules/@aspnet/signalr/dist/browser/signalr.min.js',
41+
},
42+
{
43+
from: 'node_modules/abp-web-resources/Abp/Framework/scripts/libs/abp.signalr-client.js',
44+
},
45+
{
46+
from: 'src/lib/abp.js',
47+
},
48+
])
49+
);
50+
51+
return webpackConfig;
52+
},
53+
},
54+
};

reactjs/images.d.ts

Lines changed: 0 additions & 7 deletions
This file was deleted.

0 commit comments

Comments
 (0)