removed wicket and tomee, use dropwizard instead. remove wro4j, use gulp instead
17
.gitignore
vendored
@@ -1,19 +1,18 @@
|
||||
#runtime files
|
||||
commafeed.log
|
||||
derby.log
|
||||
data/
|
||||
java_pid*
|
||||
|
||||
# Maven build directory
|
||||
# build directory
|
||||
target
|
||||
deployments/ROOT.war
|
||||
|
||||
# node
|
||||
node
|
||||
node_modules
|
||||
|
||||
# bower
|
||||
src/main/app/lib
|
||||
|
||||
# Eclipse files
|
||||
.project
|
||||
.classpath
|
||||
.settings
|
||||
.factorypath
|
||||
/target
|
||||
|
||||
# IntelliJ Idea files
|
||||
.idea
|
||||
|
||||
@@ -1,3 +0,0 @@
|
||||
For information about which action hooks are supported, consult the OpenShift documentation:
|
||||
|
||||
https://github.com/openshift/origin-server/blob/master/node/README.writing_applications.md
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
# This is a simple build script and will be executed on your CI system if
|
||||
# available. Otherwise it will execute while your application is stopped
|
||||
# before the deploy step. This script gets executed directly, so it
|
||||
# could be python, php, ruby, etc.
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
# This deploy hook gets executed after dependencies are resolved and the
|
||||
# build hook has been run but before the application has been started back
|
||||
# up again. This script gets executed directly, so it could be python, php,
|
||||
# ruby, etc.
|
||||
@@ -1,4 +0,0 @@
|
||||
#!/bin/bash
|
||||
# This is a simple post deploy hook executed after your application
|
||||
# is deployed and started. This script gets executed directly, so
|
||||
# it could be python, php, ruby, etc.
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The pre_start_cartridge and pre_stop_cartridge hooks are *SOURCED*
|
||||
# immediately before (re)starting or stopping the specified cartridge.
|
||||
# They are able to make any desired environment variable changes as
|
||||
# well as other adjustments to the application environment.
|
||||
|
||||
# The post_start_cartridge and post_stop_cartridge hooks are executed
|
||||
# immediately after (re)starting or stopping the specified cartridge.
|
||||
|
||||
# Exercise caution when adding commands to these hooks. They can
|
||||
# prevent your application from stopping cleanly or starting at all.
|
||||
# Application start and stop is subject to different timeouts
|
||||
# throughout the system.
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The pre_start_cartridge and pre_stop_cartridge hooks are *SOURCED*
|
||||
# immediately before (re)starting or stopping the specified cartridge.
|
||||
# They are able to make any desired environment variable changes as
|
||||
# well as other adjustments to the application environment.
|
||||
|
||||
# The post_start_cartridge and post_stop_cartridge hooks are executed
|
||||
# immediately after (re)starting or stopping the specified cartridge.
|
||||
|
||||
# Exercise caution when adding commands to these hooks. They can
|
||||
# prevent your application from stopping cleanly or starting at all.
|
||||
# Application start and stop is subject to different timeouts
|
||||
# throughout the system.
|
||||
@@ -1,5 +0,0 @@
|
||||
#!/bin/bash
|
||||
# This is a simple script and will be executed on your CI system if
|
||||
# available. Otherwise it will execute while your application is stopped
|
||||
# before the build step. This script gets executed directly, so it
|
||||
# could be python, php, ruby, etc.
|
||||
@@ -1,7 +0,0 @@
|
||||
#!/bin/bash
|
||||
# This is a simple bash script and will be sourced prior to building
|
||||
# your application. This script can be used to modify the Maven build
|
||||
# arguments for non-CI/Jenkins builds by exporting MAVEN_ARGS. The default
|
||||
# is "clean package -Popenshift -DskipTests"
|
||||
export MAVEN_ARGS="clean package -Popenshift -Pprod -DskipTests=true"
|
||||
export MAVEN_OPTS="-Xmx512m -XX:MaxPermSize=128m -Dmaven.artifact.threads=20"
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The pre_start_cartridge and pre_stop_cartridge hooks are *SOURCED*
|
||||
# immediately before (re)starting or stopping the specified cartridge.
|
||||
# They are able to make any desired environment variable changes as
|
||||
# well as other adjustments to the application environment.
|
||||
|
||||
# The post_start_cartridge and post_stop_cartridge hooks are executed
|
||||
# immediately after (re)starting or stopping the specified cartridge.
|
||||
|
||||
# Exercise caution when adding commands to these hooks. They can
|
||||
# prevent your application from stopping cleanly or starting at all.
|
||||
# Application start and stop is subject to different timeouts
|
||||
# throughout the system.
|
||||
@@ -1,14 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
# The pre_start_cartridge and pre_stop_cartridge hooks are *SOURCED*
|
||||
# immediately before (re)starting or stopping the specified cartridge.
|
||||
# They are able to make any desired environment variable changes as
|
||||
# well as other adjustments to the application environment.
|
||||
|
||||
# The post_start_cartridge and post_stop_cartridge hooks are executed
|
||||
# immediately after (re)starting or stopping the specified cartridge.
|
||||
|
||||
# Exercise caution when adding commands to these hooks. They can
|
||||
# prevent your application from stopping cleanly or starting at all.
|
||||
# Application start and stop is subject to different timeouts
|
||||
# throughout the system.
|
||||
@@ -1,3 +0,0 @@
|
||||
Place your jboss-as7 modules in this directory. This directory is added to the
|
||||
module path of the jboss-as7 server associated with your application. It has the
|
||||
same structure as the jboss-as7/modules directory.
|
||||
@@ -1,517 +0,0 @@
|
||||
<?xml version='1.0' encoding='UTF-8'?>
|
||||
|
||||
<server xmlns="urn:jboss:domain:1.3">
|
||||
|
||||
<extensions>
|
||||
<extension module="org.jboss.as.clustering.infinispan" />
|
||||
<extension module="org.jboss.as.clustering.jgroups" />
|
||||
<extension module="org.jboss.as.cmp" />
|
||||
<extension module="org.jboss.as.configadmin" />
|
||||
<extension module="org.jboss.as.connector" />
|
||||
<extension module="org.jboss.as.deployment-scanner" />
|
||||
<extension module="org.jboss.as.ee" />
|
||||
<extension module="org.jboss.as.ejb3" />
|
||||
<extension module="org.jboss.as.jacorb" />
|
||||
<extension module="org.jboss.as.jaxr" />
|
||||
<extension module="org.jboss.as.jaxrs" />
|
||||
<extension module="org.jboss.as.jdr" />
|
||||
<extension module="org.jboss.as.jmx" />
|
||||
<extension module="org.jboss.as.jpa" />
|
||||
<extension module="org.jboss.as.jsr77" />
|
||||
<extension module="org.jboss.as.logging" />
|
||||
<extension module="org.jboss.as.mail" />
|
||||
<extension module="org.jboss.as.messaging" />
|
||||
<extension module="org.jboss.as.naming" />
|
||||
<extension module="org.jboss.as.osgi" />
|
||||
<extension module="org.jboss.as.pojo" />
|
||||
<extension module="org.jboss.as.remoting" />
|
||||
<extension module="org.jboss.as.sar" />
|
||||
<extension module="org.jboss.as.security" />
|
||||
<extension module="org.jboss.as.threads" />
|
||||
<extension module="org.jboss.as.transactions" />
|
||||
<extension module="org.jboss.as.web" />
|
||||
<extension module="org.jboss.as.webservices" />
|
||||
<extension module="org.jboss.as.weld" />
|
||||
</extensions>
|
||||
|
||||
<system-properties>
|
||||
<property name="org.apache.coyote.http11.Http11Protocol.COMPRESSION" value="on"/>
|
||||
</system-properties>
|
||||
|
||||
<management>
|
||||
<management-interfaces>
|
||||
<native-interface>
|
||||
<socket-binding native="management-native"/>
|
||||
</native-interface>
|
||||
<http-interface>
|
||||
<socket-binding http="management-http"/>
|
||||
</http-interface>
|
||||
</management-interfaces>
|
||||
</management>
|
||||
|
||||
<profile>
|
||||
<subsystem xmlns="urn:jboss:domain:logging:1.1">
|
||||
<!--console-handler name="CONSOLE"> <level name="INFO"/> <formatter> <pattern-formatter
|
||||
pattern="%d{HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n"/> </formatter> </console-handler -->
|
||||
<periodic-rotating-file-handler name="FILE">
|
||||
<formatter>
|
||||
<pattern-formatter
|
||||
pattern="%d{yyyy/MM/dd HH:mm:ss,SSS} %-5p [%c] (%t) %s%E%n" />
|
||||
</formatter>
|
||||
<file relative-to="jboss.server.log.dir" path="server.log" />
|
||||
<suffix value=".yyyy-MM-dd" />
|
||||
<append value="true" />
|
||||
</periodic-rotating-file-handler>
|
||||
<logger category="com.arjuna">
|
||||
<level name="WARN" />
|
||||
</logger>
|
||||
<logger category="org.apache.tomcat.util.modeler">
|
||||
<level name="WARN" />
|
||||
</logger>
|
||||
<logger category="sun.rmi">
|
||||
<level name="WARN" />
|
||||
</logger>
|
||||
<logger category="jacorb">
|
||||
<level name="WARN" />
|
||||
</logger>
|
||||
<logger category="jacorb.config">
|
||||
<level name="ERROR" />
|
||||
</logger>
|
||||
<root-logger>
|
||||
<level name="INFO" />
|
||||
<handlers>
|
||||
<!--handler name="CONSOLE"/ -->
|
||||
<handler name="FILE" />
|
||||
</handlers>
|
||||
</root-logger>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:cmp:1.0" />
|
||||
<subsystem xmlns="urn:jboss:domain:configadmin:1.0" />
|
||||
<subsystem xmlns="urn:jboss:domain:datasources:1.1">
|
||||
<datasources>
|
||||
<datasource jndi-name="java:jboss/datasources/MysqlDS"
|
||||
enabled="${mysql.enabled}" use-java-context="true" pool-name="MysqlDS">
|
||||
<connection-url>jdbc:mysql://${env.OPENSHIFT_MYSQL_DB_HOST}:${env.OPENSHIFT_MYSQL_DB_PORT}/${env.OPENSHIFT_APP_NAME}?useUnicode=true&characterEncoding=UTF-8
|
||||
</connection-url>
|
||||
<driver>mysql</driver>
|
||||
<security>
|
||||
<user-name>${env.OPENSHIFT_MYSQL_DB_USERNAME}</user-name>
|
||||
<password>${env.OPENSHIFT_MYSQL_DB_PASSWORD}</password>
|
||||
</security>
|
||||
</datasource>
|
||||
<drivers>
|
||||
<driver name="mysql" module="com.mysql.jdbc">
|
||||
<xa-datasource-class>com.mysql.jdbc.jdbc2.optional.MysqlXADataSource</xa-datasource-class>
|
||||
</driver>
|
||||
</drivers>
|
||||
</datasources>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:deployment-scanner:1.1">
|
||||
<deployment-scanner path="deployments"
|
||||
relative-to="jboss.server.base.dir" scan-interval="5000"
|
||||
deployment-timeout="300" />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:ee:1.1">
|
||||
<spec-descriptor-property-replacement>false
|
||||
</spec-descriptor-property-replacement>
|
||||
<jboss-descriptor-property-replacement>true
|
||||
</jboss-descriptor-property-replacement>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:ejb3:1.3">
|
||||
<session-bean>
|
||||
<stateless>
|
||||
<bean-instance-pool-ref pool-name="slsb-strict-max-pool" />
|
||||
</stateless>
|
||||
<stateful default-access-timeout="5000" cache-ref="simple"
|
||||
clustered-cache-ref="clustered" />
|
||||
<singleton default-access-timeout="5000" />
|
||||
</session-bean>
|
||||
<mdb>
|
||||
<resource-adapter-ref resource-adapter-name="hornetq-ra" />
|
||||
<bean-instance-pool-ref pool-name="mdb-strict-max-pool" />
|
||||
</mdb>
|
||||
<pools>
|
||||
<bean-instance-pools>
|
||||
<strict-max-pool name="slsb-strict-max-pool"
|
||||
max-pool-size="20" instance-acquisition-timeout="5"
|
||||
instance-acquisition-timeout-unit="MINUTES" />
|
||||
<strict-max-pool name="mdb-strict-max-pool"
|
||||
max-pool-size="20" instance-acquisition-timeout="5"
|
||||
instance-acquisition-timeout-unit="MINUTES" />
|
||||
</bean-instance-pools>
|
||||
</pools>
|
||||
<caches>
|
||||
<cache name="simple" aliases="NoPassivationCache" />
|
||||
<cache name="passivating" passivation-store-ref="file"
|
||||
aliases="SimpleStatefulCache" />
|
||||
<cache name="clustered" passivation-store-ref="infinispan"
|
||||
aliases="StatefulTreeCache" />
|
||||
</caches>
|
||||
<passivation-stores>
|
||||
<file-passivation-store name="file" />
|
||||
<cluster-passivation-store name="infinispan"
|
||||
cache-container="ejb" />
|
||||
</passivation-stores>
|
||||
<async thread-pool-name="default" />
|
||||
<timer-service thread-pool-name="default">
|
||||
<data-store path="timer-service-data" relative-to="jboss.server.data.dir" />
|
||||
</timer-service>
|
||||
<remote connector-ref="remoting-connector" thread-pool-name="default" />
|
||||
<thread-pools>
|
||||
<thread-pool name="default">
|
||||
<max-threads count="10" />
|
||||
<keepalive-time time="100" unit="milliseconds" />
|
||||
</thread-pool>
|
||||
</thread-pools>
|
||||
<iiop enable-by-default="false" use-qualified-name="false" />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:infinispan:1.3">
|
||||
<cache-container name="cluster" aliases="ha-partition"
|
||||
default-cache="default">
|
||||
<transport lock-timeout="60000" />
|
||||
<replicated-cache name="default" mode="SYNC"
|
||||
batching="true">
|
||||
<locking isolation="REPEATABLE_READ" />
|
||||
</replicated-cache>
|
||||
</cache-container>
|
||||
<cache-container name="web" aliases="standard-session-cache"
|
||||
default-cache="repl">
|
||||
<transport lock-timeout="60000" />
|
||||
<replicated-cache name="repl" mode="ASYNC"
|
||||
batching="true">
|
||||
<file-store />
|
||||
</replicated-cache>
|
||||
<replicated-cache name="sso" mode="SYNC" batching="true" />
|
||||
<distributed-cache name="dist" mode="ASYNC"
|
||||
batching="true" l1-lifespan="0">
|
||||
<file-store />
|
||||
</distributed-cache>
|
||||
</cache-container>
|
||||
<cache-container name="ejb" aliases="sfsb sfsb-cache"
|
||||
default-cache="repl">
|
||||
<transport lock-timeout="60000" />
|
||||
<replicated-cache name="repl" mode="ASYNC"
|
||||
batching="true">
|
||||
<eviction strategy="LRU" max-entries="10000" />
|
||||
<file-store />
|
||||
</replicated-cache>
|
||||
<!-- ~ Clustered cache used internally by EJB subsytem for managing the
|
||||
client-mapping(s) of ~ the socketbinding referenced by the EJB remoting connector -->
|
||||
<replicated-cache name="remote-connector-client-mappings"
|
||||
mode="SYNC" batching="true" />
|
||||
<distributed-cache name="dist" mode="ASYNC"
|
||||
batching="true" l1-lifespan="0">
|
||||
<eviction strategy="LRU" max-entries="10000" />
|
||||
<file-store />
|
||||
</distributed-cache>
|
||||
</cache-container>
|
||||
<cache-container name="hibernate" default-cache="local-query"
|
||||
module="org.jboss.as.jpa.hibernate:4">
|
||||
<transport lock-timeout="60000" />
|
||||
<local-cache name="local-query">
|
||||
<transaction mode="NONE" />
|
||||
<eviction strategy="LRU" max-entries="10000" />
|
||||
<expiration max-idle="100000" />
|
||||
</local-cache>
|
||||
<invalidation-cache name="entity" mode="SYNC">
|
||||
<transaction mode="NON_XA" />
|
||||
<eviction strategy="LRU" max-entries="10000" />
|
||||
<expiration max-idle="100000" />
|
||||
</invalidation-cache>
|
||||
<replicated-cache name="timestamps" mode="ASYNC">
|
||||
<transaction mode="NONE" />
|
||||
<eviction strategy="NONE" />
|
||||
</replicated-cache>
|
||||
</cache-container>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:jacorb:1.2">
|
||||
<orb>
|
||||
<initializers transactions="spec" security="on" />
|
||||
</orb>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:jaxr:1.1">
|
||||
<connection-factory jndi-name="java:jboss/jaxr/ConnectionFactory" />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:jaxrs:1.0" />
|
||||
<subsystem xmlns="urn:jboss:domain:jca:1.1">
|
||||
<archive-validation enabled="true" fail-on-error="true" fail-on-warn="false"/>
|
||||
<bean-validation enabled="true"/>
|
||||
<default-workmanager>
|
||||
<short-running-threads>
|
||||
<core-threads count="50" />
|
||||
<queue-length count="50" />
|
||||
<max-threads count="50" />
|
||||
<keepalive-time time="10" unit="seconds" />
|
||||
</short-running-threads>
|
||||
<long-running-threads>
|
||||
<core-threads count="50" />
|
||||
<queue-length count="50" />
|
||||
<max-threads count="50" />
|
||||
<keepalive-time time="10" unit="seconds" />
|
||||
</long-running-threads>
|
||||
</default-workmanager>
|
||||
<cached-connection-manager />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:jdr:1.0" />
|
||||
<subsystem xmlns="urn:jboss:domain:jgroups:1.1"
|
||||
default-stack="tcp">
|
||||
<stack name="tcp">
|
||||
<transport type="TCP" socket-binding="jgroups-tcp">
|
||||
<property name="external_addr">${env.OPENSHIFT_GEAR_DNS}</property>
|
||||
<property name="external_port">${env.OPENSHIFT_JBOSSEAP_CLUSTER_PROXY_PORT}
|
||||
</property>
|
||||
<property name="bind_port">7600</property>
|
||||
<property name="bind_addr">${env.OPENSHIFT_JBOSSEAP_IP}</property>
|
||||
</transport>
|
||||
<protocol type="TCPPING">
|
||||
<property name="timeout">3000</property>
|
||||
<property name="initial_hosts">${env.OPENSHIFT_JBOSSEAP_CLUSTER}</property>
|
||||
<property name="port_range">0</property>
|
||||
<property name="num_initial_members">1</property>
|
||||
</protocol>
|
||||
<protocol type="MERGE2" />
|
||||
<protocol type="FD" />
|
||||
<protocol type="VERIFY_SUSPECT" />
|
||||
<protocol type="BARRIER" />
|
||||
<protocol type="pbcast.NAKACK" />
|
||||
<protocol type="UNICAST2" />
|
||||
<protocol type="pbcast.STABLE" />
|
||||
<protocol type="AUTH">
|
||||
<property name="auth_class">org.jgroups.auth.MD5Token</property>
|
||||
<property name="token_hash">SHA</property>
|
||||
<property name="auth_value">${env.OPENSHIFT_APP_UUID}</property>
|
||||
</protocol>
|
||||
<protocol type="pbcast.GMS" />
|
||||
<protocol type="UFC" />
|
||||
<protocol type="MFC" />
|
||||
<protocol type="FRAG2" />
|
||||
<!--protocol type="pbcast.STATE_TRANSFER"/> <protocol type="pbcast.FLUSH"/ -->
|
||||
</stack>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:jmx:1.1">
|
||||
<show-model value="true" />
|
||||
<remoting-connector />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:jpa:1.0">
|
||||
<jpa default-datasource="" />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:jsr77:1.0" />
|
||||
<subsystem xmlns="urn:jboss:domain:mail:1.0">
|
||||
<mail-session jndi-name="java:jboss/mail/Default">
|
||||
<smtp-server outbound-socket-binding-ref="mail-smtp" />
|
||||
</mail-session>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:messaging:1.2">
|
||||
<hornetq-server>
|
||||
<clustered>false</clustered>
|
||||
<persistence-enabled>false</persistence-enabled>
|
||||
<security-enabled>false</security-enabled>
|
||||
<journal-file-size>102400</journal-file-size>
|
||||
<journal-min-files>2</journal-min-files>
|
||||
|
||||
<thread-pool-max-size>${messaging.thread.pool.max.size}</thread-pool-max-size>
|
||||
<scheduled-thread-pool-max-size>${messaging.scheduled.thread.pool.max.size}</scheduled-thread-pool-max-size>
|
||||
|
||||
<connectors>
|
||||
<netty-connector name="netty" socket-binding="messaging" />
|
||||
<netty-connector name="netty-throughput"
|
||||
socket-binding="messaging-throughput">
|
||||
<param key="batch-delay" value="50" />
|
||||
</netty-connector>
|
||||
<in-vm-connector name="in-vm" server-id="0" />
|
||||
</connectors>
|
||||
<acceptors>
|
||||
<netty-acceptor name="netty" socket-binding="messaging" />
|
||||
<netty-acceptor name="netty-throughput"
|
||||
socket-binding="messaging-throughput">
|
||||
<param key="batch-delay" value="50" />
|
||||
<param key="direct-deliver" value="false" />
|
||||
</netty-acceptor>
|
||||
<in-vm-acceptor name="in-vm" server-id="0" />
|
||||
</acceptors>
|
||||
<!--broadcast-groups> <broadcast-group name="bg-group1"> <socket-binding>messaging-group</socket-binding>
|
||||
<broadcast-period>5000</broadcast-period> <connector-ref>netty</connector-ref>
|
||||
</broadcast-group> </broadcast-groups> <discovery-groups> <discovery-group
|
||||
name="dg-group1"> <socket-binding>messaging-group</socket-binding> <refresh-timeout>10000</refresh-timeout>
|
||||
</discovery-group> </discovery-groups> <cluster-connections> <cluster-connection
|
||||
name="my-cluster"> <address>jms</address> <connector-ref>netty</connector-ref>
|
||||
<discovery-group-ref discovery-group-name="dg-group1"/> </cluster-connection>
|
||||
</cluster-connections -->
|
||||
<address-settings>
|
||||
<!--default for catch all -->
|
||||
<address-setting match="#">
|
||||
<dead-letter-address>jms.queue.DLQ</dead-letter-address>
|
||||
<expiry-address>jms.queue.ExpiryQueue</expiry-address>
|
||||
<redelivery-delay>0</redelivery-delay>
|
||||
<redistribution-delay>1000</redistribution-delay>
|
||||
<max-size-bytes>10485760</max-size-bytes>
|
||||
<address-full-policy>BLOCK</address-full-policy>
|
||||
<message-counter-history-day-limit>10
|
||||
</message-counter-history-day-limit>
|
||||
</address-setting>
|
||||
</address-settings>
|
||||
<jms-connection-factories>
|
||||
<connection-factory name="InVmConnectionFactory">
|
||||
<connectors>
|
||||
<connector-ref connector-name="in-vm" />
|
||||
</connectors>
|
||||
<entries>
|
||||
<entry name="java:/ConnectionFactory" />
|
||||
</entries>
|
||||
</connection-factory>
|
||||
<!--
|
||||
<connection-factory name="RemoteConnectionFactory">
|
||||
<connectors>
|
||||
<connector-ref connector-name="netty" />
|
||||
</connectors>
|
||||
<entries>
|
||||
<entry name="java:jboss/exported/jms/RemoteConnectionFactory" />
|
||||
</entries>
|
||||
</connection-factory>
|
||||
-->
|
||||
<pooled-connection-factory name="hornetq-ra">
|
||||
<transaction mode="xa" />
|
||||
<connectors>
|
||||
<connector-ref connector-name="in-vm" />
|
||||
</connectors>
|
||||
<entries>
|
||||
<entry name="java:/JmsXA" />
|
||||
</entries>
|
||||
</pooled-connection-factory>
|
||||
</jms-connection-factories>
|
||||
<jms-destinations>
|
||||
<jms-queue name="refreshQueue">
|
||||
<entry name="jms/refreshQueue"/>
|
||||
<entry name="java:jboss/exported/jms/refreshQueue"/>
|
||||
</jms-queue>
|
||||
</jms-destinations>
|
||||
</hornetq-server>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:naming:1.2">
|
||||
<remote-naming />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:osgi:1.2" activation="lazy">
|
||||
<properties>
|
||||
<!-- Specifies the beginning start level of the framework -->
|
||||
<property name="org.osgi.framework.startlevel.beginning">1</property>
|
||||
</properties>
|
||||
<capabilities>
|
||||
<!-- modules registered with the OSGi layer on startup -->
|
||||
<capability name="javax.servlet.api:v25" />
|
||||
<capability name="javax.transaction.api" />
|
||||
<!-- bundles started in startlevel 1 -->
|
||||
<capability name="org.apache.felix.log" startlevel="1" />
|
||||
<capability name="org.jboss.osgi.logging" startlevel="1" />
|
||||
<capability name="org.apache.felix.configadmin"
|
||||
startlevel="1" />
|
||||
<capability name="org.jboss.as.osgi.configadmin"
|
||||
startlevel="1" />
|
||||
</capabilities>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:pojo:1.0" />
|
||||
<subsystem xmlns="urn:jboss:domain:remoting:1.1">
|
||||
<connector name="remoting-connector" socket-binding="remoting" />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:resource-adapters:1.0" />
|
||||
<subsystem xmlns="urn:jboss:domain:sar:1.0" />
|
||||
<subsystem xmlns="urn:jboss:domain:security:1.2">
|
||||
<security-domains>
|
||||
<security-domain name="other" cache-type="default">
|
||||
<authentication>
|
||||
<login-module code="Remoting" flag="optional">
|
||||
<module-option name="password-stacking" value="useFirstPass"/>
|
||||
</login-module>
|
||||
<login-module code="RealmDirect" flag="required">
|
||||
<module-option name="password-stacking" value="useFirstPass"/>
|
||||
</login-module>
|
||||
</authentication>
|
||||
</security-domain>
|
||||
<security-domain name="jboss-web-policy" cache-type="default">
|
||||
<authorization>
|
||||
<policy-module code="Delegating" flag="required"/>
|
||||
</authorization>
|
||||
</security-domain>
|
||||
<security-domain name="jboss-ejb-policy" cache-type="default">
|
||||
<authorization>
|
||||
<policy-module code="Delegating" flag="required"/>
|
||||
</authorization>
|
||||
</security-domain>
|
||||
</security-domains>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:threads:1.1" />
|
||||
<subsystem xmlns="urn:jboss:domain:transactions:1.2">
|
||||
<core-environment>
|
||||
<process-id>
|
||||
<uuid />
|
||||
</process-id>
|
||||
</core-environment>
|
||||
<recovery-environment socket-binding="txn-recovery-environment"
|
||||
status-socket-binding="txn-status-manager" />
|
||||
<coordinator-environment default-timeout="300" />
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:web:1.1"
|
||||
default-virtual-server="default-host" native="false">
|
||||
<connector name="http" protocol="HTTP/1.1" scheme="http"
|
||||
socket-binding="http" />
|
||||
<virtual-server name="default-host"
|
||||
enable-welcome-root="false">
|
||||
<alias name="localhost" />
|
||||
</virtual-server>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:webservices:1.1">
|
||||
<modify-wsdl-address>true</modify-wsdl-address>
|
||||
<wsdl-host>${env.OPENSHIFT_GEAR_DNS}</wsdl-host>
|
||||
<wsdl-port>80</wsdl-port>
|
||||
<endpoint-config name="Standard-Endpoint-Config" />
|
||||
<endpoint-config name="Recording-Endpoint-Config">
|
||||
<pre-handler-chain name="recording-handlers"
|
||||
protocol-bindings="##SOAP11_HTTP ##SOAP11_HTTP_MTOM ##SOAP12_HTTP ##SOAP12_HTTP_MTOM">
|
||||
<handler name="RecordingHandler"
|
||||
class="org.jboss.ws.common.invocation.RecordingServerHandler" />
|
||||
</pre-handler-chain>
|
||||
</endpoint-config>
|
||||
</subsystem>
|
||||
<subsystem xmlns="urn:jboss:domain:weld:1.0" />
|
||||
</profile>
|
||||
|
||||
<interfaces>
|
||||
<interface name="management">
|
||||
<loopback-address value="${env.OPENSHIFT_JBOSSEAP_IP}" />
|
||||
</interface>
|
||||
<interface name="public">
|
||||
<loopback-address value="${env.OPENSHIFT_JBOSSEAP_IP}" />
|
||||
</interface>
|
||||
<interface name="unsecure">
|
||||
<!-- Used for IIOP sockets in the standarad configuration. To secure JacORB
|
||||
you need to setup SSL -->
|
||||
<loopback-address value="${env.OPENSHIFT_JBOSSEAP_IP}" />
|
||||
</interface>
|
||||
</interfaces>
|
||||
|
||||
<socket-binding-group name="standard-sockets"
|
||||
default-interface="public" port-offset="0">
|
||||
<socket-binding name="management-native" interface="management"
|
||||
port="9999" />
|
||||
<socket-binding name="management-http" interface="management"
|
||||
port="9990" />
|
||||
|
||||
<socket-binding name="http" port="8080" />
|
||||
<socket-binding name="jacorb" interface="unsecure"
|
||||
port="3528" />
|
||||
<socket-binding name="jacorb-ssl" interface="unsecure"
|
||||
port="3529" />
|
||||
<socket-binding name="jgroups-tcp" port="7600" />
|
||||
<socket-binding name="messaging" port="5445" />
|
||||
<!--socket-binding name="messaging-group" multicast-address="${jboss.messaging.group.address:231.7.7.7}"
|
||||
multicast-port="${jboss.messaging.group.port:9876}"/ -->
|
||||
<socket-binding name="messaging-throughput" port="5455" />
|
||||
<socket-binding name="osgi-http" interface="management"
|
||||
port="8090" />
|
||||
<socket-binding name="remoting" port="4447" />
|
||||
<socket-binding name="txn-recovery-environment" port="4712" />
|
||||
<socket-binding name="txn-status-manager" port="4713" />
|
||||
<outbound-socket-binding name="mail-smtp">
|
||||
<remote-destination host="localhost" port="25" />
|
||||
</outbound-socket-binding>
|
||||
</socket-binding-group>
|
||||
</server>
|
||||
@@ -1,22 +0,0 @@
|
||||
Run scripts or jobs on a periodic basis
|
||||
=======================================
|
||||
Any scripts or jobs added to the minutely, hourly, daily, weekly or monthly
|
||||
directories will be run on a scheduled basis (frequency is as indicated by the
|
||||
name of the directory) using run-parts.
|
||||
|
||||
run-parts ignores any files that are hidden or dotfiles (.*) or backup
|
||||
files (*~ or *,) or named *.{rpmsave,rpmorig,rpmnew,swp,cfsaved}
|
||||
|
||||
The presence of two specially named files jobs.deny and jobs.allow controls
|
||||
how run-parts executes your scripts/jobs.
|
||||
jobs.deny ===> Prevents specific scripts or jobs from being executed.
|
||||
jobs.allow ===> Only execute the named scripts or jobs (all other/non-named
|
||||
scripts that exist in this directory are ignored).
|
||||
|
||||
The principles of jobs.deny and jobs.allow are the same as those of cron.deny
|
||||
and cron.allow and are described in detail at:
|
||||
http://docs.redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/Deployment_Guide/ch-Automating_System_Tasks.html#s2-autotasks-cron-access
|
||||
|
||||
See: man crontab or above link for more details and see the the weekly/
|
||||
directory for an example.
|
||||
|
||||
0
.openshift/cron/daily/.gitignore
vendored
@@ -1,7 +0,0 @@
|
||||
if [ $OPENSHIFT_JBOSSAS_LOG_DIR ]; then
|
||||
rm -rf $OPENSHIFT_JBOSSAS_LOG_DIR/*.log.*
|
||||
fi
|
||||
|
||||
if [ $OPENSHIFT_JBOSSEAP_LOG_DIR ]; then
|
||||
rm -rf $OPENSHIFT_JBOSSEAP_LOG_DIR/*.log.*
|
||||
fi
|
||||
0
.openshift/cron/hourly/.gitignore
vendored
0
.openshift/cron/minutely/.gitignore
vendored
0
.openshift/cron/monthly/.gitignore
vendored
@@ -1,16 +0,0 @@
|
||||
Run scripts or jobs on a weekly basis
|
||||
=====================================
|
||||
Any scripts or jobs added to this directory will be run on a scheduled basis
|
||||
(weekly) using run-parts.
|
||||
|
||||
run-parts ignores any files that are hidden or dotfiles (.*) or backup
|
||||
files (*~ or *,) or named *.{rpmsave,rpmorig,rpmnew,swp,cfsaved} and handles
|
||||
the files named jobs.deny and jobs.allow specially.
|
||||
|
||||
In this specific example, the chronograph script is the only script or job file
|
||||
executed on a weekly basis (due to white-listing it in jobs.allow). And the
|
||||
README and chrono.dat file are ignored either as a result of being black-listed
|
||||
in jobs.deny or because they are NOT white-listed in the jobs.allow file.
|
||||
|
||||
For more details, please see ../README.cron file.
|
||||
|
||||
@@ -1 +0,0 @@
|
||||
Time And Relative D...n In Execution (Open)Shift!
|
||||
@@ -1,3 +0,0 @@
|
||||
#!/bin/bash
|
||||
|
||||
echo "`date`: `cat $(dirname \"$0\")/chrono.dat`"
|
||||
@@ -1,12 +0,0 @@
|
||||
#
|
||||
# Script or job files listed in here (one entry per line) will be
|
||||
# executed on a weekly-basis.
|
||||
#
|
||||
# Example: The chronograph script will be executed weekly but the README
|
||||
# and chrono.dat files in this directory will be ignored.
|
||||
#
|
||||
# The README file is actually ignored due to the entry in the
|
||||
# jobs.deny which is checked before jobs.allow (this file).
|
||||
#
|
||||
chronograph
|
||||
|
||||
@@ -1,7 +0,0 @@
|
||||
#
|
||||
# Any script or job files listed in here (one entry per line) will NOT be
|
||||
# executed (read as ignored by run-parts).
|
||||
#
|
||||
|
||||
README
|
||||
|
||||
@@ -1,22 +0,0 @@
|
||||
Markers
|
||||
===========
|
||||
|
||||
Adding marker files to this directory will have the following effects:
|
||||
|
||||
enable_jpda - Will enable the JPDA socket based transport on the java virtual
|
||||
machine running the JBoss AS 7 application server. This enables
|
||||
you to remotely debug code running inside the JBoss AS 7
|
||||
application server.
|
||||
|
||||
skip_maven_build - Maven build step will be skipped
|
||||
|
||||
force_clean_build - Will start the build process by removing all non
|
||||
essential Maven dependencies. Any current dependencies specified in
|
||||
your pom.xml file will then be re-downloaded.
|
||||
|
||||
hot_deploy - Will prevent a JBoss container restart during build/deployment.
|
||||
Newly build archives will be re-deployed automatically by the
|
||||
JBoss HDScanner component.
|
||||
|
||||
java7 - Will run JBoss AS7 with Java7 if present. If no marker is present then the
|
||||
baseline Java version will be used (currently Java6)
|
||||
31
LICENSE
@@ -1,31 +0,0 @@
|
||||
Apache License, Version 2.0 Apache License Version 2.0, January 2004 http://www.apache.org/licenses/
|
||||
TERMS AND CONDITIONS FOR USE, REPRODUCTION, AND DISTRIBUTION
|
||||
1. Definitions.
|
||||
"License" shall mean the terms and conditions for use, reproduction, and distribution as defined by Sections 1 through 9 of this document.
|
||||
"Licensor" shall mean the copyright owner or entity authorized by the copyright owner that is granting the License.
|
||||
"Legal Entity" shall mean the union of the acting entity and all other entities that control, are controlled by, or are under common control with that entity. For the purposes of this definition, "control" means (i) the power, direct or indirect, to cause the direction or management of such entity, whether by contract or otherwise, or (ii) ownership of fifty percent (50%) or more of the outstanding shares, or (iii) beneficial ownership of such entity.
|
||||
"You" (or "Your") shall mean an individual or Legal Entity exercising permissions granted by this License.
|
||||
"Source" form shall mean the preferred form for making modifications, including but not limited to software source code, documentation source, and configuration files.
|
||||
"Object" form shall mean any form resulting from mechanical transformation or translation of a Source form, including but not limited to compiled object code, generated documentation, and conversions to other media types.
|
||||
"Work" shall mean the work of authorship, whether in Source or Object form, made available under the License, as indicated by a copyright notice that is included in or attached to the work (an example is provided in the Appendix below).
|
||||
"Derivative Works" shall mean any work, whether in Source or Object form, that is based on (or derived from) the Work and for which the editorial revisions, annotations, elaborations, or other modifications represent, as a whole, an original work of authorship. For the purposes of this License, Derivative Works shall not include works that remain separable from, or merely link (or bind by name) to the interfaces of, the Work and Derivative Works thereof.
|
||||
"Contribution" shall mean any work of authorship, including the original version of the Work and any modifications or additions to that Work or Derivative Works thereof, that is intentionally submitted to Licensor for inclusion in the Work by the copyright owner or by an individual or Legal Entity authorized to submit on behalf of the copyright owner. For the purposes of this definition, "submitted" means any form of electronic, verbal, or written communication sent to the Licensor or its representatives, including but not limited to communication on electronic mailing lists, source code control systems, and issue tracking systems that are managed by, or on behalf of, the Licensor for the purpose of discussing and improving the Work, but excluding communication that is conspicuously marked or otherwise designated in writing by the copyright owner as "Not a Contribution."
|
||||
"Contributor" shall mean Licensor and any individual or Legal Entity on behalf of whom a Contribution has been received by Licensor and subsequently incorporated within the Work.
|
||||
2. Grant of Copyright License.
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable copyright license to reproduce, prepare Derivative Works of, publicly display, publicly perform, sublicense, and distribute the Work and such Derivative Works in Source or Object form.
|
||||
3. Grant of Patent License.
|
||||
Subject to the terms and conditions of this License, each Contributor hereby grants to You a perpetual, worldwide, non-exclusive, no-charge, royalty-free, irrevocable (except as stated in this section) patent license to make, have made, use, offer to sell, sell, import, and otherwise transfer the Work, where such license applies only to those patent claims licensable by such Contributor that are necessarily infringed by their Contribution(s) alone or by combination of their Contribution(s) with the Work to which such Contribution(s) was submitted. If You institute patent litigation against any entity (including a cross-claim or counterclaim in a lawsuit) alleging that the Work or a Contribution incorporated within the Work constitutes direct or contributory patent infringement, then any patent licenses granted to You under this License for that Work shall terminate as of the date such litigation is filed.
|
||||
4. Redistribution.
|
||||
You may reproduce and distribute copies of the Work or Derivative Works thereof in any medium, with or without modifications, and in Source or Object form, provided that You meet the following conditions:
|
||||
You must give any other recipients of the Work or Derivative Works a copy of this License; and You must cause any modified files to carry prominent notices stating that You changed the files; and You must retain, in the Source form of any Derivative Works that You distribute, all copyright, patent, trademark, and attribution notices from the Source form of the Work, excluding those notices that do not pertain to any part of the Derivative Works; and If the Work includes a "NOTICE" text file as part of its distribution, then any Derivative Works that You distribute must include a readable copy of the attribution notices contained within such NOTICE file, excluding those notices that do not pertain to any part of the Derivative Works, in at least one of the following places: within a NOTICE text file distributed as part of the Derivative Works; within the Source form or documentation, if provided along with the Derivative Works; or, within a display generated by the Derivative Works, if and wherever such third-party notices normally appear. The contents of the NOTICE file are for informational purposes only and do not modify the License. You may add Your own attribution notices within Derivative Works that You distribute, alongside or as an addendum to the NOTICE text from the Work, provided that such additional attribution notices cannot be construed as modifying the License. You may add Your own copyright statement to Your modifications and may provide additional or different license terms and conditions for use, reproduction, or distribution of Your modifications, or for any such Derivative Works as a whole, provided Your use, reproduction, and distribution of the Work otherwise complies with the conditions stated in this License.
|
||||
5. Submission of Contributions.
|
||||
Unless You explicitly state otherwise, any Contribution intentionally submitted for inclusion in the Work by You to the Licensor shall be under the terms and conditions of this License, without any additional terms or conditions. Notwithstanding the above, nothing herein shall supersede or modify the terms of any separate license agreement you may have executed with Licensor regarding such Contributions.
|
||||
6. Trademarks.
|
||||
This License does not grant permission to use the trade names, trademarks, service marks, or product names of the Licensor, except as required for reasonable and customary use in describing the origin of the Work and reproducing the content of the NOTICE file.
|
||||
7. Disclaimer of Warranty.
|
||||
Unless required by applicable law or agreed to in writing, Licensor provides the Work (and each Contributor provides its Contributions) on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied, including, without limitation, any warranties or conditions of TITLE, NON-INFRINGEMENT, MERCHANTABILITY, or FITNESS FOR A PARTICULAR PURPOSE. You are solely responsible for determining the appropriateness of using or redistributing the Work and assume any risks associated with Your exercise of permissions under this License.
|
||||
8. Limitation of Liability.
|
||||
In no event and under no legal theory, whether in tort (including negligence), contract, or otherwise, unless required by applicable law (such as deliberate and grossly negligent acts) or agreed to in writing, shall any Contributor be liable to You for damages, including any direct, indirect, special, incidental, or consequential damages of any character arising as a result of this License or out of the use or inability to use the Work (including but not limited to damages for loss of goodwill, work stoppage, computer failure or malfunction, or any and all other commercial damages or losses), even if such Contributor has been advised of the possibility of such damages.
|
||||
9. Accepting Warranty or Additional Liability.
|
||||
While redistributing the Work or Derivative Works thereof, You may choose to offer, and charge a fee for, acceptance of support, warranty, indemnity, or other liability obligations and/or rights consistent with this License. However, in accepting such obligations, You may act only on Your own behalf and on Your sole responsibility, not on behalf of any other Contributor, and only if You agree to indemnify, defend, and hold each Contributor harmless for any liability incurred by, or claims asserted against, such Contributor by reason of your accepting any such warranty or additional liability.
|
||||
END OF TERMS AND CONDITIONS
|
||||
132
README.md
@@ -1,132 +0,0 @@
|
||||
CommaFeed [](https://buildhive.cloudbees.com/job/Athou/job/commafeed/)
|
||||
=========
|
||||
Sources for [CommaFeed.com](http://www.commafeed.com/).
|
||||
|
||||
Google Reader inspired self-hosted RSS reader, based on JAX-RS, Wicket and AngularJS.
|
||||
|
||||
Deploy on your own server (using TomEE, a lightweight JavaEE6 container based on Tomcat) or even in the cloud for free on OpenShift.
|
||||
|
||||
Related open-source projects
|
||||
----------------------------
|
||||
|
||||
Android apps: [News+ extension](https://github.com/Athou/commafeed-newsplus) - [Android app](https://github.com/doomrobo/CommaFeed-Android-Reader)
|
||||
|
||||
Browser extensions: [Chrome](https://github.com/Athou/commafeed-chrome) - [Firefox](https://github.com/Athou/commafeed-firefox) - [Opera](https://github.com/Athou/commafeed-opera) - [Safari](https://github.com/Athou/commafeed-safari)
|
||||
|
||||
Deployment on OpenShift
|
||||
-----------------------
|
||||
|
||||
Hosting an application on OpenShift is free.
|
||||
At the moment those instructions are not working because the application takes too long to build on OpenShift and causes a timeout.
|
||||
See [here](http://jasonwryan.com/blog/2013/05/25/greader/) for an alternative method.
|
||||
|
||||
* Create an account on [OpenShift](http://www.openshift.com/).
|
||||
* Add an application, select `JBoss Enterprise Application Platform 6.0`.
|
||||
* For the `Public URL` set the name you want (e.g. `commafeed`).
|
||||
* For the `Source Code` option, click `Change` and set this repository (`https://github.com/Athou/commafeed.git`).
|
||||
* Click `Create Application`.
|
||||
* Click `Add cartridge` and select `MySQL`.
|
||||
* Wait a couple of minutes and access your application.
|
||||
* The default user is `admin` and the password is `admin`.
|
||||
|
||||
Deployment on your own server
|
||||
-----------------------------
|
||||
|
||||
For storage, you can either use an embedded HSQLDB database or an external MySQL, PostgreSQL or SQLServer database.
|
||||
You also need Maven 3.x (and a Java 1.7+ JDK) installed in order to build the application.
|
||||
|
||||
To install maven and openjdk on Ubuntu, issue the following commands
|
||||
|
||||
sudo add-apt-repository ppa:natecarlson/maven3
|
||||
sudo apt-get update
|
||||
sudo apt-get install openjdk-7-jdk maven3
|
||||
|
||||
# Not required but if you don't, use 'mvn3' instead of 'mvn' for the rest of the instructions.
|
||||
sudo ln -s /usr/bin/mvn3 /usr/bin/mvn
|
||||
|
||||
On Windows and other operating systems, just download maven 3.x from the [official site](http://maven.apache.org/), extract it somewhere and add the `bin` directory to your `PATH` environment variable.
|
||||
|
||||
Download the sources (it doesn't matter where, you can delete the directory when you're done).
|
||||
If you don't have git you can download the sources as a zip file from [here](https://github.com/Athou/commafeed/archive/master.zip)
|
||||
|
||||
git clone https://github.com/Athou/commafeed.git
|
||||
cd commafeed
|
||||
|
||||
Now build the application
|
||||
|
||||
# Embedded HSQL database:
|
||||
mvn clean package tomee:build -Pprod
|
||||
|
||||
# External MySQL database:
|
||||
mvn clean package tomee:build -Pprod -Pmysql
|
||||
|
||||
# External PostgreSQL database:
|
||||
mvn clean package tomee:build -Pprod -Ppgsql
|
||||
|
||||
# External Microsoft SQL Server database:
|
||||
mvn clean package tomee:build -Pprod -Pmssql
|
||||
|
||||
It will generate a zip file at `target/commafeed.zip` with everything you need to run the application.
|
||||
|
||||
* Create a directory somewhere (e.g. `/opt/commafeed/`) and extract the generated zip inside this directory.
|
||||
* Create a directory called `logs` (e.g. `/opt/commafeed/logs`)
|
||||
* Copy the file `conf/setenv.sh` (Linux) or `conf/setenv.bat` (Windows) to `bin/`
|
||||
* If you don't use the embedded database, create a database in your external database instance, then uncomment the `Resource` element corresponding to the database engine you use from `conf/tomee.xml` and edit the default credentials.
|
||||
* If you'd like to change the default port (8082), edit `conf/server.xml` and look for `<Connector port="8082" protocol="HTTP/1.1"`. Change the port to the value you'd like to use.
|
||||
* CommaFeed will run on the `/commafeed` context. If you'd like to change the context, go to `webapps` and rename `commafeed.war`. Use the special name `ROOT.war` to deploy to the root context.
|
||||
* To start and stop the application, use `bin/startup.sh` and `bin/shutdown.sh` on Linux (you need to `chmod +x bin/*.sh`) or `bin\startup.bat` and `bin\shutdown.bat` on Windows.
|
||||
If you use the embedded database, note that the database file will be created in the current directory, so make sure you always start the app in the same directory. You can optionally set an absolute path instead of a relative one in `tomee.xml`.
|
||||
* To update the application with a newer version, pull the latest changes and use the same command you used to build the complete TomEE package, but without the `tomee:build` part (keep `-Pprod -P<database>`).
|
||||
This will generate the file `target/commafeed.war`. Copy this file to your tomee `webapps/` directory.
|
||||
* The application is online at [http://localhost:8082/commafeed](http://localhost:8082/commafeed). Don't forget to set the public URL in the admin settings.
|
||||
* The default user is `admin` and the password is `admin`.
|
||||
|
||||
You can use nginx or apache as a proxy http server. Note that when using apache, the `ProxyPreserveHost on` option should be set in your config file.
|
||||
|
||||
Local development
|
||||
-----------------
|
||||
|
||||
Checkout the code and use maven to build and start a local TomEE instance.
|
||||
|
||||
`mvn clean package tomee:run`
|
||||
|
||||
The application is online at [http://localhost:8082/commafeed](http://localhost:8082/commafeed). Any change to the source code will be applied immediatly.
|
||||
The default user is `admin` and the password is `admin`.
|
||||
|
||||
Translate CommaFeed into your language
|
||||
--------------------------------------
|
||||
|
||||
Files for internationalization are located [here](https://github.com/Athou/commafeed/tree/master/src/main/resources/i18n).
|
||||
|
||||
To add a new language, create a new file in that directory.
|
||||
The name of the file should be the two-letters [ISO-639-1 language code](http://en.wikipedia.org/wiki/List_of_ISO_639-1_codes).
|
||||
The language has to be referenced in the `languages.properties` file to be picked up.
|
||||
|
||||
When adding new translations, add them in en.properties then run `mvn -e groovy:execute -Pi18n`. It will parse the english file and add placeholders in the other translation files.
|
||||
|
||||
Themes
|
||||
---------------------
|
||||
|
||||
To create a theme, create a new file `src/main/webapp/sass/themes/_<theme>.scss`. Your styles should be wrapped in a `#theme-<theme>` element and use the [SCSS format](http://sass-lang.com/) which is a superset of CSS.
|
||||
|
||||
Don't forget to reference your theme in `src/main/webapp/sass/app.scss` and in `src/main/webapp/js/controllers.js` (look for `$scope.themes`).
|
||||
|
||||
See [_test.scss](https://github.com/Athou/commafeed/blob/master/src/main/webapp/sass/themes/_test.scss) for an example.
|
||||
|
||||
|
||||
Copyright and license
|
||||
---------------------
|
||||
|
||||
Copyright 2013 CommaFeed.
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this work except in compliance with the License.
|
||||
You may obtain a copy of the License in the LICENSE file, or at:
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
30
bower.json
Normal file
@@ -0,0 +1,30 @@
|
||||
{
|
||||
"name": "commafeed",
|
||||
"version": "2.0.0",
|
||||
"dependencies": {
|
||||
"jquery": "1.11.0",
|
||||
"jquery-ui": "1.11",
|
||||
"jquery-mousewheel": "3.1.12",
|
||||
"lodash": "2.4.1",
|
||||
"bootstrap": "3.1.1",
|
||||
"font-awesome": "3.2.1",
|
||||
"angular": "1.2.16",
|
||||
"angular-resource": "1.2.16",
|
||||
"angular-route": "1.2.16",
|
||||
"angular-sanitize": "1.2.16",
|
||||
"angular-touch": "1.2.16",
|
||||
"angular-animate": "1.2.16",
|
||||
"angular-ui-router": "0.2.8",
|
||||
"angular-ui-utils": "0.1.0",
|
||||
"angular-ui-select2": "0.0.5",
|
||||
"angular-bootstrap": "0.2.0",
|
||||
"angular-loading-bar": "0.4.0",
|
||||
"ngInfiniteScroll": "1.0.0",
|
||||
"ng-grid": "2.0.6",
|
||||
"mousetrap": "1.4.6",
|
||||
"momentjs": "2.6.0",
|
||||
"device.js": "matthewhudson/device.js#2ae5c775e35ccc837589e5af34e292c54936778c",
|
||||
"readabilicons": "arc90/readability-readabilicons#34c55561c5b8ec6e90714b50237c06b13cb9d59c",
|
||||
"zocial": "samcollins/css-social-buttons#1f59ecacde475e563fb6771667597493ec4eecb6"
|
||||
}
|
||||
}
|
||||
@@ -1 +0,0 @@
|
||||
set JAVA_OPTS=-Djava.net.preferIPv4Stack=true -Xmx1024m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -Djsse.enableSNIExtension=false
|
||||
@@ -1 +0,0 @@
|
||||
export JAVA_OPTS="-Djava.net.preferIPv4Stack=true -Xmx1024m -XX:MaxPermSize=256m -XX:+CMSClassUnloadingEnabled -XX:+UseConcMarkSweepGC -Djsse.enableSNIExtension=false"
|
||||
50
config.yml
Normal file
@@ -0,0 +1,50 @@
|
||||
app:
|
||||
publicUrl: http://localhost:8083/
|
||||
allowRegistrations: false
|
||||
googleAnalyticsTrackingCode:
|
||||
googleClientId:
|
||||
googleClientSecret:
|
||||
backgroundThreads: 3
|
||||
databaseUpdateThreads: 1
|
||||
smtpHost:
|
||||
smtpPort:
|
||||
smtpTls: false
|
||||
smtpUserName:
|
||||
smtpPassword:
|
||||
heavyLoad: false
|
||||
pubsubhubbub: false
|
||||
imageProxyEnabled: false
|
||||
queryTimeout: 0
|
||||
crawlingPaused: false
|
||||
keepStatusDays: 0
|
||||
refreshIntervalMinutes: 5
|
||||
announcement:
|
||||
|
||||
authenticationCachePolicy: maximumSize=10000, expireAfterAccess=10m
|
||||
database:
|
||||
driverClass: org.h2.Driver
|
||||
user: sa
|
||||
password: sa
|
||||
url: jdbc:h2:./target/example
|
||||
properties:
|
||||
charSet: UTF-8
|
||||
# hibernate.dialect: org.hibernate.dialect.PostgreSQLDialect
|
||||
maxWaitForConnection: 1s
|
||||
validationQuery: "/* MyApplication Health Check */ SELECT 1"
|
||||
minSize: 1
|
||||
maxSize: 8
|
||||
checkConnectionWhileIdle: true
|
||||
|
||||
server:
|
||||
applicationConnectors:
|
||||
- type: http
|
||||
port: 8082
|
||||
|
||||
logging:
|
||||
level: WARN
|
||||
loggers:
|
||||
com.commafeed: DEBUG
|
||||
liquibase: INFO
|
||||
org.hibernate.SQL: ALL
|
||||
appenders:
|
||||
- type: console
|
||||
2
gulp
Normal file
@@ -0,0 +1,2 @@
|
||||
#!/bin/sh
|
||||
"node/node" "node_modules/gulp/bin/gulp.js" "$@"
|
||||
3
gulp.cmd
Normal file
@@ -0,0 +1,3 @@
|
||||
@echo off
|
||||
%~dp0node/node node_modules/gulp/bin/gulp.js %*
|
||||
@echo on
|
||||
73
gulpfile.js
Normal file
@@ -0,0 +1,73 @@
|
||||
var gulp = require('gulp');
|
||||
var minifyCSS = require('gulp-minify-css');
|
||||
var uglify = require('gulp-uglify');
|
||||
var filter = require('gulp-filter');
|
||||
var bower = require('gulp-bower');
|
||||
var connect = require('gulp-connect');
|
||||
var modRewrite = require('connect-modrewrite');
|
||||
var sass = require('gulp-sass');
|
||||
var useref = require('gulp-useref');
|
||||
var templateCache = require('gulp-angular-templatecache');
|
||||
|
||||
var SRC_DIR = 'src/main/app/';
|
||||
var TEMP_DIR = 'target/gulp/'
|
||||
var BUILD_DIR = 'target/classes/assets/';
|
||||
|
||||
gulp.task('bower', function() {
|
||||
return bower();
|
||||
});
|
||||
|
||||
gulp.task('images', function() {
|
||||
return gulp.src(SRC_DIR + 'images/**/*').pipe(gulp.dest(BUILD_DIR + 'images'));
|
||||
});
|
||||
|
||||
gulp.task('sass', function() {
|
||||
return gulp.src(SRC_DIR + 'sass/app.scss').pipe(sass()).pipe(gulp.dest(TEMP_DIR + 'css'));
|
||||
});
|
||||
|
||||
gulp.task('fonts', function() {
|
||||
gulp.src(SRC_DIR + 'lib/font-awesome/font/fontawesome-webfont.*').pipe(gulp.dest(BUILD_DIR + 'font'));
|
||||
gulp.src(SRC_DIR + 'lib/readabilicons/webfont/fonts/readabilicons-*').pipe(gulp.dest(BUILD_DIR + 'font'));
|
||||
return gulp.src(SRC_DIR + 'lib/zocial/css/zocial-regular-*').pipe(gulp.dest(BUILD_DIR + 'font'));
|
||||
});
|
||||
|
||||
gulp.task('template-cache', function() {
|
||||
var options = {
|
||||
module : 'commafeed.services',
|
||||
root : 'templates/'
|
||||
};
|
||||
return gulp.src(SRC_DIR + 'templates/**/*.html').pipe(templateCache(options)).pipe(gulp.dest(TEMP_DIR + 'js'));
|
||||
});
|
||||
|
||||
gulp.task('build', ['images', 'sass', 'fonts', 'template-cache'], function() {
|
||||
var assets = useref.assets({
|
||||
searchPath : [SRC_DIR, TEMP_DIR]
|
||||
});
|
||||
var jsFilter = filter("**/*.js");
|
||||
var cssFilter = filter("**/*.css");
|
||||
return gulp.src([SRC_DIR + 'index.html', TEMP_DIR + 'app.css']).pipe(assets)
|
||||
|
||||
.pipe(cssFilter).pipe(minifyCSS()).pipe(cssFilter.restore())
|
||||
|
||||
.pipe(jsFilter).pipe(uglify()).pipe(jsFilter.restore())
|
||||
|
||||
.pipe(assets.restore()).pipe(useref()).pipe(gulp.dest(BUILD_DIR));
|
||||
});
|
||||
|
||||
gulp.task('watch', function() {
|
||||
gulp.watch(SRC_DIR + 'sass/**/*.scss', ['build']);
|
||||
gulp.watch(SRC_DIR + 'js/**/*.js', ['build']);
|
||||
});
|
||||
|
||||
gulp.task('serve', function() {
|
||||
connect.server({
|
||||
root : BUILD_DIR,
|
||||
port : 8083,
|
||||
middleware : function() {
|
||||
return [modRewrite(['^/rest/(.*)$ http://localhost:8082/rest/$1 [P]'])];
|
||||
}
|
||||
});
|
||||
});
|
||||
|
||||
gulp.task('dev', ['build', 'watch', 'serve']);
|
||||
gulp.task('default', ['build']);
|
||||
18
package.json
Normal file
@@ -0,0 +1,18 @@
|
||||
{
|
||||
"name": "commafeed",
|
||||
"version": "2.0.0",
|
||||
"main": "main.js",
|
||||
"private": true,
|
||||
"devDependencies": {
|
||||
"gulp": "3.8.7",
|
||||
"gulp-minify-css": "0.3.7",
|
||||
"gulp-uglify": "0.3.1",
|
||||
"gulp-filter": "1.0.0",
|
||||
"gulp-bower": "0.0.6",
|
||||
"gulp-connect": "2.0.6",
|
||||
"connect-modrewrite": "0.7.7",
|
||||
"gulp-sass": "0.7.2",
|
||||
"gulp-useref": "0.6.0",
|
||||
"gulp-angular-templatecache": "1.3.0"
|
||||
}
|
||||
}
|
||||
711
pom.xml
@@ -1,11 +1,11 @@
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
|
||||
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<groupId>com.commafeed</groupId>
|
||||
<artifactId>commafeed</artifactId>
|
||||
<version>1.5.0-SNAPSHOT</version>
|
||||
<packaging>war</packaging>
|
||||
<version>2.0.0</version>
|
||||
<packaging>jar</packaging>
|
||||
<name>CommaFeed</name>
|
||||
|
||||
<prerequisites>
|
||||
@@ -14,163 +14,26 @@
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<production>false</production>
|
||||
<jpa.show_sql>false</jpa.show_sql>
|
||||
<jpa.datasource.name>java:openejb/Resource/My DataSource</jpa.datasource.name>
|
||||
<jpa.cache>false</jpa.cache>
|
||||
<jpa.table.encoding>utf8mb4</jpa.table.encoding>
|
||||
<cache_service.class>com.commafeed.backend.cache.NoopCacheService</cache_service.class>
|
||||
<dropwizard.version>0.7.1</dropwizard.version>
|
||||
</properties>
|
||||
|
||||
<build>
|
||||
<finalName>commafeed</finalName>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
<filtering>true</filtering>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>src/main/java</directory>
|
||||
<includes>
|
||||
<include>**/*</include>
|
||||
</includes>
|
||||
<excludes>
|
||||
<exclude>**/*.java</exclude>
|
||||
</excludes>
|
||||
</resource>
|
||||
</resources>
|
||||
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.1</version>
|
||||
<configuration>
|
||||
<source>1.6</source>
|
||||
<target>1.6</target>
|
||||
<source>1.7</source>
|
||||
<target>1.7</target>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
<configuration>
|
||||
<failOnMissingWebXml>false</failOnMissingWebXml>
|
||||
<webResources combine.children="append">
|
||||
<resource>
|
||||
<directory>${basedir}/src/main/webapp/WEB-INF</directory>
|
||||
<targetPath>WEB-INF</targetPath>
|
||||
<filtering>true</filtering>
|
||||
<includes>
|
||||
<include>**/beans.xml</include>
|
||||
</includes>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>target/generated-sources/api-docs/</directory>
|
||||
<targetPath>api/api-docs</targetPath>
|
||||
<includes>
|
||||
<include>**/*</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</webResources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.openejb.maven</groupId>
|
||||
<artifactId>tomee-maven-plugin</artifactId>
|
||||
<version>1.5.2</version>
|
||||
<configuration>
|
||||
<tomeeVersion>1.6.0</tomeeVersion>
|
||||
<tomeeClassifier>plus</tomeeClassifier>
|
||||
<tomeeHttpPort>8082</tomeeHttpPort>
|
||||
<args>-Xmx1024m -XX:MaxPermSize=512m -XX:+CMSClassUnloadingEnabled</args>
|
||||
<config>${project.basedir}/src/main/tomee/conf</config>
|
||||
<reloadOnUpdate>true</reloadOnUpdate>
|
||||
<synchronization>
|
||||
<updateInterval>1</updateInterval>
|
||||
<extensions>
|
||||
<extension>.class</extension>
|
||||
</extensions>
|
||||
<updateOnlyExtensions>
|
||||
<updateOnlyExtension>.properties</updateOnlyExtension>
|
||||
<updateOnlyExtension>.html</updateOnlyExtension>
|
||||
<updateOnlyExtension>.js</updateOnlyExtension>
|
||||
<updateOnlyExtension>.css</updateOnlyExtension>
|
||||
<updateOnlyExtension>.scss</updateOnlyExtension>
|
||||
</updateOnlyExtensions>
|
||||
</synchronization>
|
||||
<libs>
|
||||
<lib>org.hibernate:hibernate-entitymanager:4.1.11.Final</lib>
|
||||
<lib>org.hibernate:hibernate-core:4.1.11.Final</lib>
|
||||
<lib>org.hibernate.common:hibernate-commons-annotations:4.0.1.Final</lib>
|
||||
<lib>org.hibernate:hibernate-validator:4.3.1.Final</lib>
|
||||
<lib>org.jboss.logging:jboss-logging:3.1.3.GA</lib>
|
||||
<lib>org.javassist:javassist:3.15.0-GA</lib>
|
||||
|
||||
<lib>org.apache.openejb:openejb-bonecp:4.6.0</lib>
|
||||
<lib>com.jolbox:bonecp:0.8.0.RELEASE</lib>
|
||||
<lib>com.google.guava:guava:14.0.1</lib>
|
||||
|
||||
<lib>dom4j:dom4j:1.6.1</lib>
|
||||
<lib>antlr:antlr:2.7.7</lib>
|
||||
<lib>remove:openjpa-</lib>
|
||||
<lib>remove:hsqldb</lib>
|
||||
<lib>org.hsqldb:hsqldb:2.3.0</lib>
|
||||
<lib>mysql:mysql-connector-java:5.1.26</lib>
|
||||
<lib>postgresql:postgresql:9.1-901.jdbc4</lib>
|
||||
<lib>net.sourceforge.jtds:jtds:1.3.1</lib>
|
||||
|
||||
<lib>org.infinispan:infinispan-core:5.1.4.FINAL</lib>
|
||||
<lib>org.hibernate:hibernate-infinispan:4.1.11.Final</lib>
|
||||
<lib>org.jgroups:jgroups:3.0.9.Final</lib>
|
||||
<lib>org.jboss.marshalling:jboss-marshalling-river:1.3.11.GA</lib>
|
||||
<lib>org.jboss.marshalling:jboss-marshalling:1.3.11.GA</lib>
|
||||
<lib>org.codehaus.woodstox:woodstox-core-asl:4.1.1</lib>
|
||||
<lib>org.codehaus.woodstox:stax2-api:3.1.1</lib>
|
||||
<lib>org.rhq.helpers:rhq-pluginAnnotations:3.0.4</lib>
|
||||
<lib>org.jboss.logmanager:jboss-logmanager:1.2.2.GA</lib>
|
||||
</libs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.bsc.maven</groupId>
|
||||
<artifactId>maven-processor-plugin</artifactId>
|
||||
<version>2.2.3</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>process</id>
|
||||
<goals>
|
||||
<goal>process</goal>
|
||||
</goals>
|
||||
<phase>generate-sources</phase>
|
||||
<configuration>
|
||||
<processors>
|
||||
<processor>org.hibernate.jpamodelgen.JPAMetaModelEntityProcessor</processor>
|
||||
</processors>
|
||||
<outputDirectory>target/generated-sources/metamodel</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>doc</id>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>process</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<processors>
|
||||
<processor>com.commafeed.frontend.APIGenerator</processor>
|
||||
</processors>
|
||||
<outputDirectory>target/generated-sources/api-docs</outputDirectory>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-jpamodelgen</artifactId>
|
||||
<version>1.3.0.Final</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>pl.project13.maven</groupId>
|
||||
<artifactId>git-commit-id-plugin</artifactId>
|
||||
@@ -187,6 +50,72 @@
|
||||
<failOnNoGitDirectory>false</failOnNoGitDirectory>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>1.6</version>
|
||||
<configuration>
|
||||
<createDependencyReducedPom>true</createDependencyReducedPom>
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>*:*</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/*.SF</exclude>
|
||||
<exclude>META-INF/*.DSA</exclude>
|
||||
<exclude>META-INF/*.RSA</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
</filters>
|
||||
</configuration>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<transformers>
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
|
||||
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
|
||||
<mainClass>com.commafeed.CommaFeedApplication</mainClass>
|
||||
</transformer>
|
||||
</transformers>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.eirslett</groupId>
|
||||
<artifactId>frontend-maven-plugin</artifactId>
|
||||
<version>0.0.15</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>install node and npm</id>
|
||||
<goals>
|
||||
<goal>install-node-and-npm</goal>
|
||||
</goals>
|
||||
<phase>generate-resources</phase>
|
||||
<configuration>
|
||||
<nodeVersion>v0.10.30</nodeVersion>
|
||||
<npmVersion>1.3.8</npmVersion>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>npm install</id>
|
||||
<goals>
|
||||
<goal>npm</goal>
|
||||
</goals>
|
||||
<phase>generate-resources</phase>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>gulp build</id>
|
||||
<goals>
|
||||
<goal>gulp</goal>
|
||||
</goals>
|
||||
<phase>generate-resources</phase>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
|
||||
@@ -194,58 +123,71 @@
|
||||
<dependency>
|
||||
<groupId>org.projectlombok</groupId>
|
||||
<artifactId>lombok</artifactId>
|
||||
<version>1.12.6</version>
|
||||
<version>1.14.4</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jboss.spec</groupId>
|
||||
<artifactId>jboss-javaee-6.0</artifactId>
|
||||
<version>1.0.0.Final</version>
|
||||
<type>pom</type>
|
||||
<scope>provided</scope>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-api</artifactId>
|
||||
<version>1.7.7</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>io.dropwizard</groupId>
|
||||
<artifactId>dropwizard-core</artifactId>
|
||||
<version>${dropwizard.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.hibernate</groupId>
|
||||
<artifactId>hibernate-entitymanager</artifactId>
|
||||
<version>4.1.11.Final</version>
|
||||
<scope>provided</scope>
|
||||
<groupId>io.dropwizard</groupId>
|
||||
<artifactId>dropwizard-auth</artifactId>
|
||||
<version>${dropwizard.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.dropwizard</groupId>
|
||||
<artifactId>dropwizard-hibernate</artifactId>
|
||||
<version>${dropwizard.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.dropwizard</groupId>
|
||||
<artifactId>dropwizard-client</artifactId>
|
||||
<version>${dropwizard.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.dropwizard</groupId>
|
||||
<artifactId>dropwizard-migrations</artifactId>
|
||||
<version>${dropwizard.version}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>io.federecio</groupId>
|
||||
<artifactId>dropwizard-swagger</artifactId>
|
||||
<version>0.5.1</version>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<artifactId>dom4j</artifactId>
|
||||
<groupId>dom4j</groupId>
|
||||
<artifactId>jsr311-api</artifactId>
|
||||
<groupId>javax.ws.rs</groupId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<artifactId>javassist</artifactId>
|
||||
<groupId>javassist</groupId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
<version>2.2.1</version>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-apt</artifactId>
|
||||
<version>3.4.2</version>
|
||||
<scope>provided</scope>
|
||||
<classifier>hibernate</classifier>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.liquibase</groupId>
|
||||
<artifactId>liquibase-core</artifactId>
|
||||
<version>3.1.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>16.0.1</version>
|
||||
<groupId>com.mysema.querydsl</groupId>
|
||||
<artifactId>querydsl-jpa</artifactId>
|
||||
<version>3.4.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-beanutils</groupId>
|
||||
<artifactId>commons-beanutils</artifactId>
|
||||
<version>1.9.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>1.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-collections</groupId>
|
||||
<artifactId>commons-collections</artifactId>
|
||||
<version>3.2.1</version>
|
||||
<groupId>com.sun.jersey.contribs</groupId>
|
||||
<artifactId>jersey-multipart</artifactId>
|
||||
<version>1.18.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
@@ -253,9 +195,14 @@
|
||||
<version>2.4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-lang</groupId>
|
||||
<artifactId>commons-lang</artifactId>
|
||||
<version>2.6</version>
|
||||
<groupId>commons-collections</groupId>
|
||||
<artifactId>commons-collections</artifactId>
|
||||
<version>3.2.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-codec</groupId>
|
||||
<artifactId>commons-codec</artifactId>
|
||||
<version>1.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
@@ -263,11 +210,15 @@
|
||||
<version>2.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-fileupload</groupId>
|
||||
<artifactId>commons-fileupload</artifactId>
|
||||
<version>1.3.1</version>
|
||||
<groupId>redis.clients</groupId>
|
||||
<artifactId>jedis</artifactId>
|
||||
<version>2.2.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.sun.mail</groupId>
|
||||
<artifactId>javax.mail</artifactId>
|
||||
<version>1.5.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>net.java.dev.rome</groupId>
|
||||
<artifactId>rome</artifactId>
|
||||
@@ -295,6 +246,11 @@
|
||||
<artifactId>jdom</artifactId>
|
||||
<version>1.1.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jsoup</groupId>
|
||||
<artifactId>jsoup</artifactId>
|
||||
<version>1.7.3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.googlecode.juniversalchardet</groupId>
|
||||
<artifactId>juniversalchardet</artifactId>
|
||||
@@ -303,160 +259,33 @@
|
||||
<dependency>
|
||||
<groupId>com.google.gwt</groupId>
|
||||
<artifactId>gwt-servlet</artifactId>
|
||||
<version>2.6.0</version>
|
||||
<version>2.6.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.sourceforge.cssparser</groupId>
|
||||
<artifactId>cssparser</artifactId>
|
||||
<version>0.9.13</version>
|
||||
<version>0.9.14</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.httpcomponents</groupId>
|
||||
<artifactId>httpclient</artifactId>
|
||||
<version>4.3.3</version>
|
||||
<groupId>com.h2database</groupId>
|
||||
<artifactId>h2</artifactId>
|
||||
<version>1.4.181</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.jsoup</groupId>
|
||||
<artifactId>jsoup</artifactId>
|
||||
<version>1.7.3</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.fasterxml.jackson.core</groupId>
|
||||
<artifactId>jackson-databind</artifactId>
|
||||
<version>2.3.3</version>
|
||||
<groupId>mysql</groupId>
|
||||
<artifactId>mysql-connector-java</artifactId>
|
||||
<version>5.1.31</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-log4j12</artifactId>
|
||||
<version>1.7.7</version>
|
||||
<groupId>postgresql</groupId>
|
||||
<artifactId>postgresql</artifactId>
|
||||
<version>9.1-901-1.jdbc4</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>log4j</groupId>
|
||||
<artifactId>log4j</artifactId>
|
||||
<version>1.2.17</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.wicket</groupId>
|
||||
<artifactId>wicket-core</artifactId>
|
||||
<version>6.14.0</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.apache.wicket</groupId>
|
||||
<artifactId>wicket-auth-roles</artifactId>
|
||||
<version>6.14.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.wicket</groupId>
|
||||
<artifactId>wicket-extensions</artifactId>
|
||||
<version>6.14.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.wicket</groupId>
|
||||
<artifactId>wicket-cdi</artifactId>
|
||||
<version>6.14.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>ro.isdc.wro4j</groupId>
|
||||
<artifactId>wro4j-extensions</artifactId>
|
||||
<version>1.7.5</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.wordnik</groupId>
|
||||
<artifactId>swagger-annotations_2.9.1</artifactId>
|
||||
<version>1.2.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.wordnik</groupId>
|
||||
<artifactId>swagger-jaxrs_2.9.1</artifactId>
|
||||
<version>1.2.5</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>com.codahale.metrics</groupId>
|
||||
<artifactId>metrics-core</artifactId>
|
||||
<version>3.0.2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.codahale.metrics</groupId>
|
||||
<artifactId>metrics-json</artifactId>
|
||||
<version>3.0.2</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>lodash</artifactId>
|
||||
<version>2.4.1-3</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>jquery</artifactId>
|
||||
<version>1.11.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>bootstrap</artifactId>
|
||||
<version>3.1.1</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>jquery-mousewheel</artifactId>
|
||||
<version>3.1.9</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>angularjs</artifactId>
|
||||
<version>1.2.16</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>angular-ui-router</artifactId>
|
||||
<version>0.2.8-2</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>angular-ui-utils</artifactId>
|
||||
<version>0.1.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>ui-select2</artifactId>
|
||||
<version>0.0.5</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>angular-ui-bootstrap</artifactId>
|
||||
<version>0.2.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>mousetrap</artifactId>
|
||||
<version>1.4.6</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>momentjs</artifactId>
|
||||
<version>2.6.0</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>ng-grid</artifactId>
|
||||
<version>2.0.7</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>device.js</artifactId>
|
||||
<version>139f208</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.webjars</groupId>
|
||||
<artifactId>ngInfiniteScroll</artifactId>
|
||||
<version>1.0.0</version>
|
||||
<groupId>net.sourceforge.jtds</groupId>
|
||||
<artifactId>jtds</artifactId>
|
||||
<version>1.3.1</version>
|
||||
</dependency>
|
||||
|
||||
<dependency>
|
||||
@@ -466,228 +295,4 @@
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>default</id>
|
||||
<activation>
|
||||
<activeByDefault>true</activeByDefault>
|
||||
</activation>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>ro.isdc.wro4j</groupId>
|
||||
<artifactId>wro4j-maven-plugin</artifactId>
|
||||
<version>1.7.5</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<id>js</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>jshint</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<targetGroups>app</targetGroups>
|
||||
<options>devel,noarg,quotmark,laxcomma,laxbreak</options>
|
||||
</configuration>
|
||||
</execution>
|
||||
<execution>
|
||||
<id>css</id>
|
||||
<phase>test</phase>
|
||||
<goals>
|
||||
<goal>csslint</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<targetGroups>app</targetGroups>
|
||||
<options>display-property-grouping,duplicate-properties,compatible-vendor-prefixes,vendor-prefix</options>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>openshift</id>
|
||||
<properties>
|
||||
<jpa.datasource.name>java:jboss/datasources/MysqlDS</jpa.datasource.name>
|
||||
<jpa.table.encoding>utf8</jpa.table.encoding>
|
||||
</properties>
|
||||
<build>
|
||||
<finalName>commafeed</finalName>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.14.1</version>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
<configuration>
|
||||
<outputDirectory>deployments</outputDirectory>
|
||||
<warName>ROOT</warName>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
|
||||
<profile>
|
||||
<id>cache</id>
|
||||
<properties>
|
||||
<jpa.cache>true</jpa.cache>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>redis</id>
|
||||
<properties>
|
||||
<cache_service.class>com.commafeed.backend.cache.RedisCacheService</cache_service.class>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>mysql</id>
|
||||
<properties>
|
||||
<jpa.datasource.name>java:openejb/Resource/MySQL</jpa.datasource.name>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>pgsql</id>
|
||||
<properties>
|
||||
<jpa.datasource.name>java:openejb/Resource/PostgreSQL</jpa.datasource.name>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>mssql</id>
|
||||
<properties>
|
||||
<jpa.datasource.name>java:openejb/Resource/MSSQL</jpa.datasource.name>
|
||||
</properties>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>prod</id>
|
||||
<activation>
|
||||
<property>
|
||||
<name>skipTests</name>
|
||||
</property>
|
||||
</activation>
|
||||
<properties>
|
||||
<timestamp>${maven.build.timestamp}</timestamp>
|
||||
<production>true</production>
|
||||
<jpa.show_sql>false</jpa.show_sql>
|
||||
</properties>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmaven</groupId>
|
||||
<artifactId>gmaven-plugin</artifactId>
|
||||
<version>1.5</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>execute</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<properties>
|
||||
<source>${basedir}/src/main/webapp/templates</source>
|
||||
<prefix>templates/</prefix>
|
||||
<destination>${basedir}/target/generated-sources/angularjs/all-templates.html</destination>
|
||||
<i18nPath>${basedir}/src/main/resources/i18n/</i18nPath>
|
||||
</properties>
|
||||
<scriptpath>
|
||||
<element>${basedir}/src/main/script</element>
|
||||
</scriptpath>
|
||||
<source>
|
||||
def source = project.properties['source'];
|
||||
def prefix =
|
||||
project.properties['prefix'];
|
||||
def dest =
|
||||
project.properties['destination'];
|
||||
def i18n =
|
||||
project.properties['i18nPath'];
|
||||
new
|
||||
HTMLConcat().concat(source,
|
||||
prefix, dest, i18n);
|
||||
</source>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>ro.isdc.wro4j</groupId>
|
||||
<artifactId>wro4j-maven-plugin</artifactId>
|
||||
<version>1.7.5</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>run</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<targetGroups>all</targetGroups>
|
||||
<wroManagerFactory>ro.isdc.wro.maven.plugin.manager.factory.ConfigurableWroManagerFactory</wroManagerFactory>
|
||||
<destinationFolder>${project.build.directory}/${project.build.finalName}/static/</destinationFolder>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-war-plugin</artifactId>
|
||||
<version>2.4</version>
|
||||
<configuration>
|
||||
<webResources>
|
||||
<resource>
|
||||
<directory>target/generated-sources/angularjs/</directory>
|
||||
<targetPath>templates</targetPath>
|
||||
<includes>
|
||||
<include>**/*.html</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</webResources>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>i18n</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.codehaus.gmaven</groupId>
|
||||
<artifactId>gmaven-plugin</artifactId>
|
||||
<version>1.5</version>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>2.4</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<configuration>
|
||||
<properties>
|
||||
<dir>${basedir}/src/main/resources/i18n/</dir>
|
||||
</properties>
|
||||
<scriptpath>
|
||||
<element>${basedir}/src/main/script</element>
|
||||
</scriptpath>
|
||||
<source>
|
||||
def dir = project.properties['dir'];
|
||||
new
|
||||
I18nGenerator().generate(dir);
|
||||
</source>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
</project>
|
||||
</project>
|
||||
|
Before Width: | Height: | Size: 6.0 KiB After Width: | Height: | Size: 6.0 KiB |
|
Before Width: | Height: | Size: 6.5 KiB After Width: | Height: | Size: 6.5 KiB |
|
Before Width: | Height: | Size: 7.1 KiB After Width: | Height: | Size: 7.1 KiB |
|
Before Width: | Height: | Size: 556 B After Width: | Height: | Size: 556 B |
|
Before Width: | Height: | Size: 9.2 KiB After Width: | Height: | Size: 9.2 KiB |
|
Before Width: | Height: | Size: 8.1 KiB After Width: | Height: | Size: 8.1 KiB |
|
Before Width: | Height: | Size: 3.5 KiB After Width: | Height: | Size: 3.5 KiB |
|
Before Width: | Height: | Size: 18 KiB After Width: | Height: | Size: 18 KiB |
|
Before Width: | Height: | Size: 4.2 KiB After Width: | Height: | Size: 4.2 KiB |
|
Before Width: | Height: | Size: 4.4 KiB After Width: | Height: | Size: 4.4 KiB |
|
Before Width: | Height: | Size: 4.7 KiB After Width: | Height: | Size: 4.7 KiB |
|
Before Width: | Height: | Size: 1.6 KiB After Width: | Height: | Size: 1.6 KiB |
|
Before Width: | Height: | Size: 1.1 KiB After Width: | Height: | Size: 1.1 KiB |
|
Before Width: | Height: | Size: 238 B After Width: | Height: | Size: 238 B |
|
Before Width: | Height: | Size: 3.0 KiB After Width: | Height: | Size: 3.0 KiB |
|
Before Width: | Height: | Size: 21 KiB After Width: | Height: | Size: 21 KiB |
|
Before Width: | Height: | Size: 15 KiB After Width: | Height: | Size: 15 KiB |
|
Before Width: | Height: | Size: 193 KiB After Width: | Height: | Size: 193 KiB |
73
src/main/app/index.html
Normal file
@@ -0,0 +1,73 @@
|
||||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<title>CommaFeed</title>
|
||||
<meta charset="utf-8">
|
||||
<meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=no" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<link rel="apple-touch-icon" href="app-icon-57.png" />
|
||||
<link rel="apple-touch-icon" sizes="72x72" href="app-icon-72.png" />
|
||||
<link rel="apple-touch-icon" sizes="114x114" href="app-icon-114.png" />
|
||||
<link rel="apple-touch-icon" sizes="144x144" href="app-icon-144.png" />
|
||||
<link rel="icon" sizes="32x32" href="app-icon-32.png" />
|
||||
<link rel="icon" sizes="64x64" href="app-icon-64.png" />
|
||||
<link rel="icon" sizes="128x128" href="app-icon-128.png" />
|
||||
<link rel="shortcut icon" type="image/x-icon" href="favicon.ico" />
|
||||
<meta name="application-name" content="CommaFeed" />
|
||||
<meta name="msapplication-navbutton-color" content="#F88A14" />
|
||||
<meta name="msapplication-starturl" content="/" />
|
||||
<meta name="msapplication-square70x70logo" content="metro-icon-70.png" />
|
||||
<meta name="msapplication-square150x150logo" content="metro-icon-150.png" />
|
||||
<link rel="fluid-icon" href="app-icon-512.png" title="CommaFeed" />
|
||||
<link rel="logo" type="image/svg" href="app-icon.svg" />
|
||||
|
||||
<!-- build:css css/app.css -->
|
||||
<link rel="stylesheet" href="lib/bootstrap/dist/css/bootstrap.css" />
|
||||
<link rel="stylesheet" href="lib/font-awesome/css/font-awesome.css" />
|
||||
<link rel="stylesheet" href="lib/select2/select2.css" />
|
||||
<link rel="stylesheet" href="lib/ng-grid/ng-grid.css" />
|
||||
<link rel="stylesheet" href="lib/jquery-ui/themes/smoothness/jquery-ui.css" />
|
||||
<link rel="stylesheet" href="lib/angular-loading-bar/build/loading-bar.css" />
|
||||
|
||||
<link rel="stylesheet" href="css/app.css" />
|
||||
<!-- endbuild -->
|
||||
</head>
|
||||
<body>
|
||||
<div ng-app="commafeed" id="main" class="main">
|
||||
<div ui-view></div>
|
||||
</div>
|
||||
|
||||
<!-- build:js js/app.js -->
|
||||
<script type="text/javascript" src="lib/lodash/dist/lodash.js"></script>
|
||||
<script type="text/javascript" src="lib/jquery/dist/jquery.js"></script>
|
||||
<script type="text/javascript" src="lib/jquery-ui/jquery-ui.js"></script>
|
||||
<script type="text/javascript" src="lib/jquery-mousewheel/jquery.mousewheel.js"></script>
|
||||
<script type="text/javascript" src="lib/bootstrap/dist/js/bootstrap.js"></script>
|
||||
<script type="text/javascript" src="lib/angular/angular.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-route/angular-route.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-resource/angular-resource.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-sanitize/angular-sanitize.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-touch/angular-touch.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-animate/angular-animate.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-bootstrap/ui-bootstrap-tpls.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-loading-bar/build/loading-bar.js"></script>
|
||||
<script type="text/javascript" src="lib/ngInfiniteScroll/build/ng-infinite-scroll.js"></script>
|
||||
<script type="text/javascript" src="lib/ng-grid/build/ng-grid.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-ui-router/release/angular-ui-router.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-ui-utils/ui-utils.js"></script>
|
||||
<script type="text/javascript" src="lib/angular-ui-select2/src/select2.js"></script>
|
||||
<script type="text/javascript" src="lib/select2/select2.js"></script>
|
||||
<script type="text/javascript" src="lib/mousetrap/mousetrap.js"></script>
|
||||
<script type="text/javascript" src="lib/momentjs/min/moment-with-langs.js"></script>
|
||||
<script type="text/javascript" src="lib/device.js/lib/device.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/controllers.js"></script>
|
||||
<script type="text/javascript" src="js/directives.js"></script>
|
||||
<script type="text/javascript" src="js/filters.js"></script>
|
||||
<script type="text/javascript" src="js/main.js"></script>
|
||||
<script type="text/javascript" src="js/services.js"></script>
|
||||
|
||||
<script type="text/javascript" src="js/templates.js"></script>
|
||||
<!-- endbuild -->
|
||||
</body>
|
||||
</html>
|
||||
@@ -866,7 +866,6 @@ module.controller('FeedListCtrl', [
|
||||
});
|
||||
EntryService.mark({
|
||||
id : entry.id,
|
||||
feedId : entry.feedId,
|
||||
read : read
|
||||
});
|
||||
}
|
||||
@@ -892,7 +891,6 @@ module.controller('FeedListCtrl', [
|
||||
if (!e.read) {
|
||||
entries.push({
|
||||
id : e.id,
|
||||
feedId : e.feedId,
|
||||
read : true
|
||||
});
|
||||
e.read = true;
|
||||
|
Before Width: | Height: | Size: 4.8 KiB After Width: | Height: | Size: 4.8 KiB |
|
Before Width: | Height: | Size: 1.8 KiB After Width: | Height: | Size: 1.8 KiB |
@@ -8,6 +8,9 @@
|
||||
@import "components/help";
|
||||
@import "components/loading-bar";
|
||||
|
||||
@import "components/readabilicons";
|
||||
@import "components/zocial";
|
||||
|
||||
@import "mobile/mobile";
|
||||
|
||||
@import "themes/test";
|
||||
20
src/main/app/sass/components/readabilicons.scss
Normal file
@@ -0,0 +1,20 @@
|
||||
@font-face {
|
||||
font-family: 'readabilicons';
|
||||
src: url('../font/readabilicons-regular.eot'); /* IE9 Compat Modes */
|
||||
src: url('../font/readabilicons-regular.eot?#iefix') format('embedded-opentype'), /* IE6-IE8 */
|
||||
url('../font/readabilicons-regular.woff') format('woff'), /* Modern Browsers */
|
||||
url('../font/readabilicons-regular.ttf') format('truetype'), /* Safari, Android, iOS */
|
||||
url('../font/readabilicons-regular.svg#readabiliconsregular') format('svg'); /* Legacy iOS */
|
||||
font-style: normal;
|
||||
font-weight: 400;
|
||||
}
|
||||
|
||||
.icon-couch::before {
|
||||
content: "\e018";
|
||||
font-family: "readabilicons";
|
||||
-webkit-font-smoothing: antialiased;
|
||||
font-size: 21px;
|
||||
top: 5px;
|
||||
position: relative;
|
||||
line-height: 0px;
|
||||
}
|
||||
@@ -14,9 +14,9 @@
|
||||
*/
|
||||
@font-face {
|
||||
font-family: 'zocial';
|
||||
src: url('zocial-regular-webfont.eot'),
|
||||
url('zocial-regular-webfont.woff'), url('zocial-regular-webfont.ttf')
|
||||
format('truetype'), url('zocial-regular-webfont.svg#zocialregular')
|
||||
src: url('../font/zocial-regular-webfont.eot'),
|
||||
url('../font/zocial-regular-webfont.woff'), url('../font/zocial-regular-webfont.ttf')
|
||||
format('truetype'), url('../font/zocial-regular-webfont.svg#zocialregular')
|
||||
format('svg');
|
||||
font-weight: normal;
|
||||
font-style: normal;
|
||||