mirror of
https://github.com/Alfresco/alfresco-content-app.git
synced 2025-06-30 18:14:45 +00:00
parent
388f5b39f1
commit
6e2fc43dc3
@ -9,7 +9,7 @@ The Content App is based on [Angular CLI](https://cli.angular.io), and you can u
|
|||||||
|
|
||||||
## Cloning and running
|
## Cloning and running
|
||||||
|
|
||||||
Use the following commands to clone a copy of the project, install dependencies and run it.
|
Use the following commands to clone the project, install dependencies and run it.
|
||||||
|
|
||||||
```sh
|
```sh
|
||||||
git clone https://github.com/Alfresco/alfresco-content-app.git
|
git clone https://github.com/Alfresco/alfresco-content-app.git
|
||||||
@ -18,18 +18,18 @@ npm install
|
|||||||
npm start
|
npm start
|
||||||
```
|
```
|
||||||
|
|
||||||
The application run at port 3000 by default, and should automatically open in the default browser once project compilation finishes.
|
The application runs at port 3000 by default, and should automatically open in the default browser once project compilation finishes.
|
||||||
|
|
||||||
## Proxy settings
|
## Proxy settings
|
||||||
|
|
||||||
The Content App provides a proxy configuration for local development server
|
The Content App provides a proxy configuration for local development server
|
||||||
that allows you to address specific scenarios with CORS and native authentication dialogue.
|
that allows you to address specific scenarios with CORS and native authentication dialog.
|
||||||
|
|
||||||
You can find settings in the "proxy.conf.js" file in the project root directory.
|
You can find settings in the "proxy.conf.js" file in the project root directory.
|
||||||
|
|
||||||
<p class="warning">
|
<p class="warning">
|
||||||
The proxy settings get automatically applied every time you run the application with "npm start" script.
|
The proxy settings get automatically applied every time you run the application with "npm start" script.
|
||||||
You must restart the application every time you change the setting values.
|
You must restart the application every time you change the settings values.
|
||||||
</p>
|
</p>
|
||||||
|
|
||||||
## Running documentation locally
|
## Running documentation locally
|
||||||
|
@ -1,6 +1,6 @@
|
|||||||
# Application Configuration
|
# Application Configuration
|
||||||
|
|
||||||
The Content Application provides support for a global settings file `app.config.json` that you can use to customise the behaviour of ACA and ADF components.
|
The Content Application provides support for a global settings file `app.config.json` that you can use to customize the behavior of ACA and ADF components.
|
||||||
|
|
||||||
## Server settings
|
## Server settings
|
||||||
|
|
||||||
@ -29,7 +29,7 @@ Optionally it can also use the value of the original port if present, for exampl
|
|||||||
|
|
||||||
### Static address
|
### Static address
|
||||||
|
|
||||||
Alternatively, you can provide a static address for the ACS services if necessary:
|
Alternatively, you can provide a static address for the ACS server if necessary:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
{
|
{
|
||||||
@ -40,7 +40,7 @@ Alternatively, you can provide a static address for the ACS services if necessar
|
|||||||
|
|
||||||
## Application settings
|
## Application settings
|
||||||
|
|
||||||
The are many settings you can change to alter the default behaviour of the application.
|
The are many settings you can change to alter the default behavior of the application.
|
||||||
|
|
||||||
### Application Name
|
### Application Name
|
||||||
|
|
||||||
@ -104,7 +104,7 @@ You can change the default settings of the pagination that gets applied to all t
|
|||||||
|
|
||||||
## Your custom settings
|
## Your custom settings
|
||||||
|
|
||||||
You can store any information in the application configuration file, and access it at runtime by utilising the `AppConfigService` service provided by the ADF framework.
|
You can store any information in the application configuration file, and access it at runtime by using the `AppConfigService` service provided by ADF.
|
||||||
|
|
||||||
<p class="tip">
|
<p class="tip">
|
||||||
Please refer to the [AppConfigService](https://github.com/Alfresco/alfresco-ng2-components/blob/master/docs/app-config.service.md) documentation to get more details on Application Configuration features and API available.
|
Please refer to the [AppConfigService](https://github.com/Alfresco/alfresco-ng2-components/blob/master/docs/app-config.service.md) documentation to get more details on Application Configuration features and API available.
|
||||||
|
@ -2,7 +2,7 @@
|
|||||||
|
|
||||||
## Chrome Workaround
|
## Chrome Workaround
|
||||||
|
|
||||||
For the Chrome you can use the following plugin that allows you toggle CORS:
|
For the Chrome browser you can use the following plugin that allows you toggle CORS:
|
||||||
[Allow-Control-Allow-Origin](https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi)
|
[Allow-Control-Allow-Origin](https://chrome.google.com/webstore/detail/allow-control-allow-origi/nlfbmbojpeacfghkpbjhddihlkkiljbi)
|
||||||
|
|
||||||
## Firefox Workaround
|
## Firefox Workaround
|
||||||
|
@ -93,7 +93,7 @@ Your `/src/assets/i18n/<lang>.json` file can reflect the structure of one of the
|
|||||||
At runtime, the application-level strings have the highest priority.
|
At runtime, the application-level strings have the highest priority.
|
||||||
That means you can replace the value of any ADF resource string if needed.
|
That means you can replace the value of any ADF resource string if needed.
|
||||||
|
|
||||||
For example, let's change the title of the "Create Folder" dialogue shipped with the ADF.
|
For example, let's change the title of the "Create Folder" dialog shipped with the ADF.
|
||||||
Modify the `/src/assets/i18n/en.json` file and append the "CORE" section like in the example below:
|
Modify the `/src/assets/i18n/en.json` file and append the "CORE" section like in the example below:
|
||||||
|
|
||||||
```json
|
```json
|
||||||
@ -110,7 +110,7 @@ Modify the `/src/assets/i18n/en.json` file and append the "CORE" section like in
|
|||||||
```
|
```
|
||||||
|
|
||||||
Now, if you run the application and click the "New → Create Folder" menu,
|
Now, if you run the application and click the "New → Create Folder" menu,
|
||||||
the title of the dialogue should look similar to the following:
|
the title of the dialog should look similar to the following:
|
||||||
|
|
||||||

|

|
||||||
|
|
||||||
|
Loading…
x
Reference in New Issue
Block a user