-
Notifications
You must be signed in to change notification settings - Fork 15
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge branch 'master' into feature/pwa
- Loading branch information
Showing
87 changed files
with
3,715 additions
and
1,269 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -77,7 +77,7 @@ jobs: | |
token: ${{ secrets.GITHUB_TOKEN }} | ||
|
||
- name: build biocollect before running js unit test to compile dependent js templates | ||
uses: gradle/[email protected].0 | ||
uses: gradle/[email protected].2 | ||
with: | ||
arguments: _Events | ||
env: | ||
|
@@ -86,19 +86,19 @@ jobs: | |
- name: Run javascript unit tests | ||
run: node_modules/karma/bin/karma start karma.conf.js --single-run --browsers ChromeHeadless | ||
|
||
# - name: Run BioCollect functional tests | ||
# run: ./src/main/scripts/runFunctionalTests.sh chromeHeadless /tmp/ecodata feature/cognito | ||
# env: | ||
# GITHUB_ACTOR: ${{env.GITHUB_ACTOR}} | ||
# GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
- name: Run BioCollect functional tests | ||
run: ./src/main/scripts/runFunctionalTests.sh chromeHeadless /tmp/ecodata master | ||
env: | ||
GITHUB_ACTOR: ${{env.GITHUB_ACTOR}} | ||
GITHUB_TOKEN: ${{secrets.GITHUB_TOKEN}} | ||
|
||
- name: Clean to remove clover instrumentation | ||
uses: gradle/[email protected].0 | ||
uses: gradle/[email protected].2 | ||
with: | ||
arguments: clean | ||
|
||
- name: Publish the JAR to the repository | ||
uses: gradle/[email protected].0 | ||
uses: gradle/[email protected].2 | ||
with: | ||
arguments: publish | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,49 @@ | ||
/* | ||
* Copyright (C) 2019 Atlas of Living Australia | ||
* All Rights Reserved. | ||
* | ||
* The contents of this file are subject to the Mozilla Public | ||
* License Version 1.1 (the "License"); you may not use this file | ||
* except in compliance with the License. You may obtain a copy of | ||
* the License at http://www.mozilla.org/MPL/ | ||
* | ||
* Software distributed under the License is distributed on an "AS | ||
* IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or | ||
* implied. See the License for the specific language governing | ||
* rights and limitations under the License. | ||
* | ||
* Created by Temi on 15/11/19. | ||
*/ | ||
|
||
(function() { | ||
var messages = {}, | ||
deffer = $.Deferred(); | ||
$.get({ | ||
url: fcConfig.i18nURL, | ||
cache: true | ||
}).done(function (data) { | ||
messages = data; | ||
deffer.resolve(); | ||
}).fail(function () { | ||
deffer.reject(); | ||
}); | ||
|
||
$i18n = function(key, defaultValue) { | ||
if (messages[key] !== undefined) { | ||
return messages[key]; | ||
} else { | ||
return defaultValue || key; | ||
} | ||
}; | ||
|
||
$i18nAsync = function(key, defaultValue, callback) { | ||
if (callback) { | ||
deffer.done(function () { | ||
callback($i18n(key, defaultValue)); | ||
}).fail(function () { | ||
callback($i18n(key, defaultValue)); | ||
}) | ||
} | ||
} | ||
|
||
})(); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -53,7 +53,7 @@ | |
} | ||
|
||
.ui-front { | ||
z-index: 100; | ||
z-index: 2000; | ||
} | ||
|
||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -27,7 +27,7 @@ environments { | |
temp.dir = "/data/biocollect/temp" | ||
// system level config | ||
server.port = 8087 | ||
serverURL = "http://devt.ala.org.au:8087" | ||
serverURL = "http://localhost:8087" | ||
biocollect.system.email.replyTo = "biocollect-dev<no-reply>@ala.org.au" | ||
sender = "[email protected]" | ||
debugUI = true | ||
|
@@ -36,11 +36,10 @@ environments { | |
} | ||
|
||
test { | ||
spring.autoconfigure.exclude="au.org.ala.ws.security.AlaWsSecurityConfiguration" | ||
debugUI = false | ||
loggerLevel = "DEBUG" | ||
server.port = "8087" | ||
grails.host = "http://devt.ala.org.au" | ||
grails.host = "http://localhost" | ||
serverName = "${grails.host}:${server.port}" | ||
grails.serverURL = serverName | ||
server.serverURL = serverName | ||
|
@@ -51,8 +50,8 @@ environments { | |
grails.config.locations = [] | ||
security.oidc.discoveryUri = "http://localhost:${wiremock.port}/cas/oidc/.well-known" | ||
security.oidc.allowUnsignedIdTokens = true | ||
def casBaseUrl = "http://devt.ala.org.au:${wiremock.port}" | ||
|
||
def casBaseUrl = "http://localhost:${wiremock.port}" | ||
ehcache.directory = './ehcache' | ||
security.cas.appServerName=serverName | ||
security.cas.contextPath= | ||
security.cas.casServerName="${casBaseUrl}" | ||
|
@@ -61,17 +60,17 @@ environments { | |
security.cas.loginUrl="${security.cas.casServerUrlPrefix}/login" | ||
security.cas.casLoginUrl="${security.cas.casServerUrlPrefix}/login" | ||
security.cas.logoutUrl="${security.cas.casServerUrlPrefix}/logout" | ||
userDetails.api.url = "${casBaseUrl}/userdetails/userDetails/" | ||
security.jwt.discoveryUri="${casBaseUrl}/cas/oidc/.well-known" | ||
userDetails.url = "${casBaseUrl}/userdetails/userDetails/" | ||
userDetailsSingleUrl = "${userDetails.Url}getUserDetails" | ||
userDetailsUrl = "${userDetatails.url}getUserListFull" | ||
userDetailsSingleUrl = "${userDetails.url}getUserDetails" | ||
logging.dir = '.' | ||
upload.images.path = '/tmp' | ||
upload.images.url = grails.serverURL+'/image/' | ||
ecodata.baseUrl = 'http://devt.ala.org.au:8080/' | ||
ecodata.baseURL = 'http://devt.ala.org.au:8080' | ||
ecodata.service.url = 'http://devt.ala.org.au:8080/ws' | ||
pdfgen.baseURL = "http://devt.ala.org.au:${wiremock.port}/" | ||
ecodata.baseUrl = 'http://localhost:8080/' | ||
ecodata.baseURL = 'http://localhost:8080' | ||
ecodata.service.url = 'http://localhost:8080/ws' | ||
pdfgen.baseURL = "http://localhost:${wiremock.port}/" | ||
api_key='testapikey' | ||
grails.cache.config = { | ||
diskStore { | ||
|
Oops, something went wrong.