Add support for base url configuration
parent
deb4cf498a
commit
0f1e0d29f2
|
@ -46,12 +46,12 @@ In order to reduce the life-cycle to develop UI backend testing, you can do the
|
||||||
|
|
||||||
A quick and dirty solution to share changes in the UI is to manually compile the dist. This will make the loader file available without the need to publish:
|
A quick and dirty solution to share changes in the UI is to manually compile the dist. This will make the loader file available without the need to publish:
|
||||||
|
|
||||||
`yarn --cwd wisemapping-frontend build;cp -r wisemapping-frontend/packages/mindplot/dist/* wisemapping-open-source/wise-ui/target/wisemapping-mindplot/package/dist;cp -r wisemapping-frontend/packages/mindplot/dist/* wisemapping-open-source/wise-ui/target/wisemapping-mindplot/package/dist`
|
`yarn --cwd wisemapping-frontend build;cp -r wisemapping-frontend/packages/mindplot/dist/* wisemapping-open-source/wise-ui/target/wisemapping-mindplot/package/dist;cp -r wisemapping-frontend/packages/webapp/dist/* wisemapping-open-source/wise-ui/target/wisemapping-webapp/package/dist`
|
||||||
|
|
||||||
|
|
||||||
### Compiling and running with docker-compose
|
### Compiling and running with docker-compose
|
||||||
|
|
||||||
Check out the [docker section](./docker/README.
|
Check out the [docker section](./docker/README.)
|
||||||
|
|
||||||
## Members
|
## Members
|
||||||
|
|
||||||
|
@ -60,13 +60,10 @@ Check out the [docker section](./docker/README.
|
||||||
* Paulo Veiga <pveiga@wisemapping.com>
|
* Paulo Veiga <pveiga@wisemapping.com>
|
||||||
* Pablo Luna <pablo@wisemapping.com>
|
* Pablo Luna <pablo@wisemapping.com>
|
||||||
|
|
||||||
### Individual Contributors
|
|
||||||
|
|
||||||
* Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>
|
|
||||||
|
|
||||||
### Past Individual Contributors
|
### Past Individual Contributors
|
||||||
|
|
||||||
* Ignacio Manzano
|
* Ignacio Manzano
|
||||||
|
* Ezequiel Bergamaschi <ezequielbergamaschi@gmail.com>
|
||||||
|
|
||||||
## License
|
## License
|
||||||
|
|
||||||
|
|
|
@ -23,7 +23,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.serverconfig = {
|
window.serverconfig = {
|
||||||
apiBaseUrl: '',
|
apiBaseUrl: '${requestScope['site.baseurl']}',
|
||||||
analyticsAccount: '${requestScope['google.analytics.account']}',
|
analyticsAccount: '${requestScope['google.analytics.account']}',
|
||||||
clientType: 'rest',
|
clientType: 'rest',
|
||||||
recaptcha2Enabled: ${requestScope['google.recaptcha2.enabled']},
|
recaptcha2Enabled: ${requestScope['google.recaptcha2.enabled']},
|
||||||
|
|
|
@ -15,7 +15,6 @@
|
||||||
<script type="text/javascript">
|
<script type="text/javascript">
|
||||||
var mapId = '${mindmap.id}';
|
var mapId = '${mindmap.id}';
|
||||||
var historyId = '${hid}';
|
var historyId = '${hid}';
|
||||||
var readOnly = true;
|
|
||||||
var userOptions = ${mindmap.properties};
|
var userOptions = ${mindmap.properties};
|
||||||
var locale = '${locale}';
|
var locale = '${locale}';
|
||||||
var isAuth = ${principal != null};
|
var isAuth = ${principal != null};
|
||||||
|
|
|
@ -14,7 +14,7 @@
|
||||||
|
|
||||||
<script>
|
<script>
|
||||||
window.serverconfig = {
|
window.serverconfig = {
|
||||||
apiBaseUrl: '',
|
apiBaseUrl: '${requestScope['site.baseurl']}',
|
||||||
analyticsAccount: '${requestScope['google.analytics.account']}',
|
analyticsAccount: '${requestScope['google.analytics.account']}',
|
||||||
clientType: 'rest',
|
clientType: 'rest',
|
||||||
recaptcha2Enabled: ${requestScope['google.recaptcha2.enabled']},
|
recaptcha2Enabled: ${requestScope['google.recaptcha2.enabled']},
|
||||||
|
|
Loading…
Reference in New Issue