Skip to content

Commit

Permalink
Refactoring
Browse files Browse the repository at this point in the history
  • Loading branch information
Ben Fortuna committed Jul 27, 2019
1 parent c90f22d commit dc6051b
Show file tree
Hide file tree
Showing 30 changed files with 137 additions and 281 deletions.
6 changes: 0 additions & 6 deletions feedhabit-app/build.gradle

This file was deleted.

5 changes: 0 additions & 5 deletions feedhabit-config/build.gradle

This file was deleted.

6 changes: 0 additions & 6 deletions feedhabit-content/build.gradle

This file was deleted.

4 changes: 0 additions & 4 deletions gradle.properties

This file was deleted.

Binary file removed gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
6 changes: 0 additions & 6 deletions gradle/wrapper/gradle-wrapper.properties

This file was deleted.

160 changes: 0 additions & 160 deletions gradlew

This file was deleted.

90 changes: 0 additions & 90 deletions gradlew.bat

This file was deleted.

4 changes: 0 additions & 4 deletions settings.gradle

This file was deleted.

File renamed without changes.
13 changes: 13 additions & 0 deletions src/app/block/category-list/html.groovy
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
import groovy.json.JsonParser

try {
def categoriesUrl = currentNode.getProperty('uri').string.toURL().text
def limit = request.requestPathInfo.suffix ? request.requestPathInfo.suffix.substring(1) as int : Integer.MAX_VALUE;

def categories = JsonParser.parseText(categoriesUrl)
categories.list().take(limit).each {
out.write("<li><a href=\"$it.link\" title=\"${it.description.text().replaceAll('"', '&quot;')}\" data-html=\"true\" rel=\"tooltip\">$it.title</a></li>")
}
} catch (ex) {
ex.printStackTrace()
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
File renamed without changes.
18 changes: 18 additions & 0 deletions src/content/feeds.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,18 @@
{
"title": "Feeds - FeedHabit.com",
"sling:resourceType": "feedhabit/page/list",
"jcr:primaryType": "nt:unstructured",
"list": {
"sling:resourceType": "feedhabit/block/feed-list",
"abc-shepparton": {
"sling:resourceType":"/libs/wp-rss/block/list",
"feedUrl": "http://www.abc.net.au/local/topics/shepparton/community-and-society/rss.xml",
"htmlUrl": "http://www.abc.net.au/shepparton"
},
"slashdot-org": {
"sling:resourceType":"/libs/wp-rss/block/list",
"feedUrl": "http://rss.slashdot.org/Slashdot/slashdotMain",
"htmlUrl": "http://slashdot.org"
}
}
}
File renamed without changes.
File renamed without changes.
File renamed without changes.
Loading

0 comments on commit dc6051b

Please sign in to comment.