Skip to content

Commit 82e9692

Browse files
committed
test
1 parent 280dc4a commit 82e9692

21 files changed

+16164
-0
lines changed

reactjs/.gitignore

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
# See https://help.github.com/ignore-files/ for more about ignoring files.
2+
3+
# dependencies
4+
/node_modules
5+
6+
# testing
7+
/coverage
8+
9+
# production
10+
/build
11+
12+
# misc
13+
.DS_Store
14+
.env.local
15+
.env.development.local
16+
.env.test.local
17+
.env.production.local
18+
19+
npm-debug.log*
20+
yarn-debug.log*
21+
yarn-error.log*

reactjs/README.md

Lines changed: 17 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,17 @@
1+
# ASP.NET Boilerplate ReactJS Template
2+
3+
The React.js integration for ABP Boilerplate framework. This template is built on React+Mobx+Typescript. SOLID, SoC principles are used.
4+
5+
# Architecture
6+
7+
This framework is designed by utilizing MVC design pattern and layered architecture as follows:
8+
9+
- All Backend communications are done by service layer.
10+
- For every Container Component there exists one Store and one Model.
11+
- Store has state of application so it consumes service See "Defining data stores". All service functions will be called in store not in Component. Component executes Store actions when state is needed.
12+
- Presentational Component can use store directly by injecting the store or Props from Container Component can be passed in it.
13+
- Container or Presentational Component can invoke store actions and automatic rendering of component will be done by Mobx.
14+
15+
InversifyJS IoC container is used to ensure dependency inversion. All of services has one interface and one implementation, so mocks can be used easily when writing tests.
16+
17+
![](_screenshots/architecture.jpg)

reactjs/_screenshots/architecture.jpg

25.5 KB
Loading

reactjs/config-overrides.js

Lines changed: 34 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,34 @@
1+
const tsImportPluginFactory = require('ts-import-plugin')
2+
const {
3+
getLoader
4+
} = require("react-app-rewired");
5+
const rewireLess = require('react-app-rewire-less');
6+
7+
module.exports = function override(config, env) {
8+
const tsLoader = getLoader(
9+
config.module.rules,
10+
rule =>
11+
rule.loader &&
12+
typeof rule.loader === 'string' &&
13+
rule.loader.includes('ts-loader')
14+
);
15+
16+
tsLoader.options = {
17+
getCustomTransformers: () => ({
18+
before: [tsImportPluginFactory({
19+
libraryDirectory: 'es',
20+
libraryName: 'antd',
21+
style: 'css',
22+
})]
23+
})
24+
};
25+
26+
config = rewireLess.withLoaderOptions({
27+
javascriptEnabled: true,
28+
modifyVars: {
29+
"@primary-color": "#1DA57A"
30+
},
31+
})(config, env);
32+
33+
return config;
34+
}

reactjs/images.d.ts

Lines changed: 7 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,7 @@
1+
declare module '*.svg'
2+
declare module '*.png'
3+
declare module '*.jpg'
4+
declare module '*.jpeg'
5+
declare module '*.gif'
6+
declare module '*.bmp'
7+
declare module '*.tiff'

0 commit comments

Comments
 (0)