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:
+57
@@ -0,0 +1,57 @@
|
||||
package astrochart.client.view;
|
||||
|
||||
import astrochart.client.presenter.AdminPresenter;
|
||||
import com.google.gwt.user.client.ui.Button;
|
||||
import com.google.gwt.user.client.ui.Composite;
|
||||
import com.google.gwt.user.client.ui.DecoratorPanel;
|
||||
import com.google.gwt.user.client.ui.FlexTable;
|
||||
import com.google.gwt.user.client.ui.Label;
|
||||
import com.google.gwt.user.client.ui.TextArea;
|
||||
import com.google.gwt.user.client.ui.Widget;
|
||||
|
||||
public class AdminView extends Composite implements AdminPresenter.Display {
|
||||
private final FlexTable contentTable;
|
||||
private final Button submitButton = new Button("Submit");
|
||||
private final TextArea inputTextArea = new TextArea();
|
||||
private final Label statusLabel = new Label();
|
||||
private final Label secondStatusLabel = new Label();
|
||||
|
||||
public AdminView() {
|
||||
final DecoratorPanel contentTableDecorator = new DecoratorPanel();
|
||||
contentTableDecorator.setWidth("1010px");
|
||||
initWidget(contentTableDecorator);
|
||||
contentTable = new FlexTable();
|
||||
contentTable.setWidget(0, 0, submitButton);
|
||||
inputTextArea.setWidth("997px");
|
||||
inputTextArea.setHeight("500px");
|
||||
contentTable.setWidget(1, 0, inputTextArea);
|
||||
contentTable.setWidget(2, 0, statusLabel);
|
||||
contentTable.setWidget(3, 0, secondStatusLabel);
|
||||
contentTableDecorator.add(contentTable);
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Widget asWidget() {
|
||||
return this;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Button getSubmitButton() {
|
||||
return submitButton;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final TextArea getInputTextArea() {
|
||||
return inputTextArea;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Label getStatusLabel() {
|
||||
return statusLabel;
|
||||
}
|
||||
|
||||
@Override
|
||||
public final Label getSecondStatusLabel() {
|
||||
return secondStatusLabel;
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user