Add horoscope-api, synastry, and backend services
- horoscope-api: Swiss Ephemeris natal charts, timezone/place resolution, POST /v1/natal and POST /v1/synastry - backend: users with roles, email/password and Google login, saved charts, synastries and invites, analyses with credit ledger, public shares, admin - shared crates: astro-engine, db (migrations), horoscope-client, service-kit - docker-compose with postgres, legacy Java project for reference Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com> Claude-Session: https://claude.ai/code/session_012vLHzh5qUhFtmJhzkcTbXL
This commit is contained in:
+17
@@ -0,0 +1,17 @@
|
||||
package astrochart.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
|
||||
public class CancelledEvent extends GwtEvent<CancelledEventHandler> {
|
||||
public static final Type<CancelledEventHandler> TYPE = new Type<CancelledEventHandler>();
|
||||
|
||||
@Override
|
||||
public final Type<CancelledEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void dispatch(final CancelledEventHandler handler) {
|
||||
handler.onCancelled(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package astrochart.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
|
||||
public interface CancelledEventHandler extends EventHandler {
|
||||
void onCancelled(final CancelledEvent event);
|
||||
}
|
||||
@@ -0,0 +1,27 @@
|
||||
package astrochart.client.event;
|
||||
|
||||
import java.util.Date;
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
|
||||
public class DateUpdatedEvent extends GwtEvent<DateUpdatedEventHandler> {
|
||||
public static final Type<DateUpdatedEventHandler> TYPE = new Type<DateUpdatedEventHandler>();
|
||||
private final Date localDate;
|
||||
|
||||
public DateUpdatedEvent(final Date localDate) {
|
||||
this.localDate = localDate;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Type<DateUpdatedEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void dispatch(final DateUpdatedEventHandler handler) {
|
||||
handler.onDateUpdated(this);
|
||||
}
|
||||
|
||||
public final Date getLocalDate() {
|
||||
return localDate;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package astrochart.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
|
||||
public interface DateUpdatedEventHandler extends EventHandler {
|
||||
void onDateUpdated(final DateUpdatedEvent event);
|
||||
}
|
||||
@@ -0,0 +1,17 @@
|
||||
package astrochart.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
|
||||
public class ResetAspectsEvent extends GwtEvent<ResetAspectsEventHandler> {
|
||||
public static final Type<ResetAspectsEventHandler> TYPE = new Type<ResetAspectsEventHandler>();
|
||||
|
||||
@Override
|
||||
public final Type<ResetAspectsEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void dispatch(final ResetAspectsEventHandler handler) {
|
||||
handler.onResetAspects(this);
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package astrochart.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
|
||||
public interface ResetAspectsEventHandler extends EventHandler {
|
||||
void onResetAspects(final ResetAspectsEvent event);
|
||||
}
|
||||
+26
@@ -0,0 +1,26 @@
|
||||
package astrochart.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.GwtEvent;
|
||||
|
||||
public class SetStatusEvent extends GwtEvent<SetStatusEventHandler> {
|
||||
public static final Type<SetStatusEventHandler> TYPE = new Type<SetStatusEventHandler>();
|
||||
private final String statusMessage;
|
||||
|
||||
public SetStatusEvent(final String statusMessage) {
|
||||
this.statusMessage = statusMessage;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Type<SetStatusEventHandler> getAssociatedType() {
|
||||
return TYPE;
|
||||
}
|
||||
|
||||
@Override
|
||||
protected final void dispatch(final SetStatusEventHandler handler) {
|
||||
handler.onSetStatus(this);
|
||||
}
|
||||
|
||||
public final String getStatusMessage() {
|
||||
return statusMessage;
|
||||
}
|
||||
}
|
||||
@@ -0,0 +1,7 @@
|
||||
package astrochart.client.event;
|
||||
|
||||
import com.google.gwt.event.shared.EventHandler;
|
||||
|
||||
public interface SetStatusEventHandler extends EventHandler {
|
||||
void onSetStatus(final SetStatusEvent event);
|
||||
}
|
||||
Reference in New Issue
Block a user