Skip to content

Commit

Permalink
Merge branch 'dev' of github.com:EBISPOT/OLS into dev
Browse files Browse the repository at this point in the history
  • Loading branch information
jamesamcl committed Mar 14, 2022
2 parents 06d536f + c65b87a commit 7d7456f
Show file tree
Hide file tree
Showing 2 changed files with 27 additions and 25 deletions.
48 changes: 25 additions & 23 deletions ols-web/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -93,9 +93,9 @@
</dependency>

<dependency>
<groupId>com.github.warmuuh</groupId>
<artifactId>libsass-maven-plugin</artifactId>
<version>0.2.10-libsass_3.5.3</version>
<groupId>nl.geodienstencentrum.maven</groupId>
<artifactId>sass-maven-plugin</artifactId>
<version>3.7.2</version>
</dependency>

</dependencies>
Expand Down Expand Up @@ -156,26 +156,28 @@
</attributes>
</configuration>
</plugin>
<plugin>
<groupId>com.github.warmuuh</groupId>
<artifactId>libsass-maven-plugin</artifactId>
<version>0.2.10-libsass_3.5.3</version>
<executions>
<execution>
<phase>generate-resources</phase>
<goals>
<goal>compile</goal>
</goals>
</execution>
</executions>
<configuration>
<inputPath>${project.basedir}/src/main/resources/scss/</inputPath>
<!--outputPath>${project.basedir}/target/</outputPath-->
<outputPath>${project.basedir}/src/main/resources/static/css/</outputPath>
<!--includePath>${project.basedir}/src/main/sass/plugins/</includePath-->
<sourceMapOutputPath>${project.basedir}/src/main/resources/static/css/</sourceMapOutputPath>
</configuration>
</plugin>
<plugin>
<groupId>nl.geodienstencentrum.maven</groupId>
<artifactId>sass-maven-plugin</artifactId>
<version>3.7.2</version>
<executions>
<execution>
<id>generate-css</id>
<phase>generate-resources</phase>
<goals>
<goal>update-stylesheets</goal>
</goals>
<configuration>
<sassOptions>
<always_update>true</always_update>
</sassOptions>
<sassSourceDirectory>${project.basedir}/src/main/resources/scss</sassSourceDirectory>
<destination>${project.basedir}/src/main/resources/static/css</destination>
</configuration>
</execution>
</executions>
</plugin>

</plugins>
</build>
</project>
4 changes: 2 additions & 2 deletions ols-web/src/main/resources/static/js/ols.js
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ function goTo (url) {

$(function() {
$('p.annotation-value').each(function(i, el) {
$(el).html($(el).html().replace(/((http|https|ftp):\/\/[^\s,]+)/g, function(url) {
$(el).html($(el).html().replace(/((http|https|ftp):\/\/[^\s,\[\]]+)/g, function(url) {
console.log("Replacing URL with link: " + url);
return "<a href=\"$1\">" + escapeHtml(url) + "</a>";
}))
Expand Down Expand Up @@ -100,4 +100,4 @@ function escapeHtml(unsafe)
.replace(/>/g, "&gt;")
.replace(/"/g, "&quot;")
.replace(/'/g, "&#039;");
}
}

0 comments on commit 7d7456f

Please sign in to comment.